diff --git a/.agents/skills/hypercerts-api/references/endpoint-map.md b/.agents/skills/hypercerts-api/references/endpoint-map.md index 73ac422c..fd222712 100644 --- a/.agents/skills/hypercerts-api/references/endpoint-map.md +++ b/.agents/skills/hypercerts-api/references/endpoint-map.md @@ -110,7 +110,7 @@ Paginated reaction-list queries use the earliest record per author/subject URI, | Load one attachment | `org.hypercerts.context.getAttachment` | Exact record AT-URI in `uri`. | | List attachments | `org.hypercerts.context.listAttachments` | Filter by publisher, record URI, subject, or content type. | | Count comments for subjects | `org.hypercerts.context.getCommentCounts` | Pass 1–100 full subject record AT-URIs as repeated, unbracketed `subjects`. Counts attachments with `contentType` `comment` whose `subjects` include the URI, ignoring CID. Each comment record counts, so several by one author each count. Results preserve input order and duplicates. | -| Load one evaluation | `org.hypercerts.context.getEvaluation` | Exact record AT-URI in `uri`; includes publisher and evaluator views and preserves raw records when malformed evaluator entries are omitted. | +| Load one evaluation | `org.hypercerts.context.getEvaluation` | Exact record AT-URI in `uri`; includes publisher and evaluator views and preserves raw records when malformed evaluator entries are omitted. `indexedAt` can be null. | | List evaluations | `org.hypercerts.context.listEvaluations` | Filter by publisher, evaluator, or subject; malformed evaluator entries do not hide otherwise valid records. | | Load one measurement | `org.hypercerts.context.getMeasurement` | Exact record AT-URI in `uri`. | | List measurements | `org.hypercerts.context.listMeasurements` | Filter by publisher or subject. | @@ -121,7 +121,7 @@ These records are context related to other Hypercert records, not alternate acti | User task | Query NSID | Practical choice | |---|---|---| -| Load one location | `app.certified.location.getLocation` | Exact location AT-URI in `uri`. | +| Load one location | `app.certified.location.getLocation` | Exact location AT-URI in `uri`. `indexedAt` can be null. | | List/filter locations | `app.certified.location.listLocations` | Filter by publisher, URI, or location type. | | Load one feature | `org.hypercerts.entity.getFeature` | Exact feature AT-URI in `uri`; includes author hydration. | | List/filter features | `org.hypercerts.entity.listFeatures` | Use publisher, organization-record, or type filters. | diff --git a/.agents/skills/hypercerts-api/references/openapi.json b/.agents/skills/hypercerts-api/references/openapi.json index 84e2e950..1968c108 100644 --- a/.agents/skills/hypercerts-api/references/openapi.json +++ b/.agents/skills/hypercerts-api/references/openapi.json @@ -6,81 +6,59 @@ "description": "Public, read-only Hypercerts XRPC query endpoints. This static contract snapshot describes declared behavior, not availability on a particular deployment." }, "servers": [ - { "url": "https://test.api.hypercerts.dev", "description": "API test server (default)" } + { + "url": "https://test.api.hypercerts.dev", + "description": "API test server (default)" + } ], "tags": [ - { "name": "app.certified.actor" }, - { "name": "app.certified.badge" }, - { "name": "app.certified.feed" }, - { "name": "app.certified.graph" }, - { "name": "app.certified.link" }, - { "name": "app.certified.location" }, - { "name": "org.hypercerts.claim" }, - { "name": "org.hypercerts.collection" }, - { "name": "org.hypercerts.context" }, - { "name": "org.hypercerts.entity" }, - { "name": "org.hypercerts.funding" }, - { "name": "org.hypercerts.vocab" }, - { "name": "org.hypercerts.workscope" } + { + "name": "app.certified.actor" + }, + { + "name": "app.certified.badge" + }, + { + "name": "app.certified.feed" + }, + { + "name": "app.certified.graph" + }, + { + "name": "app.certified.link" + }, + { + "name": "app.certified.location" + }, + { + "name": "org.hypercerts.claim" + }, + { + "name": "org.hypercerts.collection" + }, + { + "name": "org.hypercerts.context" + }, + { + "name": "org.hypercerts.entity" + }, + { + "name": "org.hypercerts.funding" + }, + { + "name": "org.hypercerts.vocab" + }, + { + "name": "org.hypercerts.workscope" + } ], "paths": { - "/xrpc/app.certified.feed.getActorReactions": { - "get": { - "operationId": "app_certified_feed_getActorReactions", - "tags": ["app.certified.feed"], - "description": "Returns the indexed like and repost for each supplied subject occurrence by one actor. Authentication is not required. Subject matching ignores CID; duplicate inputs and request order are preserved. For each reaction collection, duplicate actor and subject URI pairs use the earliest valid createdAt; when it is absent or invalid, ordering falls back to indexedAt and then the database row's created_at timestamp, with reaction URI ascending on ties. A missing indexed reaction is null; query failures return an error.", - "parameters": [ - { - "name": "actor", - "in": "query", - "required": true, - "description": "Repository-owner DID of the actor whose reactions to look up.", - "schema": { "type": "string", "format": "did" } - }, - { - "name": "subjects", - "in": "query", - "required": true, - "description": "One or more full record AT-URIs with DID authorities, not handle authorities, supplied as repeated unbracketed query values. Results preserve each occurrence and its input order.", - "schema": { - "type": "array", - "minItems": 1, - "maxItems": 100, - "items": { "type": "string", "format": "at-uri" } - }, - "style": "form", - "explode": true - } - ], - "responses": { - "200": { - "description": "Successful response.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/app.certified.feed.getActorReactions.output" - } - } - } - } - }, - "x-lexicon-id": "app.certified.feed.getActorReactions", - "x-lexicon-errors": [ - { - "name": "InvalidRequest", - "description": "The actor DID, subjects array, subject AT-URI, or another query parameter is invalid." - }, - { - "name": "ActorReactionsQueryFailed", - "description": "The indexed actor reactions could not be queried or returned a malformed result; retry the request." - } - ] - } - }, "/xrpc/app.certified.actor.getOrganization": { "get": { "operationId": "app_certified_actor_getOrganization", - "tags": ["app.certified.actor"], + "tags": [ + "app.certified.actor" + ], "description": "Gets an actor's indexed organization sidecar, associated profile and location by DID. Authentication is not required.", "parameters": [ { @@ -88,7 +66,10 @@ "in": "query", "required": true, "description": "DID of the actor to look up.", - "schema": { "type": "string", "format": "did" } + "schema": { + "type": "string", + "format": "did" + } } ], "responses": { @@ -104,8 +85,6 @@ } }, "x-lexicon-id": "app.certified.actor.getOrganization", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/organization/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -125,7 +104,9 @@ "/xrpc/app.certified.actor.getOrganizations": { "get": { "operationId": "app_certified_actor_getOrganizations", - "tags": ["app.certified.actor"], + "tags": [ + "app.certified.actor" + ], "description": "Returns an indexed organization sidecar, associated profile and location for each supplied actor DID. Authentication is not required.", "parameters": [ { @@ -137,7 +118,10 @@ "type": "array", "minItems": 1, "maxItems": 100, - "items": { "type": "string", "format": "did" } + "items": { + "type": "string", + "format": "did" + } }, "style": "form", "explode": true @@ -156,8 +140,6 @@ } }, "x-lexicon-id": "app.certified.actor.getOrganizations", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/organization/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -173,7 +155,9 @@ "/xrpc/app.certified.actor.getProfile": { "get": { "operationId": "app_certified_actor_getProfile", - "tags": ["app.certified.actor"], + "tags": [ + "app.certified.actor" + ], "description": "Gets an indexed Certified profile by DID or handle. Handles resolve through the configured resolver's com.atproto.identity.resolveHandle endpoint; no DID document is fetched for independent verification. Authentication is not required.", "parameters": [ { @@ -181,7 +165,10 @@ "in": "query", "required": true, "description": "DID or handle of the profile actor.", - "schema": { "type": "string", "format": "at-identifier" } + "schema": { + "type": "string", + "format": "at-identifier" + } } ], "responses": { @@ -189,14 +176,14 @@ "description": "Successful response.", "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/app.certified.actor.getProfile.output" } + "schema": { + "$ref": "#/components/schemas/app.certified.actor.getProfile.output" + } } } } }, "x-lexicon-id": "app.certified.actor.getProfile", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/profile/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -224,7 +211,9 @@ "/xrpc/app.certified.actor.getProfiles": { "get": { "operationId": "app_certified_actor_getProfiles", - "tags": ["app.certified.actor"], + "tags": [ + "app.certified.actor" + ], "description": "Returns an indexed Certified profile for each supplied actor DID. Authentication is not required.", "parameters": [ { @@ -236,7 +225,10 @@ "type": "array", "minItems": 1, "maxItems": 100, - "items": { "type": "string", "format": "did" } + "items": { + "type": "string", + "format": "did" + } }, "style": "form", "explode": true @@ -247,14 +239,14 @@ "description": "Successful response.", "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/app.certified.actor.getProfiles.output" } + "schema": { + "$ref": "#/components/schemas/app.certified.actor.getProfiles.output" + } } } } }, "x-lexicon-id": "app.certified.actor.getProfiles", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/profile/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -270,7 +262,9 @@ "/xrpc/app.certified.actor.listOrganizations": { "get": { "operationId": "app_certified_actor_listOrganizations", - "tags": ["app.certified.actor"], + "tags": [ + "app.certified.actor" + ], "description": "Lists actors with indexed organization sidecars matching the supplied filters. Filters combine with AND, and values within each array filter are ORed. Authentication is not required.", "parameters": [ { @@ -281,7 +275,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "maxLength": 128 } + "items": { + "type": "string", + "maxLength": 128 + } }, "style": "form", "explode": true @@ -291,28 +288,44 @@ "in": "query", "required": false, "description": "Exact visibility match; omission is unrestricted, but records with no visibility value do not match.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } }, { "name": "sortDirection", "in": "query", "required": false, "description": "Sort by a valid zoned createdAt, otherwise indexedAt, falling back to row creation time; URI breaks ties. Default desc.", - "schema": { "type": "string", "enum": ["asc", "desc"] } + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + } }, { "name": "limit", "in": "query", "required": false, "description": "Page size; default 25.", - "schema": { "type": "integer", "minimum": 1, "maximum": 100 } + "schema": { + "type": "integer", + "default": 25, + "minimum": 1, + "maximum": 100 + } }, { "name": "cursor", "in": "query", "required": false, "description": "Opaque cursor bound to sortDirection; keep other parameters unchanged between pages.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } } ], "responses": { @@ -328,8 +341,6 @@ } }, "x-lexicon-id": "app.certified.actor.listOrganizations", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/organization/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -345,7 +356,9 @@ "/xrpc/app.certified.actor.listProfiles": { "get": { "operationId": "app_certified_actor_listProfiles", - "tags": ["app.certified.actor"], + "tags": [ + "app.certified.actor" + ], "description": "Lists indexed Certified profiles with pagination. Authentication is not required.", "parameters": [ { @@ -353,21 +366,35 @@ "in": "query", "required": false, "description": "Sort by a valid zoned createdAt, otherwise indexedAt, falling back to row creation time; URI breaks ties. Default desc.", - "schema": { "type": "string", "enum": ["asc", "desc"] } + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + } }, { "name": "limit", "in": "query", "required": false, "description": "Page size; default 25.", - "schema": { "type": "integer", "minimum": 1, "maximum": 100 } + "schema": { + "type": "integer", + "default": 25, + "minimum": 1, + "maximum": 100 + } }, { "name": "cursor", "in": "query", "required": false, "description": "Opaque cursor bound to sortDirection; keep parameters unchanged between pages. Pages are not a snapshot.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } } ], "responses": { @@ -375,14 +402,14 @@ "description": "Successful response.", "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/app.certified.actor.listProfiles.output" } + "schema": { + "$ref": "#/components/schemas/app.certified.actor.listProfiles.output" + } } } } }, "x-lexicon-id": "app.certified.actor.listProfiles", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/profile/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -398,7 +425,9 @@ "/xrpc/app.certified.actor.searchOrganizations": { "get": { "operationId": "app_certified_actor_searchOrganizations", - "tags": ["app.certified.actor"], + "tags": [ + "app.certified.actor" + ], "description": "Searches organizations by legal name, profile text and optional filters. Filters combine with AND, and values within each array filter are ORed. Authentication is not required.", "parameters": [ { @@ -406,7 +435,9 @@ "in": "query", "required": true, "description": "Trimmed text is matched literally and case-insensitively as a substring in the organization's legalName or in the associated profile's displayName or description. Organizations without a profile match on legalName alone. Blank text is unrestricted.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } }, { "name": "actors", @@ -416,7 +447,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "did" } + "items": { + "type": "string", + "format": "did" + } }, "style": "form", "explode": true @@ -429,7 +463,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "maxLength": 128 } + "items": { + "type": "string", + "maxLength": 128 + } }, "style": "form", "explode": true @@ -439,28 +476,44 @@ "in": "query", "required": false, "description": "Exact visibility match; omission is unrestricted, but records with no visibility value do not match.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } }, { "name": "sortDirection", "in": "query", "required": false, "description": "Sort by a valid zoned createdAt, otherwise indexedAt, falling back to row creation time; URI breaks ties. Default desc.", - "schema": { "type": "string", "enum": ["asc", "desc"] } + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + } }, { "name": "limit", "in": "query", "required": false, "description": "Page size; default 25.", - "schema": { "type": "integer", "minimum": 1, "maximum": 100 } + "schema": { + "type": "integer", + "default": 25, + "minimum": 1, + "maximum": 100 + } }, { "name": "cursor", "in": "query", "required": false, "description": "Opaque cursor bound to sortDirection; keep other parameters unchanged between pages.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } } ], "responses": { @@ -476,8 +529,6 @@ } }, "x-lexicon-id": "app.certified.actor.searchOrganizations", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/organization/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -493,7 +544,9 @@ "/xrpc/app.certified.actor.searchProfiles": { "get": { "operationId": "app_certified_actor_searchProfiles", - "tags": ["app.certified.actor"], + "tags": [ + "app.certified.actor" + ], "description": "Searches indexed Certified profiles by text, optionally restricted to actor DIDs. Filters combine with AND; values in the actor array are ORed. Authentication is not required.", "parameters": [ { @@ -501,14 +554,23 @@ "in": "query", "required": true, "description": "Trimmed text is matched literally and case-insensitively as a substring in displayName or description. Blank text is unrestricted.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } }, { "name": "sortDirection", "in": "query", "required": false, "description": "Sort by a valid zoned createdAt, otherwise indexedAt, falling back to row creation time; URI breaks ties. Default desc.", - "schema": { "type": "string", "enum": ["asc", "desc"] } + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + } }, { "name": "actors", @@ -518,7 +580,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "did" } + "items": { + "type": "string", + "format": "did" + } }, "style": "form", "explode": true @@ -528,14 +593,21 @@ "in": "query", "required": false, "description": "Page size; default 25.", - "schema": { "type": "integer", "minimum": 1, "maximum": 100 } + "schema": { + "type": "integer", + "default": 25, + "minimum": 1, + "maximum": 100 + } }, { "name": "cursor", "in": "query", "required": false, "description": "Opaque cursor bound to sortDirection; keep parameters unchanged between pages. Pages are not a snapshot.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } } ], "responses": { @@ -551,8 +623,6 @@ } }, "x-lexicon-id": "app.certified.actor.searchProfiles", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/profile/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -568,7 +638,9 @@ "/xrpc/app.certified.badge.getBadgeAward": { "get": { "operationId": "app_certified_badge_getBadgeAward", - "tags": ["app.certified.badge"], + "tags": [ + "app.certified.badge" + ], "description": "Gets a badge award and its recipient response by AT-URI without authentication.", "parameters": [ { @@ -576,7 +648,10 @@ "in": "query", "required": true, "description": "Full AT-URI of the badge-award record.", - "schema": { "type": "string", "format": "at-uri" } + "schema": { + "type": "string", + "format": "at-uri" + } } ], "responses": { @@ -592,8 +667,6 @@ } }, "x-lexicon-id": "app.certified.badge.getBadgeAward", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/badge-queries/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -613,7 +686,9 @@ "/xrpc/app.certified.badge.getBadgeDefinition": { "get": { "operationId": "app_certified_badge_getBadgeDefinition", - "tags": ["app.certified.badge"], + "tags": [ + "app.certified.badge" + ], "description": "Returns an indexed badge definition and its publisher actor. Authentication is not required.", "parameters": [ { @@ -621,7 +696,10 @@ "in": "query", "required": true, "description": "AT-URI of a badge definition with a DID authority; lookup matches the URI, not a record CID.", - "schema": { "type": "string", "format": "at-uri" } + "schema": { + "type": "string", + "format": "at-uri" + } } ], "responses": { @@ -637,8 +715,6 @@ } }, "x-lexicon-id": "app.certified.badge.getBadgeDefinition", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/badge-definitions/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -654,7 +730,9 @@ "/xrpc/app.certified.badge.getBadgeResponse": { "get": { "operationId": "app_certified_badge_getBadgeResponse", - "tags": ["app.certified.badge"], + "tags": [ + "app.certified.badge" + ], "description": "Gets one badge response by AT-URI without authentication.", "parameters": [ { @@ -662,7 +740,10 @@ "in": "query", "required": true, "description": "Full AT-URI of the badge-response record.", - "schema": { "type": "string", "format": "at-uri" } + "schema": { + "type": "string", + "format": "at-uri" + } } ], "responses": { @@ -678,8 +759,6 @@ } }, "x-lexicon-id": "app.certified.badge.getBadgeResponse", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/badge-queries/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -699,7 +778,9 @@ "/xrpc/app.certified.badge.listBadgeAwards": { "get": { "operationId": "app_certified_badge_listBadgeAwards", - "tags": ["app.certified.badge"], + "tags": [ + "app.certified.badge" + ], "description": "Lists public badge awards with recipient response status and pagination without authentication.", "parameters": [ { @@ -710,7 +791,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "did" } + "items": { + "type": "string", + "format": "did" + } }, "style": "form", "explode": true @@ -723,7 +807,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "at-uri" } + "items": { + "type": "string", + "format": "at-uri" + } }, "style": "form", "explode": true @@ -736,7 +823,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "maxLength": 100 } + "items": { + "type": "string", + "maxLength": 100 + } }, "style": "form", "explode": true @@ -746,7 +836,13 @@ "in": "query", "required": false, "description": "DIDs or full record AT-URIs with valid collection NSIDs.", - "schema": { "type": "array", "maxItems": 100, "items": { "type": "string" } }, + "schema": { + "type": "array", + "maxItems": 100, + "items": { + "type": "string" + } + }, "style": "form", "explode": true }, @@ -758,7 +854,14 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "enum": ["accepted", "rejected", "unanswered"] } + "items": { + "type": "string", + "enum": [ + "accepted", + "rejected", + "unanswered" + ] + } }, "style": "form", "explode": true @@ -768,28 +871,45 @@ "in": "query", "required": false, "description": "Sort direction for (createdAt, uri).", - "schema": { "type": "string", "enum": ["asc", "desc"], "default": "desc" } + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + } }, { "name": "limit", "in": "query", "required": false, "description": "Maximum awards returned.", - "schema": { "type": "integer", "default": 25, "minimum": 1, "maximum": 100 } + "schema": { + "type": "integer", + "default": 25, + "minimum": 1, + "maximum": 100 + } }, { "name": "cursor", "in": "query", "required": false, "description": "Opaque cursor from the previous page.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } }, { "name": "includeTotal", "in": "query", "required": false, "description": "When true, the output includes totalCount.", - "schema": { "type": "boolean", "default": false } + "schema": { + "type": "boolean", + "default": false + } } ], "responses": { @@ -805,10 +925,11 @@ } }, "x-lexicon-id": "app.certified.badge.listBadgeAwards", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/badge-queries/manifest.json" }, "x-lexicon-errors": [ - { "name": "InvalidRequest", "description": "A filter or page parameter is invalid." }, + { + "name": "InvalidRequest", + "description": "A filter or page parameter is invalid." + }, { "name": "BadgeAwardQueryFailed", "description": "The indexed badge awards could not be queried." @@ -819,7 +940,9 @@ "/xrpc/app.certified.badge.listBadgeDefinitions": { "get": { "operationId": "app_certified_badge_listBadgeDefinitions", - "tags": ["app.certified.badge"], + "tags": [ + "app.certified.badge" + ], "description": "Lists indexed badge definitions. Author and badgeType filters are combined with AND; values within each filter are matched with OR. Authentication is not required.", "parameters": [ { @@ -830,7 +953,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "did" } + "items": { + "type": "string", + "format": "did" + } }, "style": "form", "explode": true @@ -843,7 +969,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "maxLength": 100 } + "items": { + "type": "string", + "maxLength": 100 + } }, "style": "form", "explode": true @@ -853,21 +982,35 @@ "in": "query", "required": false, "description": "Selects ascending or descending order by createdAt, then AT-URI.", - "schema": { "type": "string", "enum": ["asc", "desc"], "default": "desc" } + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + } }, { "name": "limit", "in": "query", "required": false, "description": "Maximum number of definitions to return in the page.", - "schema": { "type": "integer", "default": 25, "minimum": 1, "maximum": 100 } + "schema": { + "type": "integer", + "default": 25, + "minimum": 1, + "maximum": 100 + } }, { "name": "cursor", "in": "query", "required": false, "description": "Opaque cursor from the previous page, bound to sortDirection. Keep other query parameters unchanged between pages.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } } ], "responses": { @@ -883,8 +1026,6 @@ } }, "x-lexicon-id": "app.certified.badge.listBadgeDefinitions", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/badge-definitions/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -896,7 +1037,9 @@ "/xrpc/app.certified.badge.listBadgeResponses": { "get": { "operationId": "app_certified_badge_listBadgeResponses", - "tags": ["app.certified.badge"], + "tags": [ + "app.certified.badge" + ], "description": "Lists raw public badge responses with optional award filtering and pagination without authentication.", "parameters": [ { @@ -904,28 +1047,45 @@ "in": "query", "required": false, "description": "Badge-award AT-URI to match against response records.", - "schema": { "type": "string", "format": "at-uri" } + "schema": { + "type": "string", + "format": "at-uri" + } }, { "name": "sortDirection", "in": "query", "required": false, "description": "Sort direction for (createdAt, uri).", - "schema": { "type": "string", "enum": ["asc", "desc"], "default": "desc" } + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + } }, { "name": "limit", "in": "query", "required": false, "description": "Maximum responses returned.", - "schema": { "type": "integer", "default": 25, "minimum": 1, "maximum": 100 } + "schema": { + "type": "integer", + "default": 25, + "minimum": 1, + "maximum": 100 + } }, { "name": "cursor", "in": "query", "required": false, "description": "Opaque cursor from the previous page.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } } ], "responses": { @@ -941,10 +1101,11 @@ } }, "x-lexicon-id": "app.certified.badge.listBadgeResponses", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/badge-queries/manifest.json" }, "x-lexicon-errors": [ - { "name": "InvalidRequest", "description": "A filter or page parameter is invalid." }, + { + "name": "InvalidRequest", + "description": "A filter or page parameter is invalid." + }, { "name": "BadgeResponseQueryFailed", "description": "The indexed badge responses could not be queried." @@ -955,7 +1116,9 @@ "/xrpc/app.certified.badge.searchBadgeDefinitions": { "get": { "operationId": "app_certified_badge_searchBadgeDefinitions", - "tags": ["app.certified.badge"], + "tags": [ + "app.certified.badge" + ], "description": "Searches badge definitions by title or description without authentication.", "parameters": [ { @@ -963,7 +1126,9 @@ "in": "query", "required": true, "description": "Text matched against definition titles and descriptions.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } }, { "name": "authors", @@ -973,7 +1138,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "did" } + "items": { + "type": "string", + "format": "did" + } }, "style": "form", "explode": true @@ -986,7 +1154,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "maxLength": 100 } + "items": { + "type": "string", + "maxLength": 100 + } }, "style": "form", "explode": true @@ -996,21 +1167,35 @@ "in": "query", "required": false, "description": "Sort direction for (createdAt, uri).", - "schema": { "type": "string", "enum": ["asc", "desc"], "default": "desc" } + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + } }, { "name": "limit", "in": "query", "required": false, "description": "Maximum definitions returned.", - "schema": { "type": "integer", "default": 25, "minimum": 1, "maximum": 100 } + "schema": { + "type": "integer", + "default": 25, + "minimum": 1, + "maximum": 100 + } }, { "name": "cursor", "in": "query", "required": false, "description": "Opaque cursor from the previous page.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } } ], "responses": { @@ -1026,8 +1211,6 @@ } }, "x-lexicon-id": "app.certified.badge.searchBadgeDefinitions", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/badge-queries/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -1043,7 +1226,9 @@ "/xrpc/app.certified.feed.getActorLikes": { "get": { "operationId": "app_certified_feed_getActorLikes", - "tags": ["app.certified.feed"], + "tags": [ + "app.certified.feed" + ], "description": "Lists an actor's indexed likes, one representative per subject URI regardless of subject CID. No authentication is required. Duplicates use the earliest createdAt, with URI ascending on ties. Returns raw like records including subject, via, and signatures when present; subjects are not hydrated and need not be indexed.", "parameters": [ { @@ -1051,28 +1236,45 @@ "in": "query", "required": true, "description": "Repository-owner DID of the actor whose likes to list.", - "schema": { "type": "string", "format": "did" } + "schema": { + "type": "string", + "format": "did" + } }, { "name": "sortDirection", "in": "query", "required": false, "description": "Sort by representative like createdAt and URI; defaults to desc.", - "schema": { "type": "string", "enum": ["asc", "desc"] } + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + } }, { "name": "limit", "in": "query", "required": false, "description": "Maximum relationships per page; defaults to 25.", - "schema": { "type": "integer", "minimum": 1, "maximum": 100 } + "schema": { + "type": "integer", + "default": 25, + "minimum": 1, + "maximum": 100 + } }, { "name": "cursor", "in": "query", "required": false, "description": "Opaque next-page cursor bound to sortDirection; keep all other parameters unchanged between pages.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } } ], "responses": { @@ -1080,14 +1282,14 @@ "description": "Successful response.", "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/app.certified.feed.getActorLikes.output" } + "schema": { + "$ref": "#/components/schemas/app.certified.feed.getActorLikes.output" + } } } } }, "x-lexicon-id": "app.certified.feed.getActorLikes", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/feed-reactions/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -1100,46 +1302,126 @@ ] } }, - "/xrpc/app.certified.feed.getActorReposts": { + "/xrpc/app.certified.feed.getActorReactions": { "get": { - "operationId": "app_certified_feed_getActorReposts", - "tags": ["app.certified.feed"], - "description": "Lists an actor's indexed reposts, one representative per subject URI regardless of subject CID. No authentication is required. Duplicates use the earliest createdAt, with URI ascending on ties. Returns raw repost records including subject, via, and signatures when present; subjects are not hydrated and need not be indexed.", + "operationId": "app_certified_feed_getActorReactions", + "tags": [ + "app.certified.feed" + ], + "description": "Returns the indexed like and repost for each supplied subject occurrence by one actor. Authentication is not required. Subject matching ignores CID; duplicate inputs and request order are preserved. For each reaction collection, duplicate actor and subject URI pairs use the earliest valid createdAt; when it is absent or invalid, ordering falls back to indexedAt and then the database row's created_at timestamp, with reaction URI ascending on ties. A missing indexed reaction is null; query failures return an error.", "parameters": [ { "name": "actor", "in": "query", "required": true, - "description": "Repository-owner DID of the actor whose reposts to list.", - "schema": { "type": "string", "format": "did" } - }, - { - "name": "sortDirection", - "in": "query", - "required": false, - "description": "Sort by representative repost createdAt and URI; defaults to desc.", - "schema": { "type": "string", "enum": ["asc", "desc"] } - }, - { - "name": "limit", - "in": "query", - "required": false, - "description": "Maximum relationships per page; defaults to 25.", - "schema": { "type": "integer", "minimum": 1, "maximum": 100 } + "description": "Repository-owner DID of the actor whose reactions to look up.", + "schema": { + "type": "string", + "format": "did" + } }, { - "name": "cursor", + "name": "subjects", "in": "query", - "required": false, - "description": "Opaque next-page cursor bound to sortDirection; keep all other parameters unchanged between pages.", - "schema": { "type": "string" } - } - ], - "responses": { - "200": { - "description": "Successful response.", - "content": { - "application/json": { + "required": true, + "description": "One or more full record AT-URIs with DID authorities, not handle authorities, supplied as repeated unbracketed query values. Results preserve each occurrence and its input order.", + "schema": { + "type": "array", + "minItems": 1, + "maxItems": 100, + "items": { + "type": "string", + "format": "at-uri" + } + }, + "style": "form", + "explode": true + } + ], + "responses": { + "200": { + "description": "Successful response.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/app.certified.feed.getActorReactions.output" + } + } + } + } + }, + "x-lexicon-id": "app.certified.feed.getActorReactions", + "x-lexicon-errors": [ + { + "name": "InvalidRequest", + "description": "The actor DID, subjects array, subject AT-URI, or another query parameter is invalid." + }, + { + "name": "ActorReactionsQueryFailed", + "description": "The indexed actor reactions could not be queried or returned a malformed result; retry the request." + } + ] + } + }, + "/xrpc/app.certified.feed.getActorReposts": { + "get": { + "operationId": "app_certified_feed_getActorReposts", + "tags": [ + "app.certified.feed" + ], + "description": "Lists an actor's indexed reposts, one representative per subject URI regardless of subject CID. No authentication is required. Duplicates use the earliest createdAt, with URI ascending on ties. Returns raw repost records including subject, via, and signatures when present; subjects are not hydrated and need not be indexed.", + "parameters": [ + { + "name": "actor", + "in": "query", + "required": true, + "description": "Repository-owner DID of the actor whose reposts to list.", + "schema": { + "type": "string", + "format": "did" + } + }, + { + "name": "sortDirection", + "in": "query", + "required": false, + "description": "Sort by representative repost createdAt and URI; defaults to desc.", + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + } + }, + { + "name": "limit", + "in": "query", + "required": false, + "description": "Maximum relationships per page; defaults to 25.", + "schema": { + "type": "integer", + "default": 25, + "minimum": 1, + "maximum": 100 + } + }, + { + "name": "cursor", + "in": "query", + "required": false, + "description": "Opaque next-page cursor bound to sortDirection; keep all other parameters unchanged between pages.", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Successful response.", + "content": { + "application/json": { "schema": { "$ref": "#/components/schemas/app.certified.feed.getActorReposts.output" } @@ -1148,8 +1430,6 @@ } }, "x-lexicon-id": "app.certified.feed.getActorReposts", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/feed-reactions/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -1165,7 +1445,9 @@ "/xrpc/app.certified.feed.getLikes": { "get": { "operationId": "app_certified_feed_getLikes", - "tags": ["app.certified.feed"], + "tags": [ + "app.certified.feed" + ], "description": "Lists distinct actors liking a subject record. No authentication is required. Matches subject.uri regardless of CID or whether the subject is indexed. Duplicate author and subject URI pairs use the earliest createdAt, with URI ascending on ties. Only the returned page is hydrated; missing sidecars are null and hydration failures return errors, not partial pages.", "parameters": [ { @@ -1173,28 +1455,45 @@ "in": "query", "required": true, "description": "Full DID-authority record AT-URI; any target collection is accepted.", - "schema": { "type": "string", "format": "at-uri" } + "schema": { + "type": "string", + "format": "at-uri" + } }, { "name": "sortDirection", "in": "query", "required": false, "description": "Sort by representative like createdAt and URI; defaults to desc.", - "schema": { "type": "string", "enum": ["asc", "desc"] } + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + } }, { "name": "limit", "in": "query", "required": false, "description": "Maximum relationships per page; defaults to 25.", - "schema": { "type": "integer", "minimum": 1, "maximum": 100 } + "schema": { + "type": "integer", + "default": 25, + "minimum": 1, + "maximum": 100 + } }, { "name": "cursor", "in": "query", "required": false, "description": "Opaque next-page cursor bound to sortDirection; keep all other parameters unchanged between pages.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } } ], "responses": { @@ -1202,14 +1501,14 @@ "description": "Successful response.", "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/app.certified.feed.getLikes.output" } + "schema": { + "$ref": "#/components/schemas/app.certified.feed.getLikes.output" + } } } } }, "x-lexicon-id": "app.certified.feed.getLikes", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/feed-reactions/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -1225,7 +1524,9 @@ "/xrpc/app.certified.feed.getReactionCounts": { "get": { "operationId": "app_certified_feed_getReactionCounts", - "tags": ["app.certified.feed"], + "tags": [ + "app.certified.feed" + ], "description": "Returns current indexed like and repost counts for a list of subject records. No authentication is required. Counts are distinct publisher DIDs and match subject.uri regardless of CID or whether the subject is indexed.", "parameters": [ { @@ -1237,7 +1538,10 @@ "type": "array", "minItems": 1, "maxItems": 100, - "items": { "type": "string", "format": "at-uri" } + "items": { + "type": "string", + "format": "at-uri" + } }, "style": "form", "explode": true @@ -1271,7 +1575,9 @@ "/xrpc/app.certified.feed.getReposts": { "get": { "operationId": "app_certified_feed_getReposts", - "tags": ["app.certified.feed"], + "tags": [ + "app.certified.feed" + ], "description": "Lists distinct actors reposting a subject record. No authentication is required. Matches subject.uri regardless of CID or whether the subject is indexed. Duplicate author and subject URI pairs use the earliest createdAt, with URI ascending on ties. Only the returned page is hydrated; missing sidecars are null and hydration failures return errors, not partial pages.", "parameters": [ { @@ -1279,28 +1585,45 @@ "in": "query", "required": true, "description": "Full DID-authority record AT-URI; any target collection is accepted.", - "schema": { "type": "string", "format": "at-uri" } + "schema": { + "type": "string", + "format": "at-uri" + } }, { "name": "sortDirection", "in": "query", "required": false, "description": "Sort by representative repost createdAt and URI; defaults to desc.", - "schema": { "type": "string", "enum": ["asc", "desc"] } + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + } }, { "name": "limit", "in": "query", "required": false, "description": "Maximum relationships per page; defaults to 25.", - "schema": { "type": "integer", "minimum": 1, "maximum": 100 } + "schema": { + "type": "integer", + "default": 25, + "minimum": 1, + "maximum": 100 + } }, { "name": "cursor", "in": "query", "required": false, "description": "Opaque next-page cursor bound to sortDirection; keep all other parameters unchanged between pages.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } } ], "responses": { @@ -1308,14 +1631,14 @@ "description": "Successful response.", "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/app.certified.feed.getReposts.output" } + "schema": { + "$ref": "#/components/schemas/app.certified.feed.getReposts.output" + } } } } }, "x-lexicon-id": "app.certified.feed.getReposts", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/feed-reactions/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -1331,7 +1654,9 @@ "/xrpc/app.certified.graph.getEntityFollow": { "get": { "operationId": "app_certified_graph_getEntityFollow", - "tags": ["app.certified.graph"], + "tags": [ + "app.certified.graph" + ], "description": "Returns the representative entity-follow record for an actor and entity AT-URI, or null if none is indexed. No authentication is required; lookup failures return errors rather than null.", "parameters": [ { @@ -1339,14 +1664,20 @@ "in": "query", "required": true, "description": "DID that published the entity-follow record.", - "schema": { "type": "string", "format": "did" } + "schema": { + "type": "string", + "format": "did" + } }, { "name": "entity", "in": "query", "required": true, "description": "Full AT-URI of the followed record using a DID authority; any target collection is accepted, and matching is by URI, not CID.", - "schema": { "type": "string", "format": "at-uri" } + "schema": { + "type": "string", + "format": "at-uri" + } } ], "responses": { @@ -1362,8 +1693,6 @@ } }, "x-lexicon-id": "app.certified.graph.getEntityFollow", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/entity-follow/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -1375,7 +1704,9 @@ "/xrpc/app.certified.graph.getEntityFollows": { "get": { "operationId": "app_certified_graph_getEntityFollows", - "tags": ["app.certified.graph"], + "tags": [ + "app.certified.graph" + ], "description": "Returns the representative raw entity-follow record, or null, for each requested actor-to-entity relationship. Authentication is not required. Supply 1–100 repeated entities values.", "parameters": [ { @@ -1383,7 +1714,11 @@ "in": "query", "required": true, "description": "DID that published the entity-follow records.", - "schema": { "type": "string", "format": "did", "maxLength": 2048 } + "schema": { + "type": "string", + "format": "did", + "maxLength": 2048 + } }, { "name": "entities", @@ -1394,7 +1729,11 @@ "type": "array", "minItems": 1, "maxItems": 100, - "items": { "type": "string", "format": "at-uri", "maxLength": 8192 } + "items": { + "type": "string", + "format": "at-uri", + "maxLength": 8192 + } }, "style": "form", "explode": true @@ -1413,8 +1752,6 @@ } }, "x-lexicon-id": "app.certified.graph.getEntityFollows", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/entity-follow/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -1430,7 +1767,9 @@ "/xrpc/app.certified.graph.getFollow": { "get": { "operationId": "app_certified_graph_getFollow", - "tags": ["app.certified.graph"], + "tags": [ + "app.certified.graph" + ], "description": "Returns the representative follow record for an actor-to-actor relationship, or null if none is indexed. No authentication is required.", "parameters": [ { @@ -1438,14 +1777,20 @@ "in": "query", "required": true, "description": "DID of the actor who published the follow record.", - "schema": { "type": "string", "format": "did" } + "schema": { + "type": "string", + "format": "did" + } }, { "name": "subject", "in": "query", "required": true, "description": "DID named as the follow record's subject.", - "schema": { "type": "string", "format": "did" } + "schema": { + "type": "string", + "format": "did" + } } ], "responses": { @@ -1453,23 +1798,28 @@ "description": "Successful response.", "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/app.certified.graph.getFollow.output" } + "schema": { + "$ref": "#/components/schemas/app.certified.graph.getFollow.output" + } } } } }, "x-lexicon-id": "app.certified.graph.getFollow", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/actor-follow/manifest.json" }, "x-lexicon-errors": [ - { "name": "InvalidRequest", "description": "A DID or query parameter is invalid." } + { + "name": "InvalidRequest", + "description": "A DID or query parameter is invalid." + } ] } }, "/xrpc/app.certified.graph.getFollowerCounts": { "get": { "operationId": "app_certified_graph_getFollowerCounts", - "tags": ["app.certified.graph"], + "tags": [ + "app.certified.graph" + ], "description": "Returns current indexed follower counts for a mixed list of accounts and entities. No authentication is required. A DID subject counts distinct publishers of app.certified.graph.follow records naming that DID; an AT-URI subject counts distinct publishers of app.certified.graph.entityFollow records naming that URI. Counts match listActorFollowers and listEntityFollowers totalCount, and do not require the subject to be indexed.", "parameters": [ { @@ -1519,7 +1869,9 @@ "/xrpc/app.certified.graph.getFollows": { "get": { "operationId": "app_certified_graph_getFollows", - "tags": ["app.certified.graph"], + "tags": [ + "app.certified.graph" + ], "description": "Returns the representative raw follow record, or null, for each requested actor-to-actor relationship. Authentication is not required. Supply 1–100 repeated subjects values.", "parameters": [ { @@ -1527,7 +1879,11 @@ "in": "query", "required": true, "description": "DID of the actor who published the follow records.", - "schema": { "type": "string", "format": "did", "maxLength": 2048 } + "schema": { + "type": "string", + "format": "did", + "maxLength": 2048 + } }, { "name": "subjects", @@ -1538,7 +1894,11 @@ "type": "array", "minItems": 1, "maxItems": 100, - "items": { "type": "string", "format": "did", "maxLength": 2048 } + "items": { + "type": "string", + "format": "did", + "maxLength": 2048 + } }, "style": "form", "explode": true @@ -1549,14 +1909,14 @@ "description": "Successful response.", "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/app.certified.graph.getFollows.output" } + "schema": { + "$ref": "#/components/schemas/app.certified.graph.getFollows.output" + } } } } }, "x-lexicon-id": "app.certified.graph.getFollows", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/actor-follow/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -1572,7 +1932,9 @@ "/xrpc/app.certified.graph.listActorFollowers": { "get": { "operationId": "app_certified_graph_listActorFollowers", - "tags": ["app.certified.graph"], + "tags": [ + "app.certified.graph" + ], "description": "Lists actors whose follow records name the requested DID as subject. No authentication is required; duplicate relationships are collapsed before pagination, and only the returned actors are hydrated.", "parameters": [ { @@ -1580,28 +1942,45 @@ "in": "query", "required": true, "description": "DID whose incoming follows are listed.", - "schema": { "type": "string", "format": "did" } + "schema": { + "type": "string", + "format": "did" + } }, { "name": "sortDirection", "in": "query", "required": false, "description": "Sorts by representative follow createdAt and URI; defaults to desc.", - "schema": { "type": "string", "enum": ["asc", "desc"] } + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + } }, { "name": "limit", "in": "query", "required": false, "description": "Maximum relationships per page; defaults to 25.", - "schema": { "type": "integer", "minimum": 1, "maximum": 100 } + "schema": { + "type": "integer", + "default": 25, + "minimum": 1, + "maximum": 100 + } }, { "name": "cursor", "in": "query", "required": false, "description": "Opaque next-page cursor bound to sortDirection; keep the other query parameters unchanged between pages.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } } ], "responses": { @@ -1617,17 +1996,20 @@ } }, "x-lexicon-id": "app.certified.graph.listActorFollowers", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/actor-follow/manifest.json" }, "x-lexicon-errors": [ - { "name": "InvalidRequest", "description": "A DID or query parameter is invalid." } + { + "name": "InvalidRequest", + "description": "A DID or query parameter is invalid." + } ] } }, "/xrpc/app.certified.graph.listActorFollowing": { "get": { "operationId": "app_certified_graph_listActorFollowing", - "tags": ["app.certified.graph"], + "tags": [ + "app.certified.graph" + ], "description": "Lists actors named as subjects by the requested DID's follow records. No authentication is required; duplicate relationships are collapsed before pagination, and only the returned actors are hydrated.", "parameters": [ { @@ -1635,28 +2017,45 @@ "in": "query", "required": true, "description": "DID whose outgoing follows are listed.", - "schema": { "type": "string", "format": "did" } + "schema": { + "type": "string", + "format": "did" + } }, { "name": "sortDirection", "in": "query", "required": false, "description": "Sorts by representative follow createdAt and URI; defaults to desc.", - "schema": { "type": "string", "enum": ["asc", "desc"] } + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + } }, { "name": "limit", "in": "query", "required": false, "description": "Maximum relationships per page; defaults to 25.", - "schema": { "type": "integer", "minimum": 1, "maximum": 100 } + "schema": { + "type": "integer", + "default": 25, + "minimum": 1, + "maximum": 100 + } }, { "name": "cursor", "in": "query", "required": false, "description": "Opaque next-page cursor bound to sortDirection; keep the other query parameters unchanged between pages.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } } ], "responses": { @@ -1672,17 +2071,20 @@ } }, "x-lexicon-id": "app.certified.graph.listActorFollowing", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/actor-follow/manifest.json" }, "x-lexicon-errors": [ - { "name": "InvalidRequest", "description": "A DID or query parameter is invalid." } + { + "name": "InvalidRequest", + "description": "A DID or query parameter is invalid." + } ] } }, "/xrpc/app.certified.graph.listEntityFollowers": { "get": { "operationId": "app_certified_graph_listEntityFollowers", - "tags": ["app.certified.graph"], + "tags": [ + "app.certified.graph" + ], "description": "Lists actors following an entity AT-URI. No authentication is required; duplicate actor–entity relationships use the earliest createdAt, with URI ascending on ties. totalCount reports distinct relationships before cursor and limit. Only the returned page is hydrated: missing profile and organization sidecars are null, while lookup failures return errors rather than partial pages.", "parameters": [ { @@ -1690,28 +2092,45 @@ "in": "query", "required": true, "description": "Full AT-URI of the followed record using a DID authority; any target collection is accepted, and matching is by URI, not CID.", - "schema": { "type": "string", "format": "at-uri" } + "schema": { + "type": "string", + "format": "at-uri" + } }, { "name": "sortDirection", "in": "query", "required": false, "description": "Sorts by representative follow createdAt and URI; defaults to desc.", - "schema": { "type": "string", "enum": ["asc", "desc"] } + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + } }, { "name": "limit", "in": "query", "required": false, "description": "Maximum relationships per page; defaults to 25.", - "schema": { "type": "integer", "minimum": 1, "maximum": 100 } + "schema": { + "type": "integer", + "default": 25, + "minimum": 1, + "maximum": 100 + } }, { "name": "cursor", "in": "query", "required": false, "description": "Opaque next-page cursor bound to sortDirection; keep the other query parameters unchanged between pages.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } } ], "responses": { @@ -1727,8 +2146,6 @@ } }, "x-lexicon-id": "app.certified.graph.listEntityFollowers", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/entity-follow/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -1740,7 +2157,9 @@ "/xrpc/app.certified.graph.listEntityFollowing": { "get": { "operationId": "app_certified_graph_listEntityFollowing", - "tags": ["app.certified.graph"], + "tags": [ + "app.certified.graph" + ], "description": "Lists entities followed by an actor DID. No authentication is required; duplicate actor–entity relationships use the earliest createdAt, with URI ascending on ties. Only returned-page targets are hydrated and resolved to the latest indexed record by URI; missing or unsupported targets retain their URI and follow with entity null, while lookup failures return errors rather than partial pages.", "parameters": [ { @@ -1748,28 +2167,45 @@ "in": "query", "required": true, "description": "DID whose outgoing entity follows are listed.", - "schema": { "type": "string", "format": "did" } + "schema": { + "type": "string", + "format": "did" + } }, { "name": "sortDirection", "in": "query", "required": false, "description": "Sorts by representative follow createdAt and URI; defaults to desc.", - "schema": { "type": "string", "enum": ["asc", "desc"] } + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + } }, { "name": "limit", "in": "query", "required": false, "description": "Maximum relationships per page; defaults to 25.", - "schema": { "type": "integer", "minimum": 1, "maximum": 100 } + "schema": { + "type": "integer", + "default": 25, + "minimum": 1, + "maximum": 100 + } }, { "name": "cursor", "in": "query", "required": false, "description": "Opaque next-page cursor bound to sortDirection; keep the other query parameters unchanged between pages.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } } ], "responses": { @@ -1785,8 +2221,6 @@ } }, "x-lexicon-id": "app.certified.graph.listEntityFollowing", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/entity-follow/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -1798,7 +2232,9 @@ "/xrpc/app.certified.graph.listRecentFollows": { "get": { "operationId": "app_certified_graph_listRecentFollows", - "tags": ["app.certified.graph"], + "tags": [ + "app.certified.graph" + ], "description": "Beta query for raw account- and entity-follow records from any publisher. No authentication is required; duplicates are preserved, and before is an exclusive bound on publisher-declared createdAt. Pages are not a snapshot, so late indexing or concurrent changes may cause records to be missed.", "parameters": [ { @@ -1806,21 +2242,31 @@ "in": "query", "required": false, "description": "Exclusive upper bound on publisher-declared createdAt, not indexedAt; omit to start with the newest records.", - "schema": { "type": "string", "format": "datetime" } + "schema": { + "type": "string", + "format": "datetime" + } }, { "name": "limit", "in": "query", "required": false, "description": "Maximum records per page; defaults to 25.", - "schema": { "type": "integer", "minimum": 1, "maximum": 100 } + "schema": { + "type": "integer", + "default": 25, + "minimum": 1, + "maximum": 100 + } }, { "name": "cursor", "in": "query", "required": false, "description": "Opaque next-page cursor; keep before unchanged between pages.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } } ], "responses": { @@ -1836,8 +2282,6 @@ } }, "x-lexicon-id": "app.certified.graph.listRecentFollows", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/recent-follows/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -1849,7 +2293,9 @@ "/xrpc/app.certified.link.getEvmLink": { "get": { "operationId": "app_certified_link_getEvmLink", - "tags": ["app.certified.link"], + "tags": [ + "app.certified.link" + ], "description": "Looks up an indexed EVM-link record by exact AT-URI and hydrates its actor. Authentication is not required.", "parameters": [ { @@ -1857,7 +2303,10 @@ "in": "query", "required": true, "description": "Full AT-URI of an app.certified.link.evm record with a DID authority.", - "schema": { "type": "string", "format": "at-uri" } + "schema": { + "type": "string", + "format": "at-uri" + } } ], "responses": { @@ -1865,14 +2314,14 @@ "description": "Successful response.", "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/app.certified.link.getEvmLink.output" } + "schema": { + "$ref": "#/components/schemas/app.certified.link.getEvmLink.output" + } } } } }, "x-lexicon-id": "app.certified.link.getEvmLink", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/evm-links/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -1888,7 +2337,9 @@ "/xrpc/app.certified.link.listEvmLinks": { "get": { "operationId": "app_certified_link_listEvmLinks", - "tags": ["app.certified.link"], + "tags": [ + "app.certified.link" + ], "description": "Lists indexed EVM-link records, optionally filtered by actor DID and wallet address. Authentication is not required.", "parameters": [ { @@ -1899,7 +2350,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "did" } + "items": { + "type": "string", + "format": "did" + } }, "style": "form", "explode": true @@ -1912,7 +2366,11 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "minLength": 42, "maxLength": 42 } + "items": { + "type": "string", + "minLength": 42, + "maxLength": 42 + } }, "style": "form", "explode": true @@ -1922,21 +2380,35 @@ "in": "query", "required": false, "description": "Order by the record's createdAt timestamp and then AT-URI.", - "schema": { "type": "string", "enum": ["asc", "desc"], "default": "desc" } + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + } }, { "name": "limit", "in": "query", "required": false, "description": "Maximum number of links to return.", - "schema": { "type": "integer", "default": 25, "minimum": 1, "maximum": 100 } + "schema": { + "type": "integer", + "default": 25, + "minimum": 1, + "maximum": 100 + } }, { "name": "cursor", "in": "query", "required": false, "description": "Opaque cursor from a previous page, bound to sortDirection.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } } ], "responses": { @@ -1944,14 +2416,14 @@ "description": "Successful response.", "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/app.certified.link.listEvmLinks.output" } + "schema": { + "$ref": "#/components/schemas/app.certified.link.listEvmLinks.output" + } } } } }, "x-lexicon-id": "app.certified.link.listEvmLinks", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/evm-links/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -1963,7 +2435,9 @@ "/xrpc/app.certified.location.getLocation": { "get": { "operationId": "app_certified_location_getLocation", - "tags": ["app.certified.location"], + "tags": [ + "app.certified.location" + ], "description": "Returns one indexed location by AT-URI; authentication is not required.", "parameters": [ { @@ -1971,7 +2445,10 @@ "in": "query", "required": true, "description": "Full location AT-URI with a DID authority; lookup matches the URI, not a CID.", - "schema": { "type": "string", "format": "at-uri" } + "schema": { + "type": "string", + "format": "at-uri" + } } ], "responses": { @@ -1987,17 +2464,24 @@ } }, "x-lexicon-id": "app.certified.location.getLocation", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/location/manifest.json" }, "x-lexicon-errors": [ - { "name": "RecordNotFound", "description": "No indexed location exists at this AT-URI." } + { + "name": "InvalidRequest", + "description": "The URI is missing, repeated, invalid, or not a location record AT-URI, or an unsupported parameter was supplied." + }, + { + "name": "RecordNotFound", + "description": "No indexed location exists at this AT-URI." + } ] } }, "/xrpc/app.certified.location.listLocations": { "get": { "operationId": "app_certified_location_listLocations", - "tags": ["app.certified.location"], + "tags": [ + "app.certified.location" + ], "description": "Lists indexed location records; authentication is not required. Array filters use repeated unbracketed query keys; filters combine with AND, values within each array with OR, and omitted filters are unrestricted.", "parameters": [ { @@ -2008,7 +2492,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "did" } + "items": { + "type": "string", + "format": "did" + } }, "style": "form", "explode": true @@ -2021,7 +2508,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "at-uri" } + "items": { + "type": "string", + "format": "at-uri" + } }, "style": "form", "explode": true @@ -2034,7 +2524,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "maxLength": 20 } + "items": { + "type": "string", + "maxLength": 20 + } }, "style": "form", "explode": true @@ -2044,21 +2537,35 @@ "in": "query", "required": false, "description": "Page size; defaults to 25.", - "schema": { "type": "integer", "minimum": 1, "maximum": 100 } + "schema": { + "type": "integer", + "default": 25, + "minimum": 1, + "maximum": 100 + } }, { "name": "cursor", "in": "query", "required": false, "description": "Opaque keyset cursor; keep all other parameters unchanged between pages. The cursor is bound to sortDirection, and pagination is not snapshot-isolated.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } }, { "name": "sortDirection", "in": "query", "required": false, "description": "Sort by a valid zoned createdAt; otherwise indexedAt or stored row creation time, then URI, all in this direction. Defaults to desc.", - "schema": { "type": "string", "enum": ["asc", "desc"] } + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + } } ], "responses": { @@ -2074,8 +2581,6 @@ } }, "x-lexicon-id": "app.certified.location.listLocations", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/location/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -2087,7 +2592,9 @@ "/xrpc/org.hypercerts.claim.getActivity": { "get": { "operationId": "org_hypercerts_claim_getActivity", - "tags": ["org.hypercerts.claim"], + "tags": [ + "org.hypercerts.claim" + ], "description": "Looks up one indexed activity by full AT-URI. Authentication is not required.", "parameters": [ { @@ -2095,7 +2602,10 @@ "in": "query", "required": true, "description": "Full AT-URI of the activity, using a DID authority.", - "schema": { "type": "string", "format": "at-uri" } + "schema": { + "type": "string", + "format": "at-uri" + } } ], "responses": { @@ -2103,14 +2613,14 @@ "description": "Successful response.", "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/org.hypercerts.claim.getActivity.output" } + "schema": { + "$ref": "#/components/schemas/org.hypercerts.claim.getActivity.output" + } } } } }, "x-lexicon-id": "org.hypercerts.claim.getActivity", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/shared/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -2130,7 +2640,9 @@ "/xrpc/org.hypercerts.claim.getContribution": { "get": { "operationId": "org_hypercerts_claim_getContribution", - "tags": ["org.hypercerts.claim"], + "tags": [ + "org.hypercerts.claim" + ], "description": "Looks up one contribution record by exact AT-URI; authentication is not required.", "parameters": [ { @@ -2138,7 +2650,10 @@ "in": "query", "required": true, "description": "Full AT-URI of the contribution record, using a DID authority.", - "schema": { "type": "string", "format": "at-uri" } + "schema": { + "type": "string", + "format": "at-uri" + } } ], "responses": { @@ -2154,8 +2669,6 @@ } }, "x-lexicon-id": "org.hypercerts.claim.getContribution", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/contribution/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -2175,7 +2688,9 @@ "/xrpc/org.hypercerts.claim.getContributorInformation": { "get": { "operationId": "org_hypercerts_claim_getContributorInformation", - "tags": ["org.hypercerts.claim"], + "tags": [ + "org.hypercerts.claim" + ], "description": "Publicly looks up one indexed contributor-information record by exact AT-URI and includes its publisher.", "parameters": [ { @@ -2183,7 +2698,10 @@ "in": "query", "required": true, "description": "Full contributor-information record AT-URI with a DID authority.", - "schema": { "type": "string", "format": "at-uri" } + "schema": { + "type": "string", + "format": "at-uri" + } } ], "responses": { @@ -2199,8 +2717,6 @@ } }, "x-lexicon-id": "org.hypercerts.claim.getContributorInformation", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/contributor-information/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -2220,7 +2736,9 @@ "/xrpc/org.hypercerts.claim.getRights": { "get": { "operationId": "org_hypercerts_claim_getRights", - "tags": ["org.hypercerts.claim"], + "tags": [ + "org.hypercerts.claim" + ], "description": "Looks up one indexed rights record by exact DID-authority AT-URI. Authentication is not required.", "parameters": [ { @@ -2228,7 +2746,10 @@ "in": "query", "required": true, "description": "Full AT-URI of a rights record, using a DID authority.", - "schema": { "type": "string", "format": "at-uri" } + "schema": { + "type": "string", + "format": "at-uri" + } } ], "responses": { @@ -2236,14 +2757,14 @@ "description": "Successful response.", "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/org.hypercerts.claim.getRights.output" } + "schema": { + "$ref": "#/components/schemas/org.hypercerts.claim.getRights.output" + } } } } }, "x-lexicon-id": "org.hypercerts.claim.getRights", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/rights/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -2259,7 +2780,9 @@ "/xrpc/org.hypercerts.claim.listActivities": { "get": { "operationId": "org_hypercerts_claim_listActivities", - "tags": ["org.hypercerts.claim"], + "tags": [ + "org.hypercerts.claim" + ], "description": "Lists indexed activities. Filters combine with AND; values within each array filter combine with OR, and duplicate values are ignored. Authentication is not required.", "parameters": [ { @@ -2270,7 +2793,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "did" } + "items": { + "type": "string", + "format": "did" + } }, "style": "form", "explode": true @@ -2280,8 +2806,10 @@ "in": "query", "required": false, "description": "Filter by whether the activity author has an app.certified.actor.organization/self record, regardless of profile presence.", - "schema": { "type": "boolean" } - }, + "schema": { + "type": "boolean" + } + }, { "name": "contributors", "in": "query", @@ -2290,7 +2818,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "did" } + "items": { + "type": "string", + "format": "did" + } }, "style": "form", "explode": true @@ -2303,7 +2834,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "did" } + "items": { + "type": "string", + "format": "did" + } }, "style": "form", "explode": true @@ -2316,7 +2850,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "at-uri" } + "items": { + "type": "string", + "format": "at-uri" + } }, "style": "form", "explode": true @@ -2326,21 +2863,35 @@ "in": "query", "required": false, "description": "Sort by activity createdAt, then URI; defaults to desc.", - "schema": { "type": "string", "enum": ["asc", "desc"] } + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + } }, { "name": "limit", "in": "query", "required": false, "description": "Maximum activities per page; defaults to 25.", - "schema": { "type": "integer", "minimum": 1, "maximum": 100 } + "schema": { + "type": "integer", + "default": 25, + "minimum": 1, + "maximum": 100 + } }, { "name": "cursor", "in": "query", "required": false, "description": "Opaque cursor for the next page, bound to sortDirection. Keep all other query parameters unchanged between pages.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } } ], "responses": { @@ -2356,8 +2907,6 @@ } }, "x-lexicon-id": "org.hypercerts.claim.listActivities", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/activity/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -2373,7 +2922,9 @@ "/xrpc/org.hypercerts.claim.listContributions": { "get": { "operationId": "org_hypercerts_claim_listContributions", - "tags": ["org.hypercerts.claim"], + "tags": [ + "org.hypercerts.claim" + ], "description": "Lists contribution records by publisher DID, sorted by createdAt and URI; authentication is not required.", "parameters": [ { @@ -2384,7 +2935,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "did" } + "items": { + "type": "string", + "format": "did" + } }, "style": "form", "explode": true @@ -2394,21 +2948,35 @@ "in": "query", "required": false, "description": "Sort direction for createdAt and URI; defaults to desc.", - "schema": { "type": "string", "enum": ["asc", "desc"], "default": "desc" } + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + } }, { "name": "limit", "in": "query", "required": false, "description": "Maximum records in a page from 1 to 100; defaults to 25.", - "schema": { "type": "integer", "default": 25, "minimum": 1, "maximum": 100 } + "schema": { + "type": "integer", + "default": 25, + "minimum": 1, + "maximum": 100 + } }, { "name": "cursor", "in": "query", "required": false, "description": "Opaque cursor bound to sortDirection; keep filters unchanged between pages.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } } ], "responses": { @@ -2424,8 +2992,6 @@ } }, "x-lexicon-id": "org.hypercerts.claim.listContributions", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/contribution/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -2441,7 +3007,9 @@ "/xrpc/org.hypercerts.claim.listContributorInformation": { "get": { "operationId": "org_hypercerts_claim_listContributorInformation", - "tags": ["org.hypercerts.claim"], + "tags": [ + "org.hypercerts.claim" + ], "description": "Publicly lists indexed contributor-information records with an optional publisher-DID filter and stable createdAt ordering.", "parameters": [ { @@ -2452,7 +3020,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "did" } + "items": { + "type": "string", + "format": "did" + } }, "style": "form", "explode": true @@ -2462,21 +3033,35 @@ "in": "query", "required": false, "description": "Direction for (createdAt, uri); defaults to desc.", - "schema": { "type": "string", "enum": ["asc", "desc"] } + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + } }, { "name": "limit", "in": "query", "required": false, "description": "Maximum records in the page; defaults to 25.", - "schema": { "type": "integer", "minimum": 1, "maximum": 100 } + "schema": { + "type": "integer", + "default": 25, + "minimum": 1, + "maximum": 100 + } }, { "name": "cursor", "in": "query", "required": false, "description": "Opaque cursor bound to sortDirection; keep other parameters unchanged between pages.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } } ], "responses": { @@ -2492,8 +3077,6 @@ } }, "x-lexicon-id": "org.hypercerts.claim.listContributorInformation", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/contributor-information/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -2509,7 +3092,9 @@ "/xrpc/org.hypercerts.claim.listRights": { "get": { "operationId": "org_hypercerts_claim_listRights", - "tags": ["org.hypercerts.claim"], + "tags": [ + "org.hypercerts.claim" + ], "description": "Lists indexed rights records with an optional publisher-DID filter. Authentication is not required.", "parameters": [ { @@ -2520,7 +3105,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "did" } + "items": { + "type": "string", + "format": "did" + } }, "style": "form", "explode": true @@ -2530,21 +3118,35 @@ "in": "query", "required": false, "description": "Direction for the (createdAt, uri) order; defaults to desc.", - "schema": { "type": "string", "enum": ["asc", "desc"] } + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + } }, { "name": "limit", "in": "query", "required": false, "description": "Maximum records in the page; defaults to 25.", - "schema": { "type": "integer", "minimum": 1, "maximum": 100 } + "schema": { + "type": "integer", + "default": 25, + "minimum": 1, + "maximum": 100 + } }, { "name": "cursor", "in": "query", "required": false, "description": "Opaque cursor from a previous page; keep the sort direction unchanged.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } } ], "responses": { @@ -2552,14 +3154,14 @@ "description": "Successful response.", "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/org.hypercerts.claim.listRights.output" } + "schema": { + "$ref": "#/components/schemas/org.hypercerts.claim.listRights.output" + } } } } }, "x-lexicon-id": "org.hypercerts.claim.listRights", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/rights/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -2571,7 +3173,9 @@ "/xrpc/org.hypercerts.claim.searchActivities": { "get": { "operationId": "org_hypercerts_claim_searchActivities", - "tags": ["org.hypercerts.claim"], + "tags": [ + "org.hypercerts.claim" + ], "description": "Searches indexed activities by a case-insensitive literal substring of title or shortDescription. Search and other filters combine with AND; values within each array filter combine with OR, and duplicate values are ignored. Authentication is not required.", "parameters": [ { @@ -2579,7 +3183,9 @@ "in": "query", "required": true, "description": "Literal, case-insensitive substring of title or shortDescription; surrounding whitespace is trimmed, and blank input applies no text filter.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } }, { "name": "authors", @@ -2589,7 +3195,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "did" } + "items": { + "type": "string", + "format": "did" + } }, "style": "form", "explode": true @@ -2599,7 +3208,9 @@ "in": "query", "required": false, "description": "Filter by whether the activity author has an app.certified.actor.organization/self record, regardless of profile presence.", - "schema": { "type": "boolean" } + "schema": { + "type": "boolean" + } }, { "name": "contributors", @@ -2609,7 +3220,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "did" } + "items": { + "type": "string", + "format": "did" + } }, "style": "form", "explode": true @@ -2622,7 +3236,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "did" } + "items": { + "type": "string", + "format": "did" + } }, "style": "form", "explode": true @@ -2635,7 +3252,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "at-uri" } + "items": { + "type": "string", + "format": "at-uri" + } }, "style": "form", "explode": true @@ -2645,21 +3265,35 @@ "in": "query", "required": false, "description": "Sort by activity createdAt, then URI; defaults to desc.", - "schema": { "type": "string", "enum": ["asc", "desc"] } + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + } }, { "name": "limit", "in": "query", "required": false, "description": "Maximum activities per page; defaults to 25.", - "schema": { "type": "integer", "minimum": 1, "maximum": 100 } + "schema": { + "type": "integer", + "default": 25, + "minimum": 1, + "maximum": 100 + } }, { "name": "cursor", "in": "query", "required": false, "description": "Opaque cursor for the next page, bound to sortDirection. Keep all other query parameters unchanged between pages.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } } ], "responses": { @@ -2675,8 +3309,6 @@ } }, "x-lexicon-id": "org.hypercerts.claim.searchActivities", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/activity/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -2692,7 +3324,9 @@ "/xrpc/org.hypercerts.collection.getCollection": { "get": { "operationId": "org_hypercerts_collection_getCollection", - "tags": ["org.hypercerts.collection"], + "tags": [ + "org.hypercerts.collection" + ], "description": "Looks up one indexed collection by exact AT-URI. Hydrates its author and exact-version location and tag sibling projections; the original collection record remains unchanged. Missing related target versions are null without hiding the collection. Authentication is not required.", "parameters": [ { @@ -2700,7 +3334,10 @@ "in": "query", "required": true, "description": "Full collection record AT-URI using a DID authority.", - "schema": { "type": "string", "format": "at-uri" } + "schema": { + "type": "string", + "format": "at-uri" + } } ], "responses": { @@ -2716,8 +3353,6 @@ } }, "x-lexicon-id": "org.hypercerts.collection.getCollection", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/shared/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -2733,7 +3368,9 @@ "/xrpc/org.hypercerts.collection.listCollectionItems": { "get": { "operationId": "org_hypercerts_collection_listCollectionItems", - "tags": ["org.hypercerts.collection"], + "tags": [ + "org.hypercerts.collection" + ], "description": "Resolves one collection's embedded items in source order, one level only. Each target must match the item's exact strong-reference URI+CID; nested collections are summaries, and unavailable versions or unsupported kinds return record null. Pagination follows the latest indexed collection at the same URI across pages, even after collection changes; no version-change error or restart is required. Item additions, removals, or reordering may cause skipped or repeated results. There is no sortDirection parameter. Authentication is not required.", "parameters": [ { @@ -2741,21 +3378,31 @@ "in": "query", "required": true, "description": "Full collection record AT-URI using a DID authority.", - "schema": { "type": "string", "format": "at-uri" } + "schema": { + "type": "string", + "format": "at-uri" + } }, { "name": "limit", "in": "query", "required": false, "description": "Maximum embedded items in the page; default 25.", - "schema": { "type": "integer", "minimum": 1, "maximum": 100 } + "schema": { + "type": "integer", + "default": 25, + "minimum": 1, + "maximum": 100 + } }, { "name": "cursor", "in": "query", "required": false, "description": "Opaque item-pagination cursor. Continue with the same collection URI; it is not bound to a collection version.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } } ], "responses": { @@ -2771,8 +3418,6 @@ } }, "x-lexicon-id": "org.hypercerts.collection.listCollectionItems", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/shared/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -2788,7 +3433,9 @@ "/xrpc/org.hypercerts.collection.listCollections": { "get": { "operationId": "org_hypercerts_collection_listCollections", - "tags": ["org.hypercerts.collection"], + "tags": [ + "org.hypercerts.collection" + ], "description": "Lists indexed collections. Pass array filters as repeated query parameters; filters combine with AND, while values in each array are ORed except tagUris, which requires every supplied URI. Authentication is not required.", "parameters": [ { @@ -2799,7 +3446,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "did" } + "items": { + "type": "string", + "format": "did" + } }, "style": "form", "explode": true @@ -2809,7 +3459,9 @@ "in": "query", "required": false, "description": "Filter by the author's organization/self record; false matches absence regardless of profile presence.", - "schema": { "type": "boolean" } + "schema": { + "type": "boolean" + } }, { "name": "types", @@ -2819,7 +3471,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "maxLength": 64 } + "items": { + "type": "string", + "maxLength": 64 + } }, "style": "form", "explode": true @@ -2832,7 +3487,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "at-uri" } + "items": { + "type": "string", + "format": "at-uri" + } }, "style": "form", "explode": true @@ -2845,7 +3503,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "at-uri" } + "items": { + "type": "string", + "format": "at-uri" + } }, "style": "form", "explode": true @@ -2858,7 +3519,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "at-uri" } + "items": { + "type": "string", + "format": "at-uri" + } }, "style": "form", "explode": true @@ -2868,21 +3532,35 @@ "in": "query", "required": false, "description": "Direction for (createdAt, uri) ordering; defaults to desc.", - "schema": { "type": "string", "enum": ["asc", "desc"] } + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + } }, { "name": "limit", "in": "query", "required": false, "description": "Maximum collections per page; defaults to 25.", - "schema": { "type": "integer", "minimum": 1, "maximum": 100 } + "schema": { + "type": "integer", + "default": 25, + "minimum": 1, + "maximum": 100 + } }, { "name": "cursor", "in": "query", "required": false, "description": "Opaque cursor from a previous response; use the same sortDirection.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } } ], "responses": { @@ -2898,8 +3576,6 @@ } }, "x-lexicon-id": "org.hypercerts.collection.listCollections", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/collection/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -2911,7 +3587,9 @@ "/xrpc/org.hypercerts.collection.searchCollections": { "get": { "operationId": "org_hypercerts_collection_searchCollections", - "tags": ["org.hypercerts.collection"], + "tags": [ + "org.hypercerts.collection" + ], "description": "Searches collection title or shortDescription for the complete trimmed text as a case-insensitive literal substring; blank text adds no search restriction. Other filters combine with search using AND, with OR within arrays except tagUris, which requires every supplied URI. Authentication is not required.", "parameters": [ { @@ -2919,7 +3597,9 @@ "in": "query", "required": true, "description": "Case-insensitive literal substring in title or shortDescription; blank trimmed text adds no search restriction.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } }, { "name": "authors", @@ -2929,7 +3609,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "did" } + "items": { + "type": "string", + "format": "did" + } }, "style": "form", "explode": true @@ -2939,7 +3622,9 @@ "in": "query", "required": false, "description": "Filter by the author's organization/self record; false matches absence regardless of profile presence.", - "schema": { "type": "boolean" } + "schema": { + "type": "boolean" + } }, { "name": "types", @@ -2949,7 +3634,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "maxLength": 64 } + "items": { + "type": "string", + "maxLength": 64 + } }, "style": "form", "explode": true @@ -2962,7 +3650,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "at-uri" } + "items": { + "type": "string", + "format": "at-uri" + } }, "style": "form", "explode": true @@ -2975,7 +3666,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "at-uri" } + "items": { + "type": "string", + "format": "at-uri" + } }, "style": "form", "explode": true @@ -2988,7 +3682,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "at-uri" } + "items": { + "type": "string", + "format": "at-uri" + } }, "style": "form", "explode": true @@ -2998,21 +3695,35 @@ "in": "query", "required": false, "description": "Direction for (createdAt, uri) ordering; defaults to desc.", - "schema": { "type": "string", "enum": ["asc", "desc"] } + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + } }, { "name": "limit", "in": "query", "required": false, "description": "Maximum collections per page; defaults to 25.", - "schema": { "type": "integer", "minimum": 1, "maximum": 100 } + "schema": { + "type": "integer", + "default": 25, + "minimum": 1, + "maximum": 100 + } }, { "name": "cursor", "in": "query", "required": false, "description": "Opaque cursor from a previous response; use the same sortDirection.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } } ], "responses": { @@ -3028,8 +3739,6 @@ } }, "x-lexicon-id": "org.hypercerts.collection.searchCollections", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/collection/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -3041,7 +3750,9 @@ "/xrpc/org.hypercerts.context.getAcknowledgement": { "get": { "operationId": "org_hypercerts_context_getAcknowledgement", - "tags": ["org.hypercerts.context"], + "tags": [ + "org.hypercerts.context" + ], "description": "Gets one public acknowledgement by exact AT-URI; authentication is not required.", "parameters": [ { @@ -3049,7 +3760,10 @@ "in": "query", "required": true, "description": "Acknowledgement record AT-URI with a DID authority.", - "schema": { "type": "string", "format": "at-uri" } + "schema": { + "type": "string", + "format": "at-uri" + } } ], "responses": { @@ -3065,8 +3779,6 @@ } }, "x-lexicon-id": "org.hypercerts.context.getAcknowledgement", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/acknowledgements/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -3086,7 +3798,9 @@ "/xrpc/org.hypercerts.context.getAttachment": { "get": { "operationId": "org_hypercerts_context_getAttachment", - "tags": ["org.hypercerts.context"], + "tags": [ + "org.hypercerts.context" + ], "description": "Returns the current indexed attachment at the given AT-URI with its publisher view. Authentication is not required.", "parameters": [ { @@ -3094,7 +3808,10 @@ "in": "query", "required": true, "description": "AT-URI of the attachment record, using a DID authority; lookup is by URI only, not a specific CID/version.", - "schema": { "type": "string", "format": "at-uri" } + "schema": { + "type": "string", + "format": "at-uri" + } } ], "responses": { @@ -3110,8 +3827,6 @@ } }, "x-lexicon-id": "org.hypercerts.context.getAttachment", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/context-attachments/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -3131,7 +3846,9 @@ "/xrpc/org.hypercerts.context.getCommentCounts": { "get": { "operationId": "org_hypercerts_context_getCommentCounts", - "tags": ["org.hypercerts.context"], + "tags": [ + "org.hypercerts.context" + ], "description": "Returns indexed comment counts for a list of subject records, with no authentication required. A comment is an org.hypercerts.context.attachment with contentType \"comment\" whose subjects include the record; every comment record counts, even several by the same author, and matching uses subjects[].uri, ignoring CID and whether the subject is indexed.", "parameters": [ { @@ -3181,7 +3898,9 @@ "/xrpc/org.hypercerts.context.getEvaluation": { "get": { "operationId": "org_hypercerts_context_getEvaluation", - "tags": ["org.hypercerts.context"], + "tags": [ + "org.hypercerts.context" + ], "description": "Returns the indexed evaluation at the given AT-URI with its publisher and evaluator views. Invalid evaluator entries are omitted from the hydrated projection while the original record is preserved. Authentication is not required.", "parameters": [ { @@ -3189,7 +3908,10 @@ "in": "query", "required": true, "description": "AT-URI of the evaluation record, using a DID authority; lookup is by URI only, not a specific CID/version.", - "schema": { "type": "string", "format": "at-uri" } + "schema": { + "type": "string", + "format": "at-uri" + } } ], "responses": { @@ -3205,8 +3927,6 @@ } }, "x-lexicon-id": "org.hypercerts.context.getEvaluation", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/context-evaluation/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -3222,7 +3942,9 @@ "/xrpc/org.hypercerts.context.getMeasurement": { "get": { "operationId": "org_hypercerts_context_getMeasurement", - "tags": ["org.hypercerts.context"], + "tags": [ + "org.hypercerts.context" + ], "description": "Gets an indexed measurement by exact AT-URI and hydrates its publisher. Authentication is not required.", "parameters": [ { @@ -3230,7 +3952,10 @@ "in": "query", "required": true, "description": "Full measurement record AT-URI using a DID authority.", - "schema": { "type": "string", "format": "at-uri" } + "schema": { + "type": "string", + "format": "at-uri" + } } ], "responses": { @@ -3246,8 +3971,6 @@ } }, "x-lexicon-id": "org.hypercerts.context.getMeasurement", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/context-measurements/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -3263,7 +3986,9 @@ "/xrpc/org.hypercerts.context.listAcknowledgements": { "get": { "operationId": "org_hypercerts_context_listAcknowledgements", - "tags": ["org.hypercerts.context"], + "tags": [ + "org.hypercerts.context" + ], "description": "Lists public acknowledgements by publisher or subject; authentication is not required.", "parameters": [ { @@ -3274,7 +3999,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "did" } + "items": { + "type": "string", + "format": "did" + } }, "style": "form", "explode": true @@ -3287,7 +4015,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "at-uri" } + "items": { + "type": "string", + "format": "at-uri" + } }, "style": "form", "explode": true @@ -3297,21 +4028,35 @@ "in": "query", "required": false, "description": "Sort direction for createdAt and URI; default desc.", - "schema": { "type": "string", "enum": ["asc", "desc"] } + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + } }, { "name": "limit", "in": "query", "required": false, "description": "Maximum records per page.", - "schema": { "type": "integer", "default": 25, "minimum": 1, "maximum": 100 } + "schema": { + "type": "integer", + "default": 25, + "minimum": 1, + "maximum": 100 + } }, { "name": "cursor", "in": "query", "required": false, "description": "Opaque next-page cursor bound to sortDirection; keep other parameters unchanged.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } } ], "responses": { @@ -3327,8 +4072,6 @@ } }, "x-lexicon-id": "org.hypercerts.context.listAcknowledgements", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/acknowledgements/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -3344,7 +4087,9 @@ "/xrpc/org.hypercerts.context.listAttachments": { "get": { "operationId": "org_hypercerts_context_listAttachments", - "tags": ["org.hypercerts.context"], + "tags": [ + "org.hypercerts.context" + ], "description": "Lists indexed attachments with optional publisher, record URI, subject URI, and content-type filters. Values within each array filter use OR; distinct filters use AND, and duplicate values are ignored. Authentication is not required.", "parameters": [ { @@ -3355,7 +4100,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "did" } + "items": { + "type": "string", + "format": "did" + } }, "style": "form", "explode": true @@ -3368,7 +4116,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "at-uri" } + "items": { + "type": "string", + "format": "at-uri" + } }, "style": "form", "explode": true @@ -3381,7 +4132,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "at-uri" } + "items": { + "type": "string", + "format": "at-uri" + } }, "style": "form", "explode": true @@ -3391,7 +4145,13 @@ "in": "query", "required": false, "description": "Exact matches on record.contentType; this is not a file MIME-type filter.", - "schema": { "type": "array", "maxItems": 100, "items": { "type": "string" } }, + "schema": { + "type": "array", + "maxItems": 100, + "items": { + "type": "string" + } + }, "style": "form", "explode": true }, @@ -3400,21 +4160,35 @@ "in": "query", "required": false, "description": "Sort direction by (createdAt, uri); defaults to desc.", - "schema": { "type": "string", "enum": ["asc", "desc"] } + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + } }, { "name": "limit", "in": "query", "required": false, "description": "Maximum page size; defaults to 25.", - "schema": { "type": "integer", "minimum": 1, "maximum": 100 } + "schema": { + "type": "integer", + "default": 25, + "minimum": 1, + "maximum": 100 + } }, { "name": "cursor", "in": "query", "required": false, "description": "Opaque cursor tied to sortDirection; keep all other parameters unchanged between pages.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } } ], "responses": { @@ -3430,8 +4204,6 @@ } }, "x-lexicon-id": "org.hypercerts.context.listAttachments", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/context-attachments/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -3447,7 +4219,9 @@ "/xrpc/org.hypercerts.context.listEvaluations": { "get": { "operationId": "org_hypercerts_context_listEvaluations", - "tags": ["org.hypercerts.context"], + "tags": [ + "org.hypercerts.context" + ], "description": "Lists indexed evaluations with optional publisher, evaluator, and subject filters. Values within each array filter use OR; distinct filters use AND. Records remain listed when evaluator entries cannot be projected; malformed entries are omitted from hydrated views while the original record is preserved. Authentication is not required.", "parameters": [ { @@ -3458,7 +4232,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "did" } + "items": { + "type": "string", + "format": "did" + } }, "style": "form", "explode": true @@ -3471,7 +4248,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "did" } + "items": { + "type": "string", + "format": "did" + } }, "style": "form", "explode": true @@ -3484,7 +4264,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "at-uri" } + "items": { + "type": "string", + "format": "at-uri" + } }, "style": "form", "explode": true @@ -3494,21 +4277,35 @@ "in": "query", "required": false, "description": "Sort direction by (createdAt, uri); defaults to desc.", - "schema": { "type": "string", "enum": ["asc", "desc"] } + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + } }, { "name": "limit", "in": "query", "required": false, "description": "Maximum page size; defaults to 25.", - "schema": { "type": "integer", "minimum": 1, "maximum": 100 } + "schema": { + "type": "integer", + "default": 25, + "minimum": 1, + "maximum": 100 + } }, { "name": "cursor", "in": "query", "required": false, "description": "Opaque cursor tied to sortDirection; keep all other parameters unchanged between pages.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } } ], "responses": { @@ -3524,8 +4321,6 @@ } }, "x-lexicon-id": "org.hypercerts.context.listEvaluations", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/context-evaluation/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -3537,7 +4332,9 @@ "/xrpc/org.hypercerts.context.listMeasurements": { "get": { "operationId": "org_hypercerts_context_listMeasurements", - "tags": ["org.hypercerts.context"], + "tags": [ + "org.hypercerts.context" + ], "description": "Lists measurements with optional publisher and subject filters. Authentication is not required.", "parameters": [ { @@ -3548,7 +4345,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "did" } + "items": { + "type": "string", + "format": "did" + } }, "style": "form", "explode": true @@ -3561,7 +4361,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "at-uri" } + "items": { + "type": "string", + "format": "at-uri" + } }, "style": "form", "explode": true @@ -3571,21 +4374,36 @@ "in": "query", "required": false, "description": "Sort by createdAt and URI; default desc.", - "schema": { "type": "string", "enum": ["asc", "desc"], "default": "desc" } + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + } }, { "name": "limit", "in": "query", "required": false, "description": "Maximum page size; default 25.", - "schema": { "type": "integer", "default": 25, "minimum": 1, "maximum": 100 } + "schema": { + "type": "integer", + "default": 25, + "minimum": 1, + "maximum": 100 + } }, { "name": "cursor", "in": "query", "required": false, "description": "Opaque cursor tied to sortDirection; retain other filters between pages.", - "schema": { "type": "string", "maxLength": 8192 } + "schema": { + "type": "string", + "maxLength": 8192 + } } ], "responses": { @@ -3601,8 +4419,6 @@ } }, "x-lexicon-id": "org.hypercerts.context.listMeasurements", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/context-measurements/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -3614,7 +4430,9 @@ "/xrpc/org.hypercerts.entity.getFeature": { "get": { "operationId": "org_hypercerts_entity_getFeature", - "tags": ["org.hypercerts.entity"], + "tags": [ + "org.hypercerts.entity" + ], "description": "Looks up one indexed feature by exact AT-URI with author hydration; authentication is not required.", "parameters": [ { @@ -3622,7 +4440,10 @@ "in": "query", "required": true, "description": "Full feature record AT-URI using a DID authority.", - "schema": { "type": "string", "format": "at-uri" } + "schema": { + "type": "string", + "format": "at-uri" + } } ], "responses": { @@ -3630,27 +4451,32 @@ "description": "Successful response.", "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/org.hypercerts.entity.getFeature.output" } + "schema": { + "$ref": "#/components/schemas/org.hypercerts.entity.getFeature.output" + } } } } }, "x-lexicon-id": "org.hypercerts.entity.getFeature", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/features/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", "description": "The URI is invalid or is not a feature record AT-URI." }, - { "name": "RecordNotFound", "description": "No indexed feature exists at this AT-URI." } + { + "name": "RecordNotFound", + "description": "No indexed feature exists at this AT-URI." + } ] } }, "/xrpc/org.hypercerts.entity.listFeatures": { "get": { "operationId": "org_hypercerts_entity_listFeatures", - "tags": ["org.hypercerts.entity"], + "tags": [ + "org.hypercerts.entity" + ], "description": "Lists indexed features with filters and direction-bound pagination; authentication is not required.", "parameters": [ { @@ -3661,7 +4487,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "did" } + "items": { + "type": "string", + "format": "did" + } }, "style": "form", "explode": true @@ -3671,7 +4500,9 @@ "in": "query", "required": false, "description": "Whether the author has an organization self record; false is independent of profile presence.", - "schema": { "type": "boolean" } + "schema": { + "type": "boolean" + } }, { "name": "types", @@ -3695,21 +4526,36 @@ "in": "query", "required": false, "description": "Direction for sorting by createdAt and URI.", - "schema": { "type": "string", "enum": ["asc", "desc"], "default": "desc" } + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + } }, { "name": "limit", "in": "query", "required": false, "description": "Maximum number of features in the page.", - "schema": { "type": "integer", "default": 25, "minimum": 1, "maximum": 100 } + "schema": { + "type": "integer", + "default": 25, + "minimum": 1, + "maximum": 100 + } }, { "name": "cursor", "in": "query", "required": false, "description": "Opaque cursor from the previous page, bound to sortDirection.", - "schema": { "type": "string", "maxLength": 32768 } + "schema": { + "type": "string", + "maxLength": 32768 + } } ], "responses": { @@ -3725,8 +4571,6 @@ } }, "x-lexicon-id": "org.hypercerts.entity.listFeatures", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/features/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -3738,7 +4582,9 @@ "/xrpc/org.hypercerts.funding.getReceipt": { "get": { "operationId": "org_hypercerts_funding_getReceipt", - "tags": ["org.hypercerts.funding"], + "tags": [ + "org.hypercerts.funding" + ], "description": "Returns one indexed funding receipt and hydrates its publisher actor. Authentication is not required.", "parameters": [ { @@ -3746,7 +4592,10 @@ "in": "query", "required": true, "description": "Funding-receipt AT-URI using a DID authority; lookup matches the URI only, not a CID.", - "schema": { "type": "string", "format": "at-uri" } + "schema": { + "type": "string", + "format": "at-uri" + } } ], "responses": { @@ -3762,8 +4611,6 @@ } }, "x-lexicon-id": "org.hypercerts.funding.getReceipt", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/funding/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -3783,7 +4630,9 @@ "/xrpc/org.hypercerts.funding.listReceipts": { "get": { "operationId": "org_hypercerts_funding_listReceipts", - "tags": ["org.hypercerts.funding"], + "tags": [ + "org.hypercerts.funding" + ], "description": "Lists indexed funding receipts matching the supplied filters: filters combine with AND, while values within an array combine with OR. Repeat array parameters to supply multiple values; duplicates are ignored. Authentication is not required.", "parameters": [ { @@ -3794,7 +4643,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "did" } + "items": { + "type": "string", + "format": "did" + } }, "style": "form", "explode": true @@ -3807,7 +4659,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "at-uri" } + "items": { + "type": "string", + "format": "at-uri" + } }, "style": "form", "explode": true @@ -3817,7 +4672,13 @@ "in": "query", "required": false, "description": "Sender DIDs or full record AT-URIs with a DID authority. DIDs match only the DID variant; AT-URIs match only the strong-reference URI, not CID. Resolve handles to DIDs; invalid entries reject the request with the parameter and entry identified.", - "schema": { "type": "array", "maxItems": 100, "items": { "type": "string" } }, + "schema": { + "type": "array", + "maxItems": 100, + "items": { + "type": "string" + } + }, "style": "form", "explode": true }, @@ -3826,7 +4687,13 @@ "in": "query", "required": false, "description": "Recipient DIDs or full record AT-URIs with a DID authority. DIDs match only the DID variant; AT-URIs match only the strong-reference URI, not CID. Resolve handles to DIDs; invalid entries reject the request with the parameter and entry identified.", - "schema": { "type": "array", "maxItems": 100, "items": { "type": "string" } }, + "schema": { + "type": "array", + "maxItems": 100, + "items": { + "type": "string" + } + }, "style": "form", "explode": true }, @@ -3838,9 +4705,12 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "at-uri" } - }, - "style": "form", + "items": { + "type": "string", + "format": "at-uri" + } + }, + "style": "form", "explode": true }, { @@ -3848,7 +4718,13 @@ "in": "query", "required": false, "description": "Exact transaction ID matches; values are not normalized.", - "schema": { "type": "array", "maxItems": 100, "items": { "type": "string" } }, + "schema": { + "type": "array", + "maxItems": 100, + "items": { + "type": "string" + } + }, "style": "form", "explode": true }, @@ -3857,21 +4733,35 @@ "in": "query", "required": false, "description": "Direction for ordering by createdAt then URI; defaults to desc.", - "schema": { "type": "string", "enum": ["asc", "desc"] } + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + } }, { "name": "limit", "in": "query", "required": false, "description": "Maximum receipts per page; default 25.", - "schema": { "type": "integer", "minimum": 1, "maximum": 100 } + "schema": { + "type": "integer", + "default": 25, + "minimum": 1, + "maximum": 100 + } }, { "name": "cursor", "in": "query", "required": false, "description": "Opaque cursor bound to sortDirection; keep all other parameters unchanged between pages.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } } ], "responses": { @@ -3887,8 +4777,6 @@ } }, "x-lexicon-id": "org.hypercerts.funding.listReceipts", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/funding/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -3904,7 +4792,9 @@ "/xrpc/org.hypercerts.vocab.getVocabTag": { "get": { "operationId": "org_hypercerts_vocab_getVocabTag", - "tags": ["org.hypercerts.vocab"], + "tags": [ + "org.hypercerts.vocab" + ], "description": "Looks up one published vocabulary tag by full DID-authority AT-URI and returns its unchanged record with publisher details; authentication is not required.", "parameters": [ { @@ -3912,7 +4802,10 @@ "in": "query", "required": true, "description": "Full AT-URI of the vocabulary-tag record, using a DID authority.", - "schema": { "type": "string", "format": "at-uri" } + "schema": { + "type": "string", + "format": "at-uri" + } } ], "responses": { @@ -3920,14 +4813,14 @@ "description": "Successful response.", "content": { "application/json": { - "schema": { "$ref": "#/components/schemas/org.hypercerts.vocab.getVocabTag.output" } + "schema": { + "$ref": "#/components/schemas/org.hypercerts.vocab.getVocabTag.output" + } } } } }, "x-lexicon-id": "org.hypercerts.vocab.getVocabTag", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/vocab/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -3947,7 +4840,9 @@ "/xrpc/org.hypercerts.vocab.listVocabTags": { "get": { "operationId": "org_hypercerts_vocab_listVocabTags", - "tags": ["org.hypercerts.vocab"], + "tags": [ + "org.hypercerts.vocab" + ], "description": "Lists published vocabulary tags by optional publisher DIDs with stable cursor pagination; authentication is not required.", "parameters": [ { @@ -3958,7 +4853,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "did" } + "items": { + "type": "string", + "format": "did" + } }, "style": "form", "explode": true @@ -3968,21 +4866,35 @@ "in": "query", "required": false, "description": "Direction for (createdAt, uri); default desc.", - "schema": { "type": "string", "enum": ["asc", "desc"], "default": "desc" } + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + } }, { "name": "limit", "in": "query", "required": false, "description": "Page size from 1 to 100; default 25.", - "schema": { "type": "integer", "default": 25, "minimum": 1, "maximum": 100 } + "schema": { + "type": "integer", + "default": 25, + "minimum": 1, + "maximum": 100 + } }, { "name": "cursor", "in": "query", "required": false, "description": "Opaque cursor; keep direction and filters unchanged between pages.", - "schema": { "type": "string" } + "schema": { + "type": "string" + } } ], "responses": { @@ -3998,8 +4910,6 @@ } }, "x-lexicon-id": "org.hypercerts.vocab.listVocabTags", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/vocab/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -4015,7 +4925,9 @@ "/xrpc/org.hypercerts.workscope.getWorkscopeTag": { "get": { "operationId": "org_hypercerts_workscope_getWorkscopeTag", - "tags": ["org.hypercerts.workscope"], + "tags": [ + "org.hypercerts.workscope" + ], "description": "Returns an indexed work-scope tag and its hydrated publisher for an exact AT-URI; authentication is not required.", "parameters": [ { @@ -4023,7 +4935,10 @@ "in": "query", "required": true, "description": "Full work-scope-tag AT-URI using a DID authority.", - "schema": { "type": "string", "format": "at-uri" } + "schema": { + "type": "string", + "format": "at-uri" + } } ], "responses": { @@ -4039,8 +4954,6 @@ } }, "x-lexicon-id": "org.hypercerts.workscope.getWorkscopeTag", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/workscope-tags/manifest.json" }, "x-lexicon-errors": [ { "name": "InvalidRequest", @@ -4060,7 +4973,9 @@ "/xrpc/org.hypercerts.workscope.listWorkscopeTags": { "get": { "operationId": "org_hypercerts_workscope_listWorkscopeTags", - "tags": ["org.hypercerts.workscope"], + "tags": [ + "org.hypercerts.workscope" + ], "description": "Lists indexed work-scope tags by publisher DID with stable timestamp-and-URI ordering; authentication is not required.", "parameters": [ { @@ -4071,7 +4986,10 @@ "schema": { "type": "array", "maxItems": 100, - "items": { "type": "string", "format": "did" } + "items": { + "type": "string", + "format": "did" + } }, "style": "form", "explode": true @@ -4081,21 +4999,36 @@ "in": "query", "required": false, "description": "Sort direction for timestamp-and-URI ordering; defaults to desc.", - "schema": { "type": "string", "enum": ["asc", "desc"], "default": "desc" } + "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + } }, { "name": "limit", "in": "query", "required": false, "description": "Maximum page size from 1 to 100; defaults to 25.", - "schema": { "type": "integer", "default": 25, "minimum": 1, "maximum": 100 } + "schema": { + "type": "integer", + "default": 25, + "minimum": 1, + "maximum": 100 + } }, { "name": "cursor", "in": "query", "required": false, "description": "Opaque cursor bound to sortDirection; keep other parameters unchanged between pages.", - "schema": { "type": "string", "maxLength": 8192 } + "schema": { + "type": "string", + "maxLength": 8192 + } } ], "responses": { @@ -4111,10 +5044,11 @@ } }, "x-lexicon-id": "org.hypercerts.workscope.listWorkscopeTags", - "x-hypercerts-coverage": "manifest-registered", - "x-hypercerts-source": { "module": "modules/workscope-tags/manifest.json" }, "x-lexicon-errors": [ - { "name": "InvalidRequest", "description": "A query parameter is invalid." }, + { + "name": "InvalidRequest", + "description": "A query parameter is invalid." + }, { "name": "WorkscopeTagQueryFailed", "description": "The record query or publisher hydration failed." @@ -4129,54 +5063,43 @@ "type": "record", "description": "A declaration of a Certified account profile." }, - "app.certified.feed.getActorReactions.actorReactionResult": { + "org.hypercerts.api.defs.profileView": { "type": "object", - "required": ["subject", "like", "repost"], + "description": "Profile record view preserving the full indexed record; indexedAt may be null when the index has no timestamp.", + "required": [ + "uri", + "cid", + "indexedAt", + "did", + "record" + ], "properties": { - "subject": { + "uri": { "type": "string", - "description": "The subject AT-URI from this request occurrence; matching ignores CID.", "format": "at-uri" }, - "like": { - "anyOf": [ - { "$ref": "#/components/schemas/app.certified.feed.getLikes.likeRecordView" }, - { "type": "null" } - ] + "cid": { + "type": "string", + "format": "cid" }, - "repost": { + "indexedAt": { "anyOf": [ - { "$ref": "#/components/schemas/app.certified.feed.getReposts.repostRecordView" }, - { "type": "null" } + { + "type": "string", + "format": "datetime" + }, + { + "type": "null" + } ] - } - } - }, - "app.certified.feed.getActorReactions.output": { - "type": "object", - "required": ["results"], - "properties": { - "results": { - "type": "array", - "description": "One result for each supplied subject occurrence, in request order, including duplicates.", - "items": { - "$ref": "#/components/schemas/app.certified.feed.getActorReactions.actorReactionResult" - } - } - } - }, - "org.hypercerts.api.defs.profileView": { - "type": "object", - "description": "Profile record view preserving the full indexed record; indexedAt may be null when the index has no timestamp.", - "required": ["uri", "cid", "indexedAt", "did", "record"], - "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, - "indexedAt": { - "anyOf": [{ "type": "string", "format": "datetime" }, { "type": "null" }] }, - "did": { "type": "string", "format": "did" }, - "record": { "$ref": "#/components/schemas/app.certified.actor.profile.main" } + "did": { + "type": "string", + "format": "did" + }, + "record": { + "$ref": "#/components/schemas/app.certified.actor.profile.main" + } } }, "app.certified.actor.organization.main": { @@ -4186,41 +5109,106 @@ "org.hypercerts.api.defs.organizationView": { "type": "object", "description": "Raw organization sidecar record view preserving the full indexed record; indexedAt may be null when the index has no timestamp.", - "required": ["uri", "cid", "indexedAt", "did", "record"], + "required": [ + "uri", + "cid", + "indexedAt", + "did", + "record" + ], "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + }, "indexedAt": { - "anyOf": [{ "type": "string", "format": "datetime" }, { "type": "null" }] + "anyOf": [ + { + "type": "string", + "format": "datetime" + }, + { + "type": "null" + } + ] + }, + "did": { + "type": "string", + "format": "did" }, - "did": { "type": "string", "format": "did" }, - "record": { "$ref": "#/components/schemas/app.certified.actor.organization.main" } + "record": { + "$ref": "#/components/schemas/app.certified.actor.organization.main" + } } }, + "app.certified.location.main": { + "type": "record", + "description": "A location reference" + }, "app.certified.actor.getOrganization.locationRecordView": { "type": "object", "description": "Indexed app.certified.location record view preserving the full record exactly as getLocation returns it, but without the hydrated author; indexedAt may be null when the index has no timestamp.", - "required": ["uri", "cid", "indexedAt", "did", "record"], + "required": [ + "uri", + "cid", + "indexedAt", + "did", + "record" + ], "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + }, "indexedAt": { - "anyOf": [{ "type": "string", "format": "datetime" }, { "type": "null" }] + "anyOf": [ + { + "type": "string", + "format": "datetime" + }, + { + "type": "null" + } + ] }, - "did": { "type": "string", "format": "did" }, - "record": { "$ref": "#/components/schemas/app.certified.location.main" } + "did": { + "type": "string", + "format": "did" + }, + "record": { + "$ref": "#/components/schemas/app.certified.location.main" + } } }, "app.certified.actor.getOrganization.organizationActorView": { "type": "object", "description": "Actor with an indexed organization sidecar, nullable profile view and nullable location view.", - "required": ["did", "profile", "organization"], + "required": [ + "did", + "profile", + "organization" + ], "properties": { - "did": { "type": "string", "format": "did" }, + "did": { + "type": "string", + "format": "did" + }, "profile": { "anyOf": [ - { "$ref": "#/components/schemas/org.hypercerts.api.defs.profileView" }, - { "type": "null" } + { + "$ref": "#/components/schemas/org.hypercerts.api.defs.profileView" + }, + { + "type": "null" + } ] }, "organization": { @@ -4231,14 +5219,18 @@ { "$ref": "#/components/schemas/app.certified.actor.getOrganization.locationRecordView" }, - { "type": "null" } + { + "type": "null" + } ] } } }, "app.certified.actor.getOrganization.output": { "type": "object", - "required": ["actor"], + "required": [ + "actor" + ], "properties": { "actor": { "$ref": "#/components/schemas/app.certified.actor.getOrganization.organizationActorView" @@ -4247,7 +5239,10 @@ }, "app.certified.actor.getOrganizations.organizationResult": { "type": "object", - "required": ["actor", "organization"], + "required": [ + "actor", + "organization" + ], "properties": { "actor": { "type": "string", @@ -4259,14 +5254,18 @@ { "$ref": "#/components/schemas/app.certified.actor.getOrganization.organizationActorView" }, - { "type": "null" } + { + "type": "null" + } ] } } }, "app.certified.actor.getOrganizations.output": { "type": "object", - "required": ["organizations"], + "required": [ + "organizations" + ], "properties": { "organizations": { "type": "array", @@ -4279,14 +5278,21 @@ }, "app.certified.actor.getProfile.output": { "type": "object", - "required": ["profile"], + "required": [ + "profile" + ], "properties": { - "profile": { "$ref": "#/components/schemas/org.hypercerts.api.defs.profileView" } + "profile": { + "$ref": "#/components/schemas/org.hypercerts.api.defs.profileView" + } } }, "app.certified.actor.getProfiles.profileResult": { "type": "object", - "required": ["actor", "profile"], + "required": [ + "actor", + "profile" + ], "properties": { "actor": { "type": "string", @@ -4295,15 +5301,21 @@ }, "profile": { "anyOf": [ - { "$ref": "#/components/schemas/org.hypercerts.api.defs.profileView" }, - { "type": "null" } + { + "$ref": "#/components/schemas/org.hypercerts.api.defs.profileView" + }, + { + "type": "null" + } ] } } }, "app.certified.actor.getProfiles.output": { "type": "object", - "required": ["profiles"], + "required": [ + "profiles" + ], "properties": { "profiles": { "type": "array", @@ -4316,7 +5328,9 @@ }, "app.certified.actor.listOrganizations.output": { "type": "object", - "required": ["actors"], + "required": [ + "actors" + ], "properties": { "actors": { "type": "array", @@ -4332,11 +5346,15 @@ }, "app.certified.actor.listProfiles.output": { "type": "object", - "required": ["profiles"], + "required": [ + "profiles" + ], "properties": { "profiles": { "type": "array", - "items": { "$ref": "#/components/schemas/org.hypercerts.api.defs.profileView" } + "items": { + "$ref": "#/components/schemas/org.hypercerts.api.defs.profileView" + } }, "cursor": { "type": "string", @@ -4346,7 +5364,9 @@ }, "app.certified.actor.searchOrganizations.output": { "type": "object", - "required": ["actors"], + "required": [ + "actors" + ], "properties": { "actors": { "type": "array", @@ -4362,11 +5382,15 @@ }, "app.certified.actor.searchProfiles.output": { "type": "object", - "required": ["profiles"], + "required": [ + "profiles" + ], "properties": { "profiles": { "type": "array", - "items": { "$ref": "#/components/schemas/org.hypercerts.api.defs.profileView" } + "items": { + "$ref": "#/components/schemas/org.hypercerts.api.defs.profileView" + } }, "cursor": { "type": "string", @@ -4377,19 +5401,34 @@ "org.hypercerts.api.defs.actorView": { "type": "object", "description": "Actor DID with nullable profile and raw organization sidecar views.", - "required": ["did", "profile", "organization"], + "required": [ + "did", + "profile", + "organization" + ], "properties": { - "did": { "type": "string", "format": "did" }, + "did": { + "type": "string", + "format": "did" + }, "profile": { "anyOf": [ - { "$ref": "#/components/schemas/org.hypercerts.api.defs.profileView" }, - { "type": "null" } + { + "$ref": "#/components/schemas/org.hypercerts.api.defs.profileView" + }, + { + "type": "null" + } ] }, "organization": { "anyOf": [ - { "$ref": "#/components/schemas/org.hypercerts.api.defs.organizationView" }, - { "type": "null" } + { + "$ref": "#/components/schemas/org.hypercerts.api.defs.organizationView" + }, + { + "type": "null" + } ] } } @@ -4405,15 +5444,40 @@ "app.certified.badge.getBadgeAward.badgeDefinitionRecordView": { "type": "object", "description": "Exact indexed badge-definition version referenced by the award.", - "required": ["uri", "cid", "indexedAt", "did", "record"], + "required": [ + "uri", + "cid", + "indexedAt", + "did", + "record" + ], "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + }, "indexedAt": { - "anyOf": [{ "type": "string", "format": "datetime" }, { "type": "null" }] + "anyOf": [ + { + "type": "string", + "format": "datetime" + }, + { + "type": "null" + } + ] }, - "did": { "type": "string", "format": "did" }, - "record": { "$ref": "#/components/schemas/app.certified.badge.definition.main" } + "did": { + "type": "string", + "format": "did" + }, + "record": { + "$ref": "#/components/schemas/app.certified.badge.definition.main" + } } }, "app.certified.badge.response.main": { @@ -4423,66 +5487,122 @@ "app.certified.badge.getBadgeAward.badgeResponseRecordView": { "type": "object", "description": "Raw recipient response record without author hydration.", - "required": ["uri", "cid", "indexedAt", "did", "record"], - "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, - "indexedAt": { - "anyOf": [{ "type": "string", "format": "datetime" }, { "type": "null" }] - }, - "did": { "type": "string", "format": "did" }, - "record": { "$ref": "#/components/schemas/app.certified.badge.response.main" } - } - }, - "app.certified.badge.getBadgeAward.badgeAwardView": { - "type": "object", - "description": "Badge award with its publisher, exact definition version, and recipient response status.", "required": [ "uri", "cid", "indexedAt", "did", - "author", - "record", + "record" + ], + "properties": { + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + }, + "indexedAt": { + "anyOf": [ + { + "type": "string", + "format": "datetime" + }, + { + "type": "null" + } + ] + }, + "did": { + "type": "string", + "format": "did" + }, + "record": { + "$ref": "#/components/schemas/app.certified.badge.response.main" + } + } + }, + "app.certified.badge.getBadgeAward.badgeAwardView": { + "type": "object", + "description": "Badge award with its publisher, exact definition version, and recipient response status.", + "required": [ + "uri", + "cid", + "indexedAt", + "did", + "author", + "record", "badge", "responseStatus", "recipientResponse" ], "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + }, "indexedAt": { - "anyOf": [{ "type": "string", "format": "datetime" }, { "type": "null" }] + "anyOf": [ + { + "type": "string", + "format": "datetime" + }, + { + "type": "null" + } + ] + }, + "did": { + "type": "string", + "format": "did" + }, + "author": { + "$ref": "#/components/schemas/org.hypercerts.api.defs.actorView" + }, + "record": { + "$ref": "#/components/schemas/app.certified.badge.award.main" }, - "did": { "type": "string", "format": "did" }, - "author": { "$ref": "#/components/schemas/org.hypercerts.api.defs.actorView" }, - "record": { "$ref": "#/components/schemas/app.certified.badge.award.main" }, "badge": { "anyOf": [ { "$ref": "#/components/schemas/app.certified.badge.getBadgeAward.badgeDefinitionRecordView" }, - { "type": "null" } + { + "type": "null" + } ] }, "responseStatus": { "type": "string", "description": "Latest eligible recipient response, or unanswered when none exists.", - "enum": ["accepted", "rejected", "unanswered"] + "enum": [ + "accepted", + "rejected", + "unanswered" + ] }, "recipientResponse": { "anyOf": [ { "$ref": "#/components/schemas/app.certified.badge.getBadgeAward.badgeResponseRecordView" }, - { "type": "null" } + { + "type": "null" + } ] } } }, "app.certified.badge.getBadgeAward.output": { "type": "object", - "required": ["badgeAward"], + "required": [ + "badgeAward" + ], "properties": { "badgeAward": { "$ref": "#/components/schemas/app.certified.badge.getBadgeAward.badgeAwardView" @@ -4492,21 +5612,51 @@ "app.certified.badge.getBadgeDefinition.badgeDefinitionView": { "type": "object", "description": "Full indexed badge-definition record with its publisher actor.", - "required": ["uri", "cid", "indexedAt", "did", "author", "record"], + "required": [ + "uri", + "cid", + "indexedAt", + "did", + "author", + "record" + ], "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + }, "indexedAt": { - "anyOf": [{ "type": "string", "format": "datetime" }, { "type": "null" }] + "anyOf": [ + { + "type": "string", + "format": "datetime" + }, + { + "type": "null" + } + ] + }, + "did": { + "type": "string", + "format": "did" }, - "did": { "type": "string", "format": "did" }, - "author": { "$ref": "#/components/schemas/org.hypercerts.api.defs.actorView" }, - "record": { "$ref": "#/components/schemas/app.certified.badge.definition.main" } + "author": { + "$ref": "#/components/schemas/org.hypercerts.api.defs.actorView" + }, + "record": { + "$ref": "#/components/schemas/app.certified.badge.definition.main" + } } }, "app.certified.badge.getBadgeDefinition.output": { "type": "object", - "required": ["badgeDefinition"], + "required": [ + "badgeDefinition" + ], "properties": { "badgeDefinition": { "$ref": "#/components/schemas/app.certified.badge.getBadgeDefinition.badgeDefinitionView" @@ -4516,21 +5666,51 @@ "app.certified.badge.getBadgeResponse.badgeResponseView": { "type": "object", "description": "Raw badge response with its publisher actor.", - "required": ["uri", "cid", "indexedAt", "did", "author", "record"], + "required": [ + "uri", + "cid", + "indexedAt", + "did", + "author", + "record" + ], "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + }, "indexedAt": { - "anyOf": [{ "type": "string", "format": "datetime" }, { "type": "null" }] + "anyOf": [ + { + "type": "string", + "format": "datetime" + }, + { + "type": "null" + } + ] }, - "did": { "type": "string", "format": "did" }, - "author": { "$ref": "#/components/schemas/org.hypercerts.api.defs.actorView" }, - "record": { "$ref": "#/components/schemas/app.certified.badge.response.main" } + "did": { + "type": "string", + "format": "did" + }, + "author": { + "$ref": "#/components/schemas/org.hypercerts.api.defs.actorView" + }, + "record": { + "$ref": "#/components/schemas/app.certified.badge.response.main" + } } }, "app.certified.badge.getBadgeResponse.output": { "type": "object", - "required": ["badgeResponse"], + "required": [ + "badgeResponse" + ], "properties": { "badgeResponse": { "$ref": "#/components/schemas/app.certified.badge.getBadgeResponse.badgeResponseView" @@ -4539,7 +5719,9 @@ }, "app.certified.badge.listBadgeAwards.output": { "type": "object", - "required": ["badgeAwards"], + "required": [ + "badgeAwards" + ], "properties": { "badgeAwards": { "type": "array", @@ -4553,14 +5735,16 @@ }, "totalCount": { "type": "integer", - "minimum": 0, - "description": "Number of badge award records matching all filters, before cursor and limit are applied. Not deduplicated. Only returned when includeTotal is true." + "description": "Number of badge award records matching all filters, before cursor and limit are applied. Not deduplicated. Only returned when includeTotal is true.", + "minimum": 0 } } }, "app.certified.badge.listBadgeDefinitions.output": { "type": "object", - "required": ["badgeDefinitions"], + "required": [ + "badgeDefinitions" + ], "properties": { "badgeDefinitions": { "type": "array", @@ -4576,7 +5760,9 @@ }, "app.certified.badge.listBadgeResponses.output": { "type": "object", - "required": ["badgeResponses"], + "required": [ + "badgeResponses" + ], "properties": { "badgeResponses": { "type": "array", @@ -4593,21 +5779,51 @@ "app.certified.badge.searchBadgeDefinitions.badgeDefinitionView": { "type": "object", "description": "Indexed badge definition with its publisher actor.", - "required": ["uri", "cid", "indexedAt", "did", "author", "record"], + "required": [ + "uri", + "cid", + "indexedAt", + "did", + "author", + "record" + ], "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + }, "indexedAt": { - "anyOf": [{ "type": "string", "format": "datetime" }, { "type": "null" }] + "anyOf": [ + { + "type": "string", + "format": "datetime" + }, + { + "type": "null" + } + ] + }, + "did": { + "type": "string", + "format": "did" + }, + "author": { + "$ref": "#/components/schemas/org.hypercerts.api.defs.actorView" }, - "did": { "type": "string", "format": "did" }, - "author": { "$ref": "#/components/schemas/org.hypercerts.api.defs.actorView" }, - "record": { "$ref": "#/components/schemas/app.certified.badge.definition.main" } + "record": { + "$ref": "#/components/schemas/app.certified.badge.definition.main" + } } }, "app.certified.badge.searchBadgeDefinitions.output": { "type": "object", - "required": ["badgeDefinitions"], + "required": [ + "badgeDefinitions" + ], "properties": { "badgeDefinitions": { "type": "array", @@ -4628,28 +5844,54 @@ "app.certified.feed.getLikes.likeRecordView": { "type": "object", "description": "Raw indexed like preserving the full record, including subject, via, and signatures when present. Duplicates use the earliest createdAt, with URI ascending on ties.", - "required": ["uri", "cid", "indexedAt", "did", "record"], + "required": [ + "uri", + "cid", + "indexedAt", + "did", + "record" + ], "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + }, "indexedAt": { - "anyOf": [{ "type": "string", "format": "datetime" }, { "type": "null" }] + "anyOf": [ + { + "type": "string", + "format": "datetime" + }, + { + "type": "null" + } + ] }, "did": { "type": "string", "description": "Repository-owner DID of the like publisher.", "format": "did" }, - "record": { "$ref": "#/components/schemas/app.certified.feed.like.main" } + "record": { + "$ref": "#/components/schemas/app.certified.feed.like.main" + } } }, "app.certified.feed.getActorLikes.output": { "type": "object", - "required": ["likes"], + "required": [ + "likes" + ], "properties": { "likes": { "type": "array", - "items": { "$ref": "#/components/schemas/app.certified.feed.getLikes.likeRecordView" } + "items": { + "$ref": "#/components/schemas/app.certified.feed.getLikes.likeRecordView" + } }, "cursor": { "type": "string", @@ -4664,24 +5906,98 @@ "app.certified.feed.getReposts.repostRecordView": { "type": "object", "description": "Raw indexed repost preserving the full record, including subject, via, and signatures when present. Its URI and CID identify the repost for feed attribution. Duplicates use the earliest createdAt, with URI ascending on ties.", - "required": ["uri", "cid", "indexedAt", "did", "record"], + "required": [ + "uri", + "cid", + "indexedAt", + "did", + "record" + ], "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + }, "indexedAt": { - "anyOf": [{ "type": "string", "format": "datetime" }, { "type": "null" }] + "anyOf": [ + { + "type": "string", + "format": "datetime" + }, + { + "type": "null" + } + ] }, "did": { "type": "string", "description": "Repository-owner DID of the repost publisher.", "format": "did" }, - "record": { "$ref": "#/components/schemas/app.certified.feed.repost.main" } + "record": { + "$ref": "#/components/schemas/app.certified.feed.repost.main" + } + } + }, + "app.certified.feed.getActorReactions.actorReactionResult": { + "type": "object", + "required": [ + "subject", + "like", + "repost" + ], + "properties": { + "subject": { + "type": "string", + "description": "The subject AT-URI from this request occurrence; matching ignores CID.", + "format": "at-uri" + }, + "like": { + "anyOf": [ + { + "$ref": "#/components/schemas/app.certified.feed.getLikes.likeRecordView" + }, + { + "type": "null" + } + ] + }, + "repost": { + "anyOf": [ + { + "$ref": "#/components/schemas/app.certified.feed.getReposts.repostRecordView" + }, + { + "type": "null" + } + ] + } + } + }, + "app.certified.feed.getActorReactions.output": { + "type": "object", + "required": [ + "results" + ], + "properties": { + "results": { + "type": "array", + "description": "One result for each supplied subject occurrence, in request order, including duplicates.", + "items": { + "$ref": "#/components/schemas/app.certified.feed.getActorReactions.actorReactionResult" + } + } } }, "app.certified.feed.getActorReposts.output": { "type": "object", - "required": ["reposts"], + "required": [ + "reposts" + ], "properties": { "reposts": { "type": "array", @@ -4698,27 +6014,48 @@ "app.certified.feed.getLikes.likeView": { "type": "object", "description": "Liker actor sidecars paired with the representative raw like record. Missing profile and organization records are null.", - "required": ["did", "profile", "organization", "like"], + "required": [ + "did", + "profile", + "organization", + "like" + ], "properties": { - "did": { "type": "string", "format": "did" }, + "did": { + "type": "string", + "format": "did" + }, "profile": { "anyOf": [ - { "$ref": "#/components/schemas/org.hypercerts.api.defs.profileView" }, - { "type": "null" } + { + "$ref": "#/components/schemas/org.hypercerts.api.defs.profileView" + }, + { + "type": "null" + } ] }, "organization": { "anyOf": [ - { "$ref": "#/components/schemas/org.hypercerts.api.defs.organizationView" }, - { "type": "null" } + { + "$ref": "#/components/schemas/org.hypercerts.api.defs.organizationView" + }, + { + "type": "null" + } ] }, - "like": { "$ref": "#/components/schemas/app.certified.feed.getLikes.likeRecordView" } + "like": { + "$ref": "#/components/schemas/app.certified.feed.getLikes.likeRecordView" + } } }, "app.certified.feed.getLikes.output": { "type": "object", - "required": ["likeCount", "likes"], + "required": [ + "likeCount", + "likes" + ], "properties": { "likeCount": { "type": "integer", @@ -4727,7 +6064,9 @@ }, "likes": { "type": "array", - "items": { "$ref": "#/components/schemas/app.certified.feed.getLikes.likeView" } + "items": { + "$ref": "#/components/schemas/app.certified.feed.getLikes.likeView" + } }, "cursor": { "type": "string", @@ -4735,22 +6074,78 @@ } } }, + "app.certified.feed.getReactionCounts.subjectReactionCount": { + "type": "object", + "required": [ + "subject", + "likeCount", + "repostCount" + ], + "properties": { + "subject": { + "type": "string", + "description": "Subject AT-URI requested by the caller; matching ignores the subject CID.", + "format": "at-uri" + }, + "likeCount": { + "type": "integer", + "description": "Number of distinct indexed publisher DIDs with a current like whose subject.uri matches this URI; zero when no matching likes are indexed.", + "minimum": 0 + }, + "repostCount": { + "type": "integer", + "description": "Number of distinct indexed publisher DIDs with a current repost whose subject.uri matches this URI; zero when no matching reposts are indexed.", + "minimum": 0 + } + } + }, + "app.certified.feed.getReactionCounts.output": { + "type": "object", + "required": [ + "counts" + ], + "properties": { + "counts": { + "type": "array", + "description": "One entry for each requested subject, in request order. Repeated input URIs produce repeated entries. Counts reflect current indexed state and may change between requests.", + "items": { + "$ref": "#/components/schemas/app.certified.feed.getReactionCounts.subjectReactionCount" + } + } + } + }, "app.certified.feed.getReposts.repostView": { "type": "object", "description": "Reposter actor sidecars paired with the representative raw repost record. Missing profile and organization records are null.", - "required": ["did", "profile", "organization", "repost"], + "required": [ + "did", + "profile", + "organization", + "repost" + ], "properties": { - "did": { "type": "string", "format": "did" }, + "did": { + "type": "string", + "format": "did" + }, "profile": { "anyOf": [ - { "$ref": "#/components/schemas/org.hypercerts.api.defs.profileView" }, - { "type": "null" } + { + "$ref": "#/components/schemas/org.hypercerts.api.defs.profileView" + }, + { + "type": "null" + } ] }, "organization": { "anyOf": [ - { "$ref": "#/components/schemas/org.hypercerts.api.defs.organizationView" }, - { "type": "null" } + { + "$ref": "#/components/schemas/org.hypercerts.api.defs.organizationView" + }, + { + "type": "null" + } ] }, "repost": { @@ -4760,7 +6155,10 @@ }, "app.certified.feed.getReposts.output": { "type": "object", - "required": ["repostCount", "reposts"], + "required": [ + "repostCount", + "reposts" + ], "properties": { "repostCount": { "type": "integer", @@ -4769,7 +6167,9 @@ }, "reposts": { "type": "array", - "items": { "$ref": "#/components/schemas/app.certified.feed.getReposts.repostView" } + "items": { + "$ref": "#/components/schemas/app.certified.feed.getReposts.repostView" + } }, "cursor": { "type": "string", @@ -4777,40 +6177,6 @@ } } }, - "app.certified.feed.getReactionCounts.subjectReactionCount": { - "type": "object", - "required": ["subject", "likeCount", "repostCount"], - "properties": { - "subject": { - "type": "string", - "description": "Subject AT-URI requested by the caller; matching ignores the subject CID.", - "format": "at-uri" - }, - "likeCount": { - "type": "integer", - "description": "Number of distinct indexed publisher DIDs with a current like whose subject.uri matches this URI; zero when no matching likes are indexed.", - "minimum": 0 - }, - "repostCount": { - "type": "integer", - "description": "Number of distinct indexed publisher DIDs with a current repost whose subject.uri matches this URI; zero when no matching reposts are indexed.", - "minimum": 0 - } - } - }, - "app.certified.feed.getReactionCounts.output": { - "type": "object", - "required": ["counts"], - "properties": { - "counts": { - "type": "array", - "description": "One entry for each requested subject, in request order. Repeated input URIs produce repeated entries. Counts reflect current indexed state and may change between requests.", - "items": { - "$ref": "#/components/schemas/app.certified.feed.getReactionCounts.subjectReactionCount" - } - } - } - }, "app.certified.graph.entityFollow.main": { "type": "record", "description": "Record declaring a social 'follow' relationship with a non-account entity, such as a specific record. Account (DID) follows are out of scope and belong to app.certified.graph.follow. The subject is an open union so additional non-DID entity kinds can be added in the future." @@ -4818,34 +6184,66 @@ "app.certified.graph.getEntityFollow.entityFollowRecordView": { "type": "object", "description": "Raw indexed entity-follow record view, including the DID that published the relationship.", - "required": ["uri", "cid", "indexedAt", "did", "record"], + "required": [ + "uri", + "cid", + "indexedAt", + "did", + "record" + ], "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + }, "indexedAt": { - "anyOf": [{ "type": "string", "format": "datetime" }, { "type": "null" }] + "anyOf": [ + { + "type": "string", + "format": "datetime" + }, + { + "type": "null" + } + ] + }, + "did": { + "type": "string", + "format": "did" }, - "did": { "type": "string", "format": "did" }, - "record": { "$ref": "#/components/schemas/app.certified.graph.entityFollow.main" } + "record": { + "$ref": "#/components/schemas/app.certified.graph.entityFollow.main" + } } }, "app.certified.graph.getEntityFollow.output": { "type": "object", - "required": ["follow"], + "required": [ + "follow" + ], "properties": { "follow": { "anyOf": [ { "$ref": "#/components/schemas/app.certified.graph.getEntityFollow.entityFollowRecordView" }, - { "type": "null" } + { + "type": "null" + } ] } } }, "app.certified.graph.getEntityFollows.entityFollowResult": { "type": "object", - "required": ["entity", "follow"], + "required": [ + "entity", + "follow" + ], "properties": { "entity": { "type": "string", @@ -4857,14 +6255,18 @@ { "$ref": "#/components/schemas/app.certified.graph.getEntityFollow.entityFollowRecordView" }, - { "type": "null" } + { + "type": "null" + } ] } } }, "app.certified.graph.getEntityFollows.output": { "type": "object", - "required": ["results"], + "required": [ + "results" + ], "properties": { "results": { "type": "array", @@ -4882,33 +6284,67 @@ "app.certified.graph.getFollow.followRecordView": { "type": "object", "description": "Raw indexed follow record with its publisher DID. For duplicates, the earliest createdAt wins, with URI ascending on ties.", - "required": ["uri", "cid", "indexedAt", "did", "record"], + "required": [ + "uri", + "cid", + "indexedAt", + "did", + "record" + ], "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + }, "indexedAt": { - "anyOf": [{ "type": "string", "format": "datetime" }, { "type": "null" }] + "anyOf": [ + { + "type": "string", + "format": "datetime" + }, + { + "type": "null" + } + ] + }, + "did": { + "type": "string", + "format": "did" }, - "did": { "type": "string", "format": "did" }, - "record": { "$ref": "#/components/schemas/app.certified.graph.follow.main" } + "record": { + "$ref": "#/components/schemas/app.certified.graph.follow.main" + } } }, "app.certified.graph.getFollow.output": { "type": "object", "description": "Representative raw follow record, or null if no relationship is indexed.", - "required": ["follow"], + "required": [ + "follow" + ], "properties": { "follow": { "anyOf": [ - { "$ref": "#/components/schemas/app.certified.graph.getFollow.followRecordView" }, - { "type": "null" } + { + "$ref": "#/components/schemas/app.certified.graph.getFollow.followRecordView" + }, + { + "type": "null" + } ] } } }, "app.certified.graph.getFollowerCounts.subjectFollowerCount": { "type": "object", - "required": ["subject", "followerCount"], + "required": [ + "subject", + "followerCount" + ], "properties": { "subject": { "type": "string", @@ -4924,7 +6360,9 @@ }, "app.certified.graph.getFollowerCounts.output": { "type": "object", - "required": ["counts"], + "required": [ + "counts" + ], "properties": { "counts": { "type": "array", @@ -4937,7 +6375,10 @@ }, "app.certified.graph.getFollows.followResult": { "type": "object", - "required": ["subject", "follow"], + "required": [ + "subject", + "follow" + ], "properties": { "subject": { "type": "string", @@ -4946,39 +6387,63 @@ }, "follow": { "anyOf": [ - { "$ref": "#/components/schemas/app.certified.graph.getFollow.followRecordView" }, - { "type": "null" } + { + "$ref": "#/components/schemas/app.certified.graph.getFollow.followRecordView" + }, + { + "type": "null" + } ] } } }, "app.certified.graph.getFollows.output": { "type": "object", - "required": ["results"], + "required": [ + "results" + ], "properties": { "results": { "type": "array", "description": "One result per supplied subject occurrence, in request order.", - "items": { "$ref": "#/components/schemas/app.certified.graph.getFollows.followResult" } + "items": { + "$ref": "#/components/schemas/app.certified.graph.getFollows.followResult" + } } } }, "app.certified.graph.getFollow.actorFollowView": { "type": "object", "description": "Displayed actor with nullable profile and organization sidecars, paired with the representative follow record.", - "required": ["did", "profile", "organization", "follow"], + "required": [ + "did", + "profile", + "organization", + "follow" + ], "properties": { - "did": { "type": "string", "format": "did" }, + "did": { + "type": "string", + "format": "did" + }, "profile": { "anyOf": [ - { "$ref": "#/components/schemas/org.hypercerts.api.defs.profileView" }, - { "type": "null" } + { + "$ref": "#/components/schemas/org.hypercerts.api.defs.profileView" + }, + { + "type": "null" + } ] }, "organization": { "anyOf": [ - { "$ref": "#/components/schemas/org.hypercerts.api.defs.organizationView" }, - { "type": "null" } + { + "$ref": "#/components/schemas/org.hypercerts.api.defs.organizationView" + }, + { + "type": "null" + } ] }, "follow": { @@ -4988,7 +6453,10 @@ }, "app.certified.graph.listActorFollowers.output": { "type": "object", - "required": ["followers", "totalCount"], + "required": [ + "followers", + "totalCount" + ], "properties": { "followers": { "type": "array", @@ -5010,7 +6478,10 @@ }, "app.certified.graph.listActorFollowing.output": { "type": "object", - "required": ["following", "totalCount"], + "required": [ + "following", + "totalCount" + ], "properties": { "following": { "type": "array", @@ -5033,19 +6504,35 @@ "app.certified.graph.listEntityFollowers.entityFollowerView": { "type": "object", "description": "The follower actor and the raw entity-follow record representing its relationship.", - "required": ["did", "profile", "organization", "follow"], + "required": [ + "did", + "profile", + "organization", + "follow" + ], "properties": { - "did": { "type": "string", "format": "did" }, + "did": { + "type": "string", + "format": "did" + }, "profile": { "anyOf": [ - { "$ref": "#/components/schemas/org.hypercerts.api.defs.profileView" }, - { "type": "null" } + { + "$ref": "#/components/schemas/org.hypercerts.api.defs.profileView" + }, + { + "type": "null" + } ] }, "organization": { "anyOf": [ - { "$ref": "#/components/schemas/org.hypercerts.api.defs.organizationView" }, - { "type": "null" } + { + "$ref": "#/components/schemas/org.hypercerts.api.defs.organizationView" + }, + { + "type": "null" + } ] }, "follow": { @@ -5055,7 +6542,10 @@ }, "app.certified.graph.listEntityFollowers.output": { "type": "object", - "required": ["followers", "totalCount"], + "required": [ + "followers", + "totalCount" + ], "properties": { "followers": { "type": "array", @@ -5081,7 +6571,9 @@ "org.hypercerts.claim.activity.contributorIdentity": { "type": "object", "description": "Contributor information as a string (DID or identifier).", - "required": ["identity"], + "required": [ + "identity" + ], "properties": { "identity": { "type": "string", @@ -5093,16 +6585,27 @@ }, "com.atproto.repo.strongRef.main": { "type": "object", - "required": ["uri", "cid"], + "required": [ + "uri", + "cid" + ], "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" } + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + } } }, "org.hypercerts.claim.activity.contributorRole": { "type": "object", "description": "Contribution details as a string.", - "required": ["role"], + "required": [ + "role" + ], "properties": { "role": { "type": "string", @@ -5119,14 +6622,37 @@ "org.hypercerts.claim.getActivity.contributorInformationView": { "type": "object", "description": "Contributor-information record matched by the source reference's URI and CID; newer versions are not substituted.", - "required": ["uri", "cid", "indexedAt", "did", "record"], + "required": [ + "uri", + "cid", + "indexedAt", + "did", + "record" + ], "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + }, "indexedAt": { - "anyOf": [{ "type": "string", "format": "datetime" }, { "type": "null" }] + "anyOf": [ + { + "type": "string", + "format": "datetime" + }, + { + "type": "null" + } + ] + }, + "did": { + "type": "string", + "format": "did" }, - "did": { "type": "string", "format": "did" }, "record": { "$ref": "#/components/schemas/org.hypercerts.claim.contributorInformation.main" } @@ -5135,13 +6661,23 @@ "org.hypercerts.claim.getActivity.contributorActorView": { "type": "object", "description": "Contributor DID with its current profile, if indexed.", - "required": ["did", "profile"], + "required": [ + "did", + "profile" + ], "properties": { - "did": { "type": "string", "format": "did" }, + "did": { + "type": "string", + "format": "did" + }, "profile": { "anyOf": [ - { "$ref": "#/components/schemas/org.hypercerts.api.defs.profileView" }, - { "type": "null" } + { + "$ref": "#/components/schemas/org.hypercerts.api.defs.profileView" + }, + { + "type": "null" + } ] } } @@ -5149,19 +6685,34 @@ "org.hypercerts.claim.getActivity.activityContributorView": { "type": "object", "description": "Source contributor fields with nullable hydrated projections; unavailable referenced information or unresolved identities are null, while lookup failures fail the query.", - "required": ["contributorIdentity", "contributorInformation", "actor"], + "required": [ + "contributorIdentity", + "contributorInformation", + "actor" + ], "properties": { "contributorIdentity": { "anyOf": [ - { "$ref": "#/components/schemas/org.hypercerts.claim.activity.contributorIdentity" }, - { "$ref": "#/components/schemas/com.atproto.repo.strongRef.main" } + { + "$ref": "#/components/schemas/org.hypercerts.claim.activity.contributorIdentity" + }, + { + "$ref": "#/components/schemas/com.atproto.repo.strongRef.main" + } ] }, - "contributionWeight": { "type": "string", "maxLength": 100 }, + "contributionWeight": { + "type": "string", + "maxLength": 100 + }, "contributionDetails": { "anyOf": [ - { "$ref": "#/components/schemas/org.hypercerts.claim.activity.contributorRole" }, - { "$ref": "#/components/schemas/com.atproto.repo.strongRef.main" } + { + "$ref": "#/components/schemas/org.hypercerts.claim.activity.contributorRole" + }, + { + "$ref": "#/components/schemas/com.atproto.repo.strongRef.main" + } ] }, "contributorInformation": { @@ -5169,7 +6720,9 @@ { "$ref": "#/components/schemas/org.hypercerts.claim.getActivity.contributorInformationView" }, - { "type": "null" } + { + "type": "null" + } ] }, "actor": { @@ -5177,7 +6730,9 @@ { "$ref": "#/components/schemas/org.hypercerts.claim.getActivity.contributorActorView" }, - { "type": "null" } + { + "type": "null" + } ] } } @@ -5185,16 +6740,44 @@ "org.hypercerts.claim.getActivity.activityView": { "type": "object", "description": "Activity record with its original payload, hydrated author, and contributors only when present in the source record.", - "required": ["uri", "cid", "indexedAt", "did", "author", "record"], + "required": [ + "uri", + "cid", + "indexedAt", + "did", + "author", + "record" + ], "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + }, "indexedAt": { - "anyOf": [{ "type": "string", "format": "datetime" }, { "type": "null" }] + "anyOf": [ + { + "type": "string", + "format": "datetime" + }, + { + "type": "null" + } + ] + }, + "did": { + "type": "string", + "format": "did" + }, + "author": { + "$ref": "#/components/schemas/org.hypercerts.api.defs.actorView" + }, + "record": { + "$ref": "#/components/schemas/org.hypercerts.claim.activity.main" }, - "did": { "type": "string", "format": "did" }, - "author": { "$ref": "#/components/schemas/org.hypercerts.api.defs.actorView" }, - "record": { "$ref": "#/components/schemas/org.hypercerts.claim.activity.main" }, "contributors": { "type": "array", "description": "Hydrated projection of object entries in record.contributors, preserving their relative order and multiplicity; legacy string entries are skipped and the original record remains unchanged. Omitted only when the source field is absent; if it contains no object entries, this is an empty array.", @@ -5207,43 +6790,102 @@ "org.hypercerts.collection.getCollection.collectionProfileView": { "type": "object", "description": "Profile record view used in collection author projections; indexedAt is required and may be null when the index has no timestamp.", - "required": ["uri", "cid", "indexedAt", "did", "record"], + "required": [ + "uri", + "cid", + "indexedAt", + "did", + "record" + ], "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + }, "indexedAt": { - "anyOf": [{ "type": "string", "format": "datetime" }, { "type": "null" }] + "anyOf": [ + { + "type": "string", + "format": "datetime" + }, + { + "type": "null" + } + ] + }, + "did": { + "type": "string", + "format": "did" }, - "did": { "type": "string", "format": "did" }, - "record": { "$ref": "#/components/schemas/app.certified.actor.profile.main" } + "record": { + "$ref": "#/components/schemas/app.certified.actor.profile.main" + } } }, "org.hypercerts.collection.getCollection.collectionOrganizationView": { "type": "object", "description": "Organization sidecar view used in collection author projections; indexedAt is required and may be null when the index has no timestamp.", - "required": ["uri", "cid", "indexedAt", "did", "record"], + "required": [ + "uri", + "cid", + "indexedAt", + "did", + "record" + ], "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + }, "indexedAt": { - "anyOf": [{ "type": "string", "format": "datetime" }, { "type": "null" }] + "anyOf": [ + { + "type": "string", + "format": "datetime" + }, + { + "type": "null" + } + ] + }, + "did": { + "type": "string", + "format": "did" }, - "did": { "type": "string", "format": "did" }, - "record": { "$ref": "#/components/schemas/app.certified.actor.organization.main" } + "record": { + "$ref": "#/components/schemas/app.certified.actor.organization.main" + } } }, "org.hypercerts.collection.getCollection.collectionActorView": { "type": "object", "description": "Collection author DID with nullable profile and organization sidecar views whose indexedAt values may be null.", - "required": ["did", "profile", "organization"], + "required": [ + "did", + "profile", + "organization" + ], "properties": { - "did": { "type": "string", "format": "did" }, + "did": { + "type": "string", + "format": "did" + }, "profile": { "anyOf": [ { "$ref": "#/components/schemas/org.hypercerts.collection.getCollection.collectionProfileView" }, - { "type": "null" } + { + "type": "null" + } ] }, "organization": { @@ -5251,7 +6893,9 @@ { "$ref": "#/components/schemas/org.hypercerts.collection.getCollection.collectionOrganizationView" }, - { "type": "null" } + { + "type": "null" + } ] } } @@ -5260,34 +6904,70 @@ "type": "record", "description": "A collection/group of items (activities and/or other collections). Collections support recursive nesting." }, - "app.certified.location.main": { "type": "record", "description": "A location reference" }, "org.hypercerts.collection.getCollection.locationRecordView": { "type": "object", "description": "Raw location record view with metadata and no author hydration, used for exact-version collection reference projections.", - "required": ["uri", "cid", "indexedAt", "did", "record"], + "required": [ + "uri", + "cid", + "indexedAt", + "did", + "record" + ], "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + }, "indexedAt": { - "anyOf": [{ "type": "string", "format": "datetime" }, { "type": "null" }] + "anyOf": [ + { + "type": "string", + "format": "datetime" + }, + { + "type": "null" + } + ] + }, + "did": { + "type": "string", + "format": "did" }, - "did": { "type": "string", "format": "did" }, - "record": { "$ref": "#/components/schemas/app.certified.location.main" } + "record": { + "$ref": "#/components/schemas/app.certified.location.main" + } } }, "org.hypercerts.collection.getCollection.collectionLocationView": { "type": "object", "description": "Original strong-reference URI and CID plus the exact referenced location record view, or null when that version is unavailable.", - "required": ["uri", "cid", "record"], + "required": [ + "uri", + "cid", + "record" + ], "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + }, "record": { "anyOf": [ { "$ref": "#/components/schemas/org.hypercerts.collection.getCollection.locationRecordView" }, - { "type": "null" } + { + "type": "null" + } ] } } @@ -5299,30 +6979,67 @@ "org.hypercerts.collection.getCollection.vocabTagRecordView": { "type": "object", "description": "Raw vocabulary-tag record view with metadata and no author hydration, used for exact-version collection reference projections.", - "required": ["uri", "cid", "indexedAt", "did", "record"], + "required": [ + "uri", + "cid", + "indexedAt", + "did", + "record" + ], "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + }, "indexedAt": { - "anyOf": [{ "type": "string", "format": "datetime" }, { "type": "null" }] + "anyOf": [ + { + "type": "string", + "format": "datetime" + }, + { + "type": "null" + } + ] + }, + "did": { + "type": "string", + "format": "did" }, - "did": { "type": "string", "format": "did" }, - "record": { "$ref": "#/components/schemas/org.hypercerts.vocab.tag.main" } + "record": { + "$ref": "#/components/schemas/org.hypercerts.vocab.tag.main" + } } }, "org.hypercerts.collection.getCollection.collectionTagView": { "type": "object", "description": "Original strong-reference URI and CID plus the exact referenced vocabulary-tag record view, or null when that version is unavailable.", - "required": ["uri", "cid", "record"], + "required": [ + "uri", + "cid", + "record" + ], "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + }, "record": { "anyOf": [ { "$ref": "#/components/schemas/org.hypercerts.collection.getCollection.vocabTagRecordView" }, - { "type": "null" } + { + "type": "null" + } ] } } @@ -5330,18 +7047,44 @@ "org.hypercerts.collection.getCollection.collectionView": { "type": "object", "description": "Collection record with hydrated author and exact-version location and tag projections. Missing author sidecars are null; unavailable referenced versions retain their source URI and CID with a null record. The original record is unchanged.", - "required": ["uri", "cid", "indexedAt", "did", "author", "record"], + "required": [ + "uri", + "cid", + "indexedAt", + "did", + "author", + "record" + ], "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + }, "indexedAt": { - "anyOf": [{ "type": "string", "format": "datetime" }, { "type": "null" }] + "anyOf": [ + { + "type": "string", + "format": "datetime" + }, + { + "type": "null" + } + ] + }, + "did": { + "type": "string", + "format": "did" }, - "did": { "type": "string", "format": "did" }, "author": { "$ref": "#/components/schemas/org.hypercerts.collection.getCollection.collectionActorView" }, - "record": { "$ref": "#/components/schemas/org.hypercerts.collection.main" }, + "record": { + "$ref": "#/components/schemas/org.hypercerts.collection.main" + }, "location": { "$ref": "#/components/schemas/org.hypercerts.collection.getCollection.collectionLocationView" }, @@ -5362,24 +7105,54 @@ "org.hypercerts.collection.listCollectionItems.featureView": { "type": "object", "description": "Feature record view with hydrated author actor; feature location, tag, and sameAs references remain unexpanded.", - "required": ["uri", "cid", "indexedAt", "did", "author", "record"], + "required": [ + "uri", + "cid", + "indexedAt", + "did", + "author", + "record" + ], "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + }, "indexedAt": { - "anyOf": [{ "type": "string", "format": "datetime" }, { "type": "null" }] + "anyOf": [ + { + "type": "string", + "format": "datetime" + }, + { + "type": "null" + } + ] + }, + "did": { + "type": "string", + "format": "did" }, - "did": { "type": "string", "format": "did" }, "author": { "$ref": "#/components/schemas/org.hypercerts.collection.getCollection.collectionActorView" }, - "record": { "$ref": "#/components/schemas/org.hypercerts.entity.feature.main" } + "record": { + "$ref": "#/components/schemas/org.hypercerts.entity.feature.main" + } } }, "app.certified.graph.listEntityFollowing.entityFollowingItem": { "type": "object", "description": "An entity-follow target and its relationship record. Resolve the latest indexed target by URI; retain the URI and follow when the target is missing or unsupported.", - "required": ["uri", "entity", "follow"], + "required": [ + "uri", + "entity", + "follow" + ], "properties": { "uri": { "type": "string", @@ -5390,7 +7163,9 @@ "anyOf": [ { "anyOf": [ - { "$ref": "#/components/schemas/org.hypercerts.claim.getActivity.activityView" }, + { + "$ref": "#/components/schemas/org.hypercerts.claim.getActivity.activityView" + }, { "$ref": "#/components/schemas/org.hypercerts.collection.getCollection.collectionView" }, @@ -5400,7 +7175,9 @@ ], "description": "Resolved ActivityView, CollectionView, or author-hydrated FeatureView, or null when missing or unsupported." }, - { "type": "null" } + { + "type": "null" + } ] }, "follow": { @@ -5410,7 +7187,9 @@ }, "app.certified.graph.listEntityFollowing.output": { "type": "object", - "required": ["entities"], + "required": [ + "entities" + ], "properties": { "entities": { "type": "array", @@ -5427,7 +7206,13 @@ "app.certified.graph.listRecentFollows.recentFollowView": { "type": "object", "description": "Raw indexed account- or entity-follow record with its publisher DID.", - "required": ["uri", "cid", "indexedAt", "did", "record"], + "required": [ + "uri", + "cid", + "indexedAt", + "did", + "record" + ], "properties": { "uri": { "type": "string", @@ -5446,7 +7231,9 @@ "description": "Indexing time, or null if unavailable; ordering uses createdAt.", "format": "datetime" }, - { "type": "null" } + { + "type": "null" + } ] }, "did": { @@ -5456,8 +7243,12 @@ }, "record": { "anyOf": [ - { "$ref": "#/components/schemas/app.certified.graph.follow.main" }, - { "$ref": "#/components/schemas/app.certified.graph.entityFollow.main" } + { + "$ref": "#/components/schemas/app.certified.graph.follow.main" + }, + { + "$ref": "#/components/schemas/app.certified.graph.entityFollow.main" + } ], "description": "Unmodified follow record; $type identifies its collection." } @@ -5465,7 +7256,9 @@ }, "app.certified.graph.listRecentFollows.output": { "type": "object", - "required": ["follows"], + "required": [ + "follows" + ], "properties": { "follows": { "type": "array", @@ -5487,10 +7280,23 @@ "app.certified.link.getEvmLink.evmLinkView": { "type": "object", "description": "Indexed EVM-link record with its original address and proof, and the linked actor's hydrated Certified records.", - "required": ["uri", "cid", "indexedAt", "did", "actor", "record"], + "required": [ + "uri", + "cid", + "indexedAt", + "did", + "actor", + "record" + ], "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + }, "indexedAt": { "anyOf": [ { @@ -5498,28 +7304,45 @@ "description": "Index timestamp, or null when the indexed row has no timestamp.", "format": "datetime" }, - { "type": "null" } + { + "type": "null" + } ] }, - "did": { "type": "string", "format": "did" }, - "actor": { "$ref": "#/components/schemas/org.hypercerts.api.defs.actorView" }, - "record": { "$ref": "#/components/schemas/app.certified.link.evm.main" } + "did": { + "type": "string", + "format": "did" + }, + "actor": { + "$ref": "#/components/schemas/org.hypercerts.api.defs.actorView" + }, + "record": { + "$ref": "#/components/schemas/app.certified.link.evm.main" + } } }, "app.certified.link.getEvmLink.output": { "type": "object", - "required": ["evmLink"], + "required": [ + "evmLink" + ], "properties": { - "evmLink": { "$ref": "#/components/schemas/app.certified.link.getEvmLink.evmLinkView" } + "evmLink": { + "$ref": "#/components/schemas/app.certified.link.getEvmLink.evmLinkView" + } } }, "app.certified.link.listEvmLinks.output": { "type": "object", - "required": ["evmLinks"], + "required": [ + "evmLinks" + ], "properties": { "evmLinks": { "type": "array", - "items": { "$ref": "#/components/schemas/app.certified.link.getEvmLink.evmLinkView" } + "items": { + "$ref": "#/components/schemas/app.certified.link.getEvmLink.evmLinkView" + } }, "cursor": { "type": "string", @@ -5530,19 +7353,51 @@ "app.certified.location.getLocation.locationView": { "type": "object", "description": "Indexed location with its original record and hydrated author.", - "required": ["uri", "cid", "indexedAt", "did", "author", "record"], + "required": [ + "uri", + "cid", + "indexedAt", + "did", + "author", + "record" + ], "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, - "indexedAt": { "type": "string", "format": "datetime" }, - "did": { "type": "string", "format": "did" }, - "author": { "$ref": "#/components/schemas/org.hypercerts.api.defs.actorView" }, - "record": { "$ref": "#/components/schemas/app.certified.location.main" } + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + }, + "indexedAt": { + "anyOf": [ + { + "type": "string", + "format": "datetime" + }, + { + "type": "null" + } + ] + }, + "did": { + "type": "string", + "format": "did" + }, + "author": { + "$ref": "#/components/schemas/org.hypercerts.api.defs.actorView" + }, + "record": { + "$ref": "#/components/schemas/app.certified.location.main" + } } }, "app.certified.location.getLocation.output": { "type": "object", - "required": ["location"], + "required": [ + "location" + ], "properties": { "location": { "$ref": "#/components/schemas/app.certified.location.getLocation.locationView" @@ -5551,7 +7406,9 @@ }, "app.certified.location.listLocations.output": { "type": "object", - "required": ["locations"], + "required": [ + "locations" + ], "properties": { "locations": { "type": "array", @@ -5568,7 +7425,9 @@ }, "org.hypercerts.claim.getActivity.output": { "type": "object", - "required": ["activity"], + "required": [ + "activity" + ], "properties": { "activity": { "$ref": "#/components/schemas/org.hypercerts.claim.getActivity.activityView" @@ -5582,21 +7441,51 @@ "org.hypercerts.claim.getContribution.contributionView": { "type": "object", "description": "Contribution record view with a hydrated publisher and unchanged source record; the publisher is not necessarily the contributor.", - "required": ["uri", "cid", "indexedAt", "did", "author", "record"], + "required": [ + "uri", + "cid", + "indexedAt", + "did", + "author", + "record" + ], "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + }, "indexedAt": { - "anyOf": [{ "type": "string", "format": "datetime" }, { "type": "null" }] + "anyOf": [ + { + "type": "string", + "format": "datetime" + }, + { + "type": "null" + } + ] + }, + "did": { + "type": "string", + "format": "did" + }, + "author": { + "$ref": "#/components/schemas/org.hypercerts.api.defs.actorView" }, - "did": { "type": "string", "format": "did" }, - "author": { "$ref": "#/components/schemas/org.hypercerts.api.defs.actorView" }, - "record": { "$ref": "#/components/schemas/org.hypercerts.claim.contribution.main" } + "record": { + "$ref": "#/components/schemas/org.hypercerts.claim.contribution.main" + } } }, "org.hypercerts.claim.getContribution.output": { "type": "object", - "required": ["contribution"], + "required": [ + "contribution" + ], "properties": { "contribution": { "$ref": "#/components/schemas/org.hypercerts.claim.getContribution.contributionView" @@ -5606,15 +7495,41 @@ "org.hypercerts.claim.getContributorInformation.contributorInformationView": { "type": "object", "description": "Contributor-information record with its full source payload and hydrated publishing actor.", - "required": ["uri", "cid", "indexedAt", "did", "author", "record"], + "required": [ + "uri", + "cid", + "indexedAt", + "did", + "author", + "record" + ], "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + }, "indexedAt": { - "anyOf": [{ "type": "string", "format": "datetime" }, { "type": "null" }] + "anyOf": [ + { + "type": "string", + "format": "datetime" + }, + { + "type": "null" + } + ] + }, + "did": { + "type": "string", + "format": "did" + }, + "author": { + "$ref": "#/components/schemas/org.hypercerts.api.defs.actorView" }, - "did": { "type": "string", "format": "did" }, - "author": { "$ref": "#/components/schemas/org.hypercerts.api.defs.actorView" }, "record": { "$ref": "#/components/schemas/org.hypercerts.claim.contributorInformation.main" } @@ -5622,7 +7537,9 @@ }, "org.hypercerts.claim.getContributorInformation.output": { "type": "object", - "required": ["contributorInformation"], + "required": [ + "contributorInformation" + ], "properties": { "contributorInformation": { "$ref": "#/components/schemas/org.hypercerts.claim.getContributorInformation.contributorInformationView" @@ -5636,28 +7553,62 @@ "org.hypercerts.claim.getRights.rightsView": { "type": "object", "description": "Rights record with its publisher actor; the full record is preserved and attachments are not expanded.", - "required": ["uri", "cid", "indexedAt", "did", "author", "record"], + "required": [ + "uri", + "cid", + "indexedAt", + "did", + "author", + "record" + ], "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + }, "indexedAt": { - "anyOf": [{ "type": "string", "format": "datetime" }, { "type": "null" }] + "anyOf": [ + { + "type": "string", + "format": "datetime" + }, + { + "type": "null" + } + ] + }, + "did": { + "type": "string", + "format": "did" + }, + "author": { + "$ref": "#/components/schemas/org.hypercerts.api.defs.actorView" }, - "did": { "type": "string", "format": "did" }, - "author": { "$ref": "#/components/schemas/org.hypercerts.api.defs.actorView" }, - "record": { "$ref": "#/components/schemas/org.hypercerts.claim.rights.main" } + "record": { + "$ref": "#/components/schemas/org.hypercerts.claim.rights.main" + } } }, "org.hypercerts.claim.getRights.output": { "type": "object", - "required": ["rights"], + "required": [ + "rights" + ], "properties": { - "rights": { "$ref": "#/components/schemas/org.hypercerts.claim.getRights.rightsView" } + "rights": { + "$ref": "#/components/schemas/org.hypercerts.claim.getRights.rightsView" + } } }, "org.hypercerts.claim.listActivities.output": { "type": "object", - "required": ["activities"], + "required": [ + "activities" + ], "properties": { "activities": { "type": "array", @@ -5673,7 +7624,9 @@ }, "org.hypercerts.claim.listContributions.output": { "type": "object", - "required": ["contributions"], + "required": [ + "contributions" + ], "properties": { "contributions": { "type": "array", @@ -5689,7 +7642,9 @@ }, "org.hypercerts.claim.listContributorInformation.output": { "type": "object", - "required": ["contributorInformation"], + "required": [ + "contributorInformation" + ], "properties": { "contributorInformation": { "type": "array", @@ -5705,11 +7660,15 @@ }, "org.hypercerts.claim.listRights.output": { "type": "object", - "required": ["rights"], + "required": [ + "rights" + ], "properties": { "rights": { "type": "array", - "items": { "$ref": "#/components/schemas/org.hypercerts.claim.getRights.rightsView" } + "items": { + "$ref": "#/components/schemas/org.hypercerts.claim.getRights.rightsView" + } }, "cursor": { "type": "string", @@ -5719,7 +7678,9 @@ }, "org.hypercerts.claim.searchActivities.output": { "type": "object", - "required": ["activities"], + "required": [ + "activities" + ], "properties": { "activities": { "type": "array", @@ -5735,7 +7696,9 @@ }, "org.hypercerts.collection.getCollection.output": { "type": "object", - "required": ["collection"], + "required": [ + "collection" + ], "properties": { "collection": { "$ref": "#/components/schemas/org.hypercerts.collection.getCollection.collectionView" @@ -5745,28 +7708,63 @@ "org.hypercerts.collection.listCollectionItems.collectionSummaryView": { "type": "object", "description": "Non-recursive summary of a collection item target.", - "required": ["uri", "cid", "did", "title"], + "required": [ + "uri", + "cid", + "did", + "title" + ], "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, - "did": { "type": "string", "format": "did" }, - "type": { "type": "string", "maxLength": 64 }, - "title": { "type": "string", "maxLength": 800, "x-lexicon-maxGraphemes": 80 }, - "shortDescription": { "type": "string", "maxLength": 3000, "x-lexicon-maxGraphemes": 300 } + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + }, + "did": { + "type": "string", + "format": "did" + }, + "type": { + "type": "string", + "maxLength": 64 + }, + "title": { + "type": "string", + "maxLength": 800, + "x-lexicon-maxGraphemes": 80 + }, + "shortDescription": { + "type": "string", + "maxLength": 3000, + "x-lexicon-maxGraphemes": 300 + } } }, "org.hypercerts.collection.listCollectionItems.collectionItemView": { "type": "object", "description": "One embedded collection item in source order, retaining its original strong reference and optional weight. Resolve only an exact URI+CID target one level deep; nested collections use a summary, and unavailable versions or unsupported kinds produce record null.", - "required": ["itemIdentifier", "record"], + "required": [ + "itemIdentifier", + "record" + ], "properties": { - "itemIdentifier": { "$ref": "#/components/schemas/com.atproto.repo.strongRef.main" }, - "itemWeight": { "type": "string", "maxLength": 100 }, + "itemIdentifier": { + "$ref": "#/components/schemas/com.atproto.repo.strongRef.main" + }, + "itemWeight": { + "type": "string", + "maxLength": 100 + }, "record": { "anyOf": [ { "anyOf": [ - { "$ref": "#/components/schemas/org.hypercerts.claim.getActivity.activityView" }, + { + "$ref": "#/components/schemas/org.hypercerts.claim.getActivity.activityView" + }, { "$ref": "#/components/schemas/org.hypercerts.collection.listCollectionItems.collectionSummaryView" }, @@ -5776,14 +7774,18 @@ ], "description": "Resolved ActivityView, CollectionSummaryView, or FeatureView using the item strong reference's exact URI+CID; otherwise null." }, - { "type": "null" } + { + "type": "null" + } ] } } }, "org.hypercerts.collection.listCollectionItems.output": { "type": "object", - "required": ["items"], + "required": [ + "items" + ], "properties": { "items": { "type": "array", @@ -5799,7 +7801,9 @@ }, "org.hypercerts.collection.listCollections.output": { "type": "object", - "required": ["collections"], + "required": [ + "collections" + ], "properties": { "collections": { "type": "array", @@ -5815,7 +7819,9 @@ }, "org.hypercerts.collection.searchCollections.output": { "type": "object", - "required": ["collections"], + "required": [ + "collections" + ], "properties": { "collections": { "type": "array", @@ -5836,21 +7842,51 @@ "org.hypercerts.api.defs.acknowledgementView": { "type": "object", "description": "Acknowledgement record with its publisher actor.", - "required": ["uri", "cid", "indexedAt", "did", "author", "record"], + "required": [ + "uri", + "cid", + "indexedAt", + "did", + "author", + "record" + ], "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + }, "indexedAt": { - "anyOf": [{ "type": "string", "format": "datetime" }, { "type": "null" }] + "anyOf": [ + { + "type": "string", + "format": "datetime" + }, + { + "type": "null" + } + ] }, - "did": { "type": "string", "format": "did" }, - "author": { "$ref": "#/components/schemas/org.hypercerts.api.defs.actorView" }, - "record": { "$ref": "#/components/schemas/org.hypercerts.context.acknowledgement.main" } + "did": { + "type": "string", + "format": "did" + }, + "author": { + "$ref": "#/components/schemas/org.hypercerts.api.defs.actorView" + }, + "record": { + "$ref": "#/components/schemas/org.hypercerts.context.acknowledgement.main" + } } }, "org.hypercerts.context.getAcknowledgement.output": { "type": "object", - "required": ["acknowledgement"], + "required": [ + "acknowledgement" + ], "properties": { "acknowledgement": { "$ref": "#/components/schemas/org.hypercerts.api.defs.acknowledgementView" @@ -5864,34 +7900,63 @@ "org.hypercerts.context.getAttachment.attachmentView": { "type": "object", "description": "Attachment with its hydrated publisher and unchanged source record; subject, content, and location references are not expanded, and external files are not fetched. Missing publisher sidecars are null; query or hydration failures fail the request.", - "required": ["uri", "cid", "indexedAt", "did", "author", "record"], + "required": [ + "uri", + "cid", + "indexedAt", + "did", + "author", + "record" + ], "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + }, "indexedAt": { - "anyOf": [{ "type": "string", "format": "datetime" }, { "type": "null" }] + "anyOf": [ + { + "type": "string", + "format": "datetime" + }, + { + "type": "null" + } + ] + }, + "did": { + "type": "string", + "format": "did" + }, + "author": { + "$ref": "#/components/schemas/org.hypercerts.api.defs.actorView" }, - "did": { "type": "string", "format": "did" }, - "author": { "$ref": "#/components/schemas/org.hypercerts.api.defs.actorView" }, - "record": { "$ref": "#/components/schemas/org.hypercerts.context.attachment.main" } + "record": { + "$ref": "#/components/schemas/org.hypercerts.context.attachment.main" + } } }, "org.hypercerts.context.getAttachment.output": { "type": "object", - "required": ["attachment"], + "required": [ + "attachment" + ], "properties": { "attachment": { "$ref": "#/components/schemas/org.hypercerts.context.getAttachment.attachmentView" } } }, - "org.hypercerts.context.evaluation.main": { - "type": "record", - "description": "An evaluation of a hypercert record (e.g. an activity and its impact)." - }, "org.hypercerts.context.getCommentCounts.subjectCommentCount": { "type": "object", - "required": ["subject", "commentCount"], + "required": [ + "subject", + "commentCount" + ], "properties": { "subject": { "type": "string", @@ -5907,7 +7972,9 @@ }, "org.hypercerts.context.getCommentCounts.output": { "type": "object", - "required": ["counts"], + "required": [ + "counts" + ], "properties": { "counts": { "type": "array", @@ -5918,13 +7985,24 @@ } } }, + "org.hypercerts.context.evaluation.main": { + "type": "record", + "description": "An evaluation of a hypercert record (e.g. an activity and its impact)." + }, "org.hypercerts.context.getEvaluation.evaluatorView": { "type": "object", "description": "An evaluator DID with its profile and organization when they were looked up and found. Absent keys mean not looked up or not found.", - "required": ["did"], + "required": [ + "did" + ], "properties": { - "did": { "type": "string", "format": "did" }, - "profile": { "$ref": "#/components/schemas/org.hypercerts.api.defs.profileView" }, + "did": { + "type": "string", + "format": "did" + }, + "profile": { + "$ref": "#/components/schemas/org.hypercerts.api.defs.profileView" + }, "organization": { "$ref": "#/components/schemas/org.hypercerts.api.defs.organizationView" } @@ -5933,14 +8011,45 @@ "org.hypercerts.context.getEvaluation.evaluationView": { "type": "object", "description": "Evaluation with the original record, hydrated publisher, and evaluator projections. The record is not rewritten when evaluator data is malformed. A missing or non-array evaluator container yields an empty hydrated array; malformed entries are omitted. Missing profile or organization sidecars are omitted from evaluators; query or hydration failures fail the request. Evaluator arrays over 1000 entries still fail exact lookup and are skipped by lists.", - "required": ["uri", "cid", "indexedAt", "did", "author", "record", "evaluators"], + "required": [ + "uri", + "cid", + "indexedAt", + "did", + "author", + "record", + "evaluators" + ], "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, - "indexedAt": { "type": "string", "format": "datetime" }, - "did": { "type": "string", "format": "did" }, - "author": { "$ref": "#/components/schemas/org.hypercerts.api.defs.actorView" }, - "record": { "$ref": "#/components/schemas/org.hypercerts.context.evaluation.main" }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + }, + "indexedAt": { + "anyOf": [ + { + "type": "string", + "format": "datetime" + }, + { + "type": "null" + } + ] + }, + "did": { + "type": "string", + "format": "did" + }, + "author": { + "$ref": "#/components/schemas/org.hypercerts.api.defs.actorView" + }, + "record": { + "$ref": "#/components/schemas/org.hypercerts.context.evaluation.main" + }, "evaluators": { "type": "array", "description": "Dense projection of valid record.evaluators object entries with valid DIDs, preserving their source order and duplicates. Entries with malformed shapes or invalid DIDs are omitted without changing the original record; a missing or non-array source yields an empty array. The first 100 response entries get their profile and organization looked up; later entries carry only the did. The raw evaluator array is limited to 1000 entries; over-limit records fail exact lookup and are skipped by lists.", @@ -5953,7 +8062,9 @@ }, "org.hypercerts.context.getEvaluation.output": { "type": "object", - "required": ["evaluation"], + "required": [ + "evaluation" + ], "properties": { "evaluation": { "$ref": "#/components/schemas/org.hypercerts.context.getEvaluation.evaluationView" @@ -5967,21 +8078,51 @@ "org.hypercerts.context.getMeasurement.measurementView": { "type": "object", "description": "Indexed measurement with its publisher actor and original record.", - "required": ["uri", "cid", "indexedAt", "did", "author", "record"], + "required": [ + "uri", + "cid", + "indexedAt", + "did", + "author", + "record" + ], "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + }, "indexedAt": { - "anyOf": [{ "type": "string", "format": "datetime" }, { "type": "null" }] + "anyOf": [ + { + "type": "string", + "format": "datetime" + }, + { + "type": "null" + } + ] + }, + "did": { + "type": "string", + "format": "did" + }, + "author": { + "$ref": "#/components/schemas/org.hypercerts.api.defs.actorView" }, - "did": { "type": "string", "format": "did" }, - "author": { "$ref": "#/components/schemas/org.hypercerts.api.defs.actorView" }, - "record": { "$ref": "#/components/schemas/org.hypercerts.context.measurement.main" } + "record": { + "$ref": "#/components/schemas/org.hypercerts.context.measurement.main" + } } }, "org.hypercerts.context.getMeasurement.output": { "type": "object", - "required": ["measurement"], + "required": [ + "measurement" + ], "properties": { "measurement": { "$ref": "#/components/schemas/org.hypercerts.context.getMeasurement.measurementView" @@ -5990,18 +8131,27 @@ }, "org.hypercerts.context.listAcknowledgements.output": { "type": "object", - "required": ["acknowledgements"], + "required": [ + "acknowledgements" + ], "properties": { "acknowledgements": { "type": "array", - "items": { "$ref": "#/components/schemas/org.hypercerts.api.defs.acknowledgementView" } + "items": { + "$ref": "#/components/schemas/org.hypercerts.api.defs.acknowledgementView" + } }, - "cursor": { "type": "string", "description": "Omitted when there is no next page." } + "cursor": { + "type": "string", + "description": "Omitted when there is no next page." + } } }, "org.hypercerts.context.listAttachments.output": { "type": "object", - "required": ["attachments"], + "required": [ + "attachments" + ], "properties": { "attachments": { "type": "array", @@ -6017,7 +8167,9 @@ }, "org.hypercerts.context.listEvaluations.output": { "type": "object", - "required": ["evaluations"], + "required": [ + "evaluations" + ], "properties": { "evaluations": { "type": "array", @@ -6033,7 +8185,9 @@ }, "org.hypercerts.context.listMeasurements.output": { "type": "object", - "required": ["measurements"], + "required": [ + "measurements" + ], "properties": { "measurements": { "type": "array", @@ -6051,32 +8205,68 @@ "org.hypercerts.entity.defs.featureView": { "type": "object", "description": "Indexed feature record with its hydrated author actor.", - "required": ["uri", "cid", "indexedAt", "did", "author", "record"], + "required": [ + "uri", + "cid", + "indexedAt", + "did", + "author", + "record" + ], "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + }, "indexedAt": { - "anyOf": [{ "type": "string", "format": "datetime" }, { "type": "null" }] + "anyOf": [ + { + "type": "string", + "format": "datetime" + }, + { + "type": "null" + } + ] }, - "did": { "type": "string", "format": "did" }, - "author": { "$ref": "#/components/schemas/org.hypercerts.api.defs.actorView" }, - "record": { "$ref": "#/components/schemas/org.hypercerts.entity.feature.main" } + "did": { + "type": "string", + "format": "did" + }, + "author": { + "$ref": "#/components/schemas/org.hypercerts.api.defs.actorView" + }, + "record": { + "$ref": "#/components/schemas/org.hypercerts.entity.feature.main" + } } }, "org.hypercerts.entity.getFeature.output": { "type": "object", - "required": ["feature"], + "required": [ + "feature" + ], "properties": { - "feature": { "$ref": "#/components/schemas/org.hypercerts.entity.defs.featureView" } + "feature": { + "$ref": "#/components/schemas/org.hypercerts.entity.defs.featureView" + } } }, "org.hypercerts.entity.listFeatures.output": { "type": "object", - "required": ["features"], + "required": [ + "features" + ], "properties": { "features": { "type": "array", - "items": { "$ref": "#/components/schemas/org.hypercerts.entity.defs.featureView" } + "items": { + "$ref": "#/components/schemas/org.hypercerts.entity.defs.featureView" + } }, "cursor": { "type": "string", @@ -6091,21 +8281,51 @@ "org.hypercerts.funding.getReceipt.receiptView": { "type": "object", "description": "Funding receipt with its publisher actor hydrated; the indexed record is unchanged, including its decimal-string amount, and party and funded-target references are not expanded. Missing publisher profile or organization sidecars are null; indexedAt is null when the index has no timestamp. A receipt is not proof of payment.", - "required": ["uri", "cid", "indexedAt", "did", "author", "record"], + "required": [ + "uri", + "cid", + "indexedAt", + "did", + "author", + "record" + ], "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + }, "indexedAt": { - "anyOf": [{ "type": "string", "format": "datetime" }, { "type": "null" }] + "anyOf": [ + { + "type": "string", + "format": "datetime" + }, + { + "type": "null" + } + ] + }, + "did": { + "type": "string", + "format": "did" + }, + "author": { + "$ref": "#/components/schemas/org.hypercerts.api.defs.actorView" }, - "did": { "type": "string", "format": "did" }, - "author": { "$ref": "#/components/schemas/org.hypercerts.api.defs.actorView" }, - "record": { "$ref": "#/components/schemas/org.hypercerts.funding.receipt.main" } + "record": { + "$ref": "#/components/schemas/org.hypercerts.funding.receipt.main" + } } }, "org.hypercerts.funding.getReceipt.output": { "type": "object", - "required": ["receipt"], + "required": [ + "receipt" + ], "properties": { "receipt": { "$ref": "#/components/schemas/org.hypercerts.funding.getReceipt.receiptView" @@ -6114,7 +8334,9 @@ }, "org.hypercerts.funding.listReceipts.output": { "type": "object", - "required": ["receipts"], + "required": [ + "receipts" + ], "properties": { "receipts": { "type": "array", @@ -6131,21 +8353,51 @@ "org.hypercerts.vocab.getVocabTag.vocabTagView": { "type": "object", "description": "Vocabulary-tag record with its unchanged source and hydrated publisher actor.", - "required": ["uri", "cid", "indexedAt", "did", "author", "record"], + "required": [ + "uri", + "cid", + "indexedAt", + "did", + "author", + "record" + ], "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + }, "indexedAt": { - "anyOf": [{ "type": "string", "format": "datetime" }, { "type": "null" }] + "anyOf": [ + { + "type": "string", + "format": "datetime" + }, + { + "type": "null" + } + ] + }, + "did": { + "type": "string", + "format": "did" + }, + "author": { + "$ref": "#/components/schemas/org.hypercerts.api.defs.actorView" }, - "did": { "type": "string", "format": "did" }, - "author": { "$ref": "#/components/schemas/org.hypercerts.api.defs.actorView" }, - "record": { "$ref": "#/components/schemas/org.hypercerts.vocab.tag.main" } + "record": { + "$ref": "#/components/schemas/org.hypercerts.vocab.tag.main" + } } }, "org.hypercerts.vocab.getVocabTag.output": { "type": "object", - "required": ["vocabTag"], + "required": [ + "vocabTag" + ], "properties": { "vocabTag": { "$ref": "#/components/schemas/org.hypercerts.vocab.getVocabTag.vocabTagView" @@ -6154,7 +8406,9 @@ }, "org.hypercerts.vocab.listVocabTags.output": { "type": "object", - "required": ["vocabTags"], + "required": [ + "vocabTags" + ], "properties": { "vocabTags": { "type": "array", @@ -6175,21 +8429,51 @@ "org.hypercerts.workscope.getWorkscopeTag.workscopeTagView": { "type": "object", "description": "Work-scope tag view with its hydrated publisher, unchanged record, and nullable index timestamp.", - "required": ["uri", "cid", "indexedAt", "did", "author", "record"], + "required": [ + "uri", + "cid", + "indexedAt", + "did", + "author", + "record" + ], "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, + "uri": { + "type": "string", + "format": "at-uri" + }, + "cid": { + "type": "string", + "format": "cid" + }, "indexedAt": { - "anyOf": [{ "type": "string", "format": "datetime" }, { "type": "null" }] + "anyOf": [ + { + "type": "string", + "format": "datetime" + }, + { + "type": "null" + } + ] + }, + "did": { + "type": "string", + "format": "did" }, - "did": { "type": "string", "format": "did" }, - "author": { "$ref": "#/components/schemas/org.hypercerts.api.defs.actorView" }, - "record": { "$ref": "#/components/schemas/org.hypercerts.workscope.tag.main" } + "author": { + "$ref": "#/components/schemas/org.hypercerts.api.defs.actorView" + }, + "record": { + "$ref": "#/components/schemas/org.hypercerts.workscope.tag.main" + } } }, "org.hypercerts.workscope.getWorkscopeTag.output": { "type": "object", - "required": ["workscopeTag"], + "required": [ + "workscopeTag" + ], "properties": { "workscopeTag": { "$ref": "#/components/schemas/org.hypercerts.workscope.getWorkscopeTag.workscopeTagView" @@ -6198,7 +8482,9 @@ }, "org.hypercerts.workscope.listWorkscopeTags.output": { "type": "object", - "required": ["workscopeTags"], + "required": [ + "workscopeTags" + ], "properties": { "workscopeTags": { "type": "array", diff --git a/.agents/skills/hypercerts-api/references/reliability.md b/.agents/skills/hypercerts-api/references/reliability.md index cc383d3c..e49b3930 100644 --- a/.agents/skills/hypercerts-api/references/reliability.md +++ b/.agents/skills/hypercerts-api/references/reliability.md @@ -42,7 +42,7 @@ For `org.hypercerts.context.getEvaluation` and `listEvaluations`, the top-level ## Diagnose failures without overgeneralizing 1. Record HTTP status and parse the JSON XRPC error code/message when present; preserve a fallback for empty or non-JSON bodies. See [request-patterns.md](request-patterns.md#handle-http-and-xrpc-errors). -2. Inspect the exact endpoint's declared errors in the bundled [OpenAPI contract](openapi.json). `InvalidRequest`, `RecordNotFound`, resolver errors, and query/hydration errors indicate different next steps; don't assume every endpoint declares the same codes or status mapping. +2. Inspect the exact endpoint's declared errors in the bundled [OpenAPI contract](openapi.json). `InvalidRequest`, `RecordNotFound`, resolver errors, and query/hydration errors indicate different next steps; don't assume every endpoint declares the same codes or status mapping. Declared names are what the endpoint's script raises; on the wire they currently appear in the `message` of an HTTP 500 `script_error`, after a `runtime error: ` prefix in the pinned HappyView (for example `runtime error: RecordNotFound: location record is not indexed`; see [request-patterns.md](request-patterns.md#handle-http-and-xrpc-errors)). Match the declared name in `message` after that prefix, not at its start, and do not expect `error` to equal the declared name. 3. For `InvalidRequest`, verify full NSID path, parameter names, encoding, required values, array limits, type/format, cursor, and sort/filter preservation. 4. For a not-found or empty result, verify the identifier is the expected DID/AT-URI and consider index freshness. Do not silently downgrade a failure into absence. 5. The bundled snapshot cannot establish that an endpoint is enabled on the selected host. If deployment availability itself is the user's request, make only a scoped check against the explicitly approved target; otherwise, do not infer availability from the contract or probe the host. diff --git a/.agents/skills/hypercerts-api/references/request-patterns.md b/.agents/skills/hypercerts-api/references/request-patterns.md index 5772035e..cedcca18 100644 --- a/.agents/skills/hypercerts-api/references/request-patterns.md +++ b/.agents/skills/hypercerts-api/references/request-patterns.md @@ -37,7 +37,7 @@ Do not use `authors[]=` or comma-joined values unless that exact endpoint contra A useful starting distinction: arrays often mean “any of these” for a filter, while separate filters may combine with AND, but this is **not a universal rule**. For example, the bundled collection contract says `tagUris` requires every supplied tag URI, while `itemUris` matches URI without CID. Confirm the exact operation before relying on filter logic. -The batch relationship checks `app.certified.graph.getFollows` and `app.certified.graph.getEntityFollows` each take one `actor` and 1–100 repeated, unbracketed `subjects` or `entities` values. Keep duplicates if the caller supplied them: each output `results` entry echoes its target and preserves its position. The encoded GET request-target must stay within 16,384 bytes. Over-limit requests are currently rejected with HTTP 500 `script_error` whose message begins `InvalidRequest:`, not 400. A null `follow` means only that no indexed relationship was found; database failures are errors, not nulls. +The batch relationship checks `app.certified.graph.getFollows` and `app.certified.graph.getEntityFollows` each take one `actor` and 1–100 repeated, unbracketed `subjects` or `entities` values. Keep duplicates if the caller supplied them: each output `results` entry echoes its target and preserves its position. The encoded GET request-target must stay within 16,384 bytes. Over-limit requests are currently rejected with HTTP 500 `script_error` whose message contains `InvalidRequest:` after a `runtime error: ` prefix, not 400. A null `follow` means only that no indexed relationship was found; database failures are errors, not nulls. `app.certified.graph.getFollowerCounts` takes no `actor`: append 1–100 account DIDs and full DID-authority entity AT-URIs under the same unbracketed `subjects` key, in any mix. A value starting with `did:` is counted as an account; any other value must be an entity AT-URI. The response has one `{subject, followerCount}` entry per input occurrence in the same order, including duplicates. The same 16,384-byte request-target limit applies, and a zero count means no indexed followers were found at query time. @@ -123,10 +123,16 @@ if (!response.ok) { : {}; const code = typeof body.error === "string" ? body.error : "XrpcError"; const message = typeof body.message === "string" ? body.message : ""; - throw new Error( - `GET ${url.pathname} failed: HTTP ${response.status}, ${code}${message ? `: ${message}` : ""}`, + // Keep the parsed fields so callers can match the declared error name. + throw Object.assign( + new Error( + `GET ${url.pathname} failed: HTTP ${response.status}, ${code}${message ? `: ${message}` : ""}`, + ), + { status: response.status, code, xrpcMessage: message }, ); } ``` +Currently, HappyView returns every error raised by an endpoint script as HTTP 500 with a body like `{"error":"script_error","message":"runtime error: InvalidRequest: limit must be an integer from 1 through 100"}`, not the declared error name as `error` and not a 4xx status. The declared error name (`InvalidRequest`, `RecordNotFound`, and so on) appears in `message`, after a `runtime error: ` prefix in the pinned HappyView; match it there (for example with `/^(?:runtime error: )?Name:/` on the thrown error's `xrpcMessage` property), not the HTTP status. This depends on the HappyView version in use and may change; accept both forms (`error` equal to the name, or `message` containing `Name:` after an optional `runtime error: ` prefix). + On failure, use that endpoint's declared errors in the bundled OpenAPI operation to decide whether the request is invalid, a record is absent from the index, handle resolution failed, or an indexed query/hydration failed. Do not map a query failure to “no results.” For null and not-found distinctions, see [reliability.md](reliability.md). diff --git a/.changeset/lexicon-defaults-nullable-indexed-at.md b/.changeset/lexicon-defaults-nullable-indexed-at.md new file mode 100644 index 00000000..2cf1546a --- /dev/null +++ b/.changeset/lexicon-defaults-nullable-indexed-at.md @@ -0,0 +1,10 @@ +--- +'@hypercerts-org/happyview-modules': patch +'@hypercerts-org/api': minor +--- + +Query definitions now state what the API already does: `limit` defaults to 25 and `sortDirection` to `desc`, `getLocation` documents its `InvalidRequest` error, and `indexedAt` on location and evaluation results can be null. + +Client type changes (no wire change): +- `indexedAt` on `locationView` and `evaluationView` is now `string | null`; handle null if you read it. +- On list endpoints with new defaults, `$Params` now describes parsed params, so `limit` and `sortDirection` are required there. `client.call(..., {})` still compiles. If you annotate request objects with `$Params` and omit those keys, use `l.InferInput` instead. diff --git a/.changeset/reject-year-zero-cursor.md b/.changeset/reject-year-zero-cursor.md new file mode 100644 index 00000000..613b6ef1 --- /dev/null +++ b/.changeset/reject-year-zero-cursor.md @@ -0,0 +1,5 @@ +--- +'@hypercerts-org/happyview-modules': patch +--- + +A list request whose `cursor` or `before` timestamp is in year 0000 now returns an `InvalidRequest` error. Several endpoints used to answer it with an HTTP 500. `listVocabTags` now reports this as "cursor is malformed". diff --git a/.github/workflows/hypercerts-api.yml b/.github/workflows/hypercerts-api.yml index 8a8080e2..01c5c168 100644 --- a/.github/workflows/hypercerts-api.yml +++ b/.github/workflows/hypercerts-api.yml @@ -22,6 +22,7 @@ jobs: checks: name: API validation and build runs-on: ubuntu-latest + timeout-minutes: 15 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 15fac5d7..114233c5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,6 +18,7 @@ jobs: name: Select Changesets mode if: github.event_name == 'push' runs-on: ubuntu-latest + timeout-minutes: 15 permissions: contents: read outputs: @@ -52,6 +53,7 @@ jobs: if: github.event_name == 'push' && needs.select-mode.outputs.mode == 'version' needs: select-mode runs-on: ubuntu-latest + timeout-minutes: 15 permissions: contents: read steps: @@ -106,6 +108,7 @@ jobs: github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.head.ref == 'changeset-release/main' runs-on: ubuntu-latest + timeout-minutes: 15 permissions: contents: read # npm Trusted Publishing: npm exchanges the workflow's OIDC token for a diff --git a/AGENTS.md b/AGENTS.md index 8d6c98a7..a24e11cc 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -7,4 +7,4 @@ - Read [CONTRIBUTING.md](CONTRIBUTING.md) for local validation and HTTP runtime test requirements before changing test or installer behavior. - `pnpm install:api` sends admin requests to a HappyView instance and uploads assets. Do not run it unless the user explicitly approves the target and token in the current conversation. - HTTP runtime tests use a task-owned local Compose project and disposable database. Do not target or tear down unrelated services; note that the Compose bridge network permits egress and the configured proxy is not network-level isolation. -- When adding a query endpoint, add it to the post-deploy smoke and e2e checks (`happyview-modules/tooling/smoke-cases.js`, `e2e.js`); when an endpoint's behavior changes, update those checks to match. +- Every new query endpoint needs a case in `happyview-modules/tooling/smoke-cases.js`. Add it to `happyview-modules/tooling/e2e.js` only if it has paging walks, count invariants or batch behaviour. When an endpoint's behavior changes, update the checks that cover it. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4ee265ee..fe195e83 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,7 +2,7 @@ ## Set up and validate -Use Node 24 (pinned in `.nvmrc`, which CI also reads) and the repository-pinned pnpm version. From the repository root: +Use Node 24 (pinned in `.nvmrc`, which CI also reads) and the repository-pinned pnpm version. Unit tests and `pnpm check` also need Lua 5.4 with both `lua5.4` and `lua` on `PATH` (unit tests call each by name; if you only have one, symlink the other to it, as CI does) and `luacheck` 1.2.0 (`luarocks --lua-version=5.4 --local install luacheck 1.2.0`). From the repository root: ```sh pnpm install --frozen-lockfile @@ -13,6 +13,8 @@ pnpm build `pnpm test:unit` runs the discovered tests under `happyview-modules/tests/unit`; unit tests use local fixtures and fake process/network adapters, and do not seed a database or contact HappyView. `pnpm check` also checks generated-source freshness, JavaScript and Lua lint, types, endpoint tests, and the `@hypercerts-org/api` package in `packages/api/`. `pnpm build` emits Lua handlers declared by the root and module manifests, builds the endpoint explorer, and builds `@hypercerts-org/api`. Shared Lua files are bundled into capability handlers rather than installed independently. +The list-endpoint golden (`happyview-modules/tests/unit/list-golden/`) pins the SQL, binds and outcomes of every cursor-taking query. It reads the _generated_ Lua bundles, not `lua/shared` or `lua/src`, so run `pnpm --filter @hypercerts-org/happyview-modules run build:lua` after editing those before running `pnpm test:unit`. After an intended behavior change, rebuild, then regenerate with `UPDATE_GOLDEN=1 pnpm test:unit` and review the diff. + ## API reference snapshots When a change affects registered query Lexicons or their schemas, refresh the committed explorer artifacts from the current API manifest: diff --git a/biome.json b/biome.json index 697d7184..f630d82d 100644 --- a/biome.json +++ b/biome.json @@ -16,6 +16,7 @@ "!docs/public", "!docs/sources", "!docs/openapi.json", + "!.agents/skills/hypercerts-api/references/openapi.json", "!docs/coverage.json", "!packages/api/src/lexicons", "!packages/api/src/index.ts" diff --git a/docs/openapi.json b/docs/openapi.json index 19ca439a..376d20d7 100644 --- a/docs/openapi.json +++ b/docs/openapi.json @@ -318,7 +318,8 @@ "enum": [ "asc", "desc" - ] + ], + "default": "desc" } }, { @@ -328,6 +329,7 @@ "description": "Page size; default 25.", "schema": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100 } @@ -389,7 +391,8 @@ "enum": [ "asc", "desc" - ] + ], + "default": "desc" } }, { @@ -399,6 +402,7 @@ "description": "Page size; default 25.", "schema": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100 } @@ -510,7 +514,8 @@ "enum": [ "asc", "desc" - ] + ], + "default": "desc" } }, { @@ -520,6 +525,7 @@ "description": "Page size; default 25.", "schema": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100 } @@ -590,7 +596,8 @@ "enum": [ "asc", "desc" - ] + ], + "default": "desc" } }, { @@ -616,6 +623,7 @@ "description": "Page size; default 25.", "schema": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100 } @@ -1303,7 +1311,8 @@ "enum": [ "asc", "desc" - ] + ], + "default": "desc" } }, { @@ -1313,6 +1322,7 @@ "description": "Maximum relationships per page; defaults to 25.", "schema": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100 } @@ -1449,7 +1459,8 @@ "enum": [ "asc", "desc" - ] + ], + "default": "desc" } }, { @@ -1459,6 +1470,7 @@ "description": "Maximum relationships per page; defaults to 25.", "schema": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100 } @@ -1530,7 +1542,8 @@ "enum": [ "asc", "desc" - ] + ], + "default": "desc" } }, { @@ -1540,6 +1553,7 @@ "description": "Maximum relationships per page; defaults to 25.", "schema": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100 } @@ -1666,7 +1680,8 @@ "enum": [ "asc", "desc" - ] + ], + "default": "desc" } }, { @@ -1676,6 +1691,7 @@ "description": "Maximum relationships per page; defaults to 25.", "schema": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100 } @@ -2045,7 +2061,8 @@ "enum": [ "asc", "desc" - ] + ], + "default": "desc" } }, { @@ -2055,6 +2072,7 @@ "description": "Maximum relationships per page; defaults to 25.", "schema": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100 } @@ -2122,7 +2140,8 @@ "enum": [ "asc", "desc" - ] + ], + "default": "desc" } }, { @@ -2132,6 +2151,7 @@ "description": "Maximum relationships per page; defaults to 25.", "schema": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100 } @@ -2199,7 +2219,8 @@ "enum": [ "asc", "desc" - ] + ], + "default": "desc" } }, { @@ -2209,6 +2230,7 @@ "description": "Maximum relationships per page; defaults to 25.", "schema": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100 } @@ -2276,7 +2298,8 @@ "enum": [ "asc", "desc" - ] + ], + "default": "desc" } }, { @@ -2286,6 +2309,7 @@ "description": "Maximum relationships per page; defaults to 25.", "schema": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100 } @@ -2350,6 +2374,7 @@ "description": "Maximum records per page; defaults to 25.", "schema": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100 } @@ -2576,6 +2601,10 @@ "module": "modules/location/manifest.json" }, "x-lexicon-errors": [ + { + "name": "InvalidRequest", + "description": "The URI is missing, repeated, invalid, or not a location record AT-URI, or an unsupported parameter was supplied." + }, { "name": "RecordNotFound", "description": "No indexed location exists at this AT-URI." @@ -2646,6 +2675,7 @@ "description": "Page size; defaults to 25.", "schema": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100 } @@ -2669,7 +2699,8 @@ "enum": [ "asc", "desc" - ] + ], + "default": "desc" } } ], @@ -2993,7 +3024,8 @@ "enum": [ "asc", "desc" - ] + ], + "default": "desc" } }, { @@ -3003,6 +3035,7 @@ "description": "Maximum activities per page; defaults to 25.", "schema": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100 } @@ -3169,7 +3202,8 @@ "enum": [ "asc", "desc" - ] + ], + "default": "desc" } }, { @@ -3179,6 +3213,7 @@ "description": "Maximum records in the page; defaults to 25.", "schema": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100 } @@ -3256,7 +3291,8 @@ "enum": [ "asc", "desc" - ] + ], + "default": "desc" } }, { @@ -3266,6 +3302,7 @@ "description": "Maximum records in the page; defaults to 25.", "schema": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100 } @@ -3405,7 +3442,8 @@ "enum": [ "asc", "desc" - ] + ], + "default": "desc" } }, { @@ -3415,6 +3453,7 @@ "description": "Maximum activities per page; defaults to 25.", "schema": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100 } @@ -3531,6 +3570,7 @@ "description": "Maximum embedded items in the page; default 25.", "schema": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100 } @@ -3681,7 +3721,8 @@ "enum": [ "asc", "desc" - ] + ], + "default": "desc" } }, { @@ -3691,6 +3732,7 @@ "description": "Maximum collections per page; defaults to 25.", "schema": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100 } @@ -3846,7 +3888,8 @@ "enum": [ "asc", "desc" - ] + ], + "default": "desc" } }, { @@ -3856,6 +3899,7 @@ "description": "Maximum collections per page; defaults to 25.", "schema": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100 } @@ -4201,7 +4245,8 @@ "enum": [ "asc", "desc" - ] + ], + "default": "desc" } }, { @@ -4336,7 +4381,8 @@ "enum": [ "asc", "desc" - ] + ], + "default": "desc" } }, { @@ -4346,6 +4392,7 @@ "description": "Maximum page size; defaults to 25.", "schema": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100 } @@ -4455,7 +4502,8 @@ "enum": [ "asc", "desc" - ] + ], + "default": "desc" } }, { @@ -4465,6 +4513,7 @@ "description": "Maximum page size; defaults to 25.", "schema": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100 } @@ -4929,7 +4978,8 @@ "enum": [ "asc", "desc" - ] + ], + "default": "desc" } }, { @@ -4939,6 +4989,7 @@ "description": "Maximum receipts per page; default 25.", "schema": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100 } @@ -7580,8 +7631,15 @@ "format": "cid" }, "indexedAt": { - "type": "string", - "format": "datetime" + "anyOf": [ + { + "type": "string", + "format": "datetime" + }, + { + "type": "null" + } + ] }, "did": { "type": "string", @@ -8232,8 +8290,15 @@ "format": "cid" }, "indexedAt": { - "type": "string", - "format": "datetime" + "anyOf": [ + { + "type": "string", + "format": "datetime" + }, + { + "type": "null" + } + ] }, "did": { "type": "string", diff --git a/docs/scripts/check-sources.mjs b/docs/scripts/check-sources.mjs index d75b5971..8671eedd 100644 --- a/docs/scripts/check-sources.mjs +++ b/docs/scripts/check-sources.mjs @@ -1,7 +1,7 @@ import { readFile } from "node:fs/promises"; import path from "node:path"; import { fileURLToPath } from "node:url"; -import { buildDocumentationArtifacts } from "./openapi-artifacts.mjs"; +import { buildDocumentationArtifacts, SKILL_OPENAPI_PATH } from "./openapi-artifacts.mjs"; import { collectDocumentationSources } from "./refresh-sources.mjs"; const docsRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), ".."); @@ -24,7 +24,7 @@ export async function assertDocumentationFresh(options = {}) { async function compare(relativePath, expected) { try { - const actual = await readFile(path.join(currentDocsRoot, relativePath), "utf8"); + const actual = await readFile(path.resolve(currentDocsRoot, relativePath), "utf8"); if (actual !== expected) staleFiles.push(relativePath); } catch (error) { if (error?.code === "ENOENT") staleFiles.push(relativePath); @@ -37,12 +37,13 @@ export async function assertDocumentationFresh(options = {}) { await compare(index.lexicons[indexInList].file, snapshot.content); } await compare("openapi.json", jsonText(artifacts.openapi)); + await compare(path.join("..", SKILL_OPENAPI_PATH), jsonText(artifacts.skillOpenapi)); await compare("coverage.json", jsonText(artifacts.coverage)); if (staleFiles.length > 0) { const paths = [...new Set(staleFiles)] .sort((left, right) => left.localeCompare(right)) - .map((file) => ` - ${file}`) + .map((file) => ` - ${path.normalize(file)}`) .join("\n"); throw new Error( `Documentation artifacts are stale:\n${paths}\nRun pnpm docs:sync to refresh them.`, diff --git a/docs/scripts/generate-openapi.mjs b/docs/scripts/generate-openapi.mjs index baeeeeb2..c1da8adc 100644 --- a/docs/scripts/generate-openapi.mjs +++ b/docs/scripts/generate-openapi.mjs @@ -1,7 +1,7 @@ import { readFile, writeFile } from "node:fs/promises"; import path from "node:path"; import { fileURLToPath } from "node:url"; -import { buildDocumentationArtifacts } from "./openapi-artifacts.mjs"; +import { buildDocumentationArtifacts, SKILL_OPENAPI_PATH } from "./openapi-artifacts.mjs"; const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), ".."); @@ -37,6 +37,10 @@ async function main() { path.join(root, "openapi.json"), `${JSON.stringify(artifacts.openapi, null, 2)}\n`, ); + await writeFile( + path.join(root, "..", SKILL_OPENAPI_PATH), + `${JSON.stringify(artifacts.skillOpenapi, null, 2)}\n`, + ); await writeFile( path.join(root, "coverage.json"), `${JSON.stringify(artifacts.coverage, null, 2)}\n`, diff --git a/docs/scripts/openapi-artifacts.mjs b/docs/scripts/openapi-artifacts.mjs index 35e7bcd8..c64ebe02 100644 --- a/docs/scripts/openapi-artifacts.mjs +++ b/docs/scripts/openapi-artifacts.mjs @@ -1,5 +1,30 @@ import { buildOpenApi, DEFAULT_SERVER_URL } from "./openapi.mjs"; +/** Repository-relative location of the OpenAPI copy bundled with the hypercerts-api skill. */ +export const SKILL_OPENAPI_PATH = ".agents/skills/hypercerts-api/references/openapi.json"; + +const SKILL_OPENAPI_INFO = { + title: "Hypercerts API", + version: "contract-snapshot", + description: + "Public, read-only Hypercerts XRPC query endpoints. This static contract snapshot describes declared behavior, not availability on a particular deployment.", +}; + +function stripHypercertsExtensions(value) { + if (Array.isArray(value)) return value.map(stripHypercertsExtensions); + if (!value || typeof value !== "object") return value; + return Object.fromEntries( + Object.entries(value) + .filter(([key]) => !key.startsWith("x-hypercerts-")) + .map(([key, child]) => [key, stripHypercertsExtensions(child)]), + ); +} + +/** Derive the self-contained skill copy: no repository-specific `x-hypercerts-*` keys. */ +export function buildSkillOpenApi(openapi) { + return { ...stripHypercertsExtensions(openapi), info: SKILL_OPENAPI_INFO }; +} + export function buildDocumentationArtifacts(sourceIndex, lexicons) { const lexiconsById = new Map(); for (const lexicon of lexicons) { @@ -83,5 +108,5 @@ export function buildDocumentationArtifacts(sourceIndex, lexicons) { })), }; - return { openapi: document, coverage: coverageReport }; + return { openapi: document, skillOpenapi: buildSkillOpenApi(document), coverage: coverageReport }; } diff --git a/docs/sources/lexicons/app.certified.actor.listOrganizations.json b/docs/sources/lexicons/app.certified.actor.listOrganizations.json index 2b73be28..e7f41e52 100644 --- a/docs/sources/lexicons/app.certified.actor.listOrganizations.json +++ b/docs/sources/lexicons/app.certified.actor.listOrganizations.json @@ -23,6 +23,7 @@ }, "sortDirection": { "type": "string", + "default": "desc", "enum": [ "asc", "desc" @@ -31,6 +32,7 @@ }, "limit": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100, "description": "Page size; default 25." diff --git a/docs/sources/lexicons/app.certified.actor.listProfiles.json b/docs/sources/lexicons/app.certified.actor.listProfiles.json index 0fe9724e..3ccb0c73 100644 --- a/docs/sources/lexicons/app.certified.actor.listProfiles.json +++ b/docs/sources/lexicons/app.certified.actor.listProfiles.json @@ -10,6 +10,7 @@ "properties": { "sortDirection": { "type": "string", + "default": "desc", "description": "Sort by a valid zoned createdAt, otherwise indexedAt, falling back to row creation time; URI breaks ties. Default desc.", "enum": [ "asc", @@ -18,6 +19,7 @@ }, "limit": { "type": "integer", + "default": 25, "description": "Page size; default 25.", "minimum": 1, "maximum": 100 diff --git a/docs/sources/lexicons/app.certified.actor.searchOrganizations.json b/docs/sources/lexicons/app.certified.actor.searchOrganizations.json index 849507de..92552849 100644 --- a/docs/sources/lexicons/app.certified.actor.searchOrganizations.json +++ b/docs/sources/lexicons/app.certified.actor.searchOrganizations.json @@ -39,6 +39,7 @@ }, "sortDirection": { "type": "string", + "default": "desc", "enum": [ "asc", "desc" @@ -47,6 +48,7 @@ }, "limit": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100, "description": "Page size; default 25." diff --git a/docs/sources/lexicons/app.certified.actor.searchProfiles.json b/docs/sources/lexicons/app.certified.actor.searchProfiles.json index 1af08c88..b4552e79 100644 --- a/docs/sources/lexicons/app.certified.actor.searchProfiles.json +++ b/docs/sources/lexicons/app.certified.actor.searchProfiles.json @@ -17,6 +17,7 @@ }, "sortDirection": { "type": "string", + "default": "desc", "description": "Sort by a valid zoned createdAt, otherwise indexedAt, falling back to row creation time; URI breaks ties. Default desc.", "enum": [ "asc", @@ -34,6 +35,7 @@ }, "limit": { "type": "integer", + "default": 25, "description": "Page size; default 25.", "minimum": 1, "maximum": 100 diff --git a/docs/sources/lexicons/app.certified.feed.getActorLikes.json b/docs/sources/lexicons/app.certified.feed.getActorLikes.json index 044ffb32..9bc17ed8 100644 --- a/docs/sources/lexicons/app.certified.feed.getActorLikes.json +++ b/docs/sources/lexicons/app.certified.feed.getActorLikes.json @@ -18,6 +18,7 @@ }, "sortDirection": { "type": "string", + "default": "desc", "enum": [ "asc", "desc" @@ -26,6 +27,7 @@ }, "limit": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum relationships per page; defaults to 25." diff --git a/docs/sources/lexicons/app.certified.feed.getActorReposts.json b/docs/sources/lexicons/app.certified.feed.getActorReposts.json index 5e7d2b48..56e81174 100644 --- a/docs/sources/lexicons/app.certified.feed.getActorReposts.json +++ b/docs/sources/lexicons/app.certified.feed.getActorReposts.json @@ -18,6 +18,7 @@ }, "sortDirection": { "type": "string", + "default": "desc", "enum": [ "asc", "desc" @@ -26,6 +27,7 @@ }, "limit": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum relationships per page; defaults to 25." diff --git a/docs/sources/lexicons/app.certified.feed.getLikes.json b/docs/sources/lexicons/app.certified.feed.getLikes.json index 21d51278..ce7d23a3 100644 --- a/docs/sources/lexicons/app.certified.feed.getLikes.json +++ b/docs/sources/lexicons/app.certified.feed.getLikes.json @@ -18,6 +18,7 @@ }, "sortDirection": { "type": "string", + "default": "desc", "enum": [ "asc", "desc" @@ -26,6 +27,7 @@ }, "limit": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum relationships per page; defaults to 25." diff --git a/docs/sources/lexicons/app.certified.feed.getReposts.json b/docs/sources/lexicons/app.certified.feed.getReposts.json index 6b26a5be..322da33f 100644 --- a/docs/sources/lexicons/app.certified.feed.getReposts.json +++ b/docs/sources/lexicons/app.certified.feed.getReposts.json @@ -18,6 +18,7 @@ }, "sortDirection": { "type": "string", + "default": "desc", "enum": [ "asc", "desc" @@ -26,6 +27,7 @@ }, "limit": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum relationships per page; defaults to 25." diff --git a/docs/sources/lexicons/app.certified.graph.listActorFollowers.json b/docs/sources/lexicons/app.certified.graph.listActorFollowers.json index d148c3e8..faa0cbfa 100644 --- a/docs/sources/lexicons/app.certified.graph.listActorFollowers.json +++ b/docs/sources/lexicons/app.certified.graph.listActorFollowers.json @@ -18,6 +18,7 @@ }, "sortDirection": { "type": "string", + "default": "desc", "enum": [ "asc", "desc" @@ -26,6 +27,7 @@ }, "limit": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum relationships per page; defaults to 25." diff --git a/docs/sources/lexicons/app.certified.graph.listActorFollowing.json b/docs/sources/lexicons/app.certified.graph.listActorFollowing.json index aa61b5c0..61d22875 100644 --- a/docs/sources/lexicons/app.certified.graph.listActorFollowing.json +++ b/docs/sources/lexicons/app.certified.graph.listActorFollowing.json @@ -18,6 +18,7 @@ }, "sortDirection": { "type": "string", + "default": "desc", "enum": [ "asc", "desc" @@ -26,6 +27,7 @@ }, "limit": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum relationships per page; defaults to 25." diff --git a/docs/sources/lexicons/app.certified.graph.listEntityFollowers.json b/docs/sources/lexicons/app.certified.graph.listEntityFollowers.json index 6e18cad2..f3f2ec82 100644 --- a/docs/sources/lexicons/app.certified.graph.listEntityFollowers.json +++ b/docs/sources/lexicons/app.certified.graph.listEntityFollowers.json @@ -18,6 +18,7 @@ }, "sortDirection": { "type": "string", + "default": "desc", "enum": [ "asc", "desc" @@ -26,6 +27,7 @@ }, "limit": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum relationships per page; defaults to 25." diff --git a/docs/sources/lexicons/app.certified.graph.listEntityFollowing.json b/docs/sources/lexicons/app.certified.graph.listEntityFollowing.json index b1b06dc3..8f63ad63 100644 --- a/docs/sources/lexicons/app.certified.graph.listEntityFollowing.json +++ b/docs/sources/lexicons/app.certified.graph.listEntityFollowing.json @@ -18,6 +18,7 @@ }, "sortDirection": { "type": "string", + "default": "desc", "enum": [ "asc", "desc" @@ -26,6 +27,7 @@ }, "limit": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum relationships per page; defaults to 25." diff --git a/docs/sources/lexicons/app.certified.graph.listRecentFollows.json b/docs/sources/lexicons/app.certified.graph.listRecentFollows.json index d74c5263..e96c406e 100644 --- a/docs/sources/lexicons/app.certified.graph.listRecentFollows.json +++ b/docs/sources/lexicons/app.certified.graph.listRecentFollows.json @@ -15,6 +15,7 @@ }, "limit": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum records per page; defaults to 25." diff --git a/docs/sources/lexicons/app.certified.location.getLocation.json b/docs/sources/lexicons/app.certified.location.getLocation.json index 189b3ce2..e97411fa 100644 --- a/docs/sources/lexicons/app.certified.location.getLocation.json +++ b/docs/sources/lexicons/app.certified.location.getLocation.json @@ -26,6 +26,10 @@ } }, "errors": [ + { + "name": "InvalidRequest", + "description": "The URI is missing, repeated, invalid, or not a location record AT-URI, or an unsupported parameter was supplied." + }, { "name": "RecordNotFound", "description": "No indexed location exists at this AT-URI." @@ -56,6 +60,9 @@ "author", "record" ], + "nullable": [ + "indexedAt" + ], "properties": { "uri": { "type": "string", diff --git a/docs/sources/lexicons/app.certified.location.listLocations.json b/docs/sources/lexicons/app.certified.location.listLocations.json index dd7ec15e..571ed39e 100644 --- a/docs/sources/lexicons/app.certified.location.listLocations.json +++ b/docs/sources/lexicons/app.certified.location.listLocations.json @@ -37,6 +37,7 @@ }, "limit": { "type": "integer", + "default": 25, "description": "Page size; defaults to 25.", "minimum": 1, "maximum": 100 @@ -47,6 +48,7 @@ }, "sortDirection": { "type": "string", + "default": "desc", "description": "Sort by a valid zoned createdAt; otherwise indexedAt or stored row creation time, then URI, all in this direction. Defaults to desc.", "enum": [ "asc", diff --git a/docs/sources/lexicons/org.hypercerts.claim.listActivities.json b/docs/sources/lexicons/org.hypercerts.claim.listActivities.json index 050f9766..99a052a6 100644 --- a/docs/sources/lexicons/org.hypercerts.claim.listActivities.json +++ b/docs/sources/lexicons/org.hypercerts.claim.listActivities.json @@ -50,6 +50,7 @@ }, "sortDirection": { "type": "string", + "default": "desc", "enum": [ "asc", "desc" @@ -58,6 +59,7 @@ }, "limit": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum activities per page; defaults to 25." diff --git a/docs/sources/lexicons/org.hypercerts.claim.listContributorInformation.json b/docs/sources/lexicons/org.hypercerts.claim.listContributorInformation.json index 92673f6a..773b5f20 100644 --- a/docs/sources/lexicons/org.hypercerts.claim.listContributorInformation.json +++ b/docs/sources/lexicons/org.hypercerts.claim.listContributorInformation.json @@ -19,6 +19,7 @@ }, "sortDirection": { "type": "string", + "default": "desc", "enum": [ "asc", "desc" @@ -27,6 +28,7 @@ }, "limit": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum records in the page; defaults to 25." diff --git a/docs/sources/lexicons/org.hypercerts.claim.listRights.json b/docs/sources/lexicons/org.hypercerts.claim.listRights.json index d9b47d27..5d3e530b 100644 --- a/docs/sources/lexicons/org.hypercerts.claim.listRights.json +++ b/docs/sources/lexicons/org.hypercerts.claim.listRights.json @@ -19,6 +19,7 @@ }, "sortDirection": { "type": "string", + "default": "desc", "enum": [ "asc", "desc" @@ -27,6 +28,7 @@ }, "limit": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum records in the page; defaults to 25." diff --git a/docs/sources/lexicons/org.hypercerts.claim.searchActivities.json b/docs/sources/lexicons/org.hypercerts.claim.searchActivities.json index 214a9759..bc10222a 100644 --- a/docs/sources/lexicons/org.hypercerts.claim.searchActivities.json +++ b/docs/sources/lexicons/org.hypercerts.claim.searchActivities.json @@ -57,6 +57,7 @@ }, "sortDirection": { "type": "string", + "default": "desc", "enum": [ "asc", "desc" @@ -65,6 +66,7 @@ }, "limit": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum activities per page; defaults to 25." diff --git a/docs/sources/lexicons/org.hypercerts.collection.listCollectionItems.json b/docs/sources/lexicons/org.hypercerts.collection.listCollectionItems.json index 3ec0f141..dcfa3dde 100644 --- a/docs/sources/lexicons/org.hypercerts.collection.listCollectionItems.json +++ b/docs/sources/lexicons/org.hypercerts.collection.listCollectionItems.json @@ -18,6 +18,7 @@ }, "limit": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum embedded items in the page; default 25." diff --git a/docs/sources/lexicons/org.hypercerts.collection.listCollections.json b/docs/sources/lexicons/org.hypercerts.collection.listCollections.json index 7daadb1e..4f678fe1 100644 --- a/docs/sources/lexicons/org.hypercerts.collection.listCollections.json +++ b/docs/sources/lexicons/org.hypercerts.collection.listCollections.json @@ -59,6 +59,7 @@ }, "sortDirection": { "type": "string", + "default": "desc", "enum": [ "asc", "desc" @@ -67,6 +68,7 @@ }, "limit": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum collections per page; defaults to 25." diff --git a/docs/sources/lexicons/org.hypercerts.collection.searchCollections.json b/docs/sources/lexicons/org.hypercerts.collection.searchCollections.json index cef1dbe4..a982a38d 100644 --- a/docs/sources/lexicons/org.hypercerts.collection.searchCollections.json +++ b/docs/sources/lexicons/org.hypercerts.collection.searchCollections.json @@ -66,6 +66,7 @@ }, "sortDirection": { "type": "string", + "default": "desc", "enum": [ "asc", "desc" @@ -74,6 +75,7 @@ }, "limit": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum collections per page; defaults to 25." diff --git a/docs/sources/lexicons/org.hypercerts.context.getEvaluation.json b/docs/sources/lexicons/org.hypercerts.context.getEvaluation.json index 0f361058..1064ba85 100644 --- a/docs/sources/lexicons/org.hypercerts.context.getEvaluation.json +++ b/docs/sources/lexicons/org.hypercerts.context.getEvaluation.json @@ -69,6 +69,9 @@ "record", "evaluators" ], + "nullable": [ + "indexedAt" + ], "properties": { "uri": { "type": "string", diff --git a/docs/sources/lexicons/org.hypercerts.context.listAcknowledgements.json b/docs/sources/lexicons/org.hypercerts.context.listAcknowledgements.json index 640afcec..0ea1b450 100644 --- a/docs/sources/lexicons/org.hypercerts.context.listAcknowledgements.json +++ b/docs/sources/lexicons/org.hypercerts.context.listAcknowledgements.json @@ -28,6 +28,7 @@ }, "sortDirection": { "type": "string", + "default": "desc", "enum": [ "asc", "desc" diff --git a/docs/sources/lexicons/org.hypercerts.context.listAttachments.json b/docs/sources/lexicons/org.hypercerts.context.listAttachments.json index 73fbdb77..2ac1a435 100644 --- a/docs/sources/lexicons/org.hypercerts.context.listAttachments.json +++ b/docs/sources/lexicons/org.hypercerts.context.listAttachments.json @@ -45,6 +45,7 @@ }, "sortDirection": { "type": "string", + "default": "desc", "enum": [ "asc", "desc" @@ -53,6 +54,7 @@ }, "limit": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum page size; defaults to 25." diff --git a/docs/sources/lexicons/org.hypercerts.context.listEvaluations.json b/docs/sources/lexicons/org.hypercerts.context.listEvaluations.json index d8653717..8e71511b 100644 --- a/docs/sources/lexicons/org.hypercerts.context.listEvaluations.json +++ b/docs/sources/lexicons/org.hypercerts.context.listEvaluations.json @@ -37,6 +37,7 @@ }, "sortDirection": { "type": "string", + "default": "desc", "enum": [ "asc", "desc" @@ -45,6 +46,7 @@ }, "limit": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum page size; defaults to 25." diff --git a/docs/sources/lexicons/org.hypercerts.funding.listReceipts.json b/docs/sources/lexicons/org.hypercerts.funding.listReceipts.json index 3ab8d2b0..f5d4bd5c 100644 --- a/docs/sources/lexicons/org.hypercerts.funding.listReceipts.json +++ b/docs/sources/lexicons/org.hypercerts.funding.listReceipts.json @@ -61,6 +61,7 @@ }, "sortDirection": { "type": "string", + "default": "desc", "enum": [ "asc", "desc" @@ -69,6 +70,7 @@ }, "limit": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum receipts per page; default 25." diff --git a/docs/test/documentation-freshness.test.mjs b/docs/test/documentation-freshness.test.mjs index 279cf9bf..15e733c4 100644 --- a/docs/test/documentation-freshness.test.mjs +++ b/docs/test/documentation-freshness.test.mjs @@ -4,7 +4,7 @@ import os from "node:os"; import path from "node:path"; import test from "node:test"; import { assertDocumentationFresh } from "../scripts/check-sources.mjs"; -import { buildDocumentationArtifacts } from "../scripts/openapi-artifacts.mjs"; +import { buildDocumentationArtifacts, SKILL_OPENAPI_PATH } from "../scripts/openapi-artifacts.mjs"; import { collectDocumentationSources } from "../scripts/refresh-sources.mjs"; async function writeJson(file, value) { @@ -20,14 +20,15 @@ async function writeBaselineArtifacts(apiRoot, fixtureDocs, packageRoot) { lexiconPackageRoot: packageRoot, }); for (const snapshot of snapshots) await writeFile(snapshot.file, snapshot.content); - const { openapi, coverage } = buildDocumentationArtifacts( + const { openapi, skillOpenapi, coverage } = buildDocumentationArtifacts( index, snapshots.map(({ content }) => JSON.parse(content)), ); await writeJson(path.join(fixtureDocs, "sources/index.json"), index); await writeJson(path.join(fixtureDocs, "openapi.json"), openapi); await writeJson(path.join(fixtureDocs, "coverage.json"), coverage); - return { index, openapi, coverage }; + await writeJson(path.join(fixtureDocs, "..", SKILL_OPENAPI_PATH), skillOpenapi); + return { index, openapi, skillOpenapi, coverage }; } test("committed snapshots, index metadata, OpenAPI, and coverage match fresh manifest sources", async () => { @@ -130,6 +131,22 @@ test("freshness gate rejects endpoint and pinned support-schema drift without wr ); assert.equal(await readFile(path.join(fixtureDocs, "openapi.json"), "utf8"), baselineOpenApi); + supportSchema.defs.view.properties.value.type = "string"; + await writeJson(schemaPath, supportSchema); + await assertDocumentationFresh({ + apiRoot, + docsRoot: fixtureDocs, + lexiconPackageRoot: packageRoot, + }); + + const skillCopy = path.join(fixtureDocs, "..", SKILL_OPENAPI_PATH); + await writeJson(skillCopy, { ...baseline.openapi }); + await assert.rejects( + assertDocumentationFresh({ apiRoot, docsRoot: fixtureDocs, lexiconPackageRoot: packageRoot }), + /hypercerts-api\/references\/openapi\.json/, + ); + await writeJson(skillCopy, baseline.skillOpenapi); + const staleCoverage = structuredClone(baseline.coverage); staleCoverage.runtimeValidation = "runtime-validated"; await writeJson(path.join(fixtureDocs, "coverage.json"), staleCoverage); diff --git a/happyview-modules/lexicons/app.certified.actor.listOrganizations.json b/happyview-modules/lexicons/app.certified.actor.listOrganizations.json index c24a12c5..0e165cce 100644 --- a/happyview-modules/lexicons/app.certified.actor.listOrganizations.json +++ b/happyview-modules/lexicons/app.certified.actor.listOrganizations.json @@ -20,11 +20,13 @@ }, "sortDirection": { "type": "string", + "default": "desc", "enum": ["asc", "desc"], "description": "Sort by a valid zoned createdAt, otherwise indexedAt, falling back to row creation time; URI breaks ties. Default desc." }, "limit": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100, "description": "Page size; default 25." diff --git a/happyview-modules/lexicons/app.certified.actor.listProfiles.json b/happyview-modules/lexicons/app.certified.actor.listProfiles.json index 11a56f3e..8c237991 100644 --- a/happyview-modules/lexicons/app.certified.actor.listProfiles.json +++ b/happyview-modules/lexicons/app.certified.actor.listProfiles.json @@ -8,8 +8,8 @@ "parameters": { "type": "params", "properties": { - "sortDirection": { "type": "string", "description": "Sort by a valid zoned createdAt, otherwise indexedAt, falling back to row creation time; URI breaks ties. Default desc.", "enum": ["asc", "desc"] }, - "limit": { "type": "integer", "description": "Page size; default 25.", "minimum": 1, "maximum": 100 }, + "sortDirection": { "type": "string", "default": "desc", "description": "Sort by a valid zoned createdAt, otherwise indexedAt, falling back to row creation time; URI breaks ties. Default desc.", "enum": ["asc", "desc"] }, + "limit": { "type": "integer", "default": 25, "description": "Page size; default 25.", "minimum": 1, "maximum": 100 }, "cursor": { "type": "string", "description": "Opaque cursor bound to sortDirection; keep parameters unchanged between pages. Pages are not a snapshot." } } }, diff --git a/happyview-modules/lexicons/app.certified.actor.searchOrganizations.json b/happyview-modules/lexicons/app.certified.actor.searchOrganizations.json index e46e80be..74b10346 100644 --- a/happyview-modules/lexicons/app.certified.actor.searchOrganizations.json +++ b/happyview-modules/lexicons/app.certified.actor.searchOrganizations.json @@ -31,11 +31,13 @@ }, "sortDirection": { "type": "string", + "default": "desc", "enum": ["asc", "desc"], "description": "Sort by a valid zoned createdAt, otherwise indexedAt, falling back to row creation time; URI breaks ties. Default desc." }, "limit": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100, "description": "Page size; default 25." diff --git a/happyview-modules/lexicons/app.certified.actor.searchProfiles.json b/happyview-modules/lexicons/app.certified.actor.searchProfiles.json index 882b71a7..431f0a42 100644 --- a/happyview-modules/lexicons/app.certified.actor.searchProfiles.json +++ b/happyview-modules/lexicons/app.certified.actor.searchProfiles.json @@ -10,9 +10,9 @@ "required": ["search"], "properties": { "search": { "type": "string", "description": "Trimmed text is matched literally and case-insensitively as a substring in displayName or description. Blank text is unrestricted." }, - "sortDirection": { "type": "string", "description": "Sort by a valid zoned createdAt, otherwise indexedAt, falling back to row creation time; URI breaks ties. Default desc.", "enum": ["asc", "desc"] }, + "sortDirection": { "type": "string", "default": "desc", "description": "Sort by a valid zoned createdAt, otherwise indexedAt, falling back to row creation time; URI breaks ties. Default desc.", "enum": ["asc", "desc"] }, "actors": { "type": "array", "description": "Actor DIDs to include; values are ORed and handles are not resolved.", "maxLength": 100, "items": { "type": "string", "format": "did" } }, - "limit": { "type": "integer", "description": "Page size; default 25.", "minimum": 1, "maximum": 100 }, + "limit": { "type": "integer", "default": 25, "description": "Page size; default 25.", "minimum": 1, "maximum": 100 }, "cursor": { "type": "string", "description": "Opaque cursor bound to sortDirection; keep parameters unchanged between pages. Pages are not a snapshot." } } }, diff --git a/happyview-modules/lexicons/app.certified.feed.getActorLikes.json b/happyview-modules/lexicons/app.certified.feed.getActorLikes.json index 3751ff35..3cd1f3c1 100644 --- a/happyview-modules/lexicons/app.certified.feed.getActorLikes.json +++ b/happyview-modules/lexicons/app.certified.feed.getActorLikes.json @@ -10,8 +10,8 @@ "required": ["actor"], "properties": { "actor": { "type": "string", "format": "did", "description": "Repository-owner DID of the actor whose likes to list." }, - "sortDirection": { "type": "string", "enum": ["asc", "desc"], "description": "Sort by representative like createdAt and URI; defaults to desc." }, - "limit": { "type": "integer", "minimum": 1, "maximum": 100, "description": "Maximum relationships per page; defaults to 25." }, + "sortDirection": { "type": "string", "default": "desc", "enum": ["asc", "desc"], "description": "Sort by representative like createdAt and URI; defaults to desc." }, + "limit": { "type": "integer", "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum relationships per page; defaults to 25." }, "cursor": { "type": "string", "description": "Opaque next-page cursor bound to sortDirection; keep all other parameters unchanged between pages." } } }, diff --git a/happyview-modules/lexicons/app.certified.feed.getActorReposts.json b/happyview-modules/lexicons/app.certified.feed.getActorReposts.json index 58546cb2..18585913 100644 --- a/happyview-modules/lexicons/app.certified.feed.getActorReposts.json +++ b/happyview-modules/lexicons/app.certified.feed.getActorReposts.json @@ -10,8 +10,8 @@ "required": ["actor"], "properties": { "actor": { "type": "string", "format": "did", "description": "Repository-owner DID of the actor whose reposts to list." }, - "sortDirection": { "type": "string", "enum": ["asc", "desc"], "description": "Sort by representative repost createdAt and URI; defaults to desc." }, - "limit": { "type": "integer", "minimum": 1, "maximum": 100, "description": "Maximum relationships per page; defaults to 25." }, + "sortDirection": { "type": "string", "default": "desc", "enum": ["asc", "desc"], "description": "Sort by representative repost createdAt and URI; defaults to desc." }, + "limit": { "type": "integer", "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum relationships per page; defaults to 25." }, "cursor": { "type": "string", "description": "Opaque next-page cursor bound to sortDirection; keep all other parameters unchanged between pages." } } }, diff --git a/happyview-modules/lexicons/app.certified.feed.getLikes.json b/happyview-modules/lexicons/app.certified.feed.getLikes.json index 7125c7cf..c3230864 100644 --- a/happyview-modules/lexicons/app.certified.feed.getLikes.json +++ b/happyview-modules/lexicons/app.certified.feed.getLikes.json @@ -10,8 +10,8 @@ "required": ["subject"], "properties": { "subject": { "type": "string", "format": "at-uri", "description": "Full DID-authority record AT-URI; any target collection is accepted." }, - "sortDirection": { "type": "string", "enum": ["asc", "desc"], "description": "Sort by representative like createdAt and URI; defaults to desc." }, - "limit": { "type": "integer", "minimum": 1, "maximum": 100, "description": "Maximum relationships per page; defaults to 25." }, + "sortDirection": { "type": "string", "default": "desc", "enum": ["asc", "desc"], "description": "Sort by representative like createdAt and URI; defaults to desc." }, + "limit": { "type": "integer", "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum relationships per page; defaults to 25." }, "cursor": { "type": "string", "description": "Opaque next-page cursor bound to sortDirection; keep all other parameters unchanged between pages." } } }, diff --git a/happyview-modules/lexicons/app.certified.feed.getReposts.json b/happyview-modules/lexicons/app.certified.feed.getReposts.json index 97067362..f278c76c 100644 --- a/happyview-modules/lexicons/app.certified.feed.getReposts.json +++ b/happyview-modules/lexicons/app.certified.feed.getReposts.json @@ -10,8 +10,8 @@ "required": ["subject"], "properties": { "subject": { "type": "string", "format": "at-uri", "description": "Full DID-authority record AT-URI; any target collection is accepted." }, - "sortDirection": { "type": "string", "enum": ["asc", "desc"], "description": "Sort by representative repost createdAt and URI; defaults to desc." }, - "limit": { "type": "integer", "minimum": 1, "maximum": 100, "description": "Maximum relationships per page; defaults to 25." }, + "sortDirection": { "type": "string", "default": "desc", "enum": ["asc", "desc"], "description": "Sort by representative repost createdAt and URI; defaults to desc." }, + "limit": { "type": "integer", "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum relationships per page; defaults to 25." }, "cursor": { "type": "string", "description": "Opaque next-page cursor bound to sortDirection; keep all other parameters unchanged between pages." } } }, diff --git a/happyview-modules/lexicons/app.certified.graph.listActorFollowers.json b/happyview-modules/lexicons/app.certified.graph.listActorFollowers.json index a19d76b1..b29018f6 100644 --- a/happyview-modules/lexicons/app.certified.graph.listActorFollowers.json +++ b/happyview-modules/lexicons/app.certified.graph.listActorFollowers.json @@ -16,11 +16,13 @@ }, "sortDirection": { "type": "string", + "default": "desc", "enum": ["asc", "desc"], "description": "Sorts by representative follow createdAt and URI; defaults to desc." }, "limit": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum relationships per page; defaults to 25." diff --git a/happyview-modules/lexicons/app.certified.graph.listActorFollowing.json b/happyview-modules/lexicons/app.certified.graph.listActorFollowing.json index 90fb2a3c..c75e2efa 100644 --- a/happyview-modules/lexicons/app.certified.graph.listActorFollowing.json +++ b/happyview-modules/lexicons/app.certified.graph.listActorFollowing.json @@ -16,11 +16,13 @@ }, "sortDirection": { "type": "string", + "default": "desc", "enum": ["asc", "desc"], "description": "Sorts by representative follow createdAt and URI; defaults to desc." }, "limit": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum relationships per page; defaults to 25." diff --git a/happyview-modules/lexicons/app.certified.graph.listEntityFollowers.json b/happyview-modules/lexicons/app.certified.graph.listEntityFollowers.json index e3ca3267..ec721b89 100644 --- a/happyview-modules/lexicons/app.certified.graph.listEntityFollowers.json +++ b/happyview-modules/lexicons/app.certified.graph.listEntityFollowers.json @@ -10,8 +10,8 @@ "required": ["entity"], "properties": { "entity": { "type": "string", "format": "at-uri", "description": "Full AT-URI of the followed record using a DID authority; any target collection is accepted, and matching is by URI, not CID." }, - "sortDirection": { "type": "string", "enum": ["asc", "desc"], "description": "Sorts by representative follow createdAt and URI; defaults to desc." }, - "limit": { "type": "integer", "minimum": 1, "maximum": 100, "description": "Maximum relationships per page; defaults to 25." }, + "sortDirection": { "type": "string", "default": "desc", "enum": ["asc", "desc"], "description": "Sorts by representative follow createdAt and URI; defaults to desc." }, + "limit": { "type": "integer", "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum relationships per page; defaults to 25." }, "cursor": { "type": "string", "description": "Opaque next-page cursor bound to sortDirection; keep the other query parameters unchanged between pages." } } }, diff --git a/happyview-modules/lexicons/app.certified.graph.listEntityFollowing.json b/happyview-modules/lexicons/app.certified.graph.listEntityFollowing.json index 3be0396a..a156cd08 100644 --- a/happyview-modules/lexicons/app.certified.graph.listEntityFollowing.json +++ b/happyview-modules/lexicons/app.certified.graph.listEntityFollowing.json @@ -10,8 +10,8 @@ "required": ["actor"], "properties": { "actor": { "type": "string", "format": "did", "description": "DID whose outgoing entity follows are listed." }, - "sortDirection": { "type": "string", "enum": ["asc", "desc"], "description": "Sorts by representative follow createdAt and URI; defaults to desc." }, - "limit": { "type": "integer", "minimum": 1, "maximum": 100, "description": "Maximum relationships per page; defaults to 25." }, + "sortDirection": { "type": "string", "default": "desc", "enum": ["asc", "desc"], "description": "Sorts by representative follow createdAt and URI; defaults to desc." }, + "limit": { "type": "integer", "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum relationships per page; defaults to 25." }, "cursor": { "type": "string", "description": "Opaque next-page cursor bound to sortDirection; keep the other query parameters unchanged between pages." } } }, diff --git a/happyview-modules/lexicons/app.certified.graph.listRecentFollows.json b/happyview-modules/lexicons/app.certified.graph.listRecentFollows.json index 006877d1..70ad7fdf 100644 --- a/happyview-modules/lexicons/app.certified.graph.listRecentFollows.json +++ b/happyview-modules/lexicons/app.certified.graph.listRecentFollows.json @@ -15,6 +15,7 @@ }, "limit": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum records per page; defaults to 25." diff --git a/happyview-modules/lexicons/app.certified.location.getLocation.json b/happyview-modules/lexicons/app.certified.location.getLocation.json index 7f168854..82eabdb4 100644 --- a/happyview-modules/lexicons/app.certified.location.getLocation.json +++ b/happyview-modules/lexicons/app.certified.location.getLocation.json @@ -13,7 +13,10 @@ } }, "output": { "encoding": "application/json", "schema": { "type": "ref", "ref": "#output" } }, - "errors": [{ "name": "RecordNotFound", "description": "No indexed location exists at this AT-URI." }] + "errors": [ + { "name": "InvalidRequest", "description": "The URI is missing, repeated, invalid, or not a location record AT-URI, or an unsupported parameter was supplied." }, + { "name": "RecordNotFound", "description": "No indexed location exists at this AT-URI." } + ] }, "output": { "type": "object", @@ -24,6 +27,7 @@ "type": "object", "description": "Indexed location with its original record and hydrated author.", "required": ["uri", "cid", "indexedAt", "did", "author", "record"], + "nullable": ["indexedAt"], "properties": { "uri": { "type": "string", "format": "at-uri" }, "cid": { "type": "string", "format": "cid" }, diff --git a/happyview-modules/lexicons/app.certified.location.listLocations.json b/happyview-modules/lexicons/app.certified.location.listLocations.json index f39d17b0..f51ddc73 100644 --- a/happyview-modules/lexicons/app.certified.location.listLocations.json +++ b/happyview-modules/lexicons/app.certified.location.listLocations.json @@ -11,9 +11,9 @@ "authors": { "type": "array", "description": "Filter by author DID.", "maxLength": 100, "items": { "type": "string", "format": "did" } }, "uris": { "type": "array", "description": "Filter by full location AT-URI with a DID authority; matching uses the URI, not a CID.", "maxLength": 100, "items": { "type": "string", "format": "at-uri" } }, "locationTypes": { "type": "array", "description": "Match exact strings against locationType; empty strings are matched literally.", "maxLength": 100, "items": { "type": "string", "maxLength": 20 } }, - "limit": { "type": "integer", "description": "Page size; defaults to 25.", "minimum": 1, "maximum": 100 }, + "limit": { "type": "integer", "default": 25, "description": "Page size; defaults to 25.", "minimum": 1, "maximum": 100 }, "cursor": { "type": "string", "description": "Opaque keyset cursor; keep all other parameters unchanged between pages. The cursor is bound to sortDirection, and pagination is not snapshot-isolated." }, - "sortDirection": { "type": "string", "description": "Sort by a valid zoned createdAt; otherwise indexedAt or stored row creation time, then URI, all in this direction. Defaults to desc.", "enum": ["asc", "desc"] } + "sortDirection": { "type": "string", "default": "desc", "description": "Sort by a valid zoned createdAt; otherwise indexedAt or stored row creation time, then URI, all in this direction. Defaults to desc.", "enum": ["asc", "desc"] } } }, "output": { "encoding": "application/json", "schema": { "type": "ref", "ref": "#output" } }, diff --git a/happyview-modules/lexicons/org.hypercerts.claim.listActivities.json b/happyview-modules/lexicons/org.hypercerts.claim.listActivities.json index f164397f..b7e734e0 100644 --- a/happyview-modules/lexicons/org.hypercerts.claim.listActivities.json +++ b/happyview-modules/lexicons/org.hypercerts.claim.listActivities.json @@ -38,11 +38,13 @@ }, "sortDirection": { "type": "string", + "default": "desc", "enum": ["asc", "desc"], "description": "Sort by activity createdAt, then URI; defaults to desc." }, "limit": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum activities per page; defaults to 25." diff --git a/happyview-modules/lexicons/org.hypercerts.claim.listContributorInformation.json b/happyview-modules/lexicons/org.hypercerts.claim.listContributorInformation.json index f10c0581..83ec0925 100644 --- a/happyview-modules/lexicons/org.hypercerts.claim.listContributorInformation.json +++ b/happyview-modules/lexicons/org.hypercerts.claim.listContributorInformation.json @@ -16,11 +16,13 @@ }, "sortDirection": { "type": "string", + "default": "desc", "enum": ["asc", "desc"], "description": "Direction for (createdAt, uri); defaults to desc." }, "limit": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum records in the page; defaults to 25." diff --git a/happyview-modules/lexicons/org.hypercerts.claim.listRights.json b/happyview-modules/lexicons/org.hypercerts.claim.listRights.json index afb9c2fb..be5feeaf 100644 --- a/happyview-modules/lexicons/org.hypercerts.claim.listRights.json +++ b/happyview-modules/lexicons/org.hypercerts.claim.listRights.json @@ -19,11 +19,13 @@ }, "sortDirection": { "type": "string", + "default": "desc", "enum": ["asc", "desc"], "description": "Direction for the (createdAt, uri) order; defaults to desc." }, "limit": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum records in the page; defaults to 25." diff --git a/happyview-modules/lexicons/org.hypercerts.claim.searchActivities.json b/happyview-modules/lexicons/org.hypercerts.claim.searchActivities.json index f3f25fa1..cb6fad47 100644 --- a/happyview-modules/lexicons/org.hypercerts.claim.searchActivities.json +++ b/happyview-modules/lexicons/org.hypercerts.claim.searchActivities.json @@ -43,11 +43,13 @@ }, "sortDirection": { "type": "string", + "default": "desc", "enum": ["asc", "desc"], "description": "Sort by activity createdAt, then URI; defaults to desc." }, "limit": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum activities per page; defaults to 25." diff --git a/happyview-modules/lexicons/org.hypercerts.collection.listCollectionItems.json b/happyview-modules/lexicons/org.hypercerts.collection.listCollectionItems.json index b5dcc7a8..7416218c 100644 --- a/happyview-modules/lexicons/org.hypercerts.collection.listCollectionItems.json +++ b/happyview-modules/lexicons/org.hypercerts.collection.listCollectionItems.json @@ -10,7 +10,7 @@ "required": ["collection"], "properties": { "collection": { "type": "string", "format": "at-uri", "description": "Full collection record AT-URI using a DID authority." }, - "limit": { "type": "integer", "minimum": 1, "maximum": 100, "description": "Maximum embedded items in the page; default 25." }, + "limit": { "type": "integer", "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum embedded items in the page; default 25." }, "cursor": { "type": "string", "description": "Opaque item-pagination cursor. Continue with the same collection URI; it is not bound to a collection version." } } }, diff --git a/happyview-modules/lexicons/org.hypercerts.collection.listCollections.json b/happyview-modules/lexicons/org.hypercerts.collection.listCollections.json index 8d1eec64..6e2130ee 100644 --- a/happyview-modules/lexicons/org.hypercerts.collection.listCollections.json +++ b/happyview-modules/lexicons/org.hypercerts.collection.listCollections.json @@ -14,8 +14,8 @@ "uris": { "type": "array", "maxLength": 100, "description": "Match by collection record AT-URI; this does not select a CID version.", "items": { "type": "string", "format": "at-uri" } }, "itemUris": { "type": "array", "maxLength": 100, "description": "Match when an embedded item's itemIdentifier.uri equals a supplied AT-URI; matching ignores CID.", "items": { "type": "string", "format": "at-uri" } }, "tagUris": { "type": "array", "maxLength": 100, "description": "Require every supplied vocabulary-tag AT-URI to occur in record.tags; matching ignores CID and tag records.", "items": { "type": "string", "format": "at-uri" } }, - "sortDirection": { "type": "string", "enum": ["asc", "desc"], "description": "Direction for (createdAt, uri) ordering; defaults to desc." }, - "limit": { "type": "integer", "minimum": 1, "maximum": 100, "description": "Maximum collections per page; defaults to 25." }, + "sortDirection": { "type": "string", "default": "desc", "enum": ["asc", "desc"], "description": "Direction for (createdAt, uri) ordering; defaults to desc." }, + "limit": { "type": "integer", "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum collections per page; defaults to 25." }, "cursor": { "type": "string", "description": "Opaque cursor from a previous response; use the same sortDirection." } } }, diff --git a/happyview-modules/lexicons/org.hypercerts.collection.searchCollections.json b/happyview-modules/lexicons/org.hypercerts.collection.searchCollections.json index dcb46237..12c52b7a 100644 --- a/happyview-modules/lexicons/org.hypercerts.collection.searchCollections.json +++ b/happyview-modules/lexicons/org.hypercerts.collection.searchCollections.json @@ -16,8 +16,8 @@ "uris": { "type": "array", "maxLength": 100, "description": "Match by collection record AT-URI; this does not select a CID version.", "items": { "type": "string", "format": "at-uri" } }, "itemUris": { "type": "array", "maxLength": 100, "description": "Match when an embedded item's itemIdentifier.uri equals a supplied AT-URI; matching ignores CID.", "items": { "type": "string", "format": "at-uri" } }, "tagUris": { "type": "array", "maxLength": 100, "description": "Require every supplied vocabulary-tag AT-URI to occur in record.tags; matching ignores CID and tag records.", "items": { "type": "string", "format": "at-uri" } }, - "sortDirection": { "type": "string", "enum": ["asc", "desc"], "description": "Direction for (createdAt, uri) ordering; defaults to desc." }, - "limit": { "type": "integer", "minimum": 1, "maximum": 100, "description": "Maximum collections per page; defaults to 25." }, + "sortDirection": { "type": "string", "default": "desc", "enum": ["asc", "desc"], "description": "Direction for (createdAt, uri) ordering; defaults to desc." }, + "limit": { "type": "integer", "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum collections per page; defaults to 25." }, "cursor": { "type": "string", "description": "Opaque cursor from a previous response; use the same sortDirection." } } }, diff --git a/happyview-modules/lexicons/org.hypercerts.context.getEvaluation.json b/happyview-modules/lexicons/org.hypercerts.context.getEvaluation.json index 660a61a9..2335f971 100644 --- a/happyview-modules/lexicons/org.hypercerts.context.getEvaluation.json +++ b/happyview-modules/lexicons/org.hypercerts.context.getEvaluation.json @@ -39,6 +39,7 @@ "type": "object", "description": "Evaluation with the original record, hydrated publisher, and evaluator projections. The record is not rewritten when evaluator data is malformed. A missing or non-array evaluator container yields an empty hydrated array; malformed entries are omitted. Missing profile or organization sidecars are omitted from evaluators; query or hydration failures fail the request. Evaluator arrays over 1000 entries still fail exact lookup and are skipped by lists.", "required": ["uri", "cid", "indexedAt", "did", "author", "record", "evaluators"], + "nullable": ["indexedAt"], "properties": { "uri": { "type": "string", "format": "at-uri" }, "cid": { "type": "string", "format": "cid" }, diff --git a/happyview-modules/lexicons/org.hypercerts.context.listAcknowledgements.json b/happyview-modules/lexicons/org.hypercerts.context.listAcknowledgements.json index 1af1f7fe..5f9460e1 100644 --- a/happyview-modules/lexicons/org.hypercerts.context.listAcknowledgements.json +++ b/happyview-modules/lexicons/org.hypercerts.context.listAcknowledgements.json @@ -22,6 +22,7 @@ }, "sortDirection": { "type": "string", + "default": "desc", "enum": ["asc", "desc"], "description": "Sort direction for createdAt and URI; default desc." }, diff --git a/happyview-modules/lexicons/org.hypercerts.context.listAttachments.json b/happyview-modules/lexicons/org.hypercerts.context.listAttachments.json index ecaa0dae..68cd4db1 100644 --- a/happyview-modules/lexicons/org.hypercerts.context.listAttachments.json +++ b/happyview-modules/lexicons/org.hypercerts.context.listAttachments.json @@ -34,11 +34,13 @@ }, "sortDirection": { "type": "string", + "default": "desc", "enum": ["asc", "desc"], "description": "Sort direction by (createdAt, uri); defaults to desc." }, "limit": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum page size; defaults to 25." diff --git a/happyview-modules/lexicons/org.hypercerts.context.listEvaluations.json b/happyview-modules/lexicons/org.hypercerts.context.listEvaluations.json index 70f9975b..6009bfec 100644 --- a/happyview-modules/lexicons/org.hypercerts.context.listEvaluations.json +++ b/happyview-modules/lexicons/org.hypercerts.context.listEvaluations.json @@ -28,11 +28,13 @@ }, "sortDirection": { "type": "string", + "default": "desc", "enum": ["asc", "desc"], "description": "Sort direction by (createdAt, uri); defaults to desc." }, "limit": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum page size; defaults to 25." diff --git a/happyview-modules/lexicons/org.hypercerts.funding.listReceipts.json b/happyview-modules/lexicons/org.hypercerts.funding.listReceipts.json index 880355fe..fb155868 100644 --- a/happyview-modules/lexicons/org.hypercerts.funding.listReceipts.json +++ b/happyview-modules/lexicons/org.hypercerts.funding.listReceipts.json @@ -46,11 +46,13 @@ }, "sortDirection": { "type": "string", + "default": "desc", "enum": ["asc", "desc"], "description": "Direction for ordering by createdAt then URI; defaults to desc." }, "limit": { "type": "integer", + "default": 25, "minimum": 1, "maximum": 100, "description": "Maximum receipts per page; default 25." diff --git a/happyview-modules/lua/endpoints/getActorLikes.lua b/happyview-modules/lua/endpoints/getActorLikes.lua index 2f29f12e..6973b374 100644 --- a/happyview-modules/lua/endpoints/getActorLikes.lua +++ b/happyview-modules/lua/endpoints/getActorLikes.lua @@ -45,6 +45,7 @@ local function valid_datetime(value) "^(%d%d%d%d)%-(%d%d)%-(%d%d)T(%d%d):(%d%d):(%d%d)(.*)$") if not year then return false end year, month, day = tonumber(year), tonumber(month), tonumber(day) + if year < 1 then return false end hour, minute, second = tonumber(hour), tonumber(minute), tonumber(second) if month < 1 or month > 12 or hour > 23 or minute > 59 or second > 59 then return false end local leap = year % 4 == 0 and (year % 100 ~= 0 or year % 400 == 0) @@ -123,6 +124,43 @@ local function hydrate_actor_views(actors, run_query) end end +-- Decodes a hex-encoded {v, d, t, u} list cursor. Rejects malformed tokens, other +-- sort directions and unknown keys; validate_value(value) -> boolean runs the +-- endpoint-specific check on t and u. Not for endpoints that skip the 8192-character +-- cap or accept extra keys. +local function decode_cursor(token, direction, validate_value) + if token == nil then return nil end + if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then + invalid("cursor is malformed") + end + local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) + local ok, value = pcall(json.decode, decoded) + if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction + or type(value.t) ~= "string" or type(value.u) ~= "string" then + invalid("cursor is malformed or belongs to another sortDirection") + end + for key in pairs(value) do + if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end + end + if not validate_value(value) then invalid("cursor is malformed") end + return value +end + +local CREATED_AT_SORT_PATTERN = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" + +-- Sort key for a happyview_records row: the record's own createdAt when it is a +-- valid timestamp, otherwise COALESCE(indexed_at, created_at). `alias` is the +-- table alias; nil selects unqualified columns. +local function created_at_sort(alias) + local prefix = alias and (alias .. ".") or "" + local record, indexed_at, created_at = prefix .. "record", prefix .. "indexed_at", prefix .. "created_at" + local created = record .. "::jsonb->>'createdAt'" + return "CASE WHEN jsonb_typeof(" .. record .. "::jsonb->'createdAt') = 'string' AND " .. created .. + " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. + ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. indexed_at .. + "::timestamptz, " .. created_at .. "::timestamptz) END" +end + local FEED_REACTIONS = { likes = { collection = "app.certified.feed.like", @@ -138,12 +176,6 @@ local FEED_REACTIONS = { }, } -local function feed_reaction_sort_key() - local created = "record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND " .. created .. " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END" -end - local function feed_reaction_query(reaction, sql, values) if db.backend() ~= "postgres" then error(reaction.failure .. ": reaction queries require PostgreSQL", 0) end local ok, result = pcall(db.raw, sql, values) @@ -152,24 +184,10 @@ local function feed_reaction_query(reaction, sql, values) end local function feed_reaction_decode_cursor(token, direction, collection) - if token == nil then return nil end - if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then - invalid("cursor is malformed") - end - local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) - local ok, value = pcall(json.decode, decoded) - if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction - or type(value.t) ~= "string" or type(value.u) ~= "string" then - invalid("cursor is malformed or belongs to another sortDirection") - end - for key in pairs(value) do - if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end - end - local valid, cursor_collection = valid_record_uri(value.u) - if not valid or cursor_collection ~= collection or not valid_datetime(value.t) then - invalid("cursor is malformed") - end - return value + return decode_cursor(token, direction, function(value) + local valid, cursor_collection = valid_record_uri(value.u) + return valid and cursor_collection == collection and valid_datetime(value.t) + end) end local function feed_reaction_query_page(reaction, mode, identity, limit, cursor, direction) @@ -195,7 +213,7 @@ local function feed_reaction_query_page(reaction, mode, identity, limit, cursor, local ordering = direction == "asc" and "ASC" or "DESC" local subject_uri = "record::jsonb->'subject'->>'uri'" -- Select the earliest representative before applying the caller's independent page direction. - local sql = "WITH ranked_reactions AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, " .. subject_uri .. " ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT " .. feed_reaction_sort_key() .. " AS sort_at) sorted WHERE " .. table.concat(filters, " AND ") .. "), " .. + local sql = "WITH ranked_reactions AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, " .. subject_uri .. " ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT " .. created_at_sort() .. " AS sort_at) sorted WHERE " .. table.concat(filters, " AND ") .. "), " .. "representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM ranked_reactions WHERE relationship_rank = 1), " local page = "page AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM representatives" .. cursor_filter .. " ORDER BY sort_at " .. ordering .. ", uri " .. ordering .. " LIMIT $" .. #values .. ") " diff --git a/happyview-modules/lua/endpoints/getActorReposts.lua b/happyview-modules/lua/endpoints/getActorReposts.lua index 1fc71f6a..84fb24ed 100644 --- a/happyview-modules/lua/endpoints/getActorReposts.lua +++ b/happyview-modules/lua/endpoints/getActorReposts.lua @@ -45,6 +45,7 @@ local function valid_datetime(value) "^(%d%d%d%d)%-(%d%d)%-(%d%d)T(%d%d):(%d%d):(%d%d)(.*)$") if not year then return false end year, month, day = tonumber(year), tonumber(month), tonumber(day) + if year < 1 then return false end hour, minute, second = tonumber(hour), tonumber(minute), tonumber(second) if month < 1 or month > 12 or hour > 23 or minute > 59 or second > 59 then return false end local leap = year % 4 == 0 and (year % 100 ~= 0 or year % 400 == 0) @@ -123,6 +124,43 @@ local function hydrate_actor_views(actors, run_query) end end +-- Decodes a hex-encoded {v, d, t, u} list cursor. Rejects malformed tokens, other +-- sort directions and unknown keys; validate_value(value) -> boolean runs the +-- endpoint-specific check on t and u. Not for endpoints that skip the 8192-character +-- cap or accept extra keys. +local function decode_cursor(token, direction, validate_value) + if token == nil then return nil end + if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then + invalid("cursor is malformed") + end + local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) + local ok, value = pcall(json.decode, decoded) + if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction + or type(value.t) ~= "string" or type(value.u) ~= "string" then + invalid("cursor is malformed or belongs to another sortDirection") + end + for key in pairs(value) do + if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end + end + if not validate_value(value) then invalid("cursor is malformed") end + return value +end + +local CREATED_AT_SORT_PATTERN = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" + +-- Sort key for a happyview_records row: the record's own createdAt when it is a +-- valid timestamp, otherwise COALESCE(indexed_at, created_at). `alias` is the +-- table alias; nil selects unqualified columns. +local function created_at_sort(alias) + local prefix = alias and (alias .. ".") or "" + local record, indexed_at, created_at = prefix .. "record", prefix .. "indexed_at", prefix .. "created_at" + local created = record .. "::jsonb->>'createdAt'" + return "CASE WHEN jsonb_typeof(" .. record .. "::jsonb->'createdAt') = 'string' AND " .. created .. + " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. + ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. indexed_at .. + "::timestamptz, " .. created_at .. "::timestamptz) END" +end + local FEED_REACTIONS = { likes = { collection = "app.certified.feed.like", @@ -138,12 +176,6 @@ local FEED_REACTIONS = { }, } -local function feed_reaction_sort_key() - local created = "record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND " .. created .. " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END" -end - local function feed_reaction_query(reaction, sql, values) if db.backend() ~= "postgres" then error(reaction.failure .. ": reaction queries require PostgreSQL", 0) end local ok, result = pcall(db.raw, sql, values) @@ -152,24 +184,10 @@ local function feed_reaction_query(reaction, sql, values) end local function feed_reaction_decode_cursor(token, direction, collection) - if token == nil then return nil end - if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then - invalid("cursor is malformed") - end - local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) - local ok, value = pcall(json.decode, decoded) - if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction - or type(value.t) ~= "string" or type(value.u) ~= "string" then - invalid("cursor is malformed or belongs to another sortDirection") - end - for key in pairs(value) do - if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end - end - local valid, cursor_collection = valid_record_uri(value.u) - if not valid or cursor_collection ~= collection or not valid_datetime(value.t) then - invalid("cursor is malformed") - end - return value + return decode_cursor(token, direction, function(value) + local valid, cursor_collection = valid_record_uri(value.u) + return valid and cursor_collection == collection and valid_datetime(value.t) + end) end local function feed_reaction_query_page(reaction, mode, identity, limit, cursor, direction) @@ -195,7 +213,7 @@ local function feed_reaction_query_page(reaction, mode, identity, limit, cursor, local ordering = direction == "asc" and "ASC" or "DESC" local subject_uri = "record::jsonb->'subject'->>'uri'" -- Select the earliest representative before applying the caller's independent page direction. - local sql = "WITH ranked_reactions AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, " .. subject_uri .. " ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT " .. feed_reaction_sort_key() .. " AS sort_at) sorted WHERE " .. table.concat(filters, " AND ") .. "), " .. + local sql = "WITH ranked_reactions AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, " .. subject_uri .. " ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT " .. created_at_sort() .. " AS sort_at) sorted WHERE " .. table.concat(filters, " AND ") .. "), " .. "representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM ranked_reactions WHERE relationship_rank = 1), " local page = "page AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM representatives" .. cursor_filter .. " ORDER BY sort_at " .. ordering .. ", uri " .. ordering .. " LIMIT $" .. #values .. ") " diff --git a/happyview-modules/lua/endpoints/getCollection.lua b/happyview-modules/lua/endpoints/getCollection.lua index 7e76a4f7..06511fcb 100644 --- a/happyview-modules/lua/endpoints/getCollection.lua +++ b/happyview-modules/lua/endpoints/getCollection.lua @@ -6,6 +6,27 @@ local function valid_did(value) return true end +local function invalid(message) + error("InvalidRequest: " .. message, 0) +end + +local function keys_only(values, allowed, unknown_message_prefix) + for key in pairs(values) do + if not allowed[key] then + invalid(unknown_message_prefix and (unknown_message_prefix .. key) or "unknown query parameter") + end + end +end + +local function scalar(params, key) + local value = params[key] + if value == nil then return nil end + if type(value) ~= "string" and type(value) ~= "number" then + invalid(key .. " must occur once") + end + return tostring(value) +end + local function valid_record_key(value) return #value >= 1 and #value <= 512 and value ~= "." and value ~= ".." and not value:find("[^%w_~%.:%-]") @@ -208,26 +229,6 @@ end local COLLECTION = "org.hypercerts.collection" -local function collection_invalid(message) - error("InvalidRequest: " .. message, 0) -end - -local function collection_keys_only(values, allowed) - for key in pairs(values) do - if not allowed[key] then collection_invalid("unknown query parameter: " .. key) end - end -end - -local function collection_scalar(values, key) - local value = values[key] - if value == nil then return nil end - if key == "hasOrganizationRecord" and type(value) == "boolean" then return tostring(value) end - if type(value) ~= "string" and type(value) ~= "number" then - collection_invalid(key .. " must occur once") - end - return tostring(value) -end - local function collection_valid_record_uri(value) if type(value) ~= "string" or #value > 8192 then return false end return valid_record_uri(value) @@ -253,11 +254,11 @@ local function collection_hydrate(views, omit_invalid) end function handle() - collection_keys_only(params, { uri = true }) - local uri = collection_scalar(params, "uri") + keys_only(params, { uri = true }, "unknown query parameter: ") + local uri = scalar(params, "uri") local valid, collection = collection_valid_record_uri(uri) if not uri or not valid or collection ~= COLLECTION then - collection_invalid("uri must be a full org.hypercerts.collection AT-URI with a DID authority") + invalid("uri must be a full org.hypercerts.collection AT-URI with a DID authority") end local rows = collection_query( diff --git a/happyview-modules/lua/endpoints/getEntityFollow.lua b/happyview-modules/lua/endpoints/getEntityFollow.lua index 5b98f157..5ba4bf8d 100644 --- a/happyview-modules/lua/endpoints/getEntityFollow.lua +++ b/happyview-modules/lua/endpoints/getEntityFollow.lua @@ -53,13 +53,6 @@ local function entity_follow_query(sql, values) return result end --- Keep malformed publisher timestamps out of casts; preserve the actor-follow fallback order. -local function entity_follow_sort_key() - local created = "record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND " .. created .. " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END" -end - local function entity_follow_indexed_record_view(row) return { uri = row.uri, @@ -76,9 +69,24 @@ local function entity_follow_record_view(row) return view end +local CREATED_AT_SORT_PATTERN = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" + +-- Sort key for a happyview_records row: the record's own createdAt when it is a +-- valid timestamp, otherwise COALESCE(indexed_at, created_at). `alias` is the +-- table alias; nil selects unqualified columns. +local function created_at_sort(alias) + local prefix = alias and (alias .. ".") or "" + local record, indexed_at, created_at = prefix .. "record", prefix .. "indexed_at", prefix .. "created_at" + local created = record .. "::jsonb->>'createdAt'" + return "CASE WHEN jsonb_typeof(" .. record .. "::jsonb->'createdAt') = 'string' AND " .. created .. + " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. + ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. indexed_at .. + "::timestamptz, " .. created_at .. "::timestamptz) END" +end + local function entity_follow_lookup(actor, entity_uri) local rows = entity_follow_query( - "SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record FROM happyview_records CROSS JOIN LATERAL (SELECT " .. entity_follow_sort_key() .. " AS sort_at) sorted WHERE collection = $1 AND did = $2 AND record::jsonb->'subject'->>'uri' = $3 ORDER BY sorted.sort_at ASC, uri ASC LIMIT 1", + "SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record FROM happyview_records CROSS JOIN LATERAL (SELECT " .. created_at_sort() .. " AS sort_at) sorted WHERE collection = $1 AND did = $2 AND record::jsonb->'subject'->>'uri' = $3 ORDER BY sorted.sort_at ASC, uri ASC LIMIT 1", { ENTITY_FOLLOW, actor, entity_uri }) if #rows == 0 then return ENTITY_FOLLOW_NULL end return entity_follow_record_view(rows[1]) diff --git a/happyview-modules/lua/endpoints/getEntityFollows.lua b/happyview-modules/lua/endpoints/getEntityFollows.lua index 2356aa09..20df09b7 100644 --- a/happyview-modules/lua/endpoints/getEntityFollows.lua +++ b/happyview-modules/lua/endpoints/getEntityFollows.lua @@ -39,6 +39,21 @@ local function valid_record_uri(value) return true, collection, authority end +local CREATED_AT_SORT_PATTERN = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" + +-- Sort key for a happyview_records row: the record's own createdAt when it is a +-- valid timestamp, otherwise COALESCE(indexed_at, created_at). `alias` is the +-- table alias; nil selects unqualified columns. +local function created_at_sort(alias) + local prefix = alias and (alias .. ".") or "" + local record, indexed_at, created_at = prefix .. "record", prefix .. "indexed_at", prefix .. "created_at" + local created = record .. "::jsonb->>'createdAt'" + return "CASE WHEN jsonb_typeof(" .. record .. "::jsonb->'createdAt') = 'string' AND " .. created .. + " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. + ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. indexed_at .. + "::timestamptz, " .. created_at .. "::timestamptz) END" +end + local ENTITY_FOLLOW = "app.certified.graph.entityFollow" local ENTITY_FOLLOW_NULL = json.decode("null") @@ -53,13 +68,6 @@ local function entity_follow_query(sql, values) return result end --- Keep malformed publisher timestamps out of casts; preserve the actor-follow fallback order. -local function entity_follow_sort_key() - local created = "record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND " .. created .. " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END" -end - local function entity_follow_indexed_record_view(row) return { uri = row.uri, @@ -219,7 +227,7 @@ local function get_entity_follows() .. "indexed_at::text AS indexed_at, record::text AS record FROM requested " .. "JOIN happyview_records ON collection = $1 AND did = $2 " .. "AND record::jsonb->'subject'->>'uri' = requested.target " - .. "CROSS JOIN LATERAL (SELECT " .. entity_follow_sort_key() .. " AS sort_at) sorted " + .. "CROSS JOIN LATERAL (SELECT " .. created_at_sort() .. " AS sort_at) sorted " .. "ORDER BY requested.target, sorted.sort_at ASC, uri ASC", values) diff --git a/happyview-modules/lua/endpoints/getFollow.lua b/happyview-modules/lua/endpoints/getFollow.lua index 44d5aebf..b2b5c32d 100644 --- a/happyview-modules/lua/endpoints/getFollow.lua +++ b/happyview-modules/lua/endpoints/getFollow.lua @@ -55,15 +55,23 @@ local function account_follow_filter_sql() return "NOT COALESCE(starts_with(record::jsonb->'via'->>'uri', 'at://' || (record::jsonb->>'subject') || '/org.hypercerts.collection/'), FALSE)" end -local FOLLOW = "app.certified.graph.follow" +local CREATED_AT_SORT_PATTERN = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" --- Guard the cast inside CASE; a WHERE filter cannot protect it from planner reordering. -local function follow_sort_key() - local created = "record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND " .. created .. " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END" +-- Sort key for a happyview_records row: the record's own createdAt when it is a +-- valid timestamp, otherwise COALESCE(indexed_at, created_at). `alias` is the +-- table alias; nil selects unqualified columns. +local function created_at_sort(alias) + local prefix = alias and (alias .. ".") or "" + local record, indexed_at, created_at = prefix .. "record", prefix .. "indexed_at", prefix .. "created_at" + local created = record .. "::jsonb->>'createdAt'" + return "CASE WHEN jsonb_typeof(" .. record .. "::jsonb->'createdAt') = 'string' AND " .. created .. + " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. + ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. indexed_at .. + "::timestamptz, " .. created_at .. "::timestamptz) END" end +local FOLLOW = "app.certified.graph.follow" + local function query(sql, values) if db.backend() ~= "postgres" then error("ActorFollowQueryFailed: actor-follow queries require PostgreSQL", 0) end local ok, result = pcall(db.raw, sql, values) @@ -73,7 +81,7 @@ end local function query_follow(actor, subject) local rows = query( - "SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record FROM happyview_records CROSS JOIN LATERAL (SELECT " .. follow_sort_key() .. " AS sort_at) sorted WHERE collection = $1 AND did = $2 AND record::jsonb->>'subject' = $3 AND " .. account_follow_filter_sql() .. " ORDER BY sorted.sort_at ASC, uri ASC LIMIT 1", + "SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record FROM happyview_records CROSS JOIN LATERAL (SELECT " .. created_at_sort() .. " AS sort_at) sorted WHERE collection = $1 AND did = $2 AND record::jsonb->>'subject' = $3 AND " .. account_follow_filter_sql() .. " ORDER BY sorted.sort_at ASC, uri ASC LIMIT 1", { FOLLOW, actor, subject }) if #rows == 0 then return NULL end return record_view(rows[1]) diff --git a/happyview-modules/lua/endpoints/getFollows.lua b/happyview-modules/lua/endpoints/getFollows.lua index 44080535..11851d35 100644 --- a/happyview-modules/lua/endpoints/getFollows.lua +++ b/happyview-modules/lua/endpoints/getFollows.lua @@ -55,15 +55,23 @@ local function account_follow_filter_sql() return "NOT COALESCE(starts_with(record::jsonb->'via'->>'uri', 'at://' || (record::jsonb->>'subject') || '/org.hypercerts.collection/'), FALSE)" end -local FOLLOW = "app.certified.graph.follow" - --- Guard the cast inside CASE; a WHERE filter cannot protect it from planner reordering. -local function follow_sort_key() - local created = "record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND " .. created .. " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END" +local CREATED_AT_SORT_PATTERN = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" + +-- Sort key for a happyview_records row: the record's own createdAt when it is a +-- valid timestamp, otherwise COALESCE(indexed_at, created_at). `alias` is the +-- table alias; nil selects unqualified columns. +local function created_at_sort(alias) + local prefix = alias and (alias .. ".") or "" + local record, indexed_at, created_at = prefix .. "record", prefix .. "indexed_at", prefix .. "created_at" + local created = record .. "::jsonb->>'createdAt'" + return "CASE WHEN jsonb_typeof(" .. record .. "::jsonb->'createdAt') = 'string' AND " .. created .. + " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. + ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. indexed_at .. + "::timestamptz, " .. created_at .. "::timestamptz) END" end +local FOLLOW = "app.certified.graph.follow" + local function query(sql, values) if db.backend() ~= "postgres" then error("ActorFollowQueryFailed: actor-follow queries require PostgreSQL", 0) end local ok, result = pcall(db.raw, sql, values) @@ -174,7 +182,7 @@ local function get_follows() .. "SELECT DISTINCT ON (requested.target) requested.target AS target, uri, did, cid, " .. "indexed_at::text AS indexed_at, record::text AS record FROM requested " .. "JOIN happyview_records ON collection = $1 AND did = $2 AND record::jsonb->>'subject' = requested.target AND " .. account_follow_filter_sql() .. " " - .. "CROSS JOIN LATERAL (SELECT " .. follow_sort_key() .. " AS sort_at) sorted " + .. "CROSS JOIN LATERAL (SELECT " .. created_at_sort() .. " AS sort_at) sorted " .. "ORDER BY requested.target, sorted.sort_at ASC, uri ASC", values) if type(rows) ~= "table" then error("ActorFollowQueryFailed: actor-follow lookup failed", 0) end diff --git a/happyview-modules/lua/endpoints/getLikes.lua b/happyview-modules/lua/endpoints/getLikes.lua index 7b9d2a2d..81d7fa6f 100644 --- a/happyview-modules/lua/endpoints/getLikes.lua +++ b/happyview-modules/lua/endpoints/getLikes.lua @@ -45,6 +45,7 @@ local function valid_datetime(value) "^(%d%d%d%d)%-(%d%d)%-(%d%d)T(%d%d):(%d%d):(%d%d)(.*)$") if not year then return false end year, month, day = tonumber(year), tonumber(month), tonumber(day) + if year < 1 then return false end hour, minute, second = tonumber(hour), tonumber(minute), tonumber(second) if month < 1 or month > 12 or hour > 23 or minute > 59 or second > 59 then return false end local leap = year % 4 == 0 and (year % 100 ~= 0 or year % 400 == 0) @@ -123,6 +124,43 @@ local function hydrate_actor_views(actors, run_query) end end +-- Decodes a hex-encoded {v, d, t, u} list cursor. Rejects malformed tokens, other +-- sort directions and unknown keys; validate_value(value) -> boolean runs the +-- endpoint-specific check on t and u. Not for endpoints that skip the 8192-character +-- cap or accept extra keys. +local function decode_cursor(token, direction, validate_value) + if token == nil then return nil end + if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then + invalid("cursor is malformed") + end + local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) + local ok, value = pcall(json.decode, decoded) + if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction + or type(value.t) ~= "string" or type(value.u) ~= "string" then + invalid("cursor is malformed or belongs to another sortDirection") + end + for key in pairs(value) do + if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end + end + if not validate_value(value) then invalid("cursor is malformed") end + return value +end + +local CREATED_AT_SORT_PATTERN = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" + +-- Sort key for a happyview_records row: the record's own createdAt when it is a +-- valid timestamp, otherwise COALESCE(indexed_at, created_at). `alias` is the +-- table alias; nil selects unqualified columns. +local function created_at_sort(alias) + local prefix = alias and (alias .. ".") or "" + local record, indexed_at, created_at = prefix .. "record", prefix .. "indexed_at", prefix .. "created_at" + local created = record .. "::jsonb->>'createdAt'" + return "CASE WHEN jsonb_typeof(" .. record .. "::jsonb->'createdAt') = 'string' AND " .. created .. + " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. + ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. indexed_at .. + "::timestamptz, " .. created_at .. "::timestamptz) END" +end + local FEED_REACTIONS = { likes = { collection = "app.certified.feed.like", @@ -138,12 +176,6 @@ local FEED_REACTIONS = { }, } -local function feed_reaction_sort_key() - local created = "record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND " .. created .. " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END" -end - local function feed_reaction_query(reaction, sql, values) if db.backend() ~= "postgres" then error(reaction.failure .. ": reaction queries require PostgreSQL", 0) end local ok, result = pcall(db.raw, sql, values) @@ -152,24 +184,10 @@ local function feed_reaction_query(reaction, sql, values) end local function feed_reaction_decode_cursor(token, direction, collection) - if token == nil then return nil end - if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then - invalid("cursor is malformed") - end - local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) - local ok, value = pcall(json.decode, decoded) - if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction - or type(value.t) ~= "string" or type(value.u) ~= "string" then - invalid("cursor is malformed or belongs to another sortDirection") - end - for key in pairs(value) do - if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end - end - local valid, cursor_collection = valid_record_uri(value.u) - if not valid or cursor_collection ~= collection or not valid_datetime(value.t) then - invalid("cursor is malformed") - end - return value + return decode_cursor(token, direction, function(value) + local valid, cursor_collection = valid_record_uri(value.u) + return valid and cursor_collection == collection and valid_datetime(value.t) + end) end local function feed_reaction_query_page(reaction, mode, identity, limit, cursor, direction) @@ -195,7 +213,7 @@ local function feed_reaction_query_page(reaction, mode, identity, limit, cursor, local ordering = direction == "asc" and "ASC" or "DESC" local subject_uri = "record::jsonb->'subject'->>'uri'" -- Select the earliest representative before applying the caller's independent page direction. - local sql = "WITH ranked_reactions AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, " .. subject_uri .. " ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT " .. feed_reaction_sort_key() .. " AS sort_at) sorted WHERE " .. table.concat(filters, " AND ") .. "), " .. + local sql = "WITH ranked_reactions AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, " .. subject_uri .. " ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT " .. created_at_sort() .. " AS sort_at) sorted WHERE " .. table.concat(filters, " AND ") .. "), " .. "representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM ranked_reactions WHERE relationship_rank = 1), " local page = "page AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM representatives" .. cursor_filter .. " ORDER BY sort_at " .. ordering .. ", uri " .. ordering .. " LIMIT $" .. #values .. ") " diff --git a/happyview-modules/lua/endpoints/getReposts.lua b/happyview-modules/lua/endpoints/getReposts.lua index 7870273c..98eed4e1 100644 --- a/happyview-modules/lua/endpoints/getReposts.lua +++ b/happyview-modules/lua/endpoints/getReposts.lua @@ -45,6 +45,7 @@ local function valid_datetime(value) "^(%d%d%d%d)%-(%d%d)%-(%d%d)T(%d%d):(%d%d):(%d%d)(.*)$") if not year then return false end year, month, day = tonumber(year), tonumber(month), tonumber(day) + if year < 1 then return false end hour, minute, second = tonumber(hour), tonumber(minute), tonumber(second) if month < 1 or month > 12 or hour > 23 or minute > 59 or second > 59 then return false end local leap = year % 4 == 0 and (year % 100 ~= 0 or year % 400 == 0) @@ -123,6 +124,43 @@ local function hydrate_actor_views(actors, run_query) end end +-- Decodes a hex-encoded {v, d, t, u} list cursor. Rejects malformed tokens, other +-- sort directions and unknown keys; validate_value(value) -> boolean runs the +-- endpoint-specific check on t and u. Not for endpoints that skip the 8192-character +-- cap or accept extra keys. +local function decode_cursor(token, direction, validate_value) + if token == nil then return nil end + if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then + invalid("cursor is malformed") + end + local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) + local ok, value = pcall(json.decode, decoded) + if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction + or type(value.t) ~= "string" or type(value.u) ~= "string" then + invalid("cursor is malformed or belongs to another sortDirection") + end + for key in pairs(value) do + if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end + end + if not validate_value(value) then invalid("cursor is malformed") end + return value +end + +local CREATED_AT_SORT_PATTERN = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" + +-- Sort key for a happyview_records row: the record's own createdAt when it is a +-- valid timestamp, otherwise COALESCE(indexed_at, created_at). `alias` is the +-- table alias; nil selects unqualified columns. +local function created_at_sort(alias) + local prefix = alias and (alias .. ".") or "" + local record, indexed_at, created_at = prefix .. "record", prefix .. "indexed_at", prefix .. "created_at" + local created = record .. "::jsonb->>'createdAt'" + return "CASE WHEN jsonb_typeof(" .. record .. "::jsonb->'createdAt') = 'string' AND " .. created .. + " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. + ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. indexed_at .. + "::timestamptz, " .. created_at .. "::timestamptz) END" +end + local FEED_REACTIONS = { likes = { collection = "app.certified.feed.like", @@ -138,12 +176,6 @@ local FEED_REACTIONS = { }, } -local function feed_reaction_sort_key() - local created = "record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND " .. created .. " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END" -end - local function feed_reaction_query(reaction, sql, values) if db.backend() ~= "postgres" then error(reaction.failure .. ": reaction queries require PostgreSQL", 0) end local ok, result = pcall(db.raw, sql, values) @@ -152,24 +184,10 @@ local function feed_reaction_query(reaction, sql, values) end local function feed_reaction_decode_cursor(token, direction, collection) - if token == nil then return nil end - if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then - invalid("cursor is malformed") - end - local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) - local ok, value = pcall(json.decode, decoded) - if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction - or type(value.t) ~= "string" or type(value.u) ~= "string" then - invalid("cursor is malformed or belongs to another sortDirection") - end - for key in pairs(value) do - if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end - end - local valid, cursor_collection = valid_record_uri(value.u) - if not valid or cursor_collection ~= collection or not valid_datetime(value.t) then - invalid("cursor is malformed") - end - return value + return decode_cursor(token, direction, function(value) + local valid, cursor_collection = valid_record_uri(value.u) + return valid and cursor_collection == collection and valid_datetime(value.t) + end) end local function feed_reaction_query_page(reaction, mode, identity, limit, cursor, direction) @@ -195,7 +213,7 @@ local function feed_reaction_query_page(reaction, mode, identity, limit, cursor, local ordering = direction == "asc" and "ASC" or "DESC" local subject_uri = "record::jsonb->'subject'->>'uri'" -- Select the earliest representative before applying the caller's independent page direction. - local sql = "WITH ranked_reactions AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, " .. subject_uri .. " ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT " .. feed_reaction_sort_key() .. " AS sort_at) sorted WHERE " .. table.concat(filters, " AND ") .. "), " .. + local sql = "WITH ranked_reactions AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, " .. subject_uri .. " ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT " .. created_at_sort() .. " AS sort_at) sorted WHERE " .. table.concat(filters, " AND ") .. "), " .. "representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM ranked_reactions WHERE relationship_rank = 1), " local page = "page AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM representatives" .. cursor_filter .. " ORDER BY sort_at " .. ordering .. ", uri " .. ordering .. " LIMIT $" .. #values .. ") " diff --git a/happyview-modules/lua/endpoints/listAcknowledgements.lua b/happyview-modules/lua/endpoints/listAcknowledgements.lua index ff6fba61..0e43d197 100644 --- a/happyview-modules/lua/endpoints/listAcknowledgements.lua +++ b/happyview-modules/lua/endpoints/listAcknowledgements.lua @@ -45,6 +45,7 @@ local function valid_datetime(value) "^(%d%d%d%d)%-(%d%d)%-(%d%d)T(%d%d):(%d%d):(%d%d)(.*)$") if not year then return false end year, month, day = tonumber(year), tonumber(month), tonumber(day) + if year < 1 then return false end hour, minute, second = tonumber(hour), tonumber(minute), tonumber(second) if month < 1 or month > 12 or hour > 23 or minute > 59 or second > 59 then return false end local leap = year % 4 == 0 and (year % 100 ~= 0 or year % 400 == 0) @@ -147,12 +148,51 @@ local function valid_nsid(value) return #name <= 63 and name:match("^[A-Za-z][A-Za-z0-9]*$") ~= nil end -local generic_valid_datetime = valid_datetime +local function parse_sort_direction(params) + local direction = scalar(params, "sortDirection") or "desc" + if direction ~= "asc" and direction ~= "desc" then invalid("sortDirection must be 'asc' or 'desc'") end + return direction +end -local function acknowledgement_valid_datetime(value) - if type(value) ~= "string" then return false end - if value:match("^(%d%d%d%d)") == "0000" then return false end - return generic_valid_datetime(value) +local function cursor_encode(value) + local encoded = json.encode(value) + return (encoded:gsub(".", function(char) return string.format("%02x", string.byte(char)) end)) +end + +-- Decodes a hex-encoded {v, d, t, u} list cursor. Rejects malformed tokens, other +-- sort directions and unknown keys; validate_value(value) -> boolean runs the +-- endpoint-specific check on t and u. Not for endpoints that skip the 8192-character +-- cap or accept extra keys. +local function decode_cursor(token, direction, validate_value) + if token == nil then return nil end + if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then + invalid("cursor is malformed") + end + local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) + local ok, value = pcall(json.decode, decoded) + if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction + or type(value.t) ~= "string" or type(value.u) ~= "string" then + invalid("cursor is malformed or belongs to another sortDirection") + end + for key in pairs(value) do + if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end + end + if not validate_value(value) then invalid("cursor is malformed") end + return value +end + +-- Adds `column IN ($n, ...)` to where, binding items; an empty list matches nothing. +local function add_in(where, binds, column, items) + if #items == 0 then + where[#where + 1] = "FALSE" + return + end + local marks = {} + for _, item in ipairs(items) do + binds[#binds + 1] = item + marks[#marks + 1] = "$" .. #binds + end + where[#where + 1] = column .. " IN (" .. table.concat(marks, ", ") .. ")" end local function valid_cursor_timestamp(value) @@ -160,7 +200,7 @@ local function valid_cursor_timestamp(value) or not value:match("^%d%d%d%d%-%d%d%-%d%dT%d%d:%d%d:%d%d%.%d%d%d%d%d%dZ$") then return false end - return acknowledgement_valid_datetime(value) + return valid_datetime(value) end local function acknowledgement_array(key, format) @@ -205,39 +245,11 @@ local function acknowledgement_array(key, format) return unique end -local function bind_acknowledgement_values(values, items) - local placeholders = {} - for _, item in ipairs(items) do - values[#values + 1] = item - placeholders[#placeholders + 1] = "$" .. #values - end - return placeholders -end - -local function cursor_encode(value) - local encoded = json.encode(value) - return (encoded:gsub(".", function(char) return string.format("%02x", string.byte(char)) end)) -end - local function decode_acknowledgement_cursor(token, direction) - if token == nil then return nil end - if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then - invalid("cursor is malformed") - end - local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) - local ok, value = pcall(json.decode, decoded) - if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction - or type(value.t) ~= "string" or type(value.u) ~= "string" then - invalid("cursor is malformed or belongs to another sortDirection") - end - for key in pairs(value) do - if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end - end - local valid, collection = valid_record_uri(value.u) - if not valid_cursor_timestamp(value.t) or not valid or collection ~= ACKNOWLEDGEMENT then - invalid("cursor is malformed") - end - return value + return decode_cursor(token, direction, function(value) + local valid, collection = valid_record_uri(value.u) + return valid_cursor_timestamp(value.t) and valid and collection == ACKNOWLEDGEMENT + end) end local function acknowledgement_sort_expression() @@ -252,22 +264,8 @@ end local function acknowledgement_list_query(authors, subjects, limit, cursor, direction) local where, values = { "acknowledgement.collection = $1" }, { ACKNOWLEDGEMENT } - if authors then - if #authors == 0 then - where[#where + 1] = "FALSE" - else - where[#where + 1] = "acknowledgement.did IN (" .. - table.concat(bind_acknowledgement_values(values, authors), ", ") .. ")" - end - end - if subjects then - if #subjects == 0 then - where[#where + 1] = "FALSE" - else - where[#where + 1] = "acknowledgement.record::jsonb->'subject'->>'uri' IN (" .. - table.concat(bind_acknowledgement_values(values, subjects), ", ") .. ")" - end - end + if authors then add_in(where, values, "acknowledgement.did", authors) end + if subjects then add_in(where, values, "acknowledgement.record::jsonb->'subject'->>'uri'", subjects) end local page_values, page_where = {}, {} for _, value in ipairs(values) do page_values[#page_values + 1] = value end @@ -303,8 +301,7 @@ local function list_acknowledgements() }) local authors = acknowledgement_array("authors", "did") local subjects = acknowledgement_array("subjects", "at-uri") - local direction = scalar(params, "sortDirection") or "desc" - if direction ~= "asc" and direction ~= "desc" then invalid("sortDirection must be 'asc' or 'desc'") end + local direction = parse_sort_direction(params) local limit = parse_list_limit(params) local cursor = decode_acknowledgement_cursor(scalar(params, "cursor"), direction) local rows = acknowledgement_list_query(authors, subjects, limit, cursor, direction) diff --git a/happyview-modules/lua/endpoints/listActivities.lua b/happyview-modules/lua/endpoints/listActivities.lua index c43e79f4..5a8060ec 100644 --- a/happyview-modules/lua/endpoints/listActivities.lua +++ b/happyview-modules/lua/endpoints/listActivities.lua @@ -242,6 +242,7 @@ local function valid_datetime(value) "^(%d%d%d%d)%-(%d%d)%-(%d%d)T(%d%d):(%d%d):(%d%d)(.*)$") if not year then return false end year, month, day = tonumber(year), tonumber(month), tonumber(day) + if year < 1 then return false end hour, minute, second = tonumber(hour), tonumber(minute), tonumber(second) if month < 1 or month > 12 or hour > 23 or minute > 59 or second > 59 then return false end local leap = year % 4 == 0 and (year % 100 ~= 0 or year % 400 == 0) @@ -267,37 +268,66 @@ local function parse_list_limit(params) return limit end -local CREATED_AT_SORT_COLUMNS = { - profile = { record = "record", indexed_at = "indexed_at", created_at = "created_at" }, - organization = { - record = "organization.record", - indexed_at = "organization.indexed_at", - created_at = "organization.created_at", - }, - activity = { - record = "activity.record", - indexed_at = "activity.indexed_at", - created_at = "activity.created_at", - }, - collection = { - record = "collection.record", - indexed_at = "collection.indexed_at", - created_at = "collection.created_at", - }, -} local CREATED_AT_SORT_PATTERN = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" -local function created_at_sort_expression(source) - local columns = CREATED_AT_SORT_COLUMNS[source] - if not columns then - error("CreatedAtSortExpressionError: source must be 'profile', 'organization', 'activity', or 'collection'", 0) +-- Sort key for a happyview_records row: the record's own createdAt when it is a +-- valid timestamp, otherwise COALESCE(indexed_at, created_at). `alias` is the +-- table alias; nil selects unqualified columns. +local function created_at_sort(alias) + local prefix = alias and (alias .. ".") or "" + local record, indexed_at, created_at = prefix .. "record", prefix .. "indexed_at", prefix .. "created_at" + local created = record .. "::jsonb->>'createdAt'" + return "CASE WHEN jsonb_typeof(" .. record .. "::jsonb->'createdAt') = 'string' AND " .. created .. + " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. + ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. indexed_at .. + "::timestamptz, " .. created_at .. "::timestamptz) END" +end + +local function parse_sort_direction(params) + local direction = scalar(params, "sortDirection") or "desc" + if direction ~= "asc" and direction ~= "desc" then invalid("sortDirection must be 'asc' or 'desc'") end + return direction +end + +local function cursor_encode(value) + local encoded = json.encode(value) + return (encoded:gsub(".", function(char) return string.format("%02x", string.byte(char)) end)) +end + +-- Decodes a hex-encoded {v, d, t, u} list cursor. Rejects malformed tokens, other +-- sort directions and unknown keys; validate_value(value) -> boolean runs the +-- endpoint-specific check on t and u. Not for endpoints that skip the 8192-character +-- cap or accept extra keys. +local function decode_cursor(token, direction, validate_value) + if token == nil then return nil end + if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then + invalid("cursor is malformed") + end + local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) + local ok, value = pcall(json.decode, decoded) + if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction + or type(value.t) ~= "string" or type(value.u) ~= "string" then + invalid("cursor is malformed or belongs to another sortDirection") end + for key in pairs(value) do + if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end + end + if not validate_value(value) then invalid("cursor is malformed") end + return value +end - local created = columns.record .. "::jsonb->>'createdAt'" - return "CASE WHEN jsonb_typeof(" .. columns.record .. "::jsonb->'createdAt') = 'string' AND " .. created .. - " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. - ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. columns.indexed_at .. - "::timestamptz, " .. columns.created_at .. "::timestamptz) END" +-- Adds `column IN ($n, ...)` to where, binding items; an empty list matches nothing. +local function add_in(where, binds, column, items) + if #items == 0 then + where[#where + 1] = "FALSE" + return + end + local marks = {} + for _, item in ipairs(items) do + binds[#binds + 1] = item + marks[#marks + 1] = "$" .. #binds + end + where[#where + 1] = column .. " IN (" .. table.concat(marks, ", ") .. ")" end local function activity_scalar(values, key) @@ -350,30 +380,10 @@ local function activity_array(key, format) end local function decode_activity_cursor(token, direction) - if token == nil then return nil end - if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then - invalid("cursor is malformed") - end - local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) - local ok, value = pcall(json.decode, decoded) - if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction - or type(value.t) ~= "string" or type(value.u) ~= "string" then - invalid("cursor is malformed or belongs to another sortDirection") - end - for key in pairs(value) do - if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end - end - local valid, collection = valid_record_uri(value.u) - if not valid_datetime(value.t) or not valid or collection ~= ACTIVITY then - invalid("cursor is malformed") - end - return value -end - -local function encode_activity_cursor(value) - return (json.encode(value):gsub(".", function(char) - return string.format("%02x", string.byte(char)) - end)) + return decode_cursor(token, direction, function(value) + local valid, collection = valid_record_uri(value.u) + return valid_datetime(value.t) and valid and collection == ACTIVITY + end) end local function bind_values(values, items) @@ -404,13 +414,7 @@ end local function activity_query(authors, has_organization_record, contributors, involved_actors, uris, search, limit, cursor, direction) local where, values = { "activity.collection = $1" }, { ACTIVITY } - if authors then - if #authors == 0 then - where[#where + 1] = "FALSE" - else - where[#where + 1] = "activity.did IN (" .. table.concat(bind_values(values, authors), ", ") .. ")" - end - end + if authors then add_in(where, values, "activity.did", authors) end if has_organization_record ~= nil then local predicate = has_organization_record and "EXISTS" or "NOT EXISTS" where[#where + 1] = predicate .. " (SELECT 1 FROM happyview_records AS organization " .. @@ -430,10 +434,7 @@ local function activity_query(authors, has_organization_record, contributors, in activity_contributor_match(values, involved_actors) .. ")" end end - if uris then - if #uris == 0 then where[#where + 1] = "FALSE" - else where[#where + 1] = "activity.uri IN (" .. table.concat(bind_values(values, uris), ", ") .. ")" end - end + if uris then add_in(where, values, "activity.uri", uris) end if search ~= nil then values[#values + 1] = search local pattern = "$" .. #values @@ -455,7 +456,7 @@ local function activity_query(authors, has_organization_record, contributors, in local sql = "SELECT activity.uri, activity.did, activity.cid, activity.indexed_at::text AS indexed_at, " .. "activity.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', " .. "'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp " .. - "FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT " .. created_at_sort_expression("activity") .. " AS sort_at) AS sorted " .. + "FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT " .. created_at_sort("activity") .. " AS sort_at) AS sorted " .. "WHERE " .. table.concat(where, " AND ") .. " ORDER BY sorted.sort_at " .. ordering .. ", activity.uri " .. ordering .. " LIMIT $" .. #values local rows = query(sql, values) @@ -469,7 +470,7 @@ local function activity_query(authors, has_organization_record, contributors, in local next_cursor if more then local last = rows[#rows] - next_cursor = encode_activity_cursor({ v = 1, d = direction, t = last.sort_timestamp, u = last.uri }) + next_cursor = cursor_encode({ v = 1, d = direction, t = last.sort_timestamp, u = last.uri }) end return views, next_cursor end @@ -509,8 +510,7 @@ local function activity_list_response(search_enabled) search = search:match("^%s*(.-)%s*$") if search == "" then search = nil end end - local direction = scalar(params, "sortDirection") or "desc" - if direction ~= "asc" and direction ~= "desc" then invalid("sortDirection must be 'asc' or 'desc'") end + local direction = parse_sort_direction(params) local limit = parse_list_limit(params) local cursor = decode_activity_cursor(scalar(params, "cursor"), direction) local activities, next_cursor = activity_query( diff --git a/happyview-modules/lua/endpoints/listActorFollowers.lua b/happyview-modules/lua/endpoints/listActorFollowers.lua index e865438b..ccd58823 100644 --- a/happyview-modules/lua/endpoints/listActorFollowers.lua +++ b/happyview-modules/lua/endpoints/listActorFollowers.lua @@ -45,6 +45,7 @@ local function valid_datetime(value) "^(%d%d%d%d)%-(%d%d)%-(%d%d)T(%d%d):(%d%d):(%d%d)(.*)$") if not year then return false end year, month, day = tonumber(year), tonumber(month), tonumber(day) + if year < 1 then return false end hour, minute, second = tonumber(hour), tonumber(minute), tonumber(second) if month < 1 or month > 12 or hour > 23 or minute > 59 or second > 59 then return false end local leap = year % 4 == 0 and (year % 100 ~= 0 or year % 400 == 0) @@ -139,15 +140,23 @@ local function account_follow_filter_sql() return "NOT COALESCE(starts_with(record::jsonb->'via'->>'uri', 'at://' || (record::jsonb->>'subject') || '/org.hypercerts.collection/'), FALSE)" end -local FOLLOW = "app.certified.graph.follow" +local CREATED_AT_SORT_PATTERN = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" --- Guard the cast inside CASE; a WHERE filter cannot protect it from planner reordering. -local function follow_sort_key() - local created = "record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND " .. created .. " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END" +-- Sort key for a happyview_records row: the record's own createdAt when it is a +-- valid timestamp, otherwise COALESCE(indexed_at, created_at). `alias` is the +-- table alias; nil selects unqualified columns. +local function created_at_sort(alias) + local prefix = alias and (alias .. ".") or "" + local record, indexed_at, created_at = prefix .. "record", prefix .. "indexed_at", prefix .. "created_at" + local created = record .. "::jsonb->>'createdAt'" + return "CASE WHEN jsonb_typeof(" .. record .. "::jsonb->'createdAt') = 'string' AND " .. created .. + " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. + ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. indexed_at .. + "::timestamptz, " .. created_at .. "::timestamptz) END" end +local FOLLOW = "app.certified.graph.follow" + local function query(sql, values) if db.backend() ~= "postgres" then error("ActorFollowQueryFailed: actor-follow queries require PostgreSQL", 0) end local ok, result = pcall(db.raw, sql, values) @@ -198,7 +207,7 @@ local function build_actor_follow_query(mode, actor, limit, cursor, direction) values[#values + 1] = limit + 1 local ordering = direction == "asc" and "ASC" or "DESC" local displayed_did = mode == "followers" and "did" or "subject_did" - local sql = "WITH ranked_follows AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, record::jsonb->>'subject' AS subject_did, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, record::jsonb->>'subject' ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT " .. follow_sort_key() .. " AS sort_at) sorted WHERE " .. table.concat(filters, " AND ") .. "), representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at, " .. displayed_did .. " AS actor_did FROM ranked_follows WHERE relationship_rank = 1), " .. + local sql = "WITH ranked_follows AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, record::jsonb->>'subject' AS subject_did, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, record::jsonb->>'subject' ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT " .. created_at_sort() .. " AS sort_at) sorted WHERE " .. table.concat(filters, " AND ") .. "), representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at, " .. displayed_did .. " AS actor_did FROM ranked_follows WHERE relationship_rank = 1), " .. "total AS (SELECT COUNT(*) AS total_count FROM representatives), " .. "page AS (SELECT uri, did, cid, indexed_at, record, sort_at, actor_did FROM representatives" .. cursor_filter .. " ORDER BY sort_at " .. ordering .. ", uri " .. ordering .. " LIMIT $" .. #values .. ") " .. "SELECT page.uri, page.did, page.cid, page.indexed_at, page.record, page.actor_did, total.total_count, to_char(page.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM total LEFT JOIN page ON TRUE ORDER BY page.sort_at " .. ordering .. ", page.uri " .. ordering diff --git a/happyview-modules/lua/endpoints/listActorFollowing.lua b/happyview-modules/lua/endpoints/listActorFollowing.lua index 2437f59e..5ca40982 100644 --- a/happyview-modules/lua/endpoints/listActorFollowing.lua +++ b/happyview-modules/lua/endpoints/listActorFollowing.lua @@ -45,6 +45,7 @@ local function valid_datetime(value) "^(%d%d%d%d)%-(%d%d)%-(%d%d)T(%d%d):(%d%d):(%d%d)(.*)$") if not year then return false end year, month, day = tonumber(year), tonumber(month), tonumber(day) + if year < 1 then return false end hour, minute, second = tonumber(hour), tonumber(minute), tonumber(second) if month < 1 or month > 12 or hour > 23 or minute > 59 or second > 59 then return false end local leap = year % 4 == 0 and (year % 100 ~= 0 or year % 400 == 0) @@ -139,15 +140,23 @@ local function account_follow_filter_sql() return "NOT COALESCE(starts_with(record::jsonb->'via'->>'uri', 'at://' || (record::jsonb->>'subject') || '/org.hypercerts.collection/'), FALSE)" end -local FOLLOW = "app.certified.graph.follow" +local CREATED_AT_SORT_PATTERN = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" --- Guard the cast inside CASE; a WHERE filter cannot protect it from planner reordering. -local function follow_sort_key() - local created = "record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND " .. created .. " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END" +-- Sort key for a happyview_records row: the record's own createdAt when it is a +-- valid timestamp, otherwise COALESCE(indexed_at, created_at). `alias` is the +-- table alias; nil selects unqualified columns. +local function created_at_sort(alias) + local prefix = alias and (alias .. ".") or "" + local record, indexed_at, created_at = prefix .. "record", prefix .. "indexed_at", prefix .. "created_at" + local created = record .. "::jsonb->>'createdAt'" + return "CASE WHEN jsonb_typeof(" .. record .. "::jsonb->'createdAt') = 'string' AND " .. created .. + " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. + ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. indexed_at .. + "::timestamptz, " .. created_at .. "::timestamptz) END" end +local FOLLOW = "app.certified.graph.follow" + local function query(sql, values) if db.backend() ~= "postgres" then error("ActorFollowQueryFailed: actor-follow queries require PostgreSQL", 0) end local ok, result = pcall(db.raw, sql, values) @@ -198,7 +207,7 @@ local function build_actor_follow_query(mode, actor, limit, cursor, direction) values[#values + 1] = limit + 1 local ordering = direction == "asc" and "ASC" or "DESC" local displayed_did = mode == "followers" and "did" or "subject_did" - local sql = "WITH ranked_follows AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, record::jsonb->>'subject' AS subject_did, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, record::jsonb->>'subject' ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT " .. follow_sort_key() .. " AS sort_at) sorted WHERE " .. table.concat(filters, " AND ") .. "), representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at, " .. displayed_did .. " AS actor_did FROM ranked_follows WHERE relationship_rank = 1), " .. + local sql = "WITH ranked_follows AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, record::jsonb->>'subject' AS subject_did, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, record::jsonb->>'subject' ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT " .. created_at_sort() .. " AS sort_at) sorted WHERE " .. table.concat(filters, " AND ") .. "), representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at, " .. displayed_did .. " AS actor_did FROM ranked_follows WHERE relationship_rank = 1), " .. "total AS (SELECT COUNT(*) AS total_count FROM representatives), " .. "page AS (SELECT uri, did, cid, indexed_at, record, sort_at, actor_did FROM representatives" .. cursor_filter .. " ORDER BY sort_at " .. ordering .. ", uri " .. ordering .. " LIMIT $" .. #values .. ") " .. "SELECT page.uri, page.did, page.cid, page.indexed_at, page.record, page.actor_did, total.total_count, to_char(page.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM total LEFT JOIN page ON TRUE ORDER BY page.sort_at " .. ordering .. ", page.uri " .. ordering diff --git a/happyview-modules/lua/endpoints/listAttachments.lua b/happyview-modules/lua/endpoints/listAttachments.lua index ef594193..e4349b60 100644 --- a/happyview-modules/lua/endpoints/listAttachments.lua +++ b/happyview-modules/lua/endpoints/listAttachments.lua @@ -45,6 +45,7 @@ local function valid_datetime(value) "^(%d%d%d%d)%-(%d%d)%-(%d%d)T(%d%d):(%d%d):(%d%d)(.*)$") if not year then return false end year, month, day = tonumber(year), tonumber(month), tonumber(day) + if year < 1 then return false end hour, minute, second = tonumber(hour), tonumber(minute), tonumber(second) if month < 1 or month > 12 or hour > 23 or minute > 59 or second > 59 then return false end local leap = year % 4 == 0 and (year % 100 ~= 0 or year % 400 == 0) @@ -157,6 +158,57 @@ local function hydrate_attachment_views(views) hydrate_actor_views(authors, attachment_query) end +-- Decodes a hex-encoded {v, d, t, u} list cursor. Rejects malformed tokens, other +-- sort directions and unknown keys; validate_value(value) -> boolean runs the +-- endpoint-specific check on t and u. Not for endpoints that skip the 8192-character +-- cap or accept extra keys. +local function decode_cursor(token, direction, validate_value) + if token == nil then return nil end + if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then + invalid("cursor is malformed") + end + local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) + local ok, value = pcall(json.decode, decoded) + if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction + or type(value.t) ~= "string" or type(value.u) ~= "string" then + invalid("cursor is malformed or belongs to another sortDirection") + end + for key in pairs(value) do + if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end + end + if not validate_value(value) then invalid("cursor is malformed") end + return value +end + +-- Adds `column IN ($n, ...)` to where, binding items; an empty list matches nothing. +local function add_in(where, binds, column, items) + if #items == 0 then + where[#where + 1] = "FALSE" + return + end + local marks = {} + for _, item in ipairs(items) do + binds[#binds + 1] = item + marks[#marks + 1] = "$" .. #binds + end + where[#where + 1] = column .. " IN (" .. table.concat(marks, ", ") .. ")" +end + +local CREATED_AT_SORT_PATTERN = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" + +-- Sort key for a happyview_records row: the record's own createdAt when it is a +-- valid timestamp, otherwise COALESCE(indexed_at, created_at). `alias` is the +-- table alias; nil selects unqualified columns. +local function created_at_sort(alias) + local prefix = alias and (alias .. ".") or "" + local record, indexed_at, created_at = prefix .. "record", prefix .. "indexed_at", prefix .. "created_at" + local created = record .. "::jsonb->>'createdAt'" + return "CASE WHEN jsonb_typeof(" .. record .. "::jsonb->'createdAt') = 'string' AND " .. created .. + " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. + ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. indexed_at .. + "::timestamptz, " .. created_at .. "::timestamptz) END" +end + local function attachment_array(params, key, validate, description) local value = params[key] if value == nil then return nil end @@ -192,20 +244,6 @@ local function attachment_array(params, key, validate, description) return unique end -local function attachment_bind_in(where, values, expression, items) - if not items then return end - if #items == 0 then - where[#where + 1] = "FALSE" - return - end - local placeholders = {} - for _, item in ipairs(items) do - values[#values + 1] = item - placeholders[#placeholders + 1] = "$" .. #values - end - where[#where + 1] = expression .. " IN (" .. table.concat(placeholders, ", ") .. ")" -end - local function attachment_subject_filter(where, values, subjects) if not subjects then return end if #subjects == 0 then @@ -223,39 +261,20 @@ local function attachment_subject_filter(where, values, subjects) "WHERE subject.value->>'uri' IN (" .. table.concat(placeholders, ", ") .. "))" end -local function attachment_sort_expression() - local created = "attachment.record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(attachment.record::jsonb->'createdAt') = 'string' AND " .. created .. - " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. - ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE " .. - "COALESCE(attachment.indexed_at::timestamptz, attachment.created_at::timestamptz) END" -end - local function attachment_cursor_decode(token, direction) - if token == nil then return nil end - if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then - invalid("cursor is malformed") - end - local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) - local ok, value = pcall(json.decode, decoded) - if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction - or type(value.t) ~= "string" or type(value.u) ~= "string" then - invalid("cursor is malformed or belongs to another sortDirection") - end - for key in pairs(value) do - if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end - end - if not valid_datetime(value.t) or not valid_attachment_uri(value.u) then invalid("cursor is malformed") end - return value + return decode_cursor(token, direction, function(value) + return valid_datetime(value.t) and valid_attachment_uri(value.u) + end) end local function query_attachments(filters, limit, cursor, direction) local where, values = { "attachment.collection = $1" }, { ATTACHMENT_COLLECTION } - attachment_bind_in(where, values, "attachment.did", filters.authors) - attachment_bind_in(where, values, "attachment.uri", filters.uris) + if filters.authors then add_in(where, values, "attachment.did", filters.authors) end + if filters.uris then add_in(where, values, "attachment.uri", filters.uris) end attachment_subject_filter(where, values, filters.subjects) - attachment_bind_in(where, values, "attachment.record::jsonb->>'contentType'", filters.content_types) + if filters.content_types then + add_in(where, values, "attachment.record::jsonb->>'contentType'", filters.content_types) + end if cursor then values[#values + 1] = cursor.t @@ -269,7 +288,7 @@ local function query_attachments(filters, limit, cursor, direction) values[#values + 1] = limit + 1 local ordering = direction == "asc" and "ASC" or "DESC" - local sort_key = attachment_sort_expression() + local sort_key = created_at_sort("attachment") local sql = "SELECT attachment.uri, attachment.did, attachment.cid, attachment.indexed_at::text AS indexed_at, " .. "attachment.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', " .. "'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp " .. diff --git a/happyview-modules/lua/endpoints/listBadgeAwards.lua b/happyview-modules/lua/endpoints/listBadgeAwards.lua index 1bccbc3f..d57d0cb9 100644 --- a/happyview-modules/lua/endpoints/listBadgeAwards.lua +++ b/happyview-modules/lua/endpoints/listBadgeAwards.lua @@ -45,6 +45,7 @@ local function valid_datetime(value) "^(%d%d%d%d)%-(%d%d)%-(%d%d)T(%d%d):(%d%d):(%d%d)(.*)$") if not year then return false end year, month, day = tonumber(year), tonumber(month), tonumber(day) + if year < 1 then return false end hour, minute, second = tonumber(hour), tonumber(minute), tonumber(second) if month < 1 or month > 12 or hour > 23 or minute > 59 or second > 59 then return false end local leap = year % 4 == 0 and (year % 100 ~= 0 or year % 400 == 0) @@ -81,6 +82,21 @@ local function cursor_encode(value) return (encoded:gsub(".", function(char) return string.format("%02x", string.byte(char)) end)) end +local CREATED_AT_SORT_PATTERN = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" + +-- Sort key for a happyview_records row: the record's own createdAt when it is a +-- valid timestamp, otherwise COALESCE(indexed_at, created_at). `alias` is the +-- table alias; nil selects unqualified columns. +local function created_at_sort(alias) + local prefix = alias and (alias .. ".") or "" + local record, indexed_at, created_at = prefix .. "record", prefix .. "indexed_at", prefix .. "created_at" + local created = record .. "::jsonb->>'createdAt'" + return "CASE WHEN jsonb_typeof(" .. record .. "::jsonb->'createdAt') = 'string' AND " .. created .. + " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. + ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. indexed_at .. + "::timestamptz, " .. created_at .. "::timestamptz) END" +end + local NULL = json.decode("null") local function record_view(row) @@ -276,15 +292,6 @@ local function decode_badge_award_cursor(token, direction) return value end -local function award_sort_expression() - local created = "award.record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(award.record::jsonb->'createdAt') = 'string' AND " .. created .. - " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. - ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE " .. - "COALESCE(award.indexed_at::timestamptz, award.created_at::timestamptz) END" -end - local function recipient_did_expression() local subject = "award.record::jsonb->'subject'" return "CASE WHEN jsonb_typeof(" .. subject .. ") = 'string' THEN award.record::jsonb->>'subject' " .. @@ -381,7 +388,7 @@ local function list_badge_awards(authors, badge_uris, badge_types, subjects, res "recipient_response.uri AS recipient_response_uri, recipient_response.cid AS recipient_response_cid, " .. "recipient_response.indexed_at::text AS recipient_response_indexed_at, " .. "recipient_response.did AS recipient_response_did, recipient_response.record::text AS recipient_response_record " .. - "FROM happyview_records AS award CROSS JOIN LATERAL (SELECT " .. award_sort_expression() .. " AS sort_at) sorted " .. + "FROM happyview_records AS award CROSS JOIN LATERAL (SELECT " .. created_at_sort("award") .. " AS sort_at) sorted " .. "LEFT JOIN happyview_records AS badge ON badge.collection = '" .. DEFINITION .. "' " .. "AND badge.uri = award.record::jsonb->'badge'->>'uri' " .. "AND badge.cid = award.record::jsonb->'badge'->>'cid' " .. diff --git a/happyview-modules/lua/endpoints/listBadgeDefinitions.lua b/happyview-modules/lua/endpoints/listBadgeDefinitions.lua index ea51d27c..13c6383e 100644 --- a/happyview-modules/lua/endpoints/listBadgeDefinitions.lua +++ b/happyview-modules/lua/endpoints/listBadgeDefinitions.lua @@ -52,6 +52,7 @@ local function valid_datetime(value) "^(%d%d%d%d)%-(%d%d)%-(%d%d)T(%d%d):(%d%d):(%d%d)(.*)$") if not year then return false end year, month, day = tonumber(year), tonumber(month), tonumber(day) + if year < 1 then return false end hour, minute, second = tonumber(hour), tonumber(minute), tonumber(second) if month < 1 or month > 12 or hour > 23 or minute > 59 or second > 59 then return false end local leap = year % 4 == 0 and (year % 100 ~= 0 or year % 400 == 0) @@ -88,6 +89,21 @@ local function cursor_encode(value) return (encoded:gsub(".", function(char) return string.format("%02x", string.byte(char)) end)) end +local CREATED_AT_SORT_PATTERN = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" + +-- Sort key for a happyview_records row: the record's own createdAt when it is a +-- valid timestamp, otherwise COALESCE(indexed_at, created_at). `alias` is the +-- table alias; nil selects unqualified columns. +local function created_at_sort(alias) + local prefix = alias and (alias .. ".") or "" + local record, indexed_at, created_at = prefix .. "record", prefix .. "indexed_at", prefix .. "created_at" + local created = record .. "::jsonb->>'createdAt'" + return "CASE WHEN jsonb_typeof(" .. record .. "::jsonb->'createdAt') = 'string' AND " .. created .. + " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. + ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. indexed_at .. + "::timestamptz, " .. created_at .. "::timestamptz) END" +end + local NULL = json.decode("null") local function record_view(row) @@ -190,14 +206,6 @@ local function decode_badge_definition_cursor(token, direction) return value end -local function badge_definition_sort_expression() - local created = "record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND " .. created .. - " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. - ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END" -end - local function list_badge_definitions(authors, badge_types, limit, cursor, direction) if db.backend() ~= "postgres" then error("BadgeDefinitionQueryFailed: badge definition API requires PostgreSQL", 0) @@ -215,7 +223,7 @@ local function list_badge_definitions(authors, badge_types, limit, cursor, direc end values[#values + 1] = limit + 1 local ordering = direction == "asc" and "ASC" or "DESC" - local sort_expression = badge_definition_sort_expression() + local sort_expression = created_at_sort() local sql = "SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, " .. "to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp " .. "FROM happyview_records CROSS JOIN LATERAL (SELECT " .. sort_expression .. " AS sort_at) sorted WHERE " .. diff --git a/happyview-modules/lua/endpoints/listBadgeResponses.lua b/happyview-modules/lua/endpoints/listBadgeResponses.lua index 336e252f..fdf71f02 100644 --- a/happyview-modules/lua/endpoints/listBadgeResponses.lua +++ b/happyview-modules/lua/endpoints/listBadgeResponses.lua @@ -45,6 +45,7 @@ local function valid_datetime(value) "^(%d%d%d%d)%-(%d%d)%-(%d%d)T(%d%d):(%d%d):(%d%d)(.*)$") if not year then return false end year, month, day = tonumber(year), tonumber(month), tonumber(day) + if year < 1 then return false end hour, minute, second = tonumber(hour), tonumber(minute), tonumber(second) if month < 1 or month > 12 or hour > 23 or minute > 59 or second > 59 then return false end local leap = year % 4 == 0 and (year % 100 ~= 0 or year % 400 == 0) @@ -81,6 +82,21 @@ local function cursor_encode(value) return (encoded:gsub(".", function(char) return string.format("%02x", string.byte(char)) end)) end +local CREATED_AT_SORT_PATTERN = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" + +-- Sort key for a happyview_records row: the record's own createdAt when it is a +-- valid timestamp, otherwise COALESCE(indexed_at, created_at). `alias` is the +-- table alias; nil selects unqualified columns. +local function created_at_sort(alias) + local prefix = alias and (alias .. ".") or "" + local record, indexed_at, created_at = prefix .. "record", prefix .. "indexed_at", prefix .. "created_at" + local created = record .. "::jsonb->>'createdAt'" + return "CASE WHEN jsonb_typeof(" .. record .. "::jsonb->'createdAt') = 'string' AND " .. created .. + " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. + ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. indexed_at .. + "::timestamptz, " .. created_at .. "::timestamptz) END" +end + local NULL = json.decode("null") local function record_view(row) @@ -161,15 +177,6 @@ local function decode_badge_response_cursor(token, direction) return value end -local function response_sort_expression() - local created = "response.record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(response.record::jsonb->'createdAt') = 'string' AND " .. created .. - " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. - ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE " .. - "COALESCE(response.indexed_at::timestamptz, response.created_at::timestamptz) END" -end - local function list_badge_responses(badge_award, limit, cursor, direction) local where, values = { "response.collection = $1" }, { RESPONSE } if badge_award then @@ -190,7 +197,7 @@ local function list_badge_responses(badge_award, limit, cursor, direction) local sql = "SELECT response.uri, response.did, response.cid, response.indexed_at::text AS indexed_at, " .. "response.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', " .. "'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp " .. - "FROM happyview_records AS response CROSS JOIN LATERAL (SELECT " .. response_sort_expression() .. " AS sort_at) sorted " .. + "FROM happyview_records AS response CROSS JOIN LATERAL (SELECT " .. created_at_sort("response") .. " AS sort_at) sorted " .. "WHERE " .. table.concat(where, " AND ") .. " ORDER BY sorted.sort_at " .. ordering .. ", response.uri " .. ordering .. " LIMIT $" .. #values local rows = query(sql, values) diff --git a/happyview-modules/lua/endpoints/listCollectionItems.lua b/happyview-modules/lua/endpoints/listCollectionItems.lua index 68d559f0..06d1f5b9 100644 --- a/happyview-modules/lua/endpoints/listCollectionItems.lua +++ b/happyview-modules/lua/endpoints/listCollectionItems.lua @@ -287,6 +287,14 @@ local function feature_projection_hydrate(views) end end +local function parse_list_limit(params) + local limit_value = scalar(params, "limit") + if limit_value and not limit_value:match("^%d+$") then invalid("limit must be an integer from 1 through 100") end + local limit = limit_value and tonumber(limit_value) or 25 + if not limit or limit % 1 ~= 0 or limit < 1 or limit > 100 then invalid("limit must be an integer from 1 through 100") end + return limit +end + local ITEM_COLLECTION = "org.hypercerts.collection" local ITEM_ACTIVITY = "org.hypercerts.claim.activity" local ITEM_FEATURE = "org.hypercerts.entity.feature" @@ -300,17 +308,6 @@ local function collection_items_keys_only(values, allowed) keys_only(values, allowed, "unknown query parameter: ") end -local function collection_items_limit() - local value = scalar(params, "limit") - if value == nil then return 25 end - if not value:match("^%d+$") then collection_items_invalid("limit must be an integer from 1 through 100") end - local limit = tonumber(value) - if not limit or limit < 1 or limit > 100 then - collection_items_invalid("limit must be an integer from 1 through 100") - end - return limit -end - local function collection_items_cursor_decode(token, collection_uri) if token == nil then return nil end if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then @@ -454,7 +451,7 @@ local function collection_items_response() if not collection_uri or not valid or collection ~= ITEM_COLLECTION then collection_items_invalid("collection must be a full org.hypercerts.collection AT-URI with a DID authority") end - local limit = collection_items_limit() + local limit = parse_list_limit(params) local cursor = collection_items_cursor_decode(scalar(params, "cursor"), collection_uri) local collection_rows = collection_items_query( diff --git a/happyview-modules/lua/endpoints/listCollections.lua b/happyview-modules/lua/endpoints/listCollections.lua index a222f76f..b343ad34 100644 --- a/happyview-modules/lua/endpoints/listCollections.lua +++ b/happyview-modules/lua/endpoints/listCollections.lua @@ -208,26 +208,6 @@ end local COLLECTION = "org.hypercerts.collection" -local function collection_invalid(message) - error("InvalidRequest: " .. message, 0) -end - -local function collection_keys_only(values, allowed) - for key in pairs(values) do - if not allowed[key] then collection_invalid("unknown query parameter: " .. key) end - end -end - -local function collection_scalar(values, key) - local value = values[key] - if value == nil then return nil end - if key == "hasOrganizationRecord" and type(value) == "boolean" then return tostring(value) end - if type(value) ~= "string" and type(value) ~= "number" then - collection_invalid(key .. " must occur once") - end - return tostring(value) -end - local function collection_valid_record_uri(value) if type(value) ~= "string" or #value > 8192 then return false end return valid_record_uri(value) @@ -258,6 +238,7 @@ local function valid_datetime(value) "^(%d%d%d%d)%-(%d%d)%-(%d%d)T(%d%d):(%d%d):(%d%d)(.*)$") if not year then return false end year, month, day = tonumber(year), tonumber(month), tonumber(day) + if year < 1 then return false end hour, minute, second = tonumber(hour), tonumber(minute), tonumber(second) if month < 1 or month > 12 or hour > 23 or minute > 59 or second > 59 then return false end local leap = year % 4 == 0 and (year % 100 ~= 0 or year % 400 == 0) @@ -275,37 +256,100 @@ local function valid_datetime(value) return true end -local CREATED_AT_SORT_COLUMNS = { - profile = { record = "record", indexed_at = "indexed_at", created_at = "created_at" }, - organization = { - record = "organization.record", - indexed_at = "organization.indexed_at", - created_at = "organization.created_at", - }, - activity = { - record = "activity.record", - indexed_at = "activity.indexed_at", - created_at = "activity.created_at", - }, - collection = { - record = "collection.record", - indexed_at = "collection.indexed_at", - created_at = "collection.created_at", - }, -} local CREATED_AT_SORT_PATTERN = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" -local function created_at_sort_expression(source) - local columns = CREATED_AT_SORT_COLUMNS[source] - if not columns then - error("CreatedAtSortExpressionError: source must be 'profile', 'organization', 'activity', or 'collection'", 0) +-- Sort key for a happyview_records row: the record's own createdAt when it is a +-- valid timestamp, otherwise COALESCE(indexed_at, created_at). `alias` is the +-- table alias; nil selects unqualified columns. +local function created_at_sort(alias) + local prefix = alias and (alias .. ".") or "" + local record, indexed_at, created_at = prefix .. "record", prefix .. "indexed_at", prefix .. "created_at" + local created = record .. "::jsonb->>'createdAt'" + return "CASE WHEN jsonb_typeof(" .. record .. "::jsonb->'createdAt') = 'string' AND " .. created .. + " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. + ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. indexed_at .. + "::timestamptz, " .. created_at .. "::timestamptz) END" +end + +local function invalid(message) + error("InvalidRequest: " .. message, 0) +end + +local function keys_only(values, allowed, unknown_message_prefix) + for key in pairs(values) do + if not allowed[key] then + invalid(unknown_message_prefix and (unknown_message_prefix .. key) or "unknown query parameter") + end end +end - local created = columns.record .. "::jsonb->>'createdAt'" - return "CASE WHEN jsonb_typeof(" .. columns.record .. "::jsonb->'createdAt') = 'string' AND " .. created .. - " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. - ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. columns.indexed_at .. - "::timestamptz, " .. columns.created_at .. "::timestamptz) END" +local function scalar(params, key) + local value = params[key] + if value == nil then return nil end + if type(value) ~= "string" and type(value) ~= "number" then + invalid(key .. " must occur once") + end + return tostring(value) +end + +local function parse_list_limit(params) + local limit_value = scalar(params, "limit") + if limit_value and not limit_value:match("^%d+$") then invalid("limit must be an integer from 1 through 100") end + local limit = limit_value and tonumber(limit_value) or 25 + if not limit or limit % 1 ~= 0 or limit < 1 or limit > 100 then invalid("limit must be an integer from 1 through 100") end + return limit +end + +local function parse_sort_direction(params) + local direction = scalar(params, "sortDirection") or "desc" + if direction ~= "asc" and direction ~= "desc" then invalid("sortDirection must be 'asc' or 'desc'") end + return direction +end + +local function cursor_encode(value) + local encoded = json.encode(value) + return (encoded:gsub(".", function(char) return string.format("%02x", string.byte(char)) end)) +end + +-- Decodes a hex-encoded {v, d, t, u} list cursor. Rejects malformed tokens, other +-- sort directions and unknown keys; validate_value(value) -> boolean runs the +-- endpoint-specific check on t and u. Not for endpoints that skip the 8192-character +-- cap or accept extra keys. +local function decode_cursor(token, direction, validate_value) + if token == nil then return nil end + if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then + invalid("cursor is malformed") + end + local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) + local ok, value = pcall(json.decode, decoded) + if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction + or type(value.t) ~= "string" or type(value.u) ~= "string" then + invalid("cursor is malformed or belongs to another sortDirection") + end + for key in pairs(value) do + if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end + end + if not validate_value(value) then invalid("cursor is malformed") end + return value +end + +-- Adds `column IN ($n, ...)` to where, binding items; an empty list matches nothing. +local function add_in(where, binds, column, items) + if #items == 0 then + where[#where + 1] = "FALSE" + return + end + local marks = {} + for _, item in ipairs(items) do + binds[#binds + 1] = item + marks[#marks + 1] = "$" .. #binds + end + where[#where + 1] = column .. " IN (" .. table.concat(marks, ", ") .. ")" +end + +local function collection_scalar(values, key) + if key == "hasOrganizationRecord" and type(values[key]) == "boolean" then return tostring(values[key]) end + return scalar(values, key) end local function collection_array(key, kind) @@ -319,40 +363,40 @@ local function collection_array(key, kind) local count = 0 for index in pairs(value) do if type(index) ~= "number" or index < 1 or index % 1 ~= 0 then - collection_invalid(key .. " must use repeated query values") + invalid(key .. " must use repeated query values") end count = count + 1 end - if count ~= #value then collection_invalid(key .. " must use repeated query values") end + if count ~= #value then invalid(key .. " must use repeated query values") end for index = 1, count do - if type(value[index]) ~= "string" then collection_invalid(key .. " entries must be strings") end + if type(value[index]) ~= "string" then invalid(key .. " entries must be strings") end supplied[#supplied + 1] = value[index] end else - collection_invalid(key .. " must be a string or repeated string parameter") + invalid(key .. " must be a string or repeated string parameter") end - if #supplied > 100 then collection_invalid(key .. " accepts at most 100 values") end + if #supplied > 100 then invalid(key .. " accepts at most 100 values") end local unique, seen = {}, {} for _, item in ipairs(supplied) do if kind == "did" and not valid_did(item) then - collection_invalid("each authors value must be a valid DID; resolve handles to DIDs first") + invalid("each authors value must be a valid DID; resolve handles to DIDs first") elseif kind == "collectionUri" then local valid, collection = collection_valid_record_uri(item) if not valid or collection ~= COLLECTION then - collection_invalid("each uris value must be a full org.hypercerts.collection AT-URI with a DID authority") + invalid("each uris value must be a full org.hypercerts.collection AT-URI with a DID authority") end elseif kind == "recordUri" then if not collection_valid_record_uri(item) then - collection_invalid("each " .. key .. " value must be a full AT-URI with a DID authority") + invalid("each " .. key .. " value must be a full AT-URI with a DID authority") end elseif kind == "tagUri" then local valid, collection = collection_valid_record_uri(item) if not valid or collection ~= "org.hypercerts.vocab.tag" then - collection_invalid("each tagUris value must be a full org.hypercerts.vocab.tag AT-URI with a DID authority") + invalid("each tagUris value must be a full org.hypercerts.vocab.tag AT-URI with a DID authority") end elseif kind == "type" and #item > 64 then - collection_invalid("types entries must be at most 64 UTF-8 bytes") + invalid("types entries must be at most 64 UTF-8 bytes") end if not seen[item] then seen[item] = true @@ -362,44 +406,11 @@ local function collection_array(key, kind) return unique end -local function collection_list_limit() - local value = collection_scalar(params, "limit") - if value == nil then return 25 end - if not value:match("^%d+$") then collection_invalid("limit must be an integer from 1 through 100") end - local limit = tonumber(value) - if not limit or limit < 1 or limit > 100 then - collection_invalid("limit must be an integer from 1 through 100") - end - return limit -end - local function collection_list_cursor_decode(token, direction) - if token == nil then return nil end - if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then - collection_invalid("cursor is malformed") - end - local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) - local ok, value = pcall(json.decode, decoded) - if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction - or type(value.t) ~= "string" or type(value.u) ~= "string" then - collection_invalid("cursor is malformed or belongs to another sortDirection") - end - for key in pairs(value) do - if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then - collection_invalid("cursor is malformed") - end - end - local valid, collection = collection_valid_record_uri(value.u) - if not valid_datetime(value.t) or not valid or collection ~= COLLECTION then - collection_invalid("cursor is malformed") - end - return value -end - -local function collection_cursor_encode(value) - return (json.encode(value):gsub(".", function(char) - return string.format("%02x", string.byte(char)) - end)) + return decode_cursor(token, direction, function(value) + local valid, collection = collection_valid_record_uri(value.u) + return valid_datetime(value.t) and valid and collection == COLLECTION + end) end local function collection_bind_values(values, items) @@ -414,34 +425,15 @@ end local function collection_list_filters(filters, search) local where, values = { "collection.collection = $1" }, { COLLECTION } - if filters.authors then - if #filters.authors == 0 then - where[#where + 1] = "FALSE" - else - where[#where + 1] = "collection.did IN (" .. table.concat(collection_bind_values(values, filters.authors), ", ") .. ")" - end - end + if filters.authors then add_in(where, values, "collection.did", filters.authors) end if filters.hasOrganizationRecord ~= nil then local predicate = filters.hasOrganizationRecord and "EXISTS" or "NOT EXISTS" where[#where + 1] = predicate .. " (SELECT 1 FROM happyview_records AS organization " .. "WHERE organization.collection = 'app.certified.actor.organization' AND organization.rkey = 'self' " .. "AND organization.did = collection.did)" end - if filters.types then - if #filters.types == 0 then - where[#where + 1] = "FALSE" - else - where[#where + 1] = "collection.record::jsonb->>'type' IN (" .. - table.concat(collection_bind_values(values, filters.types), ", ") .. ")" - end - end - if filters.uris then - if #filters.uris == 0 then - where[#where + 1] = "FALSE" - else - where[#where + 1] = "collection.uri IN (" .. table.concat(collection_bind_values(values, filters.uris), ", ") .. ")" - end - end + if filters.types then add_in(where, values, "collection.record::jsonb->>'type'", filters.types) end + if filters.uris then add_in(where, values, "collection.uri", filters.uris) end if filters.itemUris then if #filters.itemUris == 0 then where[#where + 1] = "FALSE" @@ -487,7 +479,7 @@ end local function collection_list_sql(where, values, limit, direction) values[#values + 1] = limit + 1 local ordering = direction == "asc" and "ASC" or "DESC" - local sort_key = created_at_sort_expression("collection") + local sort_key = created_at_sort("collection") return "SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, " .. "collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', " .. "'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp " .. @@ -508,7 +500,7 @@ local function collection_list_page(rows, limit, direction) local next_cursor if more then local last = rows[#rows] - next_cursor = collection_cursor_encode({ v = 1, d = direction, t = last.sort_timestamp, u = last.uri }) + next_cursor = cursor_encode({ v = 1, d = direction, t = last.sort_timestamp, u = last.uri }) end return views, next_cursor end @@ -533,7 +525,7 @@ local function collection_list_response(search_enabled) cursor = true, } if search_enabled then allowed.search = true end - collection_keys_only(params, allowed) + keys_only(params, allowed, "unknown query parameter: ") local authors = collection_array("authors", "did") local has_organization_record = collection_scalar(params, "hasOrganizationRecord") @@ -543,7 +535,7 @@ local function collection_list_response(search_enabled) elseif has_organization_record == "false" then has_organization_record = false else - collection_invalid("hasOrganizationRecord must be true or false") + invalid("hasOrganizationRecord must be true or false") end end local types = collection_array("types", "type") @@ -552,17 +544,14 @@ local function collection_list_response(search_enabled) local tag_uris = collection_array("tagUris", "tagUri") local search if search_enabled then - search = collection_scalar(params, "search") - if search == nil then collection_invalid("search is required") end + search = scalar(params, "search") + if search == nil then invalid("search is required") end search = search:match("^%s*(.-)%s*$") if search == "" then search = nil end end - local direction = collection_scalar(params, "sortDirection") or "desc" - if direction ~= "asc" and direction ~= "desc" then - collection_invalid("sortDirection must be 'asc' or 'desc'") - end - local limit = collection_list_limit() - local cursor = collection_list_cursor_decode(collection_scalar(params, "cursor"), direction) + local direction = parse_sort_direction(params) + local limit = parse_list_limit(params) + local cursor = collection_list_cursor_decode(scalar(params, "cursor"), direction) local collections, next_cursor = collection_list_query({ authors = authors, hasOrganizationRecord = has_organization_record, diff --git a/happyview-modules/lua/endpoints/listContributions.lua b/happyview-modules/lua/endpoints/listContributions.lua index e87fb11e..a05e1754 100644 --- a/happyview-modules/lua/endpoints/listContributions.lua +++ b/happyview-modules/lua/endpoints/listContributions.lua @@ -45,6 +45,7 @@ local function valid_datetime(value) "^(%d%d%d%d)%-(%d%d)%-(%d%d)T(%d%d):(%d%d):(%d%d)(.*)$") if not year then return false end year, month, day = tonumber(year), tonumber(month), tonumber(day) + if year < 1 then return false end hour, minute, second = tonumber(hour), tonumber(minute), tonumber(second) if month < 1 or month > 12 or hour > 23 or minute > 59 or second > 59 then return false end local leap = year % 4 == 0 and (year % 100 ~= 0 or year % 400 == 0) @@ -150,6 +151,42 @@ local function contribution_view(row) return view end +-- Decodes a hex-encoded {v, d, t, u} list cursor. Rejects malformed tokens, other +-- sort directions and unknown keys; validate_value(value) -> boolean runs the +-- endpoint-specific check on t and u. Not for endpoints that skip the 8192-character +-- cap or accept extra keys. +local function decode_cursor(token, direction, validate_value) + if token == nil then return nil end + if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then + invalid("cursor is malformed") + end + local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) + local ok, value = pcall(json.decode, decoded) + if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction + or type(value.t) ~= "string" or type(value.u) ~= "string" then + invalid("cursor is malformed or belongs to another sortDirection") + end + for key in pairs(value) do + if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end + end + if not validate_value(value) then invalid("cursor is malformed") end + return value +end + +-- Adds `column IN ($n, ...)` to where, binding items; an empty list matches nothing. +local function add_in(where, binds, column, items) + if #items == 0 then + where[#where + 1] = "FALSE" + return + end + local marks = {} + for _, item in ipairs(items) do + binds[#binds + 1] = item + marks[#marks + 1] = "$" .. #binds + end + where[#where + 1] = column .. " IN (" .. table.concat(marks, ", ") .. ")" +end + local function contribution_authors() local value = params.authors if value == nil then return nil end @@ -186,44 +223,11 @@ local function contribution_authors() return authors end -local function valid_contribution_cursor_datetime(value) - if type(value) ~= "string" or not valid_datetime(value) then return false end - return value:sub(1, 4) ~= "0000" -end - local function decode_contribution_cursor(token, direction) - if token == nil then return nil end - if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then - invalid("cursor is malformed") - end - local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) - local ok, value = pcall(json.decode, decoded) - if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction - or type(value.t) ~= "string" or type(value.u) ~= "string" then - invalid("cursor is malformed or belongs to another sortDirection") - end - for key in pairs(value) do - if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end - end - local valid = valid_contribution_uri(value.u) - if not valid or not valid_contribution_cursor_datetime(value.t) then - invalid("cursor is malformed") - end - return value -end - -local function add_contribution_authors(where, values, authors) - if authors == nil then return end - if #authors == 0 then - where[#where + 1] = "FALSE" - return - end - local placeholders = {} - for _, did in ipairs(authors) do - values[#values + 1] = did - placeholders[#placeholders + 1] = "$" .. #values - end - where[#where + 1] = "contribution.did IN (" .. table.concat(placeholders, ", ") .. ")" + return decode_cursor(token, direction, function(value) + local valid = valid_contribution_uri(value.u) + return valid and valid_datetime(value.t) + end) end local function contribution_sort_key() @@ -236,7 +240,7 @@ end local function query_contributions(authors, limit, cursor, direction) local where, values = { "contribution.collection = $1" }, { CONTRIBUTION } - add_contribution_authors(where, values, authors) + if authors then add_in(where, values, "contribution.did", authors) end if cursor then values[#values + 1] = cursor.t local timestamp = "$" .. #values diff --git a/happyview-modules/lua/endpoints/listContributorInformation.lua b/happyview-modules/lua/endpoints/listContributorInformation.lua index 235bdd35..2909a7a8 100644 --- a/happyview-modules/lua/endpoints/listContributorInformation.lua +++ b/happyview-modules/lua/endpoints/listContributorInformation.lua @@ -95,6 +95,7 @@ local function valid_datetime(value) "^(%d%d%d%d)%-(%d%d)%-(%d%d)T(%d%d):(%d%d):(%d%d)(.*)$") if not year then return false end year, month, day = tonumber(year), tonumber(month), tonumber(day) + if year < 1 then return false end hour, minute, second = tonumber(hour), tonumber(minute), tonumber(second) if month < 1 or month > 12 or hour > 23 or minute > 59 or second > 59 then return false end local leap = year % 4 == 0 and (year % 100 ~= 0 or year % 400 == 0) @@ -131,8 +132,55 @@ local function cursor_encode(value) return (encoded:gsub(".", function(char) return string.format("%02x", string.byte(char)) end)) end -local function contributor_information_datetime(value) - return valid_datetime(value) and tonumber(value:sub(1, 4)) > 0 +-- Decodes a hex-encoded {v, d, t, u} list cursor. Rejects malformed tokens, other +-- sort directions and unknown keys; validate_value(value) -> boolean runs the +-- endpoint-specific check on t and u. Not for endpoints that skip the 8192-character +-- cap or accept extra keys. +local function decode_cursor(token, direction, validate_value) + if token == nil then return nil end + if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then + invalid("cursor is malformed") + end + local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) + local ok, value = pcall(json.decode, decoded) + if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction + or type(value.t) ~= "string" or type(value.u) ~= "string" then + invalid("cursor is malformed or belongs to another sortDirection") + end + for key in pairs(value) do + if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end + end + if not validate_value(value) then invalid("cursor is malformed") end + return value +end + +-- Adds `column IN ($n, ...)` to where, binding items; an empty list matches nothing. +local function add_in(where, binds, column, items) + if #items == 0 then + where[#where + 1] = "FALSE" + return + end + local marks = {} + for _, item in ipairs(items) do + binds[#binds + 1] = item + marks[#marks + 1] = "$" .. #binds + end + where[#where + 1] = column .. " IN (" .. table.concat(marks, ", ") .. ")" +end + +local CREATED_AT_SORT_PATTERN = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" + +-- Sort key for a happyview_records row: the record's own createdAt when it is a +-- valid timestamp, otherwise COALESCE(indexed_at, created_at). `alias` is the +-- table alias; nil selects unqualified columns. +local function created_at_sort(alias) + local prefix = alias and (alias .. ".") or "" + local record, indexed_at, created_at = prefix .. "record", prefix .. "indexed_at", prefix .. "created_at" + local created = record .. "::jsonb->>'createdAt'" + return "CASE WHEN jsonb_typeof(" .. record .. "::jsonb->'createdAt') = 'string' AND " .. created .. + " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. + ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. indexed_at .. + "::timestamptz, " .. created_at .. "::timestamptz) END" end local function contributor_information_query(sql, values) @@ -185,38 +233,10 @@ local function contributor_information_array(params, key, validate, description) return unique end -local function contributor_information_bind_in(where, values, expression, items) - if not items then return end - if #items == 0 then - where[#where + 1] = "FALSE" - return - end - local placeholders = {} - for _, item in ipairs(items) do - values[#values + 1] = item - placeholders[#placeholders + 1] = "$" .. #values - end - where[#where + 1] = expression .. " IN (" .. table.concat(placeholders, ", ") .. ")" -end - local function contributor_information_cursor_decode(token, direction) - if token == nil then return nil end - if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then - invalid("cursor is malformed") - end - local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) - local ok, value = pcall(json.decode, decoded) - if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction - or type(value.t) ~= "string" or type(value.u) ~= "string" then - invalid("cursor is malformed or belongs to another sortDirection") - end - for key in pairs(value) do - if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end - end - if not contributor_information_uri(value.u) or not contributor_information_datetime(value.t) then - invalid("cursor is malformed") - end - return value + return decode_cursor(token, direction, function(value) + return contributor_information_uri(value.u) and valid_datetime(value.t) + end) end local function preserve_contributor_author_timestamps(author) @@ -229,18 +249,9 @@ local function preserve_contributor_author_timestamps(author) end end -local function contributor_information_sort_expression() - local created = "contributor.record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(contributor.record::jsonb->'createdAt') = 'string' AND " .. created .. - " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. - ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE " .. - "COALESCE(contributor.indexed_at::timestamptz, contributor.created_at::timestamptz) END" -end - local function query_contributor_information(authors, limit, cursor, direction) local where, values = { "contributor.collection = $1" }, { CONTRIBUTOR_INFORMATION_COLLECTION } - contributor_information_bind_in(where, values, "contributor.did", authors) + if authors then add_in(where, values, "contributor.did", authors) end if cursor then values[#values + 1] = cursor.t @@ -254,7 +265,7 @@ local function query_contributor_information(authors, limit, cursor, direction) values[#values + 1] = limit + 1 local ordering = direction == "asc" and "ASC" or "DESC" - local sort_key = contributor_information_sort_expression() + local sort_key = created_at_sort("contributor") local sql = "SELECT contributor.uri, contributor.did, contributor.cid, " .. "contributor.indexed_at::text AS indexed_at, contributor.record::text AS record, " .. "to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp " .. diff --git a/happyview-modules/lua/endpoints/listEntityFollowers.lua b/happyview-modules/lua/endpoints/listEntityFollowers.lua index f0e5223f..1a7e3620 100644 --- a/happyview-modules/lua/endpoints/listEntityFollowers.lua +++ b/happyview-modules/lua/endpoints/listEntityFollowers.lua @@ -45,6 +45,7 @@ local function valid_datetime(value) "^(%d%d%d%d)%-(%d%d)%-(%d%d)T(%d%d):(%d%d):(%d%d)(.*)$") if not year then return false end year, month, day = tonumber(year), tonumber(month), tonumber(day) + if year < 1 then return false end hour, minute, second = tonumber(hour), tonumber(minute), tonumber(second) if month < 1 or month > 12 or hour > 23 or minute > 59 or second > 59 then return false end local leap = year % 4 == 0 and (year % 100 ~= 0 or year % 400 == 0) @@ -95,13 +96,6 @@ local function entity_follow_query(sql, values) return result end --- Keep malformed publisher timestamps out of casts; preserve the actor-follow fallback order. -local function entity_follow_sort_key() - local created = "record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND " .. created .. " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END" -end - local function entity_follow_indexed_record_view(row) return { uri = row.uri, @@ -118,7 +112,11 @@ local function entity_follow_record_view(row) return view end -local function entity_follow_decode_cursor(token, direction) +-- Decodes a hex-encoded {v, d, t, u} list cursor. Rejects malformed tokens, other +-- sort directions and unknown keys; validate_value(value) -> boolean runs the +-- endpoint-specific check on t and u. Not for endpoints that skip the 8192-character +-- cap or accept extra keys. +local function decode_cursor(token, direction, validate_value) if token == nil then return nil end if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then invalid("cursor is malformed") @@ -132,13 +130,32 @@ local function entity_follow_decode_cursor(token, direction) for key in pairs(value) do if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end end - local valid, collection = valid_record_uri(value.u) - if not valid or collection ~= ENTITY_FOLLOW or not valid_datetime(value.t) then - invalid("cursor is malformed") - end + if not validate_value(value) then invalid("cursor is malformed") end return value end +local CREATED_AT_SORT_PATTERN = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" + +-- Sort key for a happyview_records row: the record's own createdAt when it is a +-- valid timestamp, otherwise COALESCE(indexed_at, created_at). `alias` is the +-- table alias; nil selects unqualified columns. +local function created_at_sort(alias) + local prefix = alias and (alias .. ".") or "" + local record, indexed_at, created_at = prefix .. "record", prefix .. "indexed_at", prefix .. "created_at" + local created = record .. "::jsonb->>'createdAt'" + return "CASE WHEN jsonb_typeof(" .. record .. "::jsonb->'createdAt') = 'string' AND " .. created .. + " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. + ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. indexed_at .. + "::timestamptz, " .. created_at .. "::timestamptz) END" +end + +local function entity_follow_decode_cursor(token, direction) + return decode_cursor(token, direction, function(value) + local valid, collection = valid_record_uri(value.u) + return valid and collection == ENTITY_FOLLOW and valid_datetime(value.t) + end) +end + local function entity_follow_query_page(mode, identity, limit, cursor, direction) local filters, values = { "collection = $1" }, { ENTITY_FOLLOW, identity } if mode == "followers" then @@ -160,7 +177,7 @@ local function entity_follow_query_page(mode, identity, limit, cursor, direction values[#values + 1] = limit + 1 local ordering = direction == "asc" and "ASC" or "DESC" local subject_uri = "record::jsonb->'subject'->>'uri'" - local ranked_follows = "ranked_follows AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, " .. subject_uri .. " ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT " .. entity_follow_sort_key() .. " AS sort_at) sorted WHERE " .. table.concat(filters, " AND ") .. ")" + local ranked_follows = "ranked_follows AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, " .. subject_uri .. " ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT " .. created_at_sort() .. " AS sort_at) sorted WHERE " .. table.concat(filters, " AND ") .. ")" local representatives = "representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM ranked_follows WHERE relationship_rank = 1)" local page = "page AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM representatives" .. cursor_filter .. " ORDER BY sort_at " .. ordering .. ", uri " .. ordering .. " LIMIT $" .. #values .. ")" local sql diff --git a/happyview-modules/lua/endpoints/listEntityFollowing.lua b/happyview-modules/lua/endpoints/listEntityFollowing.lua index 25335175..8e91ea3a 100644 --- a/happyview-modules/lua/endpoints/listEntityFollowing.lua +++ b/happyview-modules/lua/endpoints/listEntityFollowing.lua @@ -45,6 +45,7 @@ local function valid_datetime(value) "^(%d%d%d%d)%-(%d%d)%-(%d%d)T(%d%d):(%d%d):(%d%d)(.*)$") if not year then return false end year, month, day = tonumber(year), tonumber(month), tonumber(day) + if year < 1 then return false end hour, minute, second = tonumber(hour), tonumber(minute), tonumber(second) if month < 1 or month > 12 or hour > 23 or minute > 59 or second > 59 then return false end local leap = year % 4 == 0 and (year % 100 ~= 0 or year % 400 == 0) @@ -531,13 +532,6 @@ local function entity_follow_query(sql, values) return result end --- Keep malformed publisher timestamps out of casts; preserve the actor-follow fallback order. -local function entity_follow_sort_key() - local created = "record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND " .. created .. " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END" -end - local function entity_follow_indexed_record_view(row) return { uri = row.uri, @@ -554,7 +548,11 @@ local function entity_follow_record_view(row) return view end -local function entity_follow_decode_cursor(token, direction) +-- Decodes a hex-encoded {v, d, t, u} list cursor. Rejects malformed tokens, other +-- sort directions and unknown keys; validate_value(value) -> boolean runs the +-- endpoint-specific check on t and u. Not for endpoints that skip the 8192-character +-- cap or accept extra keys. +local function decode_cursor(token, direction, validate_value) if token == nil then return nil end if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then invalid("cursor is malformed") @@ -568,13 +566,32 @@ local function entity_follow_decode_cursor(token, direction) for key in pairs(value) do if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end end - local valid, collection = valid_record_uri(value.u) - if not valid or collection ~= ENTITY_FOLLOW or not valid_datetime(value.t) then - invalid("cursor is malformed") - end + if not validate_value(value) then invalid("cursor is malformed") end return value end +local CREATED_AT_SORT_PATTERN = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" + +-- Sort key for a happyview_records row: the record's own createdAt when it is a +-- valid timestamp, otherwise COALESCE(indexed_at, created_at). `alias` is the +-- table alias; nil selects unqualified columns. +local function created_at_sort(alias) + local prefix = alias and (alias .. ".") or "" + local record, indexed_at, created_at = prefix .. "record", prefix .. "indexed_at", prefix .. "created_at" + local created = record .. "::jsonb->>'createdAt'" + return "CASE WHEN jsonb_typeof(" .. record .. "::jsonb->'createdAt') = 'string' AND " .. created .. + " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. + ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. indexed_at .. + "::timestamptz, " .. created_at .. "::timestamptz) END" +end + +local function entity_follow_decode_cursor(token, direction) + return decode_cursor(token, direction, function(value) + local valid, collection = valid_record_uri(value.u) + return valid and collection == ENTITY_FOLLOW and valid_datetime(value.t) + end) +end + local function entity_follow_query_page(mode, identity, limit, cursor, direction) local filters, values = { "collection = $1" }, { ENTITY_FOLLOW, identity } if mode == "followers" then @@ -596,7 +613,7 @@ local function entity_follow_query_page(mode, identity, limit, cursor, direction values[#values + 1] = limit + 1 local ordering = direction == "asc" and "ASC" or "DESC" local subject_uri = "record::jsonb->'subject'->>'uri'" - local ranked_follows = "ranked_follows AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, " .. subject_uri .. " ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT " .. entity_follow_sort_key() .. " AS sort_at) sorted WHERE " .. table.concat(filters, " AND ") .. ")" + local ranked_follows = "ranked_follows AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, " .. subject_uri .. " ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT " .. created_at_sort() .. " AS sort_at) sorted WHERE " .. table.concat(filters, " AND ") .. ")" local representatives = "representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM ranked_follows WHERE relationship_rank = 1)" local page = "page AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM representatives" .. cursor_filter .. " ORDER BY sort_at " .. ordering .. ", uri " .. ordering .. " LIMIT $" .. #values .. ")" local sql diff --git a/happyview-modules/lua/endpoints/listEvaluations.lua b/happyview-modules/lua/endpoints/listEvaluations.lua index 393ebf35..eac07546 100644 --- a/happyview-modules/lua/endpoints/listEvaluations.lua +++ b/happyview-modules/lua/endpoints/listEvaluations.lua @@ -45,6 +45,7 @@ local function valid_datetime(value) "^(%d%d%d%d)%-(%d%d)%-(%d%d)T(%d%d):(%d%d):(%d%d)(.*)$") if not year then return false end year, month, day = tonumber(year), tonumber(month), tonumber(day) + if year < 1 then return false end hour, minute, second = tonumber(hour), tonumber(minute), tonumber(second) if month < 1 or month > 12 or hour > 23 or minute > 59 or second > 59 then return false end local leap = year % 4 == 0 and (year % 100 ~= 0 or year % 400 == 0) @@ -219,6 +220,57 @@ local function valid_nsid(value) return #name <= 63 and name:match("^[A-Za-z][A-Za-z0-9]*$") ~= nil end +-- Decodes a hex-encoded {v, d, t, u} list cursor. Rejects malformed tokens, other +-- sort directions and unknown keys; validate_value(value) -> boolean runs the +-- endpoint-specific check on t and u. Not for endpoints that skip the 8192-character +-- cap or accept extra keys. +local function decode_cursor(token, direction, validate_value) + if token == nil then return nil end + if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then + invalid("cursor is malformed") + end + local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) + local ok, value = pcall(json.decode, decoded) + if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction + or type(value.t) ~= "string" or type(value.u) ~= "string" then + invalid("cursor is malformed or belongs to another sortDirection") + end + for key in pairs(value) do + if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end + end + if not validate_value(value) then invalid("cursor is malformed") end + return value +end + +-- Adds `column IN ($n, ...)` to where, binding items; an empty list matches nothing. +local function add_in(where, binds, column, items) + if #items == 0 then + where[#where + 1] = "FALSE" + return + end + local marks = {} + for _, item in ipairs(items) do + binds[#binds + 1] = item + marks[#marks + 1] = "$" .. #binds + end + where[#where + 1] = column .. " IN (" .. table.concat(marks, ", ") .. ")" +end + +local CREATED_AT_SORT_PATTERN = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" + +-- Sort key for a happyview_records row: the record's own createdAt when it is a +-- valid timestamp, otherwise COALESCE(indexed_at, created_at). `alias` is the +-- table alias; nil selects unqualified columns. +local function created_at_sort(alias) + local prefix = alias and (alias .. ".") or "" + local record, indexed_at, created_at = prefix .. "record", prefix .. "indexed_at", prefix .. "created_at" + local created = record .. "::jsonb->>'createdAt'" + return "CASE WHEN jsonb_typeof(" .. record .. "::jsonb->'createdAt') = 'string' AND " .. created .. + " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. + ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. indexed_at .. + "::timestamptz, " .. created_at .. "::timestamptz) END" +end + local function evaluation_array(key, format) local value = params[key] if value == nil then return nil end @@ -279,46 +331,16 @@ local function evaluation_evaluator_match(values, dids) "WHERE evaluator.value->>'did' IN (" .. table.concat(marks, ", ") .. "))" end -local function evaluation_sort_expression() - local created = "evaluation.record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(evaluation.record::jsonb->'createdAt') = 'string' AND " .. created .. - " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. - ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE " .. - "COALESCE(evaluation.indexed_at::timestamptz, evaluation.created_at::timestamptz) END" -end - local function decode_evaluation_cursor(token, direction) - if token == nil then return nil end - if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then - invalid("cursor is malformed") - end - local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) - local ok, value = pcall(json.decode, decoded) - if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction - or type(value.t) ~= "string" or type(value.u) ~= "string" then - invalid("cursor is malformed or belongs to another sortDirection") - end - for key in pairs(value) do - if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end - end - local valid, collection = valid_record_uri(value.u) - if not valid_datetime(value.t) or not valid or collection ~= EVALUATION then - invalid("cursor is malformed") - end - return value + return decode_cursor(token, direction, function(value) + local valid, collection = valid_record_uri(value.u) + return valid_datetime(value.t) and valid and collection == EVALUATION + end) end local function evaluation_list_filters(authors, evaluators, subjects) local where, values = { "evaluation.collection = $1" }, { EVALUATION } - if authors then - if #authors == 0 then - where[#where + 1] = "FALSE" - else - where[#where + 1] = "evaluation.did IN (" .. - table.concat(bind_evaluation_values(values, authors), ", ") .. ")" - end - end + if authors then add_in(where, values, "evaluation.did", authors) end if evaluators then if #evaluators == 0 then where[#where + 1] = "FALSE" @@ -326,14 +348,7 @@ local function evaluation_list_filters(authors, evaluators, subjects) where[#where + 1] = evaluation_evaluator_match(values, evaluators) end end - if subjects then - if #subjects == 0 then - where[#where + 1] = "FALSE" - else - where[#where + 1] = "evaluation.record::jsonb->'subject'->>'uri' IN (" .. - table.concat(bind_evaluation_values(values, subjects), ", ") .. ")" - end - end + if subjects then add_in(where, values, "evaluation.record::jsonb->'subject'->>'uri'", subjects) end return where, values end @@ -358,7 +373,7 @@ local function evaluation_list_page_query(values, where, cursor, limit, directio "to_char(sorted.sort_at AT TIME ZONE 'UTC', " .. "'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp " .. "FROM happyview_records AS evaluation CROSS JOIN LATERAL (SELECT " .. - evaluation_sort_expression() .. " AS sort_at) AS sorted WHERE " .. table.concat(page_where, " AND ") .. + created_at_sort("evaluation") .. " AS sort_at) AS sorted WHERE " .. table.concat(page_where, " AND ") .. " ORDER BY sorted.sort_at " .. ordering .. ", evaluation.uri " .. ordering .. " LIMIT $" .. #page_values return sql, page_values end diff --git a/happyview-modules/lua/endpoints/listEvmLinks.lua b/happyview-modules/lua/endpoints/listEvmLinks.lua index b190ba86..cccce77b 100644 --- a/happyview-modules/lua/endpoints/listEvmLinks.lua +++ b/happyview-modules/lua/endpoints/listEvmLinks.lua @@ -45,6 +45,7 @@ local function valid_datetime(value) "^(%d%d%d%d)%-(%d%d)%-(%d%d)T(%d%d):(%d%d):(%d%d)(.*)$") if not year then return false end year, month, day = tonumber(year), tonumber(month), tonumber(day) + if year < 1 then return false end hour, minute, second = tonumber(hour), tonumber(minute), tonumber(second) if month < 1 or month > 12 or hour > 23 or minute > 59 or second > 59 then return false end local leap = year % 4 == 0 and (year % 100 ~= 0 or year % 400 == 0) @@ -81,6 +82,21 @@ local function cursor_encode(value) return (encoded:gsub(".", function(char) return string.format("%02x", string.byte(char)) end)) end +local CREATED_AT_SORT_PATTERN = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" + +-- Sort key for a happyview_records row: the record's own createdAt when it is a +-- valid timestamp, otherwise COALESCE(indexed_at, created_at). `alias` is the +-- table alias; nil selects unqualified columns. +local function created_at_sort(alias) + local prefix = alias and (alias .. ".") or "" + local record, indexed_at, created_at = prefix .. "record", prefix .. "indexed_at", prefix .. "created_at" + local created = record .. "::jsonb->>'createdAt'" + return "CASE WHEN jsonb_typeof(" .. record .. "::jsonb->'createdAt') = 'string' AND " .. created .. + " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. + ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. indexed_at .. + "::timestamptz, " .. created_at .. "::timestamptz) END" +end + local NULL = json.decode("null") local function record_view(row) @@ -229,16 +245,6 @@ local function decode_evm_link_cursor(token, direction) return value end -local function evm_link_sort_key() - -- CASE guards the cast from malformed publisher-controlled timestamps. - local created = "link.record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(link.record::jsonb->'createdAt') = 'string' AND " .. created .. - " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. - ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE " .. - "COALESCE(link.indexed_at::timestamptz, link.created_at::timestamptz) END" -end - local function list_evm_links(actors, addresses, limit, cursor, direction) local where, values = { "link.collection = $1" }, { EVMLINK } add_filter(where, values, "link.did", actors) @@ -259,7 +265,7 @@ local function list_evm_links(actors, addresses, limit, cursor, direction) local sql = "SELECT link.uri, link.did, link.cid, link.indexed_at::text AS indexed_at, " .. "link.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', " .. "'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp " .. - "FROM happyview_records AS link CROSS JOIN LATERAL (SELECT " .. evm_link_sort_key() .. " AS sort_at) sorted WHERE " .. + "FROM happyview_records AS link CROSS JOIN LATERAL (SELECT " .. created_at_sort("link") .. " AS sort_at) sorted WHERE " .. table.concat(where, " AND ") .. " ORDER BY sorted.sort_at " .. ordering .. ", link.uri " .. ordering .. " LIMIT $" .. #values local rows = evm_link_query(sql, values) diff --git a/happyview-modules/lua/endpoints/listFeatures.lua b/happyview-modules/lua/endpoints/listFeatures.lua index 7362e5bb..1c0b6cd8 100644 --- a/happyview-modules/lua/endpoints/listFeatures.lua +++ b/happyview-modules/lua/endpoints/listFeatures.lua @@ -45,6 +45,7 @@ local function valid_datetime(value) "^(%d%d%d%d)%-(%d%d)%-(%d%d)T(%d%d):(%d%d):(%d%d)(.*)$") if not year then return false end year, month, day = tonumber(year), tonumber(month), tonumber(day) + if year < 1 then return false end hour, minute, second = tonumber(hour), tonumber(minute), tonumber(second) if month < 1 or month > 12 or hour > 23 or minute > 59 or second > 59 then return false end local leap = year % 4 == 0 and (year % 100 ~= 0 or year % 400 == 0) @@ -81,6 +82,20 @@ local function cursor_encode(value) return (encoded:gsub(".", function(char) return string.format("%02x", string.byte(char)) end)) end +-- Adds `column IN ($n, ...)` to where, binding items; an empty list matches nothing. +local function add_in(where, binds, column, items) + if #items == 0 then + where[#where + 1] = "FALSE" + return + end + local marks = {} + for _, item in ipairs(items) do + binds[#binds + 1] = item + marks[#marks + 1] = "$" .. #binds + end + where[#where + 1] = column .. " IN (" .. table.concat(marks, ", ") .. ")" +end + local FEATURE_COLLECTION = "org.hypercerts.entity.feature" local function feature_valid_uri(value) @@ -200,20 +215,6 @@ local function feature_array(params, key, validate, description, max_bytes) return unique end -local function feature_add_in(where, values, column, binds) - if values == nil then return end - if #values == 0 then - where[#where + 1] = "FALSE" - return - end - local placeholders = {} - for _, value in ipairs(values) do - binds[#binds + 1] = value - placeholders[#placeholders + 1] = "$" .. #binds - end - where[#where + 1] = column .. " IN (" .. table.concat(placeholders, ", ") .. ")" -end - local function feature_add_types(where, values, binds) if values == nil then return end if #values == 0 then @@ -253,7 +254,7 @@ local function feature_cursor_decode(token, direction) for key in pairs(value) do if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end end - if not feature_valid_uri(value.u) or value.t:sub(1, 4) == "0000" or not valid_datetime(value.t) then + if not feature_valid_uri(value.u) or not valid_datetime(value.t) then invalid("cursor is malformed") end return value @@ -279,7 +280,7 @@ end local function feature_list_rows(filters, limit, cursor, direction) local where, binds = { "feature.collection = $1" }, { FEATURE_COLLECTION } - feature_add_in(where, filters.authors, "feature.did", binds) + if filters.authors then add_in(where, binds, "feature.did", filters.authors) end feature_add_types(where, filters.types, binds) if filters.hasOrganizationRecord ~= nil then local predicate = filters.hasOrganizationRecord and "EXISTS" or "NOT EXISTS" diff --git a/happyview-modules/lua/endpoints/listLocations.lua b/happyview-modules/lua/endpoints/listLocations.lua index 15dab956..b1921f7d 100644 --- a/happyview-modules/lua/endpoints/listLocations.lua +++ b/happyview-modules/lua/endpoints/listLocations.lua @@ -45,6 +45,7 @@ local function valid_datetime(value) "^(%d%d%d%d)%-(%d%d)%-(%d%d)T(%d%d):(%d%d):(%d%d)(.*)$") if not year then return false end year, month, day = tonumber(year), tonumber(month), tonumber(day) + if year < 1 then return false end hour, minute, second = tonumber(hour), tonumber(minute), tonumber(second) if month < 1 or month > 12 or hour > 23 or minute > 59 or second > 59 then return false end local leap = year % 4 == 0 and (year % 100 ~= 0 or year % 400 == 0) @@ -81,6 +82,21 @@ local function cursor_encode(value) return (encoded:gsub(".", function(char) return string.format("%02x", string.byte(char)) end)) end +local CREATED_AT_SORT_PATTERN = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" + +-- Sort key for a happyview_records row: the record's own createdAt when it is a +-- valid timestamp, otherwise COALESCE(indexed_at, created_at). `alias` is the +-- table alias; nil selects unqualified columns. +local function created_at_sort(alias) + local prefix = alias and (alias .. ".") or "" + local record, indexed_at, created_at = prefix .. "record", prefix .. "indexed_at", prefix .. "created_at" + local created = record .. "::jsonb->>'createdAt'" + return "CASE WHEN jsonb_typeof(" .. record .. "::jsonb->'createdAt') = 'string' AND " .. created .. + " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. + ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. indexed_at .. + "::timestamptz, " .. created_at .. "::timestamptz) END" +end + local NULL = json.decode("null") local function record_view(row) @@ -210,11 +226,7 @@ local function query_locations(filters, limit, cursor, direction) end binds[#binds + 1] = limit + 1 local ordering = direction == "asc" and "ASC" or "DESC" - -- CASE guards the cast itself; a WHERE regex cannot protect it from planner reordering. - local created = "record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - local sort_key = "CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND " .. created .. " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END" - local sql = "SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT " .. sort_key .. " AS sort_at) sorted WHERE " .. table.concat(where, " AND ") .. " ORDER BY sorted.sort_at " .. ordering .. ", uri " .. ordering .. " LIMIT $" .. #binds + local sql = "SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT " .. created_at_sort() .. " AS sort_at) sorted WHERE " .. table.concat(where, " AND ") .. " ORDER BY sorted.sort_at " .. ordering .. ", uri " .. ordering .. " LIMIT $" .. #binds local rows = query(sql, binds) local more = #rows > limit if more then rows[#rows] = nil end diff --git a/happyview-modules/lua/endpoints/listMeasurements.lua b/happyview-modules/lua/endpoints/listMeasurements.lua index b1be923d..0e4454ef 100644 --- a/happyview-modules/lua/endpoints/listMeasurements.lua +++ b/happyview-modules/lua/endpoints/listMeasurements.lua @@ -45,6 +45,7 @@ local function valid_datetime(value) "^(%d%d%d%d)%-(%d%d)%-(%d%d)T(%d%d):(%d%d):(%d%d)(.*)$") if not year then return false end year, month, day = tonumber(year), tonumber(month), tonumber(day) + if year < 1 then return false end hour, minute, second = tonumber(hour), tonumber(minute), tonumber(second) if month < 1 or month > 12 or hour > 23 or minute > 59 or second > 59 then return false end local leap = year % 4 == 0 and (year % 100 ~= 0 or year % 400 == 0) @@ -182,6 +183,57 @@ local function valid_nsid(value) return #name <= 63 and name:match("^[A-Za-z][A-Za-z0-9]*$") ~= nil end +-- Decodes a hex-encoded {v, d, t, u} list cursor. Rejects malformed tokens, other +-- sort directions and unknown keys; validate_value(value) -> boolean runs the +-- endpoint-specific check on t and u. Not for endpoints that skip the 8192-character +-- cap or accept extra keys. +local function decode_cursor(token, direction, validate_value) + if token == nil then return nil end + if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then + invalid("cursor is malformed") + end + local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) + local ok, value = pcall(json.decode, decoded) + if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction + or type(value.t) ~= "string" or type(value.u) ~= "string" then + invalid("cursor is malformed or belongs to another sortDirection") + end + for key in pairs(value) do + if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end + end + if not validate_value(value) then invalid("cursor is malformed") end + return value +end + +-- Adds `column IN ($n, ...)` to where, binding items; an empty list matches nothing. +local function add_in(where, binds, column, items) + if #items == 0 then + where[#where + 1] = "FALSE" + return + end + local marks = {} + for _, item in ipairs(items) do + binds[#binds + 1] = item + marks[#marks + 1] = "$" .. #binds + end + where[#where + 1] = column .. " IN (" .. table.concat(marks, ", ") .. ")" +end + +local CREATED_AT_SORT_PATTERN = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" + +-- Sort key for a happyview_records row: the record's own createdAt when it is a +-- valid timestamp, otherwise COALESCE(indexed_at, created_at). `alias` is the +-- table alias; nil selects unqualified columns. +local function created_at_sort(alias) + local prefix = alias and (alias .. ".") or "" + local record, indexed_at, created_at = prefix .. "record", prefix .. "indexed_at", prefix .. "created_at" + local created = record .. "::jsonb->>'createdAt'" + return "CASE WHEN jsonb_typeof(" .. record .. "::jsonb->'createdAt') = 'string' AND " .. created .. + " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. + ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. indexed_at .. + "::timestamptz, " .. created_at .. "::timestamptz) END" +end + local function measurement_array(key, format) local value = params[key] if value == nil then return nil end @@ -235,45 +287,15 @@ local function bind_values(values, items) end local function decode_measurement_cursor(token, direction) - if token == nil then return nil end - if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then - invalid("cursor is malformed") - end - local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) - local ok, value = pcall(json.decode, decoded) - if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction - or type(value.t) ~= "string" or type(value.u) ~= "string" then - invalid("cursor is malformed or belongs to another sortDirection") - end - for key in pairs(value) do - if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end - end - local valid, collection = measurement_valid_record_uri(value.u) - -- PostgreSQL timestamptz has no year zero, so reject it before binding the cursor. - if value.t:sub(1, 4) == "0000" or not valid_datetime(value.t) or not valid or collection ~= MEASUREMENT then - invalid("cursor is malformed") - end - return value -end - -local function measurement_sort_expression() - local created = "measurement.record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(measurement.record::jsonb->'createdAt') = 'string' AND " .. created .. - " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. - ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE " .. - "COALESCE(measurement.indexed_at::timestamptz, measurement.created_at::timestamptz) END" + return decode_cursor(token, direction, function(value) + local valid, collection = measurement_valid_record_uri(value.u) + return valid_datetime(value.t) and valid and collection == MEASUREMENT + end) end local function measurement_list_query(authors, subjects, limit, cursor, direction) local where, values = { "measurement.collection = $1" }, { MEASUREMENT } - if authors then - if #authors == 0 then - where[#where + 1] = "FALSE" - else - where[#where + 1] = "measurement.did IN (" .. table.concat(bind_values(values, authors), ", ") .. ")" - end - end + if authors then add_in(where, values, "measurement.did", authors) end if subjects then if #subjects == 0 then where[#where + 1] = "FALSE" @@ -305,7 +327,7 @@ local function measurement_list_query(authors, subjects, limit, cursor, directio "measurement.indexed_at::text AS indexed_at, measurement.record::text AS record, " .. "to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp " .. "FROM happyview_records AS measurement CROSS JOIN LATERAL (SELECT " .. - measurement_sort_expression() .. " AS sort_at) AS sorted WHERE " .. table.concat(page_where, " AND ") .. + created_at_sort("measurement") .. " AS sort_at) AS sorted WHERE " .. table.concat(page_where, " AND ") .. " ORDER BY sorted.sort_at " .. ordering .. ", measurement.uri " .. ordering .. " LIMIT $" .. #page_values local rows = measurement_query(sql, page_values) diff --git a/happyview-modules/lua/endpoints/listOrganizations.lua b/happyview-modules/lua/endpoints/listOrganizations.lua index 9df39110..e2e679b6 100644 --- a/happyview-modules/lua/endpoints/listOrganizations.lua +++ b/happyview-modules/lua/endpoints/listOrganizations.lua @@ -45,6 +45,7 @@ local function valid_datetime(value) "^(%d%d%d%d)%-(%d%d)%-(%d%d)T(%d%d):(%d%d):(%d%d)(.*)$") if not year then return false end year, month, day = tonumber(year), tonumber(month), tonumber(day) + if year < 1 then return false end hour, minute, second = tonumber(hour), tonumber(minute), tonumber(second) if month < 1 or month > 12 or hour > 23 or minute > 59 or second > 59 then return false end local leap = year % 4 == 0 and (year % 100 ~= 0 or year % 400 == 0) @@ -184,37 +185,33 @@ local function hydrate_organization_actors(actors) hydrate_locations(actors) end -local CREATED_AT_SORT_COLUMNS = { - profile = { record = "record", indexed_at = "indexed_at", created_at = "created_at" }, - organization = { - record = "organization.record", - indexed_at = "organization.indexed_at", - created_at = "organization.created_at", - }, - activity = { - record = "activity.record", - indexed_at = "activity.indexed_at", - created_at = "activity.created_at", - }, - collection = { - record = "collection.record", - indexed_at = "collection.indexed_at", - created_at = "collection.created_at", - }, -} local CREATED_AT_SORT_PATTERN = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" -local function created_at_sort_expression(source) - local columns = CREATED_AT_SORT_COLUMNS[source] - if not columns then - error("CreatedAtSortExpressionError: source must be 'profile', 'organization', 'activity', or 'collection'", 0) - end - - local created = columns.record .. "::jsonb->>'createdAt'" - return "CASE WHEN jsonb_typeof(" .. columns.record .. "::jsonb->'createdAt') = 'string' AND " .. created .. +-- Sort key for a happyview_records row: the record's own createdAt when it is a +-- valid timestamp, otherwise COALESCE(indexed_at, created_at). `alias` is the +-- table alias; nil selects unqualified columns. +local function created_at_sort(alias) + local prefix = alias and (alias .. ".") or "" + local record, indexed_at, created_at = prefix .. "record", prefix .. "indexed_at", prefix .. "created_at" + local created = record .. "::jsonb->>'createdAt'" + return "CASE WHEN jsonb_typeof(" .. record .. "::jsonb->'createdAt') = 'string' AND " .. created .. " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. - ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. columns.indexed_at .. - "::timestamptz, " .. columns.created_at .. "::timestamptz) END" + ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. indexed_at .. + "::timestamptz, " .. created_at .. "::timestamptz) END" +end + +-- Adds `column IN ($n, ...)` to where, binding items; an empty list matches nothing. +local function add_in(where, binds, column, items) + if #items == 0 then + where[#where + 1] = "FALSE" + return + end + local marks = {} + for _, item in ipairs(items) do + binds[#binds + 1] = item + marks[#marks + 1] = "$" .. #binds + end + where[#where + 1] = column .. " IN (" .. table.concat(marks, ", ") .. ")" end local function valid_organization_uri(value) @@ -260,17 +257,6 @@ local function array(params, key) return unique end -local function add_actors(where, values, actors) - if not actors then return end - if #actors == 0 then where[#where + 1] = "FALSE"; return end - local placeholders = {} - for _, did in ipairs(actors) do - values[#values + 1] = did - placeholders[#placeholders + 1] = "$" .. #values - end - where[#where + 1] = "organization.did IN (" .. table.concat(placeholders, ", ") .. ")" -end - local function add_organization_types(where, values, organization_types) if not organization_types then return end if #organization_types == 0 then where[#where + 1] = "FALSE"; return end @@ -303,7 +289,7 @@ end local function query_organizations(actors, organization_types, visibility, search, limit, cursor, direction) local where, values = { "organization.collection = $1", "organization.rkey = 'self'" }, { ORGANIZATION } - add_actors(where, values, actors) + if actors then add_in(where, values, "organization.did", actors) end add_organization_types(where, values, organization_types) if visibility ~= nil then values[#values + 1] = visibility @@ -332,7 +318,7 @@ local function query_organizations(actors, organization_types, visibility, searc values[#values + 1] = limit + 1 local ordering = direction == "asc" and "ASC" or "DESC" - local sort_key = created_at_sort_expression("organization") + local sort_key = created_at_sort("organization") local sql = "SELECT organization.uri, organization.did, organization.cid, organization.indexed_at::text AS indexed_at, " .. "organization.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp " .. "FROM happyview_records AS organization CROSS JOIN LATERAL (SELECT " .. sort_key .. " AS sort_at) AS sorted WHERE " .. diff --git a/happyview-modules/lua/endpoints/listProfiles.lua b/happyview-modules/lua/endpoints/listProfiles.lua index 63e21779..15ad948e 100644 --- a/happyview-modules/lua/endpoints/listProfiles.lua +++ b/happyview-modules/lua/endpoints/listProfiles.lua @@ -33,6 +33,7 @@ local function valid_datetime(value) "^(%d%d%d%d)%-(%d%d)%-(%d%d)T(%d%d):(%d%d):(%d%d)(.*)$") if not year then return false end year, month, day = tonumber(year), tonumber(month), tonumber(day) + if year < 1 then return false end hour, minute, second = tonumber(hour), tonumber(minute), tonumber(second) if month < 1 or month > 12 or hour > 23 or minute > 59 or second > 59 then return false end local leap = year % 4 == 0 and (year % 100 ~= 0 or year % 400 == 0) @@ -90,37 +91,33 @@ local function query(sql, values) return result end -local CREATED_AT_SORT_COLUMNS = { - profile = { record = "record", indexed_at = "indexed_at", created_at = "created_at" }, - organization = { - record = "organization.record", - indexed_at = "organization.indexed_at", - created_at = "organization.created_at", - }, - activity = { - record = "activity.record", - indexed_at = "activity.indexed_at", - created_at = "activity.created_at", - }, - collection = { - record = "collection.record", - indexed_at = "collection.indexed_at", - created_at = "collection.created_at", - }, -} local CREATED_AT_SORT_PATTERN = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" -local function created_at_sort_expression(source) - local columns = CREATED_AT_SORT_COLUMNS[source] - if not columns then - error("CreatedAtSortExpressionError: source must be 'profile', 'organization', 'activity', or 'collection'", 0) - end - - local created = columns.record .. "::jsonb->>'createdAt'" - return "CASE WHEN jsonb_typeof(" .. columns.record .. "::jsonb->'createdAt') = 'string' AND " .. created .. +-- Sort key for a happyview_records row: the record's own createdAt when it is a +-- valid timestamp, otherwise COALESCE(indexed_at, created_at). `alias` is the +-- table alias; nil selects unqualified columns. +local function created_at_sort(alias) + local prefix = alias and (alias .. ".") or "" + local record, indexed_at, created_at = prefix .. "record", prefix .. "indexed_at", prefix .. "created_at" + local created = record .. "::jsonb->>'createdAt'" + return "CASE WHEN jsonb_typeof(" .. record .. "::jsonb->'createdAt') = 'string' AND " .. created .. " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. - ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. columns.indexed_at .. - "::timestamptz, " .. columns.created_at .. "::timestamptz) END" + ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. indexed_at .. + "::timestamptz, " .. created_at .. "::timestamptz) END" +end + +-- Adds `column IN ($n, ...)` to where, binding items; an empty list matches nothing. +local function add_in(where, binds, column, items) + if #items == 0 then + where[#where + 1] = "FALSE" + return + end + local marks = {} + for _, item in ipairs(items) do + binds[#binds + 1] = item + marks[#marks + 1] = "$" .. #binds + end + where[#where + 1] = column .. " IN (" .. table.concat(marks, ", ") .. ")" end local function valid_profile_uri(value) @@ -151,17 +148,6 @@ local function array(params, key) return unique end -local function add_actors(where, values, actors) - if not actors then return end - if #actors == 0 then where[#where + 1] = "FALSE"; return end - local placeholders = {} - for _, did in ipairs(actors) do - values[#values + 1] = did - placeholders[#placeholders + 1] = "$" .. #values - end - where[#where + 1] = "did IN (" .. table.concat(placeholders, ", ") .. ")" -end - local function cursor_decode(token, direction) if not token then return nil end if #token % 2 ~= 0 or token:find("[^0-9a-f]") then invalid("cursor is malformed") end @@ -180,7 +166,7 @@ end local function query_profiles(actors, search, limit, cursor, direction) local where, values = { "collection = $1", "rkey = 'self'" }, { PROFILE } - add_actors(where, values, actors) + if actors then add_in(where, values, "did", actors) end if search then values[#values + 1] = search local term = "$" .. #values @@ -198,7 +184,7 @@ local function query_profiles(actors, search, limit, cursor, direction) values[#values + 1] = limit + 1 local ordering = direction == "asc" and "ASC" or "DESC" - local sort_key = created_at_sort_expression("profile") + local sort_key = created_at_sort() local sql = "SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, " .. "to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp " .. "FROM happyview_records CROSS JOIN LATERAL (SELECT " .. sort_key .. " AS sort_at) sorted WHERE " diff --git a/happyview-modules/lua/endpoints/listReceipts.lua b/happyview-modules/lua/endpoints/listReceipts.lua index fa320206..e798215b 100644 --- a/happyview-modules/lua/endpoints/listReceipts.lua +++ b/happyview-modules/lua/endpoints/listReceipts.lua @@ -45,6 +45,7 @@ local function valid_datetime(value) "^(%d%d%d%d)%-(%d%d)%-(%d%d)T(%d%d):(%d%d):(%d%d)(.*)$") if not year then return false end year, month, day = tonumber(year), tonumber(month), tonumber(day) + if year < 1 then return false end hour, minute, second = tonumber(hour), tonumber(minute), tonumber(second) if month < 1 or month > 12 or hour > 23 or minute > 59 or second > 59 then return false end local leap = year % 4 == 0 and (year % 100 ~= 0 or year % 400 == 0) @@ -164,6 +165,68 @@ local function valid_nsid(value) return #name <= 63 and name:match("^[A-Za-z][A-Za-z0-9]*$") ~= nil end +local function parse_sort_direction(params) + local direction = scalar(params, "sortDirection") or "desc" + if direction ~= "asc" and direction ~= "desc" then invalid("sortDirection must be 'asc' or 'desc'") end + return direction +end + +local function cursor_encode(value) + local encoded = json.encode(value) + return (encoded:gsub(".", function(char) return string.format("%02x", string.byte(char)) end)) +end + +-- Decodes a hex-encoded {v, d, t, u} list cursor. Rejects malformed tokens, other +-- sort directions and unknown keys; validate_value(value) -> boolean runs the +-- endpoint-specific check on t and u. Not for endpoints that skip the 8192-character +-- cap or accept extra keys. +local function decode_cursor(token, direction, validate_value) + if token == nil then return nil end + if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then + invalid("cursor is malformed") + end + local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) + local ok, value = pcall(json.decode, decoded) + if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction + or type(value.t) ~= "string" or type(value.u) ~= "string" then + invalid("cursor is malformed or belongs to another sortDirection") + end + for key in pairs(value) do + if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end + end + if not validate_value(value) then invalid("cursor is malformed") end + return value +end + +-- Adds `column IN ($n, ...)` to where, binding items; an empty list matches nothing. +local function add_in(where, binds, column, items) + if #items == 0 then + where[#where + 1] = "FALSE" + return + end + local marks = {} + for _, item in ipairs(items) do + binds[#binds + 1] = item + marks[#marks + 1] = "$" .. #binds + end + where[#where + 1] = column .. " IN (" .. table.concat(marks, ", ") .. ")" +end + +local CREATED_AT_SORT_PATTERN = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" + +-- Sort key for a happyview_records row: the record's own createdAt when it is a +-- valid timestamp, otherwise COALESCE(indexed_at, created_at). `alias` is the +-- table alias; nil selects unqualified columns. +local function created_at_sort(alias) + local prefix = alias and (alias .. ".") or "" + local record, indexed_at, created_at = prefix .. "record", prefix .. "indexed_at", prefix .. "created_at" + local created = record .. "::jsonb->>'createdAt'" + return "CASE WHEN jsonb_typeof(" .. record .. "::jsonb->'createdAt') = 'string' AND " .. created .. + " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. + ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. indexed_at .. + "::timestamptz, " .. created_at .. "::timestamptz) END" +end + local function valid_funding_record_uri(value) local valid, collection = valid_record_uri(value) if not valid or not valid_nsid(collection) then return false, collection end @@ -226,33 +289,11 @@ local function funding_receipt_array(key, format) return unique end -local valid_receipt_datetime = valid_datetime - local function decode_funding_receipt_cursor(token, direction) - if token == nil then return nil end - if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then - invalid("cursor is malformed") - end - local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) - local ok, value = pcall(json.decode, decoded) - if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction - or type(value.t) ~= "string" or type(value.u) ~= "string" then - invalid("cursor is malformed or belongs to another sortDirection") - end - for key in pairs(value) do - if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end - end - local valid, collection = valid_record_uri(value.u) - if not valid_receipt_datetime(value.t) or not valid or collection ~= RECEIPT then - invalid("cursor is malformed") - end - return value -end - -local function encode_funding_receipt_cursor(value) - return (json.encode(value):gsub(".", function(char) - return string.format("%02x", string.byte(char)) - end)) + return decode_cursor(token, direction, function(value) + local valid, collection = valid_record_uri(value.u) + return valid_datetime(value.t) and valid and collection == RECEIPT + end) end local function bind_funding_receipt_values(values, items) @@ -265,10 +306,7 @@ local function bind_funding_receipt_values(values, items) end local function add_funding_receipt_array_filter(where, values, items, expression) - if items == nil then return end - if #items == 0 then where[#where + 1] = "FALSE"; return end - local marks = bind_funding_receipt_values(values, items) - where[#where + 1] = expression .. " IN (" .. table.concat(marks, ", ") .. ")" + if items ~= nil then add_in(where, values, expression, items) end end local function add_funding_receipt_party_filter(where, values, key, items) @@ -294,15 +332,6 @@ local function add_funding_receipt_party_filter(where, values, key, items) where[#where + 1] = "(" .. table.concat(matches, " OR ") .. ")" end -local function funding_receipt_sort_expression() - local created = "receipt.record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(receipt.record::jsonb->'createdAt') = 'string' AND " .. created .. - " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. - ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE " .. - "COALESCE(receipt.indexed_at::timestamptz, receipt.created_at::timestamptz) END" -end - local function query_funding_receipts(authors, uris, from_values, to_values, for_uris, transaction_ids, limit, cursor, direction) local where, values = { "receipt.collection = $1" }, { RECEIPT } add_funding_receipt_array_filter(where, values, authors, "receipt.did") @@ -328,7 +357,7 @@ local function query_funding_receipts(authors, uris, from_values, to_values, for "receipt.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', " .. "'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp " .. "FROM happyview_records AS receipt CROSS JOIN LATERAL (SELECT " .. - funding_receipt_sort_expression() .. " AS sort_at) AS sorted WHERE " .. table.concat(where, " AND ") .. + created_at_sort("receipt") .. " AS sort_at) AS sorted WHERE " .. table.concat(where, " AND ") .. " ORDER BY sorted.sort_at " .. ordering .. ", receipt.uri " .. ordering .. " LIMIT $" .. #values local rows = receipt_query(sql, values) local more = #rows > limit @@ -341,7 +370,7 @@ local function query_funding_receipts(authors, uris, from_values, to_values, for local next_cursor if more then local last = rows[#rows] - next_cursor = encode_funding_receipt_cursor({ v = 1, d = direction, t = last.sort_timestamp, u = last.uri }) + next_cursor = cursor_encode({ v = 1, d = direction, t = last.sort_timestamp, u = last.uri }) end return receipts, next_cursor end @@ -366,10 +395,7 @@ local function funding_receipts_response() local for_uris = funding_receipt_array("forUris", "atUri") local transaction_ids = funding_receipt_array("transactionIds") - local direction = scalar(params, "sortDirection") or "desc" - if direction ~= "asc" and direction ~= "desc" then - invalid("sortDirection must be 'asc' or 'desc'") - end + local direction = parse_sort_direction(params) local limit = parse_list_limit(params) local cursor = decode_funding_receipt_cursor(scalar(params, "cursor"), direction) local receipts, next_cursor = query_funding_receipts( diff --git a/happyview-modules/lua/endpoints/listRecentFollows.lua b/happyview-modules/lua/endpoints/listRecentFollows.lua index 1ec3bece..4a4bfeab 100644 --- a/happyview-modules/lua/endpoints/listRecentFollows.lua +++ b/happyview-modules/lua/endpoints/listRecentFollows.lua @@ -45,6 +45,7 @@ local function valid_datetime(value) "^(%d%d%d%d)%-(%d%d)%-(%d%d)T(%d%d):(%d%d):(%d%d)(.*)$") if not year then return false end year, month, day = tonumber(year), tonumber(month), tonumber(day) + if year < 1 then return false end hour, minute, second = tonumber(hour), tonumber(minute), tonumber(second) if month < 1 or month > 12 or hour > 23 or minute > 59 or second > 59 then return false end local leap = year % 4 == 0 and (year % 100 ~= 0 or year % 400 == 0) diff --git a/happyview-modules/lua/endpoints/listRights.lua b/happyview-modules/lua/endpoints/listRights.lua index f3c95999..499fc669 100644 --- a/happyview-modules/lua/endpoints/listRights.lua +++ b/happyview-modules/lua/endpoints/listRights.lua @@ -110,6 +110,7 @@ local function valid_datetime(value) "^(%d%d%d%d)%-(%d%d)%-(%d%d)T(%d%d):(%d%d):(%d%d)(.*)$") if not year then return false end year, month, day = tonumber(year), tonumber(month), tonumber(day) + if year < 1 then return false end hour, minute, second = tonumber(hour), tonumber(minute), tonumber(second) if month < 1 or month > 12 or hour > 23 or minute > 59 or second > 59 then return false end local leap = year % 4 == 0 and (year % 100 ~= 0 or year % 400 == 0) @@ -146,6 +147,57 @@ local function cursor_encode(value) return (encoded:gsub(".", function(char) return string.format("%02x", string.byte(char)) end)) end +-- Decodes a hex-encoded {v, d, t, u} list cursor. Rejects malformed tokens, other +-- sort directions and unknown keys; validate_value(value) -> boolean runs the +-- endpoint-specific check on t and u. Not for endpoints that skip the 8192-character +-- cap or accept extra keys. +local function decode_cursor(token, direction, validate_value) + if token == nil then return nil end + if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then + invalid("cursor is malformed") + end + local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) + local ok, value = pcall(json.decode, decoded) + if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction + or type(value.t) ~= "string" or type(value.u) ~= "string" then + invalid("cursor is malformed or belongs to another sortDirection") + end + for key in pairs(value) do + if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end + end + if not validate_value(value) then invalid("cursor is malformed") end + return value +end + +-- Adds `column IN ($n, ...)` to where, binding items; an empty list matches nothing. +local function add_in(where, binds, column, items) + if #items == 0 then + where[#where + 1] = "FALSE" + return + end + local marks = {} + for _, item in ipairs(items) do + binds[#binds + 1] = item + marks[#marks + 1] = "$" .. #binds + end + where[#where + 1] = column .. " IN (" .. table.concat(marks, ", ") .. ")" +end + +local CREATED_AT_SORT_PATTERN = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" + +-- Sort key for a happyview_records row: the record's own createdAt when it is a +-- valid timestamp, otherwise COALESCE(indexed_at, created_at). `alias` is the +-- table alias; nil selects unqualified columns. +local function created_at_sort(alias) + local prefix = alias and (alias .. ".") or "" + local record, indexed_at, created_at = prefix .. "record", prefix .. "indexed_at", prefix .. "created_at" + local created = record .. "::jsonb->>'createdAt'" + return "CASE WHEN jsonb_typeof(" .. record .. "::jsonb->'createdAt') = 'string' AND " .. created .. + " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. + ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. indexed_at .. + "::timestamptz, " .. created_at .. "::timestamptz) END" +end + local RIGHTS = "org.hypercerts.claim.rights" local function rights_list_run_query(sql, values) @@ -190,51 +242,16 @@ local function rights_list_array(value) end local function rights_list_cursor_decode(token, direction) - if token == nil then return nil end - if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then - invalid("cursor is malformed") - end - local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) - local ok, value = pcall(json.decode, decoded) - if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction - or type(value.t) ~= "string" or type(value.u) ~= "string" then - invalid("cursor is malformed or belongs to another sortDirection") - end - for key in pairs(value) do - if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end - end - local valid, collection = rights_valid_record_uri(value.u) - local year = tonumber(value.t:sub(1, 4)) - if not valid_datetime(value.t) or not year or year < 1 or not valid or collection ~= RIGHTS then - invalid("cursor is malformed") - end - return value -end - -local function rights_sort_expression() - local created = "rights.record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(rights.record::jsonb->'createdAt') = 'string' AND " .. created .. - " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. - ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE " .. - "COALESCE(rights.indexed_at::timestamptz, rights.created_at::timestamptz) END" + return decode_cursor(token, direction, function(value) + local valid, collection = rights_valid_record_uri(value.u) + return valid_datetime(value.t) and valid and collection == RIGHTS + end) end local function rights_list_query(authors, limit, cursor, direction) local where, values = { "rights.collection = $1" }, { RIGHTS } - if authors then - if #authors == 0 then - where[#where + 1] = "FALSE" - else - local marks = {} - for _, did in ipairs(authors) do - values[#values + 1] = did - marks[#marks + 1] = "$" .. #values - end - where[#where + 1] = "rights.did IN (" .. table.concat(marks, ", ") .. ")" - end - end + if authors then add_in(where, values, "rights.did", authors) end if cursor then values[#values + 1] = cursor.t @@ -250,7 +267,7 @@ local function rights_list_query(authors, limit, cursor, direction) local sql = "SELECT rights.uri, rights.did, rights.cid, rights.indexed_at::text AS indexed_at, " .. "rights.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', " .. "'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp " .. - "FROM happyview_records AS rights CROSS JOIN LATERAL (SELECT " .. rights_sort_expression() .. " AS sort_at) AS sorted " .. + "FROM happyview_records AS rights CROSS JOIN LATERAL (SELECT " .. created_at_sort("rights") .. " AS sort_at) AS sorted " .. "WHERE " .. table.concat(where, " AND ") .. " ORDER BY sorted.sort_at " .. ordering .. ", rights.uri " .. ordering .. " LIMIT $" .. #values local rows = rights_list_run_query(sql, values) diff --git a/happyview-modules/lua/endpoints/listVocabTags.lua b/happyview-modules/lua/endpoints/listVocabTags.lua index f977072e..089f8f3a 100644 --- a/happyview-modules/lua/endpoints/listVocabTags.lua +++ b/happyview-modules/lua/endpoints/listVocabTags.lua @@ -45,6 +45,7 @@ local function valid_datetime(value) "^(%d%d%d%d)%-(%d%d)%-(%d%d)T(%d%d):(%d%d):(%d%d)(.*)$") if not year then return false end year, month, day = tonumber(year), tonumber(month), tonumber(day) + if year < 1 then return false end hour, minute, second = tonumber(hour), tonumber(minute), tonumber(second) if month < 1 or month > 12 or hour > 23 or minute > 59 or second > 59 then return false end local leap = year % 4 == 0 and (year % 100 ~= 0 or year % 400 == 0) @@ -214,7 +215,6 @@ local function decode_cursor(token, direction, authors) end end if not valid_datetime(value.t) then invalid("cursor is malformed") end - if value.t:sub(1, 4) == "0000" then invalid("cursor timestamp year must be greater than 0000") end if not valid_vocab_tag_uri(value.u) then invalid("cursor is malformed") end return value end diff --git a/happyview-modules/lua/endpoints/listWorkscopeTags.lua b/happyview-modules/lua/endpoints/listWorkscopeTags.lua index d772fc3c..90a04ba0 100644 --- a/happyview-modules/lua/endpoints/listWorkscopeTags.lua +++ b/happyview-modules/lua/endpoints/listWorkscopeTags.lua @@ -45,6 +45,7 @@ local function valid_datetime(value) "^(%d%d%d%d)%-(%d%d)%-(%d%d)T(%d%d):(%d%d):(%d%d)(.*)$") if not year then return false end year, month, day = tonumber(year), tonumber(month), tonumber(day) + if year < 1 then return false end hour, minute, second = tonumber(hour), tonumber(minute), tonumber(second) if month < 1 or month > 12 or hour > 23 or minute > 59 or second > 59 then return false end local leap = year % 4 == 0 and (year % 100 ~= 0 or year % 400 == 0) @@ -153,6 +154,42 @@ local function workscope_tag_view(row) } end +-- Decodes a hex-encoded {v, d, t, u} list cursor. Rejects malformed tokens, other +-- sort directions and unknown keys; validate_value(value) -> boolean runs the +-- endpoint-specific check on t and u. Not for endpoints that skip the 8192-character +-- cap or accept extra keys. +local function decode_cursor(token, direction, validate_value) + if token == nil then return nil end + if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then + invalid("cursor is malformed") + end + local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) + local ok, value = pcall(json.decode, decoded) + if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction + or type(value.t) ~= "string" or type(value.u) ~= "string" then + invalid("cursor is malformed or belongs to another sortDirection") + end + for key in pairs(value) do + if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end + end + if not validate_value(value) then invalid("cursor is malformed") end + return value +end + +-- Adds `column IN ($n, ...)` to where, binding items; an empty list matches nothing. +local function add_in(where, binds, column, items) + if #items == 0 then + where[#where + 1] = "FALSE" + return + end + local marks = {} + for _, item in ipairs(items) do + binds[#binds + 1] = item + marks[#marks + 1] = "$" .. #binds + end + where[#where + 1] = column .. " IN (" .. table.concat(marks, ", ") .. ")" +end + local function workscope_tag_array(key) local value = params[key] if value == nil then return nil end @@ -192,24 +229,10 @@ local function workscope_tag_array(key) end local function workscope_tag_decode_cursor(token, direction) - if token == nil then return nil end - if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then - invalid("cursor is malformed") - end - local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) - local ok, value = pcall(json.decode, decoded) - if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction - or type(value.t) ~= "string" or type(value.u) ~= "string" then - invalid("cursor is malformed or belongs to another sortDirection") - end - for key in pairs(value) do - if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end - end - local valid, collection = workscope_tag_valid_record_uri(value.u) - if not valid_datetime(value.t) or value.t:sub(1, 4) == "0000" or not valid or collection ~= WORKSCOPE_TAG then - invalid("cursor is malformed") - end - return value + return decode_cursor(token, direction, function(value) + local valid, collection = workscope_tag_valid_record_uri(value.u) + return valid_datetime(value.t) and valid and collection == WORKSCOPE_TAG + end) end local function workscope_tag_list() @@ -220,18 +243,7 @@ local function workscope_tag_list() local cursor = workscope_tag_decode_cursor(scalar(params, "cursor"), direction) local where, values = { "workscope_tag.collection = $1" }, { WORKSCOPE_TAG } - if authors then - if #authors == 0 then - where[#where + 1] = "FALSE" - else - local placeholders = {} - for _, did in ipairs(authors) do - values[#values + 1] = did - placeholders[#placeholders + 1] = "$" .. #values - end - where[#where + 1] = "workscope_tag.did IN (" .. table.concat(placeholders, ", ") .. ")" - end - end + if authors then add_in(where, values, "workscope_tag.did", authors) end if cursor then values[#values + 1] = cursor.t local timestamp = "$" .. #values diff --git a/happyview-modules/lua/endpoints/searchActivities.lua b/happyview-modules/lua/endpoints/searchActivities.lua index 40402505..ea055541 100644 --- a/happyview-modules/lua/endpoints/searchActivities.lua +++ b/happyview-modules/lua/endpoints/searchActivities.lua @@ -242,6 +242,7 @@ local function valid_datetime(value) "^(%d%d%d%d)%-(%d%d)%-(%d%d)T(%d%d):(%d%d):(%d%d)(.*)$") if not year then return false end year, month, day = tonumber(year), tonumber(month), tonumber(day) + if year < 1 then return false end hour, minute, second = tonumber(hour), tonumber(minute), tonumber(second) if month < 1 or month > 12 or hour > 23 or minute > 59 or second > 59 then return false end local leap = year % 4 == 0 and (year % 100 ~= 0 or year % 400 == 0) @@ -267,37 +268,66 @@ local function parse_list_limit(params) return limit end -local CREATED_AT_SORT_COLUMNS = { - profile = { record = "record", indexed_at = "indexed_at", created_at = "created_at" }, - organization = { - record = "organization.record", - indexed_at = "organization.indexed_at", - created_at = "organization.created_at", - }, - activity = { - record = "activity.record", - indexed_at = "activity.indexed_at", - created_at = "activity.created_at", - }, - collection = { - record = "collection.record", - indexed_at = "collection.indexed_at", - created_at = "collection.created_at", - }, -} local CREATED_AT_SORT_PATTERN = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" -local function created_at_sort_expression(source) - local columns = CREATED_AT_SORT_COLUMNS[source] - if not columns then - error("CreatedAtSortExpressionError: source must be 'profile', 'organization', 'activity', or 'collection'", 0) +-- Sort key for a happyview_records row: the record's own createdAt when it is a +-- valid timestamp, otherwise COALESCE(indexed_at, created_at). `alias` is the +-- table alias; nil selects unqualified columns. +local function created_at_sort(alias) + local prefix = alias and (alias .. ".") or "" + local record, indexed_at, created_at = prefix .. "record", prefix .. "indexed_at", prefix .. "created_at" + local created = record .. "::jsonb->>'createdAt'" + return "CASE WHEN jsonb_typeof(" .. record .. "::jsonb->'createdAt') = 'string' AND " .. created .. + " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. + ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. indexed_at .. + "::timestamptz, " .. created_at .. "::timestamptz) END" +end + +local function parse_sort_direction(params) + local direction = scalar(params, "sortDirection") or "desc" + if direction ~= "asc" and direction ~= "desc" then invalid("sortDirection must be 'asc' or 'desc'") end + return direction +end + +local function cursor_encode(value) + local encoded = json.encode(value) + return (encoded:gsub(".", function(char) return string.format("%02x", string.byte(char)) end)) +end + +-- Decodes a hex-encoded {v, d, t, u} list cursor. Rejects malformed tokens, other +-- sort directions and unknown keys; validate_value(value) -> boolean runs the +-- endpoint-specific check on t and u. Not for endpoints that skip the 8192-character +-- cap or accept extra keys. +local function decode_cursor(token, direction, validate_value) + if token == nil then return nil end + if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then + invalid("cursor is malformed") + end + local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) + local ok, value = pcall(json.decode, decoded) + if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction + or type(value.t) ~= "string" or type(value.u) ~= "string" then + invalid("cursor is malformed or belongs to another sortDirection") end + for key in pairs(value) do + if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end + end + if not validate_value(value) then invalid("cursor is malformed") end + return value +end - local created = columns.record .. "::jsonb->>'createdAt'" - return "CASE WHEN jsonb_typeof(" .. columns.record .. "::jsonb->'createdAt') = 'string' AND " .. created .. - " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. - ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. columns.indexed_at .. - "::timestamptz, " .. columns.created_at .. "::timestamptz) END" +-- Adds `column IN ($n, ...)` to where, binding items; an empty list matches nothing. +local function add_in(where, binds, column, items) + if #items == 0 then + where[#where + 1] = "FALSE" + return + end + local marks = {} + for _, item in ipairs(items) do + binds[#binds + 1] = item + marks[#marks + 1] = "$" .. #binds + end + where[#where + 1] = column .. " IN (" .. table.concat(marks, ", ") .. ")" end local function activity_scalar(values, key) @@ -350,30 +380,10 @@ local function activity_array(key, format) end local function decode_activity_cursor(token, direction) - if token == nil then return nil end - if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then - invalid("cursor is malformed") - end - local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) - local ok, value = pcall(json.decode, decoded) - if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction - or type(value.t) ~= "string" or type(value.u) ~= "string" then - invalid("cursor is malformed or belongs to another sortDirection") - end - for key in pairs(value) do - if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end - end - local valid, collection = valid_record_uri(value.u) - if not valid_datetime(value.t) or not valid or collection ~= ACTIVITY then - invalid("cursor is malformed") - end - return value -end - -local function encode_activity_cursor(value) - return (json.encode(value):gsub(".", function(char) - return string.format("%02x", string.byte(char)) - end)) + return decode_cursor(token, direction, function(value) + local valid, collection = valid_record_uri(value.u) + return valid_datetime(value.t) and valid and collection == ACTIVITY + end) end local function bind_values(values, items) @@ -404,13 +414,7 @@ end local function activity_query(authors, has_organization_record, contributors, involved_actors, uris, search, limit, cursor, direction) local where, values = { "activity.collection = $1" }, { ACTIVITY } - if authors then - if #authors == 0 then - where[#where + 1] = "FALSE" - else - where[#where + 1] = "activity.did IN (" .. table.concat(bind_values(values, authors), ", ") .. ")" - end - end + if authors then add_in(where, values, "activity.did", authors) end if has_organization_record ~= nil then local predicate = has_organization_record and "EXISTS" or "NOT EXISTS" where[#where + 1] = predicate .. " (SELECT 1 FROM happyview_records AS organization " .. @@ -430,10 +434,7 @@ local function activity_query(authors, has_organization_record, contributors, in activity_contributor_match(values, involved_actors) .. ")" end end - if uris then - if #uris == 0 then where[#where + 1] = "FALSE" - else where[#where + 1] = "activity.uri IN (" .. table.concat(bind_values(values, uris), ", ") .. ")" end - end + if uris then add_in(where, values, "activity.uri", uris) end if search ~= nil then values[#values + 1] = search local pattern = "$" .. #values @@ -455,7 +456,7 @@ local function activity_query(authors, has_organization_record, contributors, in local sql = "SELECT activity.uri, activity.did, activity.cid, activity.indexed_at::text AS indexed_at, " .. "activity.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', " .. "'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp " .. - "FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT " .. created_at_sort_expression("activity") .. " AS sort_at) AS sorted " .. + "FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT " .. created_at_sort("activity") .. " AS sort_at) AS sorted " .. "WHERE " .. table.concat(where, " AND ") .. " ORDER BY sorted.sort_at " .. ordering .. ", activity.uri " .. ordering .. " LIMIT $" .. #values local rows = query(sql, values) @@ -469,7 +470,7 @@ local function activity_query(authors, has_organization_record, contributors, in local next_cursor if more then local last = rows[#rows] - next_cursor = encode_activity_cursor({ v = 1, d = direction, t = last.sort_timestamp, u = last.uri }) + next_cursor = cursor_encode({ v = 1, d = direction, t = last.sort_timestamp, u = last.uri }) end return views, next_cursor end @@ -509,8 +510,7 @@ local function activity_list_response(search_enabled) search = search:match("^%s*(.-)%s*$") if search == "" then search = nil end end - local direction = scalar(params, "sortDirection") or "desc" - if direction ~= "asc" and direction ~= "desc" then invalid("sortDirection must be 'asc' or 'desc'") end + local direction = parse_sort_direction(params) local limit = parse_list_limit(params) local cursor = decode_activity_cursor(scalar(params, "cursor"), direction) local activities, next_cursor = activity_query( diff --git a/happyview-modules/lua/endpoints/searchBadgeDefinitions.lua b/happyview-modules/lua/endpoints/searchBadgeDefinitions.lua index c30b764f..96d4cca9 100644 --- a/happyview-modules/lua/endpoints/searchBadgeDefinitions.lua +++ b/happyview-modules/lua/endpoints/searchBadgeDefinitions.lua @@ -39,12 +39,20 @@ local function valid_record_uri(value) return true, collection, authority end +local BADGE_DEFINITION_COLLECTION = "app.certified.badge.definition" + +local function valid_badge_definition_uri(value) + local valid, collection = valid_record_uri(value) + return valid and collection == BADGE_DEFINITION_COLLECTION +end + local function valid_datetime(value) if type(value) ~= "string" then return false end local year, month, day, hour, minute, second, suffix = value:match( "^(%d%d%d%d)%-(%d%d)%-(%d%d)T(%d%d):(%d%d):(%d%d)(.*)$") if not year then return false end year, month, day = tonumber(year), tonumber(month), tonumber(day) + if year < 1 then return false end hour, minute, second = tonumber(hour), tonumber(minute), tonumber(second) if month < 1 or month > 12 or hour > 23 or minute > 59 or second > 59 then return false end local leap = year % 4 == 0 and (year % 100 ~= 0 or year % 400 == 0) @@ -81,6 +89,21 @@ local function cursor_encode(value) return (encoded:gsub(".", function(char) return string.format("%02x", string.byte(char)) end)) end +local CREATED_AT_SORT_PATTERN = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" + +-- Sort key for a happyview_records row: the record's own createdAt when it is a +-- valid timestamp, otherwise COALESCE(indexed_at, created_at). `alias` is the +-- table alias; nil selects unqualified columns. +local function created_at_sort(alias) + local prefix = alias and (alias .. ".") or "" + local record, indexed_at, created_at = prefix .. "record", prefix .. "indexed_at", prefix .. "created_at" + local created = record .. "::jsonb->>'createdAt'" + return "CASE WHEN jsonb_typeof(" .. record .. "::jsonb->'createdAt') = 'string' AND " .. created .. + " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. + ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. indexed_at .. + "::timestamptz, " .. created_at .. "::timestamptz) END" +end + local NULL = json.decode("null") local function record_view(row) @@ -125,11 +148,6 @@ end local COLLECTION = "app.certified.badge.definition" -local function valid_badge_definition_uri(value) - local valid, collection = valid_record_uri(value) - return valid and collection == COLLECTION -end - local function query(sql, values) if db.backend() ~= "postgres" then error("BadgeDefinitionQueryFailed: badge definition API requires PostgreSQL", 0) @@ -191,14 +209,6 @@ local function decode_badge_definition_cursor(token, direction) return value end -local function badge_definition_sort_expression() - local created = "record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND " .. created .. - " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. - ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END" -end - local function query_badge_definitions(authors, badge_types, search, limit, cursor, direction) local where, values = { "collection = $1" }, { COLLECTION } add_badge_definition_filter(where, values, "did", authors) @@ -219,7 +229,7 @@ local function query_badge_definitions(authors, badge_types, search, limit, curs end values[#values + 1] = limit + 1 local ordering = direction == "asc" and "ASC" or "DESC" - local sort_expression = badge_definition_sort_expression() + local sort_expression = created_at_sort() local sql = "SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, " .. "to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp " .. "FROM happyview_records CROSS JOIN LATERAL (SELECT " .. sort_expression .. " AS sort_at) sorted WHERE " .. diff --git a/happyview-modules/lua/endpoints/searchCollections.lua b/happyview-modules/lua/endpoints/searchCollections.lua index 3d584548..a9a6dafc 100644 --- a/happyview-modules/lua/endpoints/searchCollections.lua +++ b/happyview-modules/lua/endpoints/searchCollections.lua @@ -208,26 +208,6 @@ end local COLLECTION = "org.hypercerts.collection" -local function collection_invalid(message) - error("InvalidRequest: " .. message, 0) -end - -local function collection_keys_only(values, allowed) - for key in pairs(values) do - if not allowed[key] then collection_invalid("unknown query parameter: " .. key) end - end -end - -local function collection_scalar(values, key) - local value = values[key] - if value == nil then return nil end - if key == "hasOrganizationRecord" and type(value) == "boolean" then return tostring(value) end - if type(value) ~= "string" and type(value) ~= "number" then - collection_invalid(key .. " must occur once") - end - return tostring(value) -end - local function collection_valid_record_uri(value) if type(value) ~= "string" or #value > 8192 then return false end return valid_record_uri(value) @@ -258,6 +238,7 @@ local function valid_datetime(value) "^(%d%d%d%d)%-(%d%d)%-(%d%d)T(%d%d):(%d%d):(%d%d)(.*)$") if not year then return false end year, month, day = tonumber(year), tonumber(month), tonumber(day) + if year < 1 then return false end hour, minute, second = tonumber(hour), tonumber(minute), tonumber(second) if month < 1 or month > 12 or hour > 23 or minute > 59 or second > 59 then return false end local leap = year % 4 == 0 and (year % 100 ~= 0 or year % 400 == 0) @@ -275,37 +256,100 @@ local function valid_datetime(value) return true end -local CREATED_AT_SORT_COLUMNS = { - profile = { record = "record", indexed_at = "indexed_at", created_at = "created_at" }, - organization = { - record = "organization.record", - indexed_at = "organization.indexed_at", - created_at = "organization.created_at", - }, - activity = { - record = "activity.record", - indexed_at = "activity.indexed_at", - created_at = "activity.created_at", - }, - collection = { - record = "collection.record", - indexed_at = "collection.indexed_at", - created_at = "collection.created_at", - }, -} local CREATED_AT_SORT_PATTERN = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" -local function created_at_sort_expression(source) - local columns = CREATED_AT_SORT_COLUMNS[source] - if not columns then - error("CreatedAtSortExpressionError: source must be 'profile', 'organization', 'activity', or 'collection'", 0) +-- Sort key for a happyview_records row: the record's own createdAt when it is a +-- valid timestamp, otherwise COALESCE(indexed_at, created_at). `alias` is the +-- table alias; nil selects unqualified columns. +local function created_at_sort(alias) + local prefix = alias and (alias .. ".") or "" + local record, indexed_at, created_at = prefix .. "record", prefix .. "indexed_at", prefix .. "created_at" + local created = record .. "::jsonb->>'createdAt'" + return "CASE WHEN jsonb_typeof(" .. record .. "::jsonb->'createdAt') = 'string' AND " .. created .. + " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. + ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. indexed_at .. + "::timestamptz, " .. created_at .. "::timestamptz) END" +end + +local function invalid(message) + error("InvalidRequest: " .. message, 0) +end + +local function keys_only(values, allowed, unknown_message_prefix) + for key in pairs(values) do + if not allowed[key] then + invalid(unknown_message_prefix and (unknown_message_prefix .. key) or "unknown query parameter") + end end +end - local created = columns.record .. "::jsonb->>'createdAt'" - return "CASE WHEN jsonb_typeof(" .. columns.record .. "::jsonb->'createdAt') = 'string' AND " .. created .. - " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. - ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. columns.indexed_at .. - "::timestamptz, " .. columns.created_at .. "::timestamptz) END" +local function scalar(params, key) + local value = params[key] + if value == nil then return nil end + if type(value) ~= "string" and type(value) ~= "number" then + invalid(key .. " must occur once") + end + return tostring(value) +end + +local function parse_list_limit(params) + local limit_value = scalar(params, "limit") + if limit_value and not limit_value:match("^%d+$") then invalid("limit must be an integer from 1 through 100") end + local limit = limit_value and tonumber(limit_value) or 25 + if not limit or limit % 1 ~= 0 or limit < 1 or limit > 100 then invalid("limit must be an integer from 1 through 100") end + return limit +end + +local function parse_sort_direction(params) + local direction = scalar(params, "sortDirection") or "desc" + if direction ~= "asc" and direction ~= "desc" then invalid("sortDirection must be 'asc' or 'desc'") end + return direction +end + +local function cursor_encode(value) + local encoded = json.encode(value) + return (encoded:gsub(".", function(char) return string.format("%02x", string.byte(char)) end)) +end + +-- Decodes a hex-encoded {v, d, t, u} list cursor. Rejects malformed tokens, other +-- sort directions and unknown keys; validate_value(value) -> boolean runs the +-- endpoint-specific check on t and u. Not for endpoints that skip the 8192-character +-- cap or accept extra keys. +local function decode_cursor(token, direction, validate_value) + if token == nil then return nil end + if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then + invalid("cursor is malformed") + end + local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) + local ok, value = pcall(json.decode, decoded) + if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction + or type(value.t) ~= "string" or type(value.u) ~= "string" then + invalid("cursor is malformed or belongs to another sortDirection") + end + for key in pairs(value) do + if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end + end + if not validate_value(value) then invalid("cursor is malformed") end + return value +end + +-- Adds `column IN ($n, ...)` to where, binding items; an empty list matches nothing. +local function add_in(where, binds, column, items) + if #items == 0 then + where[#where + 1] = "FALSE" + return + end + local marks = {} + for _, item in ipairs(items) do + binds[#binds + 1] = item + marks[#marks + 1] = "$" .. #binds + end + where[#where + 1] = column .. " IN (" .. table.concat(marks, ", ") .. ")" +end + +local function collection_scalar(values, key) + if key == "hasOrganizationRecord" and type(values[key]) == "boolean" then return tostring(values[key]) end + return scalar(values, key) end local function collection_array(key, kind) @@ -319,40 +363,40 @@ local function collection_array(key, kind) local count = 0 for index in pairs(value) do if type(index) ~= "number" or index < 1 or index % 1 ~= 0 then - collection_invalid(key .. " must use repeated query values") + invalid(key .. " must use repeated query values") end count = count + 1 end - if count ~= #value then collection_invalid(key .. " must use repeated query values") end + if count ~= #value then invalid(key .. " must use repeated query values") end for index = 1, count do - if type(value[index]) ~= "string" then collection_invalid(key .. " entries must be strings") end + if type(value[index]) ~= "string" then invalid(key .. " entries must be strings") end supplied[#supplied + 1] = value[index] end else - collection_invalid(key .. " must be a string or repeated string parameter") + invalid(key .. " must be a string or repeated string parameter") end - if #supplied > 100 then collection_invalid(key .. " accepts at most 100 values") end + if #supplied > 100 then invalid(key .. " accepts at most 100 values") end local unique, seen = {}, {} for _, item in ipairs(supplied) do if kind == "did" and not valid_did(item) then - collection_invalid("each authors value must be a valid DID; resolve handles to DIDs first") + invalid("each authors value must be a valid DID; resolve handles to DIDs first") elseif kind == "collectionUri" then local valid, collection = collection_valid_record_uri(item) if not valid or collection ~= COLLECTION then - collection_invalid("each uris value must be a full org.hypercerts.collection AT-URI with a DID authority") + invalid("each uris value must be a full org.hypercerts.collection AT-URI with a DID authority") end elseif kind == "recordUri" then if not collection_valid_record_uri(item) then - collection_invalid("each " .. key .. " value must be a full AT-URI with a DID authority") + invalid("each " .. key .. " value must be a full AT-URI with a DID authority") end elseif kind == "tagUri" then local valid, collection = collection_valid_record_uri(item) if not valid or collection ~= "org.hypercerts.vocab.tag" then - collection_invalid("each tagUris value must be a full org.hypercerts.vocab.tag AT-URI with a DID authority") + invalid("each tagUris value must be a full org.hypercerts.vocab.tag AT-URI with a DID authority") end elseif kind == "type" and #item > 64 then - collection_invalid("types entries must be at most 64 UTF-8 bytes") + invalid("types entries must be at most 64 UTF-8 bytes") end if not seen[item] then seen[item] = true @@ -362,44 +406,11 @@ local function collection_array(key, kind) return unique end -local function collection_list_limit() - local value = collection_scalar(params, "limit") - if value == nil then return 25 end - if not value:match("^%d+$") then collection_invalid("limit must be an integer from 1 through 100") end - local limit = tonumber(value) - if not limit or limit < 1 or limit > 100 then - collection_invalid("limit must be an integer from 1 through 100") - end - return limit -end - local function collection_list_cursor_decode(token, direction) - if token == nil then return nil end - if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then - collection_invalid("cursor is malformed") - end - local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) - local ok, value = pcall(json.decode, decoded) - if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction - or type(value.t) ~= "string" or type(value.u) ~= "string" then - collection_invalid("cursor is malformed or belongs to another sortDirection") - end - for key in pairs(value) do - if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then - collection_invalid("cursor is malformed") - end - end - local valid, collection = collection_valid_record_uri(value.u) - if not valid_datetime(value.t) or not valid or collection ~= COLLECTION then - collection_invalid("cursor is malformed") - end - return value -end - -local function collection_cursor_encode(value) - return (json.encode(value):gsub(".", function(char) - return string.format("%02x", string.byte(char)) - end)) + return decode_cursor(token, direction, function(value) + local valid, collection = collection_valid_record_uri(value.u) + return valid_datetime(value.t) and valid and collection == COLLECTION + end) end local function collection_bind_values(values, items) @@ -414,34 +425,15 @@ end local function collection_list_filters(filters, search) local where, values = { "collection.collection = $1" }, { COLLECTION } - if filters.authors then - if #filters.authors == 0 then - where[#where + 1] = "FALSE" - else - where[#where + 1] = "collection.did IN (" .. table.concat(collection_bind_values(values, filters.authors), ", ") .. ")" - end - end + if filters.authors then add_in(where, values, "collection.did", filters.authors) end if filters.hasOrganizationRecord ~= nil then local predicate = filters.hasOrganizationRecord and "EXISTS" or "NOT EXISTS" where[#where + 1] = predicate .. " (SELECT 1 FROM happyview_records AS organization " .. "WHERE organization.collection = 'app.certified.actor.organization' AND organization.rkey = 'self' " .. "AND organization.did = collection.did)" end - if filters.types then - if #filters.types == 0 then - where[#where + 1] = "FALSE" - else - where[#where + 1] = "collection.record::jsonb->>'type' IN (" .. - table.concat(collection_bind_values(values, filters.types), ", ") .. ")" - end - end - if filters.uris then - if #filters.uris == 0 then - where[#where + 1] = "FALSE" - else - where[#where + 1] = "collection.uri IN (" .. table.concat(collection_bind_values(values, filters.uris), ", ") .. ")" - end - end + if filters.types then add_in(where, values, "collection.record::jsonb->>'type'", filters.types) end + if filters.uris then add_in(where, values, "collection.uri", filters.uris) end if filters.itemUris then if #filters.itemUris == 0 then where[#where + 1] = "FALSE" @@ -487,7 +479,7 @@ end local function collection_list_sql(where, values, limit, direction) values[#values + 1] = limit + 1 local ordering = direction == "asc" and "ASC" or "DESC" - local sort_key = created_at_sort_expression("collection") + local sort_key = created_at_sort("collection") return "SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, " .. "collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', " .. "'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp " .. @@ -508,7 +500,7 @@ local function collection_list_page(rows, limit, direction) local next_cursor if more then local last = rows[#rows] - next_cursor = collection_cursor_encode({ v = 1, d = direction, t = last.sort_timestamp, u = last.uri }) + next_cursor = cursor_encode({ v = 1, d = direction, t = last.sort_timestamp, u = last.uri }) end return views, next_cursor end @@ -533,7 +525,7 @@ local function collection_list_response(search_enabled) cursor = true, } if search_enabled then allowed.search = true end - collection_keys_only(params, allowed) + keys_only(params, allowed, "unknown query parameter: ") local authors = collection_array("authors", "did") local has_organization_record = collection_scalar(params, "hasOrganizationRecord") @@ -543,7 +535,7 @@ local function collection_list_response(search_enabled) elseif has_organization_record == "false" then has_organization_record = false else - collection_invalid("hasOrganizationRecord must be true or false") + invalid("hasOrganizationRecord must be true or false") end end local types = collection_array("types", "type") @@ -552,17 +544,14 @@ local function collection_list_response(search_enabled) local tag_uris = collection_array("tagUris", "tagUri") local search if search_enabled then - search = collection_scalar(params, "search") - if search == nil then collection_invalid("search is required") end + search = scalar(params, "search") + if search == nil then invalid("search is required") end search = search:match("^%s*(.-)%s*$") if search == "" then search = nil end end - local direction = collection_scalar(params, "sortDirection") or "desc" - if direction ~= "asc" and direction ~= "desc" then - collection_invalid("sortDirection must be 'asc' or 'desc'") - end - local limit = collection_list_limit() - local cursor = collection_list_cursor_decode(collection_scalar(params, "cursor"), direction) + local direction = parse_sort_direction(params) + local limit = parse_list_limit(params) + local cursor = collection_list_cursor_decode(scalar(params, "cursor"), direction) local collections, next_cursor = collection_list_query({ authors = authors, hasOrganizationRecord = has_organization_record, diff --git a/happyview-modules/lua/endpoints/searchOrganizations.lua b/happyview-modules/lua/endpoints/searchOrganizations.lua index ba5ef70f..e0cef2e4 100644 --- a/happyview-modules/lua/endpoints/searchOrganizations.lua +++ b/happyview-modules/lua/endpoints/searchOrganizations.lua @@ -45,6 +45,7 @@ local function valid_datetime(value) "^(%d%d%d%d)%-(%d%d)%-(%d%d)T(%d%d):(%d%d):(%d%d)(.*)$") if not year then return false end year, month, day = tonumber(year), tonumber(month), tonumber(day) + if year < 1 then return false end hour, minute, second = tonumber(hour), tonumber(minute), tonumber(second) if month < 1 or month > 12 or hour > 23 or minute > 59 or second > 59 then return false end local leap = year % 4 == 0 and (year % 100 ~= 0 or year % 400 == 0) @@ -184,37 +185,33 @@ local function hydrate_organization_actors(actors) hydrate_locations(actors) end -local CREATED_AT_SORT_COLUMNS = { - profile = { record = "record", indexed_at = "indexed_at", created_at = "created_at" }, - organization = { - record = "organization.record", - indexed_at = "organization.indexed_at", - created_at = "organization.created_at", - }, - activity = { - record = "activity.record", - indexed_at = "activity.indexed_at", - created_at = "activity.created_at", - }, - collection = { - record = "collection.record", - indexed_at = "collection.indexed_at", - created_at = "collection.created_at", - }, -} local CREATED_AT_SORT_PATTERN = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" -local function created_at_sort_expression(source) - local columns = CREATED_AT_SORT_COLUMNS[source] - if not columns then - error("CreatedAtSortExpressionError: source must be 'profile', 'organization', 'activity', or 'collection'", 0) - end - - local created = columns.record .. "::jsonb->>'createdAt'" - return "CASE WHEN jsonb_typeof(" .. columns.record .. "::jsonb->'createdAt') = 'string' AND " .. created .. +-- Sort key for a happyview_records row: the record's own createdAt when it is a +-- valid timestamp, otherwise COALESCE(indexed_at, created_at). `alias` is the +-- table alias; nil selects unqualified columns. +local function created_at_sort(alias) + local prefix = alias and (alias .. ".") or "" + local record, indexed_at, created_at = prefix .. "record", prefix .. "indexed_at", prefix .. "created_at" + local created = record .. "::jsonb->>'createdAt'" + return "CASE WHEN jsonb_typeof(" .. record .. "::jsonb->'createdAt') = 'string' AND " .. created .. " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. - ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. columns.indexed_at .. - "::timestamptz, " .. columns.created_at .. "::timestamptz) END" + ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. indexed_at .. + "::timestamptz, " .. created_at .. "::timestamptz) END" +end + +-- Adds `column IN ($n, ...)` to where, binding items; an empty list matches nothing. +local function add_in(where, binds, column, items) + if #items == 0 then + where[#where + 1] = "FALSE" + return + end + local marks = {} + for _, item in ipairs(items) do + binds[#binds + 1] = item + marks[#marks + 1] = "$" .. #binds + end + where[#where + 1] = column .. " IN (" .. table.concat(marks, ", ") .. ")" end local function valid_organization_uri(value) @@ -260,17 +257,6 @@ local function array(params, key) return unique end -local function add_actors(where, values, actors) - if not actors then return end - if #actors == 0 then where[#where + 1] = "FALSE"; return end - local placeholders = {} - for _, did in ipairs(actors) do - values[#values + 1] = did - placeholders[#placeholders + 1] = "$" .. #values - end - where[#where + 1] = "organization.did IN (" .. table.concat(placeholders, ", ") .. ")" -end - local function add_organization_types(where, values, organization_types) if not organization_types then return end if #organization_types == 0 then where[#where + 1] = "FALSE"; return end @@ -303,7 +289,7 @@ end local function query_organizations(actors, organization_types, visibility, search, limit, cursor, direction) local where, values = { "organization.collection = $1", "organization.rkey = 'self'" }, { ORGANIZATION } - add_actors(where, values, actors) + if actors then add_in(where, values, "organization.did", actors) end add_organization_types(where, values, organization_types) if visibility ~= nil then values[#values + 1] = visibility @@ -332,7 +318,7 @@ local function query_organizations(actors, organization_types, visibility, searc values[#values + 1] = limit + 1 local ordering = direction == "asc" and "ASC" or "DESC" - local sort_key = created_at_sort_expression("organization") + local sort_key = created_at_sort("organization") local sql = "SELECT organization.uri, organization.did, organization.cid, organization.indexed_at::text AS indexed_at, " .. "organization.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp " .. "FROM happyview_records AS organization CROSS JOIN LATERAL (SELECT " .. sort_key .. " AS sort_at) AS sorted WHERE " .. diff --git a/happyview-modules/lua/endpoints/searchProfiles.lua b/happyview-modules/lua/endpoints/searchProfiles.lua index f1c8dd3d..bdf6c7d6 100644 --- a/happyview-modules/lua/endpoints/searchProfiles.lua +++ b/happyview-modules/lua/endpoints/searchProfiles.lua @@ -33,6 +33,7 @@ local function valid_datetime(value) "^(%d%d%d%d)%-(%d%d)%-(%d%d)T(%d%d):(%d%d):(%d%d)(.*)$") if not year then return false end year, month, day = tonumber(year), tonumber(month), tonumber(day) + if year < 1 then return false end hour, minute, second = tonumber(hour), tonumber(minute), tonumber(second) if month < 1 or month > 12 or hour > 23 or minute > 59 or second > 59 then return false end local leap = year % 4 == 0 and (year % 100 ~= 0 or year % 400 == 0) @@ -90,37 +91,33 @@ local function query(sql, values) return result end -local CREATED_AT_SORT_COLUMNS = { - profile = { record = "record", indexed_at = "indexed_at", created_at = "created_at" }, - organization = { - record = "organization.record", - indexed_at = "organization.indexed_at", - created_at = "organization.created_at", - }, - activity = { - record = "activity.record", - indexed_at = "activity.indexed_at", - created_at = "activity.created_at", - }, - collection = { - record = "collection.record", - indexed_at = "collection.indexed_at", - created_at = "collection.created_at", - }, -} local CREATED_AT_SORT_PATTERN = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" -local function created_at_sort_expression(source) - local columns = CREATED_AT_SORT_COLUMNS[source] - if not columns then - error("CreatedAtSortExpressionError: source must be 'profile', 'organization', 'activity', or 'collection'", 0) - end - - local created = columns.record .. "::jsonb->>'createdAt'" - return "CASE WHEN jsonb_typeof(" .. columns.record .. "::jsonb->'createdAt') = 'string' AND " .. created .. +-- Sort key for a happyview_records row: the record's own createdAt when it is a +-- valid timestamp, otherwise COALESCE(indexed_at, created_at). `alias` is the +-- table alias; nil selects unqualified columns. +local function created_at_sort(alias) + local prefix = alias and (alias .. ".") or "" + local record, indexed_at, created_at = prefix .. "record", prefix .. "indexed_at", prefix .. "created_at" + local created = record .. "::jsonb->>'createdAt'" + return "CASE WHEN jsonb_typeof(" .. record .. "::jsonb->'createdAt') = 'string' AND " .. created .. " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. - ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. columns.indexed_at .. - "::timestamptz, " .. columns.created_at .. "::timestamptz) END" + ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. indexed_at .. + "::timestamptz, " .. created_at .. "::timestamptz) END" +end + +-- Adds `column IN ($n, ...)` to where, binding items; an empty list matches nothing. +local function add_in(where, binds, column, items) + if #items == 0 then + where[#where + 1] = "FALSE" + return + end + local marks = {} + for _, item in ipairs(items) do + binds[#binds + 1] = item + marks[#marks + 1] = "$" .. #binds + end + where[#where + 1] = column .. " IN (" .. table.concat(marks, ", ") .. ")" end local function valid_profile_uri(value) @@ -151,17 +148,6 @@ local function array(params, key) return unique end -local function add_actors(where, values, actors) - if not actors then return end - if #actors == 0 then where[#where + 1] = "FALSE"; return end - local placeholders = {} - for _, did in ipairs(actors) do - values[#values + 1] = did - placeholders[#placeholders + 1] = "$" .. #values - end - where[#where + 1] = "did IN (" .. table.concat(placeholders, ", ") .. ")" -end - local function cursor_decode(token, direction) if not token then return nil end if #token % 2 ~= 0 or token:find("[^0-9a-f]") then invalid("cursor is malformed") end @@ -180,7 +166,7 @@ end local function query_profiles(actors, search, limit, cursor, direction) local where, values = { "collection = $1", "rkey = 'self'" }, { PROFILE } - add_actors(where, values, actors) + if actors then add_in(where, values, "did", actors) end if search then values[#values + 1] = search local term = "$" .. #values @@ -198,7 +184,7 @@ local function query_profiles(actors, search, limit, cursor, direction) values[#values + 1] = limit + 1 local ordering = direction == "asc" and "ASC" or "DESC" - local sort_key = created_at_sort_expression("profile") + local sort_key = created_at_sort() local sql = "SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, " .. "to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp " .. "FROM happyview_records CROSS JOIN LATERAL (SELECT " .. sort_key .. " AS sort_at) sorted WHERE " diff --git a/happyview-modules/lua/shared/acknowledgementList.lua b/happyview-modules/lua/shared/acknowledgementList.lua index ef3773e5..fe8ae8db 100644 --- a/happyview-modules/lua/shared/acknowledgementList.lua +++ b/happyview-modules/lua/shared/acknowledgementList.lua @@ -1,17 +1,9 @@ -local generic_valid_datetime = valid_datetime - -local function acknowledgement_valid_datetime(value) - if type(value) ~= "string" then return false end - if value:match("^(%d%d%d%d)") == "0000" then return false end - return generic_valid_datetime(value) -end - local function valid_cursor_timestamp(value) if type(value) ~= "string" or #value ~= 27 or not value:match("^%d%d%d%d%-%d%d%-%d%dT%d%d:%d%d:%d%d%.%d%d%d%d%d%dZ$") then return false end - return acknowledgement_valid_datetime(value) + return valid_datetime(value) end local function acknowledgement_array(key, format) @@ -56,39 +48,11 @@ local function acknowledgement_array(key, format) return unique end -local function bind_acknowledgement_values(values, items) - local placeholders = {} - for _, item in ipairs(items) do - values[#values + 1] = item - placeholders[#placeholders + 1] = "$" .. #values - end - return placeholders -end - -local function cursor_encode(value) - local encoded = json.encode(value) - return (encoded:gsub(".", function(char) return string.format("%02x", string.byte(char)) end)) -end - local function decode_acknowledgement_cursor(token, direction) - if token == nil then return nil end - if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then - invalid("cursor is malformed") - end - local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) - local ok, value = pcall(json.decode, decoded) - if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction - or type(value.t) ~= "string" or type(value.u) ~= "string" then - invalid("cursor is malformed or belongs to another sortDirection") - end - for key in pairs(value) do - if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end - end - local valid, collection = valid_record_uri(value.u) - if not valid_cursor_timestamp(value.t) or not valid or collection ~= ACKNOWLEDGEMENT then - invalid("cursor is malformed") - end - return value + return decode_cursor(token, direction, function(value) + local valid, collection = valid_record_uri(value.u) + return valid_cursor_timestamp(value.t) and valid and collection == ACKNOWLEDGEMENT + end) end local function acknowledgement_sort_expression() @@ -103,22 +67,8 @@ end local function acknowledgement_list_query(authors, subjects, limit, cursor, direction) local where, values = { "acknowledgement.collection = $1" }, { ACKNOWLEDGEMENT } - if authors then - if #authors == 0 then - where[#where + 1] = "FALSE" - else - where[#where + 1] = "acknowledgement.did IN (" .. - table.concat(bind_acknowledgement_values(values, authors), ", ") .. ")" - end - end - if subjects then - if #subjects == 0 then - where[#where + 1] = "FALSE" - else - where[#where + 1] = "acknowledgement.record::jsonb->'subject'->>'uri' IN (" .. - table.concat(bind_acknowledgement_values(values, subjects), ", ") .. ")" - end - end + if authors then add_in(where, values, "acknowledgement.did", authors) end + if subjects then add_in(where, values, "acknowledgement.record::jsonb->'subject'->>'uri'", subjects) end local page_values, page_where = {}, {} for _, value in ipairs(values) do page_values[#page_values + 1] = value end @@ -154,8 +104,7 @@ local function list_acknowledgements() }) local authors = acknowledgement_array("authors", "did") local subjects = acknowledgement_array("subjects", "at-uri") - local direction = scalar(params, "sortDirection") or "desc" - if direction ~= "asc" and direction ~= "desc" then invalid("sortDirection must be 'asc' or 'desc'") end + local direction = parse_sort_direction(params) local limit = parse_list_limit(params) local cursor = decode_acknowledgement_cursor(scalar(params, "cursor"), direction) local rows = acknowledgement_list_query(authors, subjects, limit, cursor, direction) diff --git a/happyview-modules/lua/shared/activityList.lua b/happyview-modules/lua/shared/activityList.lua index 68144770..9bcef39a 100644 --- a/happyview-modules/lua/shared/activityList.lua +++ b/happyview-modules/lua/shared/activityList.lua @@ -48,30 +48,10 @@ local function activity_array(key, format) end local function decode_activity_cursor(token, direction) - if token == nil then return nil end - if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then - invalid("cursor is malformed") - end - local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) - local ok, value = pcall(json.decode, decoded) - if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction - or type(value.t) ~= "string" or type(value.u) ~= "string" then - invalid("cursor is malformed or belongs to another sortDirection") - end - for key in pairs(value) do - if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end - end - local valid, collection = valid_record_uri(value.u) - if not valid_datetime(value.t) or not valid or collection ~= ACTIVITY then - invalid("cursor is malformed") - end - return value -end - -local function encode_activity_cursor(value) - return (json.encode(value):gsub(".", function(char) - return string.format("%02x", string.byte(char)) - end)) + return decode_cursor(token, direction, function(value) + local valid, collection = valid_record_uri(value.u) + return valid_datetime(value.t) and valid and collection == ACTIVITY + end) end local function bind_values(values, items) @@ -102,13 +82,7 @@ end local function activity_query(authors, has_organization_record, contributors, involved_actors, uris, search, limit, cursor, direction) local where, values = { "activity.collection = $1" }, { ACTIVITY } - if authors then - if #authors == 0 then - where[#where + 1] = "FALSE" - else - where[#where + 1] = "activity.did IN (" .. table.concat(bind_values(values, authors), ", ") .. ")" - end - end + if authors then add_in(where, values, "activity.did", authors) end if has_organization_record ~= nil then local predicate = has_organization_record and "EXISTS" or "NOT EXISTS" where[#where + 1] = predicate .. " (SELECT 1 FROM happyview_records AS organization " .. @@ -128,10 +102,7 @@ local function activity_query(authors, has_organization_record, contributors, in activity_contributor_match(values, involved_actors) .. ")" end end - if uris then - if #uris == 0 then where[#where + 1] = "FALSE" - else where[#where + 1] = "activity.uri IN (" .. table.concat(bind_values(values, uris), ", ") .. ")" end - end + if uris then add_in(where, values, "activity.uri", uris) end if search ~= nil then values[#values + 1] = search local pattern = "$" .. #values @@ -153,7 +124,7 @@ local function activity_query(authors, has_organization_record, contributors, in local sql = "SELECT activity.uri, activity.did, activity.cid, activity.indexed_at::text AS indexed_at, " .. "activity.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', " .. "'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp " .. - "FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT " .. created_at_sort_expression("activity") .. " AS sort_at) AS sorted " .. + "FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT " .. created_at_sort("activity") .. " AS sort_at) AS sorted " .. "WHERE " .. table.concat(where, " AND ") .. " ORDER BY sorted.sort_at " .. ordering .. ", activity.uri " .. ordering .. " LIMIT $" .. #values local rows = query(sql, values) @@ -167,7 +138,7 @@ local function activity_query(authors, has_organization_record, contributors, in local next_cursor if more then local last = rows[#rows] - next_cursor = encode_activity_cursor({ v = 1, d = direction, t = last.sort_timestamp, u = last.uri }) + next_cursor = cursor_encode({ v = 1, d = direction, t = last.sort_timestamp, u = last.uri }) end return views, next_cursor end @@ -207,8 +178,7 @@ local function activity_list_response(search_enabled) search = search:match("^%s*(.-)%s*$") if search == "" then search = nil end end - local direction = scalar(params, "sortDirection") or "desc" - if direction ~= "asc" and direction ~= "desc" then invalid("sortDirection must be 'asc' or 'desc'") end + local direction = parse_sort_direction(params) local limit = parse_list_limit(params) local cursor = decode_activity_cursor(scalar(params, "cursor"), direction) local activities, next_cursor = activity_query( diff --git a/happyview-modules/lua/shared/actorFollow.lua b/happyview-modules/lua/shared/actorFollow.lua index 388bbb72..ad552b53 100644 --- a/happyview-modules/lua/shared/actorFollow.lua +++ b/happyview-modules/lua/shared/actorFollow.lua @@ -1,12 +1,5 @@ local FOLLOW = "app.certified.graph.follow" --- Guard the cast inside CASE; a WHERE filter cannot protect it from planner reordering. -local function follow_sort_key() - local created = "record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND " .. created .. " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END" -end - local function query(sql, values) if db.backend() ~= "postgres" then error("ActorFollowQueryFailed: actor-follow queries require PostgreSQL", 0) end local ok, result = pcall(db.raw, sql, values) diff --git a/happyview-modules/lua/shared/actorFollowList.lua b/happyview-modules/lua/shared/actorFollowList.lua index 76f1b3f5..329fe35e 100644 --- a/happyview-modules/lua/shared/actorFollowList.lua +++ b/happyview-modules/lua/shared/actorFollowList.lua @@ -41,7 +41,7 @@ local function build_actor_follow_query(mode, actor, limit, cursor, direction) values[#values + 1] = limit + 1 local ordering = direction == "asc" and "ASC" or "DESC" local displayed_did = mode == "followers" and "did" or "subject_did" - local sql = "WITH ranked_follows AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, record::jsonb->>'subject' AS subject_did, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, record::jsonb->>'subject' ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT " .. follow_sort_key() .. " AS sort_at) sorted WHERE " .. table.concat(filters, " AND ") .. "), representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at, " .. displayed_did .. " AS actor_did FROM ranked_follows WHERE relationship_rank = 1), " .. + local sql = "WITH ranked_follows AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, record::jsonb->>'subject' AS subject_did, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, record::jsonb->>'subject' ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT " .. created_at_sort() .. " AS sort_at) sorted WHERE " .. table.concat(filters, " AND ") .. "), representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at, " .. displayed_did .. " AS actor_did FROM ranked_follows WHERE relationship_rank = 1), " .. "total AS (SELECT COUNT(*) AS total_count FROM representatives), " .. "page AS (SELECT uri, did, cid, indexed_at, record, sort_at, actor_did FROM representatives" .. cursor_filter .. " ORDER BY sort_at " .. ordering .. ", uri " .. ordering .. " LIMIT $" .. #values .. ") " .. "SELECT page.uri, page.did, page.cid, page.indexed_at, page.record, page.actor_did, total.total_count, to_char(page.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM total LEFT JOIN page ON TRUE ORDER BY page.sort_at " .. ordering .. ", page.uri " .. ordering diff --git a/happyview-modules/lua/shared/actorFollowLookup.lua b/happyview-modules/lua/shared/actorFollowLookup.lua index 832391c8..a32c3077 100644 --- a/happyview-modules/lua/shared/actorFollowLookup.lua +++ b/happyview-modules/lua/shared/actorFollowLookup.lua @@ -1,6 +1,6 @@ local function query_follow(actor, subject) local rows = query( - "SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record FROM happyview_records CROSS JOIN LATERAL (SELECT " .. follow_sort_key() .. " AS sort_at) sorted WHERE collection = $1 AND did = $2 AND record::jsonb->>'subject' = $3 AND " .. account_follow_filter_sql() .. " ORDER BY sorted.sort_at ASC, uri ASC LIMIT 1", + "SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record FROM happyview_records CROSS JOIN LATERAL (SELECT " .. created_at_sort() .. " AS sort_at) sorted WHERE collection = $1 AND did = $2 AND record::jsonb->>'subject' = $3 AND " .. account_follow_filter_sql() .. " ORDER BY sorted.sort_at ASC, uri ASC LIMIT 1", { FOLLOW, actor, subject }) if #rows == 0 then return NULL end return record_view(rows[1]) diff --git a/happyview-modules/lua/shared/attachmentList.lua b/happyview-modules/lua/shared/attachmentList.lua index 5797a309..aaaa6145 100644 --- a/happyview-modules/lua/shared/attachmentList.lua +++ b/happyview-modules/lua/shared/attachmentList.lua @@ -33,20 +33,6 @@ local function attachment_array(params, key, validate, description) return unique end -local function attachment_bind_in(where, values, expression, items) - if not items then return end - if #items == 0 then - where[#where + 1] = "FALSE" - return - end - local placeholders = {} - for _, item in ipairs(items) do - values[#values + 1] = item - placeholders[#placeholders + 1] = "$" .. #values - end - where[#where + 1] = expression .. " IN (" .. table.concat(placeholders, ", ") .. ")" -end - local function attachment_subject_filter(where, values, subjects) if not subjects then return end if #subjects == 0 then @@ -64,39 +50,20 @@ local function attachment_subject_filter(where, values, subjects) "WHERE subject.value->>'uri' IN (" .. table.concat(placeholders, ", ") .. "))" end -local function attachment_sort_expression() - local created = "attachment.record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(attachment.record::jsonb->'createdAt') = 'string' AND " .. created .. - " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. - ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE " .. - "COALESCE(attachment.indexed_at::timestamptz, attachment.created_at::timestamptz) END" -end - local function attachment_cursor_decode(token, direction) - if token == nil then return nil end - if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then - invalid("cursor is malformed") - end - local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) - local ok, value = pcall(json.decode, decoded) - if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction - or type(value.t) ~= "string" or type(value.u) ~= "string" then - invalid("cursor is malformed or belongs to another sortDirection") - end - for key in pairs(value) do - if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end - end - if not valid_datetime(value.t) or not valid_attachment_uri(value.u) then invalid("cursor is malformed") end - return value + return decode_cursor(token, direction, function(value) + return valid_datetime(value.t) and valid_attachment_uri(value.u) + end) end local function query_attachments(filters, limit, cursor, direction) local where, values = { "attachment.collection = $1" }, { ATTACHMENT_COLLECTION } - attachment_bind_in(where, values, "attachment.did", filters.authors) - attachment_bind_in(where, values, "attachment.uri", filters.uris) + if filters.authors then add_in(where, values, "attachment.did", filters.authors) end + if filters.uris then add_in(where, values, "attachment.uri", filters.uris) end attachment_subject_filter(where, values, filters.subjects) - attachment_bind_in(where, values, "attachment.record::jsonb->>'contentType'", filters.content_types) + if filters.content_types then + add_in(where, values, "attachment.record::jsonb->>'contentType'", filters.content_types) + end if cursor then values[#values + 1] = cursor.t @@ -110,7 +77,7 @@ local function query_attachments(filters, limit, cursor, direction) values[#values + 1] = limit + 1 local ordering = direction == "asc" and "ASC" or "DESC" - local sort_key = attachment_sort_expression() + local sort_key = created_at_sort("attachment") local sql = "SELECT attachment.uri, attachment.did, attachment.cid, attachment.indexed_at::text AS indexed_at, " .. "attachment.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', " .. "'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp " .. diff --git a/happyview-modules/lua/shared/collection.lua b/happyview-modules/lua/shared/collection.lua index 820ca04d..03280698 100644 --- a/happyview-modules/lua/shared/collection.lua +++ b/happyview-modules/lua/shared/collection.lua @@ -1,25 +1,5 @@ local COLLECTION = "org.hypercerts.collection" -local function collection_invalid(message) - error("InvalidRequest: " .. message, 0) -end - -local function collection_keys_only(values, allowed) - for key in pairs(values) do - if not allowed[key] then collection_invalid("unknown query parameter: " .. key) end - end -end - -local function collection_scalar(values, key) - local value = values[key] - if value == nil then return nil end - if key == "hasOrganizationRecord" and type(value) == "boolean" then return tostring(value) end - if type(value) ~= "string" and type(value) ~= "number" then - collection_invalid(key .. " must occur once") - end - return tostring(value) -end - local function collection_valid_record_uri(value) if type(value) ~= "string" or #value > 8192 then return false end return valid_record_uri(value) diff --git a/happyview-modules/lua/shared/collectionItems.lua b/happyview-modules/lua/shared/collectionItems.lua index 6794b938..6375399e 100644 --- a/happyview-modules/lua/shared/collectionItems.lua +++ b/happyview-modules/lua/shared/collectionItems.lua @@ -11,17 +11,6 @@ local function collection_items_keys_only(values, allowed) keys_only(values, allowed, "unknown query parameter: ") end -local function collection_items_limit() - local value = scalar(params, "limit") - if value == nil then return 25 end - if not value:match("^%d+$") then collection_items_invalid("limit must be an integer from 1 through 100") end - local limit = tonumber(value) - if not limit or limit < 1 or limit > 100 then - collection_items_invalid("limit must be an integer from 1 through 100") - end - return limit -end - local function collection_items_cursor_decode(token, collection_uri) if token == nil then return nil end if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then @@ -165,7 +154,7 @@ local function collection_items_response() if not collection_uri or not valid or collection ~= ITEM_COLLECTION then collection_items_invalid("collection must be a full org.hypercerts.collection AT-URI with a DID authority") end - local limit = collection_items_limit() + local limit = parse_list_limit(params) local cursor = collection_items_cursor_decode(scalar(params, "cursor"), collection_uri) local collection_rows = collection_items_query( diff --git a/happyview-modules/lua/shared/collectionList.lua b/happyview-modules/lua/shared/collectionList.lua index d6295272..0a4f0524 100644 --- a/happyview-modules/lua/shared/collectionList.lua +++ b/happyview-modules/lua/shared/collectionList.lua @@ -1,3 +1,8 @@ +local function collection_scalar(values, key) + if key == "hasOrganizationRecord" and type(values[key]) == "boolean" then return tostring(values[key]) end + return scalar(values, key) +end + local function collection_array(key, kind) local value = params[key] if value == nil then return nil end @@ -9,40 +14,40 @@ local function collection_array(key, kind) local count = 0 for index in pairs(value) do if type(index) ~= "number" or index < 1 or index % 1 ~= 0 then - collection_invalid(key .. " must use repeated query values") + invalid(key .. " must use repeated query values") end count = count + 1 end - if count ~= #value then collection_invalid(key .. " must use repeated query values") end + if count ~= #value then invalid(key .. " must use repeated query values") end for index = 1, count do - if type(value[index]) ~= "string" then collection_invalid(key .. " entries must be strings") end + if type(value[index]) ~= "string" then invalid(key .. " entries must be strings") end supplied[#supplied + 1] = value[index] end else - collection_invalid(key .. " must be a string or repeated string parameter") + invalid(key .. " must be a string or repeated string parameter") end - if #supplied > 100 then collection_invalid(key .. " accepts at most 100 values") end + if #supplied > 100 then invalid(key .. " accepts at most 100 values") end local unique, seen = {}, {} for _, item in ipairs(supplied) do if kind == "did" and not valid_did(item) then - collection_invalid("each authors value must be a valid DID; resolve handles to DIDs first") + invalid("each authors value must be a valid DID; resolve handles to DIDs first") elseif kind == "collectionUri" then local valid, collection = collection_valid_record_uri(item) if not valid or collection ~= COLLECTION then - collection_invalid("each uris value must be a full org.hypercerts.collection AT-URI with a DID authority") + invalid("each uris value must be a full org.hypercerts.collection AT-URI with a DID authority") end elseif kind == "recordUri" then if not collection_valid_record_uri(item) then - collection_invalid("each " .. key .. " value must be a full AT-URI with a DID authority") + invalid("each " .. key .. " value must be a full AT-URI with a DID authority") end elseif kind == "tagUri" then local valid, collection = collection_valid_record_uri(item) if not valid or collection ~= "org.hypercerts.vocab.tag" then - collection_invalid("each tagUris value must be a full org.hypercerts.vocab.tag AT-URI with a DID authority") + invalid("each tagUris value must be a full org.hypercerts.vocab.tag AT-URI with a DID authority") end elseif kind == "type" and #item > 64 then - collection_invalid("types entries must be at most 64 UTF-8 bytes") + invalid("types entries must be at most 64 UTF-8 bytes") end if not seen[item] then seen[item] = true @@ -52,44 +57,11 @@ local function collection_array(key, kind) return unique end -local function collection_list_limit() - local value = collection_scalar(params, "limit") - if value == nil then return 25 end - if not value:match("^%d+$") then collection_invalid("limit must be an integer from 1 through 100") end - local limit = tonumber(value) - if not limit or limit < 1 or limit > 100 then - collection_invalid("limit must be an integer from 1 through 100") - end - return limit -end - local function collection_list_cursor_decode(token, direction) - if token == nil then return nil end - if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then - collection_invalid("cursor is malformed") - end - local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) - local ok, value = pcall(json.decode, decoded) - if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction - or type(value.t) ~= "string" or type(value.u) ~= "string" then - collection_invalid("cursor is malformed or belongs to another sortDirection") - end - for key in pairs(value) do - if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then - collection_invalid("cursor is malformed") - end - end - local valid, collection = collection_valid_record_uri(value.u) - if not valid_datetime(value.t) or not valid or collection ~= COLLECTION then - collection_invalid("cursor is malformed") - end - return value -end - -local function collection_cursor_encode(value) - return (json.encode(value):gsub(".", function(char) - return string.format("%02x", string.byte(char)) - end)) + return decode_cursor(token, direction, function(value) + local valid, collection = collection_valid_record_uri(value.u) + return valid_datetime(value.t) and valid and collection == COLLECTION + end) end local function collection_bind_values(values, items) @@ -104,34 +76,15 @@ end local function collection_list_filters(filters, search) local where, values = { "collection.collection = $1" }, { COLLECTION } - if filters.authors then - if #filters.authors == 0 then - where[#where + 1] = "FALSE" - else - where[#where + 1] = "collection.did IN (" .. table.concat(collection_bind_values(values, filters.authors), ", ") .. ")" - end - end + if filters.authors then add_in(where, values, "collection.did", filters.authors) end if filters.hasOrganizationRecord ~= nil then local predicate = filters.hasOrganizationRecord and "EXISTS" or "NOT EXISTS" where[#where + 1] = predicate .. " (SELECT 1 FROM happyview_records AS organization " .. "WHERE organization.collection = 'app.certified.actor.organization' AND organization.rkey = 'self' " .. "AND organization.did = collection.did)" end - if filters.types then - if #filters.types == 0 then - where[#where + 1] = "FALSE" - else - where[#where + 1] = "collection.record::jsonb->>'type' IN (" .. - table.concat(collection_bind_values(values, filters.types), ", ") .. ")" - end - end - if filters.uris then - if #filters.uris == 0 then - where[#where + 1] = "FALSE" - else - where[#where + 1] = "collection.uri IN (" .. table.concat(collection_bind_values(values, filters.uris), ", ") .. ")" - end - end + if filters.types then add_in(where, values, "collection.record::jsonb->>'type'", filters.types) end + if filters.uris then add_in(where, values, "collection.uri", filters.uris) end if filters.itemUris then if #filters.itemUris == 0 then where[#where + 1] = "FALSE" @@ -177,7 +130,7 @@ end local function collection_list_sql(where, values, limit, direction) values[#values + 1] = limit + 1 local ordering = direction == "asc" and "ASC" or "DESC" - local sort_key = created_at_sort_expression("collection") + local sort_key = created_at_sort("collection") return "SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, " .. "collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', " .. "'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp " .. @@ -198,7 +151,7 @@ local function collection_list_page(rows, limit, direction) local next_cursor if more then local last = rows[#rows] - next_cursor = collection_cursor_encode({ v = 1, d = direction, t = last.sort_timestamp, u = last.uri }) + next_cursor = cursor_encode({ v = 1, d = direction, t = last.sort_timestamp, u = last.uri }) end return views, next_cursor end @@ -223,7 +176,7 @@ local function collection_list_response(search_enabled) cursor = true, } if search_enabled then allowed.search = true end - collection_keys_only(params, allowed) + keys_only(params, allowed, "unknown query parameter: ") local authors = collection_array("authors", "did") local has_organization_record = collection_scalar(params, "hasOrganizationRecord") @@ -233,7 +186,7 @@ local function collection_list_response(search_enabled) elseif has_organization_record == "false" then has_organization_record = false else - collection_invalid("hasOrganizationRecord must be true or false") + invalid("hasOrganizationRecord must be true or false") end end local types = collection_array("types", "type") @@ -242,17 +195,14 @@ local function collection_list_response(search_enabled) local tag_uris = collection_array("tagUris", "tagUri") local search if search_enabled then - search = collection_scalar(params, "search") - if search == nil then collection_invalid("search is required") end + search = scalar(params, "search") + if search == nil then invalid("search is required") end search = search:match("^%s*(.-)%s*$") if search == "" then search = nil end end - local direction = collection_scalar(params, "sortDirection") or "desc" - if direction ~= "asc" and direction ~= "desc" then - collection_invalid("sortDirection must be 'asc' or 'desc'") - end - local limit = collection_list_limit() - local cursor = collection_list_cursor_decode(collection_scalar(params, "cursor"), direction) + local direction = parse_sort_direction(params) + local limit = parse_list_limit(params) + local cursor = collection_list_cursor_decode(scalar(params, "cursor"), direction) local collections, next_cursor = collection_list_query({ authors = authors, hasOrganizationRecord = has_organization_record, diff --git a/happyview-modules/lua/shared/createdAtSort.lua b/happyview-modules/lua/shared/createdAtSort.lua index 171bef7c..65456e1d 100644 --- a/happyview-modules/lua/shared/createdAtSort.lua +++ b/happyview-modules/lua/shared/createdAtSort.lua @@ -1,32 +1,14 @@ -local CREATED_AT_SORT_COLUMNS = { - profile = { record = "record", indexed_at = "indexed_at", created_at = "created_at" }, - organization = { - record = "organization.record", - indexed_at = "organization.indexed_at", - created_at = "organization.created_at", - }, - activity = { - record = "activity.record", - indexed_at = "activity.indexed_at", - created_at = "activity.created_at", - }, - collection = { - record = "collection.record", - indexed_at = "collection.indexed_at", - created_at = "collection.created_at", - }, -} local CREATED_AT_SORT_PATTERN = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" -local function created_at_sort_expression(source) - local columns = CREATED_AT_SORT_COLUMNS[source] - if not columns then - error("CreatedAtSortExpressionError: source must be 'profile', 'organization', 'activity', or 'collection'", 0) - end - - local created = columns.record .. "::jsonb->>'createdAt'" - return "CASE WHEN jsonb_typeof(" .. columns.record .. "::jsonb->'createdAt') = 'string' AND " .. created .. +-- Sort key for a happyview_records row: the record's own createdAt when it is a +-- valid timestamp, otherwise COALESCE(indexed_at, created_at). `alias` is the +-- table alias; nil selects unqualified columns. +local function created_at_sort(alias) + local prefix = alias and (alias .. ".") or "" + local record, indexed_at, created_at = prefix .. "record", prefix .. "indexed_at", prefix .. "created_at" + local created = record .. "::jsonb->>'createdAt'" + return "CASE WHEN jsonb_typeof(" .. record .. "::jsonb->'createdAt') = 'string' AND " .. created .. " ~ '" .. CREATED_AT_SORT_PATTERN .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. - ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. columns.indexed_at .. - "::timestamptz, " .. columns.created_at .. "::timestamptz) END" + ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(" .. indexed_at .. + "::timestamptz, " .. created_at .. "::timestamptz) END" end diff --git a/happyview-modules/lua/shared/datetimeValidation.lua b/happyview-modules/lua/shared/datetimeValidation.lua index 598169bc..07e40370 100644 --- a/happyview-modules/lua/shared/datetimeValidation.lua +++ b/happyview-modules/lua/shared/datetimeValidation.lua @@ -4,6 +4,7 @@ local function valid_datetime(value) "^(%d%d%d%d)%-(%d%d)%-(%d%d)T(%d%d):(%d%d):(%d%d)(.*)$") if not year then return false end year, month, day = tonumber(year), tonumber(month), tonumber(day) + if year < 1 then return false end hour, minute, second = tonumber(hour), tonumber(minute), tonumber(second) if month < 1 or month > 12 or hour > 23 or minute > 59 or second > 59 then return false end local leap = year % 4 == 0 and (year % 100 ~= 0 or year % 400 == 0) diff --git a/happyview-modules/lua/shared/entityFollow.lua b/happyview-modules/lua/shared/entityFollow.lua index 2b8c346b..64468362 100644 --- a/happyview-modules/lua/shared/entityFollow.lua +++ b/happyview-modules/lua/shared/entityFollow.lua @@ -12,13 +12,6 @@ local function entity_follow_query(sql, values) return result end --- Keep malformed publisher timestamps out of casts; preserve the actor-follow fallback order. -local function entity_follow_sort_key() - local created = "record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND " .. created .. " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END" -end - local function entity_follow_indexed_record_view(row) return { uri = row.uri, diff --git a/happyview-modules/lua/shared/entityFollowLookup.lua b/happyview-modules/lua/shared/entityFollowLookup.lua index f89c0e09..b811b7c1 100644 --- a/happyview-modules/lua/shared/entityFollowLookup.lua +++ b/happyview-modules/lua/shared/entityFollowLookup.lua @@ -1,6 +1,6 @@ local function entity_follow_lookup(actor, entity_uri) local rows = entity_follow_query( - "SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record FROM happyview_records CROSS JOIN LATERAL (SELECT " .. entity_follow_sort_key() .. " AS sort_at) sorted WHERE collection = $1 AND did = $2 AND record::jsonb->'subject'->>'uri' = $3 ORDER BY sorted.sort_at ASC, uri ASC LIMIT 1", + "SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record FROM happyview_records CROSS JOIN LATERAL (SELECT " .. created_at_sort() .. " AS sort_at) sorted WHERE collection = $1 AND did = $2 AND record::jsonb->'subject'->>'uri' = $3 ORDER BY sorted.sort_at ASC, uri ASC LIMIT 1", { ENTITY_FOLLOW, actor, entity_uri }) if #rows == 0 then return ENTITY_FOLLOW_NULL end return entity_follow_record_view(rows[1]) diff --git a/happyview-modules/lua/shared/entityFollowPagination.lua b/happyview-modules/lua/shared/entityFollowPagination.lua index ecafb5cb..84891341 100644 --- a/happyview-modules/lua/shared/entityFollowPagination.lua +++ b/happyview-modules/lua/shared/entityFollowPagination.lua @@ -1,22 +1,8 @@ local function entity_follow_decode_cursor(token, direction) - if token == nil then return nil end - if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then - invalid("cursor is malformed") - end - local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) - local ok, value = pcall(json.decode, decoded) - if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction - or type(value.t) ~= "string" or type(value.u) ~= "string" then - invalid("cursor is malformed or belongs to another sortDirection") - end - for key in pairs(value) do - if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end - end - local valid, collection = valid_record_uri(value.u) - if not valid or collection ~= ENTITY_FOLLOW or not valid_datetime(value.t) then - invalid("cursor is malformed") - end - return value + return decode_cursor(token, direction, function(value) + local valid, collection = valid_record_uri(value.u) + return valid and collection == ENTITY_FOLLOW and valid_datetime(value.t) + end) end local function entity_follow_query_page(mode, identity, limit, cursor, direction) @@ -40,7 +26,7 @@ local function entity_follow_query_page(mode, identity, limit, cursor, direction values[#values + 1] = limit + 1 local ordering = direction == "asc" and "ASC" or "DESC" local subject_uri = "record::jsonb->'subject'->>'uri'" - local ranked_follows = "ranked_follows AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, " .. subject_uri .. " ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT " .. entity_follow_sort_key() .. " AS sort_at) sorted WHERE " .. table.concat(filters, " AND ") .. ")" + local ranked_follows = "ranked_follows AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, " .. subject_uri .. " ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT " .. created_at_sort() .. " AS sort_at) sorted WHERE " .. table.concat(filters, " AND ") .. ")" local representatives = "representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM ranked_follows WHERE relationship_rank = 1)" local page = "page AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM representatives" .. cursor_filter .. " ORDER BY sort_at " .. ordering .. ", uri " .. ordering .. " LIMIT $" .. #values .. ")" local sql diff --git a/happyview-modules/lua/shared/evaluationList.lua b/happyview-modules/lua/shared/evaluationList.lua index febddba5..e9ecbc78 100644 --- a/happyview-modules/lua/shared/evaluationList.lua +++ b/happyview-modules/lua/shared/evaluationList.lua @@ -58,46 +58,16 @@ local function evaluation_evaluator_match(values, dids) "WHERE evaluator.value->>'did' IN (" .. table.concat(marks, ", ") .. "))" end -local function evaluation_sort_expression() - local created = "evaluation.record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(evaluation.record::jsonb->'createdAt') = 'string' AND " .. created .. - " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. - ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE " .. - "COALESCE(evaluation.indexed_at::timestamptz, evaluation.created_at::timestamptz) END" -end - local function decode_evaluation_cursor(token, direction) - if token == nil then return nil end - if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then - invalid("cursor is malformed") - end - local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) - local ok, value = pcall(json.decode, decoded) - if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction - or type(value.t) ~= "string" or type(value.u) ~= "string" then - invalid("cursor is malformed or belongs to another sortDirection") - end - for key in pairs(value) do - if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end - end - local valid, collection = valid_record_uri(value.u) - if not valid_datetime(value.t) or not valid or collection ~= EVALUATION then - invalid("cursor is malformed") - end - return value + return decode_cursor(token, direction, function(value) + local valid, collection = valid_record_uri(value.u) + return valid_datetime(value.t) and valid and collection == EVALUATION + end) end local function evaluation_list_filters(authors, evaluators, subjects) local where, values = { "evaluation.collection = $1" }, { EVALUATION } - if authors then - if #authors == 0 then - where[#where + 1] = "FALSE" - else - where[#where + 1] = "evaluation.did IN (" .. - table.concat(bind_evaluation_values(values, authors), ", ") .. ")" - end - end + if authors then add_in(where, values, "evaluation.did", authors) end if evaluators then if #evaluators == 0 then where[#where + 1] = "FALSE" @@ -105,14 +75,7 @@ local function evaluation_list_filters(authors, evaluators, subjects) where[#where + 1] = evaluation_evaluator_match(values, evaluators) end end - if subjects then - if #subjects == 0 then - where[#where + 1] = "FALSE" - else - where[#where + 1] = "evaluation.record::jsonb->'subject'->>'uri' IN (" .. - table.concat(bind_evaluation_values(values, subjects), ", ") .. ")" - end - end + if subjects then add_in(where, values, "evaluation.record::jsonb->'subject'->>'uri'", subjects) end return where, values end @@ -137,7 +100,7 @@ local function evaluation_list_page_query(values, where, cursor, limit, directio "to_char(sorted.sort_at AT TIME ZONE 'UTC', " .. "'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp " .. "FROM happyview_records AS evaluation CROSS JOIN LATERAL (SELECT " .. - evaluation_sort_expression() .. " AS sort_at) AS sorted WHERE " .. table.concat(page_where, " AND ") .. + created_at_sort("evaluation") .. " AS sort_at) AS sorted WHERE " .. table.concat(page_where, " AND ") .. " ORDER BY sorted.sort_at " .. ordering .. ", evaluation.uri " .. ordering .. " LIMIT $" .. #page_values return sql, page_values end diff --git a/happyview-modules/lua/shared/feedReaction.lua b/happyview-modules/lua/shared/feedReaction.lua index fa2f694c..28215b60 100644 --- a/happyview-modules/lua/shared/feedReaction.lua +++ b/happyview-modules/lua/shared/feedReaction.lua @@ -13,12 +13,6 @@ local FEED_REACTIONS = { }, } -local function feed_reaction_sort_key() - local created = "record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND " .. created .. " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END" -end - local function feed_reaction_query(reaction, sql, values) if db.backend() ~= "postgres" then error(reaction.failure .. ": reaction queries require PostgreSQL", 0) end local ok, result = pcall(db.raw, sql, values) @@ -27,24 +21,10 @@ local function feed_reaction_query(reaction, sql, values) end local function feed_reaction_decode_cursor(token, direction, collection) - if token == nil then return nil end - if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then - invalid("cursor is malformed") - end - local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) - local ok, value = pcall(json.decode, decoded) - if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction - or type(value.t) ~= "string" or type(value.u) ~= "string" then - invalid("cursor is malformed or belongs to another sortDirection") - end - for key in pairs(value) do - if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end - end - local valid, cursor_collection = valid_record_uri(value.u) - if not valid or cursor_collection ~= collection or not valid_datetime(value.t) then - invalid("cursor is malformed") - end - return value + return decode_cursor(token, direction, function(value) + local valid, cursor_collection = valid_record_uri(value.u) + return valid and cursor_collection == collection and valid_datetime(value.t) + end) end local function feed_reaction_query_page(reaction, mode, identity, limit, cursor, direction) @@ -70,7 +50,7 @@ local function feed_reaction_query_page(reaction, mode, identity, limit, cursor, local ordering = direction == "asc" and "ASC" or "DESC" local subject_uri = "record::jsonb->'subject'->>'uri'" -- Select the earliest representative before applying the caller's independent page direction. - local sql = "WITH ranked_reactions AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, " .. subject_uri .. " ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT " .. feed_reaction_sort_key() .. " AS sort_at) sorted WHERE " .. table.concat(filters, " AND ") .. "), " .. + local sql = "WITH ranked_reactions AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, " .. subject_uri .. " ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT " .. created_at_sort() .. " AS sort_at) sorted WHERE " .. table.concat(filters, " AND ") .. "), " .. "representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM ranked_reactions WHERE relationship_rank = 1), " local page = "page AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM representatives" .. cursor_filter .. " ORDER BY sort_at " .. ordering .. ", uri " .. ordering .. " LIMIT $" .. #values .. ") " diff --git a/happyview-modules/lua/shared/fundingReceiptList.lua b/happyview-modules/lua/shared/fundingReceiptList.lua index 263b9655..468ba64e 100644 --- a/happyview-modules/lua/shared/fundingReceiptList.lua +++ b/happyview-modules/lua/shared/fundingReceiptList.lua @@ -60,33 +60,11 @@ local function funding_receipt_array(key, format) return unique end -local valid_receipt_datetime = valid_datetime - local function decode_funding_receipt_cursor(token, direction) - if token == nil then return nil end - if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then - invalid("cursor is malformed") - end - local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) - local ok, value = pcall(json.decode, decoded) - if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction - or type(value.t) ~= "string" or type(value.u) ~= "string" then - invalid("cursor is malformed or belongs to another sortDirection") - end - for key in pairs(value) do - if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end - end - local valid, collection = valid_record_uri(value.u) - if not valid_receipt_datetime(value.t) or not valid or collection ~= RECEIPT then - invalid("cursor is malformed") - end - return value -end - -local function encode_funding_receipt_cursor(value) - return (json.encode(value):gsub(".", function(char) - return string.format("%02x", string.byte(char)) - end)) + return decode_cursor(token, direction, function(value) + local valid, collection = valid_record_uri(value.u) + return valid_datetime(value.t) and valid and collection == RECEIPT + end) end local function bind_funding_receipt_values(values, items) @@ -99,10 +77,7 @@ local function bind_funding_receipt_values(values, items) end local function add_funding_receipt_array_filter(where, values, items, expression) - if items == nil then return end - if #items == 0 then where[#where + 1] = "FALSE"; return end - local marks = bind_funding_receipt_values(values, items) - where[#where + 1] = expression .. " IN (" .. table.concat(marks, ", ") .. ")" + if items ~= nil then add_in(where, values, expression, items) end end local function add_funding_receipt_party_filter(where, values, key, items) @@ -128,15 +103,6 @@ local function add_funding_receipt_party_filter(where, values, key, items) where[#where + 1] = "(" .. table.concat(matches, " OR ") .. ")" end -local function funding_receipt_sort_expression() - local created = "receipt.record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(receipt.record::jsonb->'createdAt') = 'string' AND " .. created .. - " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. - ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE " .. - "COALESCE(receipt.indexed_at::timestamptz, receipt.created_at::timestamptz) END" -end - local function query_funding_receipts(authors, uris, from_values, to_values, for_uris, transaction_ids, limit, cursor, direction) local where, values = { "receipt.collection = $1" }, { RECEIPT } add_funding_receipt_array_filter(where, values, authors, "receipt.did") @@ -162,7 +128,7 @@ local function query_funding_receipts(authors, uris, from_values, to_values, for "receipt.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', " .. "'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp " .. "FROM happyview_records AS receipt CROSS JOIN LATERAL (SELECT " .. - funding_receipt_sort_expression() .. " AS sort_at) AS sorted WHERE " .. table.concat(where, " AND ") .. + created_at_sort("receipt") .. " AS sort_at) AS sorted WHERE " .. table.concat(where, " AND ") .. " ORDER BY sorted.sort_at " .. ordering .. ", receipt.uri " .. ordering .. " LIMIT $" .. #values local rows = receipt_query(sql, values) local more = #rows > limit @@ -175,7 +141,7 @@ local function query_funding_receipts(authors, uris, from_values, to_values, for local next_cursor if more then local last = rows[#rows] - next_cursor = encode_funding_receipt_cursor({ v = 1, d = direction, t = last.sort_timestamp, u = last.uri }) + next_cursor = cursor_encode({ v = 1, d = direction, t = last.sort_timestamp, u = last.uri }) end return receipts, next_cursor end @@ -200,10 +166,7 @@ local function funding_receipts_response() local for_uris = funding_receipt_array("forUris", "atUri") local transaction_ids = funding_receipt_array("transactionIds") - local direction = scalar(params, "sortDirection") or "desc" - if direction ~= "asc" and direction ~= "desc" then - invalid("sortDirection must be 'asc' or 'desc'") - end + local direction = parse_sort_direction(params) local limit = parse_list_limit(params) local cursor = decode_funding_receipt_cursor(scalar(params, "cursor"), direction) local receipts, next_cursor = query_funding_receipts( diff --git a/happyview-modules/lua/shared/listCursor.lua b/happyview-modules/lua/shared/listCursor.lua new file mode 100644 index 00000000..e0a8586e --- /dev/null +++ b/happyview-modules/lua/shared/listCursor.lua @@ -0,0 +1,21 @@ +-- Decodes a hex-encoded {v, d, t, u} list cursor. Rejects malformed tokens, other +-- sort directions and unknown keys; validate_value(value) -> boolean runs the +-- endpoint-specific check on t and u. Not for endpoints that skip the 8192-character +-- cap or accept extra keys. +local function decode_cursor(token, direction, validate_value) + if token == nil then return nil end + if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then + invalid("cursor is malformed") + end + local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) + local ok, value = pcall(json.decode, decoded) + if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction + or type(value.t) ~= "string" or type(value.u) ~= "string" then + invalid("cursor is malformed or belongs to another sortDirection") + end + for key in pairs(value) do + if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end + end + if not validate_value(value) then invalid("cursor is malformed") end + return value +end diff --git a/happyview-modules/lua/shared/listWhere.lua b/happyview-modules/lua/shared/listWhere.lua new file mode 100644 index 00000000..b5080271 --- /dev/null +++ b/happyview-modules/lua/shared/listWhere.lua @@ -0,0 +1,13 @@ +-- Adds `column IN ($n, ...)` to where, binding items; an empty list matches nothing. +local function add_in(where, binds, column, items) + if #items == 0 then + where[#where + 1] = "FALSE" + return + end + local marks = {} + for _, item in ipairs(items) do + binds[#binds + 1] = item + marks[#marks + 1] = "$" .. #binds + end + where[#where + 1] = column .. " IN (" .. table.concat(marks, ", ") .. ")" +end diff --git a/happyview-modules/lua/shared/organizationList.lua b/happyview-modules/lua/shared/organizationList.lua index 4117d813..3c9d3929 100644 --- a/happyview-modules/lua/shared/organizationList.lua +++ b/happyview-modules/lua/shared/organizationList.lua @@ -41,17 +41,6 @@ local function array(params, key) return unique end -local function add_actors(where, values, actors) - if not actors then return end - if #actors == 0 then where[#where + 1] = "FALSE"; return end - local placeholders = {} - for _, did in ipairs(actors) do - values[#values + 1] = did - placeholders[#placeholders + 1] = "$" .. #values - end - where[#where + 1] = "organization.did IN (" .. table.concat(placeholders, ", ") .. ")" -end - local function add_organization_types(where, values, organization_types) if not organization_types then return end if #organization_types == 0 then where[#where + 1] = "FALSE"; return end @@ -84,7 +73,7 @@ end local function query_organizations(actors, organization_types, visibility, search, limit, cursor, direction) local where, values = { "organization.collection = $1", "organization.rkey = 'self'" }, { ORGANIZATION } - add_actors(where, values, actors) + if actors then add_in(where, values, "organization.did", actors) end add_organization_types(where, values, organization_types) if visibility ~= nil then values[#values + 1] = visibility @@ -113,7 +102,7 @@ local function query_organizations(actors, organization_types, visibility, searc values[#values + 1] = limit + 1 local ordering = direction == "asc" and "ASC" or "DESC" - local sort_key = created_at_sort_expression("organization") + local sort_key = created_at_sort("organization") local sql = "SELECT organization.uri, organization.did, organization.cid, organization.indexed_at::text AS indexed_at, " .. "organization.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp " .. "FROM happyview_records AS organization CROSS JOIN LATERAL (SELECT " .. sort_key .. " AS sort_at) AS sorted WHERE " .. diff --git a/happyview-modules/lua/shared/profileList.lua b/happyview-modules/lua/shared/profileList.lua index efb2f159..b2af0734 100644 --- a/happyview-modules/lua/shared/profileList.lua +++ b/happyview-modules/lua/shared/profileList.lua @@ -26,17 +26,6 @@ local function array(params, key) return unique end -local function add_actors(where, values, actors) - if not actors then return end - if #actors == 0 then where[#where + 1] = "FALSE"; return end - local placeholders = {} - for _, did in ipairs(actors) do - values[#values + 1] = did - placeholders[#placeholders + 1] = "$" .. #values - end - where[#where + 1] = "did IN (" .. table.concat(placeholders, ", ") .. ")" -end - local function cursor_decode(token, direction) if not token then return nil end if #token % 2 ~= 0 or token:find("[^0-9a-f]") then invalid("cursor is malformed") end @@ -55,7 +44,7 @@ end local function query_profiles(actors, search, limit, cursor, direction) local where, values = { "collection = $1", "rkey = 'self'" }, { PROFILE } - add_actors(where, values, actors) + if actors then add_in(where, values, "did", actors) end if search then values[#values + 1] = search local term = "$" .. #values @@ -73,7 +62,7 @@ local function query_profiles(actors, search, limit, cursor, direction) values[#values + 1] = limit + 1 local ordering = direction == "asc" and "ASC" or "DESC" - local sort_key = created_at_sort_expression("profile") + local sort_key = created_at_sort() local sql = "SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, " .. "to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp " .. "FROM happyview_records CROSS JOIN LATERAL (SELECT " .. sort_key .. " AS sort_at) sorted WHERE " diff --git a/happyview-modules/lua/shared/workscopeTagList.lua b/happyview-modules/lua/shared/workscopeTagList.lua index 99064f28..7b5a553f 100644 --- a/happyview-modules/lua/shared/workscopeTagList.lua +++ b/happyview-modules/lua/shared/workscopeTagList.lua @@ -37,24 +37,10 @@ local function workscope_tag_array(key) end local function workscope_tag_decode_cursor(token, direction) - if token == nil then return nil end - if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then - invalid("cursor is malformed") - end - local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) - local ok, value = pcall(json.decode, decoded) - if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction - or type(value.t) ~= "string" or type(value.u) ~= "string" then - invalid("cursor is malformed or belongs to another sortDirection") - end - for key in pairs(value) do - if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end - end - local valid, collection = workscope_tag_valid_record_uri(value.u) - if not valid_datetime(value.t) or value.t:sub(1, 4) == "0000" or not valid or collection ~= WORKSCOPE_TAG then - invalid("cursor is malformed") - end - return value + return decode_cursor(token, direction, function(value) + local valid, collection = workscope_tag_valid_record_uri(value.u) + return valid_datetime(value.t) and valid and collection == WORKSCOPE_TAG + end) end local function workscope_tag_list() @@ -65,18 +51,7 @@ local function workscope_tag_list() local cursor = workscope_tag_decode_cursor(scalar(params, "cursor"), direction) local where, values = { "workscope_tag.collection = $1" }, { WORKSCOPE_TAG } - if authors then - if #authors == 0 then - where[#where + 1] = "FALSE" - else - local placeholders = {} - for _, did in ipairs(authors) do - values[#values + 1] = did - placeholders[#placeholders + 1] = "$" .. #values - end - where[#where + 1] = "workscope_tag.did IN (" .. table.concat(placeholders, ", ") .. ")" - end - end + if authors then add_in(where, values, "workscope_tag.did", authors) end if cursor then values[#values + 1] = cursor.t local timestamp = "$" .. #values diff --git a/happyview-modules/lua/src/getCollection.lua b/happyview-modules/lua/src/getCollection.lua index 45233f63..98d5dd48 100644 --- a/happyview-modules/lua/src/getCollection.lua +++ b/happyview-modules/lua/src/getCollection.lua @@ -1,9 +1,9 @@ function handle() - collection_keys_only(params, { uri = true }) - local uri = collection_scalar(params, "uri") + keys_only(params, { uri = true }, "unknown query parameter: ") + local uri = scalar(params, "uri") local valid, collection = collection_valid_record_uri(uri) if not uri or not valid or collection ~= COLLECTION then - collection_invalid("uri must be a full org.hypercerts.collection AT-URI with a DID authority") + invalid("uri must be a full org.hypercerts.collection AT-URI with a DID authority") end local rows = collection_query( diff --git a/happyview-modules/lua/src/getEntityFollows.lua b/happyview-modules/lua/src/getEntityFollows.lua index fc92e944..ef021259 100644 --- a/happyview-modules/lua/src/getEntityFollows.lua +++ b/happyview-modules/lua/src/getEntityFollows.lua @@ -18,7 +18,7 @@ local function get_entity_follows() .. "indexed_at::text AS indexed_at, record::text AS record FROM requested " .. "JOIN happyview_records ON collection = $1 AND did = $2 " .. "AND record::jsonb->'subject'->>'uri' = requested.target " - .. "CROSS JOIN LATERAL (SELECT " .. entity_follow_sort_key() .. " AS sort_at) sorted " + .. "CROSS JOIN LATERAL (SELECT " .. created_at_sort() .. " AS sort_at) sorted " .. "ORDER BY requested.target, sorted.sort_at ASC, uri ASC", values) diff --git a/happyview-modules/lua/src/getFollows.lua b/happyview-modules/lua/src/getFollows.lua index 8c2e4745..12692739 100644 --- a/happyview-modules/lua/src/getFollows.lua +++ b/happyview-modules/lua/src/getFollows.lua @@ -16,7 +16,7 @@ local function get_follows() .. "SELECT DISTINCT ON (requested.target) requested.target AS target, uri, did, cid, " .. "indexed_at::text AS indexed_at, record::text AS record FROM requested " .. "JOIN happyview_records ON collection = $1 AND did = $2 AND record::jsonb->>'subject' = requested.target AND " .. account_follow_filter_sql() .. " " - .. "CROSS JOIN LATERAL (SELECT " .. follow_sort_key() .. " AS sort_at) sorted " + .. "CROSS JOIN LATERAL (SELECT " .. created_at_sort() .. " AS sort_at) sorted " .. "ORDER BY requested.target, sorted.sort_at ASC, uri ASC", values) if type(rows) ~= "table" then error("ActorFollowQueryFailed: actor-follow lookup failed", 0) end diff --git a/happyview-modules/lua/src/listBadgeAwards.lua b/happyview-modules/lua/src/listBadgeAwards.lua index 7ad2b1e0..cb2c291b 100644 --- a/happyview-modules/lua/src/listBadgeAwards.lua +++ b/happyview-modules/lua/src/listBadgeAwards.lua @@ -134,15 +134,6 @@ local function decode_badge_award_cursor(token, direction) return value end -local function award_sort_expression() - local created = "award.record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(award.record::jsonb->'createdAt') = 'string' AND " .. created .. - " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. - ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE " .. - "COALESCE(award.indexed_at::timestamptz, award.created_at::timestamptz) END" -end - local function recipient_did_expression() local subject = "award.record::jsonb->'subject'" return "CASE WHEN jsonb_typeof(" .. subject .. ") = 'string' THEN award.record::jsonb->>'subject' " .. @@ -239,7 +230,7 @@ local function list_badge_awards(authors, badge_uris, badge_types, subjects, res "recipient_response.uri AS recipient_response_uri, recipient_response.cid AS recipient_response_cid, " .. "recipient_response.indexed_at::text AS recipient_response_indexed_at, " .. "recipient_response.did AS recipient_response_did, recipient_response.record::text AS recipient_response_record " .. - "FROM happyview_records AS award CROSS JOIN LATERAL (SELECT " .. award_sort_expression() .. " AS sort_at) sorted " .. + "FROM happyview_records AS award CROSS JOIN LATERAL (SELECT " .. created_at_sort("award") .. " AS sort_at) sorted " .. "LEFT JOIN happyview_records AS badge ON badge.collection = '" .. DEFINITION .. "' " .. "AND badge.uri = award.record::jsonb->'badge'->>'uri' " .. "AND badge.cid = award.record::jsonb->'badge'->>'cid' " .. diff --git a/happyview-modules/lua/src/listBadgeDefinitions.lua b/happyview-modules/lua/src/listBadgeDefinitions.lua index 8888edbf..04adc448 100644 --- a/happyview-modules/lua/src/listBadgeDefinitions.lua +++ b/happyview-modules/lua/src/listBadgeDefinitions.lua @@ -58,14 +58,6 @@ local function decode_badge_definition_cursor(token, direction) return value end -local function badge_definition_sort_expression() - local created = "record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND " .. created .. - " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. - ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END" -end - local function list_badge_definitions(authors, badge_types, limit, cursor, direction) if db.backend() ~= "postgres" then error("BadgeDefinitionQueryFailed: badge definition API requires PostgreSQL", 0) @@ -83,7 +75,7 @@ local function list_badge_definitions(authors, badge_types, limit, cursor, direc end values[#values + 1] = limit + 1 local ordering = direction == "asc" and "ASC" or "DESC" - local sort_expression = badge_definition_sort_expression() + local sort_expression = created_at_sort() local sql = "SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, " .. "to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp " .. "FROM happyview_records CROSS JOIN LATERAL (SELECT " .. sort_expression .. " AS sort_at) sorted WHERE " .. diff --git a/happyview-modules/lua/src/listBadgeResponses.lua b/happyview-modules/lua/src/listBadgeResponses.lua index b7aea299..cb0c4a61 100644 --- a/happyview-modules/lua/src/listBadgeResponses.lua +++ b/happyview-modules/lua/src/listBadgeResponses.lua @@ -36,15 +36,6 @@ local function decode_badge_response_cursor(token, direction) return value end -local function response_sort_expression() - local created = "response.record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(response.record::jsonb->'createdAt') = 'string' AND " .. created .. - " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. - ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE " .. - "COALESCE(response.indexed_at::timestamptz, response.created_at::timestamptz) END" -end - local function list_badge_responses(badge_award, limit, cursor, direction) local where, values = { "response.collection = $1" }, { RESPONSE } if badge_award then @@ -65,7 +56,7 @@ local function list_badge_responses(badge_award, limit, cursor, direction) local sql = "SELECT response.uri, response.did, response.cid, response.indexed_at::text AS indexed_at, " .. "response.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', " .. "'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp " .. - "FROM happyview_records AS response CROSS JOIN LATERAL (SELECT " .. response_sort_expression() .. " AS sort_at) sorted " .. + "FROM happyview_records AS response CROSS JOIN LATERAL (SELECT " .. created_at_sort("response") .. " AS sort_at) sorted " .. "WHERE " .. table.concat(where, " AND ") .. " ORDER BY sorted.sort_at " .. ordering .. ", response.uri " .. ordering .. " LIMIT $" .. #values local rows = query(sql, values) diff --git a/happyview-modules/lua/src/listContributions.lua b/happyview-modules/lua/src/listContributions.lua index 67700162..09f0cd16 100644 --- a/happyview-modules/lua/src/listContributions.lua +++ b/happyview-modules/lua/src/listContributions.lua @@ -34,44 +34,11 @@ local function contribution_authors() return authors end -local function valid_contribution_cursor_datetime(value) - if type(value) ~= "string" or not valid_datetime(value) then return false end - return value:sub(1, 4) ~= "0000" -end - local function decode_contribution_cursor(token, direction) - if token == nil then return nil end - if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then - invalid("cursor is malformed") - end - local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) - local ok, value = pcall(json.decode, decoded) - if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction - or type(value.t) ~= "string" or type(value.u) ~= "string" then - invalid("cursor is malformed or belongs to another sortDirection") - end - for key in pairs(value) do - if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end - end - local valid = valid_contribution_uri(value.u) - if not valid or not valid_contribution_cursor_datetime(value.t) then - invalid("cursor is malformed") - end - return value -end - -local function add_contribution_authors(where, values, authors) - if authors == nil then return end - if #authors == 0 then - where[#where + 1] = "FALSE" - return - end - local placeholders = {} - for _, did in ipairs(authors) do - values[#values + 1] = did - placeholders[#placeholders + 1] = "$" .. #values - end - where[#where + 1] = "contribution.did IN (" .. table.concat(placeholders, ", ") .. ")" + return decode_cursor(token, direction, function(value) + local valid = valid_contribution_uri(value.u) + return valid and valid_datetime(value.t) + end) end local function contribution_sort_key() @@ -84,7 +51,7 @@ end local function query_contributions(authors, limit, cursor, direction) local where, values = { "contribution.collection = $1" }, { CONTRIBUTION } - add_contribution_authors(where, values, authors) + if authors then add_in(where, values, "contribution.did", authors) end if cursor then values[#values + 1] = cursor.t local timestamp = "$" .. #values diff --git a/happyview-modules/lua/src/listContributorInformation.lua b/happyview-modules/lua/src/listContributorInformation.lua index 4c83a0e2..1bb77965 100644 --- a/happyview-modules/lua/src/listContributorInformation.lua +++ b/happyview-modules/lua/src/listContributorInformation.lua @@ -1,7 +1,3 @@ -local function contributor_information_datetime(value) - return valid_datetime(value) and tonumber(value:sub(1, 4)) > 0 -end - local function contributor_information_query(sql, values) local backend_ok, backend = pcall(db.backend) if not backend_ok or backend ~= "postgres" then @@ -52,38 +48,10 @@ local function contributor_information_array(params, key, validate, description) return unique end -local function contributor_information_bind_in(where, values, expression, items) - if not items then return end - if #items == 0 then - where[#where + 1] = "FALSE" - return - end - local placeholders = {} - for _, item in ipairs(items) do - values[#values + 1] = item - placeholders[#placeholders + 1] = "$" .. #values - end - where[#where + 1] = expression .. " IN (" .. table.concat(placeholders, ", ") .. ")" -end - local function contributor_information_cursor_decode(token, direction) - if token == nil then return nil end - if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then - invalid("cursor is malformed") - end - local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) - local ok, value = pcall(json.decode, decoded) - if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction - or type(value.t) ~= "string" or type(value.u) ~= "string" then - invalid("cursor is malformed or belongs to another sortDirection") - end - for key in pairs(value) do - if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end - end - if not contributor_information_uri(value.u) or not contributor_information_datetime(value.t) then - invalid("cursor is malformed") - end - return value + return decode_cursor(token, direction, function(value) + return contributor_information_uri(value.u) and valid_datetime(value.t) + end) end local function preserve_contributor_author_timestamps(author) @@ -96,18 +64,9 @@ local function preserve_contributor_author_timestamps(author) end end -local function contributor_information_sort_expression() - local created = "contributor.record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(contributor.record::jsonb->'createdAt') = 'string' AND " .. created .. - " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. - ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE " .. - "COALESCE(contributor.indexed_at::timestamptz, contributor.created_at::timestamptz) END" -end - local function query_contributor_information(authors, limit, cursor, direction) local where, values = { "contributor.collection = $1" }, { CONTRIBUTOR_INFORMATION_COLLECTION } - contributor_information_bind_in(where, values, "contributor.did", authors) + if authors then add_in(where, values, "contributor.did", authors) end if cursor then values[#values + 1] = cursor.t @@ -121,7 +80,7 @@ local function query_contributor_information(authors, limit, cursor, direction) values[#values + 1] = limit + 1 local ordering = direction == "asc" and "ASC" or "DESC" - local sort_key = contributor_information_sort_expression() + local sort_key = created_at_sort("contributor") local sql = "SELECT contributor.uri, contributor.did, contributor.cid, " .. "contributor.indexed_at::text AS indexed_at, contributor.record::text AS record, " .. "to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp " .. diff --git a/happyview-modules/lua/src/listEvmLinks.lua b/happyview-modules/lua/src/listEvmLinks.lua index b6d70faf..ea031da9 100644 --- a/happyview-modules/lua/src/listEvmLinks.lua +++ b/happyview-modules/lua/src/listEvmLinks.lua @@ -77,16 +77,6 @@ local function decode_evm_link_cursor(token, direction) return value end -local function evm_link_sort_key() - -- CASE guards the cast from malformed publisher-controlled timestamps. - local created = "link.record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(link.record::jsonb->'createdAt') = 'string' AND " .. created .. - " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. - ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE " .. - "COALESCE(link.indexed_at::timestamptz, link.created_at::timestamptz) END" -end - local function list_evm_links(actors, addresses, limit, cursor, direction) local where, values = { "link.collection = $1" }, { EVMLINK } add_filter(where, values, "link.did", actors) @@ -107,7 +97,7 @@ local function list_evm_links(actors, addresses, limit, cursor, direction) local sql = "SELECT link.uri, link.did, link.cid, link.indexed_at::text AS indexed_at, " .. "link.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', " .. "'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp " .. - "FROM happyview_records AS link CROSS JOIN LATERAL (SELECT " .. evm_link_sort_key() .. " AS sort_at) sorted WHERE " .. + "FROM happyview_records AS link CROSS JOIN LATERAL (SELECT " .. created_at_sort("link") .. " AS sort_at) sorted WHERE " .. table.concat(where, " AND ") .. " ORDER BY sorted.sort_at " .. ordering .. ", link.uri " .. ordering .. " LIMIT $" .. #values local rows = evm_link_query(sql, values) diff --git a/happyview-modules/lua/src/listFeatures.lua b/happyview-modules/lua/src/listFeatures.lua index 23281b02..9de46453 100644 --- a/happyview-modules/lua/src/listFeatures.lua +++ b/happyview-modules/lua/src/listFeatures.lua @@ -38,20 +38,6 @@ local function feature_array(params, key, validate, description, max_bytes) return unique end -local function feature_add_in(where, values, column, binds) - if values == nil then return end - if #values == 0 then - where[#where + 1] = "FALSE" - return - end - local placeholders = {} - for _, value in ipairs(values) do - binds[#binds + 1] = value - placeholders[#placeholders + 1] = "$" .. #binds - end - where[#where + 1] = column .. " IN (" .. table.concat(placeholders, ", ") .. ")" -end - local function feature_add_types(where, values, binds) if values == nil then return end if #values == 0 then @@ -91,7 +77,7 @@ local function feature_cursor_decode(token, direction) for key in pairs(value) do if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end end - if not feature_valid_uri(value.u) or value.t:sub(1, 4) == "0000" or not valid_datetime(value.t) then + if not feature_valid_uri(value.u) or not valid_datetime(value.t) then invalid("cursor is malformed") end return value @@ -117,7 +103,7 @@ end local function feature_list_rows(filters, limit, cursor, direction) local where, binds = { "feature.collection = $1" }, { FEATURE_COLLECTION } - feature_add_in(where, filters.authors, "feature.did", binds) + if filters.authors then add_in(where, binds, "feature.did", filters.authors) end feature_add_types(where, filters.types, binds) if filters.hasOrganizationRecord ~= nil then local predicate = filters.hasOrganizationRecord and "EXISTS" or "NOT EXISTS" diff --git a/happyview-modules/lua/src/listLocations.lua b/happyview-modules/lua/src/listLocations.lua index f3eaeb07..4cb48ff8 100644 --- a/happyview-modules/lua/src/listLocations.lua +++ b/happyview-modules/lua/src/listLocations.lua @@ -62,11 +62,7 @@ local function query_locations(filters, limit, cursor, direction) end binds[#binds + 1] = limit + 1 local ordering = direction == "asc" and "ASC" or "DESC" - -- CASE guards the cast itself; a WHERE regex cannot protect it from planner reordering. - local created = "record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - local sort_key = "CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND " .. created .. " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END" - local sql = "SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT " .. sort_key .. " AS sort_at) sorted WHERE " .. table.concat(where, " AND ") .. " ORDER BY sorted.sort_at " .. ordering .. ", uri " .. ordering .. " LIMIT $" .. #binds + local sql = "SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT " .. created_at_sort() .. " AS sort_at) sorted WHERE " .. table.concat(where, " AND ") .. " ORDER BY sorted.sort_at " .. ordering .. ", uri " .. ordering .. " LIMIT $" .. #binds local rows = query(sql, binds) local more = #rows > limit if more then rows[#rows] = nil end diff --git a/happyview-modules/lua/src/listMeasurements.lua b/happyview-modules/lua/src/listMeasurements.lua index 5f6143f1..d20be61b 100644 --- a/happyview-modules/lua/src/listMeasurements.lua +++ b/happyview-modules/lua/src/listMeasurements.lua @@ -51,45 +51,15 @@ local function bind_values(values, items) end local function decode_measurement_cursor(token, direction) - if token == nil then return nil end - if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then - invalid("cursor is malformed") - end - local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) - local ok, value = pcall(json.decode, decoded) - if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction - or type(value.t) ~= "string" or type(value.u) ~= "string" then - invalid("cursor is malformed or belongs to another sortDirection") - end - for key in pairs(value) do - if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end - end - local valid, collection = measurement_valid_record_uri(value.u) - -- PostgreSQL timestamptz has no year zero, so reject it before binding the cursor. - if value.t:sub(1, 4) == "0000" or not valid_datetime(value.t) or not valid or collection ~= MEASUREMENT then - invalid("cursor is malformed") - end - return value -end - -local function measurement_sort_expression() - local created = "measurement.record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(measurement.record::jsonb->'createdAt') = 'string' AND " .. created .. - " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. - ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE " .. - "COALESCE(measurement.indexed_at::timestamptz, measurement.created_at::timestamptz) END" + return decode_cursor(token, direction, function(value) + local valid, collection = measurement_valid_record_uri(value.u) + return valid_datetime(value.t) and valid and collection == MEASUREMENT + end) end local function measurement_list_query(authors, subjects, limit, cursor, direction) local where, values = { "measurement.collection = $1" }, { MEASUREMENT } - if authors then - if #authors == 0 then - where[#where + 1] = "FALSE" - else - where[#where + 1] = "measurement.did IN (" .. table.concat(bind_values(values, authors), ", ") .. ")" - end - end + if authors then add_in(where, values, "measurement.did", authors) end if subjects then if #subjects == 0 then where[#where + 1] = "FALSE" @@ -121,7 +91,7 @@ local function measurement_list_query(authors, subjects, limit, cursor, directio "measurement.indexed_at::text AS indexed_at, measurement.record::text AS record, " .. "to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp " .. "FROM happyview_records AS measurement CROSS JOIN LATERAL (SELECT " .. - measurement_sort_expression() .. " AS sort_at) AS sorted WHERE " .. table.concat(page_where, " AND ") .. + created_at_sort("measurement") .. " AS sort_at) AS sorted WHERE " .. table.concat(page_where, " AND ") .. " ORDER BY sorted.sort_at " .. ordering .. ", measurement.uri " .. ordering .. " LIMIT $" .. #page_values local rows = measurement_query(sql, page_values) diff --git a/happyview-modules/lua/src/listRights.lua b/happyview-modules/lua/src/listRights.lua index 811b7fb2..fdddd392 100644 --- a/happyview-modules/lua/src/listRights.lua +++ b/happyview-modules/lua/src/listRights.lua @@ -42,51 +42,16 @@ local function rights_list_array(value) end local function rights_list_cursor_decode(token, direction) - if token == nil then return nil end - if #token == 0 or #token > 8192 or #token % 2 ~= 0 or token:find("[^0-9a-f]") then - invalid("cursor is malformed") - end - local decoded = token:gsub("..", function(pair) return string.char(tonumber(pair, 16)) end) - local ok, value = pcall(json.decode, decoded) - if not ok or type(value) ~= "table" or value.v ~= 1 or value.d ~= direction - or type(value.t) ~= "string" or type(value.u) ~= "string" then - invalid("cursor is malformed or belongs to another sortDirection") - end - for key in pairs(value) do - if key ~= "v" and key ~= "d" and key ~= "t" and key ~= "u" then invalid("cursor is malformed") end - end - local valid, collection = rights_valid_record_uri(value.u) - local year = tonumber(value.t:sub(1, 4)) - if not valid_datetime(value.t) or not year or year < 1 or not valid or collection ~= RIGHTS then - invalid("cursor is malformed") - end - return value -end - -local function rights_sort_expression() - local created = "rights.record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(rights.record::jsonb->'createdAt') = 'string' AND " .. created .. - " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. - ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE " .. - "COALESCE(rights.indexed_at::timestamptz, rights.created_at::timestamptz) END" + return decode_cursor(token, direction, function(value) + local valid, collection = rights_valid_record_uri(value.u) + return valid_datetime(value.t) and valid and collection == RIGHTS + end) end local function rights_list_query(authors, limit, cursor, direction) local where, values = { "rights.collection = $1" }, { RIGHTS } - if authors then - if #authors == 0 then - where[#where + 1] = "FALSE" - else - local marks = {} - for _, did in ipairs(authors) do - values[#values + 1] = did - marks[#marks + 1] = "$" .. #values - end - where[#where + 1] = "rights.did IN (" .. table.concat(marks, ", ") .. ")" - end - end + if authors then add_in(where, values, "rights.did", authors) end if cursor then values[#values + 1] = cursor.t @@ -102,7 +67,7 @@ local function rights_list_query(authors, limit, cursor, direction) local sql = "SELECT rights.uri, rights.did, rights.cid, rights.indexed_at::text AS indexed_at, " .. "rights.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', " .. "'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp " .. - "FROM happyview_records AS rights CROSS JOIN LATERAL (SELECT " .. rights_sort_expression() .. " AS sort_at) AS sorted " .. + "FROM happyview_records AS rights CROSS JOIN LATERAL (SELECT " .. created_at_sort("rights") .. " AS sort_at) AS sorted " .. "WHERE " .. table.concat(where, " AND ") .. " ORDER BY sorted.sort_at " .. ordering .. ", rights.uri " .. ordering .. " LIMIT $" .. #values local rows = rights_list_run_query(sql, values) diff --git a/happyview-modules/lua/src/listVocabTags.lua b/happyview-modules/lua/src/listVocabTags.lua index 8a670da3..287cac96 100644 --- a/happyview-modules/lua/src/listVocabTags.lua +++ b/happyview-modules/lua/src/listVocabTags.lua @@ -72,7 +72,6 @@ local function decode_cursor(token, direction, authors) end end if not valid_datetime(value.t) then invalid("cursor is malformed") end - if value.t:sub(1, 4) == "0000" then invalid("cursor timestamp year must be greater than 0000") end if not valid_vocab_tag_uri(value.u) then invalid("cursor is malformed") end return value end diff --git a/happyview-modules/lua/src/searchBadgeDefinitions.lua b/happyview-modules/lua/src/searchBadgeDefinitions.lua index 0fe5b7df..76d71297 100644 --- a/happyview-modules/lua/src/searchBadgeDefinitions.lua +++ b/happyview-modules/lua/src/searchBadgeDefinitions.lua @@ -1,10 +1,5 @@ local COLLECTION = "app.certified.badge.definition" -local function valid_badge_definition_uri(value) - local valid, collection = valid_record_uri(value) - return valid and collection == COLLECTION -end - local function query(sql, values) if db.backend() ~= "postgres" then error("BadgeDefinitionQueryFailed: badge definition API requires PostgreSQL", 0) @@ -66,14 +61,6 @@ local function decode_badge_definition_cursor(token, direction) return value end -local function badge_definition_sort_expression() - local created = "record::jsonb->>'createdAt'" - local zoned = "^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$" - return "CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND " .. created .. - " ~ '" .. zoned .. "' AND " .. created .. " !~ '-00:00$' AND pg_input_is_valid(" .. created .. - ", 'timestamptz') THEN (" .. created .. ")::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END" -end - local function query_badge_definitions(authors, badge_types, search, limit, cursor, direction) local where, values = { "collection = $1" }, { COLLECTION } add_badge_definition_filter(where, values, "did", authors) @@ -94,7 +81,7 @@ local function query_badge_definitions(authors, badge_types, search, limit, curs end values[#values + 1] = limit + 1 local ordering = direction == "asc" and "ASC" or "DESC" - local sort_expression = badge_definition_sort_expression() + local sort_expression = created_at_sort() local sql = "SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, " .. "to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp " .. "FROM happyview_records CROSS JOIN LATERAL (SELECT " .. sort_expression .. " AS sort_at) sorted WHERE " .. diff --git a/happyview-modules/manifest.json b/happyview-modules/manifest.json index 90ea3fb1..92fee17e 100644 --- a/happyview-modules/manifest.json +++ b/happyview-modules/manifest.json @@ -517,8 +517,5 @@ "modules/context-measurements/manifest.json", "modules/evm-links/manifest.json", "modules/rights/manifest.json" - ], - "luaBuild": { - "endpointSources": ["lua/src/getFeature.lua", "lua/src/listFeatures.lua"] - } + ] } diff --git a/happyview-modules/modules/acknowledgements/manifest.json b/happyview-modules/modules/acknowledgements/manifest.json index 4ae64fd3..0e965ee9 100644 --- a/happyview-modules/modules/acknowledgements/manifest.json +++ b/happyview-modules/modules/acknowledgements/manifest.json @@ -68,6 +68,9 @@ "../../lua/shared/listValidation.lua", "../../lua/shared/acknowledgement.lua", "../../lua/shared/nsidValidation.lua", + "../../lua/shared/listQuery.lua", + "../../lua/shared/listCursor.lua", + "../../lua/shared/listWhere.lua", "../../lua/shared/acknowledgementList.lua" ], "config": { diff --git a/happyview-modules/modules/activity/manifest.json b/happyview-modules/modules/activity/manifest.json index 1344ac7d..95600686 100644 --- a/happyview-modules/modules/activity/manifest.json +++ b/happyview-modules/modules/activity/manifest.json @@ -52,6 +52,9 @@ "../../lua/shared/datetimeValidation.lua", "../../lua/shared/listValidation.lua", "../../lua/shared/createdAtSort.lua", + "../../lua/shared/listQuery.lua", + "../../lua/shared/listCursor.lua", + "../../lua/shared/listWhere.lua", "../../lua/shared/activityList.lua" ], "config": { @@ -74,6 +77,9 @@ "../../lua/shared/datetimeValidation.lua", "../../lua/shared/listValidation.lua", "../../lua/shared/createdAtSort.lua", + "../../lua/shared/listQuery.lua", + "../../lua/shared/listCursor.lua", + "../../lua/shared/listWhere.lua", "../../lua/shared/activityList.lua" ], "config": { diff --git a/happyview-modules/modules/actor-follow/manifest.json b/happyview-modules/modules/actor-follow/manifest.json index 45741dcf..a6be14ea 100644 --- a/happyview-modules/modules/actor-follow/manifest.json +++ b/happyview-modules/modules/actor-follow/manifest.json @@ -50,6 +50,7 @@ "../../lua/shared/query.lua", "../../lua/shared/recordView.lua", "../../lua/shared/accountFollowFilter.lua", + "../../lua/shared/createdAtSort.lua", "../../lua/shared/actorFollow.lua", "../../lua/shared/actorFollowLookup.lua" ], @@ -69,6 +70,7 @@ "../../lua/shared/query.lua", "../../lua/shared/recordView.lua", "../../lua/shared/accountFollowFilter.lua", + "../../lua/shared/createdAtSort.lua", "../../lua/shared/actorFollow.lua", "../../lua/shared/batchRequestTarget.lua", "../../lua/shared/followBatch.lua" @@ -94,6 +96,7 @@ "../../lua/shared/recordView.lua", "../../lua/shared/actorView.lua", "../../lua/shared/accountFollowFilter.lua", + "../../lua/shared/createdAtSort.lua", "../../lua/shared/actorFollow.lua", "../../lua/shared/actorFollowList.lua" ], @@ -118,6 +121,7 @@ "../../lua/shared/recordView.lua", "../../lua/shared/actorView.lua", "../../lua/shared/accountFollowFilter.lua", + "../../lua/shared/createdAtSort.lua", "../../lua/shared/actorFollow.lua", "../../lua/shared/actorFollowList.lua" ], diff --git a/happyview-modules/modules/badge-definitions/manifest.json b/happyview-modules/modules/badge-definitions/manifest.json index 72d69b72..4c5d7369 100644 --- a/happyview-modules/modules/badge-definitions/manifest.json +++ b/happyview-modules/modules/badge-definitions/manifest.json @@ -57,6 +57,7 @@ "../../lua/shared/datetimeValidation.lua", "../../lua/shared/listValidation.lua", "../../lua/shared/listQuery.lua", + "../../lua/shared/createdAtSort.lua", "../../lua/shared/recordView.lua", "../../lua/shared/actorView.lua" ], diff --git a/happyview-modules/modules/badge-queries/manifest.json b/happyview-modules/modules/badge-queries/manifest.json index 04b597b8..bec7aa3e 100644 --- a/happyview-modules/modules/badge-queries/manifest.json +++ b/happyview-modules/modules/badge-queries/manifest.json @@ -64,9 +64,11 @@ "../../lua/shared/query.lua", "../../lua/shared/didValidation.lua", "../../lua/shared/recordIdentifier.lua", + "../../lua/shared/badgeDefinitionValidation.lua", "../../lua/shared/datetimeValidation.lua", "../../lua/shared/listValidation.lua", "../../lua/shared/listQuery.lua", + "../../lua/shared/createdAtSort.lua", "../../lua/shared/recordView.lua", "../../lua/shared/actorView.lua" ], @@ -106,6 +108,7 @@ "../../lua/shared/datetimeValidation.lua", "../../lua/shared/listValidation.lua", "../../lua/shared/listQuery.lua", + "../../lua/shared/createdAtSort.lua", "../../lua/shared/recordView.lua", "../../lua/shared/actorView.lua", "../../lua/shared/nsidValidation.lua" @@ -146,6 +149,7 @@ "../../lua/shared/datetimeValidation.lua", "../../lua/shared/listValidation.lua", "../../lua/shared/listQuery.lua", + "../../lua/shared/createdAtSort.lua", "../../lua/shared/recordView.lua", "../../lua/shared/actorView.lua" ], diff --git a/happyview-modules/modules/collection/manifest.json b/happyview-modules/modules/collection/manifest.json index 39d3e11f..2bfde0d6 100644 --- a/happyview-modules/modules/collection/manifest.json +++ b/happyview-modules/modules/collection/manifest.json @@ -7,6 +7,7 @@ "sourcePath": "../../lua/src/getCollection.lua", "sharedSourcePaths": [ "../../lua/shared/didValidation.lua", + "../../lua/shared/query.lua", "../../lua/shared/recordIdentifier.lua", "../../lua/shared/collectionProjection.lua", "../../lua/shared/collection.lua" @@ -39,6 +40,11 @@ "../../lua/shared/collection.lua", "../../lua/shared/datetimeValidation.lua", "../../lua/shared/createdAtSort.lua", + "../../lua/shared/query.lua", + "../../lua/shared/listValidation.lua", + "../../lua/shared/listQuery.lua", + "../../lua/shared/listCursor.lua", + "../../lua/shared/listWhere.lua", "../../lua/shared/collectionList.lua" ], "config": { @@ -69,6 +75,11 @@ "../../lua/shared/collection.lua", "../../lua/shared/datetimeValidation.lua", "../../lua/shared/createdAtSort.lua", + "../../lua/shared/query.lua", + "../../lua/shared/listValidation.lua", + "../../lua/shared/listQuery.lua", + "../../lua/shared/listCursor.lua", + "../../lua/shared/listWhere.lua", "../../lua/shared/collectionList.lua" ], "config": { @@ -88,6 +99,7 @@ "../../lua/shared/recordIdentifier.lua", "../../lua/shared/activityProjection.lua", "../../lua/shared/featureProjection.lua", + "../../lua/shared/listValidation.lua", "../../lua/shared/collectionItems.lua" ], "config": { diff --git a/happyview-modules/modules/context-attachments/manifest.json b/happyview-modules/modules/context-attachments/manifest.json index 55158f9d..047e6233 100644 --- a/happyview-modules/modules/context-attachments/manifest.json +++ b/happyview-modules/modules/context-attachments/manifest.json @@ -54,6 +54,9 @@ "../../lua/shared/recordView.lua", "../../lua/shared/actorView.lua", "../../lua/shared/attachment.lua", + "../../lua/shared/listCursor.lua", + "../../lua/shared/listWhere.lua", + "../../lua/shared/createdAtSort.lua", "../../lua/shared/attachmentList.lua" ], "config": { diff --git a/happyview-modules/modules/context-evaluation/manifest.json b/happyview-modules/modules/context-evaluation/manifest.json index e0b0c434..4268ea60 100644 --- a/happyview-modules/modules/context-evaluation/manifest.json +++ b/happyview-modules/modules/context-evaluation/manifest.json @@ -55,6 +55,9 @@ "../../lua/shared/actorView.lua", "../../lua/shared/evaluation.lua", "../../lua/shared/nsidValidation.lua", + "../../lua/shared/listCursor.lua", + "../../lua/shared/listWhere.lua", + "../../lua/shared/createdAtSort.lua", "../../lua/shared/evaluationList.lua" ], "config": { diff --git a/happyview-modules/modules/context-measurements/manifest.json b/happyview-modules/modules/context-measurements/manifest.json index 99a5e3b7..20704d1c 100644 --- a/happyview-modules/modules/context-measurements/manifest.json +++ b/happyview-modules/modules/context-measurements/manifest.json @@ -54,7 +54,10 @@ "../../lua/shared/recordView.lua", "../../lua/shared/actorView.lua", "../../lua/shared/measurementQuery.lua", - "../../lua/shared/nsidValidation.lua" + "../../lua/shared/nsidValidation.lua", + "../../lua/shared/listCursor.lua", + "../../lua/shared/listWhere.lua", + "../../lua/shared/createdAtSort.lua" ], "config": { "script_type": "lua" diff --git a/happyview-modules/modules/contribution/manifest.json b/happyview-modules/modules/contribution/manifest.json index ebf4e040..5d650240 100644 --- a/happyview-modules/modules/contribution/manifest.json +++ b/happyview-modules/modules/contribution/manifest.json @@ -44,7 +44,9 @@ "../../lua/shared/listQuery.lua", "../../lua/shared/recordView.lua", "../../lua/shared/actorView.lua", - "../../lua/shared/contribution.lua" + "../../lua/shared/contribution.lua", + "../../lua/shared/listCursor.lua", + "../../lua/shared/listWhere.lua" ], "config": { "script_type": "lua" }, "dependsOn": ["org.hypercerts.claim.listContributions"] diff --git a/happyview-modules/modules/contributor-information/manifest.json b/happyview-modules/modules/contributor-information/manifest.json index 6f25e619..9ad5d784 100644 --- a/happyview-modules/modules/contributor-information/manifest.json +++ b/happyview-modules/modules/contributor-information/manifest.json @@ -57,7 +57,10 @@ "../../lua/shared/actorView.lua", "../../lua/shared/datetimeValidation.lua", "../../lua/shared/listValidation.lua", - "../../lua/shared/listQuery.lua" + "../../lua/shared/listQuery.lua", + "../../lua/shared/listCursor.lua", + "../../lua/shared/listWhere.lua", + "../../lua/shared/createdAtSort.lua" ], "config": { "script_type": "lua", diff --git a/happyview-modules/modules/entity-follow/manifest.json b/happyview-modules/modules/entity-follow/manifest.json index 00045350..d5c40dd0 100644 --- a/happyview-modules/modules/entity-follow/manifest.json +++ b/happyview-modules/modules/entity-follow/manifest.json @@ -55,6 +55,7 @@ "../../lua/shared/query.lua", "../../lua/shared/recordIdentifier.lua", "../../lua/shared/entityFollow.lua", + "../../lua/shared/createdAtSort.lua", "../../lua/shared/entityFollowLookup.lua" ], "config": { @@ -72,6 +73,7 @@ "../../lua/shared/didValidation.lua", "../../lua/shared/query.lua", "../../lua/shared/recordIdentifier.lua", + "../../lua/shared/createdAtSort.lua", "../../lua/shared/entityFollow.lua", "../../lua/shared/batchRequestTarget.lua", "../../lua/shared/followBatch.lua", @@ -97,6 +99,8 @@ "../../lua/shared/listValidation.lua", "../../lua/shared/listQuery.lua", "../../lua/shared/entityFollow.lua", + "../../lua/shared/listCursor.lua", + "../../lua/shared/createdAtSort.lua", "../../lua/shared/entityFollowPagination.lua", "../../lua/shared/entityFollowFollowers.lua" ], @@ -122,6 +126,8 @@ "../../lua/shared/collectionProjection.lua", "../../lua/shared/featureProjection.lua", "../../lua/shared/entityFollow.lua", + "../../lua/shared/listCursor.lua", + "../../lua/shared/createdAtSort.lua", "../../lua/shared/entityFollowPagination.lua", "../../lua/shared/entityFollowEntities.lua" ], diff --git a/happyview-modules/modules/evm-links/manifest.json b/happyview-modules/modules/evm-links/manifest.json index 56afbfa5..4d5bbd81 100644 --- a/happyview-modules/modules/evm-links/manifest.json +++ b/happyview-modules/modules/evm-links/manifest.json @@ -52,6 +52,7 @@ "../../lua/shared/datetimeValidation.lua", "../../lua/shared/listValidation.lua", "../../lua/shared/listQuery.lua", + "../../lua/shared/createdAtSort.lua", "../../lua/shared/recordView.lua", "../../lua/shared/evmLinkIdentifier.lua", "../../lua/shared/actorView.lua" diff --git a/happyview-modules/modules/features/manifest.json b/happyview-modules/modules/features/manifest.json index 414d9e3d..00ca2c24 100644 --- a/happyview-modules/modules/features/manifest.json +++ b/happyview-modules/modules/features/manifest.json @@ -48,6 +48,7 @@ "../../lua/shared/datetimeValidation.lua", "../../lua/shared/listValidation.lua", "../../lua/shared/listQuery.lua", + "../../lua/shared/listWhere.lua", "../../lua/shared/featureValidation.lua", "../../lua/shared/featureProjection.lua" ], diff --git a/happyview-modules/modules/feed-reactions/manifest.json b/happyview-modules/modules/feed-reactions/manifest.json index 8eb9a911..c32594bf 100644 --- a/happyview-modules/modules/feed-reactions/manifest.json +++ b/happyview-modules/modules/feed-reactions/manifest.json @@ -70,6 +70,8 @@ "../../lua/shared/listQuery.lua", "../../lua/shared/recordView.lua", "../../lua/shared/actorView.lua", + "../../lua/shared/listCursor.lua", + "../../lua/shared/createdAtSort.lua", "../../lua/shared/feedReaction.lua" ], "config": { "script_type": "lua", "description": "Feed reaction API handler" }, @@ -89,6 +91,8 @@ "../../lua/shared/listQuery.lua", "../../lua/shared/recordView.lua", "../../lua/shared/actorView.lua", + "../../lua/shared/listCursor.lua", + "../../lua/shared/createdAtSort.lua", "../../lua/shared/feedReaction.lua" ], "config": { "script_type": "lua", "description": "Feed reaction API handler" }, @@ -108,6 +112,8 @@ "../../lua/shared/listQuery.lua", "../../lua/shared/recordView.lua", "../../lua/shared/actorView.lua", + "../../lua/shared/listCursor.lua", + "../../lua/shared/createdAtSort.lua", "../../lua/shared/feedReaction.lua" ], "config": { "script_type": "lua", "description": "Feed reaction API handler" }, @@ -127,6 +133,8 @@ "../../lua/shared/listQuery.lua", "../../lua/shared/recordView.lua", "../../lua/shared/actorView.lua", + "../../lua/shared/listCursor.lua", + "../../lua/shared/createdAtSort.lua", "../../lua/shared/feedReaction.lua" ], "config": { "script_type": "lua", "description": "Feed reaction API handler" }, diff --git a/happyview-modules/modules/funding/manifest.json b/happyview-modules/modules/funding/manifest.json index a1dae3f8..8713d36b 100644 --- a/happyview-modules/modules/funding/manifest.json +++ b/happyview-modules/modules/funding/manifest.json @@ -54,6 +54,10 @@ "../../lua/shared/actorView.lua", "../../lua/shared/fundingReceipt.lua", "../../lua/shared/nsidValidation.lua", + "../../lua/shared/listQuery.lua", + "../../lua/shared/listCursor.lua", + "../../lua/shared/listWhere.lua", + "../../lua/shared/createdAtSort.lua", "../../lua/shared/fundingReceiptList.lua" ], "config": { diff --git a/happyview-modules/modules/location/manifest.json b/happyview-modules/modules/location/manifest.json index 7b32066c..cdf1ab5d 100644 --- a/happyview-modules/modules/location/manifest.json +++ b/happyview-modules/modules/location/manifest.json @@ -51,6 +51,7 @@ "../../lua/shared/datetimeValidation.lua", "../../lua/shared/listValidation.lua", "../../lua/shared/listQuery.lua", + "../../lua/shared/createdAtSort.lua", "../../lua/shared/recordView.lua", "../../lua/shared/actorView.lua", "../../lua/shared/location.lua" diff --git a/happyview-modules/modules/organization/manifest.json b/happyview-modules/modules/organization/manifest.json index dc36d222..08f13643 100644 --- a/happyview-modules/modules/organization/manifest.json +++ b/happyview-modules/modules/organization/manifest.json @@ -96,6 +96,7 @@ "../../lua/shared/recordView.lua", "../../lua/shared/organization.lua", "../../lua/shared/createdAtSort.lua", + "../../lua/shared/listWhere.lua", "../../lua/shared/organizationList.lua" ], "config": { @@ -119,6 +120,7 @@ "../../lua/shared/recordView.lua", "../../lua/shared/organization.lua", "../../lua/shared/createdAtSort.lua", + "../../lua/shared/listWhere.lua", "../../lua/shared/organizationList.lua" ], "config": { diff --git a/happyview-modules/modules/profile/manifest.json b/happyview-modules/modules/profile/manifest.json index 72ce97ff..278ba9d3 100644 --- a/happyview-modules/modules/profile/manifest.json +++ b/happyview-modules/modules/profile/manifest.json @@ -89,6 +89,7 @@ "../../lua/shared/recordView.lua", "../../lua/shared/profile.lua", "../../lua/shared/createdAtSort.lua", + "../../lua/shared/listWhere.lua", "../../lua/shared/profileList.lua" ], "config": { @@ -111,6 +112,7 @@ "../../lua/shared/recordView.lua", "../../lua/shared/profile.lua", "../../lua/shared/createdAtSort.lua", + "../../lua/shared/listWhere.lua", "../../lua/shared/profileList.lua" ], "config": { diff --git a/happyview-modules/modules/rights/manifest.json b/happyview-modules/modules/rights/manifest.json index 82d77df5..fa6d52cd 100644 --- a/happyview-modules/modules/rights/manifest.json +++ b/happyview-modules/modules/rights/manifest.json @@ -46,7 +46,10 @@ "../../lua/shared/rightsView.lua", "../../lua/shared/datetimeValidation.lua", "../../lua/shared/listValidation.lua", - "../../lua/shared/listQuery.lua" + "../../lua/shared/listQuery.lua", + "../../lua/shared/listCursor.lua", + "../../lua/shared/listWhere.lua", + "../../lua/shared/createdAtSort.lua" ], "config": { "script_type": "lua", "description": "List rights records" }, "dependsOn": ["org.hypercerts.claim.listRights"] diff --git a/happyview-modules/modules/workscope-tags/manifest.json b/happyview-modules/modules/workscope-tags/manifest.json index d24cbb93..119e56ee 100644 --- a/happyview-modules/modules/workscope-tags/manifest.json +++ b/happyview-modules/modules/workscope-tags/manifest.json @@ -54,6 +54,8 @@ "../../lua/shared/workscopeRecordView.lua", "../../lua/shared/actorView.lua", "../../lua/shared/workscopeTag.lua", + "../../lua/shared/listCursor.lua", + "../../lua/shared/listWhere.lua", "../../lua/shared/workscopeTagList.lua" ], "config": { diff --git a/happyview-modules/package.json b/happyview-modules/package.json index 92a04a0a..a61995ed 100644 --- a/happyview-modules/package.json +++ b/happyview-modules/package.json @@ -5,8 +5,6 @@ "private": true, "type": "module", "dependencies": { - "@atcute/cbor": "2.3.2", - "@atcute/cid": "2.4.1", "@atproto/lexicon": "0.6.2", "@atproto/syntax": "0.5.4", "@hypercerts-org/lexicon": "2.0.0" @@ -24,10 +22,11 @@ "smoke": "node tooling/smoke.js", "e2e": "node tooling/e2e.js", "seed:test": "node tooling/seed.js", - "seed:bad-dates": "node tooling/seed.js --bad-dates", - "test:contracts": "pnpm run test:http" + "seed:bad-dates": "node tooling/seed.js --bad-dates" }, "devDependencies": { + "@atcute/cbor": "2.3.2", + "@atcute/cid": "2.4.1", "@types/node": "24.3.0", "typescript": "7.0.2" } diff --git a/happyview-modules/tests/unit/context/attachment.test.js b/happyview-modules/tests/unit/context/attachment.test.js index 2de4b9f2..26d40fb7 100644 --- a/happyview-modules/tests/unit/context/attachment.test.js +++ b/happyview-modules/tests/unit/context/attachment.test.js @@ -4,6 +4,7 @@ import { existsSync } from "node:fs"; import { readFile } from "node:fs/promises"; import test from "node:test"; import { fileURLToPath } from "node:url"; +import { lua } from "../helpers/lua.js"; const root = fileURLToPath(new URL("../../../", import.meta.url)); const ATTACHMENT = "org.hypercerts.context.attachment"; @@ -18,19 +19,6 @@ const subjectUri = `at://${author}/org.hypercerts.claim.activity/3jzfcijpj2z2c`; const otherSubjectUri = `at://${author}/org.hypercerts.context.attachment/3jzfcijpj2z2d`; const cid = "bafyreiaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; -function lua(value) { - if (value === null) return "nil"; - if (typeof value === "string") return JSON.stringify(value); - if (typeof value === "number" || typeof value === "boolean") return String(value); - if (Array.isArray(value)) return `{${value.map(lua).join(",")}}`; - if (value && typeof value === "object") { - return `{${Object.entries(value) - .map(([key, item]) => `[${JSON.stringify(key)}]=${lua(item)}`) - .join(",")}}`; - } - throw new TypeError(`Cannot encode ${typeof value} as a Lua fixture`); -} - function attachmentRow({ uri = firstUri, did = uri.match(/^at:\/\/([^/]+)/)[1], diff --git a/happyview-modules/tests/unit/context/evaluation.test.js b/happyview-modules/tests/unit/context/evaluation.test.js index a98e273f..1a656226 100644 --- a/happyview-modules/tests/unit/context/evaluation.test.js +++ b/happyview-modules/tests/unit/context/evaluation.test.js @@ -2,6 +2,7 @@ import assert from "node:assert/strict"; import { spawnSync } from "node:child_process"; import test from "node:test"; import { fileURLToPath } from "node:url"; +import { lua } from "../helpers/lua.js"; const root = fileURLToPath(new URL("../../../", import.meta.url)); const EVALUATION = "org.hypercerts.context.evaluation"; @@ -32,19 +33,6 @@ const evaluationRecord = { extension: { preserve: true }, }; -function lua(value) { - if (value === null) return "nil"; - if (typeof value === "string") return JSON.stringify(value); - if (typeof value === "number" || typeof value === "boolean") return String(value); - if (Array.isArray(value)) return `{${value.map(lua).join(",")}}`; - if (value && typeof value === "object") { - return `{${Object.entries(value) - .map(([key, item]) => `[${JSON.stringify(key)}]=${lua(item)}`) - .join(",")}}`; - } - throw new TypeError(`Cannot encode ${typeof value} as a Lua fixture`); -} - function databaseRow(row) { const result = { ...row }; delete result.record_json; diff --git a/happyview-modules/tests/unit/endpoints/rights-edge-lua.test.js b/happyview-modules/tests/unit/endpoints/rights-edge-lua.test.js index 0f2cf90d..baabaff7 100644 --- a/happyview-modules/tests/unit/endpoints/rights-edge-lua.test.js +++ b/happyview-modules/tests/unit/endpoints/rights-edge-lua.test.js @@ -22,6 +22,9 @@ async function endpointSources(name) { "lua/shared/datetimeValidation.lua", "lua/shared/listValidation.lua", "lua/shared/listQuery.lua", + "lua/shared/listCursor.lua", + "lua/shared/listWhere.lua", + "lua/shared/createdAtSort.lua", ); return Promise.all([...shared, `lua/src/${name}.lua`].map(read)); } diff --git a/happyview-modules/tests/unit/endpoints/rights-lua.test.js b/happyview-modules/tests/unit/endpoints/rights-lua.test.js index 9ec711de..92e00aff 100644 --- a/happyview-modules/tests/unit/endpoints/rights-lua.test.js +++ b/happyview-modules/tests/unit/endpoints/rights-lua.test.js @@ -106,6 +106,9 @@ async function listRightsSources() { read("lua/shared/datetimeValidation.lua"), read("lua/shared/listValidation.lua"), read("lua/shared/listQuery.lua"), + read("lua/shared/listCursor.lua"), + read("lua/shared/listWhere.lua"), + read("lua/shared/createdAtSort.lua"), read("lua/src/listRights.lua"), ]); } diff --git a/happyview-modules/tests/unit/feature.test.js b/happyview-modules/tests/unit/feature.test.js index 61a0ce36..ba08b923 100644 --- a/happyview-modules/tests/unit/feature.test.js +++ b/happyview-modules/tests/unit/feature.test.js @@ -3,6 +3,7 @@ import { spawnSync } from "node:child_process"; import { readFile } from "node:fs/promises"; import test from "node:test"; import { fileURLToPath } from "node:url"; +import { lua } from "./helpers/lua.js"; const root = fileURLToPath(new URL("../../", import.meta.url)); const FEATURE = "org.hypercerts.entity.feature"; @@ -32,19 +33,6 @@ const FEATURE_RECORD = { sameAs: ["https://example.org/features/wang-chhu"], }; -function lua(value) { - if (value === null) return "nil"; - if (typeof value === "string") return JSON.stringify(value); - if (typeof value === "number" || typeof value === "boolean") return String(value); - if (Array.isArray(value)) return `{${value.map(lua).join(",")}}`; - if (value && typeof value === "object") { - return `{${Object.entries(value) - .map(([key, item]) => `[${JSON.stringify(key)}]=${lua(item)}`) - .join(",")}}`; - } - throw new TypeError(`Cannot encode ${typeof value} as a Lua fixture`); -} - async function runGetFeature({ params = { uri: FEATURE_URI }, queryResults = null, @@ -151,6 +139,7 @@ async function runListFeatures( "lua/shared/datetimeValidation.lua", "lua/shared/listValidation.lua", "lua/shared/listQuery.lua", + "lua/shared/listWhere.lua", "lua/shared/featureValidation.lua", "lua/shared/recordView.lua", "lua/shared/featureProjection.lua", diff --git a/happyview-modules/tests/unit/helpers/lua.js b/happyview-modules/tests/unit/helpers/lua.js new file mode 100644 index 00000000..1c17069b --- /dev/null +++ b/happyview-modules/tests/unit/helpers/lua.js @@ -0,0 +1,18 @@ +/** + * Encodes a JS value as a Lua literal for test fixtures. `null` becomes `nil` + * and object keys whose value is `undefined` are omitted, which Lua treats the + * same as absent. Anything else without a Lua equivalent throws. + */ +export function lua(value) { + if (value === null) return "nil"; + if (typeof value === "string") return JSON.stringify(value); + if (typeof value === "number" || typeof value === "boolean") return String(value); + if (Array.isArray(value)) return `{${value.map(lua).join(",")}}`; + if (value && typeof value === "object") { + return `{${Object.entries(value) + .filter(([, item]) => item !== undefined) + .map(([key, item]) => `[${JSON.stringify(key)}]=${lua(item)}`) + .join(",")}}`; + } + throw new TypeError(`Cannot encode ${typeof value} as a Lua fixture`); +} diff --git a/happyview-modules/tests/unit/list-golden/fixtures.js b/happyview-modules/tests/unit/list-golden/fixtures.js new file mode 100644 index 00000000..c258d18b --- /dev/null +++ b/happyview-modules/tests/unit/list-golden/fixtures.js @@ -0,0 +1,731 @@ +import { hexCursor } from "./harness.js"; + +const DID = "did:plc:abcdefghijklmnopqrstuvwx"; +const TIMESTAMP = "2025-01-01T00:00:00Z"; +const COLLECTION_URI = `at://${DID}/org.hypercerts.collection/3kabcdefghijk`; +const ACTIVITY_URI = `at://${DID}/org.hypercerts.claim.activity/3kabcdefghijk`; + +/** + * Cursor shape per endpoint, found by probing the current bundles: the record + * collection the cursor `u` must point at, and which cursor layout the handler + * decodes. `dir` is {v,d,t,u}; `before` adds b=false; `filter` adds f=""; + * `item` is the position cursor {v,u,i} used by collection items (no timestamp). + * Timestamp format matters: acknowledgements only accept fractional seconds. + */ +const CURSORS = { + "app.certified.actor.listOrganizations": { + collection: "app.certified.actor.organization", + rkey: "self", + }, + "app.certified.actor.listProfiles": { + collection: "app.certified.actor.profile", + rkey: "self", + }, + "app.certified.actor.searchOrganizations": { + collection: "app.certified.actor.organization", + rkey: "self", + }, + "app.certified.actor.searchProfiles": { + collection: "app.certified.actor.profile", + rkey: "self", + }, + "app.certified.badge.listBadgeAwards": { + collection: "app.certified.badge.award", + }, + "app.certified.badge.listBadgeDefinitions": { + collection: "app.certified.badge.definition", + }, + "app.certified.badge.listBadgeResponses": { + collection: "app.certified.badge.response", + }, + "app.certified.badge.searchBadgeDefinitions": { + collection: "app.certified.badge.definition", + }, + "app.certified.feed.getActorLikes": { collection: "app.certified.feed.like" }, + "app.certified.feed.getActorReposts": { + collection: "app.certified.feed.repost", + }, + "app.certified.feed.getLikes": { collection: "app.certified.feed.like" }, + "app.certified.feed.getReposts": { collection: "app.certified.feed.repost" }, + "app.certified.graph.listActorFollowers": { + collection: "app.certified.graph.follow", + }, + "app.certified.graph.listActorFollowing": { + collection: "app.certified.graph.follow", + }, + "app.certified.graph.listEntityFollowers": { + collection: "app.certified.graph.entityFollow", + }, + "app.certified.graph.listEntityFollowing": { + collection: "app.certified.graph.entityFollow", + }, + "app.certified.graph.listRecentFollows": { + collection: "app.certified.graph.entityFollow", + shape: "before", + }, + "app.certified.link.listEvmLinks": { collection: "app.certified.link.evm" }, + "app.certified.location.listLocations": { + collection: "app.certified.location", + }, + "org.hypercerts.claim.listActivities": { + collection: "org.hypercerts.claim.activity", + }, + "org.hypercerts.claim.listContributions": { + collection: "org.hypercerts.claim.contribution", + }, + "org.hypercerts.claim.listContributorInformation": { + collection: "org.hypercerts.claim.contributorInformation", + }, + "org.hypercerts.claim.listRights": { + collection: "org.hypercerts.claim.rights", + }, + "org.hypercerts.claim.searchActivities": { + collection: "org.hypercerts.claim.activity", + }, + "org.hypercerts.collection.listCollectionItems": { shape: "item" }, + "org.hypercerts.collection.listCollections": { + collection: "org.hypercerts.collection", + }, + "org.hypercerts.collection.searchCollections": { + collection: "org.hypercerts.collection", + }, + "org.hypercerts.context.listAcknowledgements": { + collection: "org.hypercerts.context.acknowledgement", + timestamp: "2025-01-01T00:00:00.000000Z", + }, + "org.hypercerts.context.listAttachments": { + collection: "org.hypercerts.context.attachment", + }, + "org.hypercerts.context.listEvaluations": { + collection: "org.hypercerts.context.evaluation", + }, + "org.hypercerts.context.listMeasurements": { + collection: "org.hypercerts.context.measurement", + }, + "org.hypercerts.entity.listFeatures": { + collection: "org.hypercerts.entity.feature", + }, + "org.hypercerts.funding.listReceipts": { + collection: "org.hypercerts.funding.receipt", + }, + "org.hypercerts.vocab.listVocabTags": { + collection: "org.hypercerts.vocab.tag", + shape: "filter", + }, + "org.hypercerts.workscope.listWorkscopeTags": { + collection: "org.hypercerts.workscope.tag", + }, +}; + +/** Required request parameters, chosen by lexicon name/format. */ +function requiredValue(name, property) { + if (name === "search") return "test"; + if (name === "collection") return COLLECTION_URI; + if (property.format === "did") return DID; + if (property.format === "at-uri") return ACTIVITY_URI; + throw new Error(`No fixture value for required parameter "${name}"; add one to fixtures.js`); +} + +export function baseParams(endpoint) { + return Object.fromEntries( + endpoint.required.map((name) => [name, requiredValue(name, endpoint.properties[name])]), + ); +} + +/** A decodable cursor for the endpoint, or null if it has no fixture. */ +export function cursorFor(endpoint, direction, year = "2025", tOverride = undefined) { + const spec = CURSORS[endpoint.id]; + if (!spec) return null; + const timestamp = spec.timestamp ?? TIMESTAMP; + const t = tOverride ?? `${year}${timestamp.slice(4)}`; + const u = `at://${DID}/${spec.collection}/${spec.rkey ?? "3kabcdefghijk"}`; + if (spec.shape === "item") return { v: 1, u: COLLECTION_URI, i: 1 }; + if (spec.shape === "before") return { v: 1, t, u, b: false }; + if (spec.shape === "filter") return { v: 1, d: direction, f: "", t, u }; + return { v: 1, d: direction, t, u }; +} + +export function hasTimestampCursor(endpoint) { + return CURSORS[endpoint.id]?.shape !== "item"; +} + +/** Valid-enough values for filter parameters, derived from the lexicon schema. */ +const NAMED_STRINGS = { + organizationTypes: ["nonprofit", "company", "dao"], + visibility: ["public", "unlisted", "private"], + badgeTypes: ["volunteer", "contributor", "steward"], + locationTypes: ["coordinate-decimal", "geojson", "address"], + contentTypes: ["image/png", "application/pdf", "text/plain"], + types: ["project", "portfolio", "theme"], + addresses: [0, 1, 2].map((n) => `0x${String(n + 1).repeat(40)}`), + transactionIds: [0, 1, 2].map((n) => `0x${String(n + 1).repeat(64)}`), + before: ["2025-06-01T00:00:00Z"], +}; + +/** Collection an AT-URI-valued filter must point at, by parameter name. */ +const URI_COLLECTIONS = { + badgeUris: "app.certified.badge.definition", + badgeAward: "app.certified.badge.award", + itemUris: "org.hypercerts.claim.activity", + tagUris: "org.hypercerts.vocab.tag", + forUris: "org.hypercerts.claim.activity", + subjects: "org.hypercerts.claim.activity", +}; + +/** Unformatted string filters that accept either a DID or a record AT-URI. */ +const MIXED_IDENTIFIERS = new Set(["subjects", "from", "to"]); + +/** Endpoints whose mixed-identifier filters accept DIDs; the others take AT-URIs only. */ +const MIXED_LIST_ENDPOINTS = new Set([ + "app.certified.badge.listBadgeAwards", + "org.hypercerts.funding.listReceipts", +]); + +const variant = (value, n) => `${value.slice(0, -1)}${"xyz"[n % 3]}`; +const rkey = (n) => `3kabcdefghij${"abc"[n % 3]}`; + +/** The nth distinct valid value (0-2) for one filter parameter. */ +function filterValue(endpoint, name, property, n) { + const item = property.items ?? property; + if (item.enum) return item.enum[n % item.enum.length]; + if (item.format === "did") return variant(DID, n); + if (item.format === "at-uri") { + const collection = URI_COLLECTIONS[name] ?? CURSORS[endpoint.id]?.collection; + return `at://${DID}/${collection}/${rkey(n)}`; + } + if (MIXED_IDENTIFIERS.has(name)) { + return n === 1 ? variant(DID, n) : `at://${DID}/org.hypercerts.claim.activity/${rkey(n)}`; + } + const named = NAMED_STRINGS[name]; + if (!named) throw new Error(`No fixture value for parameter "${name}"; add one to fixtures.js`); + return named[n % named.length]; +} + +/** Optional filter parameters: everything except paging/sort and required inputs. */ +function filterParams(endpoint) { + const paging = new Set(["cursor", "limit", "sortDirection"]); + return Object.entries(endpoint.properties).filter( + ([name]) => !paging.has(name) && !endpoint.required.includes(name), + ); +} + +/** Mixed DID and AT-URI identifiers: pins the separator of the DID IN-list. */ +function mixedIdentifierCase(name, base) { + const mixed = [0, 1, 2, 3].map((n) => + n % 2 === 1 + ? variant(DID, n >> 1) + : `at://${DID}/org.hypercerts.claim.activity/${rkey(n >> 1)}`, + ); + return { + name: `filter:${name}:mixed-many`, + params: { ...base, [name]: mixed }, + }; +} + +function arrayFilterCases(endpoint, name, property, base, index) { + const values = [0, 1, 2].map((n) => filterValue(endpoint, name, property, n)); + const cases = [ + { name: `filter:${name}:many`, params: { ...base, [name]: values } }, + { + name: `filter:${name}:one`, + params: { ...base, [name]: values.slice(0, 1) }, + }, + { + name: `filter:${name}:one-scalar`, + params: { ...base, [name]: values[0] }, + }, + { + name: `filter:${name}:duplicate`, + params: { ...base, [name]: [values[0], values[0]] }, + }, + { name: `filter:${name}:empty`, params: { ...base, [name]: [] } }, + ]; + if (MIXED_IDENTIFIERS.has(name) && MIXED_LIST_ENDPOINTS.has(endpoint.id)) { + cases.push(mixedIdentifierCase(name, base)); + } + // Alternate the window so adjacent array filters get different value sets in + // filter:all and a swap of their inputs changes the recorded binds. + const start = index % 2; + return { cases, combined: values.slice(start, start + 2) }; +} + +function booleanFilterCases(name, base) { + const cases = [true, false, "true", "false"].map((value) => ({ + name: `filter:${name}=${typeof value}:${value}`, + params: { ...base, [name]: value }, + })); + return { cases, combined: true }; +} + +function scalarFilterCases(endpoint, name, property, base) { + const values = [0, 1, 2].map((n) => filterValue(endpoint, name, property, n)); + const cases = values.map((value) => ({ + name: `filter:${name}=${value}`, + params: { ...base, [name]: value }, + })); + return { cases, combined: values[0] }; +} + +function filterCasesFor(endpoint, name, property, base, index) { + if (property.type === "array") return arrayFilterCases(endpoint, name, property, base, index); + if (property.type === "boolean") return booleanFilterCases(name, base); + return scalarFilterCases(endpoint, name, property, base); +} + +/** Required parameters that are themselves arrays are not supported by any current endpoint. */ +function filterCases(endpoint, base) { + const cases = []; + const combined = {}; + for (const [index, [name, property]] of filterParams(endpoint).entries()) { + const result = filterCasesFor(endpoint, name, property, base, index); + cases.push(...result.cases); + combined[name] = result.combined; + } + if (Object.keys(combined).length > 1) { + cases.push({ name: "filter:all", params: { ...base, ...combined } }); + } + return cases; +} + +/** Days per month in a non-leap year, mirroring valid_datetime's month_days table. */ +const MONTH_DAYS = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; + +/** Last valid day and the day after it, for every month (February also in a leap year). */ +function monthBoundaryCursors() { + const pad = (n) => String(n).padStart(2, "0"); + const cases = {}; + const add = (year, month, day, verdict) => { + cases[`day-${year}-${pad(month)}-${pad(day)}-${verdict}`] = + `${year}-${pad(month)}-${pad(day)}T00:00:00Z`; + }; + MONTH_DAYS.forEach((max, index) => { + add(2025, index + 1, max, "valid"); + add(2025, index + 1, max + 1, "invalid"); + }); + add(2024, 2, 29, "valid"); + add(2024, 2, 30, "invalid"); + return cases; +} + +/** + * Cursor `t` values that pin lua/shared/datetimeValidation.lua valid_datetime + * (calendar, clock and zone-offset boundaries). Run against every timestamp- + * cursor endpoint rather than one per code path: bundles inline their own copy + * of the helper, so each endpoint is its own code path and a refactor could + * break any one. Acknowledgements accept only fractional-second cursors, so + * their "valid" cases are rejected there; the other endpoints pin acceptance. + */ +const DATETIME_CURSORS = { + "month-13": "2025-13-01T00:00:00Z", + "feb-30": "2025-02-30T00:00:00Z", + "leap-2024-valid": "2024-02-29T00:00:00Z", + "feb-29-2100": "2100-02-29T00:00:00Z", + "leap-2000-valid": "2000-02-29T00:00:00Z", + "second-60": "2025-01-01T00:00:60Z", + "hour-24": "2025-01-01T24:00:00Z", + "zone-minus-00-00": "2025-01-01T00:00:00-00:00", + "zone-plus-24-00": "2025-01-01T00:00:00+24:00", + "zone-minute-60": "2025-01-01T00:00:00+05:60", + "zone-plus-05-30-valid": "2025-01-01T00:00:00+05:30", + "fraction-valid": "2025-01-01T00:00:00.123456Z", + "fraction-offset-valid": "2025-01-01T00:00:00.5+05:30", + "no-zone": "2025-01-01T00:00:00", + "day-00": "2025-01-00T00:00:00Z", + "minute-60": "2025-01-01T00:60:00Z", + "fraction-empty": "2025-01-01T00:00:00.Z", + "fraction-empty-offset": "2025-01-01T00:00:00.+05:30", + "month-00": "2025-00-01T00:00:00Z", + "lowercase-z": "2025-01-01T00:00:00z", + "lowercase-t": "2025-01-01t00:00:00Z", + "trailing-junk": "2025-01-01T00:00:00Zjunk", + "zone-offset-trailing-junk": "2025-01-01T00:00:00+05:30junk", + "fraction-offset-trailing-junk": "2025-01-01T00:00:00.5+05:30junk", + "year-0001-valid": "0001-01-01T00:00:00Z", + "year-5-digit": "12025-01-01T00:00:00Z", + "end-of-year-valid": "2025-12-31T23:59:59Z", + "zone-plus-15-59": "2025-01-01T00:00:00+15:59", + "zone-minus-15-59": "2025-01-01T00:00:00-15:59", + "zone-plus-16-00": "2025-01-01T00:00:00+16:00", + "zone-minus-16-00": "2025-01-01T00:00:00-16:00", + "zone-plus-23-59-lua-accepted": "2025-01-01T00:00:00+23:59", + "zone-minus-23-59-lua-accepted": "2025-01-01T00:00:00-23:59", + "feb-29-2026": "2026-02-29T00:00:00Z", + "feb-29-2200": "2200-02-29T00:00:00Z", + ...monthBoundaryCursors(), +}; + +const WHOLE_SECOND_UTC = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$/; + +/** Endpoints whose cursor timestamp must carry fractional seconds. */ +function needsFraction(endpoint) { + return CURSORS[endpoint.id]?.timestamp?.includes(".") ?? false; +} + +/** Cursor token length cap (hex characters) enforced by most shared decoders. */ +const CURSOR_MAX_HEX = 8192; + +/** Hex cursor of exactly `hexLength` characters, padded with trailing JSON whitespace. */ +function paddedCursor(cursor, hexLength) { + const json = JSON.stringify(cursor); + return Buffer.from(json.padEnd(hexLength / 2, " "), "utf8").toString("hex"); +} + +/** Sort, limit and malformed-cursor cases that need no valid cursor for the endpoint. */ +function basicErrorCases(endpoint, base) { + const cases = []; + if (endpoint.properties.sortDirection) { + cases.push( + { + name: "error:sortDirection=bad", + params: { ...base, sortDirection: "bad" }, + }, + { + name: "error:sortDirection=ASC", + params: { ...base, sortDirection: "ASC" }, + }, + { + name: "error:sortDirection=empty", + params: { ...base, sortDirection: "" }, + }, + ); + } + for (const [label, limit] of [ + ["abc", "abc"], + ["1.5", "1.5"], + ["-1", "-1"], + ["0-string", "0"], + ["7-string", "7"], + ["empty", ""], + ]) { + cases.push({ name: `error:limit=${label}`, params: { ...base, limit } }); + } + // A query parameter repeated in the request arrives as an array; scalar() must reject it. + cases.push({ + name: "error:limit=array", + params: { ...base, limit: ["5", "6"] }, + }); + if (endpoint.properties.sortDirection) { + cases.push({ + name: "error:sortDirection=array", + params: { ...base, sortDirection: ["asc", "desc"] }, + }); + } + cases.push( + { name: "error:cursor:non-hex", params: { ...base, cursor: "zz" } }, + { name: "error:cursor:empty", params: { ...base, cursor: "" } }, + { + name: "error:cursor:hex-non-json", + params: { ...base, cursor: Buffer.from("not json", "utf8").toString("hex") }, + }, + ); + return cases; +} + +/** Ways to corrupt a valid decoded cursor, keyed by case label. */ +function cursorMutations(endpoint, good) { + const mutations = { + "wrong-v": (c) => (c.v = 2), + "wrong-collection": (c) => (c.u = `at://${DID}/app.bsky.feed.post/3kabcdefghijk`), + "missing-u": (c) => delete c.u, + "u-number": (c) => (c.u = 123), + "extra-key": (c) => (c.x = 1), + }; + // Fixed-rkey collections (profile/organization "self") must reject any other rkey. + if (CURSORS[endpoint.id]?.rkey) { + mutations["wrong-rkey"] = (c) => + (c.u = `at://${DID}/${CURSORS[endpoint.id].collection}/3kabcdefghijk`); + } + // A sibling collection sharing the "app.certified.badge." prefix must not pass a prefix check. + if (endpoint.id === "app.certified.badge.searchBadgeDefinitions") { + mutations["sibling-collection"] = (c) => + (c.u = `at://${DID}/app.certified.badge.award/3kabcdefghijk`); + } + if ("d" in good) { + mutations["wrong-d"] = (c) => (c.d = "sideways"); + mutations["opposite-d"] = (c) => (c.d = good.d === "asc" ? "desc" : "asc"); + } + if ("t" in good) { + mutations["bad-t"] = (c) => (c.t = "not-a-datetime"); + mutations["t-number"] = (c) => (c.t = 123); + mutations["missing-t"] = (c) => delete c.t; + } + if ("i" in good) { + mutations["bad-i"] = (c) => (c.i = "one"); + mutations["missing-i"] = (c) => delete c.i; + mutations["i-zero"] = (c) => (c.i = 0); + mutations["i-negative"] = (c) => (c.i = -1); + mutations["i-fractional"] = (c) => (c.i = 1.5); + } + if ("b" in good) mutations["bad-b"] = (c) => (c.b = "no"); + return mutations; +} + +/** Cursor cases built from a valid cursor (`good`) that is then corrupted or resized. */ +function cursorErrorCases(endpoint, base, direction, good) { + const withCursor = (cursor, extra = {}) => ({ + ...base, + ...(direction ? { sortDirection: direction } : {}), + ...extra, + cursor, + }); + const validHex = hexCursor(good); + const cases = [ + { name: "error:cursor:array", params: withCursor([validHex, validHex]) }, + { + name: "error:cursor:uppercase-hex", + params: withCursor(validHex.toUpperCase()), + }, + ]; + // Most shared decoders cap the token at CURSOR_MAX_HEX characters (even + // length, so +/-2 is the nearest accepted/rejected neighbour); the organization + // decoders do not. These are characterization cases, so the golden records + // whichever outcome each endpoint has. Padding with trailing JSON whitespace + // keeps the payload valid, so only the length varies. + for (const [label, hexLength] of [ + ["at-cap", CURSOR_MAX_HEX], + ["below-cap", CURSOR_MAX_HEX - 2], + ["above-cap", CURSOR_MAX_HEX + 2], + ]) { + cases.push({ + name: `cursor:length-${label}`, + params: withCursor(paddedCursor(good, hexLength)), + }); + } + if ("t" in good) { + for (const [label, t] of Object.entries(DATETIME_CURSORS)) { + const cursor = cursorFor(endpoint, direction ?? "desc", "2025", t); + cases.push({ + name: `datetime:cursor-t:${label}`, + params: withCursor(hexCursor(cursor)), + }); + // Fractional-only endpoints reject whole-second values on format alone, + // so also exercise the same calendar/clock value in the accepted format. + if (needsFraction(endpoint) && WHOLE_SECOND_UTC.test(t)) { + const fractional = cursorFor( + endpoint, + direction ?? "desc", + "2025", + t.replace("Z", ".000000Z"), + ); + cases.push({ + name: `datetime:cursor-t:${label}:fractional`, + params: withCursor(hexCursor(fractional)), + }); + } + } + } + for (const [label, mutate] of Object.entries(cursorMutations(endpoint, good))) { + const cursor = { ...good }; + mutate(cursor); + cases.push({ + name: `error:cursor:${label}`, + params: withCursor(hexCursor(cursor)), + }); + } + return cases; +} + +/** Input-validation cases that must be rejected before (or without) reaching SQL. */ +function errorCases(endpoint, base, directions) { + const cases = basicErrorCases(endpoint, base); + const direction = directions[0]; + const good = cursorFor(endpoint, direction ?? "desc", "2025"); + if (!good) return cases; + return [...cases, ...cursorErrorCases(endpoint, base, direction, good)]; +} + +/** + * Endpoints whose first query must return a row carrying `total_count` before + * the handler proceeds; an empty fake result would stop them at that check. + * Only that first query gets the row: replaying it for hydration queries + * would feed a record-less row to record decoders. + */ +const COUNT_ROW_ENDPOINTS = new Set([ + "app.certified.feed.getLikes", + "app.certified.feed.getReposts", + "app.certified.graph.listActorFollowers", + "app.certified.graph.listActorFollowing", + "app.certified.graph.listEntityFollowers", +]); + +/** Follow records name their target; entity-following scans decode it from the row. */ +function followSubject(collection, n) { + if (collection === "app.certified.graph.entityFollow") { + return { + subject: { + uri: `at://${rowDid(n)}/org.hypercerts.claim.activity/3kabcdefghijk`, + cid: `bafyactivity${n}`, + }, + }; + } + if (collection === "app.certified.graph.follow") return { subject: rowDid(n) }; + return {}; +} + +/** Distinct DID per page row, so hydration `IN (...)` lists bind several values. */ +function rowDid(n) { + return `did:plc:abcdefghijklmnopqrstuvw${"xyz"[n]}`; +} + +/** Organization records point at a location; distinct URIs make the location IN-list bind several. */ +function locationRef(collection, n) { + if (collection !== "app.certified.actor.organization") return {}; + return { + location: { + uri: `at://${rowDid(n)}/app.certified.location/3klocation${n}`, + cid: `bafylocation${n}`, + }, + }; +} + +/** One generic row carrying every column any list query selects. */ +function pageRow(endpoint, n) { + const spec = CURSORS[endpoint.id] ?? {}; + const collection = spec.collection ?? "org.hypercerts.claim.activity"; + const uri = `at://${rowDid(n)}/${collection}/${spec.rkey ?? rkey(n)}`; + const createdAt = `2025-01-0${n + 1}T00:00:00Z`; + return { + uri, + did: rowDid(n), + cid: `bafyfixture${n}`, + indexed_at: createdAt, + created_at: createdAt, + record: JSON.stringify({ + $type: collection, + createdAt, + ...followSubject(collection, n), + ...locationRef(collection, n), + }), + sort_timestamp: `2025-01-0${n + 1}T00:00:00.000000Z`, + actor_did: rowDid(n), + subject_did: rowDid(n), + total_count: String(TOTAL_COUNT), + }; +} + +const PAGE_ROWS = 3; +/** Database total, deliberately different from PAGE_ROWS so totals are not confused with page size. */ +const TOTAL_COUNT = 12; + +const collectionItems = (count) => + Array.from({ length: count }, (_, index) => index + 1).map((n) => ({ + itemIdentifier: { + uri: `at://${DID}/org.hypercerts.claim.activity/3kitem${n}`, + cid: `bafyitem${n}`, + }, + })); + +const COLLECTION_ITEMS = collectionItems(3); + +/** + * Rows for a page of `limit` = PAGE_ROWS - 1, so the handler sees limit+1 rows + * on its main (first) query and must encode a nextCursor. Later queries + * (hydration, counts) get no rows. + */ +function collectionRow(items) { + return { + uri: COLLECTION_URI, + did: DID, + cid: "bafyfixture", + indexed_at: TIMESTAMP, + record: JSON.stringify({ $type: "org.hypercerts.collection", items }), + }; +} + +/** Rows come back in SQL order: newest first unless the request sorts ascending. */ +function pagedRowsByCall(endpoint, direction) { + if (endpoint.id === "org.hypercerts.collection.listCollectionItems") { + return [[collectionRow(COLLECTION_ITEMS)]]; + } + const rows = Array.from({ length: PAGE_ROWS }, (_, n) => pageRow(endpoint, n)); + return [direction === "asc" ? rows : rows.reverse()]; +} + +/** Only the collection lookup returns the collection row; later queries see no rows. */ +function defaultRowsByCall(endpoint) { + if (endpoint.id !== "org.hypercerts.collection.listCollectionItems") return null; + return pagedRowsByCall(endpoint); +} + +export const CURSOR_FIXTURE_IDS = Object.keys(CURSORS); + +/** Fixed input cases for one endpoint. Names starting `year0000:` are quarantined. */ +export function casesFor(endpoint) { + const base = baseParams(endpoint); + const directions = endpoint.properties.sortDirection ? ["desc", "asc"] : [undefined]; + const withDirection = (direction) => (direction ? { sortDirection: direction } : {}); + const cursorParams = (direction, year) => ({ + ...base, + ...withDirection(direction), + cursor: hexCursor(cursorFor(endpoint, direction ?? "desc", year)), + }); + + const cases = [ + { name: "default", params: base }, + { name: "limit=1", params: { ...base, limit: 1 } }, + { name: "limit=7", params: { ...base, limit: 7 } }, + { name: "limit=99", params: { ...base, limit: 99 } }, + { name: "limit=100", params: { ...base, limit: 100 } }, + { name: "limit=0", params: { ...base, limit: 0 } }, + { name: "limit=101", params: { ...base, limit: 101 } }, + { name: "cursor:malformed", params: { ...base, cursor: "abc" } }, + ]; + for (const direction of directions) { + const paged = pagedRowsByCall(endpoint, direction); + const label = direction ?? "default"; + if (direction) { + cases.push({ + name: `sort=${label}`, + params: { ...base, ...withDirection(direction) }, + }); + } + cases.push( + { + name: `paged:${label}`, + params: { ...base, ...withDirection(direction), limit: PAGE_ROWS - 1 }, + rowsByCall: paged, + }, + { + name: `cursor:valid:${label}`, + params: cursorParams(direction, "2025"), + }, + { + name: `cursor:valid+limit=7:${label}`, + params: { ...cursorParams(direction, "2025"), limit: 7 }, + }, + ); + if (hasTimestampCursor(endpoint)) { + cases.push({ + name: `year0000:cursor:${label}`, + params: cursorParams(direction, "0000"), + }); + } + } + if (endpoint.properties.includeTotal) { + cases.push({ + name: "paged:includeTotal", + params: { ...base, limit: PAGE_ROWS - 1, includeTotal: true }, + rowsByCall: pagedRowsByCall(endpoint, directions[0]), + }); + } + if (endpoint.id === "org.hypercerts.collection.listCollectionItems") { + // More items than the default page size, no limit: pins the default limit (25) and its cursor. + cases.push({ + name: "default-limit:30-items", + params: base, + rowsByCall: [[collectionRow(collectionItems(30))]], + }); + } + cases.push(...filterCases(endpoint, base), ...errorCases(endpoint, base, directions)); + // Unpaged cases answer every query with the same minimal rows (if any is + // needed to get past a count check); paged cases bring their own. + const rowsByCall = defaultRowsByCall(endpoint); + const countCall = COUNT_ROW_ENDPOINTS.has(endpoint.id) ? [[{ total_count: "0" }]] : null; + return cases.map((c) => { + if (c.rowsByCall) return c; + if (String(c.params.includeTotal) === "true") + return { ...c, rowsByCall: [[{ total_count: "0" }]] }; + if (countCall) return { ...c, rowsByCall: countCall }; + return rowsByCall ? { ...c, rowsByCall } : c; + }); +} diff --git a/happyview-modules/tests/unit/list-golden/harness.js b/happyview-modules/tests/unit/list-golden/harness.js new file mode 100644 index 00000000..0817c28d --- /dev/null +++ b/happyview-modules/tests/unit/list-golden/harness.js @@ -0,0 +1,216 @@ +import { spawnSync } from "node:child_process"; +import { mkdtempSync, rmSync, writeFileSync } from "node:fs"; +import { tmpdir } from "node:os"; +import path from "node:path"; +import { fileURLToPath } from "node:url"; +import { loadAssets } from "../../../tooling/installer.js"; + +const root = fileURLToPath(new URL("../../../", import.meta.url)); + +/** Encodes a JS value as a Lua table/literal for the runner program. */ +export function lua(value) { + if (typeof value === "string") return JSON.stringify(value); + if (typeof value === "number" || typeof value === "boolean") return String(value); + if (Array.isArray(value)) return `{${value.map(lua).join(",")}}`; + if (typeof value === "object") { + return `{${Object.entries(value) + .filter(([, item]) => item !== undefined) + .map(([key, item]) => `[${JSON.stringify(key)}]=${lua(item)}`) + .join(",")}}`; + } + throw new TypeError(`Cannot encode ${typeof value} as a Lua literal`); +} + +/** Hex-encodes JSON, the cursor wire format every list endpoint decodes. */ +export function hexCursor(value) { + return Buffer.from(JSON.stringify(value), "utf8").toString("hex"); +} + +/** + * Every manifest-declared Lua query whose lexicon takes `cursor`, with its + * bundle path and lexicon parameter schema. Derived, never hardcoded. + */ +export async function listCursorEndpoints() { + const manifestPath = path.join(root, "manifest.json"); + const { assets } = await loadAssets(manifestPath); + const lexicons = new Map(assets.filter((a) => a.kind === "lexicon").map((a) => [a.id, a])); + const endpoints = []; + for (const asset of assets) { + if (asset.kind !== "script" || !asset.id.startsWith("xrpc.query:")) continue; + const id = asset.id.slice("xrpc.query:".length); + const parameters = lexicons.get(id)?.lexicon_json?.defs?.main?.parameters; + const properties = parameters?.properties ?? {}; + if (!properties.cursor) continue; + endpoints.push({ + id, + source: asset.body, + required: parameters.required ?? [], + properties, + }); + } + return endpoints.sort(compareIds); +} + +function compareIds(a, b) { + if (a.id < b.id) return -1; + return a.id > b.id ? 1 : 0; +} + +// Runs each case against a fresh copy of the bundle with a fake db that +// records every db.raw call and answers call N with `case.rowsByCall[N]`, else +// `case.rows`, else no rows. Output is one JSON line per case. +const RUNNER = String.raw` +local NULL = setmetatable({}, { __tostring = function() return "null" end }) +local ARRAYS = setmetatable({}, { __mode = "k" }) +local function enc(v) + local t = type(v) + if t == "string" then + return '"' .. v:gsub('[%c"\\]', function(c) return string.format("\\u%04x", c:byte()) end) .. '"' + elseif t == "number" then + if math.type(v) == "float" then return '""' end + return tostring(v) + elseif t == "boolean" then return tostring(v) + elseif v == NULL then return "null" + elseif t == "table" then + local n = 0 + for _ in pairs(v) do n = n + 1 end + local out = {} + if ARRAYS[v] or (n > 0 and n == #v) then + for _, x in ipairs(v) do out[#out + 1] = enc(x) end + return "[" .. table.concat(out, ",") .. "]" + end + local keys = {} + for k in pairs(v) do keys[#keys + 1] = k end + table.sort(keys, function(a, b) return tostring(a) < tostring(b) end) + for _, k in ipairs(keys) do out[#out + 1] = enc(tostring(k)) .. ":" .. enc(v[k]) end + return "{" .. table.concat(out, ",") .. "}" + end + return '"<' .. t .. '>"' +end +local function dec(s) + local i = 1 + local function ws() i = s:find("%S", i) or #s + 1 end + local val + local function str() + local j, out = i + 1, {} + while true do + local c = s:sub(j, j) + if c == "" then error("json.decode: eof") end + if c == '"' then i = j + 1; return table.concat(out) end + if c == "\\" then + local n = s:sub(j + 1, j + 1) + if n == "u" then out[#out + 1] = utf8.char(tonumber(s:sub(j + 2, j + 5), 16)); j = j + 6 + else out[#out + 1] = ({ n = "\n", t = "\t", r = "\r", b = "\b", f = "\f" })[n] or n; j = j + 2 end + else out[#out + 1] = c; j = j + 1 end + end + end + function val() + ws() + local c = s:sub(i, i) + if c == "{" then + local o = {} + i = i + 1; ws() + if s:sub(i, i) == "}" then i = i + 1; return o end + while true do + ws(); local k = str(); ws() + if s:sub(i, i) ~= ":" then error("json.decode: colon") end + i = i + 1; o[k] = val(); ws() + local d = s:sub(i, i); i = i + 1 + if d == "}" then return o elseif d ~= "," then error("json.decode: obj") end + end + elseif c == "[" then + local a = {} + i = i + 1; ws() + if s:sub(i, i) == "]" then i = i + 1; return a end + while true do + a[#a + 1] = val(); ws() + local d = s:sub(i, i); i = i + 1 + if d == "]" then return a elseif d ~= "," then error("json.decode: arr") end + end + elseif c == '"' then return str() + elseif s:sub(i, i + 3) == "true" then i = i + 4; return true + elseif s:sub(i, i + 4) == "false" then i = i + 5; return false + elseif s:sub(i, i + 3) == "null" then i = i + 4; return NULL + else + local num = s:match("^-?%d+%.?%d*[eE]?[+-]?%d*", i) + if not num or num == "" then error("json.decode: bad") end + i = i + #num + return tonumber(num) + end + end + local r = val(); ws() + if i <= #s then error("json.decode: trailing") end + return r +end +local source = io.open(BUNDLE, "rb"):read("a") +for _, case in ipairs(CASES) do + local calls = {} + local env = setmetatable({}, { __index = _G }) + env.json = { encode = enc, decode = dec } + -- HappyView serializes toarray(t) as a JSON array even when t is empty. + env.toarray = function(t) ARRAYS[t] = true; return t end + env.params = case.params + env.db = { + backend = function() return "postgres" end, + raw = function(sql, values) + -- Snapshot: a handler may reuse and mutate its bind table between calls. + local binds + if values ~= nil then + binds = {} + for k, x in pairs(values) do binds[k] = x end + end + calls[#calls + 1] = { sql = sql, binds = binds } + local by_call = case.rowsByCall and case.rowsByCall[#calls] + return by_call or case.rows or {} + end, + } + local chunk = assert(load(source, "=bundle", "t", env)) + chunk() + local ok, res = pcall(env.handle) + local outcome + if ok then outcome = { result = res } + else outcome = { error = tostring(res) } end + print(enc({ name = case.name, calls = calls, outcome = outcome })) +end +`; + +/** Runs every case against one bundle source; returns parsed per-case records. */ +export function runCases(source, cases) { + const dir = mkdtempSync(path.join(tmpdir(), "list-golden-")); + const bundle = path.join(dir, "bundle.lua"); + writeFileSync(bundle, source); + try { + return execute(bundle, cases); + } finally { + rmSync(dir, { recursive: true, force: true }); + } +} + +function execute(bundle, cases) { + const program = `BUNDLE=${JSON.stringify(bundle)}\nCASES=${lua(cases.map(({ name, params, rows, rowsByCall }) => ({ name, params, rows, rowsByCall })))}\n${RUNNER}`; + const run = spawnSync("lua5.4", ["-E", "-"], { + input: program, + encoding: "utf8", + maxBuffer: 64 << 20, + }); + if (run.error || run.status !== 0) { + throw new Error(`lua5.4 failed for ${bundle}: ${run.error ?? run.stderr}`); + } + const records = run.stdout + .trim() + .split("\n") + .map((line) => JSON.parse(line)); + for (const { name, outcome } of records) assertHandlerOutcome(name, outcome); + return records; +} + +// Handler rejections are `Name: message` (level-0 error, no source location). +// A located error (`bundle:12: ...`) is kept unstripped so it fails here. Anything else is a +// Lua runtime error, i.e. the harness or fixture rows are wrong, and a golden +// that recorded it would pin a crash instead of behavior. +function assertHandlerOutcome(name, { error }) { + if (error === undefined) return; + if (error.startsWith("stdin:") || !/^[A-Z][A-Za-z]+: /.test(error)) { + throw new Error(`case "${name}" hit a Lua runtime error, not a handler outcome: ${error}`); + } +} diff --git a/happyview-modules/tests/unit/list-golden/list-endpoints.golden.jsonl b/happyview-modules/tests/unit/list-golden/list-endpoints.golden.jsonl new file mode 100644 index 00000000..38f10a52 --- /dev/null +++ b/happyview-modules/tests/unit/list-golden/list-endpoints.golden.jsonl @@ -0,0 +1,4400 @@ +{"sql":"0000751407","text":"SELECT organization.uri, organization.did, organization.cid, organization.indexed_at::text AS indexed_at, organization.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS organization CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(organization.record::jsonb->'createdAt') = 'string' AND organization.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND organization.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(organization.record::jsonb->>'createdAt', 'timestamptz') THEN (organization.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(organization.indexed_at::timestamptz, organization.created_at::timestamptz) END AS sort_at) AS sorted WHERE organization.collection = $1 AND organization.rkey = 'self' AND FALSE AND (strpos(lower(COALESCE(organization.record::jsonb->>'legalName', '')), lower($2)) > 0 OR EXISTS (SELECT 1 FROM happyview_records AS profile WHERE profile.collection = $3 AND profile.did = organization.did AND profile.rkey = 'self' AND (strpos(lower(COALESCE(profile.record::jsonb->>'displayName', '')), lower($2)) > 0 OR strpos(lower(COALESCE(profile.record::jsonb->>'description', '')), lower($2)) > 0))) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $4"} +{"sql":"0026cd53dc","text":"SELECT contributor.uri, contributor.did, contributor.cid, contributor.indexed_at::text AS indexed_at, contributor.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS contributor CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(contributor.record::jsonb->'createdAt') = 'string' AND contributor.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND contributor.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(contributor.record::jsonb->>'createdAt', 'timestamptz') THEN (contributor.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(contributor.indexed_at::timestamptz, contributor.created_at::timestamptz) END AS sort_at) AS sorted WHERE contributor.collection = $1 AND (sorted.sort_at, contributor.uri) > (($2)::timestamptz, $3) ORDER BY sorted.sort_at ASC, contributor.uri ASC LIMIT $4"} +{"sql":"01313d9fc1","text":"SELECT organization.uri, organization.did, organization.cid, organization.indexed_at::text AS indexed_at, organization.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS organization CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(organization.record::jsonb->'createdAt') = 'string' AND organization.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND organization.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(organization.record::jsonb->>'createdAt', 'timestamptz') THEN (organization.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(organization.indexed_at::timestamptz, organization.created_at::timestamptz) END AS sort_at) AS sorted WHERE organization.collection = $1 AND organization.rkey = 'self' AND organization.did IN ($2, $3) AND EXISTS (SELECT 1 FROM jsonb_array_elements_text(CASE WHEN jsonb_typeof(organization.record::jsonb->'organizationType') = 'array' THEN organization.record::jsonb->'organizationType' ELSE '[]'::jsonb END) AS organization_type(value) WHERE organization_type.value IN ($4, $5)) AND organization.record::jsonb->>'visibility' = $6 AND (strpos(lower(COALESCE(organization.record::jsonb->>'legalName', '')), lower($7)) > 0 OR EXISTS (SELECT 1 FROM happyview_records AS profile WHERE profile.collection = $8 AND profile.did = organization.did AND profile.rkey = 'self' AND (strpos(lower(COALESCE(profile.record::jsonb->>'displayName', '')), lower($7)) > 0 OR strpos(lower(COALESCE(profile.record::jsonb->>'description', '')), lower($7)) > 0))) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $9"} +{"sql":"032ae5b6b1","text":"SELECT receipt.uri, receipt.did, receipt.cid, receipt.indexed_at::text AS indexed_at, receipt.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS receipt CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(receipt.record::jsonb->'createdAt') = 'string' AND receipt.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND receipt.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(receipt.record::jsonb->>'createdAt', 'timestamptz') THEN (receipt.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(receipt.indexed_at::timestamptz, receipt.created_at::timestamptz) END AS sort_at) AS sorted WHERE receipt.collection = $1 AND receipt.did IN ($2) ORDER BY sorted.sort_at DESC, receipt.uri DESC LIMIT $3"} +{"sql":"03715b3085","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND (record::jsonb)->>'locationType' IN ($2,$3,$4) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $5"} +{"sql":"03c5ffce2b","text":"SELECT award.uri, award.did, award.cid, award.indexed_at::text AS indexed_at, award.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp, badge.uri AS badge_uri, badge.cid AS badge_cid, badge.indexed_at::text AS badge_indexed_at, badge.did AS badge_did, badge.record::text AS badge_record, recipient_response.uri AS recipient_response_uri, recipient_response.cid AS recipient_response_cid, recipient_response.indexed_at::text AS recipient_response_indexed_at, recipient_response.did AS recipient_response_did, recipient_response.record::text AS recipient_response_record FROM happyview_records AS award CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(award.record::jsonb->'createdAt') = 'string' AND award.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND award.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(award.record::jsonb->>'createdAt', 'timestamptz') THEN (award.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(award.indexed_at::timestamptz, award.created_at::timestamptz) END AS sort_at) sorted LEFT JOIN happyview_records AS badge ON badge.collection = 'app.certified.badge.definition' AND badge.uri = award.record::jsonb->'badge'->>'uri' AND badge.cid = award.record::jsonb->'badge'->>'cid' LEFT JOIN LATERAL (SELECT response.uri, response.cid, response.indexed_at, response.did, response.record FROM happyview_records AS response WHERE response.collection = 'app.certified.badge.response' AND response.did = CASE WHEN jsonb_typeof(award.record::jsonb->'subject') = 'string' THEN award.record::jsonb->>'subject' WHEN jsonb_typeof(award.record::jsonb->'subject') = 'object' AND award.record::jsonb->'subject'->>'$type' = 'app.certified.defs#did' AND jsonb_typeof(award.record::jsonb->'subject'->'did') = 'string' THEN award.record::jsonb->'subject'->>'did' ELSE split_part(award.record::jsonb->'subject'->>'uri', '/', 3) END AND response.record::jsonb->'badgeAward'->>'uri' = award.uri AND response.record::jsonb->'badgeAward'->>'cid' = award.cid AND response.record::jsonb->>'response' IN ('accepted', 'rejected') ORDER BY response.indexed_at DESC NULLS LAST, response.uri DESC LIMIT 1) AS recipient_response ON TRUE WHERE award.collection = $1 AND award.did IN ($2) ORDER BY sorted.sort_at DESC, award.uri DESC LIMIT $3"} +{"sql":"0402e9caf5","text":"SELECT feature.uri, feature.did, feature.cid, feature.indexed_at::text AS indexed_at, feature.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS feature CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(feature.record::jsonb -> 'createdAt') = 'string' AND feature.record::jsonb ->> 'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND feature.record::jsonb ->> 'createdAt' !~ '-00:00$' AND pg_input_is_valid(feature.record::jsonb ->> 'createdAt', 'timestamptz') THEN (feature.record::jsonb ->> 'createdAt')::timestamptz ELSE COALESCE(feature.indexed_at::timestamptz, feature.created_at::timestamptz) END AS sort_at) AS sorted WHERE feature.collection = $1 ORDER BY sorted.sort_at ASC, feature.uri ASC LIMIT $2"} +{"sql":"04564cc9e7","text":"WITH candidates AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, sorted.sort_at FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz END AS sort_at) AS sorted WHERE collection IN ($1, $2) AND cid <> '' AND (collection <> $1 OR NOT COALESCE(starts_with(record::jsonb->'via'->>'uri', 'at://' || (record::jsonb->>'subject') || '/org.hypercerts.collection/'), FALSE))), page AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM candidates WHERE sort_at IS NOT NULL ORDER BY sort_at DESC, uri DESC LIMIT $3) SELECT uri, did, cid, indexed_at, record, to_char(sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM page ORDER BY sort_at DESC, uri DESC"} +{"sql":"04e237168d","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND record::jsonb->>'badgeType' IN ($2,$3,$4) AND (strpos(lower(COALESCE(record::jsonb->>'title', '')), lower($5)) > 0 OR strpos(lower(COALESCE(record::jsonb->>'description', '')), lower($5)) > 0) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $6"} +{"sql":"056193581d","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND did IN ($2,$3,$4) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $5"} +{"sql":"0606799c72","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record FROM happyview_records WHERE collection = $1 AND ((uri = $2 AND cid = $3))"} +{"sql":"060c0aac20","text":"WITH ranked_reactions AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, record::jsonb->'subject'->>'uri' ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND did = $2), representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM ranked_reactions WHERE relationship_rank = 1), page AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM representatives WHERE (sort_at, uri) > ($3::timestamptz, $4) ORDER BY sort_at ASC, uri ASC LIMIT $5) SELECT page.uri, page.did, page.cid, page.indexed_at, page.record, to_char(page.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM page ORDER BY page.sort_at ASC, page.uri ASC"} +{"sql":"06606f4591","text":"SELECT acknowledgement.uri, acknowledgement.did, acknowledgement.cid, acknowledgement.indexed_at::text AS indexed_at, acknowledgement.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS acknowledgement CROSS JOIN LATERAL (SELECT COALESCE(CASE WHEN jsonb_typeof(acknowledgement.record::jsonb->'createdAt') = 'string' AND acknowledgement.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND acknowledgement.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(acknowledgement.record::jsonb->>'createdAt', 'timestamptz') THEN (acknowledgement.record::jsonb->>'createdAt')::timestamptz ELSE NULL END, acknowledgement.indexed_at::timestamptz, acknowledgement.created_at::timestamptz) AS sort_at) AS sorted WHERE acknowledgement.collection = $1 ORDER BY sorted.sort_at DESC, acknowledgement.uri DESC LIMIT $2"} +{"sql":"0677ccea57","text":"SELECT evaluation.uri, evaluation.did, evaluation.cid, evaluation.indexed_at::text AS indexed_at, evaluation.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS evaluation CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(evaluation.record::jsonb->'createdAt') = 'string' AND evaluation.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND evaluation.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(evaluation.record::jsonb->>'createdAt', 'timestamptz') THEN (evaluation.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(evaluation.indexed_at::timestamptz, evaluation.created_at::timestamptz) END AS sort_at) AS sorted WHERE evaluation.collection = $1 AND evaluation.record::jsonb->'subject'->>'uri' IN ($2, $3, $4) ORDER BY sorted.sort_at DESC, evaluation.uri DESC LIMIT $5"} +{"sql":"07a40fe161","text":"SELECT award.uri, award.did, award.cid, award.indexed_at::text AS indexed_at, award.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp, badge.uri AS badge_uri, badge.cid AS badge_cid, badge.indexed_at::text AS badge_indexed_at, badge.did AS badge_did, badge.record::text AS badge_record, recipient_response.uri AS recipient_response_uri, recipient_response.cid AS recipient_response_cid, recipient_response.indexed_at::text AS recipient_response_indexed_at, recipient_response.did AS recipient_response_did, recipient_response.record::text AS recipient_response_record FROM happyview_records AS award CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(award.record::jsonb->'createdAt') = 'string' AND award.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND award.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(award.record::jsonb->>'createdAt', 'timestamptz') THEN (award.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(award.indexed_at::timestamptz, award.created_at::timestamptz) END AS sort_at) sorted LEFT JOIN happyview_records AS badge ON badge.collection = 'app.certified.badge.definition' AND badge.uri = award.record::jsonb->'badge'->>'uri' AND badge.cid = award.record::jsonb->'badge'->>'cid' LEFT JOIN LATERAL (SELECT response.uri, response.cid, response.indexed_at, response.did, response.record FROM happyview_records AS response WHERE response.collection = 'app.certified.badge.response' AND response.did = CASE WHEN jsonb_typeof(award.record::jsonb->'subject') = 'string' THEN award.record::jsonb->>'subject' WHEN jsonb_typeof(award.record::jsonb->'subject') = 'object' AND award.record::jsonb->'subject'->>'$type' = 'app.certified.defs#did' AND jsonb_typeof(award.record::jsonb->'subject'->'did') = 'string' THEN award.record::jsonb->'subject'->>'did' ELSE split_part(award.record::jsonb->'subject'->>'uri', '/', 3) END AND response.record::jsonb->'badgeAward'->>'uri' = award.uri AND response.record::jsonb->'badgeAward'->>'cid' = award.cid AND response.record::jsonb->>'response' IN ('accepted', 'rejected') ORDER BY response.indexed_at DESC NULLS LAST, response.uri DESC LIMIT 1) AS recipient_response ON TRUE WHERE award.collection = $1 AND ((jsonb_typeof(award.record::jsonb->'subject') = 'object' AND award.record::jsonb->'subject'->>'uri' IN ($2))) ORDER BY sorted.sort_at DESC, award.uri DESC LIMIT $3"} +{"sql":"089df365a0","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND FALSE ORDER BY sorted.sort_at DESC, uri DESC LIMIT $2"} +{"sql":"0974e3d21e","text":"SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS collection CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(collection.record::jsonb->'createdAt') = 'string' AND collection.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND collection.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(collection.record::jsonb->>'createdAt', 'timestamptz') THEN (collection.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(collection.indexed_at::timestamptz, collection.created_at::timestamptz) END AS sort_at) AS sorted WHERE collection.collection = $1 AND NOT EXISTS (SELECT 1 FROM happyview_records AS organization WHERE organization.collection = 'app.certified.actor.organization' AND organization.rkey = 'self' AND organization.did = collection.did) ORDER BY sorted.sort_at DESC, collection.uri DESC LIMIT $2"} +{"sql":"09d6d1b616","text":"SELECT rights.uri, rights.did, rights.cid, rights.indexed_at::text AS indexed_at, rights.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS rights CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(rights.record::jsonb->'createdAt') = 'string' AND rights.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND rights.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(rights.record::jsonb->>'createdAt', 'timestamptz') THEN (rights.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(rights.indexed_at::timestamptz, rights.created_at::timestamptz) END AS sort_at) AS sorted WHERE rights.collection = $1 AND rights.did IN ($2) ORDER BY sorted.sort_at DESC, rights.uri DESC LIMIT $3"} +{"sql":"0a164221a8","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record FROM happyview_records WHERE collection = $1 AND ((uri = $2 AND cid = $3) OR (uri = $4 AND cid = $5) OR (uri = $6 AND cid = $7))"} +{"sql":"0a4dfaace0","text":"SELECT activity.uri, activity.did, activity.cid, activity.indexed_at::text AS indexed_at, activity.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(activity.record::jsonb->'createdAt') = 'string' AND activity.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND activity.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(activity.record::jsonb->>'createdAt', 'timestamptz') THEN (activity.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(activity.indexed_at::timestamptz, activity.created_at::timestamptz) END AS sort_at) AS sorted WHERE activity.collection = $1 AND EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(activity.record::jsonb->'contributors') = 'array' THEN activity.record::jsonb->'contributors' ELSE '[]'::jsonb END) AS contributor(value) LEFT JOIN happyview_records AS ci ON ci.collection = 'org.hypercerts.claim.contributorInformation' AND ci.uri = (contributor.value->'contributorIdentity'->>'uri') AND ci.cid = (contributor.value->'contributorIdentity'->>'cid') WHERE (contributor.value->'contributorIdentity'->>'identity' IN ($2, $3, $4) OR substring(contributor.value->'contributorIdentity'->>'identity' from '^at://([^/]+)/') IN ($2, $3, $4) OR ci.record::jsonb->>'identifier' IN ($2, $3, $4) OR substring(ci.record::jsonb->>'identifier' from '^at://([^/]+)/') IN ($2, $3, $4))) AND (strpos(lower(COALESCE(activity.record::jsonb->>'title', '')), lower($5)) > 0 OR strpos(lower(COALESCE(activity.record::jsonb->>'shortDescription', '')), lower($5)) > 0) ORDER BY sorted.sort_at DESC, activity.uri DESC LIMIT $6"} +{"sql":"0af04d2949","text":"SELECT organization.uri, organization.did, organization.cid, organization.indexed_at::text AS indexed_at, organization.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS organization CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(organization.record::jsonb->'createdAt') = 'string' AND organization.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND organization.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(organization.record::jsonb->>'createdAt', 'timestamptz') THEN (organization.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(organization.indexed_at::timestamptz, organization.created_at::timestamptz) END AS sort_at) AS sorted WHERE organization.collection = $1 AND organization.rkey = 'self' AND (strpos(lower(COALESCE(organization.record::jsonb->>'legalName', '')), lower($2)) > 0 OR EXISTS (SELECT 1 FROM happyview_records AS profile WHERE profile.collection = $3 AND profile.did = organization.did AND profile.rkey = 'self' AND (strpos(lower(COALESCE(profile.record::jsonb->>'displayName', '')), lower($2)) > 0 OR strpos(lower(COALESCE(profile.record::jsonb->>'description', '')), lower($2)) > 0))) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $4"} +{"sql":"0b5e125e2f","text":"SELECT receipt.uri, receipt.did, receipt.cid, receipt.indexed_at::text AS indexed_at, receipt.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS receipt CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(receipt.record::jsonb->'createdAt') = 'string' AND receipt.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND receipt.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(receipt.record::jsonb->>'createdAt', 'timestamptz') THEN (receipt.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(receipt.indexed_at::timestamptz, receipt.created_at::timestamptz) END AS sort_at) AS sorted WHERE receipt.collection = $1 ORDER BY sorted.sort_at ASC, receipt.uri ASC LIMIT $2"} +{"sql":"0d65b5c846","text":"WITH ranked_follows AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, record::jsonb->>'subject' AS subject_did, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, record::jsonb->>'subject' ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND NOT COALESCE(starts_with(record::jsonb->'via'->>'uri', 'at://' || (record::jsonb->>'subject') || '/org.hypercerts.collection/'), FALSE) AND record::jsonb->>'subject' = $2), representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at, did AS actor_did FROM ranked_follows WHERE relationship_rank = 1), total AS (SELECT COUNT(*) AS total_count FROM representatives), page AS (SELECT uri, did, cid, indexed_at, record, sort_at, actor_did FROM representatives ORDER BY sort_at ASC, uri ASC LIMIT $3) SELECT page.uri, page.did, page.cid, page.indexed_at, page.record, page.actor_did, total.total_count, to_char(page.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM total LEFT JOIN page ON TRUE ORDER BY page.sort_at ASC, page.uri ASC"} +{"sql":"107d3663f6","text":"WITH ranked_follows AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, record::jsonb->>'subject' AS subject_did, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, record::jsonb->>'subject' ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND NOT COALESCE(starts_with(record::jsonb->'via'->>'uri', 'at://' || (record::jsonb->>'subject') || '/org.hypercerts.collection/'), FALSE) AND record::jsonb->>'subject' = $2), representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at, did AS actor_did FROM ranked_follows WHERE relationship_rank = 1), total AS (SELECT COUNT(*) AS total_count FROM representatives), page AS (SELECT uri, did, cid, indexed_at, record, sort_at, actor_did FROM representatives ORDER BY sort_at DESC, uri DESC LIMIT $3) SELECT page.uri, page.did, page.cid, page.indexed_at, page.record, page.actor_did, total.total_count, to_char(page.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM total LEFT JOIN page ON TRUE ORDER BY page.sort_at DESC, page.uri DESC"} +{"sql":"1179b6a5dd","text":"SELECT receipt.uri, receipt.did, receipt.cid, receipt.indexed_at::text AS indexed_at, receipt.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS receipt CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(receipt.record::jsonb->'createdAt') = 'string' AND receipt.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND receipt.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(receipt.record::jsonb->>'createdAt', 'timestamptz') THEN (receipt.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(receipt.indexed_at::timestamptz, receipt.created_at::timestamptz) END AS sort_at) AS sorted WHERE receipt.collection = $1 AND FALSE ORDER BY sorted.sort_at DESC, receipt.uri DESC LIMIT $2"} +{"sql":"142fb30cf8","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND rkey = 'self' AND (strpos(lower(COALESCE(record::jsonb->>'displayName', '')), lower($2)) > 0 OR strpos(lower(COALESCE(record::jsonb->>'description', '')), lower($2)) > 0) AND (sorted.sort_at, uri) < (($3)::timestamptz, $4) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $5"} +{"sql":"14e47d934d","text":"SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS collection CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(collection.record::jsonb->'createdAt') = 'string' AND collection.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND collection.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(collection.record::jsonb->>'createdAt', 'timestamptz') THEN (collection.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(collection.indexed_at::timestamptz, collection.created_at::timestamptz) END AS sort_at) AS sorted WHERE collection.collection = $1 AND FALSE AND (strpos(lower(COALESCE(collection.record::jsonb->>'title', '')), lower($2)) > 0 OR strpos(lower(COALESCE(collection.record::jsonb->>'shortDescription', '')), lower($2)) > 0) ORDER BY sorted.sort_at DESC, collection.uri DESC LIMIT $3"} +{"sql":"165b82cc8c","text":"SELECT attachment.uri, attachment.did, attachment.cid, attachment.indexed_at::text AS indexed_at, attachment.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS attachment CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(attachment.record::jsonb->'createdAt') = 'string' AND attachment.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND attachment.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(attachment.record::jsonb->>'createdAt', 'timestamptz') THEN (attachment.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(attachment.indexed_at::timestamptz, attachment.created_at::timestamptz) END AS sort_at) AS sorted WHERE attachment.collection = $1 AND (sorted.sort_at, attachment.uri) < (($2)::timestamptz, $3) ORDER BY sorted.sort_at DESC, attachment.uri DESC LIMIT $4"} +{"sql":"17c8e5bc72","text":"SELECT activity.uri, activity.did, activity.cid, activity.indexed_at::text AS indexed_at, activity.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(activity.record::jsonb->'createdAt') = 'string' AND activity.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND activity.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(activity.record::jsonb->>'createdAt', 'timestamptz') THEN (activity.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(activity.indexed_at::timestamptz, activity.created_at::timestamptz) END AS sort_at) AS sorted WHERE activity.collection = $1 AND EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(activity.record::jsonb->'contributors') = 'array' THEN activity.record::jsonb->'contributors' ELSE '[]'::jsonb END) AS contributor(value) LEFT JOIN happyview_records AS ci ON ci.collection = 'org.hypercerts.claim.contributorInformation' AND ci.uri = (contributor.value->'contributorIdentity'->>'uri') AND ci.cid = (contributor.value->'contributorIdentity'->>'cid') WHERE (contributor.value->'contributorIdentity'->>'identity' IN ($2) OR substring(contributor.value->'contributorIdentity'->>'identity' from '^at://([^/]+)/') IN ($2) OR ci.record::jsonb->>'identifier' IN ($2) OR substring(ci.record::jsonb->>'identifier' from '^at://([^/]+)/') IN ($2))) ORDER BY sorted.sort_at DESC, activity.uri DESC LIMIT $3"} +{"sql":"18e7a85675","text":"SELECT receipt.uri, receipt.did, receipt.cid, receipt.indexed_at::text AS indexed_at, receipt.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS receipt CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(receipt.record::jsonb->'createdAt') = 'string' AND receipt.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND receipt.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(receipt.record::jsonb->>'createdAt', 'timestamptz') THEN (receipt.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(receipt.indexed_at::timestamptz, receipt.created_at::timestamptz) END AS sort_at) AS sorted WHERE receipt.collection = $1 AND receipt.did IN ($2, $3, $4) ORDER BY sorted.sort_at DESC, receipt.uri DESC LIMIT $5"} +{"sql":"196724248c","text":"SELECT organization.uri, organization.did, organization.cid, organization.indexed_at::text AS indexed_at, organization.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS organization CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(organization.record::jsonb->'createdAt') = 'string' AND organization.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND organization.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(organization.record::jsonb->>'createdAt', 'timestamptz') THEN (organization.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(organization.indexed_at::timestamptz, organization.created_at::timestamptz) END AS sort_at) AS sorted WHERE organization.collection = $1 AND organization.rkey = 'self' AND (strpos(lower(COALESCE(organization.record::jsonb->>'legalName', '')), lower($2)) > 0 OR EXISTS (SELECT 1 FROM happyview_records AS profile WHERE profile.collection = $3 AND profile.did = organization.did AND profile.rkey = 'self' AND (strpos(lower(COALESCE(profile.record::jsonb->>'displayName', '')), lower($2)) > 0 OR strpos(lower(COALESCE(profile.record::jsonb->>'description', '')), lower($2)) > 0))) ORDER BY sorted.sort_at ASC, uri ASC LIMIT $4"} +{"sql":"19725c9990","text":"SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS collection CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(collection.record::jsonb->'createdAt') = 'string' AND collection.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND collection.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(collection.record::jsonb->>'createdAt', 'timestamptz') THEN (collection.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(collection.indexed_at::timestamptz, collection.created_at::timestamptz) END AS sort_at) AS sorted WHERE collection.collection = $1 AND EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(collection.record::jsonb->'tags') = 'array' THEN collection.record::jsonb->'tags' ELSE '[]'::jsonb END) AS tag(value) WHERE tag.value->>'uri' = $2) AND EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(collection.record::jsonb->'tags') = 'array' THEN collection.record::jsonb->'tags' ELSE '[]'::jsonb END) AS tag(value) WHERE tag.value->>'uri' = $3) AND EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(collection.record::jsonb->'tags') = 'array' THEN collection.record::jsonb->'tags' ELSE '[]'::jsonb END) AS tag(value) WHERE tag.value->>'uri' = $4) ORDER BY sorted.sort_at DESC, collection.uri DESC LIMIT $5"} +{"sql":"1a0a4d92bf","text":"SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS collection CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(collection.record::jsonb->'createdAt') = 'string' AND collection.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND collection.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(collection.record::jsonb->>'createdAt', 'timestamptz') THEN (collection.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(collection.indexed_at::timestamptz, collection.created_at::timestamptz) END AS sort_at) AS sorted WHERE collection.collection = $1 AND FALSE ORDER BY sorted.sort_at DESC, collection.uri DESC LIMIT $2"} +{"sql":"1a4336693f","text":"SELECT feature.uri, feature.did, feature.cid, feature.indexed_at::text AS indexed_at, feature.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS feature CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(feature.record::jsonb -> 'createdAt') = 'string' AND feature.record::jsonb ->> 'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND feature.record::jsonb ->> 'createdAt' !~ '-00:00$' AND pg_input_is_valid(feature.record::jsonb ->> 'createdAt', 'timestamptz') THEN (feature.record::jsonb ->> 'createdAt')::timestamptz ELSE COALESCE(feature.indexed_at::timestamptz, feature.created_at::timestamptz) END AS sort_at) AS sorted WHERE feature.collection = $1 AND feature.did IN ($2, $3) AND (jsonb_typeof(feature.record::jsonb -> 'type') = 'string' AND feature.record::jsonb ->> 'type' IN ($4, $5)) AND EXISTS (SELECT 1 FROM happyview_records AS organization WHERE organization.collection = 'app.certified.actor.organization' AND organization.rkey = 'self' AND organization.did = feature.did) ORDER BY sorted.sort_at DESC, feature.uri DESC LIMIT $6"} +{"sql":"1b8c5a6a7c","text":"SELECT DISTINCT ON (uri) uri, did, cid, indexed_at::text AS indexed_at, record::text AS record FROM happyview_records WHERE collection = $1 AND uri IN ($2, $3) ORDER BY uri, COALESCE(indexed_at::timestamptz, created_at::timestamptz) DESC, cid DESC"} +{"sql":"1bebe37cb6","text":"SELECT contribution.uri, contribution.did, contribution.cid, contribution.indexed_at::text AS indexed_at, contribution.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS contribution CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(contribution.record::jsonb->'createdAt') = 'string' AND contribution.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND contribution.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(contribution.record::jsonb->>'createdAt', 'timestamptz') THEN (contribution.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(contribution.indexed_at::timestamptz, contribution.created_at::timestamptz, 'epoch'::timestamptz) END AS sort_at) AS sorted WHERE contribution.collection = $1 ORDER BY sorted.sort_at ASC, contribution.uri ASC LIMIT $2"} +{"sql":"1c9c2867bb","text":"SELECT attachment.uri, attachment.did, attachment.cid, attachment.indexed_at::text AS indexed_at, attachment.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS attachment CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(attachment.record::jsonb->'createdAt') = 'string' AND attachment.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND attachment.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(attachment.record::jsonb->>'createdAt', 'timestamptz') THEN (attachment.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(attachment.indexed_at::timestamptz, attachment.created_at::timestamptz) END AS sort_at) AS sorted WHERE attachment.collection = $1 AND (sorted.sort_at, attachment.uri) > (($2)::timestamptz, $3) ORDER BY sorted.sort_at ASC, attachment.uri ASC LIMIT $4"} +{"sql":"1d0659e810","text":"SELECT link.uri, link.did, link.cid, link.indexed_at::text AS indexed_at, link.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS link CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(link.record::jsonb->'createdAt') = 'string' AND link.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND link.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(link.record::jsonb->>'createdAt', 'timestamptz') THEN (link.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(link.indexed_at::timestamptz, link.created_at::timestamptz) END AS sort_at) sorted WHERE link.collection = $1 AND FALSE ORDER BY sorted.sort_at DESC, link.uri DESC LIMIT $2"} +{"sql":"1df3d14bb5","text":"SELECT activity.uri, activity.did, activity.cid, activity.indexed_at::text AS indexed_at, activity.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(activity.record::jsonb->'createdAt') = 'string' AND activity.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND activity.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(activity.record::jsonb->>'createdAt', 'timestamptz') THEN (activity.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(activity.indexed_at::timestamptz, activity.created_at::timestamptz) END AS sort_at) AS sorted WHERE activity.collection = $1 AND (sorted.sort_at, activity.uri) < (($2)::timestamptz, $3) ORDER BY sorted.sort_at DESC, activity.uri DESC LIMIT $4"} +{"sql":"1f264cba3c","text":"SELECT feature.uri, feature.did, feature.cid, feature.indexed_at::text AS indexed_at, feature.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS feature CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(feature.record::jsonb -> 'createdAt') = 'string' AND feature.record::jsonb ->> 'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND feature.record::jsonb ->> 'createdAt' !~ '-00:00$' AND pg_input_is_valid(feature.record::jsonb ->> 'createdAt', 'timestamptz') THEN (feature.record::jsonb ->> 'createdAt')::timestamptz ELSE COALESCE(feature.indexed_at::timestamptz, feature.created_at::timestamptz) END AS sort_at) AS sorted WHERE feature.collection = $1 AND EXISTS (SELECT 1 FROM happyview_records AS organization WHERE organization.collection = 'app.certified.actor.organization' AND organization.rkey = 'self' AND organization.did = feature.did) ORDER BY sorted.sort_at DESC, feature.uri DESC LIMIT $2"} +{"sql":"206721283b","text":"SELECT acknowledgement.uri, acknowledgement.did, acknowledgement.cid, acknowledgement.indexed_at::text AS indexed_at, acknowledgement.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS acknowledgement CROSS JOIN LATERAL (SELECT COALESCE(CASE WHEN jsonb_typeof(acknowledgement.record::jsonb->'createdAt') = 'string' AND acknowledgement.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND acknowledgement.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(acknowledgement.record::jsonb->>'createdAt', 'timestamptz') THEN (acknowledgement.record::jsonb->>'createdAt')::timestamptz ELSE NULL END, acknowledgement.indexed_at::timestamptz, acknowledgement.created_at::timestamptz) AS sort_at) AS sorted WHERE acknowledgement.collection = $1 ORDER BY sorted.sort_at ASC, acknowledgement.uri ASC LIMIT $2"} +{"sql":"2078d19ad6","text":"SELECT acknowledgement.uri, acknowledgement.did, acknowledgement.cid, acknowledgement.indexed_at::text AS indexed_at, acknowledgement.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS acknowledgement CROSS JOIN LATERAL (SELECT COALESCE(CASE WHEN jsonb_typeof(acknowledgement.record::jsonb->'createdAt') = 'string' AND acknowledgement.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND acknowledgement.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(acknowledgement.record::jsonb->>'createdAt', 'timestamptz') THEN (acknowledgement.record::jsonb->>'createdAt')::timestamptz ELSE NULL END, acknowledgement.indexed_at::timestamptz, acknowledgement.created_at::timestamptz) AS sort_at) AS sorted WHERE acknowledgement.collection = $1 AND FALSE ORDER BY sorted.sort_at DESC, acknowledgement.uri DESC LIMIT $2"} +{"sql":"2125462720","text":"SELECT feature.uri, feature.did, feature.cid, feature.indexed_at::text AS indexed_at, feature.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS feature CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(feature.record::jsonb -> 'createdAt') = 'string' AND feature.record::jsonb ->> 'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND feature.record::jsonb ->> 'createdAt' !~ '-00:00$' AND pg_input_is_valid(feature.record::jsonb ->> 'createdAt', 'timestamptz') THEN (feature.record::jsonb ->> 'createdAt')::timestamptz ELSE COALESCE(feature.indexed_at::timestamptz, feature.created_at::timestamptz) END AS sort_at) AS sorted WHERE feature.collection = $1 AND (sorted.sort_at, feature.uri) > (($2)::timestamptz, $3) ORDER BY sorted.sort_at ASC, feature.uri ASC LIMIT $4"} +{"sql":"21615a0aef","text":"SELECT acknowledgement.uri, acknowledgement.did, acknowledgement.cid, acknowledgement.indexed_at::text AS indexed_at, acknowledgement.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS acknowledgement CROSS JOIN LATERAL (SELECT COALESCE(CASE WHEN jsonb_typeof(acknowledgement.record::jsonb->'createdAt') = 'string' AND acknowledgement.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND acknowledgement.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(acknowledgement.record::jsonb->>'createdAt', 'timestamptz') THEN (acknowledgement.record::jsonb->>'createdAt')::timestamptz ELSE NULL END, acknowledgement.indexed_at::timestamptz, acknowledgement.created_at::timestamptz) AS sort_at) AS sorted WHERE acknowledgement.collection = $1 AND acknowledgement.did IN ($2) ORDER BY sorted.sort_at DESC, acknowledgement.uri DESC LIMIT $3"} +{"sql":"217da8ce90","text":"SELECT attachment.uri, attachment.did, attachment.cid, attachment.indexed_at::text AS indexed_at, attachment.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS attachment CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(attachment.record::jsonb->'createdAt') = 'string' AND attachment.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND attachment.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(attachment.record::jsonb->>'createdAt', 'timestamptz') THEN (attachment.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(attachment.indexed_at::timestamptz, attachment.created_at::timestamptz) END AS sort_at) AS sorted WHERE attachment.collection = $1 AND attachment.uri IN ($2) ORDER BY sorted.sort_at DESC, attachment.uri DESC LIMIT $3"} +{"sql":"22bccf85c3","text":"SELECT response.uri, response.did, response.cid, response.indexed_at::text AS indexed_at, response.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS response CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(response.record::jsonb->'createdAt') = 'string' AND response.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND response.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(response.record::jsonb->>'createdAt', 'timestamptz') THEN (response.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(response.indexed_at::timestamptz, response.created_at::timestamptz) END AS sort_at) sorted WHERE response.collection = $1 AND (sorted.sort_at, response.uri) > (($2)::timestamptz, $3) ORDER BY sorted.sort_at ASC, response.uri ASC LIMIT $4"} +{"sql":"22e0220699","text":"SELECT organization.uri, organization.did, organization.cid, organization.indexed_at::text AS indexed_at, organization.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS organization CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(organization.record::jsonb->'createdAt') = 'string' AND organization.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND organization.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(organization.record::jsonb->>'createdAt', 'timestamptz') THEN (organization.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(organization.indexed_at::timestamptz, organization.created_at::timestamptz) END AS sort_at) AS sorted WHERE organization.collection = $1 AND organization.rkey = 'self' ORDER BY sorted.sort_at DESC, uri DESC LIMIT $2"} +{"sql":"235652cf2d","text":"WITH ranked_reactions AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, record::jsonb->'subject'->>'uri' ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND record::jsonb->'subject'->>'uri' = $2), representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM ranked_reactions WHERE relationship_rank = 1), total AS (SELECT COUNT(*) AS total_count FROM representatives), page AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM representatives ORDER BY sort_at DESC, uri DESC LIMIT $3) SELECT page.uri, page.did, page.cid, page.indexed_at, page.record, to_char(page.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp , total.total_count FROM total LEFT JOIN page ON TRUE ORDER BY page.sort_at DESC, page.uri DESC"} +{"sql":"238b55a03a","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND rkey = 'self' AND (strpos(lower(COALESCE(record::jsonb->>'displayName', '')), lower($2)) > 0 OR strpos(lower(COALESCE(record::jsonb->>'description', '')), lower($2)) > 0) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $3"} +{"sql":"259d5b6011","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND rkey = 'self' ORDER BY sorted.sort_at DESC, uri DESC LIMIT $2"} +{"sql":"25a23858f5","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record FROM happyview_records WHERE collection = $1 AND ((uri = $2 AND cid = $3) OR (uri = $4 AND cid = $5))"} +{"sql":"269699e131","text":"SELECT link.uri, link.did, link.cid, link.indexed_at::text AS indexed_at, link.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS link CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(link.record::jsonb->'createdAt') = 'string' AND link.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND link.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(link.record::jsonb->>'createdAt', 'timestamptz') THEN (link.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(link.indexed_at::timestamptz, link.created_at::timestamptz) END AS sort_at) sorted WHERE link.collection = $1 AND link.did IN ($2) ORDER BY sorted.sort_at DESC, link.uri DESC LIMIT $3"} +{"sql":"26f10c09e4","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record FROM happyview_records WHERE collection = $1 AND rkey = 'self' AND did IN ($2, $3)"} +{"sql":"2712d7dd78","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND (sorted.sort_at, uri) < (($2)::timestamptz, $3) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $4"} +{"sql":"2888f75ed0","text":"SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS collection CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(collection.record::jsonb->'createdAt') = 'string' AND collection.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND collection.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(collection.record::jsonb->>'createdAt', 'timestamptz') THEN (collection.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(collection.indexed_at::timestamptz, collection.created_at::timestamptz) END AS sort_at) AS sorted WHERE collection.collection = $1 AND collection.did IN ($2) ORDER BY sorted.sort_at DESC, collection.uri DESC LIMIT $3"} +{"sql":"29d082424e","text":"SELECT evaluation.uri, evaluation.did, evaluation.cid, evaluation.indexed_at::text AS indexed_at, evaluation.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS evaluation CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(evaluation.record::jsonb->'createdAt') = 'string' AND evaluation.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND evaluation.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(evaluation.record::jsonb->>'createdAt', 'timestamptz') THEN (evaluation.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(evaluation.indexed_at::timestamptz, evaluation.created_at::timestamptz) END AS sort_at) AS sorted WHERE evaluation.collection = $1 AND EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(evaluation.record::jsonb->'evaluators') = 'array' THEN evaluation.record::jsonb->'evaluators' ELSE '[]'::jsonb END) AS evaluator(value) WHERE evaluator.value->>'did' IN ($2)) ORDER BY sorted.sort_at DESC, evaluation.uri DESC LIMIT $3"} +{"sql":"2a35c20591","text":"SELECT activity.uri, activity.did, activity.cid, activity.indexed_at::text AS indexed_at, activity.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(activity.record::jsonb->'createdAt') = 'string' AND activity.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND activity.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(activity.record::jsonb->>'createdAt', 'timestamptz') THEN (activity.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(activity.indexed_at::timestamptz, activity.created_at::timestamptz) END AS sort_at) AS sorted WHERE activity.collection = $1 AND EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(activity.record::jsonb->'contributors') = 'array' THEN activity.record::jsonb->'contributors' ELSE '[]'::jsonb END) AS contributor(value) LEFT JOIN happyview_records AS ci ON ci.collection = 'org.hypercerts.claim.contributorInformation' AND ci.uri = (contributor.value->'contributorIdentity'->>'uri') AND ci.cid = (contributor.value->'contributorIdentity'->>'cid') WHERE (contributor.value->'contributorIdentity'->>'identity' IN ($2) OR substring(contributor.value->'contributorIdentity'->>'identity' from '^at://([^/]+)/') IN ($2) OR ci.record::jsonb->>'identifier' IN ($2) OR substring(ci.record::jsonb->>'identifier' from '^at://([^/]+)/') IN ($2))) AND (strpos(lower(COALESCE(activity.record::jsonb->>'title', '')), lower($3)) > 0 OR strpos(lower(COALESCE(activity.record::jsonb->>'shortDescription', '')), lower($3)) > 0) ORDER BY sorted.sort_at DESC, activity.uri DESC LIMIT $4"} +{"sql":"2bb21188b6","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND (strpos(lower(COALESCE(record::jsonb->>'title', '')), lower($2)) > 0 OR strpos(lower(COALESCE(record::jsonb->>'description', '')), lower($2)) > 0) AND (sorted.sort_at, uri) > (($3)::timestamptz, $4) ORDER BY sorted.sort_at ASC, uri ASC LIMIT $5"} +{"sql":"2c2e211709","text":"SELECT measurement.uri, measurement.did, measurement.cid, measurement.indexed_at::text AS indexed_at, measurement.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS measurement CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(measurement.record::jsonb->'createdAt') = 'string' AND measurement.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND measurement.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(measurement.record::jsonb->>'createdAt', 'timestamptz') THEN (measurement.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(measurement.indexed_at::timestamptz, measurement.created_at::timestamptz) END AS sort_at) AS sorted WHERE measurement.collection = $1 AND (sorted.sort_at, measurement.uri) < (($2)::timestamptz, $3) ORDER BY sorted.sort_at DESC, measurement.uri DESC LIMIT $4"} +{"sql":"2cd52c5f03","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND rkey = 'self' AND (strpos(lower(COALESCE(record::jsonb->>'displayName', '')), lower($2)) > 0 OR strpos(lower(COALESCE(record::jsonb->>'description', '')), lower($2)) > 0) AND (sorted.sort_at, uri) > (($3)::timestamptz, $4) ORDER BY sorted.sort_at ASC, uri ASC LIMIT $5"} +{"sql":"2e4b9a5ce8","text":"SELECT feature.uri, feature.did, feature.cid, feature.indexed_at::text AS indexed_at, feature.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS feature CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(feature.record::jsonb -> 'createdAt') = 'string' AND feature.record::jsonb ->> 'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND feature.record::jsonb ->> 'createdAt' !~ '-00:00$' AND pg_input_is_valid(feature.record::jsonb ->> 'createdAt', 'timestamptz') THEN (feature.record::jsonb ->> 'createdAt')::timestamptz ELSE COALESCE(feature.indexed_at::timestamptz, feature.created_at::timestamptz) END AS sort_at) AS sorted WHERE feature.collection = $1 AND feature.did IN ($2) ORDER BY sorted.sort_at DESC, feature.uri DESC LIMIT $3"} +{"sql":"305030aa27","text":"SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS collection CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(collection.record::jsonb->'createdAt') = 'string' AND collection.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND collection.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(collection.record::jsonb->>'createdAt', 'timestamptz') THEN (collection.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(collection.indexed_at::timestamptz, collection.created_at::timestamptz) END AS sort_at) AS sorted WHERE collection.collection = $1 AND EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(collection.record::jsonb->'tags') = 'array' THEN collection.record::jsonb->'tags' ELSE '[]'::jsonb END) AS tag(value) WHERE tag.value->>'uri' = $2) ORDER BY sorted.sort_at DESC, collection.uri DESC LIMIT $3"} +{"sql":"305c607ef5","text":"SELECT receipt.uri, receipt.did, receipt.cid, receipt.indexed_at::text AS indexed_at, receipt.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS receipt CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(receipt.record::jsonb->'createdAt') = 'string' AND receipt.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND receipt.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(receipt.record::jsonb->>'createdAt', 'timestamptz') THEN (receipt.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(receipt.indexed_at::timestamptz, receipt.created_at::timestamptz) END AS sort_at) AS sorted WHERE receipt.collection = $1 AND receipt.did IN ($2, $3) AND receipt.uri IN ($4, $5) AND ((receipt.record::jsonb->'from'->>'$type' = 'app.certified.defs#did' AND receipt.record::jsonb->'from'->>'did' IN ($6)) OR (receipt.record::jsonb->'from'->>'$type' = 'com.atproto.repo.strongRef' AND receipt.record::jsonb->'from'->>'uri' IN ($7))) AND ((receipt.record::jsonb->'to'->>'$type' = 'app.certified.defs#did' AND receipt.record::jsonb->'to'->>'did' IN ($8)) OR (receipt.record::jsonb->'to'->>'$type' = 'com.atproto.repo.strongRef' AND receipt.record::jsonb->'to'->>'uri' IN ($9))) AND receipt.record::jsonb->'for'->>'uri' IN ($10, $11) AND receipt.record::jsonb->>'transactionId' IN ($12, $13) ORDER BY sorted.sort_at DESC, receipt.uri DESC LIMIT $14"} +{"sql":"3292022713","text":"SELECT attachment.uri, attachment.did, attachment.cid, attachment.indexed_at::text AS indexed_at, attachment.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS attachment CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(attachment.record::jsonb->'createdAt') = 'string' AND attachment.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND attachment.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(attachment.record::jsonb->>'createdAt', 'timestamptz') THEN (attachment.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(attachment.indexed_at::timestamptz, attachment.created_at::timestamptz) END AS sort_at) AS sorted WHERE attachment.collection = $1 AND EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(attachment.record::jsonb->'subjects') = 'array' THEN attachment.record::jsonb->'subjects' ELSE '[]'::jsonb END) AS subject(value) WHERE subject.value->>'uri' IN ($2)) ORDER BY sorted.sort_at DESC, attachment.uri DESC LIMIT $3"} +{"sql":"3579ec0f41","text":"SELECT evaluation.uri, evaluation.did, evaluation.cid, evaluation.indexed_at::text AS indexed_at, evaluation.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS evaluation CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(evaluation.record::jsonb->'createdAt') = 'string' AND evaluation.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND evaluation.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(evaluation.record::jsonb->>'createdAt', 'timestamptz') THEN (evaluation.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(evaluation.indexed_at::timestamptz, evaluation.created_at::timestamptz) END AS sort_at) AS sorted WHERE evaluation.collection = $1 AND (sorted.sort_at, evaluation.uri) > (($2)::timestamptz, $3) ORDER BY sorted.sort_at ASC, evaluation.uri ASC LIMIT $4"} +{"sql":"35974e51d7","text":"SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS collection CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(collection.record::jsonb->'createdAt') = 'string' AND collection.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND collection.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(collection.record::jsonb->>'createdAt', 'timestamptz') THEN (collection.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(collection.indexed_at::timestamptz, collection.created_at::timestamptz) END AS sort_at) AS sorted WHERE collection.collection = $1 AND collection.did IN ($2, $3) AND EXISTS (SELECT 1 FROM happyview_records AS organization WHERE organization.collection = 'app.certified.actor.organization' AND organization.rkey = 'self' AND organization.did = collection.did) AND collection.record::jsonb->>'type' IN ($4, $5) AND collection.uri IN ($6, $7) AND EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(collection.record::jsonb->'items') = 'array' THEN collection.record::jsonb->'items' ELSE '[]'::jsonb END) AS item(value) WHERE item.value->'itemIdentifier'->>'uri' IN ($8, $9)) AND EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(collection.record::jsonb->'tags') = 'array' THEN collection.record::jsonb->'tags' ELSE '[]'::jsonb END) AS tag(value) WHERE tag.value->>'uri' = $10) AND EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(collection.record::jsonb->'tags') = 'array' THEN collection.record::jsonb->'tags' ELSE '[]'::jsonb END) AS tag(value) WHERE tag.value->>'uri' = $11) ORDER BY sorted.sort_at DESC, collection.uri DESC LIMIT $12"} +{"sql":"36e6f96de2","text":"SELECT award.uri, award.did, award.cid, award.indexed_at::text AS indexed_at, award.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp, badge.uri AS badge_uri, badge.cid AS badge_cid, badge.indexed_at::text AS badge_indexed_at, badge.did AS badge_did, badge.record::text AS badge_record, recipient_response.uri AS recipient_response_uri, recipient_response.cid AS recipient_response_cid, recipient_response.indexed_at::text AS recipient_response_indexed_at, recipient_response.did AS recipient_response_did, recipient_response.record::text AS recipient_response_record FROM happyview_records AS award CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(award.record::jsonb->'createdAt') = 'string' AND award.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND award.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(award.record::jsonb->>'createdAt', 'timestamptz') THEN (award.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(award.indexed_at::timestamptz, award.created_at::timestamptz) END AS sort_at) sorted LEFT JOIN happyview_records AS badge ON badge.collection = 'app.certified.badge.definition' AND badge.uri = award.record::jsonb->'badge'->>'uri' AND badge.cid = award.record::jsonb->'badge'->>'cid' LEFT JOIN LATERAL (SELECT response.uri, response.cid, response.indexed_at, response.did, response.record FROM happyview_records AS response WHERE response.collection = 'app.certified.badge.response' AND response.did = CASE WHEN jsonb_typeof(award.record::jsonb->'subject') = 'string' THEN award.record::jsonb->>'subject' WHEN jsonb_typeof(award.record::jsonb->'subject') = 'object' AND award.record::jsonb->'subject'->>'$type' = 'app.certified.defs#did' AND jsonb_typeof(award.record::jsonb->'subject'->'did') = 'string' THEN award.record::jsonb->'subject'->>'did' ELSE split_part(award.record::jsonb->'subject'->>'uri', '/', 3) END AND response.record::jsonb->'badgeAward'->>'uri' = award.uri AND response.record::jsonb->'badgeAward'->>'cid' = award.cid AND response.record::jsonb->>'response' IN ('accepted', 'rejected') ORDER BY response.indexed_at DESC NULLS LAST, response.uri DESC LIMIT 1) AS recipient_response ON TRUE WHERE award.collection = $1 AND COALESCE(recipient_response.record::jsonb->>'response', 'unanswered') IN ($2,$3,$4) ORDER BY sorted.sort_at DESC, award.uri DESC LIMIT $5"} +{"sql":"38a6653b6f","text":"SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS collection CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(collection.record::jsonb->'createdAt') = 'string' AND collection.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND collection.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(collection.record::jsonb->>'createdAt', 'timestamptz') THEN (collection.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(collection.indexed_at::timestamptz, collection.created_at::timestamptz) END AS sort_at) AS sorted WHERE collection.collection = $1 AND collection.uri IN ($2) ORDER BY sorted.sort_at DESC, collection.uri DESC LIMIT $3"} +{"sql":"39b32463ae","text":"WITH matched AS (SELECT sorted.sort_at, award.uri, award.did, award.cid, award.indexed_at::text AS indexed_at, award.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp, badge.uri AS badge_uri, badge.cid AS badge_cid, badge.indexed_at::text AS badge_indexed_at, badge.did AS badge_did, badge.record::text AS badge_record, recipient_response.uri AS recipient_response_uri, recipient_response.cid AS recipient_response_cid, recipient_response.indexed_at::text AS recipient_response_indexed_at, recipient_response.did AS recipient_response_did, recipient_response.record::text AS recipient_response_record FROM happyview_records AS award CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(award.record::jsonb->'createdAt') = 'string' AND award.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND award.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(award.record::jsonb->>'createdAt', 'timestamptz') THEN (award.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(award.indexed_at::timestamptz, award.created_at::timestamptz) END AS sort_at) sorted LEFT JOIN happyview_records AS badge ON badge.collection = 'app.certified.badge.definition' AND badge.uri = award.record::jsonb->'badge'->>'uri' AND badge.cid = award.record::jsonb->'badge'->>'cid' LEFT JOIN LATERAL (SELECT response.uri, response.cid, response.indexed_at, response.did, response.record FROM happyview_records AS response WHERE response.collection = 'app.certified.badge.response' AND response.did = CASE WHEN jsonb_typeof(award.record::jsonb->'subject') = 'string' THEN award.record::jsonb->>'subject' WHEN jsonb_typeof(award.record::jsonb->'subject') = 'object' AND award.record::jsonb->'subject'->>'$type' = 'app.certified.defs#did' AND jsonb_typeof(award.record::jsonb->'subject'->'did') = 'string' THEN award.record::jsonb->'subject'->>'did' ELSE split_part(award.record::jsonb->'subject'->>'uri', '/', 3) END AND response.record::jsonb->'badgeAward'->>'uri' = award.uri AND response.record::jsonb->'badgeAward'->>'cid' = award.cid AND response.record::jsonb->>'response' IN ('accepted', 'rejected') ORDER BY response.indexed_at DESC NULLS LAST, response.uri DESC LIMIT 1) AS recipient_response ON TRUE WHERE award.collection = $1 AND award.did IN ($2,$3) AND award.record::jsonb->'badge'->>'uri' IN ($4,$5) AND ((jsonb_typeof(award.record::jsonb->'subject') = 'string' AND award.record::jsonb->>'subject' IN ($6)) OR (jsonb_typeof(award.record::jsonb->'subject') = 'object' AND award.record::jsonb->'subject'->>'$type' = 'app.certified.defs#did' AND jsonb_typeof(award.record::jsonb->'subject'->'did') = 'string' AND award.record::jsonb->'subject'->>'did' IN ($6)) OR (jsonb_typeof(award.record::jsonb->'subject') = 'object' AND award.record::jsonb->'subject'->>'uri' IN ($7))) AND badge.record::jsonb->>'badgeType' IN ($8,$9) AND COALESCE(recipient_response.record::jsonb->>'response', 'unanswered') IN ($10,$11)), total AS (SELECT COUNT(*) AS total_count FROM matched), page AS (SELECT * FROM matched ORDER BY sort_at DESC, uri DESC LIMIT $12) SELECT page.uri, page.did, page.cid, page.indexed_at, page.record, page.sort_timestamp, page.badge_uri, page.badge_cid, page.badge_indexed_at, page.badge_did, page.badge_record, page.recipient_response_uri, page.recipient_response_cid, page.recipient_response_indexed_at, page.recipient_response_did, page.recipient_response_record, total.total_count FROM total LEFT JOIN page ON TRUE ORDER BY page.sort_at DESC, page.uri DESC"} +{"sql":"39d1ecf7da","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND did IN ($2,$3) AND uri IN ($4,$5) AND (record::jsonb)->>'locationType' IN ($6,$7) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $8"} +{"sql":"39e951d2e6","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND did IN ($2,$3) AND record::jsonb->>'badgeType' IN ($4,$5) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $6"} +{"sql":"3d578b7933","text":"SELECT activity.uri, activity.did, activity.cid, activity.indexed_at::text AS indexed_at, activity.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(activity.record::jsonb->'createdAt') = 'string' AND activity.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND activity.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(activity.record::jsonb->>'createdAt', 'timestamptz') THEN (activity.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(activity.indexed_at::timestamptz, activity.created_at::timestamptz) END AS sort_at) AS sorted WHERE activity.collection = $1 AND activity.did IN ($2, $3, $4) ORDER BY sorted.sort_at DESC, activity.uri DESC LIMIT $5"} +{"sql":"3dfa9c7309","text":"WITH matched AS (SELECT sorted.sort_at, award.uri, award.did, award.cid, award.indexed_at::text AS indexed_at, award.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp, badge.uri AS badge_uri, badge.cid AS badge_cid, badge.indexed_at::text AS badge_indexed_at, badge.did AS badge_did, badge.record::text AS badge_record, recipient_response.uri AS recipient_response_uri, recipient_response.cid AS recipient_response_cid, recipient_response.indexed_at::text AS recipient_response_indexed_at, recipient_response.did AS recipient_response_did, recipient_response.record::text AS recipient_response_record FROM happyview_records AS award CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(award.record::jsonb->'createdAt') = 'string' AND award.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND award.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(award.record::jsonb->>'createdAt', 'timestamptz') THEN (award.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(award.indexed_at::timestamptz, award.created_at::timestamptz) END AS sort_at) sorted LEFT JOIN happyview_records AS badge ON badge.collection = 'app.certified.badge.definition' AND badge.uri = award.record::jsonb->'badge'->>'uri' AND badge.cid = award.record::jsonb->'badge'->>'cid' LEFT JOIN LATERAL (SELECT response.uri, response.cid, response.indexed_at, response.did, response.record FROM happyview_records AS response WHERE response.collection = 'app.certified.badge.response' AND response.did = CASE WHEN jsonb_typeof(award.record::jsonb->'subject') = 'string' THEN award.record::jsonb->>'subject' WHEN jsonb_typeof(award.record::jsonb->'subject') = 'object' AND award.record::jsonb->'subject'->>'$type' = 'app.certified.defs#did' AND jsonb_typeof(award.record::jsonb->'subject'->'did') = 'string' THEN award.record::jsonb->'subject'->>'did' ELSE split_part(award.record::jsonb->'subject'->>'uri', '/', 3) END AND response.record::jsonb->'badgeAward'->>'uri' = award.uri AND response.record::jsonb->'badgeAward'->>'cid' = award.cid AND response.record::jsonb->>'response' IN ('accepted', 'rejected') ORDER BY response.indexed_at DESC NULLS LAST, response.uri DESC LIMIT 1) AS recipient_response ON TRUE WHERE award.collection = $1), total AS (SELECT COUNT(*) AS total_count FROM matched), page AS (SELECT * FROM matched ORDER BY sort_at DESC, uri DESC LIMIT $2) SELECT page.uri, page.did, page.cid, page.indexed_at, page.record, page.sort_timestamp, page.badge_uri, page.badge_cid, page.badge_indexed_at, page.badge_did, page.badge_record, page.recipient_response_uri, page.recipient_response_cid, page.recipient_response_indexed_at, page.recipient_response_did, page.recipient_response_record, total.total_count FROM total LEFT JOIN page ON TRUE ORDER BY page.sort_at DESC, page.uri DESC"} +{"sql":"3e0ec9791e","text":"WITH ranked_follows AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, record::jsonb->'subject'->>'uri' ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND record::jsonb->'subject'->>'uri' = $2), representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM ranked_follows WHERE relationship_rank = 1), total AS (SELECT COUNT(*) AS total_count FROM representatives), page AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM representatives WHERE (sort_at, uri) < ($3::timestamptz, $4) ORDER BY sort_at DESC, uri DESC LIMIT $5) SELECT page.uri, page.did, page.cid, page.indexed_at, page.record, total.total_count, to_char(page.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM total LEFT JOIN page ON TRUE ORDER BY page.sort_at DESC, page.uri DESC"} +{"sql":"3f008a1b2f","text":"SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS collection CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(collection.record::jsonb->'createdAt') = 'string' AND collection.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND collection.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(collection.record::jsonb->>'createdAt', 'timestamptz') THEN (collection.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(collection.indexed_at::timestamptz, collection.created_at::timestamptz) END AS sort_at) AS sorted WHERE collection.collection = $1 AND collection.record::jsonb->>'type' IN ($2) ORDER BY sorted.sort_at DESC, collection.uri DESC LIMIT $3"} +{"sql":"3f156e9653","text":"SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS collection CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(collection.record::jsonb->'createdAt') = 'string' AND collection.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND collection.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(collection.record::jsonb->>'createdAt', 'timestamptz') THEN (collection.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(collection.indexed_at::timestamptz, collection.created_at::timestamptz) END AS sort_at) AS sorted WHERE collection.collection = $1 ORDER BY sorted.sort_at DESC, collection.uri DESC LIMIT $2"} +{"sql":"411b2a5736","text":"SELECT acknowledgement.uri, acknowledgement.did, acknowledgement.cid, acknowledgement.indexed_at::text AS indexed_at, acknowledgement.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS acknowledgement CROSS JOIN LATERAL (SELECT COALESCE(CASE WHEN jsonb_typeof(acknowledgement.record::jsonb->'createdAt') = 'string' AND acknowledgement.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND acknowledgement.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(acknowledgement.record::jsonb->>'createdAt', 'timestamptz') THEN (acknowledgement.record::jsonb->>'createdAt')::timestamptz ELSE NULL END, acknowledgement.indexed_at::timestamptz, acknowledgement.created_at::timestamptz) AS sort_at) AS sorted WHERE acknowledgement.collection = $1 AND acknowledgement.did IN ($2, $3, $4) ORDER BY sorted.sort_at DESC, acknowledgement.uri DESC LIMIT $5"} +{"sql":"4348a3a8ae","text":"SELECT evaluation.uri, evaluation.did, evaluation.cid, evaluation.indexed_at::text AS indexed_at, evaluation.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS evaluation CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(evaluation.record::jsonb->'createdAt') = 'string' AND evaluation.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND evaluation.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(evaluation.record::jsonb->>'createdAt', 'timestamptz') THEN (evaluation.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(evaluation.indexed_at::timestamptz, evaluation.created_at::timestamptz) END AS sort_at) AS sorted WHERE evaluation.collection = $1 AND (sorted.sort_at, evaluation.uri) < (($2)::timestamptz, $3) ORDER BY sorted.sort_at DESC, evaluation.uri DESC LIMIT $4"} +{"sql":"439aaf85ad","text":"SELECT activity.uri, activity.did, activity.cid, activity.indexed_at::text AS indexed_at, activity.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(activity.record::jsonb->'createdAt') = 'string' AND activity.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND activity.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(activity.record::jsonb->>'createdAt', 'timestamptz') THEN (activity.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(activity.indexed_at::timestamptz, activity.created_at::timestamptz) END AS sort_at) AS sorted WHERE activity.collection = $1 AND NOT EXISTS (SELECT 1 FROM happyview_records AS organization WHERE organization.collection = 'app.certified.actor.organization' AND organization.rkey = 'self' AND organization.did = activity.did) AND (strpos(lower(COALESCE(activity.record::jsonb->>'title', '')), lower($2)) > 0 OR strpos(lower(COALESCE(activity.record::jsonb->>'shortDescription', '')), lower($2)) > 0) ORDER BY sorted.sort_at DESC, activity.uri DESC LIMIT $3"} +{"sql":"43f92977ec","text":"SELECT acknowledgement.uri, acknowledgement.did, acknowledgement.cid, acknowledgement.indexed_at::text AS indexed_at, acknowledgement.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS acknowledgement CROSS JOIN LATERAL (SELECT COALESCE(CASE WHEN jsonb_typeof(acknowledgement.record::jsonb->'createdAt') = 'string' AND acknowledgement.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND acknowledgement.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(acknowledgement.record::jsonb->>'createdAt', 'timestamptz') THEN (acknowledgement.record::jsonb->>'createdAt')::timestamptz ELSE NULL END, acknowledgement.indexed_at::timestamptz, acknowledgement.created_at::timestamptz) AS sort_at) AS sorted WHERE acknowledgement.collection = $1 AND (sorted.sort_at, acknowledgement.uri) < (($2)::timestamptz, $3) ORDER BY sorted.sort_at DESC, acknowledgement.uri DESC LIMIT $4"} +{"sql":"4698c54ba8","text":"SELECT organization.uri, organization.did, organization.cid, organization.indexed_at::text AS indexed_at, organization.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS organization CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(organization.record::jsonb->'createdAt') = 'string' AND organization.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND organization.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(organization.record::jsonb->>'createdAt', 'timestamptz') THEN (organization.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(organization.indexed_at::timestamptz, organization.created_at::timestamptz) END AS sort_at) AS sorted WHERE organization.collection = $1 AND organization.rkey = 'self' AND organization.record::jsonb->>'visibility' = $2 ORDER BY sorted.sort_at DESC, uri DESC LIMIT $3"} +{"sql":"46a96a9b3e","text":"SELECT organization.uri, organization.did, organization.cid, organization.indexed_at::text AS indexed_at, organization.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS organization CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(organization.record::jsonb->'createdAt') = 'string' AND organization.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND organization.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(organization.record::jsonb->>'createdAt', 'timestamptz') THEN (organization.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(organization.indexed_at::timestamptz, organization.created_at::timestamptz) END AS sort_at) AS sorted WHERE organization.collection = $1 AND organization.rkey = 'self' AND (sorted.sort_at, uri) < (($2)::timestamptz, $3) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $4"} +{"sql":"47811ad6f2","text":"WITH ranked_follows AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, record::jsonb->'subject'->>'uri' ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND did = $2), representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM ranked_follows WHERE relationship_rank = 1), page AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM representatives ORDER BY sort_at DESC, uri DESC LIMIT $3) SELECT page.uri, page.did, page.cid, page.indexed_at, page.record, to_char(page.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM page ORDER BY page.sort_at DESC, page.uri DESC"} +{"sql":"47dcb081c6","text":"SELECT receipt.uri, receipt.did, receipt.cid, receipt.indexed_at::text AS indexed_at, receipt.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS receipt CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(receipt.record::jsonb->'createdAt') = 'string' AND receipt.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND receipt.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(receipt.record::jsonb->>'createdAt', 'timestamptz') THEN (receipt.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(receipt.indexed_at::timestamptz, receipt.created_at::timestamptz) END AS sort_at) AS sorted WHERE receipt.collection = $1 AND (sorted.sort_at, receipt.uri) < (($2)::timestamptz, $3) ORDER BY sorted.sort_at DESC, receipt.uri DESC LIMIT $4"} +{"sql":"49e45c0b0a","text":"SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS collection CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(collection.record::jsonb->'createdAt') = 'string' AND collection.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND collection.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(collection.record::jsonb->>'createdAt', 'timestamptz') THEN (collection.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(collection.indexed_at::timestamptz, collection.created_at::timestamptz) END AS sort_at) AS sorted WHERE collection.collection = $1 AND collection.record::jsonb->>'type' IN ($2, $3, $4) ORDER BY sorted.sort_at DESC, collection.uri DESC LIMIT $5"} +{"sql":"49f2ff18af","text":"SELECT award.uri, award.did, award.cid, award.indexed_at::text AS indexed_at, award.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp, badge.uri AS badge_uri, badge.cid AS badge_cid, badge.indexed_at::text AS badge_indexed_at, badge.did AS badge_did, badge.record::text AS badge_record, recipient_response.uri AS recipient_response_uri, recipient_response.cid AS recipient_response_cid, recipient_response.indexed_at::text AS recipient_response_indexed_at, recipient_response.did AS recipient_response_did, recipient_response.record::text AS recipient_response_record FROM happyview_records AS award CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(award.record::jsonb->'createdAt') = 'string' AND award.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND award.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(award.record::jsonb->>'createdAt', 'timestamptz') THEN (award.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(award.indexed_at::timestamptz, award.created_at::timestamptz) END AS sort_at) sorted LEFT JOIN happyview_records AS badge ON badge.collection = 'app.certified.badge.definition' AND badge.uri = award.record::jsonb->'badge'->>'uri' AND badge.cid = award.record::jsonb->'badge'->>'cid' LEFT JOIN LATERAL (SELECT response.uri, response.cid, response.indexed_at, response.did, response.record FROM happyview_records AS response WHERE response.collection = 'app.certified.badge.response' AND response.did = CASE WHEN jsonb_typeof(award.record::jsonb->'subject') = 'string' THEN award.record::jsonb->>'subject' WHEN jsonb_typeof(award.record::jsonb->'subject') = 'object' AND award.record::jsonb->'subject'->>'$type' = 'app.certified.defs#did' AND jsonb_typeof(award.record::jsonb->'subject'->'did') = 'string' THEN award.record::jsonb->'subject'->>'did' ELSE split_part(award.record::jsonb->'subject'->>'uri', '/', 3) END AND response.record::jsonb->'badgeAward'->>'uri' = award.uri AND response.record::jsonb->'badgeAward'->>'cid' = award.cid AND response.record::jsonb->>'response' IN ('accepted', 'rejected') ORDER BY response.indexed_at DESC NULLS LAST, response.uri DESC LIMIT 1) AS recipient_response ON TRUE WHERE award.collection = $1 AND badge.record::jsonb->>'badgeType' IN ($2) ORDER BY sorted.sort_at DESC, award.uri DESC LIMIT $3"} +{"sql":"4a06ffe530","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record FROM happyview_records WHERE collection = $1 AND uri = $2 LIMIT 1"} +{"sql":"4bd67beea6","text":"WITH ranked_follows AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, record::jsonb->>'subject' AS subject_did, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, record::jsonb->>'subject' ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND NOT COALESCE(starts_with(record::jsonb->'via'->>'uri', 'at://' || (record::jsonb->>'subject') || '/org.hypercerts.collection/'), FALSE) AND did = $2), representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at, subject_did AS actor_did FROM ranked_follows WHERE relationship_rank = 1), total AS (SELECT COUNT(*) AS total_count FROM representatives), page AS (SELECT uri, did, cid, indexed_at, record, sort_at, actor_did FROM representatives ORDER BY sort_at ASC, uri ASC LIMIT $3) SELECT page.uri, page.did, page.cid, page.indexed_at, page.record, page.actor_did, total.total_count, to_char(page.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM total LEFT JOIN page ON TRUE ORDER BY page.sort_at ASC, page.uri ASC"} +{"sql":"4cd8918f5f","text":"WITH ranked_reactions AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, record::jsonb->'subject'->>'uri' ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND did = $2), representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM ranked_reactions WHERE relationship_rank = 1), page AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM representatives WHERE (sort_at, uri) < ($3::timestamptz, $4) ORDER BY sort_at DESC, uri DESC LIMIT $5) SELECT page.uri, page.did, page.cid, page.indexed_at, page.record, to_char(page.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM page ORDER BY page.sort_at DESC, page.uri DESC"} +{"sql":"4ce821995f","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND (strpos(lower(COALESCE(record::jsonb->>'title', '')), lower($2)) > 0 OR strpos(lower(COALESCE(record::jsonb->>'description', '')), lower($2)) > 0) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $3"} +{"sql":"4d4d402cd2","text":"SELECT acknowledgement.uri, acknowledgement.did, acknowledgement.cid, acknowledgement.indexed_at::text AS indexed_at, acknowledgement.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS acknowledgement CROSS JOIN LATERAL (SELECT COALESCE(CASE WHEN jsonb_typeof(acknowledgement.record::jsonb->'createdAt') = 'string' AND acknowledgement.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND acknowledgement.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(acknowledgement.record::jsonb->>'createdAt', 'timestamptz') THEN (acknowledgement.record::jsonb->>'createdAt')::timestamptz ELSE NULL END, acknowledgement.indexed_at::timestamptz, acknowledgement.created_at::timestamptz) AS sort_at) AS sorted WHERE acknowledgement.collection = $1 AND acknowledgement.record::jsonb->'subject'->>'uri' IN ($2) ORDER BY sorted.sort_at DESC, acknowledgement.uri DESC LIMIT $3"} +{"sql":"4e7d5b3238","text":"SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS collection CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(collection.record::jsonb->'createdAt') = 'string' AND collection.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND collection.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(collection.record::jsonb->>'createdAt', 'timestamptz') THEN (collection.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(collection.indexed_at::timestamptz, collection.created_at::timestamptz) END AS sort_at) AS sorted WHERE collection.collection = $1 AND collection.did IN ($2, $3, $4) AND (strpos(lower(COALESCE(collection.record::jsonb->>'title', '')), lower($5)) > 0 OR strpos(lower(COALESCE(collection.record::jsonb->>'shortDescription', '')), lower($5)) > 0) ORDER BY sorted.sort_at DESC, collection.uri DESC LIMIT $6"} +{"sql":"4e7ddc2a45","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record FROM happyview_records WHERE collection = $1 AND ((uri = $2 AND cid = $3) OR (uri = $4 AND cid = $5) OR (uri = $6 AND cid = $7) OR (uri = $8 AND cid = $9) OR (uri = $10 AND cid = $11) OR (uri = $12 AND cid = $13) OR (uri = $14 AND cid = $15) OR (uri = $16 AND cid = $17) OR (uri = $18 AND cid = $19) OR (uri = $20 AND cid = $21) OR (uri = $22 AND cid = $23) OR (uri = $24 AND cid = $25) OR (uri = $26 AND cid = $27) OR (uri = $28 AND cid = $29) OR (uri = $30 AND cid = $31) OR (uri = $32 AND cid = $33) OR (uri = $34 AND cid = $35) OR (uri = $36 AND cid = $37) OR (uri = $38 AND cid = $39) OR (uri = $40 AND cid = $41) OR (uri = $42 AND cid = $43) OR (uri = $44 AND cid = $45) OR (uri = $46 AND cid = $47) OR (uri = $48 AND cid = $49) OR (uri = $50 AND cid = $51))"} +{"sql":"505fa63bf8","text":"SELECT activity.uri, activity.did, activity.cid, activity.indexed_at::text AS indexed_at, activity.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(activity.record::jsonb->'createdAt') = 'string' AND activity.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND activity.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(activity.record::jsonb->>'createdAt', 'timestamptz') THEN (activity.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(activity.indexed_at::timestamptz, activity.created_at::timestamptz) END AS sort_at) AS sorted WHERE activity.collection = $1 AND (strpos(lower(COALESCE(activity.record::jsonb->>'title', '')), lower($2)) > 0 OR strpos(lower(COALESCE(activity.record::jsonb->>'shortDescription', '')), lower($2)) > 0) ORDER BY sorted.sort_at ASC, activity.uri ASC LIMIT $3"} +{"sql":"50fae54f8e","text":"WITH ranked_reactions AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, record::jsonb->'subject'->>'uri' ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND did = $2), representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM ranked_reactions WHERE relationship_rank = 1), page AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM representatives ORDER BY sort_at ASC, uri ASC LIMIT $3) SELECT page.uri, page.did, page.cid, page.indexed_at, page.record, to_char(page.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM page ORDER BY page.sort_at ASC, page.uri ASC"} +{"sql":"5151965637","text":"SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS collection CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(collection.record::jsonb->'createdAt') = 'string' AND collection.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND collection.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(collection.record::jsonb->>'createdAt', 'timestamptz') THEN (collection.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(collection.indexed_at::timestamptz, collection.created_at::timestamptz) END AS sort_at) AS sorted WHERE collection.collection = $1 AND EXISTS (SELECT 1 FROM happyview_records AS organization WHERE organization.collection = 'app.certified.actor.organization' AND organization.rkey = 'self' AND organization.did = collection.did) AND (strpos(lower(COALESCE(collection.record::jsonb->>'title', '')), lower($2)) > 0 OR strpos(lower(COALESCE(collection.record::jsonb->>'shortDescription', '')), lower($2)) > 0) ORDER BY sorted.sort_at DESC, collection.uri DESC LIMIT $3"} +{"sql":"51a1308039","text":"SELECT organization.uri, organization.did, organization.cid, organization.indexed_at::text AS indexed_at, organization.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS organization CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(organization.record::jsonb->'createdAt') = 'string' AND organization.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND organization.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(organization.record::jsonb->>'createdAt', 'timestamptz') THEN (organization.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(organization.indexed_at::timestamptz, organization.created_at::timestamptz) END AS sort_at) AS sorted WHERE organization.collection = $1 AND organization.rkey = 'self' AND organization.did IN ($2) AND (strpos(lower(COALESCE(organization.record::jsonb->>'legalName', '')), lower($3)) > 0 OR EXISTS (SELECT 1 FROM happyview_records AS profile WHERE profile.collection = $4 AND profile.did = organization.did AND profile.rkey = 'self' AND (strpos(lower(COALESCE(profile.record::jsonb->>'displayName', '')), lower($3)) > 0 OR strpos(lower(COALESCE(profile.record::jsonb->>'description', '')), lower($3)) > 0))) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $5"} +{"sql":"51e5c58ca9","text":"WITH ranked_follows AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, record::jsonb->'subject'->>'uri' ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND did = $2), representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM ranked_follows WHERE relationship_rank = 1), page AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM representatives ORDER BY sort_at ASC, uri ASC LIMIT $3) SELECT page.uri, page.did, page.cid, page.indexed_at, page.record, to_char(page.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM page ORDER BY page.sort_at ASC, page.uri ASC"} +{"sql":"536c6066fd","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND rkey = 'self' AND (sorted.sort_at, uri) > (($2)::timestamptz, $3) ORDER BY sorted.sort_at ASC, uri ASC LIMIT $4"} +{"sql":"53e54f225a","text":"SELECT contributor.uri, contributor.did, contributor.cid, contributor.indexed_at::text AS indexed_at, contributor.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS contributor CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(contributor.record::jsonb->'createdAt') = 'string' AND contributor.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND contributor.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(contributor.record::jsonb->>'createdAt', 'timestamptz') THEN (contributor.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(contributor.indexed_at::timestamptz, contributor.created_at::timestamptz) END AS sort_at) AS sorted WHERE contributor.collection = $1 ORDER BY sorted.sort_at ASC, contributor.uri ASC LIMIT $2"} +{"sql":"5413d88dea","text":"SELECT receipt.uri, receipt.did, receipt.cid, receipt.indexed_at::text AS indexed_at, receipt.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS receipt CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(receipt.record::jsonb->'createdAt') = 'string' AND receipt.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND receipt.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(receipt.record::jsonb->>'createdAt', 'timestamptz') THEN (receipt.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(receipt.indexed_at::timestamptz, receipt.created_at::timestamptz) END AS sort_at) AS sorted WHERE receipt.collection = $1 AND receipt.record::jsonb->>'transactionId' IN ($2) ORDER BY sorted.sort_at DESC, receipt.uri DESC LIMIT $3"} +{"sql":"55bc2f4a15","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND record::jsonb->>'badgeType' IN ($2,$3,$4) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $5"} +{"sql":"56eaf46105","text":"SELECT evaluation.uri, evaluation.did, evaluation.cid, evaluation.indexed_at::text AS indexed_at, evaluation.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS evaluation CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(evaluation.record::jsonb->'createdAt') = 'string' AND evaluation.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND evaluation.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(evaluation.record::jsonb->>'createdAt', 'timestamptz') THEN (evaluation.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(evaluation.indexed_at::timestamptz, evaluation.created_at::timestamptz) END AS sort_at) AS sorted WHERE evaluation.collection = $1 AND evaluation.did IN ($2) ORDER BY sorted.sort_at DESC, evaluation.uri DESC LIMIT $3"} +{"sql":"58a6e2c916","text":"SELECT workscope_tag.uri, workscope_tag.did, workscope_tag.cid, workscope_tag.indexed_at::text AS indexed_at, workscope_tag.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS workscope_tag CROSS JOIN LATERAL (SELECT COALESCE(CASE WHEN workscope_tag.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}([.][0-9]+)?(Z|[+-][0-9]{2}:[0-9]{2})$' AND workscope_tag.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(workscope_tag.record::jsonb->>'createdAt', 'timestamp with time zone') THEN (workscope_tag.record::jsonb->>'createdAt')::timestamptz END, CASE WHEN pg_input_is_valid(workscope_tag.indexed_at, 'timestamp with time zone') THEN workscope_tag.indexed_at::timestamptz END, CASE WHEN pg_input_is_valid(workscope_tag.created_at, 'timestamp with time zone') THEN workscope_tag.created_at::timestamptz END) AS sort_at) AS sorted WHERE workscope_tag.collection = $1 AND workscope_tag.did IN ($2, $3, $4) ORDER BY sorted.sort_at DESC, workscope_tag.uri DESC LIMIT $5"} +{"sql":"598df7d2c2","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record FROM happyview_records WHERE collection = $1 AND uri IN ($2, $3)"} +{"sql":"5b97334acb","text":"SELECT evaluation.uri, evaluation.did, evaluation.cid, evaluation.indexed_at::text AS indexed_at, evaluation.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS evaluation CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(evaluation.record::jsonb->'createdAt') = 'string' AND evaluation.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND evaluation.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(evaluation.record::jsonb->>'createdAt', 'timestamptz') THEN (evaluation.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(evaluation.indexed_at::timestamptz, evaluation.created_at::timestamptz) END AS sort_at) AS sorted WHERE evaluation.collection = $1 AND EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(evaluation.record::jsonb->'evaluators') = 'array' THEN evaluation.record::jsonb->'evaluators' ELSE '[]'::jsonb END) AS evaluator(value) WHERE evaluator.value->>'did' IN ($2, $3, $4)) ORDER BY sorted.sort_at DESC, evaluation.uri DESC LIMIT $5"} +{"sql":"5c2951cb59","text":"SELECT contribution.uri, contribution.did, contribution.cid, contribution.indexed_at::text AS indexed_at, contribution.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS contribution CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(contribution.record::jsonb->'createdAt') = 'string' AND contribution.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND contribution.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(contribution.record::jsonb->>'createdAt', 'timestamptz') THEN (contribution.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(contribution.indexed_at::timestamptz, contribution.created_at::timestamptz, 'epoch'::timestamptz) END AS sort_at) AS sorted WHERE contribution.collection = $1 AND contribution.did IN ($2) ORDER BY sorted.sort_at DESC, contribution.uri DESC LIMIT $3"} +{"sql":"5c69857418","text":"SELECT award.uri, award.did, award.cid, award.indexed_at::text AS indexed_at, award.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp, badge.uri AS badge_uri, badge.cid AS badge_cid, badge.indexed_at::text AS badge_indexed_at, badge.did AS badge_did, badge.record::text AS badge_record, recipient_response.uri AS recipient_response_uri, recipient_response.cid AS recipient_response_cid, recipient_response.indexed_at::text AS recipient_response_indexed_at, recipient_response.did AS recipient_response_did, recipient_response.record::text AS recipient_response_record FROM happyview_records AS award CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(award.record::jsonb->'createdAt') = 'string' AND award.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND award.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(award.record::jsonb->>'createdAt', 'timestamptz') THEN (award.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(award.indexed_at::timestamptz, award.created_at::timestamptz) END AS sort_at) sorted LEFT JOIN happyview_records AS badge ON badge.collection = 'app.certified.badge.definition' AND badge.uri = award.record::jsonb->'badge'->>'uri' AND badge.cid = award.record::jsonb->'badge'->>'cid' LEFT JOIN LATERAL (SELECT response.uri, response.cid, response.indexed_at, response.did, response.record FROM happyview_records AS response WHERE response.collection = 'app.certified.badge.response' AND response.did = CASE WHEN jsonb_typeof(award.record::jsonb->'subject') = 'string' THEN award.record::jsonb->>'subject' WHEN jsonb_typeof(award.record::jsonb->'subject') = 'object' AND award.record::jsonb->'subject'->>'$type' = 'app.certified.defs#did' AND jsonb_typeof(award.record::jsonb->'subject'->'did') = 'string' THEN award.record::jsonb->'subject'->>'did' ELSE split_part(award.record::jsonb->'subject'->>'uri', '/', 3) END AND response.record::jsonb->'badgeAward'->>'uri' = award.uri AND response.record::jsonb->'badgeAward'->>'cid' = award.cid AND response.record::jsonb->>'response' IN ('accepted', 'rejected') ORDER BY response.indexed_at DESC NULLS LAST, response.uri DESC LIMIT 1) AS recipient_response ON TRUE WHERE award.collection = $1 AND (sorted.sort_at, award.uri) < (($2)::timestamptz, $3) ORDER BY sorted.sort_at DESC, award.uri DESC LIMIT $4"} +{"sql":"5d8073cadf","text":"SELECT attachment.uri, attachment.did, attachment.cid, attachment.indexed_at::text AS indexed_at, attachment.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS attachment CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(attachment.record::jsonb->'createdAt') = 'string' AND attachment.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND attachment.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(attachment.record::jsonb->>'createdAt', 'timestamptz') THEN (attachment.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(attachment.indexed_at::timestamptz, attachment.created_at::timestamptz) END AS sort_at) AS sorted WHERE attachment.collection = $1 AND attachment.did IN ($2, $3, $4) ORDER BY sorted.sort_at DESC, attachment.uri DESC LIMIT $5"} +{"sql":"5e533a7996","text":"SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS collection CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(collection.record::jsonb->'createdAt') = 'string' AND collection.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND collection.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(collection.record::jsonb->>'createdAt', 'timestamptz') THEN (collection.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(collection.indexed_at::timestamptz, collection.created_at::timestamptz) END AS sort_at) AS sorted WHERE collection.collection = $1 AND collection.record::jsonb->>'type' IN ($2) AND (strpos(lower(COALESCE(collection.record::jsonb->>'title', '')), lower($3)) > 0 OR strpos(lower(COALESCE(collection.record::jsonb->>'shortDescription', '')), lower($3)) > 0) ORDER BY sorted.sort_at DESC, collection.uri DESC LIMIT $4"} +{"sql":"5f1a04a6f6","text":"SELECT feature.uri, feature.did, feature.cid, feature.indexed_at::text AS indexed_at, feature.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS feature CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(feature.record::jsonb -> 'createdAt') = 'string' AND feature.record::jsonb ->> 'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND feature.record::jsonb ->> 'createdAt' !~ '-00:00$' AND pg_input_is_valid(feature.record::jsonb ->> 'createdAt', 'timestamptz') THEN (feature.record::jsonb ->> 'createdAt')::timestamptz ELSE COALESCE(feature.indexed_at::timestamptz, feature.created_at::timestamptz) END AS sort_at) AS sorted WHERE feature.collection = $1 ORDER BY sorted.sort_at DESC, feature.uri DESC LIMIT $2"} +{"sql":"60c7592388","text":"SELECT attachment.uri, attachment.did, attachment.cid, attachment.indexed_at::text AS indexed_at, attachment.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS attachment CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(attachment.record::jsonb->'createdAt') = 'string' AND attachment.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND attachment.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(attachment.record::jsonb->>'createdAt', 'timestamptz') THEN (attachment.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(attachment.indexed_at::timestamptz, attachment.created_at::timestamptz) END AS sort_at) AS sorted WHERE attachment.collection = $1 AND EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(attachment.record::jsonb->'subjects') = 'array' THEN attachment.record::jsonb->'subjects' ELSE '[]'::jsonb END) AS subject(value) WHERE subject.value->>'uri' IN ($2, $3, $4)) ORDER BY sorted.sort_at DESC, attachment.uri DESC LIMIT $5"} +{"sql":"60f03b42b4","text":"SELECT acknowledgement.uri, acknowledgement.did, acknowledgement.cid, acknowledgement.indexed_at::text AS indexed_at, acknowledgement.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS acknowledgement CROSS JOIN LATERAL (SELECT COALESCE(CASE WHEN jsonb_typeof(acknowledgement.record::jsonb->'createdAt') = 'string' AND acknowledgement.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND acknowledgement.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(acknowledgement.record::jsonb->>'createdAt', 'timestamptz') THEN (acknowledgement.record::jsonb->>'createdAt')::timestamptz ELSE NULL END, acknowledgement.indexed_at::timestamptz, acknowledgement.created_at::timestamptz) AS sort_at) AS sorted WHERE acknowledgement.collection = $1 AND acknowledgement.did IN ($2, $3) AND acknowledgement.record::jsonb->'subject'->>'uri' IN ($4, $5) ORDER BY sorted.sort_at DESC, acknowledgement.uri DESC LIMIT $6"} +{"sql":"63e9f57c41","text":"SELECT organization.uri, organization.did, organization.cid, organization.indexed_at::text AS indexed_at, organization.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS organization CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(organization.record::jsonb->'createdAt') = 'string' AND organization.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND organization.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(organization.record::jsonb->>'createdAt', 'timestamptz') THEN (organization.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(organization.indexed_at::timestamptz, organization.created_at::timestamptz) END AS sort_at) AS sorted WHERE organization.collection = $1 AND organization.rkey = 'self' AND organization.did IN ($2, $3, $4) AND (strpos(lower(COALESCE(organization.record::jsonb->>'legalName', '')), lower($5)) > 0 OR EXISTS (SELECT 1 FROM happyview_records AS profile WHERE profile.collection = $6 AND profile.did = organization.did AND profile.rkey = 'self' AND (strpos(lower(COALESCE(profile.record::jsonb->>'displayName', '')), lower($5)) > 0 OR strpos(lower(COALESCE(profile.record::jsonb->>'description', '')), lower($5)) > 0))) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $7"} +{"sql":"641d03e31b","text":"SELECT receipt.uri, receipt.did, receipt.cid, receipt.indexed_at::text AS indexed_at, receipt.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS receipt CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(receipt.record::jsonb->'createdAt') = 'string' AND receipt.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND receipt.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(receipt.record::jsonb->>'createdAt', 'timestamptz') THEN (receipt.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(receipt.indexed_at::timestamptz, receipt.created_at::timestamptz) END AS sort_at) AS sorted WHERE receipt.collection = $1 AND receipt.record::jsonb->'for'->>'uri' IN ($2) ORDER BY sorted.sort_at DESC, receipt.uri DESC LIMIT $3"} +{"sql":"6505727280","text":"SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS collection CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(collection.record::jsonb->'createdAt') = 'string' AND collection.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND collection.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(collection.record::jsonb->>'createdAt', 'timestamptz') THEN (collection.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(collection.indexed_at::timestamptz, collection.created_at::timestamptz) END AS sort_at) AS sorted WHERE collection.collection = $1 AND collection.uri IN ($2, $3, $4) AND (strpos(lower(COALESCE(collection.record::jsonb->>'title', '')), lower($5)) > 0 OR strpos(lower(COALESCE(collection.record::jsonb->>'shortDescription', '')), lower($5)) > 0) ORDER BY sorted.sort_at DESC, collection.uri DESC LIMIT $6"} +{"sql":"659e7408ff","text":"SELECT attachment.uri, attachment.did, attachment.cid, attachment.indexed_at::text AS indexed_at, attachment.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS attachment CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(attachment.record::jsonb->'createdAt') = 'string' AND attachment.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND attachment.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(attachment.record::jsonb->>'createdAt', 'timestamptz') THEN (attachment.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(attachment.indexed_at::timestamptz, attachment.created_at::timestamptz) END AS sort_at) AS sorted WHERE attachment.collection = $1 ORDER BY sorted.sort_at ASC, attachment.uri ASC LIMIT $2"} +{"sql":"667b351197","text":"SELECT measurement.uri, measurement.did, measurement.cid, measurement.indexed_at::text AS indexed_at, measurement.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS measurement CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(measurement.record::jsonb->'createdAt') = 'string' AND measurement.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND measurement.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(measurement.record::jsonb->>'createdAt', 'timestamptz') THEN (measurement.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(measurement.indexed_at::timestamptz, measurement.created_at::timestamptz) END AS sort_at) AS sorted WHERE measurement.collection = $1 AND measurement.did IN ($2, $3, $4) ORDER BY sorted.sort_at DESC, measurement.uri DESC LIMIT $5"} +{"sql":"66b024f84a","text":"SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS collection CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(collection.record::jsonb->'createdAt') = 'string' AND collection.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND collection.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(collection.record::jsonb->>'createdAt', 'timestamptz') THEN (collection.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(collection.indexed_at::timestamptz, collection.created_at::timestamptz) END AS sort_at) AS sorted WHERE collection.collection = $1 AND (sorted.sort_at, collection.uri) > (($2)::timestamptz, $3) ORDER BY sorted.sort_at ASC, collection.uri ASC LIMIT $4"} +{"sql":"670611fb64","text":"SELECT measurement.uri, measurement.did, measurement.cid, measurement.indexed_at::text AS indexed_at, measurement.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS measurement CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(measurement.record::jsonb->'createdAt') = 'string' AND measurement.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND measurement.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(measurement.record::jsonb->>'createdAt', 'timestamptz') THEN (measurement.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(measurement.indexed_at::timestamptz, measurement.created_at::timestamptz) END AS sort_at) AS sorted WHERE measurement.collection = $1 AND (sorted.sort_at, measurement.uri) > (($2)::timestamptz, $3) ORDER BY sorted.sort_at ASC, measurement.uri ASC LIMIT $4"} +{"sql":"69fc88161b","text":"SELECT activity.uri, activity.did, activity.cid, activity.indexed_at::text AS indexed_at, activity.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(activity.record::jsonb->'createdAt') = 'string' AND activity.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND activity.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(activity.record::jsonb->>'createdAt', 'timestamptz') THEN (activity.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(activity.indexed_at::timestamptz, activity.created_at::timestamptz) END AS sort_at) AS sorted WHERE activity.collection = $1 AND (strpos(lower(COALESCE(activity.record::jsonb->>'title', '')), lower($2)) > 0 OR strpos(lower(COALESCE(activity.record::jsonb->>'shortDescription', '')), lower($2)) > 0) ORDER BY sorted.sort_at DESC, activity.uri DESC LIMIT $3"} +{"sql":"6a0e1152da","text":"SELECT contribution.uri, contribution.did, contribution.cid, contribution.indexed_at::text AS indexed_at, contribution.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS contribution CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(contribution.record::jsonb->'createdAt') = 'string' AND contribution.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND contribution.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(contribution.record::jsonb->>'createdAt', 'timestamptz') THEN (contribution.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(contribution.indexed_at::timestamptz, contribution.created_at::timestamptz, 'epoch'::timestamptz) END AS sort_at) AS sorted WHERE contribution.collection = $1 ORDER BY sorted.sort_at DESC, contribution.uri DESC LIMIT $2"} +{"sql":"6ae42317e4","text":"SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS collection CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(collection.record::jsonb->'createdAt') = 'string' AND collection.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND collection.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(collection.record::jsonb->>'createdAt', 'timestamptz') THEN (collection.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(collection.indexed_at::timestamptz, collection.created_at::timestamptz) END AS sort_at) AS sorted WHERE collection.collection = $1 AND (strpos(lower(COALESCE(collection.record::jsonb->>'title', '')), lower($2)) > 0 OR strpos(lower(COALESCE(collection.record::jsonb->>'shortDescription', '')), lower($2)) > 0) AND (sorted.sort_at, collection.uri) < (($3)::timestamptz, $4) ORDER BY sorted.sort_at DESC, collection.uri DESC LIMIT $5"} +{"sql":"6c1a25fc34","text":"SELECT feature.uri, feature.did, feature.cid, feature.indexed_at::text AS indexed_at, feature.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS feature CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(feature.record::jsonb -> 'createdAt') = 'string' AND feature.record::jsonb ->> 'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND feature.record::jsonb ->> 'createdAt' !~ '-00:00$' AND pg_input_is_valid(feature.record::jsonb ->> 'createdAt', 'timestamptz') THEN (feature.record::jsonb ->> 'createdAt')::timestamptz ELSE COALESCE(feature.indexed_at::timestamptz, feature.created_at::timestamptz) END AS sort_at) AS sorted WHERE feature.collection = $1 AND (jsonb_typeof(feature.record::jsonb -> 'type') = 'string' AND feature.record::jsonb ->> 'type' IN ($2)) ORDER BY sorted.sort_at DESC, feature.uri DESC LIMIT $3"} +{"sql":"6d1dd77a51","text":"SELECT award.uri, award.did, award.cid, award.indexed_at::text AS indexed_at, award.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp, badge.uri AS badge_uri, badge.cid AS badge_cid, badge.indexed_at::text AS badge_indexed_at, badge.did AS badge_did, badge.record::text AS badge_record, recipient_response.uri AS recipient_response_uri, recipient_response.cid AS recipient_response_cid, recipient_response.indexed_at::text AS recipient_response_indexed_at, recipient_response.did AS recipient_response_did, recipient_response.record::text AS recipient_response_record FROM happyview_records AS award CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(award.record::jsonb->'createdAt') = 'string' AND award.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND award.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(award.record::jsonb->>'createdAt', 'timestamptz') THEN (award.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(award.indexed_at::timestamptz, award.created_at::timestamptz) END AS sort_at) sorted LEFT JOIN happyview_records AS badge ON badge.collection = 'app.certified.badge.definition' AND badge.uri = award.record::jsonb->'badge'->>'uri' AND badge.cid = award.record::jsonb->'badge'->>'cid' LEFT JOIN LATERAL (SELECT response.uri, response.cid, response.indexed_at, response.did, response.record FROM happyview_records AS response WHERE response.collection = 'app.certified.badge.response' AND response.did = CASE WHEN jsonb_typeof(award.record::jsonb->'subject') = 'string' THEN award.record::jsonb->>'subject' WHEN jsonb_typeof(award.record::jsonb->'subject') = 'object' AND award.record::jsonb->'subject'->>'$type' = 'app.certified.defs#did' AND jsonb_typeof(award.record::jsonb->'subject'->'did') = 'string' THEN award.record::jsonb->'subject'->>'did' ELSE split_part(award.record::jsonb->'subject'->>'uri', '/', 3) END AND response.record::jsonb->'badgeAward'->>'uri' = award.uri AND response.record::jsonb->'badgeAward'->>'cid' = award.cid AND response.record::jsonb->>'response' IN ('accepted', 'rejected') ORDER BY response.indexed_at DESC NULLS LAST, response.uri DESC LIMIT 1) AS recipient_response ON TRUE WHERE award.collection = $1 AND (sorted.sort_at, award.uri) > (($2)::timestamptz, $3) ORDER BY sorted.sort_at ASC, award.uri ASC LIMIT $4"} +{"sql":"6d867ad058","text":"SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS collection CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(collection.record::jsonb->'createdAt') = 'string' AND collection.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND collection.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(collection.record::jsonb->>'createdAt', 'timestamptz') THEN (collection.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(collection.indexed_at::timestamptz, collection.created_at::timestamptz) END AS sort_at) AS sorted WHERE collection.collection = $1 AND EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(collection.record::jsonb->'tags') = 'array' THEN collection.record::jsonb->'tags' ELSE '[]'::jsonb END) AS tag(value) WHERE tag.value->>'uri' = $2) AND (strpos(lower(COALESCE(collection.record::jsonb->>'title', '')), lower($3)) > 0 OR strpos(lower(COALESCE(collection.record::jsonb->>'shortDescription', '')), lower($3)) > 0) ORDER BY sorted.sort_at DESC, collection.uri DESC LIMIT $4"} +{"sql":"6d8c64ef3d","text":"SELECT evaluation.uri, evaluation.did, evaluation.cid, evaluation.indexed_at::text AS indexed_at, evaluation.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS evaluation CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(evaluation.record::jsonb->'createdAt') = 'string' AND evaluation.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND evaluation.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(evaluation.record::jsonb->>'createdAt', 'timestamptz') THEN (evaluation.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(evaluation.indexed_at::timestamptz, evaluation.created_at::timestamptz) END AS sort_at) AS sorted WHERE evaluation.collection = $1 ORDER BY sorted.sort_at DESC, evaluation.uri DESC LIMIT $2"} +{"sql":"6f939d06b4","text":"SELECT contribution.uri, contribution.did, contribution.cid, contribution.indexed_at::text AS indexed_at, contribution.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS contribution CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(contribution.record::jsonb->'createdAt') = 'string' AND contribution.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND contribution.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(contribution.record::jsonb->>'createdAt', 'timestamptz') THEN (contribution.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(contribution.indexed_at::timestamptz, contribution.created_at::timestamptz, 'epoch'::timestamptz) END AS sort_at) AS sorted WHERE contribution.collection = $1 AND FALSE ORDER BY sorted.sort_at DESC, contribution.uri DESC LIMIT $2"} +{"sql":"7054b0a493","text":"SELECT link.uri, link.did, link.cid, link.indexed_at::text AS indexed_at, link.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS link CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(link.record::jsonb->'createdAt') = 'string' AND link.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND link.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(link.record::jsonb->>'createdAt', 'timestamptz') THEN (link.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(link.indexed_at::timestamptz, link.created_at::timestamptz) END AS sort_at) sorted WHERE link.collection = $1 ORDER BY sorted.sort_at DESC, link.uri DESC LIMIT $2"} +{"sql":"70f00b7198","text":"SELECT award.uri, award.did, award.cid, award.indexed_at::text AS indexed_at, award.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp, badge.uri AS badge_uri, badge.cid AS badge_cid, badge.indexed_at::text AS badge_indexed_at, badge.did AS badge_did, badge.record::text AS badge_record, recipient_response.uri AS recipient_response_uri, recipient_response.cid AS recipient_response_cid, recipient_response.indexed_at::text AS recipient_response_indexed_at, recipient_response.did AS recipient_response_did, recipient_response.record::text AS recipient_response_record FROM happyview_records AS award CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(award.record::jsonb->'createdAt') = 'string' AND award.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND award.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(award.record::jsonb->>'createdAt', 'timestamptz') THEN (award.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(award.indexed_at::timestamptz, award.created_at::timestamptz) END AS sort_at) sorted LEFT JOIN happyview_records AS badge ON badge.collection = 'app.certified.badge.definition' AND badge.uri = award.record::jsonb->'badge'->>'uri' AND badge.cid = award.record::jsonb->'badge'->>'cid' LEFT JOIN LATERAL (SELECT response.uri, response.cid, response.indexed_at, response.did, response.record FROM happyview_records AS response WHERE response.collection = 'app.certified.badge.response' AND response.did = CASE WHEN jsonb_typeof(award.record::jsonb->'subject') = 'string' THEN award.record::jsonb->>'subject' WHEN jsonb_typeof(award.record::jsonb->'subject') = 'object' AND award.record::jsonb->'subject'->>'$type' = 'app.certified.defs#did' AND jsonb_typeof(award.record::jsonb->'subject'->'did') = 'string' THEN award.record::jsonb->'subject'->>'did' ELSE split_part(award.record::jsonb->'subject'->>'uri', '/', 3) END AND response.record::jsonb->'badgeAward'->>'uri' = award.uri AND response.record::jsonb->'badgeAward'->>'cid' = award.cid AND response.record::jsonb->>'response' IN ('accepted', 'rejected') ORDER BY response.indexed_at DESC NULLS LAST, response.uri DESC LIMIT 1) AS recipient_response ON TRUE WHERE award.collection = $1 ORDER BY sorted.sort_at ASC, award.uri ASC LIMIT $2"} +{"sql":"7131766d40","text":"SELECT organization.uri, organization.did, organization.cid, organization.indexed_at::text AS indexed_at, organization.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS organization CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(organization.record::jsonb->'createdAt') = 'string' AND organization.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND organization.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(organization.record::jsonb->>'createdAt', 'timestamptz') THEN (organization.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(organization.indexed_at::timestamptz, organization.created_at::timestamptz) END AS sort_at) AS sorted WHERE organization.collection = $1 AND organization.rkey = 'self' AND EXISTS (SELECT 1 FROM jsonb_array_elements_text(CASE WHEN jsonb_typeof(organization.record::jsonb->'organizationType') = 'array' THEN organization.record::jsonb->'organizationType' ELSE '[]'::jsonb END) AS organization_type(value) WHERE organization_type.value IN ($2, $3, $4)) AND (strpos(lower(COALESCE(organization.record::jsonb->>'legalName', '')), lower($5)) > 0 OR EXISTS (SELECT 1 FROM happyview_records AS profile WHERE profile.collection = $6 AND profile.did = organization.did AND profile.rkey = 'self' AND (strpos(lower(COALESCE(profile.record::jsonb->>'displayName', '')), lower($5)) > 0 OR strpos(lower(COALESCE(profile.record::jsonb->>'description', '')), lower($5)) > 0))) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $7"} +{"sql":"71a0d93bf2","text":"SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS collection CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(collection.record::jsonb->'createdAt') = 'string' AND collection.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND collection.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(collection.record::jsonb->>'createdAt', 'timestamptz') THEN (collection.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(collection.indexed_at::timestamptz, collection.created_at::timestamptz) END AS sort_at) AS sorted WHERE collection.collection = $1 ORDER BY sorted.sort_at ASC, collection.uri ASC LIMIT $2"} +{"sql":"73b274acb6","text":"SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS collection CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(collection.record::jsonb->'createdAt') = 'string' AND collection.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND collection.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(collection.record::jsonb->>'createdAt', 'timestamptz') THEN (collection.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(collection.indexed_at::timestamptz, collection.created_at::timestamptz) END AS sort_at) AS sorted WHERE collection.collection = $1 AND EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(collection.record::jsonb->'items') = 'array' THEN collection.record::jsonb->'items' ELSE '[]'::jsonb END) AS item(value) WHERE item.value->'itemIdentifier'->>'uri' IN ($2)) AND (strpos(lower(COALESCE(collection.record::jsonb->>'title', '')), lower($3)) > 0 OR strpos(lower(COALESCE(collection.record::jsonb->>'shortDescription', '')), lower($3)) > 0) ORDER BY sorted.sort_at DESC, collection.uri DESC LIMIT $4"} +{"sql":"74bec3e87a","text":"SELECT organization.uri, organization.did, organization.cid, organization.indexed_at::text AS indexed_at, organization.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS organization CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(organization.record::jsonb->'createdAt') = 'string' AND organization.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND organization.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(organization.record::jsonb->>'createdAt', 'timestamptz') THEN (organization.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(organization.indexed_at::timestamptz, organization.created_at::timestamptz) END AS sort_at) AS sorted WHERE organization.collection = $1 AND organization.rkey = 'self' AND EXISTS (SELECT 1 FROM jsonb_array_elements_text(CASE WHEN jsonb_typeof(organization.record::jsonb->'organizationType') = 'array' THEN organization.record::jsonb->'organizationType' ELSE '[]'::jsonb END) AS organization_type(value) WHERE organization_type.value IN ($2, $3, $4)) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $5"} +{"sql":"74c456cea7","text":"SELECT acknowledgement.uri, acknowledgement.did, acknowledgement.cid, acknowledgement.indexed_at::text AS indexed_at, acknowledgement.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS acknowledgement CROSS JOIN LATERAL (SELECT COALESCE(CASE WHEN jsonb_typeof(acknowledgement.record::jsonb->'createdAt') = 'string' AND acknowledgement.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND acknowledgement.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(acknowledgement.record::jsonb->>'createdAt', 'timestamptz') THEN (acknowledgement.record::jsonb->>'createdAt')::timestamptz ELSE NULL END, acknowledgement.indexed_at::timestamptz, acknowledgement.created_at::timestamptz) AS sort_at) AS sorted WHERE acknowledgement.collection = $1 AND (sorted.sort_at, acknowledgement.uri) > (($2)::timestamptz, $3) ORDER BY sorted.sort_at ASC, acknowledgement.uri ASC LIMIT $4"} +{"sql":"7509a18685","text":"SELECT receipt.uri, receipt.did, receipt.cid, receipt.indexed_at::text AS indexed_at, receipt.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS receipt CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(receipt.record::jsonb->'createdAt') = 'string' AND receipt.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND receipt.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(receipt.record::jsonb->>'createdAt', 'timestamptz') THEN (receipt.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(receipt.indexed_at::timestamptz, receipt.created_at::timestamptz) END AS sort_at) AS sorted WHERE receipt.collection = $1 AND receipt.uri IN ($2, $3, $4) ORDER BY sorted.sort_at DESC, receipt.uri DESC LIMIT $5"} +{"sql":"75a34c60e8","text":"SELECT evaluation.uri, evaluation.did, evaluation.cid, evaluation.indexed_at::text AS indexed_at, evaluation.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS evaluation CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(evaluation.record::jsonb->'createdAt') = 'string' AND evaluation.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND evaluation.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(evaluation.record::jsonb->>'createdAt', 'timestamptz') THEN (evaluation.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(evaluation.indexed_at::timestamptz, evaluation.created_at::timestamptz) END AS sort_at) AS sorted WHERE evaluation.collection = $1 AND FALSE ORDER BY sorted.sort_at DESC, evaluation.uri DESC LIMIT $2"} +{"sql":"75c0e1f2f8","text":"SELECT contributor.uri, contributor.did, contributor.cid, contributor.indexed_at::text AS indexed_at, contributor.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS contributor CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(contributor.record::jsonb->'createdAt') = 'string' AND contributor.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND contributor.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(contributor.record::jsonb->>'createdAt', 'timestamptz') THEN (contributor.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(contributor.indexed_at::timestamptz, contributor.created_at::timestamptz) END AS sort_at) AS sorted WHERE contributor.collection = $1 AND contributor.did IN ($2) ORDER BY sorted.sort_at DESC, contributor.uri DESC LIMIT $3"} +{"sql":"768ba84080","text":"SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS collection CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(collection.record::jsonb->'createdAt') = 'string' AND collection.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND collection.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(collection.record::jsonb->>'createdAt', 'timestamptz') THEN (collection.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(collection.indexed_at::timestamptz, collection.created_at::timestamptz) END AS sort_at) AS sorted WHERE collection.collection = $1 AND EXISTS (SELECT 1 FROM happyview_records AS organization WHERE organization.collection = 'app.certified.actor.organization' AND organization.rkey = 'self' AND organization.did = collection.did) ORDER BY sorted.sort_at DESC, collection.uri DESC LIMIT $2"} +{"sql":"7705bb084a","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND did IN ($2) AND (strpos(lower(COALESCE(record::jsonb->>'title', '')), lower($3)) > 0 OR strpos(lower(COALESCE(record::jsonb->>'description', '')), lower($3)) > 0) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $4"} +{"sql":"7754ca267f","text":"SELECT receipt.uri, receipt.did, receipt.cid, receipt.indexed_at::text AS indexed_at, receipt.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS receipt CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(receipt.record::jsonb->'createdAt') = 'string' AND receipt.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND receipt.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(receipt.record::jsonb->>'createdAt', 'timestamptz') THEN (receipt.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(receipt.indexed_at::timestamptz, receipt.created_at::timestamptz) END AS sort_at) AS sorted WHERE receipt.collection = $1 AND ((receipt.record::jsonb->'from'->>'$type' = 'app.certified.defs#did' AND receipt.record::jsonb->'from'->>'did' IN ($2)) OR (receipt.record::jsonb->'from'->>'$type' = 'com.atproto.repo.strongRef' AND receipt.record::jsonb->'from'->>'uri' IN ($3, $4))) ORDER BY sorted.sort_at DESC, receipt.uri DESC LIMIT $5"} +{"sql":"77ad89561f","text":"SELECT measurement.uri, measurement.did, measurement.cid, measurement.indexed_at::text AS indexed_at, measurement.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS measurement CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(measurement.record::jsonb->'createdAt') = 'string' AND measurement.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND measurement.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(measurement.record::jsonb->>'createdAt', 'timestamptz') THEN (measurement.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(measurement.indexed_at::timestamptz, measurement.created_at::timestamptz) END AS sort_at) AS sorted WHERE measurement.collection = $1 ORDER BY sorted.sort_at ASC, measurement.uri ASC LIMIT $2"} +{"sql":"77db50661f","text":"SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS collection CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(collection.record::jsonb->'createdAt') = 'string' AND collection.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND collection.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(collection.record::jsonb->>'createdAt', 'timestamptz') THEN (collection.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(collection.indexed_at::timestamptz, collection.created_at::timestamptz) END AS sort_at) AS sorted WHERE collection.collection = $1 AND NOT EXISTS (SELECT 1 FROM happyview_records AS organization WHERE organization.collection = 'app.certified.actor.organization' AND organization.rkey = 'self' AND organization.did = collection.did) AND (strpos(lower(COALESCE(collection.record::jsonb->>'title', '')), lower($2)) > 0 OR strpos(lower(COALESCE(collection.record::jsonb->>'shortDescription', '')), lower($2)) > 0) ORDER BY sorted.sort_at DESC, collection.uri DESC LIMIT $3"} +{"sql":"78c6a3f3ba","text":"SELECT award.uri, award.did, award.cid, award.indexed_at::text AS indexed_at, award.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp, badge.uri AS badge_uri, badge.cid AS badge_cid, badge.indexed_at::text AS badge_indexed_at, badge.did AS badge_did, badge.record::text AS badge_record, recipient_response.uri AS recipient_response_uri, recipient_response.cid AS recipient_response_cid, recipient_response.indexed_at::text AS recipient_response_indexed_at, recipient_response.did AS recipient_response_did, recipient_response.record::text AS recipient_response_record FROM happyview_records AS award CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(award.record::jsonb->'createdAt') = 'string' AND award.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND award.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(award.record::jsonb->>'createdAt', 'timestamptz') THEN (award.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(award.indexed_at::timestamptz, award.created_at::timestamptz) END AS sort_at) sorted LEFT JOIN happyview_records AS badge ON badge.collection = 'app.certified.badge.definition' AND badge.uri = award.record::jsonb->'badge'->>'uri' AND badge.cid = award.record::jsonb->'badge'->>'cid' LEFT JOIN LATERAL (SELECT response.uri, response.cid, response.indexed_at, response.did, response.record FROM happyview_records AS response WHERE response.collection = 'app.certified.badge.response' AND response.did = CASE WHEN jsonb_typeof(award.record::jsonb->'subject') = 'string' THEN award.record::jsonb->>'subject' WHEN jsonb_typeof(award.record::jsonb->'subject') = 'object' AND award.record::jsonb->'subject'->>'$type' = 'app.certified.defs#did' AND jsonb_typeof(award.record::jsonb->'subject'->'did') = 'string' THEN award.record::jsonb->'subject'->>'did' ELSE split_part(award.record::jsonb->'subject'->>'uri', '/', 3) END AND response.record::jsonb->'badgeAward'->>'uri' = award.uri AND response.record::jsonb->'badgeAward'->>'cid' = award.cid AND response.record::jsonb->>'response' IN ('accepted', 'rejected') ORDER BY response.indexed_at DESC NULLS LAST, response.uri DESC LIMIT 1) AS recipient_response ON TRUE WHERE award.collection = $1 AND ((jsonb_typeof(award.record::jsonb->'subject') = 'string' AND award.record::jsonb->>'subject' IN ($2,$3)) OR (jsonb_typeof(award.record::jsonb->'subject') = 'object' AND award.record::jsonb->'subject'->>'$type' = 'app.certified.defs#did' AND jsonb_typeof(award.record::jsonb->'subject'->'did') = 'string' AND award.record::jsonb->'subject'->>'did' IN ($2,$3)) OR (jsonb_typeof(award.record::jsonb->'subject') = 'object' AND award.record::jsonb->'subject'->>'uri' IN ($4,$5))) ORDER BY sorted.sort_at DESC, award.uri DESC LIMIT $6"} +{"sql":"78f494786e","text":"SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS collection CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(collection.record::jsonb->'createdAt') = 'string' AND collection.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND collection.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(collection.record::jsonb->>'createdAt', 'timestamptz') THEN (collection.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(collection.indexed_at::timestamptz, collection.created_at::timestamptz) END AS sort_at) AS sorted WHERE collection.collection = $1 AND (strpos(lower(COALESCE(collection.record::jsonb->>'title', '')), lower($2)) > 0 OR strpos(lower(COALESCE(collection.record::jsonb->>'shortDescription', '')), lower($2)) > 0) ORDER BY sorted.sort_at ASC, collection.uri ASC LIMIT $3"} +{"sql":"792870ea3b","text":"SELECT award.uri, award.did, award.cid, award.indexed_at::text AS indexed_at, award.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp, badge.uri AS badge_uri, badge.cid AS badge_cid, badge.indexed_at::text AS badge_indexed_at, badge.did AS badge_did, badge.record::text AS badge_record, recipient_response.uri AS recipient_response_uri, recipient_response.cid AS recipient_response_cid, recipient_response.indexed_at::text AS recipient_response_indexed_at, recipient_response.did AS recipient_response_did, recipient_response.record::text AS recipient_response_record FROM happyview_records AS award CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(award.record::jsonb->'createdAt') = 'string' AND award.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND award.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(award.record::jsonb->>'createdAt', 'timestamptz') THEN (award.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(award.indexed_at::timestamptz, award.created_at::timestamptz) END AS sort_at) sorted LEFT JOIN happyview_records AS badge ON badge.collection = 'app.certified.badge.definition' AND badge.uri = award.record::jsonb->'badge'->>'uri' AND badge.cid = award.record::jsonb->'badge'->>'cid' LEFT JOIN LATERAL (SELECT response.uri, response.cid, response.indexed_at, response.did, response.record FROM happyview_records AS response WHERE response.collection = 'app.certified.badge.response' AND response.did = CASE WHEN jsonb_typeof(award.record::jsonb->'subject') = 'string' THEN award.record::jsonb->>'subject' WHEN jsonb_typeof(award.record::jsonb->'subject') = 'object' AND award.record::jsonb->'subject'->>'$type' = 'app.certified.defs#did' AND jsonb_typeof(award.record::jsonb->'subject'->'did') = 'string' THEN award.record::jsonb->'subject'->>'did' ELSE split_part(award.record::jsonb->'subject'->>'uri', '/', 3) END AND response.record::jsonb->'badgeAward'->>'uri' = award.uri AND response.record::jsonb->'badgeAward'->>'cid' = award.cid AND response.record::jsonb->>'response' IN ('accepted', 'rejected') ORDER BY response.indexed_at DESC NULLS LAST, response.uri DESC LIMIT 1) AS recipient_response ON TRUE WHERE award.collection = $1 AND award.record::jsonb->'badge'->>'uri' IN ($2) ORDER BY sorted.sort_at DESC, award.uri DESC LIMIT $3"} +{"sql":"79c0ea89fc","text":"SELECT activity.uri, activity.did, activity.cid, activity.indexed_at::text AS indexed_at, activity.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(activity.record::jsonb->'createdAt') = 'string' AND activity.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND activity.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(activity.record::jsonb->>'createdAt', 'timestamptz') THEN (activity.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(activity.indexed_at::timestamptz, activity.created_at::timestamptz) END AS sort_at) AS sorted WHERE activity.collection = $1 AND (sorted.sort_at, activity.uri) > (($2)::timestamptz, $3) ORDER BY sorted.sort_at ASC, activity.uri ASC LIMIT $4"} +{"sql":"7a3a9df1b7","text":"SELECT receipt.uri, receipt.did, receipt.cid, receipt.indexed_at::text AS indexed_at, receipt.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS receipt CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(receipt.record::jsonb->'createdAt') = 'string' AND receipt.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND receipt.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(receipt.record::jsonb->>'createdAt', 'timestamptz') THEN (receipt.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(receipt.indexed_at::timestamptz, receipt.created_at::timestamptz) END AS sort_at) AS sorted WHERE receipt.collection = $1 ORDER BY sorted.sort_at DESC, receipt.uri DESC LIMIT $2"} +{"sql":"7ab962c0bf","text":"SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS collection CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(collection.record::jsonb->'createdAt') = 'string' AND collection.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND collection.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(collection.record::jsonb->>'createdAt', 'timestamptz') THEN (collection.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(collection.indexed_at::timestamptz, collection.created_at::timestamptz) END AS sort_at) AS sorted WHERE collection.collection = $1 AND EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(collection.record::jsonb->'items') = 'array' THEN collection.record::jsonb->'items' ELSE '[]'::jsonb END) AS item(value) WHERE item.value->'itemIdentifier'->>'uri' IN ($2, $3, $4)) AND (strpos(lower(COALESCE(collection.record::jsonb->>'title', '')), lower($5)) > 0 OR strpos(lower(COALESCE(collection.record::jsonb->>'shortDescription', '')), lower($5)) > 0) ORDER BY sorted.sort_at DESC, collection.uri DESC LIMIT $6"} +{"sql":"7d4bb27bf2","text":"SELECT attachment.uri, attachment.did, attachment.cid, attachment.indexed_at::text AS indexed_at, attachment.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS attachment CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(attachment.record::jsonb->'createdAt') = 'string' AND attachment.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND attachment.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(attachment.record::jsonb->>'createdAt', 'timestamptz') THEN (attachment.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(attachment.indexed_at::timestamptz, attachment.created_at::timestamptz) END AS sort_at) AS sorted WHERE attachment.collection = $1 ORDER BY sorted.sort_at DESC, attachment.uri DESC LIMIT $2"} +{"sql":"7deb402ddc","text":"SELECT workscope_tag.uri, workscope_tag.did, workscope_tag.cid, workscope_tag.indexed_at::text AS indexed_at, workscope_tag.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS workscope_tag CROSS JOIN LATERAL (SELECT COALESCE(CASE WHEN workscope_tag.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}([.][0-9]+)?(Z|[+-][0-9]{2}:[0-9]{2})$' AND workscope_tag.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(workscope_tag.record::jsonb->>'createdAt', 'timestamp with time zone') THEN (workscope_tag.record::jsonb->>'createdAt')::timestamptz END, CASE WHEN pg_input_is_valid(workscope_tag.indexed_at, 'timestamp with time zone') THEN workscope_tag.indexed_at::timestamptz END, CASE WHEN pg_input_is_valid(workscope_tag.created_at, 'timestamp with time zone') THEN workscope_tag.created_at::timestamptz END) AS sort_at) AS sorted WHERE workscope_tag.collection = $1 AND (sorted.sort_at, workscope_tag.uri) > (($2)::timestamptz, $3) ORDER BY sorted.sort_at ASC, workscope_tag.uri ASC LIMIT $4"} +{"sql":"7e9ede407d","text":"SELECT attachment.uri, attachment.did, attachment.cid, attachment.indexed_at::text AS indexed_at, attachment.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS attachment CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(attachment.record::jsonb->'createdAt') = 'string' AND attachment.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND attachment.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(attachment.record::jsonb->>'createdAt', 'timestamptz') THEN (attachment.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(attachment.indexed_at::timestamptz, attachment.created_at::timestamptz) END AS sort_at) AS sorted WHERE attachment.collection = $1 AND attachment.did IN ($2, $3) AND attachment.uri IN ($4, $5) AND EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(attachment.record::jsonb->'subjects') = 'array' THEN attachment.record::jsonb->'subjects' ELSE '[]'::jsonb END) AS subject(value) WHERE subject.value->>'uri' IN ($6, $7)) AND attachment.record::jsonb->>'contentType' IN ($8, $9) ORDER BY sorted.sort_at DESC, attachment.uri DESC LIMIT $10"} +{"sql":"7f03b386ae","text":"SELECT link.uri, link.did, link.cid, link.indexed_at::text AS indexed_at, link.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS link CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(link.record::jsonb->'createdAt') = 'string' AND link.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND link.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(link.record::jsonb->>'createdAt', 'timestamptz') THEN (link.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(link.indexed_at::timestamptz, link.created_at::timestamptz) END AS sort_at) sorted WHERE link.collection = $1 AND lower(link.record::jsonb->>'address') IN ($2,$3,$4) ORDER BY sorted.sort_at DESC, link.uri DESC LIMIT $5"} +{"sql":"80efd5c186","text":"SELECT activity.uri, activity.did, activity.cid, activity.indexed_at::text AS indexed_at, activity.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(activity.record::jsonb->'createdAt') = 'string' AND activity.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND activity.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(activity.record::jsonb->>'createdAt', 'timestamptz') THEN (activity.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(activity.indexed_at::timestamptz, activity.created_at::timestamptz) END AS sort_at) AS sorted WHERE activity.collection = $1 AND activity.did IN ($2) ORDER BY sorted.sort_at DESC, activity.uri DESC LIMIT $3"} +{"sql":"81914bd684","text":"SELECT rights.uri, rights.did, rights.cid, rights.indexed_at::text AS indexed_at, rights.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS rights CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(rights.record::jsonb->'createdAt') = 'string' AND rights.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND rights.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(rights.record::jsonb->>'createdAt', 'timestamptz') THEN (rights.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(rights.indexed_at::timestamptz, rights.created_at::timestamptz) END AS sort_at) AS sorted WHERE rights.collection = $1 AND FALSE ORDER BY sorted.sort_at DESC, rights.uri DESC LIMIT $2"} +{"sql":"81d1f27eb3","text":"WITH ranked_follows AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, record::jsonb->>'subject' AS subject_did, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, record::jsonb->>'subject' ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND NOT COALESCE(starts_with(record::jsonb->'via'->>'uri', 'at://' || (record::jsonb->>'subject') || '/org.hypercerts.collection/'), FALSE) AND record::jsonb->>'subject' = $2), representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at, did AS actor_did FROM ranked_follows WHERE relationship_rank = 1), total AS (SELECT COUNT(*) AS total_count FROM representatives), page AS (SELECT uri, did, cid, indexed_at, record, sort_at, actor_did FROM representatives WHERE (sort_at, uri) > ($3::timestamptz, $4) ORDER BY sort_at ASC, uri ASC LIMIT $5) SELECT page.uri, page.did, page.cid, page.indexed_at, page.record, page.actor_did, total.total_count, to_char(page.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM total LEFT JOIN page ON TRUE ORDER BY page.sort_at ASC, page.uri ASC"} +{"sql":"82466a8847","text":"WITH ranked_follows AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, record::jsonb->'subject'->>'uri' ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND record::jsonb->'subject'->>'uri' = $2), representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM ranked_follows WHERE relationship_rank = 1), total AS (SELECT COUNT(*) AS total_count FROM representatives), page AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM representatives ORDER BY sort_at ASC, uri ASC LIMIT $3) SELECT page.uri, page.did, page.cid, page.indexed_at, page.record, total.total_count, to_char(page.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM total LEFT JOIN page ON TRUE ORDER BY page.sort_at ASC, page.uri ASC"} +{"sql":"84232a2660","text":"SELECT receipt.uri, receipt.did, receipt.cid, receipt.indexed_at::text AS indexed_at, receipt.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS receipt CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(receipt.record::jsonb->'createdAt') = 'string' AND receipt.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND receipt.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(receipt.record::jsonb->>'createdAt', 'timestamptz') THEN (receipt.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(receipt.indexed_at::timestamptz, receipt.created_at::timestamptz) END AS sort_at) AS sorted WHERE receipt.collection = $1 AND ((receipt.record::jsonb->'to'->>'$type' = 'com.atproto.repo.strongRef' AND receipt.record::jsonb->'to'->>'uri' IN ($2))) ORDER BY sorted.sort_at DESC, receipt.uri DESC LIMIT $3"} +{"sql":"8476426abd","text":"SELECT activity.uri, activity.did, activity.cid, activity.indexed_at::text AS indexed_at, activity.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(activity.record::jsonb->'createdAt') = 'string' AND activity.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND activity.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(activity.record::jsonb->>'createdAt', 'timestamptz') THEN (activity.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(activity.indexed_at::timestamptz, activity.created_at::timestamptz) END AS sort_at) AS sorted WHERE activity.collection = $1 AND EXISTS (SELECT 1 FROM happyview_records AS organization WHERE organization.collection = 'app.certified.actor.organization' AND organization.rkey = 'self' AND organization.did = activity.did) ORDER BY sorted.sort_at DESC, activity.uri DESC LIMIT $2"} +{"sql":"85ff29542d","text":"SELECT rights.uri, rights.did, rights.cid, rights.indexed_at::text AS indexed_at, rights.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS rights CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(rights.record::jsonb->'createdAt') = 'string' AND rights.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND rights.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(rights.record::jsonb->>'createdAt', 'timestamptz') THEN (rights.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(rights.indexed_at::timestamptz, rights.created_at::timestamptz) END AS sort_at) AS sorted WHERE rights.collection = $1 ORDER BY sorted.sort_at ASC, rights.uri ASC LIMIT $2"} +{"sql":"86a9017a0e","text":"SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS collection CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(collection.record::jsonb->'createdAt') = 'string' AND collection.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND collection.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(collection.record::jsonb->>'createdAt', 'timestamptz') THEN (collection.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(collection.indexed_at::timestamptz, collection.created_at::timestamptz) END AS sort_at) AS sorted WHERE collection.collection = $1 AND collection.uri IN ($2) AND (strpos(lower(COALESCE(collection.record::jsonb->>'title', '')), lower($3)) > 0 OR strpos(lower(COALESCE(collection.record::jsonb->>'shortDescription', '')), lower($3)) > 0) ORDER BY sorted.sort_at DESC, collection.uri DESC LIMIT $4"} +{"sql":"8770b97353","text":"SELECT receipt.uri, receipt.did, receipt.cid, receipt.indexed_at::text AS indexed_at, receipt.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS receipt CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(receipt.record::jsonb->'createdAt') = 'string' AND receipt.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND receipt.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(receipt.record::jsonb->>'createdAt', 'timestamptz') THEN (receipt.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(receipt.indexed_at::timestamptz, receipt.created_at::timestamptz) END AS sort_at) AS sorted WHERE receipt.collection = $1 AND ((receipt.record::jsonb->'from'->>'$type' = 'com.atproto.repo.strongRef' AND receipt.record::jsonb->'from'->>'uri' IN ($2))) ORDER BY sorted.sort_at DESC, receipt.uri DESC LIMIT $3"} +{"sql":"878d8c6e03","text":"SELECT contributor.uri, contributor.did, contributor.cid, contributor.indexed_at::text AS indexed_at, contributor.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS contributor CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(contributor.record::jsonb->'createdAt') = 'string' AND contributor.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND contributor.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(contributor.record::jsonb->>'createdAt', 'timestamptz') THEN (contributor.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(contributor.indexed_at::timestamptz, contributor.created_at::timestamptz) END AS sort_at) AS sorted WHERE contributor.collection = $1 AND (sorted.sort_at, contributor.uri) < (($2)::timestamptz, $3) ORDER BY sorted.sort_at DESC, contributor.uri DESC LIMIT $4"} +{"sql":"887630231f","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND record::jsonb->>'badgeType' IN ($2) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $3"} +{"sql":"8ba107c973","text":"SELECT activity.uri, activity.did, activity.cid, activity.indexed_at::text AS indexed_at, activity.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(activity.record::jsonb->'createdAt') = 'string' AND activity.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND activity.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(activity.record::jsonb->>'createdAt', 'timestamptz') THEN (activity.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(activity.indexed_at::timestamptz, activity.created_at::timestamptz) END AS sort_at) AS sorted WHERE activity.collection = $1 AND activity.uri IN ($2) AND (strpos(lower(COALESCE(activity.record::jsonb->>'title', '')), lower($3)) > 0 OR strpos(lower(COALESCE(activity.record::jsonb->>'shortDescription', '')), lower($3)) > 0) ORDER BY sorted.sort_at DESC, activity.uri DESC LIMIT $4"} +{"sql":"8c5185f17d","text":"SELECT activity.uri, activity.did, activity.cid, activity.indexed_at::text AS indexed_at, activity.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(activity.record::jsonb->'createdAt') = 'string' AND activity.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND activity.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(activity.record::jsonb->>'createdAt', 'timestamptz') THEN (activity.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(activity.indexed_at::timestamptz, activity.created_at::timestamptz) END AS sort_at) AS sorted WHERE activity.collection = $1 AND (activity.did IN ($2) OR EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(activity.record::jsonb->'contributors') = 'array' THEN activity.record::jsonb->'contributors' ELSE '[]'::jsonb END) AS contributor(value) LEFT JOIN happyview_records AS ci ON ci.collection = 'org.hypercerts.claim.contributorInformation' AND ci.uri = (contributor.value->'contributorIdentity'->>'uri') AND ci.cid = (contributor.value->'contributorIdentity'->>'cid') WHERE (contributor.value->'contributorIdentity'->>'identity' IN ($3) OR substring(contributor.value->'contributorIdentity'->>'identity' from '^at://([^/]+)/') IN ($3) OR ci.record::jsonb->>'identifier' IN ($3) OR substring(ci.record::jsonb->>'identifier' from '^at://([^/]+)/') IN ($3)))) AND (strpos(lower(COALESCE(activity.record::jsonb->>'title', '')), lower($4)) > 0 OR strpos(lower(COALESCE(activity.record::jsonb->>'shortDescription', '')), lower($4)) > 0) ORDER BY sorted.sort_at DESC, activity.uri DESC LIMIT $5"} +{"sql":"8d97cb081a","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND uri IN ($2) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $3"} +{"sql":"8db0d45b6b","text":"SELECT workscope_tag.uri, workscope_tag.did, workscope_tag.cid, workscope_tag.indexed_at::text AS indexed_at, workscope_tag.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS workscope_tag CROSS JOIN LATERAL (SELECT COALESCE(CASE WHEN workscope_tag.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}([.][0-9]+)?(Z|[+-][0-9]{2}:[0-9]{2})$' AND workscope_tag.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(workscope_tag.record::jsonb->>'createdAt', 'timestamp with time zone') THEN (workscope_tag.record::jsonb->>'createdAt')::timestamptz END, CASE WHEN pg_input_is_valid(workscope_tag.indexed_at, 'timestamp with time zone') THEN workscope_tag.indexed_at::timestamptz END, CASE WHEN pg_input_is_valid(workscope_tag.created_at, 'timestamp with time zone') THEN workscope_tag.created_at::timestamptz END) AS sort_at) AS sorted WHERE workscope_tag.collection = $1 AND (sorted.sort_at, workscope_tag.uri) < (($2)::timestamptz, $3) ORDER BY sorted.sort_at DESC, workscope_tag.uri DESC LIMIT $4"} +{"sql":"8e6d1e6347","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND did IN ($2,$3) AND record::jsonb->>'badgeType' IN ($4,$5) AND (strpos(lower(COALESCE(record::jsonb->>'title', '')), lower($6)) > 0 OR strpos(lower(COALESCE(record::jsonb->>'description', '')), lower($6)) > 0) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $7"} +{"sql":"921d3f3c56","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND rkey = 'self' AND did IN ($2, $3, $4) AND (strpos(lower(COALESCE(record::jsonb->>'displayName', '')), lower($5)) > 0 OR strpos(lower(COALESCE(record::jsonb->>'description', '')), lower($5)) > 0) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $6"} +{"sql":"926179a34c","text":"SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS collection CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(collection.record::jsonb->'createdAt') = 'string' AND collection.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND collection.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(collection.record::jsonb->>'createdAt', 'timestamptz') THEN (collection.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(collection.indexed_at::timestamptz, collection.created_at::timestamptz) END AS sort_at) AS sorted WHERE collection.collection = $1 AND (sorted.sort_at, collection.uri) < (($2)::timestamptz, $3) ORDER BY sorted.sort_at DESC, collection.uri DESC LIMIT $4"} +{"sql":"92fa39766a","text":"SELECT feature.uri, feature.did, feature.cid, feature.indexed_at::text AS indexed_at, feature.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS feature CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(feature.record::jsonb -> 'createdAt') = 'string' AND feature.record::jsonb ->> 'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND feature.record::jsonb ->> 'createdAt' !~ '-00:00$' AND pg_input_is_valid(feature.record::jsonb ->> 'createdAt', 'timestamptz') THEN (feature.record::jsonb ->> 'createdAt')::timestamptz ELSE COALESCE(feature.indexed_at::timestamptz, feature.created_at::timestamptz) END AS sort_at) AS sorted WHERE feature.collection = $1 AND NOT EXISTS (SELECT 1 FROM happyview_records AS organization WHERE organization.collection = 'app.certified.actor.organization' AND organization.rkey = 'self' AND organization.did = feature.did) ORDER BY sorted.sort_at DESC, feature.uri DESC LIMIT $2"} +{"sql":"935a7082cc","text":"WITH ranked_follows AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, record::jsonb->'subject'->>'uri' ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND did = $2), representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM ranked_follows WHERE relationship_rank = 1), page AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM representatives WHERE (sort_at, uri) > ($3::timestamptz, $4) ORDER BY sort_at ASC, uri ASC LIMIT $5) SELECT page.uri, page.did, page.cid, page.indexed_at, page.record, to_char(page.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM page ORDER BY page.sort_at ASC, page.uri ASC"} +{"sql":"93d47a9512","text":"SELECT contributor.uri, contributor.did, contributor.cid, contributor.indexed_at::text AS indexed_at, contributor.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS contributor CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(contributor.record::jsonb->'createdAt') = 'string' AND contributor.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND contributor.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(contributor.record::jsonb->>'createdAt', 'timestamptz') THEN (contributor.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(contributor.indexed_at::timestamptz, contributor.created_at::timestamptz) END AS sort_at) AS sorted WHERE contributor.collection = $1 AND FALSE ORDER BY sorted.sort_at DESC, contributor.uri DESC LIMIT $2"} +{"sql":"94b8231885","text":"SELECT attachment.uri, attachment.did, attachment.cid, attachment.indexed_at::text AS indexed_at, attachment.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS attachment CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(attachment.record::jsonb->'createdAt') = 'string' AND attachment.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND attachment.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(attachment.record::jsonb->>'createdAt', 'timestamptz') THEN (attachment.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(attachment.indexed_at::timestamptz, attachment.created_at::timestamptz) END AS sort_at) AS sorted WHERE attachment.collection = $1 AND attachment.record::jsonb->>'contentType' IN ($2) ORDER BY sorted.sort_at DESC, attachment.uri DESC LIMIT $3"} +{"sql":"958119e969","text":"WITH ranked_reactions AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, record::jsonb->'subject'->>'uri' ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND did = $2), representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM ranked_reactions WHERE relationship_rank = 1), page AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM representatives ORDER BY sort_at DESC, uri DESC LIMIT $3) SELECT page.uri, page.did, page.cid, page.indexed_at, page.record, to_char(page.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM page ORDER BY page.sort_at DESC, page.uri DESC"} +{"sql":"963e68375d","text":"SELECT rights.uri, rights.did, rights.cid, rights.indexed_at::text AS indexed_at, rights.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS rights CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(rights.record::jsonb->'createdAt') = 'string' AND rights.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND rights.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(rights.record::jsonb->>'createdAt', 'timestamptz') THEN (rights.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(rights.indexed_at::timestamptz, rights.created_at::timestamptz) END AS sort_at) AS sorted WHERE rights.collection = $1 AND rights.did IN ($2, $3, $4) ORDER BY sorted.sort_at DESC, rights.uri DESC LIMIT $5"} +{"sql":"966cd6b22a","text":"SELECT activity.uri, activity.did, activity.cid, activity.indexed_at::text AS indexed_at, activity.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(activity.record::jsonb->'createdAt') = 'string' AND activity.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND activity.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(activity.record::jsonb->>'createdAt', 'timestamptz') THEN (activity.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(activity.indexed_at::timestamptz, activity.created_at::timestamptz) END AS sort_at) AS sorted WHERE activity.collection = $1 AND (strpos(lower(COALESCE(activity.record::jsonb->>'title', '')), lower($2)) > 0 OR strpos(lower(COALESCE(activity.record::jsonb->>'shortDescription', '')), lower($2)) > 0) AND (sorted.sort_at, activity.uri) > (($3)::timestamptz, $4) ORDER BY sorted.sort_at ASC, activity.uri ASC LIMIT $5"} +{"sql":"9774bdb4af","text":"SELECT receipt.uri, receipt.did, receipt.cid, receipt.indexed_at::text AS indexed_at, receipt.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS receipt CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(receipt.record::jsonb->'createdAt') = 'string' AND receipt.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND receipt.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(receipt.record::jsonb->>'createdAt', 'timestamptz') THEN (receipt.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(receipt.indexed_at::timestamptz, receipt.created_at::timestamptz) END AS sort_at) AS sorted WHERE receipt.collection = $1 AND receipt.uri IN ($2) ORDER BY sorted.sort_at DESC, receipt.uri DESC LIMIT $3"} +{"sql":"9820dcd288","text":"WITH ranked_reactions AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, record::jsonb->'subject'->>'uri' ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND record::jsonb->'subject'->>'uri' = $2), representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM ranked_reactions WHERE relationship_rank = 1), total AS (SELECT COUNT(*) AS total_count FROM representatives), page AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM representatives WHERE (sort_at, uri) < ($3::timestamptz, $4) ORDER BY sort_at DESC, uri DESC LIMIT $5) SELECT page.uri, page.did, page.cid, page.indexed_at, page.record, to_char(page.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp , total.total_count FROM total LEFT JOIN page ON TRUE ORDER BY page.sort_at DESC, page.uri DESC"} +{"sql":"988c9b344e","text":"SELECT contributor.uri, contributor.did, contributor.cid, contributor.indexed_at::text AS indexed_at, contributor.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS contributor CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(contributor.record::jsonb->'createdAt') = 'string' AND contributor.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND contributor.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(contributor.record::jsonb->>'createdAt', 'timestamptz') THEN (contributor.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(contributor.indexed_at::timestamptz, contributor.created_at::timestamptz) END AS sort_at) AS sorted WHERE contributor.collection = $1 ORDER BY sorted.sort_at DESC, contributor.uri DESC LIMIT $2"} +{"sql":"99c5929723","text":"SELECT link.uri, link.did, link.cid, link.indexed_at::text AS indexed_at, link.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS link CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(link.record::jsonb->'createdAt') = 'string' AND link.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND link.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(link.record::jsonb->>'createdAt', 'timestamptz') THEN (link.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(link.indexed_at::timestamptz, link.created_at::timestamptz) END AS sort_at) sorted WHERE link.collection = $1 AND lower(link.record::jsonb->>'address') IN ($2) ORDER BY sorted.sort_at DESC, link.uri DESC LIMIT $3"} +{"sql":"9a5987f560","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND (strpos(lower(COALESCE(record::jsonb->>'title', '')), lower($2)) > 0 OR strpos(lower(COALESCE(record::jsonb->>'description', '')), lower($2)) > 0) AND (sorted.sort_at, uri) < (($3)::timestamptz, $4) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $5"} +{"sql":"9a71769be1","text":"SELECT attachment.uri, attachment.did, attachment.cid, attachment.indexed_at::text AS indexed_at, attachment.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS attachment CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(attachment.record::jsonb->'createdAt') = 'string' AND attachment.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND attachment.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(attachment.record::jsonb->>'createdAt', 'timestamptz') THEN (attachment.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(attachment.indexed_at::timestamptz, attachment.created_at::timestamptz) END AS sort_at) AS sorted WHERE attachment.collection = $1 AND FALSE ORDER BY sorted.sort_at DESC, attachment.uri DESC LIMIT $2"} +{"sql":"9b7df21f2c","text":"SELECT evaluation.uri, evaluation.did, evaluation.cid, evaluation.indexed_at::text AS indexed_at, evaluation.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS evaluation CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(evaluation.record::jsonb->'createdAt') = 'string' AND evaluation.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND evaluation.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(evaluation.record::jsonb->>'createdAt', 'timestamptz') THEN (evaluation.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(evaluation.indexed_at::timestamptz, evaluation.created_at::timestamptz) END AS sort_at) AS sorted WHERE evaluation.collection = $1 AND evaluation.did IN ($2, $3, $4) ORDER BY sorted.sort_at DESC, evaluation.uri DESC LIMIT $5"} +{"sql":"9c5d84a518","text":"SELECT receipt.uri, receipt.did, receipt.cid, receipt.indexed_at::text AS indexed_at, receipt.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS receipt CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(receipt.record::jsonb->'createdAt') = 'string' AND receipt.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND receipt.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(receipt.record::jsonb->>'createdAt', 'timestamptz') THEN (receipt.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(receipt.indexed_at::timestamptz, receipt.created_at::timestamptz) END AS sort_at) AS sorted WHERE receipt.collection = $1 AND (sorted.sort_at, receipt.uri) > (($2)::timestamptz, $3) ORDER BY sorted.sort_at ASC, receipt.uri ASC LIMIT $4"} +{"sql":"9d1064a743","text":"SELECT link.uri, link.did, link.cid, link.indexed_at::text AS indexed_at, link.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS link CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(link.record::jsonb->'createdAt') = 'string' AND link.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND link.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(link.record::jsonb->>'createdAt', 'timestamptz') THEN (link.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(link.indexed_at::timestamptz, link.created_at::timestamptz) END AS sort_at) sorted WHERE link.collection = $1 AND (sorted.sort_at, link.uri) < (($2)::timestamptz, $3) ORDER BY sorted.sort_at DESC, link.uri DESC LIMIT $4"} +{"sql":"9d26dac464","text":"WITH ranked_reactions AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, record::jsonb->'subject'->>'uri' ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND record::jsonb->'subject'->>'uri' = $2), representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM ranked_reactions WHERE relationship_rank = 1), total AS (SELECT COUNT(*) AS total_count FROM representatives), page AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM representatives WHERE (sort_at, uri) > ($3::timestamptz, $4) ORDER BY sort_at ASC, uri ASC LIMIT $5) SELECT page.uri, page.did, page.cid, page.indexed_at, page.record, to_char(page.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp , total.total_count FROM total LEFT JOIN page ON TRUE ORDER BY page.sort_at ASC, page.uri ASC"} +{"sql":"9e6090d8e4","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND rkey = 'self' AND (sorted.sort_at, uri) < (($2)::timestamptz, $3) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $4"} +{"sql":"9f1015cbbe","text":"SELECT activity.uri, activity.did, activity.cid, activity.indexed_at::text AS indexed_at, activity.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(activity.record::jsonb->'createdAt') = 'string' AND activity.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND activity.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(activity.record::jsonb->>'createdAt', 'timestamptz') THEN (activity.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(activity.indexed_at::timestamptz, activity.created_at::timestamptz) END AS sort_at) AS sorted WHERE activity.collection = $1 AND NOT EXISTS (SELECT 1 FROM happyview_records AS organization WHERE organization.collection = 'app.certified.actor.organization' AND organization.rkey = 'self' AND organization.did = activity.did) ORDER BY sorted.sort_at DESC, activity.uri DESC LIMIT $2"} +{"sql":"a0200581e8","text":"SELECT workscope_tag.uri, workscope_tag.did, workscope_tag.cid, workscope_tag.indexed_at::text AS indexed_at, workscope_tag.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS workscope_tag CROSS JOIN LATERAL (SELECT COALESCE(CASE WHEN workscope_tag.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}([.][0-9]+)?(Z|[+-][0-9]{2}:[0-9]{2})$' AND workscope_tag.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(workscope_tag.record::jsonb->>'createdAt', 'timestamp with time zone') THEN (workscope_tag.record::jsonb->>'createdAt')::timestamptz END, CASE WHEN pg_input_is_valid(workscope_tag.indexed_at, 'timestamp with time zone') THEN workscope_tag.indexed_at::timestamptz END, CASE WHEN pg_input_is_valid(workscope_tag.created_at, 'timestamp with time zone') THEN workscope_tag.created_at::timestamptz END) AS sort_at) AS sorted WHERE workscope_tag.collection = $1 AND workscope_tag.did IN ($2) ORDER BY sorted.sort_at DESC, workscope_tag.uri DESC LIMIT $3"} +{"sql":"a03dd453be","text":"SELECT link.uri, link.did, link.cid, link.indexed_at::text AS indexed_at, link.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS link CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(link.record::jsonb->'createdAt') = 'string' AND link.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND link.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(link.record::jsonb->>'createdAt', 'timestamptz') THEN (link.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(link.indexed_at::timestamptz, link.created_at::timestamptz) END AS sort_at) sorted WHERE link.collection = $1 ORDER BY sorted.sort_at ASC, link.uri ASC LIMIT $2"} +{"sql":"a3ed0d16fb","text":"SELECT activity.uri, activity.did, activity.cid, activity.indexed_at::text AS indexed_at, activity.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(activity.record::jsonb->'createdAt') = 'string' AND activity.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND activity.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(activity.record::jsonb->>'createdAt', 'timestamptz') THEN (activity.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(activity.indexed_at::timestamptz, activity.created_at::timestamptz) END AS sort_at) AS sorted WHERE activity.collection = $1 AND activity.uri IN ($2, $3, $4) AND (strpos(lower(COALESCE(activity.record::jsonb->>'title', '')), lower($5)) > 0 OR strpos(lower(COALESCE(activity.record::jsonb->>'shortDescription', '')), lower($5)) > 0) ORDER BY sorted.sort_at DESC, activity.uri DESC LIMIT $6"} +{"sql":"a4737487ed","text":"SELECT activity.uri, activity.did, activity.cid, activity.indexed_at::text AS indexed_at, activity.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(activity.record::jsonb->'createdAt') = 'string' AND activity.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND activity.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(activity.record::jsonb->>'createdAt', 'timestamptz') THEN (activity.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(activity.indexed_at::timestamptz, activity.created_at::timestamptz) END AS sort_at) AS sorted WHERE activity.collection = $1 AND (activity.did IN ($2, $3, $4) OR EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(activity.record::jsonb->'contributors') = 'array' THEN activity.record::jsonb->'contributors' ELSE '[]'::jsonb END) AS contributor(value) LEFT JOIN happyview_records AS ci ON ci.collection = 'org.hypercerts.claim.contributorInformation' AND ci.uri = (contributor.value->'contributorIdentity'->>'uri') AND ci.cid = (contributor.value->'contributorIdentity'->>'cid') WHERE (contributor.value->'contributorIdentity'->>'identity' IN ($5, $6, $7) OR substring(contributor.value->'contributorIdentity'->>'identity' from '^at://([^/]+)/') IN ($5, $6, $7) OR ci.record::jsonb->>'identifier' IN ($5, $6, $7) OR substring(ci.record::jsonb->>'identifier' from '^at://([^/]+)/') IN ($5, $6, $7)))) ORDER BY sorted.sort_at DESC, activity.uri DESC LIMIT $8"} +{"sql":"a4a6ef4bdf","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND rkey = 'self' AND did IN ($2) AND (strpos(lower(COALESCE(record::jsonb->>'displayName', '')), lower($3)) > 0 OR strpos(lower(COALESCE(record::jsonb->>'description', '')), lower($3)) > 0) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $4"} +{"sql":"a4f35cd109","text":"WITH ranked_follows AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, record::jsonb->>'subject' AS subject_did, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, record::jsonb->>'subject' ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND NOT COALESCE(starts_with(record::jsonb->'via'->>'uri', 'at://' || (record::jsonb->>'subject') || '/org.hypercerts.collection/'), FALSE) AND record::jsonb->>'subject' = $2), representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at, did AS actor_did FROM ranked_follows WHERE relationship_rank = 1), total AS (SELECT COUNT(*) AS total_count FROM representatives), page AS (SELECT uri, did, cid, indexed_at, record, sort_at, actor_did FROM representatives WHERE (sort_at, uri) < ($3::timestamptz, $4) ORDER BY sort_at DESC, uri DESC LIMIT $5) SELECT page.uri, page.did, page.cid, page.indexed_at, page.record, page.actor_did, total.total_count, to_char(page.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM total LEFT JOIN page ON TRUE ORDER BY page.sort_at DESC, page.uri DESC"} +{"sql":"a5a8ed742f","text":"SELECT organization.uri, organization.did, organization.cid, organization.indexed_at::text AS indexed_at, organization.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS organization CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(organization.record::jsonb->'createdAt') = 'string' AND organization.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND organization.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(organization.record::jsonb->>'createdAt', 'timestamptz') THEN (organization.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(organization.indexed_at::timestamptz, organization.created_at::timestamptz) END AS sort_at) AS sorted WHERE organization.collection = $1 AND organization.rkey = 'self' ORDER BY sorted.sort_at ASC, uri ASC LIMIT $2"} +{"sql":"a629886768","text":"SELECT activity.uri, activity.did, activity.cid, activity.indexed_at::text AS indexed_at, activity.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(activity.record::jsonb->'createdAt') = 'string' AND activity.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND activity.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(activity.record::jsonb->>'createdAt', 'timestamptz') THEN (activity.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(activity.indexed_at::timestamptz, activity.created_at::timestamptz) END AS sort_at) AS sorted WHERE activity.collection = $1 AND EXISTS (SELECT 1 FROM happyview_records AS organization WHERE organization.collection = 'app.certified.actor.organization' AND organization.rkey = 'self' AND organization.did = activity.did) AND (strpos(lower(COALESCE(activity.record::jsonb->>'title', '')), lower($2)) > 0 OR strpos(lower(COALESCE(activity.record::jsonb->>'shortDescription', '')), lower($2)) > 0) ORDER BY sorted.sort_at DESC, activity.uri DESC LIMIT $3"} +{"sql":"a899f0d903","text":"SELECT activity.uri, activity.did, activity.cid, activity.indexed_at::text AS indexed_at, activity.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(activity.record::jsonb->'createdAt') = 'string' AND activity.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND activity.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(activity.record::jsonb->>'createdAt', 'timestamptz') THEN (activity.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(activity.indexed_at::timestamptz, activity.created_at::timestamptz) END AS sort_at) AS sorted WHERE activity.collection = $1 AND FALSE AND (strpos(lower(COALESCE(activity.record::jsonb->>'title', '')), lower($2)) > 0 OR strpos(lower(COALESCE(activity.record::jsonb->>'shortDescription', '')), lower($2)) > 0) ORDER BY sorted.sort_at DESC, activity.uri DESC LIMIT $3"} +{"sql":"a8fc854d42","text":"SELECT measurement.uri, measurement.did, measurement.cid, measurement.indexed_at::text AS indexed_at, measurement.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS measurement CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(measurement.record::jsonb->'createdAt') = 'string' AND measurement.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND measurement.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(measurement.record::jsonb->>'createdAt', 'timestamptz') THEN (measurement.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(measurement.indexed_at::timestamptz, measurement.created_at::timestamptz) END AS sort_at) AS sorted WHERE measurement.collection = $1 AND measurement.did IN ($2, $3) AND EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(measurement.record::jsonb->'subjects') = 'array' THEN measurement.record::jsonb->'subjects' ELSE '[]'::jsonb END) AS subject(value) WHERE subject.value->>'uri' IN ($4, $5)) ORDER BY sorted.sort_at DESC, measurement.uri DESC LIMIT $6"} +{"sql":"a916de18ad","text":"SELECT activity.uri, activity.did, activity.cid, activity.indexed_at::text AS indexed_at, activity.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(activity.record::jsonb->'createdAt') = 'string' AND activity.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND activity.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(activity.record::jsonb->>'createdAt', 'timestamptz') THEN (activity.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(activity.indexed_at::timestamptz, activity.created_at::timestamptz) END AS sort_at) AS sorted WHERE activity.collection = $1 ORDER BY sorted.sort_at ASC, activity.uri ASC LIMIT $2"} +{"sql":"a924fe0ac0","text":"SELECT activity.uri, activity.did, activity.cid, activity.indexed_at::text AS indexed_at, activity.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(activity.record::jsonb->'createdAt') = 'string' AND activity.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND activity.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(activity.record::jsonb->>'createdAt', 'timestamptz') THEN (activity.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(activity.indexed_at::timestamptz, activity.created_at::timestamptz) END AS sort_at) AS sorted WHERE activity.collection = $1 AND activity.uri IN ($2) ORDER BY sorted.sort_at DESC, activity.uri DESC LIMIT $3"} +{"sql":"a97172131c","text":"WITH candidates AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, sorted.sort_at FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz END AS sort_at) AS sorted WHERE collection IN ($1, $2) AND cid <> '' AND (collection <> $1 OR NOT COALESCE(starts_with(record::jsonb->'via'->>'uri', 'at://' || (record::jsonb->>'subject') || '/org.hypercerts.collection/'), FALSE))), page AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM candidates WHERE sort_at IS NOT NULL AND (sort_at, uri) < ($3::timestamptz, $4) ORDER BY sort_at DESC, uri DESC LIMIT $5) SELECT uri, did, cid, indexed_at, record, to_char(sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM page ORDER BY sort_at DESC, uri DESC"} +{"sql":"ac33fe3268","text":"SELECT measurement.uri, measurement.did, measurement.cid, measurement.indexed_at::text AS indexed_at, measurement.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS measurement CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(measurement.record::jsonb->'createdAt') = 'string' AND measurement.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND measurement.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(measurement.record::jsonb->>'createdAt', 'timestamptz') THEN (measurement.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(measurement.indexed_at::timestamptz, measurement.created_at::timestamptz) END AS sort_at) AS sorted WHERE measurement.collection = $1 AND EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(measurement.record::jsonb->'subjects') = 'array' THEN measurement.record::jsonb->'subjects' ELSE '[]'::jsonb END) AS subject(value) WHERE subject.value->>'uri' IN ($2, $3, $4)) ORDER BY sorted.sort_at DESC, measurement.uri DESC LIMIT $5"} +{"sql":"acdeba05c5","text":"SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS collection CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(collection.record::jsonb->'createdAt') = 'string' AND collection.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND collection.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(collection.record::jsonb->>'createdAt', 'timestamptz') THEN (collection.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(collection.indexed_at::timestamptz, collection.created_at::timestamptz) END AS sort_at) AS sorted WHERE collection.collection = $1 AND collection.did IN ($2) AND (strpos(lower(COALESCE(collection.record::jsonb->>'title', '')), lower($3)) > 0 OR strpos(lower(COALESCE(collection.record::jsonb->>'shortDescription', '')), lower($3)) > 0) ORDER BY sorted.sort_at DESC, collection.uri DESC LIMIT $4"} +{"sql":"aeb346d897","text":"SELECT receipt.uri, receipt.did, receipt.cid, receipt.indexed_at::text AS indexed_at, receipt.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS receipt CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(receipt.record::jsonb->'createdAt') = 'string' AND receipt.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND receipt.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(receipt.record::jsonb->>'createdAt', 'timestamptz') THEN (receipt.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(receipt.indexed_at::timestamptz, receipt.created_at::timestamptz) END AS sort_at) AS sorted WHERE receipt.collection = $1 AND receipt.record::jsonb->'for'->>'uri' IN ($2, $3, $4) ORDER BY sorted.sort_at DESC, receipt.uri DESC LIMIT $5"} +{"sql":"aed3d6f7c0","text":"SELECT organization.uri, organization.did, organization.cid, organization.indexed_at::text AS indexed_at, organization.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS organization CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(organization.record::jsonb->'createdAt') = 'string' AND organization.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND organization.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(organization.record::jsonb->>'createdAt', 'timestamptz') THEN (organization.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(organization.indexed_at::timestamptz, organization.created_at::timestamptz) END AS sort_at) AS sorted WHERE organization.collection = $1 AND organization.rkey = 'self' AND (strpos(lower(COALESCE(organization.record::jsonb->>'legalName', '')), lower($2)) > 0 OR EXISTS (SELECT 1 FROM happyview_records AS profile WHERE profile.collection = $3 AND profile.did = organization.did AND profile.rkey = 'self' AND (strpos(lower(COALESCE(profile.record::jsonb->>'displayName', '')), lower($2)) > 0 OR strpos(lower(COALESCE(profile.record::jsonb->>'description', '')), lower($2)) > 0))) AND (sorted.sort_at, uri) > (($4)::timestamptz, $5) ORDER BY sorted.sort_at ASC, uri ASC LIMIT $6"} +{"sql":"af0b53881c","text":"SELECT activity.uri, activity.did, activity.cid, activity.indexed_at::text AS indexed_at, activity.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(activity.record::jsonb->'createdAt') = 'string' AND activity.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND activity.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(activity.record::jsonb->>'createdAt', 'timestamptz') THEN (activity.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(activity.indexed_at::timestamptz, activity.created_at::timestamptz) END AS sort_at) AS sorted WHERE activity.collection = $1 AND activity.did IN ($2, $3) AND EXISTS (SELECT 1 FROM happyview_records AS organization WHERE organization.collection = 'app.certified.actor.organization' AND organization.rkey = 'self' AND organization.did = activity.did) AND EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(activity.record::jsonb->'contributors') = 'array' THEN activity.record::jsonb->'contributors' ELSE '[]'::jsonb END) AS contributor(value) LEFT JOIN happyview_records AS ci ON ci.collection = 'org.hypercerts.claim.contributorInformation' AND ci.uri = (contributor.value->'contributorIdentity'->>'uri') AND ci.cid = (contributor.value->'contributorIdentity'->>'cid') WHERE (contributor.value->'contributorIdentity'->>'identity' IN ($4, $5) OR substring(contributor.value->'contributorIdentity'->>'identity' from '^at://([^/]+)/') IN ($4, $5) OR ci.record::jsonb->>'identifier' IN ($4, $5) OR substring(ci.record::jsonb->>'identifier' from '^at://([^/]+)/') IN ($4, $5))) AND (activity.did IN ($6, $7) OR EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(activity.record::jsonb->'contributors') = 'array' THEN activity.record::jsonb->'contributors' ELSE '[]'::jsonb END) AS contributor(value) LEFT JOIN happyview_records AS ci ON ci.collection = 'org.hypercerts.claim.contributorInformation' AND ci.uri = (contributor.value->'contributorIdentity'->>'uri') AND ci.cid = (contributor.value->'contributorIdentity'->>'cid') WHERE (contributor.value->'contributorIdentity'->>'identity' IN ($8, $9) OR substring(contributor.value->'contributorIdentity'->>'identity' from '^at://([^/]+)/') IN ($8, $9) OR ci.record::jsonb->>'identifier' IN ($8, $9) OR substring(ci.record::jsonb->>'identifier' from '^at://([^/]+)/') IN ($8, $9)))) AND activity.uri IN ($10, $11) ORDER BY sorted.sort_at DESC, activity.uri DESC LIMIT $12"} +{"sql":"b0cc72faf4","text":"SELECT workscope_tag.uri, workscope_tag.did, workscope_tag.cid, workscope_tag.indexed_at::text AS indexed_at, workscope_tag.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS workscope_tag CROSS JOIN LATERAL (SELECT COALESCE(CASE WHEN workscope_tag.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}([.][0-9]+)?(Z|[+-][0-9]{2}:[0-9]{2})$' AND workscope_tag.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(workscope_tag.record::jsonb->>'createdAt', 'timestamp with time zone') THEN (workscope_tag.record::jsonb->>'createdAt')::timestamptz END, CASE WHEN pg_input_is_valid(workscope_tag.indexed_at, 'timestamp with time zone') THEN workscope_tag.indexed_at::timestamptz END, CASE WHEN pg_input_is_valid(workscope_tag.created_at, 'timestamp with time zone') THEN workscope_tag.created_at::timestamptz END) AS sort_at) AS sorted WHERE workscope_tag.collection = $1 ORDER BY sorted.sort_at ASC, workscope_tag.uri ASC LIMIT $2"} +{"sql":"b16ebab61c","text":"SELECT activity.uri, activity.did, activity.cid, activity.indexed_at::text AS indexed_at, activity.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(activity.record::jsonb->'createdAt') = 'string' AND activity.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND activity.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(activity.record::jsonb->>'createdAt', 'timestamptz') THEN (activity.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(activity.indexed_at::timestamptz, activity.created_at::timestamptz) END AS sort_at) AS sorted WHERE activity.collection = $1 AND activity.did IN ($2, $3) AND EXISTS (SELECT 1 FROM happyview_records AS organization WHERE organization.collection = 'app.certified.actor.organization' AND organization.rkey = 'self' AND organization.did = activity.did) AND EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(activity.record::jsonb->'contributors') = 'array' THEN activity.record::jsonb->'contributors' ELSE '[]'::jsonb END) AS contributor(value) LEFT JOIN happyview_records AS ci ON ci.collection = 'org.hypercerts.claim.contributorInformation' AND ci.uri = (contributor.value->'contributorIdentity'->>'uri') AND ci.cid = (contributor.value->'contributorIdentity'->>'cid') WHERE (contributor.value->'contributorIdentity'->>'identity' IN ($4, $5) OR substring(contributor.value->'contributorIdentity'->>'identity' from '^at://([^/]+)/') IN ($4, $5) OR ci.record::jsonb->>'identifier' IN ($4, $5) OR substring(ci.record::jsonb->>'identifier' from '^at://([^/]+)/') IN ($4, $5))) AND (activity.did IN ($6, $7) OR EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(activity.record::jsonb->'contributors') = 'array' THEN activity.record::jsonb->'contributors' ELSE '[]'::jsonb END) AS contributor(value) LEFT JOIN happyview_records AS ci ON ci.collection = 'org.hypercerts.claim.contributorInformation' AND ci.uri = (contributor.value->'contributorIdentity'->>'uri') AND ci.cid = (contributor.value->'contributorIdentity'->>'cid') WHERE (contributor.value->'contributorIdentity'->>'identity' IN ($8, $9) OR substring(contributor.value->'contributorIdentity'->>'identity' from '^at://([^/]+)/') IN ($8, $9) OR ci.record::jsonb->>'identifier' IN ($8, $9) OR substring(ci.record::jsonb->>'identifier' from '^at://([^/]+)/') IN ($8, $9)))) AND activity.uri IN ($10, $11) AND (strpos(lower(COALESCE(activity.record::jsonb->>'title', '')), lower($12)) > 0 OR strpos(lower(COALESCE(activity.record::jsonb->>'shortDescription', '')), lower($12)) > 0) ORDER BY sorted.sort_at DESC, activity.uri DESC LIMIT $13"} +{"sql":"b1eb0cc1f8","text":"WITH candidates AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, sorted.sort_at FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz END AS sort_at) AS sorted WHERE collection IN ($1, $2) AND cid <> '' AND (collection <> $1 OR NOT COALESCE(starts_with(record::jsonb->'via'->>'uri', 'at://' || (record::jsonb->>'subject') || '/org.hypercerts.collection/'), FALSE))), page AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM candidates WHERE sort_at IS NOT NULL AND sort_at < $3::timestamptz ORDER BY sort_at DESC, uri DESC LIMIT $4) SELECT uri, did, cid, indexed_at, record, to_char(sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM page ORDER BY sort_at DESC, uri DESC"} +{"sql":"b224c5782a","text":"WITH ranked_follows AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, record::jsonb->>'subject' AS subject_did, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, record::jsonb->>'subject' ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND NOT COALESCE(starts_with(record::jsonb->'via'->>'uri', 'at://' || (record::jsonb->>'subject') || '/org.hypercerts.collection/'), FALSE) AND did = $2), representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at, subject_did AS actor_did FROM ranked_follows WHERE relationship_rank = 1), total AS (SELECT COUNT(*) AS total_count FROM representatives), page AS (SELECT uri, did, cid, indexed_at, record, sort_at, actor_did FROM representatives WHERE (sort_at, uri) < ($3::timestamptz, $4) ORDER BY sort_at DESC, uri DESC LIMIT $5) SELECT page.uri, page.did, page.cid, page.indexed_at, page.record, page.actor_did, total.total_count, to_char(page.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM total LEFT JOIN page ON TRUE ORDER BY page.sort_at DESC, page.uri DESC"} +{"sql":"b2723dc542","text":"SELECT response.uri, response.did, response.cid, response.indexed_at::text AS indexed_at, response.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS response CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(response.record::jsonb->'createdAt') = 'string' AND response.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND response.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(response.record::jsonb->>'createdAt', 'timestamptz') THEN (response.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(response.indexed_at::timestamptz, response.created_at::timestamptz) END AS sort_at) sorted WHERE response.collection = $1 ORDER BY sorted.sort_at ASC, response.uri ASC LIMIT $2"} +{"sql":"b30c649623","text":"WITH ranked_reactions AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, record::jsonb->'subject'->>'uri' ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND record::jsonb->'subject'->>'uri' = $2), representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM ranked_reactions WHERE relationship_rank = 1), total AS (SELECT COUNT(*) AS total_count FROM representatives), page AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM representatives ORDER BY sort_at ASC, uri ASC LIMIT $3) SELECT page.uri, page.did, page.cid, page.indexed_at, page.record, to_char(page.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp , total.total_count FROM total LEFT JOIN page ON TRUE ORDER BY page.sort_at ASC, page.uri ASC"} +{"sql":"b54d166028","text":"SELECT award.uri, award.did, award.cid, award.indexed_at::text AS indexed_at, award.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp, badge.uri AS badge_uri, badge.cid AS badge_cid, badge.indexed_at::text AS badge_indexed_at, badge.did AS badge_did, badge.record::text AS badge_record, recipient_response.uri AS recipient_response_uri, recipient_response.cid AS recipient_response_cid, recipient_response.indexed_at::text AS recipient_response_indexed_at, recipient_response.did AS recipient_response_did, recipient_response.record::text AS recipient_response_record FROM happyview_records AS award CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(award.record::jsonb->'createdAt') = 'string' AND award.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND award.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(award.record::jsonb->>'createdAt', 'timestamptz') THEN (award.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(award.indexed_at::timestamptz, award.created_at::timestamptz) END AS sort_at) sorted LEFT JOIN happyview_records AS badge ON badge.collection = 'app.certified.badge.definition' AND badge.uri = award.record::jsonb->'badge'->>'uri' AND badge.cid = award.record::jsonb->'badge'->>'cid' LEFT JOIN LATERAL (SELECT response.uri, response.cid, response.indexed_at, response.did, response.record FROM happyview_records AS response WHERE response.collection = 'app.certified.badge.response' AND response.did = CASE WHEN jsonb_typeof(award.record::jsonb->'subject') = 'string' THEN award.record::jsonb->>'subject' WHEN jsonb_typeof(award.record::jsonb->'subject') = 'object' AND award.record::jsonb->'subject'->>'$type' = 'app.certified.defs#did' AND jsonb_typeof(award.record::jsonb->'subject'->'did') = 'string' THEN award.record::jsonb->'subject'->>'did' ELSE split_part(award.record::jsonb->'subject'->>'uri', '/', 3) END AND response.record::jsonb->'badgeAward'->>'uri' = award.uri AND response.record::jsonb->'badgeAward'->>'cid' = award.cid AND response.record::jsonb->>'response' IN ('accepted', 'rejected') ORDER BY response.indexed_at DESC NULLS LAST, response.uri DESC LIMIT 1) AS recipient_response ON TRUE WHERE award.collection = $1 AND FALSE ORDER BY sorted.sort_at DESC, award.uri DESC LIMIT $2"} +{"sql":"b5829b39fd","text":"SELECT receipt.uri, receipt.did, receipt.cid, receipt.indexed_at::text AS indexed_at, receipt.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS receipt CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(receipt.record::jsonb->'createdAt') = 'string' AND receipt.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND receipt.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(receipt.record::jsonb->>'createdAt', 'timestamptz') THEN (receipt.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(receipt.indexed_at::timestamptz, receipt.created_at::timestamptz) END AS sort_at) AS sorted WHERE receipt.collection = $1 AND receipt.record::jsonb->>'transactionId' IN ($2, $3, $4) ORDER BY sorted.sort_at DESC, receipt.uri DESC LIMIT $5"} +{"sql":"b64d798d72","text":"SELECT award.uri, award.did, award.cid, award.indexed_at::text AS indexed_at, award.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp, badge.uri AS badge_uri, badge.cid AS badge_cid, badge.indexed_at::text AS badge_indexed_at, badge.did AS badge_did, badge.record::text AS badge_record, recipient_response.uri AS recipient_response_uri, recipient_response.cid AS recipient_response_cid, recipient_response.indexed_at::text AS recipient_response_indexed_at, recipient_response.did AS recipient_response_did, recipient_response.record::text AS recipient_response_record FROM happyview_records AS award CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(award.record::jsonb->'createdAt') = 'string' AND award.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND award.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(award.record::jsonb->>'createdAt', 'timestamptz') THEN (award.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(award.indexed_at::timestamptz, award.created_at::timestamptz) END AS sort_at) sorted LEFT JOIN happyview_records AS badge ON badge.collection = 'app.certified.badge.definition' AND badge.uri = award.record::jsonb->'badge'->>'uri' AND badge.cid = award.record::jsonb->'badge'->>'cid' LEFT JOIN LATERAL (SELECT response.uri, response.cid, response.indexed_at, response.did, response.record FROM happyview_records AS response WHERE response.collection = 'app.certified.badge.response' AND response.did = CASE WHEN jsonb_typeof(award.record::jsonb->'subject') = 'string' THEN award.record::jsonb->>'subject' WHEN jsonb_typeof(award.record::jsonb->'subject') = 'object' AND award.record::jsonb->'subject'->>'$type' = 'app.certified.defs#did' AND jsonb_typeof(award.record::jsonb->'subject'->'did') = 'string' THEN award.record::jsonb->'subject'->>'did' ELSE split_part(award.record::jsonb->'subject'->>'uri', '/', 3) END AND response.record::jsonb->'badgeAward'->>'uri' = award.uri AND response.record::jsonb->'badgeAward'->>'cid' = award.cid AND response.record::jsonb->>'response' IN ('accepted', 'rejected') ORDER BY response.indexed_at DESC NULLS LAST, response.uri DESC LIMIT 1) AS recipient_response ON TRUE WHERE award.collection = $1 AND award.did IN ($2,$3,$4) ORDER BY sorted.sort_at DESC, award.uri DESC LIMIT $5"} +{"sql":"b69127d8e5","text":"SELECT activity.uri, activity.did, activity.cid, activity.indexed_at::text AS indexed_at, activity.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(activity.record::jsonb->'createdAt') = 'string' AND activity.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND activity.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(activity.record::jsonb->>'createdAt', 'timestamptz') THEN (activity.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(activity.indexed_at::timestamptz, activity.created_at::timestamptz) END AS sort_at) AS sorted WHERE activity.collection = $1 AND activity.uri IN ($2, $3, $4) ORDER BY sorted.sort_at DESC, activity.uri DESC LIMIT $5"} +{"sql":"b69842f8a9","text":"SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS collection CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(collection.record::jsonb->'createdAt') = 'string' AND collection.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND collection.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(collection.record::jsonb->>'createdAt', 'timestamptz') THEN (collection.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(collection.indexed_at::timestamptz, collection.created_at::timestamptz) END AS sort_at) AS sorted WHERE collection.collection = $1 AND (strpos(lower(COALESCE(collection.record::jsonb->>'title', '')), lower($2)) > 0 OR strpos(lower(COALESCE(collection.record::jsonb->>'shortDescription', '')), lower($2)) > 0) ORDER BY sorted.sort_at DESC, collection.uri DESC LIMIT $3"} +{"sql":"b6e25ddc09","text":"SELECT acknowledgement.uri, acknowledgement.did, acknowledgement.cid, acknowledgement.indexed_at::text AS indexed_at, acknowledgement.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS acknowledgement CROSS JOIN LATERAL (SELECT COALESCE(CASE WHEN jsonb_typeof(acknowledgement.record::jsonb->'createdAt') = 'string' AND acknowledgement.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND acknowledgement.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(acknowledgement.record::jsonb->>'createdAt', 'timestamptz') THEN (acknowledgement.record::jsonb->>'createdAt')::timestamptz ELSE NULL END, acknowledgement.indexed_at::timestamptz, acknowledgement.created_at::timestamptz) AS sort_at) AS sorted WHERE acknowledgement.collection = $1 AND acknowledgement.record::jsonb->'subject'->>'uri' IN ($2, $3, $4) ORDER BY sorted.sort_at DESC, acknowledgement.uri DESC LIMIT $5"} +{"sql":"b87da4b57f","text":"SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS collection CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(collection.record::jsonb->'createdAt') = 'string' AND collection.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND collection.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(collection.record::jsonb->>'createdAt', 'timestamptz') THEN (collection.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(collection.indexed_at::timestamptz, collection.created_at::timestamptz) END AS sort_at) AS sorted WHERE collection.collection = $1 AND collection.uri IN ($2, $3, $4) ORDER BY sorted.sort_at DESC, collection.uri DESC LIMIT $5"} +{"sql":"b895e4df3f","text":"SELECT organization.uri, organization.did, organization.cid, organization.indexed_at::text AS indexed_at, organization.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS organization CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(organization.record::jsonb->'createdAt') = 'string' AND organization.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND organization.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(organization.record::jsonb->>'createdAt', 'timestamptz') THEN (organization.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(organization.indexed_at::timestamptz, organization.created_at::timestamptz) END AS sort_at) AS sorted WHERE organization.collection = $1 AND organization.rkey = 'self' AND FALSE ORDER BY sorted.sort_at DESC, uri DESC LIMIT $2"} +{"sql":"b9753b45e0","text":"SELECT evaluation.uri, evaluation.did, evaluation.cid, evaluation.indexed_at::text AS indexed_at, evaluation.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS evaluation CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(evaluation.record::jsonb->'createdAt') = 'string' AND evaluation.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND evaluation.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(evaluation.record::jsonb->>'createdAt', 'timestamptz') THEN (evaluation.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(evaluation.indexed_at::timestamptz, evaluation.created_at::timestamptz) END AS sort_at) AS sorted WHERE evaluation.collection = $1 ORDER BY sorted.sort_at ASC, evaluation.uri ASC LIMIT $2"} +{"sql":"ba980873dd","text":"SELECT organization.uri, organization.did, organization.cid, organization.indexed_at::text AS indexed_at, organization.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS organization CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(organization.record::jsonb->'createdAt') = 'string' AND organization.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND organization.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(organization.record::jsonb->>'createdAt', 'timestamptz') THEN (organization.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(organization.indexed_at::timestamptz, organization.created_at::timestamptz) END AS sort_at) AS sorted WHERE organization.collection = $1 AND organization.rkey = 'self' AND (strpos(lower(COALESCE(organization.record::jsonb->>'legalName', '')), lower($2)) > 0 OR EXISTS (SELECT 1 FROM happyview_records AS profile WHERE profile.collection = $3 AND profile.did = organization.did AND profile.rkey = 'self' AND (strpos(lower(COALESCE(profile.record::jsonb->>'displayName', '')), lower($2)) > 0 OR strpos(lower(COALESCE(profile.record::jsonb->>'description', '')), lower($2)) > 0))) AND (sorted.sort_at, uri) < (($4)::timestamptz, $5) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $6"} +{"sql":"bb4b288339","text":"SELECT evaluation.uri, evaluation.did, evaluation.cid, evaluation.indexed_at::text AS indexed_at, evaluation.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS evaluation CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(evaluation.record::jsonb->'createdAt') = 'string' AND evaluation.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND evaluation.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(evaluation.record::jsonb->>'createdAt', 'timestamptz') THEN (evaluation.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(evaluation.indexed_at::timestamptz, evaluation.created_at::timestamptz) END AS sort_at) AS sorted WHERE evaluation.collection = $1 AND evaluation.record::jsonb->'subject'->>'uri' IN ($2) ORDER BY sorted.sort_at DESC, evaluation.uri DESC LIMIT $3"} +{"sql":"bb51fad104","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record FROM happyview_records WHERE collection = $1 AND rkey = 'self' AND did IN ($2,$3)"} +{"sql":"bb7a1812ec","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND (record::jsonb)->>'locationType' IN ($2) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $3"} +{"sql":"bc0b02e384","text":"SELECT activity.uri, activity.did, activity.cid, activity.indexed_at::text AS indexed_at, activity.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(activity.record::jsonb->'createdAt') = 'string' AND activity.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND activity.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(activity.record::jsonb->>'createdAt', 'timestamptz') THEN (activity.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(activity.indexed_at::timestamptz, activity.created_at::timestamptz) END AS sort_at) AS sorted WHERE activity.collection = $1 AND (strpos(lower(COALESCE(activity.record::jsonb->>'title', '')), lower($2)) > 0 OR strpos(lower(COALESCE(activity.record::jsonb->>'shortDescription', '')), lower($2)) > 0) AND (sorted.sort_at, activity.uri) < (($3)::timestamptz, $4) ORDER BY sorted.sort_at DESC, activity.uri DESC LIMIT $5"} +{"sql":"bc4dedfbb8","text":"SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS collection CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(collection.record::jsonb->'createdAt') = 'string' AND collection.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND collection.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(collection.record::jsonb->>'createdAt', 'timestamptz') THEN (collection.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(collection.indexed_at::timestamptz, collection.created_at::timestamptz) END AS sort_at) AS sorted WHERE collection.collection = $1 AND (strpos(lower(COALESCE(collection.record::jsonb->>'title', '')), lower($2)) > 0 OR strpos(lower(COALESCE(collection.record::jsonb->>'shortDescription', '')), lower($2)) > 0) AND (sorted.sort_at, collection.uri) > (($3)::timestamptz, $4) ORDER BY sorted.sort_at ASC, collection.uri ASC LIMIT $5"} +{"sql":"bea8db93b7","text":"SELECT rights.uri, rights.did, rights.cid, rights.indexed_at::text AS indexed_at, rights.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS rights CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(rights.record::jsonb->'createdAt') = 'string' AND rights.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND rights.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(rights.record::jsonb->>'createdAt', 'timestamptz') THEN (rights.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(rights.indexed_at::timestamptz, rights.created_at::timestamptz) END AS sort_at) AS sorted WHERE rights.collection = $1 AND (sorted.sort_at, rights.uri) > (($2)::timestamptz, $3) ORDER BY sorted.sort_at ASC, rights.uri ASC LIMIT $4"} +{"sql":"bec466bdba","text":"SELECT organization.uri, organization.did, organization.cid, organization.indexed_at::text AS indexed_at, organization.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS organization CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(organization.record::jsonb->'createdAt') = 'string' AND organization.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND organization.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(organization.record::jsonb->>'createdAt', 'timestamptz') THEN (organization.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(organization.indexed_at::timestamptz, organization.created_at::timestamptz) END AS sort_at) AS sorted WHERE organization.collection = $1 AND organization.rkey = 'self' AND EXISTS (SELECT 1 FROM jsonb_array_elements_text(CASE WHEN jsonb_typeof(organization.record::jsonb->'organizationType') = 'array' THEN organization.record::jsonb->'organizationType' ELSE '[]'::jsonb END) AS organization_type(value) WHERE organization_type.value IN ($2)) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $3"} +{"sql":"bf198ae94a","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND FALSE AND (strpos(lower(COALESCE(record::jsonb->>'title', '')), lower($2)) > 0 OR strpos(lower(COALESCE(record::jsonb->>'description', '')), lower($2)) > 0) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $3"} +{"sql":"bf4fe3b608","text":"SELECT response.uri, response.did, response.cid, response.indexed_at::text AS indexed_at, response.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS response CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(response.record::jsonb->'createdAt') = 'string' AND response.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND response.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(response.record::jsonb->>'createdAt', 'timestamptz') THEN (response.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(response.indexed_at::timestamptz, response.created_at::timestamptz) END AS sort_at) sorted WHERE response.collection = $1 AND (sorted.sort_at, response.uri) < (($2)::timestamptz, $3) ORDER BY sorted.sort_at DESC, response.uri DESC LIMIT $4"} +{"sql":"c165186104","text":"SELECT response.uri, response.did, response.cid, response.indexed_at::text AS indexed_at, response.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS response CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(response.record::jsonb->'createdAt') = 'string' AND response.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND response.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(response.record::jsonb->>'createdAt', 'timestamptz') THEN (response.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(response.indexed_at::timestamptz, response.created_at::timestamptz) END AS sort_at) sorted WHERE response.collection = $1 ORDER BY sorted.sort_at DESC, response.uri DESC LIMIT $2"} +{"sql":"c339a78b2e","text":"SELECT activity.uri, activity.did, activity.cid, activity.indexed_at::text AS indexed_at, activity.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(activity.record::jsonb->'createdAt') = 'string' AND activity.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND activity.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(activity.record::jsonb->>'createdAt', 'timestamptz') THEN (activity.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(activity.indexed_at::timestamptz, activity.created_at::timestamptz) END AS sort_at) AS sorted WHERE activity.collection = $1 AND activity.did IN ($2, $3, $4) AND (strpos(lower(COALESCE(activity.record::jsonb->>'title', '')), lower($5)) > 0 OR strpos(lower(COALESCE(activity.record::jsonb->>'shortDescription', '')), lower($5)) > 0) ORDER BY sorted.sort_at DESC, activity.uri DESC LIMIT $6"} +{"sql":"c37b75815c","text":"SELECT measurement.uri, measurement.did, measurement.cid, measurement.indexed_at::text AS indexed_at, measurement.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS measurement CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(measurement.record::jsonb->'createdAt') = 'string' AND measurement.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND measurement.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(measurement.record::jsonb->>'createdAt', 'timestamptz') THEN (measurement.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(measurement.indexed_at::timestamptz, measurement.created_at::timestamptz) END AS sort_at) AS sorted WHERE measurement.collection = $1 AND EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(measurement.record::jsonb->'subjects') = 'array' THEN measurement.record::jsonb->'subjects' ELSE '[]'::jsonb END) AS subject(value) WHERE subject.value->>'uri' IN ($2)) ORDER BY sorted.sort_at DESC, measurement.uri DESC LIMIT $3"} +{"sql":"c57e6b1416","text":"SELECT organization.uri, organization.did, organization.cid, organization.indexed_at::text AS indexed_at, organization.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS organization CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(organization.record::jsonb->'createdAt') = 'string' AND organization.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND organization.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(organization.record::jsonb->>'createdAt', 'timestamptz') THEN (organization.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(organization.indexed_at::timestamptz, organization.created_at::timestamptz) END AS sort_at) AS sorted WHERE organization.collection = $1 AND organization.rkey = 'self' AND organization.record::jsonb->>'visibility' = $2 AND (strpos(lower(COALESCE(organization.record::jsonb->>'legalName', '')), lower($3)) > 0 OR EXISTS (SELECT 1 FROM happyview_records AS profile WHERE profile.collection = $4 AND profile.did = organization.did AND profile.rkey = 'self' AND (strpos(lower(COALESCE(profile.record::jsonb->>'displayName', '')), lower($3)) > 0 OR strpos(lower(COALESCE(profile.record::jsonb->>'description', '')), lower($3)) > 0))) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $5"} +{"sql":"c8876d3546","text":"SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS collection CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(collection.record::jsonb->'createdAt') = 'string' AND collection.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND collection.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(collection.record::jsonb->>'createdAt', 'timestamptz') THEN (collection.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(collection.indexed_at::timestamptz, collection.created_at::timestamptz) END AS sort_at) AS sorted WHERE collection.collection = $1 AND collection.did IN ($2, $3, $4) ORDER BY sorted.sort_at DESC, collection.uri DESC LIMIT $5"} +{"sql":"c93c12651c","text":"SELECT receipt.uri, receipt.did, receipt.cid, receipt.indexed_at::text AS indexed_at, receipt.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS receipt CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(receipt.record::jsonb->'createdAt') = 'string' AND receipt.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND receipt.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(receipt.record::jsonb->>'createdAt', 'timestamptz') THEN (receipt.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(receipt.indexed_at::timestamptz, receipt.created_at::timestamptz) END AS sort_at) AS sorted WHERE receipt.collection = $1 AND ((receipt.record::jsonb->'to'->>'$type' = 'app.certified.defs#did' AND receipt.record::jsonb->'to'->>'did' IN ($2)) OR (receipt.record::jsonb->'to'->>'$type' = 'com.atproto.repo.strongRef' AND receipt.record::jsonb->'to'->>'uri' IN ($3, $4))) ORDER BY sorted.sort_at DESC, receipt.uri DESC LIMIT $5"} +{"sql":"c95b404fea","text":"SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS collection CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(collection.record::jsonb->'createdAt') = 'string' AND collection.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND collection.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(collection.record::jsonb->>'createdAt', 'timestamptz') THEN (collection.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(collection.indexed_at::timestamptz, collection.created_at::timestamptz) END AS sort_at) AS sorted WHERE collection.collection = $1 AND collection.record::jsonb->>'type' IN ($2, $3, $4) AND (strpos(lower(COALESCE(collection.record::jsonb->>'title', '')), lower($5)) > 0 OR strpos(lower(COALESCE(collection.record::jsonb->>'shortDescription', '')), lower($5)) > 0) ORDER BY sorted.sort_at DESC, collection.uri DESC LIMIT $6"} +{"sql":"c97cffbea7","text":"SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS collection CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(collection.record::jsonb->'createdAt') = 'string' AND collection.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND collection.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(collection.record::jsonb->>'createdAt', 'timestamptz') THEN (collection.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(collection.indexed_at::timestamptz, collection.created_at::timestamptz) END AS sort_at) AS sorted WHERE collection.collection = $1 AND collection.did IN ($2, $3) AND EXISTS (SELECT 1 FROM happyview_records AS organization WHERE organization.collection = 'app.certified.actor.organization' AND organization.rkey = 'self' AND organization.did = collection.did) AND collection.record::jsonb->>'type' IN ($4, $5) AND collection.uri IN ($6, $7) AND EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(collection.record::jsonb->'items') = 'array' THEN collection.record::jsonb->'items' ELSE '[]'::jsonb END) AS item(value) WHERE item.value->'itemIdentifier'->>'uri' IN ($8, $9)) AND EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(collection.record::jsonb->'tags') = 'array' THEN collection.record::jsonb->'tags' ELSE '[]'::jsonb END) AS tag(value) WHERE tag.value->>'uri' = $10) AND EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(collection.record::jsonb->'tags') = 'array' THEN collection.record::jsonb->'tags' ELSE '[]'::jsonb END) AS tag(value) WHERE tag.value->>'uri' = $11) AND (strpos(lower(COALESCE(collection.record::jsonb->>'title', '')), lower($12)) > 0 OR strpos(lower(COALESCE(collection.record::jsonb->>'shortDescription', '')), lower($12)) > 0) ORDER BY sorted.sort_at DESC, collection.uri DESC LIMIT $13"} +{"sql":"c9e349830f","text":"SELECT link.uri, link.did, link.cid, link.indexed_at::text AS indexed_at, link.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS link CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(link.record::jsonb->'createdAt') = 'string' AND link.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND link.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(link.record::jsonb->>'createdAt', 'timestamptz') THEN (link.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(link.indexed_at::timestamptz, link.created_at::timestamptz) END AS sort_at) sorted WHERE link.collection = $1 AND link.did IN ($2,$3) AND lower(link.record::jsonb->>'address') IN ($4,$5) ORDER BY sorted.sort_at DESC, link.uri DESC LIMIT $6"} +{"sql":"ca16d794fb","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND uri IN ($2,$3,$4) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $5"} +{"sql":"ca6910e2cf","text":"SELECT organization.uri, organization.did, organization.cid, organization.indexed_at::text AS indexed_at, organization.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS organization CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(organization.record::jsonb->'createdAt') = 'string' AND organization.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND organization.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(organization.record::jsonb->>'createdAt', 'timestamptz') THEN (organization.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(organization.indexed_at::timestamptz, organization.created_at::timestamptz) END AS sort_at) AS sorted WHERE organization.collection = $1 AND organization.rkey = 'self' AND EXISTS (SELECT 1 FROM jsonb_array_elements_text(CASE WHEN jsonb_typeof(organization.record::jsonb->'organizationType') = 'array' THEN organization.record::jsonb->'organizationType' ELSE '[]'::jsonb END) AS organization_type(value) WHERE organization_type.value IN ($2, $3)) AND organization.record::jsonb->>'visibility' = $4 ORDER BY sorted.sort_at DESC, uri DESC LIMIT $5"} +{"sql":"ca6fa49a9a","text":"WITH ranked_follows AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, record::jsonb->'subject'->>'uri' ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND record::jsonb->'subject'->>'uri' = $2), representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM ranked_follows WHERE relationship_rank = 1), total AS (SELECT COUNT(*) AS total_count FROM representatives), page AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM representatives WHERE (sort_at, uri) > ($3::timestamptz, $4) ORDER BY sort_at ASC, uri ASC LIMIT $5) SELECT page.uri, page.did, page.cid, page.indexed_at, page.record, total.total_count, to_char(page.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM total LEFT JOIN page ON TRUE ORDER BY page.sort_at ASC, page.uri ASC"} +{"sql":"cb72947a76","text":"SELECT attachment.uri, attachment.did, attachment.cid, attachment.indexed_at::text AS indexed_at, attachment.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS attachment CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(attachment.record::jsonb->'createdAt') = 'string' AND attachment.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND attachment.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(attachment.record::jsonb->>'createdAt', 'timestamptz') THEN (attachment.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(attachment.indexed_at::timestamptz, attachment.created_at::timestamptz) END AS sort_at) AS sorted WHERE attachment.collection = $1 AND attachment.uri IN ($2, $3, $4) ORDER BY sorted.sort_at DESC, attachment.uri DESC LIMIT $5"} +{"sql":"cbc411b34a","text":"SELECT feature.uri, feature.did, feature.cid, feature.indexed_at::text AS indexed_at, feature.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS feature CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(feature.record::jsonb -> 'createdAt') = 'string' AND feature.record::jsonb ->> 'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND feature.record::jsonb ->> 'createdAt' !~ '-00:00$' AND pg_input_is_valid(feature.record::jsonb ->> 'createdAt', 'timestamptz') THEN (feature.record::jsonb ->> 'createdAt')::timestamptz ELSE COALESCE(feature.indexed_at::timestamptz, feature.created_at::timestamptz) END AS sort_at) AS sorted WHERE feature.collection = $1 AND feature.did IN ($2, $3, $4) ORDER BY sorted.sort_at DESC, feature.uri DESC LIMIT $5"} +{"sql":"cd635ae52f","text":"SELECT contribution.uri, contribution.did, contribution.cid, contribution.indexed_at::text AS indexed_at, contribution.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS contribution CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(contribution.record::jsonb->'createdAt') = 'string' AND contribution.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND contribution.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(contribution.record::jsonb->>'createdAt', 'timestamptz') THEN (contribution.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(contribution.indexed_at::timestamptz, contribution.created_at::timestamptz, 'epoch'::timestamptz) END AS sort_at) AS sorted WHERE contribution.collection = $1 AND (sorted.sort_at, contribution.uri) < (($2)::timestamptz, $3) ORDER BY sorted.sort_at DESC, contribution.uri DESC LIMIT $4"} +{"sql":"cea068549c","text":"SELECT activity.uri, activity.did, activity.cid, activity.indexed_at::text AS indexed_at, activity.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(activity.record::jsonb->'createdAt') = 'string' AND activity.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND activity.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(activity.record::jsonb->>'createdAt', 'timestamptz') THEN (activity.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(activity.indexed_at::timestamptz, activity.created_at::timestamptz) END AS sort_at) AS sorted WHERE activity.collection = $1 AND FALSE ORDER BY sorted.sort_at DESC, activity.uri DESC LIMIT $2"} +{"sql":"ceeb1a63af","text":"WITH ranked_follows AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, record::jsonb->>'subject' AS subject_did, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, record::jsonb->>'subject' ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND NOT COALESCE(starts_with(record::jsonb->'via'->>'uri', 'at://' || (record::jsonb->>'subject') || '/org.hypercerts.collection/'), FALSE) AND did = $2), representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at, subject_did AS actor_did FROM ranked_follows WHERE relationship_rank = 1), total AS (SELECT COUNT(*) AS total_count FROM representatives), page AS (SELECT uri, did, cid, indexed_at, record, sort_at, actor_did FROM representatives WHERE (sort_at, uri) > ($3::timestamptz, $4) ORDER BY sort_at ASC, uri ASC LIMIT $5) SELECT page.uri, page.did, page.cid, page.indexed_at, page.record, page.actor_did, total.total_count, to_char(page.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM total LEFT JOIN page ON TRUE ORDER BY page.sort_at ASC, page.uri ASC"} +{"sql":"cf034f3460","text":"SELECT link.uri, link.did, link.cid, link.indexed_at::text AS indexed_at, link.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS link CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(link.record::jsonb->'createdAt') = 'string' AND link.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND link.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(link.record::jsonb->>'createdAt', 'timestamptz') THEN (link.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(link.indexed_at::timestamptz, link.created_at::timestamptz) END AS sort_at) sorted WHERE link.collection = $1 AND link.did IN ($2,$3,$4) ORDER BY sorted.sort_at DESC, link.uri DESC LIMIT $5"} +{"sql":"cf715d2ab7","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND did IN ($2) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $3"} +{"sql":"d05b037b0c","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND rkey = 'self' ORDER BY sorted.sort_at ASC, uri ASC LIMIT $2"} +{"sql":"d1229757a9","text":"SELECT activity.uri, activity.did, activity.cid, activity.indexed_at::text AS indexed_at, activity.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(activity.record::jsonb->'createdAt') = 'string' AND activity.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND activity.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(activity.record::jsonb->>'createdAt', 'timestamptz') THEN (activity.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(activity.indexed_at::timestamptz, activity.created_at::timestamptz) END AS sort_at) AS sorted WHERE activity.collection = $1 ORDER BY sorted.sort_at DESC, activity.uri DESC LIMIT $2"} +{"sql":"d384922db1","text":"SELECT activity.uri, activity.did, activity.cid, activity.indexed_at::text AS indexed_at, activity.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(activity.record::jsonb->'createdAt') = 'string' AND activity.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND activity.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(activity.record::jsonb->>'createdAt', 'timestamptz') THEN (activity.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(activity.indexed_at::timestamptz, activity.created_at::timestamptz) END AS sort_at) AS sorted WHERE activity.collection = $1 AND activity.did IN ($2) AND (strpos(lower(COALESCE(activity.record::jsonb->>'title', '')), lower($3)) > 0 OR strpos(lower(COALESCE(activity.record::jsonb->>'shortDescription', '')), lower($3)) > 0) ORDER BY sorted.sort_at DESC, activity.uri DESC LIMIT $4"} +{"sql":"d4529026b3","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record FROM happyview_records WHERE collection = $1 AND rkey = 'self' AND did IN ($2)"} +{"sql":"d62f1fff4b","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND rkey = 'self' AND FALSE AND (strpos(lower(COALESCE(record::jsonb->>'displayName', '')), lower($2)) > 0 OR strpos(lower(COALESCE(record::jsonb->>'description', '')), lower($2)) > 0) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $3"} +{"sql":"d7232ab4cf","text":"SELECT measurement.uri, measurement.did, measurement.cid, measurement.indexed_at::text AS indexed_at, measurement.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS measurement CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(measurement.record::jsonb->'createdAt') = 'string' AND measurement.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND measurement.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(measurement.record::jsonb->>'createdAt', 'timestamptz') THEN (measurement.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(measurement.indexed_at::timestamptz, measurement.created_at::timestamptz) END AS sort_at) AS sorted WHERE measurement.collection = $1 AND FALSE ORDER BY sorted.sort_at DESC, measurement.uri DESC LIMIT $2"} +{"sql":"d8dea693a3","text":"SELECT feature.uri, feature.did, feature.cid, feature.indexed_at::text AS indexed_at, feature.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS feature CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(feature.record::jsonb -> 'createdAt') = 'string' AND feature.record::jsonb ->> 'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND feature.record::jsonb ->> 'createdAt' !~ '-00:00$' AND pg_input_is_valid(feature.record::jsonb ->> 'createdAt', 'timestamptz') THEN (feature.record::jsonb ->> 'createdAt')::timestamptz ELSE COALESCE(feature.indexed_at::timestamptz, feature.created_at::timestamptz) END AS sort_at) AS sorted WHERE feature.collection = $1 AND (sorted.sort_at, feature.uri) < (($2)::timestamptz, $3) ORDER BY sorted.sort_at DESC, feature.uri DESC LIMIT $4"} +{"sql":"da9fdeff90","text":"SELECT activity.uri, activity.did, activity.cid, activity.indexed_at::text AS indexed_at, activity.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(activity.record::jsonb->'createdAt') = 'string' AND activity.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND activity.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(activity.record::jsonb->>'createdAt', 'timestamptz') THEN (activity.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(activity.indexed_at::timestamptz, activity.created_at::timestamptz) END AS sort_at) AS sorted WHERE activity.collection = $1 AND EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(activity.record::jsonb->'contributors') = 'array' THEN activity.record::jsonb->'contributors' ELSE '[]'::jsonb END) AS contributor(value) LEFT JOIN happyview_records AS ci ON ci.collection = 'org.hypercerts.claim.contributorInformation' AND ci.uri = (contributor.value->'contributorIdentity'->>'uri') AND ci.cid = (contributor.value->'contributorIdentity'->>'cid') WHERE (contributor.value->'contributorIdentity'->>'identity' IN ($2, $3, $4) OR substring(contributor.value->'contributorIdentity'->>'identity' from '^at://([^/]+)/') IN ($2, $3, $4) OR ci.record::jsonb->>'identifier' IN ($2, $3, $4) OR substring(ci.record::jsonb->>'identifier' from '^at://([^/]+)/') IN ($2, $3, $4))) ORDER BY sorted.sort_at DESC, activity.uri DESC LIMIT $5"} +{"sql":"dc37a02dda","text":"WITH ranked_follows AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, record::jsonb->'subject'->>'uri' ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND record::jsonb->'subject'->>'uri' = $2), representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM ranked_follows WHERE relationship_rank = 1), total AS (SELECT COUNT(*) AS total_count FROM representatives), page AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM representatives ORDER BY sort_at DESC, uri DESC LIMIT $3) SELECT page.uri, page.did, page.cid, page.indexed_at, page.record, total.total_count, to_char(page.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM total LEFT JOIN page ON TRUE ORDER BY page.sort_at DESC, page.uri DESC"} +{"sql":"dd9a4311b1","text":"SELECT response.uri, response.did, response.cid, response.indexed_at::text AS indexed_at, response.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS response CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(response.record::jsonb->'createdAt') = 'string' AND response.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND response.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(response.record::jsonb->>'createdAt', 'timestamptz') THEN (response.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(response.indexed_at::timestamptz, response.created_at::timestamptz) END AS sort_at) sorted WHERE response.collection = $1 AND response.record::jsonb->'badgeAward'->>'uri' = $2 ORDER BY sorted.sort_at DESC, response.uri DESC LIMIT $3"} +{"sql":"dd9ca50998","text":"SELECT award.uri, award.did, award.cid, award.indexed_at::text AS indexed_at, award.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp, badge.uri AS badge_uri, badge.cid AS badge_cid, badge.indexed_at::text AS badge_indexed_at, badge.did AS badge_did, badge.record::text AS badge_record, recipient_response.uri AS recipient_response_uri, recipient_response.cid AS recipient_response_cid, recipient_response.indexed_at::text AS recipient_response_indexed_at, recipient_response.did AS recipient_response_did, recipient_response.record::text AS recipient_response_record FROM happyview_records AS award CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(award.record::jsonb->'createdAt') = 'string' AND award.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND award.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(award.record::jsonb->>'createdAt', 'timestamptz') THEN (award.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(award.indexed_at::timestamptz, award.created_at::timestamptz) END AS sort_at) sorted LEFT JOIN happyview_records AS badge ON badge.collection = 'app.certified.badge.definition' AND badge.uri = award.record::jsonb->'badge'->>'uri' AND badge.cid = award.record::jsonb->'badge'->>'cid' LEFT JOIN LATERAL (SELECT response.uri, response.cid, response.indexed_at, response.did, response.record FROM happyview_records AS response WHERE response.collection = 'app.certified.badge.response' AND response.did = CASE WHEN jsonb_typeof(award.record::jsonb->'subject') = 'string' THEN award.record::jsonb->>'subject' WHEN jsonb_typeof(award.record::jsonb->'subject') = 'object' AND award.record::jsonb->'subject'->>'$type' = 'app.certified.defs#did' AND jsonb_typeof(award.record::jsonb->'subject'->'did') = 'string' THEN award.record::jsonb->'subject'->>'did' ELSE split_part(award.record::jsonb->'subject'->>'uri', '/', 3) END AND response.record::jsonb->'badgeAward'->>'uri' = award.uri AND response.record::jsonb->'badgeAward'->>'cid' = award.cid AND response.record::jsonb->>'response' IN ('accepted', 'rejected') ORDER BY response.indexed_at DESC NULLS LAST, response.uri DESC LIMIT 1) AS recipient_response ON TRUE WHERE award.collection = $1 AND award.record::jsonb->'badge'->>'uri' IN ($2,$3,$4) ORDER BY sorted.sort_at DESC, award.uri DESC LIMIT $5"} +{"sql":"ddd82804cb","text":"SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS collection CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(collection.record::jsonb->'createdAt') = 'string' AND collection.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND collection.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(collection.record::jsonb->>'createdAt', 'timestamptz') THEN (collection.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(collection.indexed_at::timestamptz, collection.created_at::timestamptz) END AS sort_at) AS sorted WHERE collection.collection = $1 AND EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(collection.record::jsonb->'tags') = 'array' THEN collection.record::jsonb->'tags' ELSE '[]'::jsonb END) AS tag(value) WHERE tag.value->>'uri' = $2) AND EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(collection.record::jsonb->'tags') = 'array' THEN collection.record::jsonb->'tags' ELSE '[]'::jsonb END) AS tag(value) WHERE tag.value->>'uri' = $3) AND EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(collection.record::jsonb->'tags') = 'array' THEN collection.record::jsonb->'tags' ELSE '[]'::jsonb END) AS tag(value) WHERE tag.value->>'uri' = $4) AND (strpos(lower(COALESCE(collection.record::jsonb->>'title', '')), lower($5)) > 0 OR strpos(lower(COALESCE(collection.record::jsonb->>'shortDescription', '')), lower($5)) > 0) ORDER BY sorted.sort_at DESC, collection.uri DESC LIMIT $6"} +{"sql":"de2f5ba134","text":"SELECT measurement.uri, measurement.did, measurement.cid, measurement.indexed_at::text AS indexed_at, measurement.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS measurement CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(measurement.record::jsonb->'createdAt') = 'string' AND measurement.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND measurement.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(measurement.record::jsonb->>'createdAt', 'timestamptz') THEN (measurement.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(measurement.indexed_at::timestamptz, measurement.created_at::timestamptz) END AS sort_at) AS sorted WHERE measurement.collection = $1 ORDER BY sorted.sort_at DESC, measurement.uri DESC LIMIT $2"} +{"sql":"de8e448a07","text":"SELECT award.uri, award.did, award.cid, award.indexed_at::text AS indexed_at, award.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp, badge.uri AS badge_uri, badge.cid AS badge_cid, badge.indexed_at::text AS badge_indexed_at, badge.did AS badge_did, badge.record::text AS badge_record, recipient_response.uri AS recipient_response_uri, recipient_response.cid AS recipient_response_cid, recipient_response.indexed_at::text AS recipient_response_indexed_at, recipient_response.did AS recipient_response_did, recipient_response.record::text AS recipient_response_record FROM happyview_records AS award CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(award.record::jsonb->'createdAt') = 'string' AND award.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND award.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(award.record::jsonb->>'createdAt', 'timestamptz') THEN (award.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(award.indexed_at::timestamptz, award.created_at::timestamptz) END AS sort_at) sorted LEFT JOIN happyview_records AS badge ON badge.collection = 'app.certified.badge.definition' AND badge.uri = award.record::jsonb->'badge'->>'uri' AND badge.cid = award.record::jsonb->'badge'->>'cid' LEFT JOIN LATERAL (SELECT response.uri, response.cid, response.indexed_at, response.did, response.record FROM happyview_records AS response WHERE response.collection = 'app.certified.badge.response' AND response.did = CASE WHEN jsonb_typeof(award.record::jsonb->'subject') = 'string' THEN award.record::jsonb->>'subject' WHEN jsonb_typeof(award.record::jsonb->'subject') = 'object' AND award.record::jsonb->'subject'->>'$type' = 'app.certified.defs#did' AND jsonb_typeof(award.record::jsonb->'subject'->'did') = 'string' THEN award.record::jsonb->'subject'->>'did' ELSE split_part(award.record::jsonb->'subject'->>'uri', '/', 3) END AND response.record::jsonb->'badgeAward'->>'uri' = award.uri AND response.record::jsonb->'badgeAward'->>'cid' = award.cid AND response.record::jsonb->>'response' IN ('accepted', 'rejected') ORDER BY response.indexed_at DESC NULLS LAST, response.uri DESC LIMIT 1) AS recipient_response ON TRUE WHERE award.collection = $1 AND badge.record::jsonb->>'badgeType' IN ($2,$3,$4) ORDER BY sorted.sort_at DESC, award.uri DESC LIMIT $5"} +{"sql":"deb35c0d37","text":"SELECT rights.uri, rights.did, rights.cid, rights.indexed_at::text AS indexed_at, rights.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS rights CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(rights.record::jsonb->'createdAt') = 'string' AND rights.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND rights.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(rights.record::jsonb->>'createdAt', 'timestamptz') THEN (rights.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(rights.indexed_at::timestamptz, rights.created_at::timestamptz) END AS sort_at) AS sorted WHERE rights.collection = $1 ORDER BY sorted.sort_at DESC, rights.uri DESC LIMIT $2"} +{"sql":"deb4345aab","text":"SELECT link.uri, link.did, link.cid, link.indexed_at::text AS indexed_at, link.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS link CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(link.record::jsonb->'createdAt') = 'string' AND link.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND link.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(link.record::jsonb->>'createdAt', 'timestamptz') THEN (link.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(link.indexed_at::timestamptz, link.created_at::timestamptz) END AS sort_at) sorted WHERE link.collection = $1 AND (sorted.sort_at, link.uri) > (($2)::timestamptz, $3) ORDER BY sorted.sort_at ASC, link.uri ASC LIMIT $4"} +{"sql":"e010df8163","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND (strpos(lower(COALESCE(record::jsonb->>'title', '')), lower($2)) > 0 OR strpos(lower(COALESCE(record::jsonb->>'description', '')), lower($2)) > 0) ORDER BY sorted.sort_at ASC, uri ASC LIMIT $3"} +{"sql":"e04b3f0ec2","text":"SELECT workscope_tag.uri, workscope_tag.did, workscope_tag.cid, workscope_tag.indexed_at::text AS indexed_at, workscope_tag.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS workscope_tag CROSS JOIN LATERAL (SELECT COALESCE(CASE WHEN workscope_tag.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}([.][0-9]+)?(Z|[+-][0-9]{2}:[0-9]{2})$' AND workscope_tag.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(workscope_tag.record::jsonb->>'createdAt', 'timestamp with time zone') THEN (workscope_tag.record::jsonb->>'createdAt')::timestamptz END, CASE WHEN pg_input_is_valid(workscope_tag.indexed_at, 'timestamp with time zone') THEN workscope_tag.indexed_at::timestamptz END, CASE WHEN pg_input_is_valid(workscope_tag.created_at, 'timestamp with time zone') THEN workscope_tag.created_at::timestamptz END) AS sort_at) AS sorted WHERE workscope_tag.collection = $1 AND FALSE ORDER BY sorted.sort_at DESC, workscope_tag.uri DESC LIMIT $2"} +{"sql":"e4fff6086b","text":"SELECT activity.uri, activity.did, activity.cid, activity.indexed_at::text AS indexed_at, activity.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(activity.record::jsonb->'createdAt') = 'string' AND activity.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND activity.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(activity.record::jsonb->>'createdAt', 'timestamptz') THEN (activity.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(activity.indexed_at::timestamptz, activity.created_at::timestamptz) END AS sort_at) AS sorted WHERE activity.collection = $1 AND (activity.did IN ($2, $3, $4) OR EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(activity.record::jsonb->'contributors') = 'array' THEN activity.record::jsonb->'contributors' ELSE '[]'::jsonb END) AS contributor(value) LEFT JOIN happyview_records AS ci ON ci.collection = 'org.hypercerts.claim.contributorInformation' AND ci.uri = (contributor.value->'contributorIdentity'->>'uri') AND ci.cid = (contributor.value->'contributorIdentity'->>'cid') WHERE (contributor.value->'contributorIdentity'->>'identity' IN ($5, $6, $7) OR substring(contributor.value->'contributorIdentity'->>'identity' from '^at://([^/]+)/') IN ($5, $6, $7) OR ci.record::jsonb->>'identifier' IN ($5, $6, $7) OR substring(ci.record::jsonb->>'identifier' from '^at://([^/]+)/') IN ($5, $6, $7)))) AND (strpos(lower(COALESCE(activity.record::jsonb->>'title', '')), lower($8)) > 0 OR strpos(lower(COALESCE(activity.record::jsonb->>'shortDescription', '')), lower($8)) > 0) ORDER BY sorted.sort_at DESC, activity.uri DESC LIMIT $9"} +{"sql":"e6d269af8e","text":"SELECT contributor.uri, contributor.did, contributor.cid, contributor.indexed_at::text AS indexed_at, contributor.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS contributor CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(contributor.record::jsonb->'createdAt') = 'string' AND contributor.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND contributor.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(contributor.record::jsonb->>'createdAt', 'timestamptz') THEN (contributor.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(contributor.indexed_at::timestamptz, contributor.created_at::timestamptz) END AS sort_at) AS sorted WHERE contributor.collection = $1 AND contributor.did IN ($2, $3, $4) ORDER BY sorted.sort_at DESC, contributor.uri DESC LIMIT $5"} +{"sql":"e710ed7137","text":"SELECT workscope_tag.uri, workscope_tag.did, workscope_tag.cid, workscope_tag.indexed_at::text AS indexed_at, workscope_tag.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS workscope_tag CROSS JOIN LATERAL (SELECT COALESCE(CASE WHEN workscope_tag.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}([.][0-9]+)?(Z|[+-][0-9]{2}:[0-9]{2})$' AND workscope_tag.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(workscope_tag.record::jsonb->>'createdAt', 'timestamp with time zone') THEN (workscope_tag.record::jsonb->>'createdAt')::timestamptz END, CASE WHEN pg_input_is_valid(workscope_tag.indexed_at, 'timestamp with time zone') THEN workscope_tag.indexed_at::timestamptz END, CASE WHEN pg_input_is_valid(workscope_tag.created_at, 'timestamp with time zone') THEN workscope_tag.created_at::timestamptz END) AS sort_at) AS sorted WHERE workscope_tag.collection = $1 ORDER BY sorted.sort_at DESC, workscope_tag.uri DESC LIMIT $2"} +{"sql":"e7f96450ef","text":"SELECT attachment.uri, attachment.did, attachment.cid, attachment.indexed_at::text AS indexed_at, attachment.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS attachment CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(attachment.record::jsonb->'createdAt') = 'string' AND attachment.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND attachment.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(attachment.record::jsonb->>'createdAt', 'timestamptz') THEN (attachment.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(attachment.indexed_at::timestamptz, attachment.created_at::timestamptz) END AS sort_at) AS sorted WHERE attachment.collection = $1 AND attachment.record::jsonb->>'contentType' IN ($2, $3, $4) ORDER BY sorted.sort_at DESC, attachment.uri DESC LIMIT $5"} +{"sql":"e918e80b8b","text":"SELECT attachment.uri, attachment.did, attachment.cid, attachment.indexed_at::text AS indexed_at, attachment.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS attachment CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(attachment.record::jsonb->'createdAt') = 'string' AND attachment.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND attachment.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(attachment.record::jsonb->>'createdAt', 'timestamptz') THEN (attachment.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(attachment.indexed_at::timestamptz, attachment.created_at::timestamptz) END AS sort_at) AS sorted WHERE attachment.collection = $1 AND attachment.did IN ($2) ORDER BY sorted.sort_at DESC, attachment.uri DESC LIMIT $3"} +{"sql":"e956f87416","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND did IN ($2,$3,$4) AND (strpos(lower(COALESCE(record::jsonb->>'title', '')), lower($5)) > 0 OR strpos(lower(COALESCE(record::jsonb->>'description', '')), lower($5)) > 0) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $6"} +{"sql":"ea7b9d6728","text":"SELECT contribution.uri, contribution.did, contribution.cid, contribution.indexed_at::text AS indexed_at, contribution.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS contribution CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(contribution.record::jsonb->'createdAt') = 'string' AND contribution.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND contribution.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(contribution.record::jsonb->>'createdAt', 'timestamptz') THEN (contribution.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(contribution.indexed_at::timestamptz, contribution.created_at::timestamptz, 'epoch'::timestamptz) END AS sort_at) AS sorted WHERE contribution.collection = $1 AND (sorted.sort_at, contribution.uri) > (($2)::timestamptz, $3) ORDER BY sorted.sort_at ASC, contribution.uri ASC LIMIT $4"} +{"sql":"eb2ff4e9da","text":"SELECT activity.uri, activity.did, activity.cid, activity.indexed_at::text AS indexed_at, activity.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS activity CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(activity.record::jsonb->'createdAt') = 'string' AND activity.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND activity.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(activity.record::jsonb->>'createdAt', 'timestamptz') THEN (activity.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(activity.indexed_at::timestamptz, activity.created_at::timestamptz) END AS sort_at) AS sorted WHERE activity.collection = $1 AND (activity.did IN ($2) OR EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(activity.record::jsonb->'contributors') = 'array' THEN activity.record::jsonb->'contributors' ELSE '[]'::jsonb END) AS contributor(value) LEFT JOIN happyview_records AS ci ON ci.collection = 'org.hypercerts.claim.contributorInformation' AND ci.uri = (contributor.value->'contributorIdentity'->>'uri') AND ci.cid = (contributor.value->'contributorIdentity'->>'cid') WHERE (contributor.value->'contributorIdentity'->>'identity' IN ($3) OR substring(contributor.value->'contributorIdentity'->>'identity' from '^at://([^/]+)/') IN ($3) OR ci.record::jsonb->>'identifier' IN ($3) OR substring(ci.record::jsonb->>'identifier' from '^at://([^/]+)/') IN ($3)))) ORDER BY sorted.sort_at DESC, activity.uri DESC LIMIT $4"} +{"sql":"eb4293ef0a","text":"SELECT award.uri, award.did, award.cid, award.indexed_at::text AS indexed_at, award.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp, badge.uri AS badge_uri, badge.cid AS badge_cid, badge.indexed_at::text AS badge_indexed_at, badge.did AS badge_did, badge.record::text AS badge_record, recipient_response.uri AS recipient_response_uri, recipient_response.cid AS recipient_response_cid, recipient_response.indexed_at::text AS recipient_response_indexed_at, recipient_response.did AS recipient_response_did, recipient_response.record::text AS recipient_response_record FROM happyview_records AS award CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(award.record::jsonb->'createdAt') = 'string' AND award.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND award.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(award.record::jsonb->>'createdAt', 'timestamptz') THEN (award.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(award.indexed_at::timestamptz, award.created_at::timestamptz) END AS sort_at) sorted LEFT JOIN happyview_records AS badge ON badge.collection = 'app.certified.badge.definition' AND badge.uri = award.record::jsonb->'badge'->>'uri' AND badge.cid = award.record::jsonb->'badge'->>'cid' LEFT JOIN LATERAL (SELECT response.uri, response.cid, response.indexed_at, response.did, response.record FROM happyview_records AS response WHERE response.collection = 'app.certified.badge.response' AND response.did = CASE WHEN jsonb_typeof(award.record::jsonb->'subject') = 'string' THEN award.record::jsonb->>'subject' WHEN jsonb_typeof(award.record::jsonb->'subject') = 'object' AND award.record::jsonb->'subject'->>'$type' = 'app.certified.defs#did' AND jsonb_typeof(award.record::jsonb->'subject'->'did') = 'string' THEN award.record::jsonb->'subject'->>'did' ELSE split_part(award.record::jsonb->'subject'->>'uri', '/', 3) END AND response.record::jsonb->'badgeAward'->>'uri' = award.uri AND response.record::jsonb->'badgeAward'->>'cid' = award.cid AND response.record::jsonb->>'response' IN ('accepted', 'rejected') ORDER BY response.indexed_at DESC NULLS LAST, response.uri DESC LIMIT 1) AS recipient_response ON TRUE WHERE award.collection = $1 ORDER BY sorted.sort_at DESC, award.uri DESC LIMIT $2"} +{"sql":"ec5769b06c","text":"SELECT award.uri, award.did, award.cid, award.indexed_at::text AS indexed_at, award.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp, badge.uri AS badge_uri, badge.cid AS badge_cid, badge.indexed_at::text AS badge_indexed_at, badge.did AS badge_did, badge.record::text AS badge_record, recipient_response.uri AS recipient_response_uri, recipient_response.cid AS recipient_response_cid, recipient_response.indexed_at::text AS recipient_response_indexed_at, recipient_response.did AS recipient_response_did, recipient_response.record::text AS recipient_response_record FROM happyview_records AS award CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(award.record::jsonb->'createdAt') = 'string' AND award.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND award.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(award.record::jsonb->>'createdAt', 'timestamptz') THEN (award.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(award.indexed_at::timestamptz, award.created_at::timestamptz) END AS sort_at) sorted LEFT JOIN happyview_records AS badge ON badge.collection = 'app.certified.badge.definition' AND badge.uri = award.record::jsonb->'badge'->>'uri' AND badge.cid = award.record::jsonb->'badge'->>'cid' LEFT JOIN LATERAL (SELECT response.uri, response.cid, response.indexed_at, response.did, response.record FROM happyview_records AS response WHERE response.collection = 'app.certified.badge.response' AND response.did = CASE WHEN jsonb_typeof(award.record::jsonb->'subject') = 'string' THEN award.record::jsonb->>'subject' WHEN jsonb_typeof(award.record::jsonb->'subject') = 'object' AND award.record::jsonb->'subject'->>'$type' = 'app.certified.defs#did' AND jsonb_typeof(award.record::jsonb->'subject'->'did') = 'string' THEN award.record::jsonb->'subject'->>'did' ELSE split_part(award.record::jsonb->'subject'->>'uri', '/', 3) END AND response.record::jsonb->'badgeAward'->>'uri' = award.uri AND response.record::jsonb->'badgeAward'->>'cid' = award.cid AND response.record::jsonb->>'response' IN ('accepted', 'rejected') ORDER BY response.indexed_at DESC NULLS LAST, response.uri DESC LIMIT 1) AS recipient_response ON TRUE WHERE award.collection = $1 AND ((jsonb_typeof(award.record::jsonb->'subject') = 'string' AND award.record::jsonb->>'subject' IN ($2)) OR (jsonb_typeof(award.record::jsonb->'subject') = 'object' AND award.record::jsonb->'subject'->>'$type' = 'app.certified.defs#did' AND jsonb_typeof(award.record::jsonb->'subject'->'did') = 'string' AND award.record::jsonb->'subject'->>'did' IN ($2)) OR (jsonb_typeof(award.record::jsonb->'subject') = 'object' AND award.record::jsonb->'subject'->>'uri' IN ($3,$4))) ORDER BY sorted.sort_at DESC, award.uri DESC LIMIT $5"} +{"sql":"ed0c344839","text":"SELECT organization.uri, organization.did, organization.cid, organization.indexed_at::text AS indexed_at, organization.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS organization CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(organization.record::jsonb->'createdAt') = 'string' AND organization.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND organization.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(organization.record::jsonb->>'createdAt', 'timestamptz') THEN (organization.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(organization.indexed_at::timestamptz, organization.created_at::timestamptz) END AS sort_at) AS sorted WHERE organization.collection = $1 AND organization.rkey = 'self' AND EXISTS (SELECT 1 FROM jsonb_array_elements_text(CASE WHEN jsonb_typeof(organization.record::jsonb->'organizationType') = 'array' THEN organization.record::jsonb->'organizationType' ELSE '[]'::jsonb END) AS organization_type(value) WHERE organization_type.value IN ($2)) AND (strpos(lower(COALESCE(organization.record::jsonb->>'legalName', '')), lower($3)) > 0 OR EXISTS (SELECT 1 FROM happyview_records AS profile WHERE profile.collection = $4 AND profile.did = organization.did AND profile.rkey = 'self' AND (strpos(lower(COALESCE(profile.record::jsonb->>'displayName', '')), lower($3)) > 0 OR strpos(lower(COALESCE(profile.record::jsonb->>'description', '')), lower($3)) > 0))) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $5"} +{"sql":"f0cc9e6828","text":"SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS collection CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(collection.record::jsonb->'createdAt') = 'string' AND collection.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND collection.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(collection.record::jsonb->>'createdAt', 'timestamptz') THEN (collection.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(collection.indexed_at::timestamptz, collection.created_at::timestamptz) END AS sort_at) AS sorted WHERE collection.collection = $1 AND EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(collection.record::jsonb->'items') = 'array' THEN collection.record::jsonb->'items' ELSE '[]'::jsonb END) AS item(value) WHERE item.value->'itemIdentifier'->>'uri' IN ($2, $3, $4)) ORDER BY sorted.sort_at DESC, collection.uri DESC LIMIT $5"} +{"sql":"f144453bcf","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND record::jsonb->>'badgeType' IN ($2) AND (strpos(lower(COALESCE(record::jsonb->>'title', '')), lower($3)) > 0 OR strpos(lower(COALESCE(record::jsonb->>'description', '')), lower($3)) > 0) ORDER BY sorted.sort_at DESC, uri DESC LIMIT $4"} +{"sql":"f1591fc881","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND rkey = 'self' AND (strpos(lower(COALESCE(record::jsonb->>'displayName', '')), lower($2)) > 0 OR strpos(lower(COALESCE(record::jsonb->>'description', '')), lower($2)) > 0) ORDER BY sorted.sort_at ASC, uri ASC LIMIT $3"} +{"sql":"f1d764afaa","text":"SELECT receipt.uri, receipt.did, receipt.cid, receipt.indexed_at::text AS indexed_at, receipt.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS receipt CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(receipt.record::jsonb->'createdAt') = 'string' AND receipt.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND receipt.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(receipt.record::jsonb->>'createdAt', 'timestamptz') THEN (receipt.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(receipt.indexed_at::timestamptz, receipt.created_at::timestamptz) END AS sort_at) AS sorted WHERE receipt.collection = $1 AND ((receipt.record::jsonb->'to'->>'$type' = 'app.certified.defs#did' AND receipt.record::jsonb->'to'->>'did' IN ($2, $3)) OR (receipt.record::jsonb->'to'->>'$type' = 'com.atproto.repo.strongRef' AND receipt.record::jsonb->'to'->>'uri' IN ($4, $5))) ORDER BY sorted.sort_at DESC, receipt.uri DESC LIMIT $6"} +{"sql":"f3857e8ed7","text":"WITH ranked_follows AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, record::jsonb->>'subject' AS subject_did, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, record::jsonb->>'subject' ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND NOT COALESCE(starts_with(record::jsonb->'via'->>'uri', 'at://' || (record::jsonb->>'subject') || '/org.hypercerts.collection/'), FALSE) AND did = $2), representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at, subject_did AS actor_did FROM ranked_follows WHERE relationship_rank = 1), total AS (SELECT COUNT(*) AS total_count FROM representatives), page AS (SELECT uri, did, cid, indexed_at, record, sort_at, actor_did FROM representatives ORDER BY sort_at DESC, uri DESC LIMIT $3) SELECT page.uri, page.did, page.cid, page.indexed_at, page.record, page.actor_did, total.total_count, to_char(page.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM total LEFT JOIN page ON TRUE ORDER BY page.sort_at DESC, page.uri DESC"} +{"sql":"f415ca0b71","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND (sorted.sort_at, uri) > (($2)::timestamptz, $3) ORDER BY sorted.sort_at ASC, uri ASC LIMIT $4"} +{"sql":"f46a8471ac","text":"SELECT receipt.uri, receipt.did, receipt.cid, receipt.indexed_at::text AS indexed_at, receipt.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS receipt CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(receipt.record::jsonb->'createdAt') = 'string' AND receipt.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND receipt.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(receipt.record::jsonb->>'createdAt', 'timestamptz') THEN (receipt.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(receipt.indexed_at::timestamptz, receipt.created_at::timestamptz) END AS sort_at) AS sorted WHERE receipt.collection = $1 AND ((receipt.record::jsonb->'from'->>'$type' = 'app.certified.defs#did' AND receipt.record::jsonb->'from'->>'did' IN ($2, $3)) OR (receipt.record::jsonb->'from'->>'$type' = 'com.atproto.repo.strongRef' AND receipt.record::jsonb->'from'->>'uri' IN ($4, $5))) ORDER BY sorted.sort_at DESC, receipt.uri DESC LIMIT $6"} +{"sql":"f56f61aad1","text":"SELECT contribution.uri, contribution.did, contribution.cid, contribution.indexed_at::text AS indexed_at, contribution.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS contribution CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(contribution.record::jsonb->'createdAt') = 'string' AND contribution.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND contribution.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(contribution.record::jsonb->>'createdAt', 'timestamptz') THEN (contribution.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(contribution.indexed_at::timestamptz, contribution.created_at::timestamptz, 'epoch'::timestamptz) END AS sort_at) AS sorted WHERE contribution.collection = $1 AND contribution.did IN ($2, $3, $4) ORDER BY sorted.sort_at DESC, contribution.uri DESC LIMIT $5"} +{"sql":"f64bb87616","text":"SELECT rights.uri, rights.did, rights.cid, rights.indexed_at::text AS indexed_at, rights.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS rights CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(rights.record::jsonb->'createdAt') = 'string' AND rights.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND rights.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(rights.record::jsonb->>'createdAt', 'timestamptz') THEN (rights.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(rights.indexed_at::timestamptz, rights.created_at::timestamptz) END AS sort_at) AS sorted WHERE rights.collection = $1 AND (sorted.sort_at, rights.uri) < (($2)::timestamptz, $3) ORDER BY sorted.sort_at DESC, rights.uri DESC LIMIT $4"} +{"sql":"f774ae6084","text":"SELECT feature.uri, feature.did, feature.cid, feature.indexed_at::text AS indexed_at, feature.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS feature CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(feature.record::jsonb -> 'createdAt') = 'string' AND feature.record::jsonb ->> 'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND feature.record::jsonb ->> 'createdAt' !~ '-00:00$' AND pg_input_is_valid(feature.record::jsonb ->> 'createdAt', 'timestamptz') THEN (feature.record::jsonb ->> 'createdAt')::timestamptz ELSE COALESCE(feature.indexed_at::timestamptz, feature.created_at::timestamptz) END AS sort_at) AS sorted WHERE feature.collection = $1 AND (jsonb_typeof(feature.record::jsonb -> 'type') = 'string' AND feature.record::jsonb ->> 'type' IN ($2, $3, $4)) ORDER BY sorted.sort_at DESC, feature.uri DESC LIMIT $5"} +{"sql":"f87bb726ad","text":"WITH ranked_follows AS (SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, sorted.sort_at, ROW_NUMBER() OVER (PARTITION BY did, record::jsonb->'subject'->>'uri' ORDER BY sorted.sort_at ASC, uri ASC) AS relationship_rank FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 AND did = $2), representatives AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM ranked_follows WHERE relationship_rank = 1), page AS (SELECT uri, did, cid, indexed_at, record, sort_at FROM representatives WHERE (sort_at, uri) < ($3::timestamptz, $4) ORDER BY sort_at DESC, uri DESC LIMIT $5) SELECT page.uri, page.did, page.cid, page.indexed_at, page.record, to_char(page.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM page ORDER BY page.sort_at DESC, page.uri DESC"} +{"sql":"fa73adf4ae","text":"SELECT collection.uri, collection.did, collection.cid, collection.indexed_at::text AS indexed_at, collection.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS collection CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(collection.record::jsonb->'createdAt') = 'string' AND collection.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND collection.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(collection.record::jsonb->>'createdAt', 'timestamptz') THEN (collection.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(collection.indexed_at::timestamptz, collection.created_at::timestamptz) END AS sort_at) AS sorted WHERE collection.collection = $1 AND EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(collection.record::jsonb->'items') = 'array' THEN collection.record::jsonb->'items' ELSE '[]'::jsonb END) AS item(value) WHERE item.value->'itemIdentifier'->>'uri' IN ($2)) ORDER BY sorted.sort_at DESC, collection.uri DESC LIMIT $3"} +{"sql":"fac78ac0ee","text":"SELECT award.uri, award.did, award.cid, award.indexed_at::text AS indexed_at, award.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp, badge.uri AS badge_uri, badge.cid AS badge_cid, badge.indexed_at::text AS badge_indexed_at, badge.did AS badge_did, badge.record::text AS badge_record, recipient_response.uri AS recipient_response_uri, recipient_response.cid AS recipient_response_cid, recipient_response.indexed_at::text AS recipient_response_indexed_at, recipient_response.did AS recipient_response_did, recipient_response.record::text AS recipient_response_record FROM happyview_records AS award CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(award.record::jsonb->'createdAt') = 'string' AND award.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND award.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(award.record::jsonb->>'createdAt', 'timestamptz') THEN (award.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(award.indexed_at::timestamptz, award.created_at::timestamptz) END AS sort_at) sorted LEFT JOIN happyview_records AS badge ON badge.collection = 'app.certified.badge.definition' AND badge.uri = award.record::jsonb->'badge'->>'uri' AND badge.cid = award.record::jsonb->'badge'->>'cid' LEFT JOIN LATERAL (SELECT response.uri, response.cid, response.indexed_at, response.did, response.record FROM happyview_records AS response WHERE response.collection = 'app.certified.badge.response' AND response.did = CASE WHEN jsonb_typeof(award.record::jsonb->'subject') = 'string' THEN award.record::jsonb->>'subject' WHEN jsonb_typeof(award.record::jsonb->'subject') = 'object' AND award.record::jsonb->'subject'->>'$type' = 'app.certified.defs#did' AND jsonb_typeof(award.record::jsonb->'subject'->'did') = 'string' THEN award.record::jsonb->'subject'->>'did' ELSE split_part(award.record::jsonb->'subject'->>'uri', '/', 3) END AND response.record::jsonb->'badgeAward'->>'uri' = award.uri AND response.record::jsonb->'badgeAward'->>'cid' = award.cid AND response.record::jsonb->>'response' IN ('accepted', 'rejected') ORDER BY response.indexed_at DESC NULLS LAST, response.uri DESC LIMIT 1) AS recipient_response ON TRUE WHERE award.collection = $1 AND COALESCE(recipient_response.record::jsonb->>'response', 'unanswered') IN ($2) ORDER BY sorted.sort_at DESC, award.uri DESC LIMIT $3"} +{"sql":"fbade26882","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 ORDER BY sorted.sort_at ASC, uri ASC LIMIT $2"} +{"sql":"fd0f96ef32","text":"SELECT organization.uri, organization.did, organization.cid, organization.indexed_at::text AS indexed_at, organization.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS organization CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(organization.record::jsonb->'createdAt') = 'string' AND organization.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND organization.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(organization.record::jsonb->>'createdAt', 'timestamptz') THEN (organization.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(organization.indexed_at::timestamptz, organization.created_at::timestamptz) END AS sort_at) AS sorted WHERE organization.collection = $1 AND organization.rkey = 'self' AND (sorted.sort_at, uri) > (($2)::timestamptz, $3) ORDER BY sorted.sort_at ASC, uri ASC LIMIT $4"} +{"sql":"fd62cfd14e","text":"SELECT evaluation.uri, evaluation.did, evaluation.cid, evaluation.indexed_at::text AS indexed_at, evaluation.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS evaluation CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(evaluation.record::jsonb->'createdAt') = 'string' AND evaluation.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND evaluation.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(evaluation.record::jsonb->>'createdAt', 'timestamptz') THEN (evaluation.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(evaluation.indexed_at::timestamptz, evaluation.created_at::timestamptz) END AS sort_at) AS sorted WHERE evaluation.collection = $1 AND evaluation.did IN ($2, $3) AND EXISTS (SELECT 1 FROM jsonb_array_elements(CASE WHEN jsonb_typeof(evaluation.record::jsonb->'evaluators') = 'array' THEN evaluation.record::jsonb->'evaluators' ELSE '[]'::jsonb END) AS evaluator(value) WHERE evaluator.value->>'did' IN ($4, $5)) AND evaluation.record::jsonb->'subject'->>'uri' IN ($6, $7) ORDER BY sorted.sort_at DESC, evaluation.uri DESC LIMIT $8"} +{"sql":"fdd374e87e","text":"SELECT uri, did, cid, indexed_at::text AS indexed_at, record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(record::jsonb->'createdAt') = 'string' AND record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(record::jsonb->>'createdAt', 'timestamptz') THEN (record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(indexed_at::timestamptz, created_at::timestamptz) END AS sort_at) sorted WHERE collection = $1 ORDER BY sorted.sort_at DESC, uri DESC LIMIT $2"} +{"sql":"fe4a9479a5","text":"SELECT feature.uri, feature.did, feature.cid, feature.indexed_at::text AS indexed_at, feature.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS feature CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(feature.record::jsonb -> 'createdAt') = 'string' AND feature.record::jsonb ->> 'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND feature.record::jsonb ->> 'createdAt' !~ '-00:00$' AND pg_input_is_valid(feature.record::jsonb ->> 'createdAt', 'timestamptz') THEN (feature.record::jsonb ->> 'createdAt')::timestamptz ELSE COALESCE(feature.indexed_at::timestamptz, feature.created_at::timestamptz) END AS sort_at) AS sorted WHERE feature.collection = $1 AND FALSE ORDER BY sorted.sort_at DESC, feature.uri DESC LIMIT $2"} +{"sql":"fee0b5414b","text":"SELECT measurement.uri, measurement.did, measurement.cid, measurement.indexed_at::text AS indexed_at, measurement.record::text AS record, to_char(sorted.sort_at AT TIME ZONE 'UTC', 'YYYY-MM-DD\"T\"HH24:MI:SS.US\"Z\"') AS sort_timestamp FROM happyview_records AS measurement CROSS JOIN LATERAL (SELECT CASE WHEN jsonb_typeof(measurement.record::jsonb->'createdAt') = 'string' AND measurement.record::jsonb->>'createdAt' ~ '^[0-9]{4}-[0-9]{2}-[0-9]{2}T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$' AND measurement.record::jsonb->>'createdAt' !~ '-00:00$' AND pg_input_is_valid(measurement.record::jsonb->>'createdAt', 'timestamptz') THEN (measurement.record::jsonb->>'createdAt')::timestamptz ELSE COALESCE(measurement.indexed_at::timestamptz, measurement.created_at::timestamptz) END AS sort_at) AS sorted WHERE measurement.collection = $1 AND measurement.did IN ($2) ORDER BY sorted.sort_at DESC, measurement.uri DESC LIMIT $3"} +{"endpoint":"app.certified.actor.listOrganizations","case":"default","calls":[{"binds":["app.certified.actor.organization",26],"sql":"22e0220699"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"limit=1","calls":[{"binds":["app.certified.actor.organization",2],"sql":"22e0220699"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"limit=7","calls":[{"binds":["app.certified.actor.organization",8],"sql":"22e0220699"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"limit=99","calls":[{"binds":["app.certified.actor.organization",100],"sql":"22e0220699"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"limit=100","calls":[{"binds":["app.certified.actor.organization",101],"sql":"22e0220699"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"limit=0","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"limit=101","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"cursor:malformed","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"sort=desc","calls":[{"binds":["app.certified.actor.organization",26],"sql":"22e0220699"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"paged:desc","calls":[{"binds":["app.certified.actor.organization",3],"sql":"22e0220699"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"26f10c09e4"},{"binds":["app.certified.location","at://did:plc:abcdefghijklmnopqrstuvwz/app.certified.location/3klocation2","at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.location/3klocation1"],"sql":"598df7d2c2"}],"outcome":{"result":{"actors":[{"did":"did:plc:abcdefghijklmnopqrstuvwz","location":null,"organization":{"cid":"bafyfixture2","did":"did:plc:abcdefghijklmnopqrstuvwz","indexedAt":"2025-01-03T00:00:00Z","record":{"$type":"app.certified.actor.organization","createdAt":"2025-01-03T00:00:00Z","location":{"cid":"bafylocation2","uri":"at://did:plc:abcdefghijklmnopqrstuvwz/app.certified.location/3klocation2"}},"uri":"at://did:plc:abcdefghijklmnopqrstuvwz/app.certified.actor.organization/self"},"profile":null},{"did":"did:plc:abcdefghijklmnopqrstuvwy","location":null,"organization":{"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"app.certified.actor.organization","createdAt":"2025-01-02T00:00:00Z","location":{"cid":"bafylocation1","uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.location/3klocation1"}},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.actor.organization/self"},"profile":null}],"cursor":"7b2264223a2264657363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e6163746f722e6f7267616e697a6174696f6e2f73656c66222c2276223a317d"}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"cursor:valid:desc","calls":[{"binds":["app.certified.actor.organization","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"46a96a9b3e"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"cursor:valid+limit=7:desc","calls":[{"binds":["app.certified.actor.organization","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",8],"sql":"46a96a9b3e"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"year0000:cursor:desc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"sort=asc","calls":[{"binds":["app.certified.actor.organization",26],"sql":"a5a8ed742f"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"paged:asc","calls":[{"binds":["app.certified.actor.organization",3],"sql":"a5a8ed742f"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"26f10c09e4"},{"binds":["app.certified.location","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3klocation0","at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.location/3klocation1"],"sql":"598df7d2c2"}],"outcome":{"result":{"actors":[{"did":"did:plc:abcdefghijklmnopqrstuvwx","location":null,"organization":{"cid":"bafyfixture0","did":"did:plc:abcdefghijklmnopqrstuvwx","indexedAt":"2025-01-01T00:00:00Z","record":{"$type":"app.certified.actor.organization","createdAt":"2025-01-01T00:00:00Z","location":{"cid":"bafylocation0","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3klocation0"}},"uri":"at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self"},"profile":null},{"did":"did:plc:abcdefghijklmnopqrstuvwy","location":null,"organization":{"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"app.certified.actor.organization","createdAt":"2025-01-02T00:00:00Z","location":{"cid":"bafylocation1","uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.location/3klocation1"}},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.actor.organization/self"},"profile":null}],"cursor":"7b2264223a22617363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e6163746f722e6f7267616e697a6174696f6e2f73656c66222c2276223a317d"}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"cursor:valid:asc","calls":[{"binds":["app.certified.actor.organization","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"fd0f96ef32"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"cursor:valid+limit=7:asc","calls":[{"binds":["app.certified.actor.organization","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",8],"sql":"fd0f96ef32"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"year0000:cursor:asc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"filter:organizationTypes:many","calls":[{"binds":["app.certified.actor.organization","nonprofit","company","dao",26],"sql":"74bec3e87a"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"filter:organizationTypes:one","calls":[{"binds":["app.certified.actor.organization","nonprofit",26],"sql":"bec466bdba"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"filter:organizationTypes:one-scalar","calls":[{"binds":["app.certified.actor.organization","nonprofit",26],"sql":"bec466bdba"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"filter:organizationTypes:duplicate","calls":[{"binds":["app.certified.actor.organization","nonprofit",26],"sql":"bec466bdba"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"filter:organizationTypes:empty","calls":[{"binds":["app.certified.actor.organization",26],"sql":"b895e4df3f"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"filter:visibility=public","calls":[{"binds":["app.certified.actor.organization","public",26],"sql":"4698c54ba8"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"filter:visibility=unlisted","calls":[{"binds":["app.certified.actor.organization","unlisted",26],"sql":"4698c54ba8"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"filter:visibility=private","calls":[{"binds":["app.certified.actor.organization","private",26],"sql":"4698c54ba8"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"filter:all","calls":[{"binds":["app.certified.actor.organization","nonprofit","company","public",26],"sql":"ca6910e2cf"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"error:sortDirection=bad","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"error:sortDirection=ASC","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"error:sortDirection=empty","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"error:limit=abc","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"error:limit=1.5","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"error:limit=-1","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"error:limit=0-string","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"error:limit=7-string","calls":[{"binds":["app.certified.actor.organization",8],"sql":"22e0220699"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"error:limit=empty","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"error:limit=array","calls":[],"outcome":{"error":"InvalidRequest: limit must occur once"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"error:sortDirection=array","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must occur once"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"error:cursor:non-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"error:cursor:empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"error:cursor:hex-non-json","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"error:cursor:array","calls":[],"outcome":{"error":"InvalidRequest: cursor must occur once"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"error:cursor:uppercase-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"cursor:length-at-cap","calls":[{"binds":["app.certified.actor.organization","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"46a96a9b3e"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"cursor:length-below-cap","calls":[{"binds":["app.certified.actor.organization","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"46a96a9b3e"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"cursor:length-above-cap","calls":[{"binds":["app.certified.actor.organization","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"46a96a9b3e"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:month-13","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:feb-30","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:leap-2024-valid","calls":[{"binds":["app.certified.actor.organization","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"46a96a9b3e"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:feb-29-2100","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:leap-2000-valid","calls":[{"binds":["app.certified.actor.organization","2000-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"46a96a9b3e"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:second-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:hour-24","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:zone-minus-00-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:zone-plus-24-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:zone-minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:zone-plus-05-30-valid","calls":[{"binds":["app.certified.actor.organization","2025-01-01T00:00:00+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"46a96a9b3e"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:fraction-valid","calls":[{"binds":["app.certified.actor.organization","2025-01-01T00:00:00.123456Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"46a96a9b3e"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:fraction-offset-valid","calls":[{"binds":["app.certified.actor.organization","2025-01-01T00:00:00.5+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"46a96a9b3e"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:no-zone","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:day-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:fraction-empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:fraction-empty-offset","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:month-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:lowercase-z","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:lowercase-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:zone-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:fraction-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:year-0001-valid","calls":[{"binds":["app.certified.actor.organization","0001-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"46a96a9b3e"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:year-5-digit","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:end-of-year-valid","calls":[{"binds":["app.certified.actor.organization","2025-12-31T23:59:59Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"46a96a9b3e"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:zone-plus-15-59","calls":[{"binds":["app.certified.actor.organization","2025-01-01T00:00:00+15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"46a96a9b3e"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:zone-minus-15-59","calls":[{"binds":["app.certified.actor.organization","2025-01-01T00:00:00-15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"46a96a9b3e"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:zone-plus-16-00","calls":[{"binds":["app.certified.actor.organization","2025-01-01T00:00:00+16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"46a96a9b3e"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:zone-minus-16-00","calls":[{"binds":["app.certified.actor.organization","2025-01-01T00:00:00-16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"46a96a9b3e"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:zone-plus-23-59-lua-accepted","calls":[{"binds":["app.certified.actor.organization","2025-01-01T00:00:00+23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"46a96a9b3e"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:zone-minus-23-59-lua-accepted","calls":[{"binds":["app.certified.actor.organization","2025-01-01T00:00:00-23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"46a96a9b3e"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:feb-29-2026","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:feb-29-2200","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:day-2025-01-31-valid","calls":[{"binds":["app.certified.actor.organization","2025-01-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"46a96a9b3e"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:day-2025-01-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:day-2025-02-28-valid","calls":[{"binds":["app.certified.actor.organization","2025-02-28T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"46a96a9b3e"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:day-2025-02-29-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:day-2025-03-31-valid","calls":[{"binds":["app.certified.actor.organization","2025-03-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"46a96a9b3e"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:day-2025-03-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:day-2025-04-30-valid","calls":[{"binds":["app.certified.actor.organization","2025-04-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"46a96a9b3e"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:day-2025-04-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:day-2025-05-31-valid","calls":[{"binds":["app.certified.actor.organization","2025-05-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"46a96a9b3e"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:day-2025-05-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:day-2025-06-30-valid","calls":[{"binds":["app.certified.actor.organization","2025-06-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"46a96a9b3e"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:day-2025-06-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:day-2025-07-31-valid","calls":[{"binds":["app.certified.actor.organization","2025-07-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"46a96a9b3e"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:day-2025-07-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:day-2025-08-31-valid","calls":[{"binds":["app.certified.actor.organization","2025-08-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"46a96a9b3e"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:day-2025-08-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:day-2025-09-30-valid","calls":[{"binds":["app.certified.actor.organization","2025-09-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"46a96a9b3e"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:day-2025-09-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:day-2025-10-31-valid","calls":[{"binds":["app.certified.actor.organization","2025-10-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"46a96a9b3e"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:day-2025-10-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:day-2025-11-30-valid","calls":[{"binds":["app.certified.actor.organization","2025-11-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"46a96a9b3e"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:day-2025-11-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:day-2025-12-31-valid","calls":[{"binds":["app.certified.actor.organization","2025-12-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"46a96a9b3e"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:day-2025-12-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:day-2024-02-29-valid","calls":[{"binds":["app.certified.actor.organization","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"46a96a9b3e"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.listOrganizations","case":"datetime:cursor-t:day-2024-02-30-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"error:cursor:wrong-v","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"error:cursor:wrong-collection","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"error:cursor:missing-u","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"error:cursor:u-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"error:cursor:extra-key","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"error:cursor:wrong-rkey","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"error:cursor:wrong-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"error:cursor:opposite-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"error:cursor:bad-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"error:cursor:t-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.actor.listOrganizations","case":"error:cursor:missing-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.actor.listProfiles","case":"default","calls":[{"binds":["app.certified.actor.profile",26],"sql":"259d5b6011"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"limit=1","calls":[{"binds":["app.certified.actor.profile",2],"sql":"259d5b6011"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"limit=7","calls":[{"binds":["app.certified.actor.profile",8],"sql":"259d5b6011"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"limit=99","calls":[{"binds":["app.certified.actor.profile",100],"sql":"259d5b6011"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"limit=100","calls":[{"binds":["app.certified.actor.profile",101],"sql":"259d5b6011"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"limit=0","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.actor.listProfiles","case":"limit=101","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.actor.listProfiles","case":"cursor:malformed","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"sort=desc","calls":[{"binds":["app.certified.actor.profile",26],"sql":"259d5b6011"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"paged:desc","calls":[{"binds":["app.certified.actor.profile",3],"sql":"259d5b6011"}],"outcome":{"result":{"cursor":"7b2264223a2264657363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e6163746f722e70726f66696c652f73656c66222c2276223a317d","profiles":[{"cid":"bafyfixture2","did":"did:plc:abcdefghijklmnopqrstuvwz","indexedAt":"2025-01-03T00:00:00Z","record":{"$type":"app.certified.actor.profile","createdAt":"2025-01-03T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwz/app.certified.actor.profile/self"},{"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"app.certified.actor.profile","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.actor.profile/self"}]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"cursor:valid:desc","calls":[{"binds":["app.certified.actor.profile","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"9e6090d8e4"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"cursor:valid+limit=7:desc","calls":[{"binds":["app.certified.actor.profile","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",8],"sql":"9e6090d8e4"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"year0000:cursor:desc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"sort=asc","calls":[{"binds":["app.certified.actor.profile",26],"sql":"d05b037b0c"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"paged:asc","calls":[{"binds":["app.certified.actor.profile",3],"sql":"d05b037b0c"}],"outcome":{"result":{"cursor":"7b2264223a22617363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e6163746f722e70726f66696c652f73656c66222c2276223a317d","profiles":[{"cid":"bafyfixture0","did":"did:plc:abcdefghijklmnopqrstuvwx","indexedAt":"2025-01-01T00:00:00Z","record":{"$type":"app.certified.actor.profile","createdAt":"2025-01-01T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self"},{"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"app.certified.actor.profile","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.actor.profile/self"}]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"cursor:valid:asc","calls":[{"binds":["app.certified.actor.profile","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"536c6066fd"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"cursor:valid+limit=7:asc","calls":[{"binds":["app.certified.actor.profile","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",8],"sql":"536c6066fd"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"year0000:cursor:asc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"error:sortDirection=bad","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.actor.listProfiles","case":"error:sortDirection=ASC","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.actor.listProfiles","case":"error:sortDirection=empty","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.actor.listProfiles","case":"error:limit=abc","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.actor.listProfiles","case":"error:limit=1.5","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.actor.listProfiles","case":"error:limit=-1","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.actor.listProfiles","case":"error:limit=0-string","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.actor.listProfiles","case":"error:limit=7-string","calls":[{"binds":["app.certified.actor.profile",8],"sql":"259d5b6011"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"error:limit=empty","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.actor.listProfiles","case":"error:limit=array","calls":[],"outcome":{"error":"InvalidRequest: limit must occur once"}} +{"endpoint":"app.certified.actor.listProfiles","case":"error:sortDirection=array","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must occur once"}} +{"endpoint":"app.certified.actor.listProfiles","case":"error:cursor:non-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"error:cursor:empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.actor.listProfiles","case":"error:cursor:hex-non-json","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.actor.listProfiles","case":"error:cursor:array","calls":[],"outcome":{"error":"InvalidRequest: cursor must occur once"}} +{"endpoint":"app.certified.actor.listProfiles","case":"error:cursor:uppercase-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"cursor:length-at-cap","calls":[{"binds":["app.certified.actor.profile","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"9e6090d8e4"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"cursor:length-below-cap","calls":[{"binds":["app.certified.actor.profile","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"9e6090d8e4"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"cursor:length-above-cap","calls":[{"binds":["app.certified.actor.profile","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"9e6090d8e4"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:month-13","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:feb-30","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:leap-2024-valid","calls":[{"binds":["app.certified.actor.profile","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"9e6090d8e4"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:feb-29-2100","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:leap-2000-valid","calls":[{"binds":["app.certified.actor.profile","2000-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"9e6090d8e4"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:second-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:hour-24","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:zone-minus-00-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:zone-plus-24-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:zone-minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:zone-plus-05-30-valid","calls":[{"binds":["app.certified.actor.profile","2025-01-01T00:00:00+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"9e6090d8e4"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:fraction-valid","calls":[{"binds":["app.certified.actor.profile","2025-01-01T00:00:00.123456Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"9e6090d8e4"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:fraction-offset-valid","calls":[{"binds":["app.certified.actor.profile","2025-01-01T00:00:00.5+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"9e6090d8e4"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:no-zone","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:day-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:fraction-empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:fraction-empty-offset","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:month-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:lowercase-z","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:lowercase-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:zone-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:fraction-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:year-0001-valid","calls":[{"binds":["app.certified.actor.profile","0001-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"9e6090d8e4"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:year-5-digit","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:end-of-year-valid","calls":[{"binds":["app.certified.actor.profile","2025-12-31T23:59:59Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"9e6090d8e4"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:zone-plus-15-59","calls":[{"binds":["app.certified.actor.profile","2025-01-01T00:00:00+15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"9e6090d8e4"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:zone-minus-15-59","calls":[{"binds":["app.certified.actor.profile","2025-01-01T00:00:00-15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"9e6090d8e4"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:zone-plus-16-00","calls":[{"binds":["app.certified.actor.profile","2025-01-01T00:00:00+16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"9e6090d8e4"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:zone-minus-16-00","calls":[{"binds":["app.certified.actor.profile","2025-01-01T00:00:00-16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"9e6090d8e4"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:zone-plus-23-59-lua-accepted","calls":[{"binds":["app.certified.actor.profile","2025-01-01T00:00:00+23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"9e6090d8e4"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:zone-minus-23-59-lua-accepted","calls":[{"binds":["app.certified.actor.profile","2025-01-01T00:00:00-23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"9e6090d8e4"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:feb-29-2026","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:feb-29-2200","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:day-2025-01-31-valid","calls":[{"binds":["app.certified.actor.profile","2025-01-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"9e6090d8e4"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:day-2025-01-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:day-2025-02-28-valid","calls":[{"binds":["app.certified.actor.profile","2025-02-28T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"9e6090d8e4"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:day-2025-02-29-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:day-2025-03-31-valid","calls":[{"binds":["app.certified.actor.profile","2025-03-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"9e6090d8e4"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:day-2025-03-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:day-2025-04-30-valid","calls":[{"binds":["app.certified.actor.profile","2025-04-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"9e6090d8e4"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:day-2025-04-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:day-2025-05-31-valid","calls":[{"binds":["app.certified.actor.profile","2025-05-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"9e6090d8e4"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:day-2025-05-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:day-2025-06-30-valid","calls":[{"binds":["app.certified.actor.profile","2025-06-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"9e6090d8e4"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:day-2025-06-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:day-2025-07-31-valid","calls":[{"binds":["app.certified.actor.profile","2025-07-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"9e6090d8e4"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:day-2025-07-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:day-2025-08-31-valid","calls":[{"binds":["app.certified.actor.profile","2025-08-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"9e6090d8e4"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:day-2025-08-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:day-2025-09-30-valid","calls":[{"binds":["app.certified.actor.profile","2025-09-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"9e6090d8e4"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:day-2025-09-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:day-2025-10-31-valid","calls":[{"binds":["app.certified.actor.profile","2025-10-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"9e6090d8e4"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:day-2025-10-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:day-2025-11-30-valid","calls":[{"binds":["app.certified.actor.profile","2025-11-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"9e6090d8e4"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:day-2025-11-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:day-2025-12-31-valid","calls":[{"binds":["app.certified.actor.profile","2025-12-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"9e6090d8e4"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:day-2025-12-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:day-2024-02-29-valid","calls":[{"binds":["app.certified.actor.profile","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"9e6090d8e4"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.listProfiles","case":"datetime:cursor-t:day-2024-02-30-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"error:cursor:wrong-v","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.actor.listProfiles","case":"error:cursor:wrong-collection","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"error:cursor:missing-u","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.actor.listProfiles","case":"error:cursor:u-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.actor.listProfiles","case":"error:cursor:extra-key","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"error:cursor:wrong-rkey","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"error:cursor:wrong-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.actor.listProfiles","case":"error:cursor:opposite-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.actor.listProfiles","case":"error:cursor:bad-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.listProfiles","case":"error:cursor:t-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.actor.listProfiles","case":"error:cursor:missing-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"default","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile",26],"sql":"0af04d2949"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"limit=1","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile",2],"sql":"0af04d2949"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"limit=7","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile",8],"sql":"0af04d2949"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"limit=99","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile",100],"sql":"0af04d2949"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"limit=100","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile",101],"sql":"0af04d2949"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"limit=0","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"limit=101","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"cursor:malformed","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"sort=desc","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile",26],"sql":"0af04d2949"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"paged:desc","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile",3],"sql":"0af04d2949"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"26f10c09e4"},{"binds":["app.certified.location","at://did:plc:abcdefghijklmnopqrstuvwz/app.certified.location/3klocation2","at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.location/3klocation1"],"sql":"598df7d2c2"}],"outcome":{"result":{"actors":[{"did":"did:plc:abcdefghijklmnopqrstuvwz","location":null,"organization":{"cid":"bafyfixture2","did":"did:plc:abcdefghijklmnopqrstuvwz","indexedAt":"2025-01-03T00:00:00Z","record":{"$type":"app.certified.actor.organization","createdAt":"2025-01-03T00:00:00Z","location":{"cid":"bafylocation2","uri":"at://did:plc:abcdefghijklmnopqrstuvwz/app.certified.location/3klocation2"}},"uri":"at://did:plc:abcdefghijklmnopqrstuvwz/app.certified.actor.organization/self"},"profile":null},{"did":"did:plc:abcdefghijklmnopqrstuvwy","location":null,"organization":{"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"app.certified.actor.organization","createdAt":"2025-01-02T00:00:00Z","location":{"cid":"bafylocation1","uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.location/3klocation1"}},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.actor.organization/self"},"profile":null}],"cursor":"7b2264223a2264657363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e6163746f722e6f7267616e697a6174696f6e2f73656c66222c2276223a317d"}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"cursor:valid:desc","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"ba980873dd"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"cursor:valid+limit=7:desc","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",8],"sql":"ba980873dd"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"year0000:cursor:desc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"sort=asc","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile",26],"sql":"196724248c"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"paged:asc","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile",3],"sql":"196724248c"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"26f10c09e4"},{"binds":["app.certified.location","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3klocation0","at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.location/3klocation1"],"sql":"598df7d2c2"}],"outcome":{"result":{"actors":[{"did":"did:plc:abcdefghijklmnopqrstuvwx","location":null,"organization":{"cid":"bafyfixture0","did":"did:plc:abcdefghijklmnopqrstuvwx","indexedAt":"2025-01-01T00:00:00Z","record":{"$type":"app.certified.actor.organization","createdAt":"2025-01-01T00:00:00Z","location":{"cid":"bafylocation0","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3klocation0"}},"uri":"at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self"},"profile":null},{"did":"did:plc:abcdefghijklmnopqrstuvwy","location":null,"organization":{"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"app.certified.actor.organization","createdAt":"2025-01-02T00:00:00Z","location":{"cid":"bafylocation1","uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.location/3klocation1"}},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.actor.organization/self"},"profile":null}],"cursor":"7b2264223a22617363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e6163746f722e6f7267616e697a6174696f6e2f73656c66222c2276223a317d"}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"cursor:valid:asc","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"aed3d6f7c0"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"cursor:valid+limit=7:asc","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",8],"sql":"aed3d6f7c0"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"year0000:cursor:asc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"filter:actors:many","calls":[{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwz","test","app.certified.actor.profile",26],"sql":"63e9f57c41"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"filter:actors:one","calls":[{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwx","test","app.certified.actor.profile",26],"sql":"51a1308039"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"filter:actors:one-scalar","calls":[{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwx","test","app.certified.actor.profile",26],"sql":"51a1308039"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"filter:actors:duplicate","calls":[{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwx","test","app.certified.actor.profile",26],"sql":"51a1308039"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"filter:actors:empty","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile",26],"sql":"0000751407"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"filter:organizationTypes:many","calls":[{"binds":["app.certified.actor.organization","nonprofit","company","dao","test","app.certified.actor.profile",26],"sql":"7131766d40"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"filter:organizationTypes:one","calls":[{"binds":["app.certified.actor.organization","nonprofit","test","app.certified.actor.profile",26],"sql":"ed0c344839"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"filter:organizationTypes:one-scalar","calls":[{"binds":["app.certified.actor.organization","nonprofit","test","app.certified.actor.profile",26],"sql":"ed0c344839"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"filter:organizationTypes:duplicate","calls":[{"binds":["app.certified.actor.organization","nonprofit","test","app.certified.actor.profile",26],"sql":"ed0c344839"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"filter:organizationTypes:empty","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile",26],"sql":"0000751407"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"filter:visibility=public","calls":[{"binds":["app.certified.actor.organization","public","test","app.certified.actor.profile",26],"sql":"c57e6b1416"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"filter:visibility=unlisted","calls":[{"binds":["app.certified.actor.organization","unlisted","test","app.certified.actor.profile",26],"sql":"c57e6b1416"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"filter:visibility=private","calls":[{"binds":["app.certified.actor.organization","private","test","app.certified.actor.profile",26],"sql":"c57e6b1416"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"filter:all","calls":[{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","company","dao","public","test","app.certified.actor.profile",26],"sql":"01313d9fc1"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"error:sortDirection=bad","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"error:sortDirection=ASC","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"error:sortDirection=empty","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"error:limit=abc","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"error:limit=1.5","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"error:limit=-1","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"error:limit=0-string","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"error:limit=7-string","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile",8],"sql":"0af04d2949"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"error:limit=empty","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"error:limit=array","calls":[],"outcome":{"error":"InvalidRequest: limit must occur once"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"error:sortDirection=array","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must occur once"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"error:cursor:non-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"error:cursor:empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"error:cursor:hex-non-json","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"error:cursor:array","calls":[],"outcome":{"error":"InvalidRequest: cursor must occur once"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"error:cursor:uppercase-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"cursor:length-at-cap","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"ba980873dd"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"cursor:length-below-cap","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"ba980873dd"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"cursor:length-above-cap","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"ba980873dd"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:month-13","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:feb-30","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:leap-2024-valid","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"ba980873dd"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:feb-29-2100","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:leap-2000-valid","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile","2000-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"ba980873dd"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:second-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:hour-24","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:zone-minus-00-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:zone-plus-24-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:zone-minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:zone-plus-05-30-valid","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile","2025-01-01T00:00:00+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"ba980873dd"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:fraction-valid","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile","2025-01-01T00:00:00.123456Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"ba980873dd"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:fraction-offset-valid","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile","2025-01-01T00:00:00.5+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"ba980873dd"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:no-zone","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:day-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:fraction-empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:fraction-empty-offset","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:month-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:lowercase-z","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:lowercase-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:zone-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:fraction-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:year-0001-valid","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile","0001-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"ba980873dd"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:year-5-digit","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:end-of-year-valid","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile","2025-12-31T23:59:59Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"ba980873dd"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:zone-plus-15-59","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile","2025-01-01T00:00:00+15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"ba980873dd"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:zone-minus-15-59","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile","2025-01-01T00:00:00-15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"ba980873dd"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:zone-plus-16-00","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile","2025-01-01T00:00:00+16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"ba980873dd"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:zone-minus-16-00","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile","2025-01-01T00:00:00-16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"ba980873dd"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:zone-plus-23-59-lua-accepted","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile","2025-01-01T00:00:00+23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"ba980873dd"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:zone-minus-23-59-lua-accepted","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile","2025-01-01T00:00:00-23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"ba980873dd"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:feb-29-2026","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:feb-29-2200","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:day-2025-01-31-valid","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile","2025-01-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"ba980873dd"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:day-2025-01-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:day-2025-02-28-valid","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile","2025-02-28T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"ba980873dd"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:day-2025-02-29-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:day-2025-03-31-valid","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile","2025-03-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"ba980873dd"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:day-2025-03-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:day-2025-04-30-valid","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile","2025-04-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"ba980873dd"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:day-2025-04-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:day-2025-05-31-valid","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile","2025-05-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"ba980873dd"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:day-2025-05-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:day-2025-06-30-valid","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile","2025-06-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"ba980873dd"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:day-2025-06-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:day-2025-07-31-valid","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile","2025-07-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"ba980873dd"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:day-2025-07-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:day-2025-08-31-valid","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile","2025-08-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"ba980873dd"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:day-2025-08-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:day-2025-09-30-valid","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile","2025-09-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"ba980873dd"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:day-2025-09-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:day-2025-10-31-valid","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile","2025-10-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"ba980873dd"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:day-2025-10-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:day-2025-11-30-valid","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile","2025-11-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"ba980873dd"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:day-2025-11-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:day-2025-12-31-valid","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile","2025-12-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"ba980873dd"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:day-2025-12-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:day-2024-02-29-valid","calls":[{"binds":["app.certified.actor.organization","test","app.certified.actor.profile","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.organization/self",26],"sql":"ba980873dd"}],"outcome":{"result":{"actors":[]}}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"datetime:cursor-t:day-2024-02-30-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"error:cursor:wrong-v","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"error:cursor:wrong-collection","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"error:cursor:missing-u","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"error:cursor:u-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"error:cursor:extra-key","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"error:cursor:wrong-rkey","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"error:cursor:wrong-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"error:cursor:opposite-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"error:cursor:bad-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"error:cursor:t-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.actor.searchOrganizations","case":"error:cursor:missing-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"default","calls":[{"binds":["app.certified.actor.profile","test",26],"sql":"238b55a03a"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"limit=1","calls":[{"binds":["app.certified.actor.profile","test",2],"sql":"238b55a03a"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"limit=7","calls":[{"binds":["app.certified.actor.profile","test",8],"sql":"238b55a03a"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"limit=99","calls":[{"binds":["app.certified.actor.profile","test",100],"sql":"238b55a03a"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"limit=100","calls":[{"binds":["app.certified.actor.profile","test",101],"sql":"238b55a03a"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"limit=0","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"limit=101","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"cursor:malformed","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"sort=desc","calls":[{"binds":["app.certified.actor.profile","test",26],"sql":"238b55a03a"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"paged:desc","calls":[{"binds":["app.certified.actor.profile","test",3],"sql":"238b55a03a"}],"outcome":{"result":{"cursor":"7b2264223a2264657363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e6163746f722e70726f66696c652f73656c66222c2276223a317d","profiles":[{"cid":"bafyfixture2","did":"did:plc:abcdefghijklmnopqrstuvwz","indexedAt":"2025-01-03T00:00:00Z","record":{"$type":"app.certified.actor.profile","createdAt":"2025-01-03T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwz/app.certified.actor.profile/self"},{"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"app.certified.actor.profile","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.actor.profile/self"}]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"cursor:valid:desc","calls":[{"binds":["app.certified.actor.profile","test","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"142fb30cf8"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"cursor:valid+limit=7:desc","calls":[{"binds":["app.certified.actor.profile","test","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",8],"sql":"142fb30cf8"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"year0000:cursor:desc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"sort=asc","calls":[{"binds":["app.certified.actor.profile","test",26],"sql":"f1591fc881"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"paged:asc","calls":[{"binds":["app.certified.actor.profile","test",3],"sql":"f1591fc881"}],"outcome":{"result":{"cursor":"7b2264223a22617363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e6163746f722e70726f66696c652f73656c66222c2276223a317d","profiles":[{"cid":"bafyfixture0","did":"did:plc:abcdefghijklmnopqrstuvwx","indexedAt":"2025-01-01T00:00:00Z","record":{"$type":"app.certified.actor.profile","createdAt":"2025-01-01T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self"},{"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"app.certified.actor.profile","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.actor.profile/self"}]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"cursor:valid:asc","calls":[{"binds":["app.certified.actor.profile","test","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"2cd52c5f03"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"cursor:valid+limit=7:asc","calls":[{"binds":["app.certified.actor.profile","test","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",8],"sql":"2cd52c5f03"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"year0000:cursor:asc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"filter:actors:many","calls":[{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwz","test",26],"sql":"921d3f3c56"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"filter:actors:one","calls":[{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwx","test",26],"sql":"a4a6ef4bdf"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"filter:actors:one-scalar","calls":[{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwx","test",26],"sql":"a4a6ef4bdf"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"filter:actors:duplicate","calls":[{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwx","test",26],"sql":"a4a6ef4bdf"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"filter:actors:empty","calls":[{"binds":["app.certified.actor.profile","test",26],"sql":"d62f1fff4b"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"error:sortDirection=bad","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"error:sortDirection=ASC","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"error:sortDirection=empty","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"error:limit=abc","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"error:limit=1.5","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"error:limit=-1","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"error:limit=0-string","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"error:limit=7-string","calls":[{"binds":["app.certified.actor.profile","test",8],"sql":"238b55a03a"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"error:limit=empty","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"error:limit=array","calls":[],"outcome":{"error":"InvalidRequest: limit must occur once"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"error:sortDirection=array","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must occur once"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"error:cursor:non-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"error:cursor:empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"error:cursor:hex-non-json","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"error:cursor:array","calls":[],"outcome":{"error":"InvalidRequest: cursor must occur once"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"error:cursor:uppercase-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"cursor:length-at-cap","calls":[{"binds":["app.certified.actor.profile","test","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"142fb30cf8"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"cursor:length-below-cap","calls":[{"binds":["app.certified.actor.profile","test","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"142fb30cf8"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"cursor:length-above-cap","calls":[{"binds":["app.certified.actor.profile","test","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"142fb30cf8"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:month-13","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:feb-30","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:leap-2024-valid","calls":[{"binds":["app.certified.actor.profile","test","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"142fb30cf8"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:feb-29-2100","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:leap-2000-valid","calls":[{"binds":["app.certified.actor.profile","test","2000-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"142fb30cf8"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:second-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:hour-24","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:zone-minus-00-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:zone-plus-24-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:zone-minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:zone-plus-05-30-valid","calls":[{"binds":["app.certified.actor.profile","test","2025-01-01T00:00:00+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"142fb30cf8"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:fraction-valid","calls":[{"binds":["app.certified.actor.profile","test","2025-01-01T00:00:00.123456Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"142fb30cf8"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:fraction-offset-valid","calls":[{"binds":["app.certified.actor.profile","test","2025-01-01T00:00:00.5+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"142fb30cf8"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:no-zone","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:day-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:fraction-empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:fraction-empty-offset","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:month-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:lowercase-z","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:lowercase-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:zone-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:fraction-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:year-0001-valid","calls":[{"binds":["app.certified.actor.profile","test","0001-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"142fb30cf8"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:year-5-digit","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:end-of-year-valid","calls":[{"binds":["app.certified.actor.profile","test","2025-12-31T23:59:59Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"142fb30cf8"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:zone-plus-15-59","calls":[{"binds":["app.certified.actor.profile","test","2025-01-01T00:00:00+15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"142fb30cf8"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:zone-minus-15-59","calls":[{"binds":["app.certified.actor.profile","test","2025-01-01T00:00:00-15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"142fb30cf8"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:zone-plus-16-00","calls":[{"binds":["app.certified.actor.profile","test","2025-01-01T00:00:00+16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"142fb30cf8"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:zone-minus-16-00","calls":[{"binds":["app.certified.actor.profile","test","2025-01-01T00:00:00-16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"142fb30cf8"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:zone-plus-23-59-lua-accepted","calls":[{"binds":["app.certified.actor.profile","test","2025-01-01T00:00:00+23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"142fb30cf8"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:zone-minus-23-59-lua-accepted","calls":[{"binds":["app.certified.actor.profile","test","2025-01-01T00:00:00-23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"142fb30cf8"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:feb-29-2026","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:feb-29-2200","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:day-2025-01-31-valid","calls":[{"binds":["app.certified.actor.profile","test","2025-01-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"142fb30cf8"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:day-2025-01-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:day-2025-02-28-valid","calls":[{"binds":["app.certified.actor.profile","test","2025-02-28T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"142fb30cf8"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:day-2025-02-29-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:day-2025-03-31-valid","calls":[{"binds":["app.certified.actor.profile","test","2025-03-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"142fb30cf8"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:day-2025-03-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:day-2025-04-30-valid","calls":[{"binds":["app.certified.actor.profile","test","2025-04-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"142fb30cf8"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:day-2025-04-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:day-2025-05-31-valid","calls":[{"binds":["app.certified.actor.profile","test","2025-05-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"142fb30cf8"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:day-2025-05-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:day-2025-06-30-valid","calls":[{"binds":["app.certified.actor.profile","test","2025-06-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"142fb30cf8"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:day-2025-06-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:day-2025-07-31-valid","calls":[{"binds":["app.certified.actor.profile","test","2025-07-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"142fb30cf8"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:day-2025-07-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:day-2025-08-31-valid","calls":[{"binds":["app.certified.actor.profile","test","2025-08-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"142fb30cf8"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:day-2025-08-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:day-2025-09-30-valid","calls":[{"binds":["app.certified.actor.profile","test","2025-09-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"142fb30cf8"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:day-2025-09-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:day-2025-10-31-valid","calls":[{"binds":["app.certified.actor.profile","test","2025-10-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"142fb30cf8"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:day-2025-10-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:day-2025-11-30-valid","calls":[{"binds":["app.certified.actor.profile","test","2025-11-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"142fb30cf8"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:day-2025-11-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:day-2025-12-31-valid","calls":[{"binds":["app.certified.actor.profile","test","2025-12-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"142fb30cf8"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:day-2025-12-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:day-2024-02-29-valid","calls":[{"binds":["app.certified.actor.profile","test","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.actor.profile/self",26],"sql":"142fb30cf8"}],"outcome":{"result":{"profiles":[]}}} +{"endpoint":"app.certified.actor.searchProfiles","case":"datetime:cursor-t:day-2024-02-30-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"error:cursor:wrong-v","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"error:cursor:wrong-collection","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"error:cursor:missing-u","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"error:cursor:u-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"error:cursor:extra-key","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"error:cursor:wrong-rkey","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"error:cursor:wrong-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"error:cursor:opposite-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"error:cursor:bad-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"error:cursor:t-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.actor.searchProfiles","case":"error:cursor:missing-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"default","calls":[{"binds":["app.certified.badge.award",26],"sql":"eb4293ef0a"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"limit=1","calls":[{"binds":["app.certified.badge.award",2],"sql":"eb4293ef0a"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"limit=7","calls":[{"binds":["app.certified.badge.award",8],"sql":"eb4293ef0a"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"limit=99","calls":[{"binds":["app.certified.badge.award",100],"sql":"eb4293ef0a"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"limit=100","calls":[{"binds":["app.certified.badge.award",101],"sql":"eb4293ef0a"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"limit=0","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"limit=101","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"cursor:malformed","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"sort=desc","calls":[{"binds":["app.certified.badge.award",26],"sql":"eb4293ef0a"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"paged:desc","calls":[{"binds":["app.certified.badge.award",3],"sql":"eb4293ef0a"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"badgeAwards":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwz","organization":null,"profile":null},"badge":null,"cid":"bafyfixture2","did":"did:plc:abcdefghijklmnopqrstuvwz","indexedAt":"2025-01-03T00:00:00Z","recipientResponse":null,"record":{"$type":"app.certified.badge.award","createdAt":"2025-01-03T00:00:00Z"},"responseStatus":"unanswered","uri":"at://did:plc:abcdefghijklmnopqrstuvwz/app.certified.badge.award/3kabcdefghijc"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"badge":null,"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","recipientResponse":null,"record":{"$type":"app.certified.badge.award","createdAt":"2025-01-02T00:00:00Z"},"responseStatus":"unanswered","uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.badge.award/3kabcdefghijb"}],"cursor":"7b2264223a2264657363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e62616467652e61776172642f336b6162636465666768696a62222c2276223a317d"}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"cursor:valid:desc","calls":[{"binds":["app.certified.badge.award","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijk",26],"sql":"5c69857418"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"cursor:valid+limit=7:desc","calls":[{"binds":["app.certified.badge.award","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijk",8],"sql":"5c69857418"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"year0000:cursor:desc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"sort=asc","calls":[{"binds":["app.certified.badge.award",26],"sql":"70f00b7198"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"paged:asc","calls":[{"binds":["app.certified.badge.award",3],"sql":"70f00b7198"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"badgeAwards":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwx","organization":null,"profile":null},"badge":null,"cid":"bafyfixture0","did":"did:plc:abcdefghijklmnopqrstuvwx","indexedAt":"2025-01-01T00:00:00Z","recipientResponse":null,"record":{"$type":"app.certified.badge.award","createdAt":"2025-01-01T00:00:00Z"},"responseStatus":"unanswered","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghija"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"badge":null,"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","recipientResponse":null,"record":{"$type":"app.certified.badge.award","createdAt":"2025-01-02T00:00:00Z"},"responseStatus":"unanswered","uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.badge.award/3kabcdefghijb"}],"cursor":"7b2264223a22617363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e62616467652e61776172642f336b6162636465666768696a62222c2276223a317d"}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"cursor:valid:asc","calls":[{"binds":["app.certified.badge.award","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijk",26],"sql":"6d1dd77a51"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"cursor:valid+limit=7:asc","calls":[{"binds":["app.certified.badge.award","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijk",8],"sql":"6d1dd77a51"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"year0000:cursor:asc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"paged:includeTotal","calls":[{"binds":["app.certified.badge.award",3],"sql":"3dfa9c7309"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"badgeAwards":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwz","organization":null,"profile":null},"badge":null,"cid":"bafyfixture2","did":"did:plc:abcdefghijklmnopqrstuvwz","indexedAt":"2025-01-03T00:00:00Z","recipientResponse":null,"record":{"$type":"app.certified.badge.award","createdAt":"2025-01-03T00:00:00Z"},"responseStatus":"unanswered","uri":"at://did:plc:abcdefghijklmnopqrstuvwz/app.certified.badge.award/3kabcdefghijc"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"badge":null,"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","recipientResponse":null,"record":{"$type":"app.certified.badge.award","createdAt":"2025-01-02T00:00:00Z"},"responseStatus":"unanswered","uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.badge.award/3kabcdefghijb"}],"cursor":"7b2264223a2264657363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e62616467652e61776172642f336b6162636465666768696a62222c2276223a317d","totalCount":12}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"filter:authors:many","calls":[{"binds":["app.certified.badge.award","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwz",26],"sql":"b64d798d72"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"filter:authors:one","calls":[{"binds":["app.certified.badge.award","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"03c5ffce2b"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"filter:authors:one-scalar","calls":[{"binds":["app.certified.badge.award","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"03c5ffce2b"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"filter:authors:duplicate","calls":[{"binds":["app.certified.badge.award","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"03c5ffce2b"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"filter:authors:empty","calls":[{"binds":["app.certified.badge.award",26],"sql":"b54d166028"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"filter:badgeUris:many","calls":[{"binds":["app.certified.badge.award","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghija","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijb","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijc",26],"sql":"dd9ca50998"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"filter:badgeUris:one","calls":[{"binds":["app.certified.badge.award","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghija",26],"sql":"792870ea3b"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"filter:badgeUris:one-scalar","calls":[{"binds":["app.certified.badge.award","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghija",26],"sql":"792870ea3b"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"filter:badgeUris:duplicate","calls":[{"binds":["app.certified.badge.award","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghija",26],"sql":"792870ea3b"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"filter:badgeUris:empty","calls":[{"binds":["app.certified.badge.award",26],"sql":"b54d166028"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"filter:badgeTypes:many","calls":[{"binds":["app.certified.badge.award","volunteer","contributor","steward",26],"sql":"de8e448a07"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"filter:badgeTypes:one","calls":[{"binds":["app.certified.badge.award","volunteer",26],"sql":"49f2ff18af"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"filter:badgeTypes:one-scalar","calls":[{"binds":["app.certified.badge.award","volunteer",26],"sql":"49f2ff18af"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"filter:badgeTypes:duplicate","calls":[{"binds":["app.certified.badge.award","volunteer",26],"sql":"49f2ff18af"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"filter:badgeTypes:empty","calls":[{"binds":["app.certified.badge.award",26],"sql":"b54d166028"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"filter:subjects:many","calls":[{"binds":["app.certified.badge.award","did:plc:abcdefghijklmnopqrstuvwy","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijc",26],"sql":"ec5769b06c"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"filter:subjects:one","calls":[{"binds":["app.certified.badge.award","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija",26],"sql":"07a40fe161"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"filter:subjects:one-scalar","calls":[{"binds":["app.certified.badge.award","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija",26],"sql":"07a40fe161"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"filter:subjects:duplicate","calls":[{"binds":["app.certified.badge.award","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija",26],"sql":"07a40fe161"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"filter:subjects:empty","calls":[{"binds":["app.certified.badge.award",26],"sql":"b54d166028"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"filter:subjects:mixed-many","calls":[{"binds":["app.certified.badge.award","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijb",26],"sql":"78c6a3f3ba"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"filter:responses:many","calls":[{"binds":["app.certified.badge.award","accepted","rejected","unanswered",26],"sql":"36e6f96de2"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"filter:responses:one","calls":[{"binds":["app.certified.badge.award","accepted",26],"sql":"fac78ac0ee"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"filter:responses:one-scalar","calls":[{"binds":["app.certified.badge.award","accepted",26],"sql":"fac78ac0ee"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"filter:responses:duplicate","calls":[{"binds":["app.certified.badge.award","accepted",26],"sql":"fac78ac0ee"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"filter:responses:empty","calls":[{"binds":["app.certified.badge.award",26],"sql":"b54d166028"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"filter:includeTotal=boolean:true","calls":[{"binds":["app.certified.badge.award",26],"sql":"3dfa9c7309"}],"outcome":{"result":{"badgeAwards":[],"totalCount":0}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"filter:includeTotal=boolean:false","calls":[{"binds":["app.certified.badge.award",26],"sql":"eb4293ef0a"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"filter:includeTotal=string:true","calls":[{"binds":["app.certified.badge.award",26],"sql":"3dfa9c7309"}],"outcome":{"result":{"badgeAwards":[],"totalCount":0}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"filter:includeTotal=string:false","calls":[{"binds":["app.certified.badge.award",26],"sql":"eb4293ef0a"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"filter:all","calls":[{"binds":["app.certified.badge.award","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijb","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijc","did:plc:abcdefghijklmnopqrstuvwy","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijc","volunteer","contributor","accepted","rejected",26],"sql":"39b32463ae"}],"outcome":{"result":{"badgeAwards":[],"totalCount":0}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"error:sortDirection=bad","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"error:sortDirection=ASC","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"error:sortDirection=empty","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"error:limit=abc","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"error:limit=1.5","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"error:limit=-1","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"error:limit=0-string","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"error:limit=7-string","calls":[{"binds":["app.certified.badge.award",8],"sql":"eb4293ef0a"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"error:limit=empty","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"error:limit=array","calls":[],"outcome":{"error":"InvalidRequest: limit must occur once"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"error:sortDirection=array","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must occur once"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"error:cursor:non-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"error:cursor:empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"error:cursor:hex-non-json","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"error:cursor:array","calls":[],"outcome":{"error":"InvalidRequest: cursor must occur once"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"error:cursor:uppercase-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"cursor:length-at-cap","calls":[{"binds":["app.certified.badge.award","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijk",26],"sql":"5c69857418"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"cursor:length-below-cap","calls":[{"binds":["app.certified.badge.award","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijk",26],"sql":"5c69857418"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"cursor:length-above-cap","calls":[{"binds":["app.certified.badge.award","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijk",26],"sql":"5c69857418"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:month-13","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:feb-30","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:leap-2024-valid","calls":[{"binds":["app.certified.badge.award","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijk",26],"sql":"5c69857418"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:feb-29-2100","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:leap-2000-valid","calls":[{"binds":["app.certified.badge.award","2000-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijk",26],"sql":"5c69857418"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:second-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:hour-24","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:zone-minus-00-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:zone-plus-24-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:zone-minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:zone-plus-05-30-valid","calls":[{"binds":["app.certified.badge.award","2025-01-01T00:00:00+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijk",26],"sql":"5c69857418"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:fraction-valid","calls":[{"binds":["app.certified.badge.award","2025-01-01T00:00:00.123456Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijk",26],"sql":"5c69857418"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:fraction-offset-valid","calls":[{"binds":["app.certified.badge.award","2025-01-01T00:00:00.5+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijk",26],"sql":"5c69857418"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:no-zone","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:day-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:fraction-empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:fraction-empty-offset","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:month-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:lowercase-z","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:lowercase-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:zone-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:fraction-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:year-0001-valid","calls":[{"binds":["app.certified.badge.award","0001-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijk",26],"sql":"5c69857418"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:year-5-digit","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:end-of-year-valid","calls":[{"binds":["app.certified.badge.award","2025-12-31T23:59:59Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijk",26],"sql":"5c69857418"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:zone-plus-15-59","calls":[{"binds":["app.certified.badge.award","2025-01-01T00:00:00+15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijk",26],"sql":"5c69857418"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:zone-minus-15-59","calls":[{"binds":["app.certified.badge.award","2025-01-01T00:00:00-15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijk",26],"sql":"5c69857418"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:zone-plus-16-00","calls":[{"binds":["app.certified.badge.award","2025-01-01T00:00:00+16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijk",26],"sql":"5c69857418"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:zone-minus-16-00","calls":[{"binds":["app.certified.badge.award","2025-01-01T00:00:00-16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijk",26],"sql":"5c69857418"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:zone-plus-23-59-lua-accepted","calls":[{"binds":["app.certified.badge.award","2025-01-01T00:00:00+23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijk",26],"sql":"5c69857418"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:zone-minus-23-59-lua-accepted","calls":[{"binds":["app.certified.badge.award","2025-01-01T00:00:00-23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijk",26],"sql":"5c69857418"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:feb-29-2026","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:feb-29-2200","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:day-2025-01-31-valid","calls":[{"binds":["app.certified.badge.award","2025-01-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijk",26],"sql":"5c69857418"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:day-2025-01-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:day-2025-02-28-valid","calls":[{"binds":["app.certified.badge.award","2025-02-28T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijk",26],"sql":"5c69857418"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:day-2025-02-29-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:day-2025-03-31-valid","calls":[{"binds":["app.certified.badge.award","2025-03-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijk",26],"sql":"5c69857418"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:day-2025-03-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:day-2025-04-30-valid","calls":[{"binds":["app.certified.badge.award","2025-04-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijk",26],"sql":"5c69857418"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:day-2025-04-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:day-2025-05-31-valid","calls":[{"binds":["app.certified.badge.award","2025-05-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijk",26],"sql":"5c69857418"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:day-2025-05-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:day-2025-06-30-valid","calls":[{"binds":["app.certified.badge.award","2025-06-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijk",26],"sql":"5c69857418"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:day-2025-06-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:day-2025-07-31-valid","calls":[{"binds":["app.certified.badge.award","2025-07-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijk",26],"sql":"5c69857418"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:day-2025-07-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:day-2025-08-31-valid","calls":[{"binds":["app.certified.badge.award","2025-08-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijk",26],"sql":"5c69857418"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:day-2025-08-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:day-2025-09-30-valid","calls":[{"binds":["app.certified.badge.award","2025-09-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijk",26],"sql":"5c69857418"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:day-2025-09-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:day-2025-10-31-valid","calls":[{"binds":["app.certified.badge.award","2025-10-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijk",26],"sql":"5c69857418"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:day-2025-10-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:day-2025-11-30-valid","calls":[{"binds":["app.certified.badge.award","2025-11-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijk",26],"sql":"5c69857418"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:day-2025-11-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:day-2025-12-31-valid","calls":[{"binds":["app.certified.badge.award","2025-12-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijk",26],"sql":"5c69857418"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:day-2025-12-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:day-2024-02-29-valid","calls":[{"binds":["app.certified.badge.award","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijk",26],"sql":"5c69857418"}],"outcome":{"result":{"badgeAwards":[]}}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"datetime:cursor-t:day-2024-02-30-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"error:cursor:wrong-v","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"error:cursor:wrong-collection","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"error:cursor:missing-u","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"error:cursor:u-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"error:cursor:extra-key","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"error:cursor:wrong-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"error:cursor:opposite-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"error:cursor:bad-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"error:cursor:t-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.badge.listBadgeAwards","case":"error:cursor:missing-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"default","calls":[{"binds":["app.certified.badge.definition",26],"sql":"fdd374e87e"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"limit=1","calls":[{"binds":["app.certified.badge.definition",2],"sql":"fdd374e87e"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"limit=7","calls":[{"binds":["app.certified.badge.definition",8],"sql":"fdd374e87e"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"limit=99","calls":[{"binds":["app.certified.badge.definition",100],"sql":"fdd374e87e"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"limit=100","calls":[{"binds":["app.certified.badge.definition",101],"sql":"fdd374e87e"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"limit=0","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"limit=101","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"cursor:malformed","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"sort=desc","calls":[{"binds":["app.certified.badge.definition",26],"sql":"fdd374e87e"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"paged:desc","calls":[{"binds":["app.certified.badge.definition",3],"sql":"fdd374e87e"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"badgeDefinitions":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwz","organization":null,"profile":null},"cid":"bafyfixture2","did":"did:plc:abcdefghijklmnopqrstuvwz","indexedAt":"2025-01-03T00:00:00Z","record":{"$type":"app.certified.badge.definition","createdAt":"2025-01-03T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwz/app.certified.badge.definition/3kabcdefghijc"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"app.certified.badge.definition","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.badge.definition/3kabcdefghijb"}],"cursor":"7b2264223a2264657363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e62616467652e646566696e6974696f6e2f336b6162636465666768696a62222c2276223a317d"}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"cursor:valid:desc","calls":[{"binds":["app.certified.badge.definition","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"cursor:valid+limit=7:desc","calls":[{"binds":["app.certified.badge.definition","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",8],"sql":"2712d7dd78"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"year0000:cursor:desc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"sort=asc","calls":[{"binds":["app.certified.badge.definition",26],"sql":"fbade26882"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"paged:asc","calls":[{"binds":["app.certified.badge.definition",3],"sql":"fbade26882"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"badgeDefinitions":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwx","organization":null,"profile":null},"cid":"bafyfixture0","did":"did:plc:abcdefghijklmnopqrstuvwx","indexedAt":"2025-01-01T00:00:00Z","record":{"$type":"app.certified.badge.definition","createdAt":"2025-01-01T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghija"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"app.certified.badge.definition","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.badge.definition/3kabcdefghijb"}],"cursor":"7b2264223a22617363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e62616467652e646566696e6974696f6e2f336b6162636465666768696a62222c2276223a317d"}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"cursor:valid:asc","calls":[{"binds":["app.certified.badge.definition","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"f415ca0b71"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"cursor:valid+limit=7:asc","calls":[{"binds":["app.certified.badge.definition","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",8],"sql":"f415ca0b71"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"year0000:cursor:asc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"filter:authors:many","calls":[{"binds":["app.certified.badge.definition","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwz",26],"sql":"056193581d"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"filter:authors:one","calls":[{"binds":["app.certified.badge.definition","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"cf715d2ab7"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"filter:authors:one-scalar","calls":[{"binds":["app.certified.badge.definition","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"cf715d2ab7"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"filter:authors:duplicate","calls":[{"binds":["app.certified.badge.definition","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"cf715d2ab7"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"filter:authors:empty","calls":[{"binds":["app.certified.badge.definition",26],"sql":"089df365a0"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"filter:badgeTypes:many","calls":[{"binds":["app.certified.badge.definition","volunteer","contributor","steward",26],"sql":"55bc2f4a15"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"filter:badgeTypes:one","calls":[{"binds":["app.certified.badge.definition","volunteer",26],"sql":"887630231f"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"filter:badgeTypes:one-scalar","calls":[{"binds":["app.certified.badge.definition","volunteer",26],"sql":"887630231f"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"filter:badgeTypes:duplicate","calls":[{"binds":["app.certified.badge.definition","volunteer",26],"sql":"887630231f"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"filter:badgeTypes:empty","calls":[{"binds":["app.certified.badge.definition",26],"sql":"089df365a0"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"filter:all","calls":[{"binds":["app.certified.badge.definition","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","contributor","steward",26],"sql":"39e951d2e6"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"error:sortDirection=bad","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"error:sortDirection=ASC","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"error:sortDirection=empty","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"error:limit=abc","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"error:limit=1.5","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"error:limit=-1","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"error:limit=0-string","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"error:limit=7-string","calls":[{"binds":["app.certified.badge.definition",8],"sql":"fdd374e87e"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"error:limit=empty","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"error:limit=array","calls":[],"outcome":{"error":"InvalidRequest: limit must occur once"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"error:sortDirection=array","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must occur once"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"error:cursor:non-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"error:cursor:empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"error:cursor:hex-non-json","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"error:cursor:array","calls":[],"outcome":{"error":"InvalidRequest: cursor must occur once"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"error:cursor:uppercase-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"cursor:length-at-cap","calls":[{"binds":["app.certified.badge.definition","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"cursor:length-below-cap","calls":[{"binds":["app.certified.badge.definition","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"cursor:length-above-cap","calls":[{"binds":["app.certified.badge.definition","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:month-13","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:feb-30","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:leap-2024-valid","calls":[{"binds":["app.certified.badge.definition","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:feb-29-2100","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:leap-2000-valid","calls":[{"binds":["app.certified.badge.definition","2000-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:second-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:hour-24","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:zone-minus-00-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:zone-plus-24-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:zone-minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:zone-plus-05-30-valid","calls":[{"binds":["app.certified.badge.definition","2025-01-01T00:00:00+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:fraction-valid","calls":[{"binds":["app.certified.badge.definition","2025-01-01T00:00:00.123456Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:fraction-offset-valid","calls":[{"binds":["app.certified.badge.definition","2025-01-01T00:00:00.5+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:no-zone","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:day-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:fraction-empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:fraction-empty-offset","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:month-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:lowercase-z","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:lowercase-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:zone-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:fraction-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:year-0001-valid","calls":[{"binds":["app.certified.badge.definition","0001-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:year-5-digit","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:end-of-year-valid","calls":[{"binds":["app.certified.badge.definition","2025-12-31T23:59:59Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:zone-plus-15-59","calls":[{"binds":["app.certified.badge.definition","2025-01-01T00:00:00+15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:zone-minus-15-59","calls":[{"binds":["app.certified.badge.definition","2025-01-01T00:00:00-15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:zone-plus-16-00","calls":[{"binds":["app.certified.badge.definition","2025-01-01T00:00:00+16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:zone-minus-16-00","calls":[{"binds":["app.certified.badge.definition","2025-01-01T00:00:00-16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:zone-plus-23-59-lua-accepted","calls":[{"binds":["app.certified.badge.definition","2025-01-01T00:00:00+23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:zone-minus-23-59-lua-accepted","calls":[{"binds":["app.certified.badge.definition","2025-01-01T00:00:00-23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:feb-29-2026","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:feb-29-2200","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:day-2025-01-31-valid","calls":[{"binds":["app.certified.badge.definition","2025-01-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:day-2025-01-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:day-2025-02-28-valid","calls":[{"binds":["app.certified.badge.definition","2025-02-28T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:day-2025-02-29-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:day-2025-03-31-valid","calls":[{"binds":["app.certified.badge.definition","2025-03-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:day-2025-03-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:day-2025-04-30-valid","calls":[{"binds":["app.certified.badge.definition","2025-04-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:day-2025-04-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:day-2025-05-31-valid","calls":[{"binds":["app.certified.badge.definition","2025-05-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:day-2025-05-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:day-2025-06-30-valid","calls":[{"binds":["app.certified.badge.definition","2025-06-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:day-2025-06-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:day-2025-07-31-valid","calls":[{"binds":["app.certified.badge.definition","2025-07-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:day-2025-07-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:day-2025-08-31-valid","calls":[{"binds":["app.certified.badge.definition","2025-08-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:day-2025-08-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:day-2025-09-30-valid","calls":[{"binds":["app.certified.badge.definition","2025-09-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:day-2025-09-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:day-2025-10-31-valid","calls":[{"binds":["app.certified.badge.definition","2025-10-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:day-2025-10-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:day-2025-11-30-valid","calls":[{"binds":["app.certified.badge.definition","2025-11-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:day-2025-11-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:day-2025-12-31-valid","calls":[{"binds":["app.certified.badge.definition","2025-12-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:day-2025-12-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:day-2024-02-29-valid","calls":[{"binds":["app.certified.badge.definition","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"datetime:cursor-t:day-2024-02-30-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"error:cursor:wrong-v","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"error:cursor:wrong-collection","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"error:cursor:missing-u","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"error:cursor:u-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"error:cursor:extra-key","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"error:cursor:wrong-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"error:cursor:opposite-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"error:cursor:bad-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"error:cursor:t-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.badge.listBadgeDefinitions","case":"error:cursor:missing-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"default","calls":[{"binds":["app.certified.badge.response",26],"sql":"c165186104"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"limit=1","calls":[{"binds":["app.certified.badge.response",2],"sql":"c165186104"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"limit=7","calls":[{"binds":["app.certified.badge.response",8],"sql":"c165186104"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"limit=99","calls":[{"binds":["app.certified.badge.response",100],"sql":"c165186104"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"limit=100","calls":[{"binds":["app.certified.badge.response",101],"sql":"c165186104"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"limit=0","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"limit=101","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"cursor:malformed","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"sort=desc","calls":[{"binds":["app.certified.badge.response",26],"sql":"c165186104"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"paged:desc","calls":[{"binds":["app.certified.badge.response",3],"sql":"c165186104"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"badgeResponses":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwz","organization":null,"profile":null},"cid":"bafyfixture2","did":"did:plc:abcdefghijklmnopqrstuvwz","indexedAt":"2025-01-03T00:00:00Z","record":{"$type":"app.certified.badge.response","createdAt":"2025-01-03T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwz/app.certified.badge.response/3kabcdefghijc"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"app.certified.badge.response","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.badge.response/3kabcdefghijb"}],"cursor":"7b2264223a2264657363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e62616467652e726573706f6e73652f336b6162636465666768696a62222c2276223a317d"}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"cursor:valid:desc","calls":[{"binds":["app.certified.badge.response","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.response/3kabcdefghijk",26],"sql":"bf4fe3b608"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"cursor:valid+limit=7:desc","calls":[{"binds":["app.certified.badge.response","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.response/3kabcdefghijk",8],"sql":"bf4fe3b608"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"year0000:cursor:desc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"sort=asc","calls":[{"binds":["app.certified.badge.response",26],"sql":"b2723dc542"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"paged:asc","calls":[{"binds":["app.certified.badge.response",3],"sql":"b2723dc542"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"badgeResponses":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwx","organization":null,"profile":null},"cid":"bafyfixture0","did":"did:plc:abcdefghijklmnopqrstuvwx","indexedAt":"2025-01-01T00:00:00Z","record":{"$type":"app.certified.badge.response","createdAt":"2025-01-01T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.response/3kabcdefghija"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"app.certified.badge.response","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.badge.response/3kabcdefghijb"}],"cursor":"7b2264223a22617363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e62616467652e726573706f6e73652f336b6162636465666768696a62222c2276223a317d"}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"cursor:valid:asc","calls":[{"binds":["app.certified.badge.response","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.response/3kabcdefghijk",26],"sql":"22bccf85c3"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"cursor:valid+limit=7:asc","calls":[{"binds":["app.certified.badge.response","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.response/3kabcdefghijk",8],"sql":"22bccf85c3"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"year0000:cursor:asc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"filter:badgeAward=at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghija","calls":[{"binds":["app.certified.badge.response","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghija",26],"sql":"dd9a4311b1"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"filter:badgeAward=at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijb","calls":[{"binds":["app.certified.badge.response","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijb",26],"sql":"dd9a4311b1"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"filter:badgeAward=at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijc","calls":[{"binds":["app.certified.badge.response","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.award/3kabcdefghijc",26],"sql":"dd9a4311b1"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"error:sortDirection=bad","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"error:sortDirection=ASC","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"error:sortDirection=empty","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"error:limit=abc","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"error:limit=1.5","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"error:limit=-1","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"error:limit=0-string","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"error:limit=7-string","calls":[{"binds":["app.certified.badge.response",8],"sql":"c165186104"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"error:limit=empty","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"error:limit=array","calls":[],"outcome":{"error":"InvalidRequest: limit must occur once"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"error:sortDirection=array","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must occur once"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"error:cursor:non-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"error:cursor:empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"error:cursor:hex-non-json","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"error:cursor:array","calls":[],"outcome":{"error":"InvalidRequest: cursor must occur once"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"error:cursor:uppercase-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"cursor:length-at-cap","calls":[{"binds":["app.certified.badge.response","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.response/3kabcdefghijk",26],"sql":"bf4fe3b608"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"cursor:length-below-cap","calls":[{"binds":["app.certified.badge.response","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.response/3kabcdefghijk",26],"sql":"bf4fe3b608"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"cursor:length-above-cap","calls":[{"binds":["app.certified.badge.response","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.response/3kabcdefghijk",26],"sql":"bf4fe3b608"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:month-13","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:feb-30","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:leap-2024-valid","calls":[{"binds":["app.certified.badge.response","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.response/3kabcdefghijk",26],"sql":"bf4fe3b608"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:feb-29-2100","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:leap-2000-valid","calls":[{"binds":["app.certified.badge.response","2000-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.response/3kabcdefghijk",26],"sql":"bf4fe3b608"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:second-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:hour-24","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:zone-minus-00-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:zone-plus-24-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:zone-minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:zone-plus-05-30-valid","calls":[{"binds":["app.certified.badge.response","2025-01-01T00:00:00+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.response/3kabcdefghijk",26],"sql":"bf4fe3b608"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:fraction-valid","calls":[{"binds":["app.certified.badge.response","2025-01-01T00:00:00.123456Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.response/3kabcdefghijk",26],"sql":"bf4fe3b608"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:fraction-offset-valid","calls":[{"binds":["app.certified.badge.response","2025-01-01T00:00:00.5+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.response/3kabcdefghijk",26],"sql":"bf4fe3b608"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:no-zone","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:day-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:fraction-empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:fraction-empty-offset","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:month-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:lowercase-z","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:lowercase-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:zone-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:fraction-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:year-0001-valid","calls":[{"binds":["app.certified.badge.response","0001-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.response/3kabcdefghijk",26],"sql":"bf4fe3b608"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:year-5-digit","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:end-of-year-valid","calls":[{"binds":["app.certified.badge.response","2025-12-31T23:59:59Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.response/3kabcdefghijk",26],"sql":"bf4fe3b608"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:zone-plus-15-59","calls":[{"binds":["app.certified.badge.response","2025-01-01T00:00:00+15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.response/3kabcdefghijk",26],"sql":"bf4fe3b608"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:zone-minus-15-59","calls":[{"binds":["app.certified.badge.response","2025-01-01T00:00:00-15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.response/3kabcdefghijk",26],"sql":"bf4fe3b608"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:zone-plus-16-00","calls":[{"binds":["app.certified.badge.response","2025-01-01T00:00:00+16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.response/3kabcdefghijk",26],"sql":"bf4fe3b608"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:zone-minus-16-00","calls":[{"binds":["app.certified.badge.response","2025-01-01T00:00:00-16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.response/3kabcdefghijk",26],"sql":"bf4fe3b608"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:zone-plus-23-59-lua-accepted","calls":[{"binds":["app.certified.badge.response","2025-01-01T00:00:00+23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.response/3kabcdefghijk",26],"sql":"bf4fe3b608"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:zone-minus-23-59-lua-accepted","calls":[{"binds":["app.certified.badge.response","2025-01-01T00:00:00-23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.response/3kabcdefghijk",26],"sql":"bf4fe3b608"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:feb-29-2026","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:feb-29-2200","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:day-2025-01-31-valid","calls":[{"binds":["app.certified.badge.response","2025-01-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.response/3kabcdefghijk",26],"sql":"bf4fe3b608"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:day-2025-01-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:day-2025-02-28-valid","calls":[{"binds":["app.certified.badge.response","2025-02-28T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.response/3kabcdefghijk",26],"sql":"bf4fe3b608"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:day-2025-02-29-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:day-2025-03-31-valid","calls":[{"binds":["app.certified.badge.response","2025-03-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.response/3kabcdefghijk",26],"sql":"bf4fe3b608"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:day-2025-03-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:day-2025-04-30-valid","calls":[{"binds":["app.certified.badge.response","2025-04-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.response/3kabcdefghijk",26],"sql":"bf4fe3b608"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:day-2025-04-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:day-2025-05-31-valid","calls":[{"binds":["app.certified.badge.response","2025-05-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.response/3kabcdefghijk",26],"sql":"bf4fe3b608"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:day-2025-05-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:day-2025-06-30-valid","calls":[{"binds":["app.certified.badge.response","2025-06-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.response/3kabcdefghijk",26],"sql":"bf4fe3b608"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:day-2025-06-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:day-2025-07-31-valid","calls":[{"binds":["app.certified.badge.response","2025-07-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.response/3kabcdefghijk",26],"sql":"bf4fe3b608"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:day-2025-07-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:day-2025-08-31-valid","calls":[{"binds":["app.certified.badge.response","2025-08-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.response/3kabcdefghijk",26],"sql":"bf4fe3b608"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:day-2025-08-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:day-2025-09-30-valid","calls":[{"binds":["app.certified.badge.response","2025-09-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.response/3kabcdefghijk",26],"sql":"bf4fe3b608"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:day-2025-09-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:day-2025-10-31-valid","calls":[{"binds":["app.certified.badge.response","2025-10-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.response/3kabcdefghijk",26],"sql":"bf4fe3b608"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:day-2025-10-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:day-2025-11-30-valid","calls":[{"binds":["app.certified.badge.response","2025-11-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.response/3kabcdefghijk",26],"sql":"bf4fe3b608"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:day-2025-11-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:day-2025-12-31-valid","calls":[{"binds":["app.certified.badge.response","2025-12-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.response/3kabcdefghijk",26],"sql":"bf4fe3b608"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:day-2025-12-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:day-2024-02-29-valid","calls":[{"binds":["app.certified.badge.response","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.response/3kabcdefghijk",26],"sql":"bf4fe3b608"}],"outcome":{"result":{"badgeResponses":[]}}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"datetime:cursor-t:day-2024-02-30-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"error:cursor:wrong-v","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"error:cursor:wrong-collection","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"error:cursor:missing-u","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"error:cursor:u-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"error:cursor:extra-key","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"error:cursor:wrong-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"error:cursor:opposite-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"error:cursor:bad-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"error:cursor:t-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.badge.listBadgeResponses","case":"error:cursor:missing-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"default","calls":[{"binds":["app.certified.badge.definition","test",26],"sql":"4ce821995f"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"limit=1","calls":[{"binds":["app.certified.badge.definition","test",2],"sql":"4ce821995f"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"limit=7","calls":[{"binds":["app.certified.badge.definition","test",8],"sql":"4ce821995f"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"limit=99","calls":[{"binds":["app.certified.badge.definition","test",100],"sql":"4ce821995f"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"limit=100","calls":[{"binds":["app.certified.badge.definition","test",101],"sql":"4ce821995f"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"limit=0","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"limit=101","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"cursor:malformed","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"sort=desc","calls":[{"binds":["app.certified.badge.definition","test",26],"sql":"4ce821995f"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"paged:desc","calls":[{"binds":["app.certified.badge.definition","test",3],"sql":"4ce821995f"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"badgeDefinitions":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwz","organization":null,"profile":null},"cid":"bafyfixture2","did":"did:plc:abcdefghijklmnopqrstuvwz","indexedAt":"2025-01-03T00:00:00Z","record":{"$type":"app.certified.badge.definition","createdAt":"2025-01-03T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwz/app.certified.badge.definition/3kabcdefghijc"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"app.certified.badge.definition","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.badge.definition/3kabcdefghijb"}],"cursor":"7b2264223a2264657363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e62616467652e646566696e6974696f6e2f336b6162636465666768696a62222c2276223a317d"}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"cursor:valid:desc","calls":[{"binds":["app.certified.badge.definition","test","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"9a5987f560"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"cursor:valid+limit=7:desc","calls":[{"binds":["app.certified.badge.definition","test","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",8],"sql":"9a5987f560"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"year0000:cursor:desc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"sort=asc","calls":[{"binds":["app.certified.badge.definition","test",26],"sql":"e010df8163"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"paged:asc","calls":[{"binds":["app.certified.badge.definition","test",3],"sql":"e010df8163"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"badgeDefinitions":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwx","organization":null,"profile":null},"cid":"bafyfixture0","did":"did:plc:abcdefghijklmnopqrstuvwx","indexedAt":"2025-01-01T00:00:00Z","record":{"$type":"app.certified.badge.definition","createdAt":"2025-01-01T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghija"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"app.certified.badge.definition","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.badge.definition/3kabcdefghijb"}],"cursor":"7b2264223a22617363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e62616467652e646566696e6974696f6e2f336b6162636465666768696a62222c2276223a317d"}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"cursor:valid:asc","calls":[{"binds":["app.certified.badge.definition","test","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"2bb21188b6"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"cursor:valid+limit=7:asc","calls":[{"binds":["app.certified.badge.definition","test","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",8],"sql":"2bb21188b6"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"year0000:cursor:asc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"filter:authors:many","calls":[{"binds":["app.certified.badge.definition","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwz","test",26],"sql":"e956f87416"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"filter:authors:one","calls":[{"binds":["app.certified.badge.definition","did:plc:abcdefghijklmnopqrstuvwx","test",26],"sql":"7705bb084a"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"filter:authors:one-scalar","calls":[{"binds":["app.certified.badge.definition","did:plc:abcdefghijklmnopqrstuvwx","test",26],"sql":"7705bb084a"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"filter:authors:duplicate","calls":[{"binds":["app.certified.badge.definition","did:plc:abcdefghijklmnopqrstuvwx","test",26],"sql":"7705bb084a"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"filter:authors:empty","calls":[{"binds":["app.certified.badge.definition","test",26],"sql":"bf198ae94a"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"filter:badgeTypes:many","calls":[{"binds":["app.certified.badge.definition","volunteer","contributor","steward","test",26],"sql":"04e237168d"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"filter:badgeTypes:one","calls":[{"binds":["app.certified.badge.definition","volunteer","test",26],"sql":"f144453bcf"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"filter:badgeTypes:one-scalar","calls":[{"binds":["app.certified.badge.definition","volunteer","test",26],"sql":"f144453bcf"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"filter:badgeTypes:duplicate","calls":[{"binds":["app.certified.badge.definition","volunteer","test",26],"sql":"f144453bcf"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"filter:badgeTypes:empty","calls":[{"binds":["app.certified.badge.definition","test",26],"sql":"bf198ae94a"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"filter:all","calls":[{"binds":["app.certified.badge.definition","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","contributor","steward","test",26],"sql":"8e6d1e6347"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"error:sortDirection=bad","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"error:sortDirection=ASC","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"error:sortDirection=empty","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"error:limit=abc","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"error:limit=1.5","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"error:limit=-1","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"error:limit=0-string","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"error:limit=7-string","calls":[{"binds":["app.certified.badge.definition","test",8],"sql":"4ce821995f"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"error:limit=empty","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"error:limit=array","calls":[],"outcome":{"error":"InvalidRequest: limit must occur once"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"error:sortDirection=array","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must occur once"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"error:cursor:non-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"error:cursor:empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"error:cursor:hex-non-json","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"error:cursor:array","calls":[],"outcome":{"error":"InvalidRequest: cursor must occur once"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"error:cursor:uppercase-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"cursor:length-at-cap","calls":[{"binds":["app.certified.badge.definition","test","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"9a5987f560"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"cursor:length-below-cap","calls":[{"binds":["app.certified.badge.definition","test","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"9a5987f560"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"cursor:length-above-cap","calls":[{"binds":["app.certified.badge.definition","test","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"9a5987f560"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:month-13","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:feb-30","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:leap-2024-valid","calls":[{"binds":["app.certified.badge.definition","test","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"9a5987f560"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:feb-29-2100","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:leap-2000-valid","calls":[{"binds":["app.certified.badge.definition","test","2000-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"9a5987f560"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:second-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:hour-24","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:zone-minus-00-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:zone-plus-24-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:zone-minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:zone-plus-05-30-valid","calls":[{"binds":["app.certified.badge.definition","test","2025-01-01T00:00:00+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"9a5987f560"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:fraction-valid","calls":[{"binds":["app.certified.badge.definition","test","2025-01-01T00:00:00.123456Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"9a5987f560"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:fraction-offset-valid","calls":[{"binds":["app.certified.badge.definition","test","2025-01-01T00:00:00.5+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"9a5987f560"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:no-zone","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:day-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:fraction-empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:fraction-empty-offset","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:month-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:lowercase-z","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:lowercase-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:zone-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:fraction-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:year-0001-valid","calls":[{"binds":["app.certified.badge.definition","test","0001-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"9a5987f560"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:year-5-digit","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:end-of-year-valid","calls":[{"binds":["app.certified.badge.definition","test","2025-12-31T23:59:59Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"9a5987f560"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:zone-plus-15-59","calls":[{"binds":["app.certified.badge.definition","test","2025-01-01T00:00:00+15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"9a5987f560"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:zone-minus-15-59","calls":[{"binds":["app.certified.badge.definition","test","2025-01-01T00:00:00-15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"9a5987f560"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:zone-plus-16-00","calls":[{"binds":["app.certified.badge.definition","test","2025-01-01T00:00:00+16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"9a5987f560"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:zone-minus-16-00","calls":[{"binds":["app.certified.badge.definition","test","2025-01-01T00:00:00-16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"9a5987f560"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:zone-plus-23-59-lua-accepted","calls":[{"binds":["app.certified.badge.definition","test","2025-01-01T00:00:00+23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"9a5987f560"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:zone-minus-23-59-lua-accepted","calls":[{"binds":["app.certified.badge.definition","test","2025-01-01T00:00:00-23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"9a5987f560"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:feb-29-2026","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:feb-29-2200","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:day-2025-01-31-valid","calls":[{"binds":["app.certified.badge.definition","test","2025-01-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"9a5987f560"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:day-2025-01-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:day-2025-02-28-valid","calls":[{"binds":["app.certified.badge.definition","test","2025-02-28T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"9a5987f560"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:day-2025-02-29-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:day-2025-03-31-valid","calls":[{"binds":["app.certified.badge.definition","test","2025-03-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"9a5987f560"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:day-2025-03-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:day-2025-04-30-valid","calls":[{"binds":["app.certified.badge.definition","test","2025-04-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"9a5987f560"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:day-2025-04-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:day-2025-05-31-valid","calls":[{"binds":["app.certified.badge.definition","test","2025-05-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"9a5987f560"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:day-2025-05-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:day-2025-06-30-valid","calls":[{"binds":["app.certified.badge.definition","test","2025-06-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"9a5987f560"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:day-2025-06-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:day-2025-07-31-valid","calls":[{"binds":["app.certified.badge.definition","test","2025-07-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"9a5987f560"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:day-2025-07-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:day-2025-08-31-valid","calls":[{"binds":["app.certified.badge.definition","test","2025-08-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"9a5987f560"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:day-2025-08-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:day-2025-09-30-valid","calls":[{"binds":["app.certified.badge.definition","test","2025-09-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"9a5987f560"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:day-2025-09-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:day-2025-10-31-valid","calls":[{"binds":["app.certified.badge.definition","test","2025-10-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"9a5987f560"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:day-2025-10-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:day-2025-11-30-valid","calls":[{"binds":["app.certified.badge.definition","test","2025-11-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"9a5987f560"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:day-2025-11-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:day-2025-12-31-valid","calls":[{"binds":["app.certified.badge.definition","test","2025-12-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"9a5987f560"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:day-2025-12-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:day-2024-02-29-valid","calls":[{"binds":["app.certified.badge.definition","test","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.badge.definition/3kabcdefghijk",26],"sql":"9a5987f560"}],"outcome":{"result":{"badgeDefinitions":[]}}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"datetime:cursor-t:day-2024-02-30-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"error:cursor:wrong-v","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"error:cursor:wrong-collection","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"error:cursor:missing-u","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"error:cursor:u-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"error:cursor:extra-key","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"error:cursor:sibling-collection","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"error:cursor:wrong-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"error:cursor:opposite-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"error:cursor:bad-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"error:cursor:t-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.badge.searchBadgeDefinitions","case":"error:cursor:missing-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"default","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"958119e969"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"limit=1","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx",2],"sql":"958119e969"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"limit=7","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx",8],"sql":"958119e969"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"limit=99","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx",100],"sql":"958119e969"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"limit=100","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx",101],"sql":"958119e969"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"limit=0","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"limit=101","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"cursor:malformed","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"sort=desc","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"958119e969"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"paged:desc","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx",3],"sql":"958119e969"}],"outcome":{"result":{"cursor":"7b2264223a2264657363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e666565642e6c696b652f336b6162636465666768696a62222c2276223a317d","likes":[{"cid":"bafyfixture2","did":"did:plc:abcdefghijklmnopqrstuvwz","indexedAt":"2025-01-03T00:00:00Z","record":{"$type":"app.certified.feed.like","createdAt":"2025-01-03T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwz/app.certified.feed.like/3kabcdefghijc"},{"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"app.certified.feed.like","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.feed.like/3kabcdefghijb"}]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"cursor:valid:desc","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"cursor:valid+limit=7:desc","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",8],"sql":"4cd8918f5f"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"year0000:cursor:desc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"sort=asc","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"50fae54f8e"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"paged:asc","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx",3],"sql":"50fae54f8e"}],"outcome":{"result":{"cursor":"7b2264223a22617363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e666565642e6c696b652f336b6162636465666768696a62222c2276223a317d","likes":[{"cid":"bafyfixture0","did":"did:plc:abcdefghijklmnopqrstuvwx","indexedAt":"2025-01-01T00:00:00Z","record":{"$type":"app.certified.feed.like","createdAt":"2025-01-01T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghija"},{"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"app.certified.feed.like","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.feed.like/3kabcdefghijb"}]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"cursor:valid:asc","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"060c0aac20"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"cursor:valid+limit=7:asc","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",8],"sql":"060c0aac20"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"year0000:cursor:asc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"error:sortDirection=bad","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"error:sortDirection=ASC","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"error:sortDirection=empty","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"error:limit=abc","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"error:limit=1.5","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"error:limit=-1","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"error:limit=0-string","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"error:limit=7-string","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx",8],"sql":"958119e969"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"error:limit=empty","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"error:limit=array","calls":[],"outcome":{"error":"InvalidRequest: limit must occur once"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"error:sortDirection=array","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must occur once"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"error:cursor:non-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"error:cursor:empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"error:cursor:hex-non-json","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"error:cursor:array","calls":[],"outcome":{"error":"InvalidRequest: cursor must occur once"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"error:cursor:uppercase-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"cursor:length-at-cap","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"cursor:length-below-cap","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"cursor:length-above-cap","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:month-13","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:feb-30","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:leap-2024-valid","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:feb-29-2100","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:leap-2000-valid","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx","2000-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:second-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:hour-24","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:zone-minus-00-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:zone-plus-24-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:zone-minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:zone-plus-05-30-valid","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:fraction-valid","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00.123456Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:fraction-offset-valid","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00.5+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:no-zone","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:day-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:fraction-empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:fraction-empty-offset","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:month-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:lowercase-z","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:lowercase-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:zone-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:fraction-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:year-0001-valid","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx","0001-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:year-5-digit","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:end-of-year-valid","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx","2025-12-31T23:59:59Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:zone-plus-15-59","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00+15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:zone-minus-15-59","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00-15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:zone-plus-16-00","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00+16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:zone-minus-16-00","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00-16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:zone-plus-23-59-lua-accepted","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00+23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:zone-minus-23-59-lua-accepted","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00-23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:feb-29-2026","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:feb-29-2200","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:day-2025-01-31-valid","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx","2025-01-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:day-2025-01-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:day-2025-02-28-valid","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx","2025-02-28T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:day-2025-02-29-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:day-2025-03-31-valid","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx","2025-03-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:day-2025-03-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:day-2025-04-30-valid","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx","2025-04-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:day-2025-04-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:day-2025-05-31-valid","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx","2025-05-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:day-2025-05-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:day-2025-06-30-valid","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx","2025-06-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:day-2025-06-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:day-2025-07-31-valid","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx","2025-07-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:day-2025-07-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:day-2025-08-31-valid","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx","2025-08-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:day-2025-08-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:day-2025-09-30-valid","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx","2025-09-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:day-2025-09-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:day-2025-10-31-valid","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx","2025-10-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:day-2025-10-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:day-2025-11-30-valid","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx","2025-11-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:day-2025-11-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:day-2025-12-31-valid","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx","2025-12-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:day-2025-12-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:day-2024-02-29-valid","calls":[{"binds":["app.certified.feed.like","did:plc:abcdefghijklmnopqrstuvwx","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"likes":[]}}} +{"endpoint":"app.certified.feed.getActorLikes","case":"datetime:cursor-t:day-2024-02-30-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"error:cursor:wrong-v","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"error:cursor:wrong-collection","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"error:cursor:missing-u","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"error:cursor:u-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"error:cursor:extra-key","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"error:cursor:wrong-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"error:cursor:opposite-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"error:cursor:bad-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"error:cursor:t-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.feed.getActorLikes","case":"error:cursor:missing-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"default","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"958119e969"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"limit=1","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx",2],"sql":"958119e969"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"limit=7","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx",8],"sql":"958119e969"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"limit=99","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx",100],"sql":"958119e969"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"limit=100","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx",101],"sql":"958119e969"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"limit=0","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"limit=101","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"cursor:malformed","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"sort=desc","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"958119e969"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"paged:desc","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx",3],"sql":"958119e969"}],"outcome":{"result":{"cursor":"7b2264223a2264657363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e666565642e7265706f73742f336b6162636465666768696a62222c2276223a317d","reposts":[{"cid":"bafyfixture2","did":"did:plc:abcdefghijklmnopqrstuvwz","indexedAt":"2025-01-03T00:00:00Z","record":{"$type":"app.certified.feed.repost","createdAt":"2025-01-03T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwz/app.certified.feed.repost/3kabcdefghijc"},{"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"app.certified.feed.repost","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.feed.repost/3kabcdefghijb"}]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"cursor:valid:desc","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"cursor:valid+limit=7:desc","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",8],"sql":"4cd8918f5f"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"year0000:cursor:desc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"sort=asc","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"50fae54f8e"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"paged:asc","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx",3],"sql":"50fae54f8e"}],"outcome":{"result":{"cursor":"7b2264223a22617363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e666565642e7265706f73742f336b6162636465666768696a62222c2276223a317d","reposts":[{"cid":"bafyfixture0","did":"did:plc:abcdefghijklmnopqrstuvwx","indexedAt":"2025-01-01T00:00:00Z","record":{"$type":"app.certified.feed.repost","createdAt":"2025-01-01T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghija"},{"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"app.certified.feed.repost","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.feed.repost/3kabcdefghijb"}]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"cursor:valid:asc","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"060c0aac20"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"cursor:valid+limit=7:asc","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",8],"sql":"060c0aac20"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"year0000:cursor:asc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"error:sortDirection=bad","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"error:sortDirection=ASC","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"error:sortDirection=empty","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"error:limit=abc","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"error:limit=1.5","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"error:limit=-1","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"error:limit=0-string","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"error:limit=7-string","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx",8],"sql":"958119e969"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"error:limit=empty","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"error:limit=array","calls":[],"outcome":{"error":"InvalidRequest: limit must occur once"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"error:sortDirection=array","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must occur once"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"error:cursor:non-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"error:cursor:empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"error:cursor:hex-non-json","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"error:cursor:array","calls":[],"outcome":{"error":"InvalidRequest: cursor must occur once"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"error:cursor:uppercase-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"cursor:length-at-cap","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"cursor:length-below-cap","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"cursor:length-above-cap","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:month-13","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:feb-30","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:leap-2024-valid","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:feb-29-2100","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:leap-2000-valid","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx","2000-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:second-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:hour-24","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:zone-minus-00-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:zone-plus-24-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:zone-minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:zone-plus-05-30-valid","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:fraction-valid","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00.123456Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:fraction-offset-valid","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00.5+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:no-zone","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:day-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:fraction-empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:fraction-empty-offset","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:month-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:lowercase-z","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:lowercase-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:zone-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:fraction-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:year-0001-valid","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx","0001-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:year-5-digit","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:end-of-year-valid","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx","2025-12-31T23:59:59Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:zone-plus-15-59","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00+15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:zone-minus-15-59","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00-15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:zone-plus-16-00","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00+16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:zone-minus-16-00","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00-16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:zone-plus-23-59-lua-accepted","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00+23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:zone-minus-23-59-lua-accepted","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00-23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:feb-29-2026","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:feb-29-2200","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:day-2025-01-31-valid","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx","2025-01-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:day-2025-01-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:day-2025-02-28-valid","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx","2025-02-28T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:day-2025-02-29-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:day-2025-03-31-valid","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx","2025-03-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:day-2025-03-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:day-2025-04-30-valid","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx","2025-04-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:day-2025-04-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:day-2025-05-31-valid","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx","2025-05-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:day-2025-05-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:day-2025-06-30-valid","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx","2025-06-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:day-2025-06-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:day-2025-07-31-valid","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx","2025-07-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:day-2025-07-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:day-2025-08-31-valid","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx","2025-08-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:day-2025-08-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:day-2025-09-30-valid","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx","2025-09-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:day-2025-09-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:day-2025-10-31-valid","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx","2025-10-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:day-2025-10-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:day-2025-11-30-valid","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx","2025-11-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:day-2025-11-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:day-2025-12-31-valid","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx","2025-12-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:day-2025-12-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:day-2024-02-29-valid","calls":[{"binds":["app.certified.feed.repost","did:plc:abcdefghijklmnopqrstuvwx","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"4cd8918f5f"}],"outcome":{"result":{"reposts":[]}}} +{"endpoint":"app.certified.feed.getActorReposts","case":"datetime:cursor-t:day-2024-02-30-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"error:cursor:wrong-v","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"error:cursor:wrong-collection","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"error:cursor:missing-u","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"error:cursor:u-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"error:cursor:extra-key","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"error:cursor:wrong-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"error:cursor:opposite-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"error:cursor:bad-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"error:cursor:t-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.feed.getActorReposts","case":"error:cursor:missing-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.feed.getLikes","case":"default","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"235652cf2d"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"limit=1","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",2],"sql":"235652cf2d"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"limit=7","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",8],"sql":"235652cf2d"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"limit=99","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",100],"sql":"235652cf2d"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"limit=100","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",101],"sql":"235652cf2d"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"limit=0","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.feed.getLikes","case":"limit=101","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.feed.getLikes","case":"cursor:malformed","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"sort=desc","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"235652cf2d"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"paged:desc","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",3],"sql":"235652cf2d"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"cursor":"7b2264223a2264657363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e666565642e6c696b652f336b6162636465666768696a62222c2276223a317d","likeCount":12,"likes":[{"did":"did:plc:abcdefghijklmnopqrstuvwz","like":{"cid":"bafyfixture2","did":"did:plc:abcdefghijklmnopqrstuvwz","indexedAt":"2025-01-03T00:00:00Z","record":{"$type":"app.certified.feed.like","createdAt":"2025-01-03T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwz/app.certified.feed.like/3kabcdefghijc"},"organization":null,"profile":null},{"did":"did:plc:abcdefghijklmnopqrstuvwy","like":{"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"app.certified.feed.like","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.feed.like/3kabcdefghijb"},"organization":null,"profile":null}]}}} +{"endpoint":"app.certified.feed.getLikes","case":"cursor:valid:desc","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"cursor:valid+limit=7:desc","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",8],"sql":"9820dcd288"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"year0000:cursor:desc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"sort=asc","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"b30c649623"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"paged:asc","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",3],"sql":"b30c649623"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"cursor":"7b2264223a22617363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e666565642e6c696b652f336b6162636465666768696a62222c2276223a317d","likeCount":12,"likes":[{"did":"did:plc:abcdefghijklmnopqrstuvwx","like":{"cid":"bafyfixture0","did":"did:plc:abcdefghijklmnopqrstuvwx","indexedAt":"2025-01-01T00:00:00Z","record":{"$type":"app.certified.feed.like","createdAt":"2025-01-01T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghija"},"organization":null,"profile":null},{"did":"did:plc:abcdefghijklmnopqrstuvwy","like":{"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"app.certified.feed.like","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.feed.like/3kabcdefghijb"},"organization":null,"profile":null}]}}} +{"endpoint":"app.certified.feed.getLikes","case":"cursor:valid:asc","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"9d26dac464"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"cursor:valid+limit=7:asc","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",8],"sql":"9d26dac464"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"year0000:cursor:asc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"error:sortDirection=bad","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.feed.getLikes","case":"error:sortDirection=ASC","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.feed.getLikes","case":"error:sortDirection=empty","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.feed.getLikes","case":"error:limit=abc","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.feed.getLikes","case":"error:limit=1.5","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.feed.getLikes","case":"error:limit=-1","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.feed.getLikes","case":"error:limit=0-string","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.feed.getLikes","case":"error:limit=7-string","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",8],"sql":"235652cf2d"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"error:limit=empty","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.feed.getLikes","case":"error:limit=array","calls":[],"outcome":{"error":"InvalidRequest: limit must occur once"}} +{"endpoint":"app.certified.feed.getLikes","case":"error:sortDirection=array","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must occur once"}} +{"endpoint":"app.certified.feed.getLikes","case":"error:cursor:non-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"error:cursor:empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"error:cursor:hex-non-json","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.feed.getLikes","case":"error:cursor:array","calls":[],"outcome":{"error":"InvalidRequest: cursor must occur once"}} +{"endpoint":"app.certified.feed.getLikes","case":"error:cursor:uppercase-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"cursor:length-at-cap","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"cursor:length-below-cap","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"cursor:length-above-cap","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:month-13","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:feb-30","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:leap-2024-valid","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:feb-29-2100","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:leap-2000-valid","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2000-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:second-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:hour-24","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:zone-minus-00-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:zone-plus-24-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:zone-minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:zone-plus-05-30-valid","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:fraction-valid","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00.123456Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:fraction-offset-valid","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00.5+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:no-zone","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:day-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:fraction-empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:fraction-empty-offset","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:month-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:lowercase-z","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:lowercase-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:zone-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:fraction-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:year-0001-valid","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","0001-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:year-5-digit","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:end-of-year-valid","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-12-31T23:59:59Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:zone-plus-15-59","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00+15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:zone-minus-15-59","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00-15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:zone-plus-16-00","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00+16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:zone-minus-16-00","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00-16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:zone-plus-23-59-lua-accepted","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00+23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:zone-minus-23-59-lua-accepted","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00-23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:feb-29-2026","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:feb-29-2200","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:day-2025-01-31-valid","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:day-2025-01-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:day-2025-02-28-valid","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-02-28T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:day-2025-02-29-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:day-2025-03-31-valid","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-03-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:day-2025-03-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:day-2025-04-30-valid","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-04-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:day-2025-04-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:day-2025-05-31-valid","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-05-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:day-2025-05-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:day-2025-06-30-valid","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-06-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:day-2025-06-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:day-2025-07-31-valid","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-07-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:day-2025-07-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:day-2025-08-31-valid","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-08-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:day-2025-08-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:day-2025-09-30-valid","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-09-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:day-2025-09-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:day-2025-10-31-valid","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-10-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:day-2025-10-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:day-2025-11-30-valid","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-11-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:day-2025-11-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:day-2025-12-31-valid","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-12-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:day-2025-12-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:day-2024-02-29-valid","calls":[{"binds":["app.certified.feed.like","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.like/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"likeCount":0,"likes":[]}}} +{"endpoint":"app.certified.feed.getLikes","case":"datetime:cursor-t:day-2024-02-30-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"error:cursor:wrong-v","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.feed.getLikes","case":"error:cursor:wrong-collection","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"error:cursor:missing-u","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.feed.getLikes","case":"error:cursor:u-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.feed.getLikes","case":"error:cursor:extra-key","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"error:cursor:wrong-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.feed.getLikes","case":"error:cursor:opposite-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.feed.getLikes","case":"error:cursor:bad-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getLikes","case":"error:cursor:t-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.feed.getLikes","case":"error:cursor:missing-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.feed.getReposts","case":"default","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"235652cf2d"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"limit=1","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",2],"sql":"235652cf2d"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"limit=7","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",8],"sql":"235652cf2d"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"limit=99","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",100],"sql":"235652cf2d"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"limit=100","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",101],"sql":"235652cf2d"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"limit=0","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.feed.getReposts","case":"limit=101","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.feed.getReposts","case":"cursor:malformed","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"sort=desc","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"235652cf2d"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"paged:desc","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",3],"sql":"235652cf2d"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"cursor":"7b2264223a2264657363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e666565642e7265706f73742f336b6162636465666768696a62222c2276223a317d","repostCount":12,"reposts":[{"did":"did:plc:abcdefghijklmnopqrstuvwz","organization":null,"profile":null,"repost":{"cid":"bafyfixture2","did":"did:plc:abcdefghijklmnopqrstuvwz","indexedAt":"2025-01-03T00:00:00Z","record":{"$type":"app.certified.feed.repost","createdAt":"2025-01-03T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwz/app.certified.feed.repost/3kabcdefghijc"}},{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null,"repost":{"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"app.certified.feed.repost","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.feed.repost/3kabcdefghijb"}}]}}} +{"endpoint":"app.certified.feed.getReposts","case":"cursor:valid:desc","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"cursor:valid+limit=7:desc","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",8],"sql":"9820dcd288"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"year0000:cursor:desc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"sort=asc","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"b30c649623"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"paged:asc","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",3],"sql":"b30c649623"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"cursor":"7b2264223a22617363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e666565642e7265706f73742f336b6162636465666768696a62222c2276223a317d","repostCount":12,"reposts":[{"did":"did:plc:abcdefghijklmnopqrstuvwx","organization":null,"profile":null,"repost":{"cid":"bafyfixture0","did":"did:plc:abcdefghijklmnopqrstuvwx","indexedAt":"2025-01-01T00:00:00Z","record":{"$type":"app.certified.feed.repost","createdAt":"2025-01-01T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghija"}},{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null,"repost":{"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"app.certified.feed.repost","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.feed.repost/3kabcdefghijb"}}]}}} +{"endpoint":"app.certified.feed.getReposts","case":"cursor:valid:asc","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"9d26dac464"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"cursor:valid+limit=7:asc","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",8],"sql":"9d26dac464"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"year0000:cursor:asc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"error:sortDirection=bad","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.feed.getReposts","case":"error:sortDirection=ASC","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.feed.getReposts","case":"error:sortDirection=empty","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.feed.getReposts","case":"error:limit=abc","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.feed.getReposts","case":"error:limit=1.5","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.feed.getReposts","case":"error:limit=-1","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.feed.getReposts","case":"error:limit=0-string","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.feed.getReposts","case":"error:limit=7-string","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",8],"sql":"235652cf2d"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"error:limit=empty","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.feed.getReposts","case":"error:limit=array","calls":[],"outcome":{"error":"InvalidRequest: limit must occur once"}} +{"endpoint":"app.certified.feed.getReposts","case":"error:sortDirection=array","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must occur once"}} +{"endpoint":"app.certified.feed.getReposts","case":"error:cursor:non-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"error:cursor:empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"error:cursor:hex-non-json","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.feed.getReposts","case":"error:cursor:array","calls":[],"outcome":{"error":"InvalidRequest: cursor must occur once"}} +{"endpoint":"app.certified.feed.getReposts","case":"error:cursor:uppercase-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"cursor:length-at-cap","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"cursor:length-below-cap","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"cursor:length-above-cap","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:month-13","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:feb-30","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:leap-2024-valid","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:feb-29-2100","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:leap-2000-valid","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2000-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:second-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:hour-24","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:zone-minus-00-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:zone-plus-24-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:zone-minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:zone-plus-05-30-valid","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:fraction-valid","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00.123456Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:fraction-offset-valid","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00.5+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:no-zone","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:day-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:fraction-empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:fraction-empty-offset","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:month-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:lowercase-z","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:lowercase-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:zone-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:fraction-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:year-0001-valid","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","0001-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:year-5-digit","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:end-of-year-valid","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-12-31T23:59:59Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:zone-plus-15-59","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00+15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:zone-minus-15-59","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00-15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:zone-plus-16-00","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00+16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:zone-minus-16-00","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00-16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:zone-plus-23-59-lua-accepted","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00+23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:zone-minus-23-59-lua-accepted","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00-23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:feb-29-2026","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:feb-29-2200","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:day-2025-01-31-valid","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:day-2025-01-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:day-2025-02-28-valid","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-02-28T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:day-2025-02-29-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:day-2025-03-31-valid","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-03-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:day-2025-03-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:day-2025-04-30-valid","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-04-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:day-2025-04-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:day-2025-05-31-valid","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-05-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:day-2025-05-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:day-2025-06-30-valid","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-06-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:day-2025-06-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:day-2025-07-31-valid","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-07-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:day-2025-07-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:day-2025-08-31-valid","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-08-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:day-2025-08-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:day-2025-09-30-valid","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-09-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:day-2025-09-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:day-2025-10-31-valid","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-10-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:day-2025-10-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:day-2025-11-30-valid","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-11-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:day-2025-11-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:day-2025-12-31-valid","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-12-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:day-2025-12-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:day-2024-02-29-valid","calls":[{"binds":["app.certified.feed.repost","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.feed.repost/3kabcdefghijk",26],"sql":"9820dcd288"}],"outcome":{"result":{"repostCount":0,"reposts":[]}}} +{"endpoint":"app.certified.feed.getReposts","case":"datetime:cursor-t:day-2024-02-30-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"error:cursor:wrong-v","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.feed.getReposts","case":"error:cursor:wrong-collection","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"error:cursor:missing-u","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.feed.getReposts","case":"error:cursor:u-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.feed.getReposts","case":"error:cursor:extra-key","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"error:cursor:wrong-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.feed.getReposts","case":"error:cursor:opposite-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.feed.getReposts","case":"error:cursor:bad-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.feed.getReposts","case":"error:cursor:t-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.feed.getReposts","case":"error:cursor:missing-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"default","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"107d3663f6"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"limit=1","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx",2],"sql":"107d3663f6"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"limit=7","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx",8],"sql":"107d3663f6"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"limit=99","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx",100],"sql":"107d3663f6"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"limit=100","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx",101],"sql":"107d3663f6"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"limit=0","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"limit=101","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"cursor:malformed","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"sort=desc","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"107d3663f6"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"paged:desc","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx",3],"sql":"107d3663f6"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"cursor":"7b2264223a2264657363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e67726170682e666f6c6c6f772f336b6162636465666768696a62222c2276223a317d","followers":[{"did":"did:plc:abcdefghijklmnopqrstuvwz","follow":{"cid":"bafyfixture2","did":"did:plc:abcdefghijklmnopqrstuvwz","indexedAt":"2025-01-03T00:00:00Z","record":{"$type":"app.certified.graph.follow","createdAt":"2025-01-03T00:00:00Z","subject":"did:plc:abcdefghijklmnopqrstuvwz"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwz/app.certified.graph.follow/3kabcdefghijc"},"organization":null,"profile":null},{"did":"did:plc:abcdefghijklmnopqrstuvwy","follow":{"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"app.certified.graph.follow","createdAt":"2025-01-02T00:00:00Z","subject":"did:plc:abcdefghijklmnopqrstuvwy"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.graph.follow/3kabcdefghijb"},"organization":null,"profile":null}],"totalCount":12}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"cursor:valid:desc","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"a4f35cd109"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"cursor:valid+limit=7:desc","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",8],"sql":"a4f35cd109"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"year0000:cursor:desc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"sort=asc","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"0d65b5c846"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"paged:asc","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx",3],"sql":"0d65b5c846"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"cursor":"7b2264223a22617363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e67726170682e666f6c6c6f772f336b6162636465666768696a62222c2276223a317d","followers":[{"did":"did:plc:abcdefghijklmnopqrstuvwx","follow":{"cid":"bafyfixture0","did":"did:plc:abcdefghijklmnopqrstuvwx","indexedAt":"2025-01-01T00:00:00Z","record":{"$type":"app.certified.graph.follow","createdAt":"2025-01-01T00:00:00Z","subject":"did:plc:abcdefghijklmnopqrstuvwx"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghija"},"organization":null,"profile":null},{"did":"did:plc:abcdefghijklmnopqrstuvwy","follow":{"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"app.certified.graph.follow","createdAt":"2025-01-02T00:00:00Z","subject":"did:plc:abcdefghijklmnopqrstuvwy"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.graph.follow/3kabcdefghijb"},"organization":null,"profile":null}],"totalCount":12}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"cursor:valid:asc","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"81d1f27eb3"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"cursor:valid+limit=7:asc","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",8],"sql":"81d1f27eb3"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"year0000:cursor:asc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"error:sortDirection=bad","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"error:sortDirection=ASC","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"error:sortDirection=empty","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"error:limit=abc","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"error:limit=1.5","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"error:limit=-1","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"error:limit=0-string","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"error:limit=7-string","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx",8],"sql":"107d3663f6"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"error:limit=empty","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"error:limit=array","calls":[],"outcome":{"error":"InvalidRequest: limit must occur once"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"error:sortDirection=array","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must occur once"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"error:cursor:non-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"error:cursor:empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"error:cursor:hex-non-json","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"error:cursor:array","calls":[],"outcome":{"error":"InvalidRequest: cursor must occur once"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"error:cursor:uppercase-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"cursor:length-at-cap","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"a4f35cd109"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"cursor:length-below-cap","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"a4f35cd109"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"cursor:length-above-cap","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"a4f35cd109"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:month-13","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:feb-30","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:leap-2024-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"a4f35cd109"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:feb-29-2100","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:leap-2000-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2000-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"a4f35cd109"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:second-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:hour-24","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:zone-minus-00-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:zone-plus-24-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:zone-minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:zone-plus-05-30-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"a4f35cd109"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:fraction-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00.123456Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"a4f35cd109"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:fraction-offset-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00.5+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"a4f35cd109"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:no-zone","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:day-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:fraction-empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:fraction-empty-offset","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:month-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:lowercase-z","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:lowercase-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:zone-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:fraction-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:year-0001-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","0001-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"a4f35cd109"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:year-5-digit","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:end-of-year-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-12-31T23:59:59Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"a4f35cd109"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:zone-plus-15-59","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00+15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"a4f35cd109"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:zone-minus-15-59","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00-15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"a4f35cd109"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:zone-plus-16-00","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00+16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"a4f35cd109"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:zone-minus-16-00","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00-16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"a4f35cd109"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:zone-plus-23-59-lua-accepted","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00+23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"a4f35cd109"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:zone-minus-23-59-lua-accepted","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00-23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"a4f35cd109"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:feb-29-2026","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:feb-29-2200","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:day-2025-01-31-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"a4f35cd109"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:day-2025-01-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:day-2025-02-28-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-02-28T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"a4f35cd109"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:day-2025-02-29-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:day-2025-03-31-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-03-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"a4f35cd109"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:day-2025-03-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:day-2025-04-30-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-04-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"a4f35cd109"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:day-2025-04-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:day-2025-05-31-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-05-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"a4f35cd109"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:day-2025-05-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:day-2025-06-30-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-06-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"a4f35cd109"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:day-2025-06-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:day-2025-07-31-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-07-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"a4f35cd109"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:day-2025-07-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:day-2025-08-31-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-08-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"a4f35cd109"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:day-2025-08-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:day-2025-09-30-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-09-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"a4f35cd109"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:day-2025-09-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:day-2025-10-31-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-10-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"a4f35cd109"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:day-2025-10-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:day-2025-11-30-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-11-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"a4f35cd109"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:day-2025-11-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:day-2025-12-31-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-12-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"a4f35cd109"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:day-2025-12-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:day-2024-02-29-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"a4f35cd109"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"datetime:cursor-t:day-2024-02-30-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"error:cursor:wrong-v","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"error:cursor:wrong-collection","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"error:cursor:missing-u","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"error:cursor:u-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"error:cursor:extra-key","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"error:cursor:wrong-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"error:cursor:opposite-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"error:cursor:bad-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"error:cursor:t-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.graph.listActorFollowers","case":"error:cursor:missing-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"default","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"f3857e8ed7"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"limit=1","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx",2],"sql":"f3857e8ed7"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"limit=7","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx",8],"sql":"f3857e8ed7"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"limit=99","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx",100],"sql":"f3857e8ed7"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"limit=100","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx",101],"sql":"f3857e8ed7"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"limit=0","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"limit=101","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"cursor:malformed","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"sort=desc","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"f3857e8ed7"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"paged:desc","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx",3],"sql":"f3857e8ed7"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"cursor":"7b2264223a2264657363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e67726170682e666f6c6c6f772f336b6162636465666768696a62222c2276223a317d","following":[{"did":"did:plc:abcdefghijklmnopqrstuvwz","follow":{"cid":"bafyfixture2","did":"did:plc:abcdefghijklmnopqrstuvwz","indexedAt":"2025-01-03T00:00:00Z","record":{"$type":"app.certified.graph.follow","createdAt":"2025-01-03T00:00:00Z","subject":"did:plc:abcdefghijklmnopqrstuvwz"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwz/app.certified.graph.follow/3kabcdefghijc"},"organization":null,"profile":null},{"did":"did:plc:abcdefghijklmnopqrstuvwy","follow":{"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"app.certified.graph.follow","createdAt":"2025-01-02T00:00:00Z","subject":"did:plc:abcdefghijklmnopqrstuvwy"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.graph.follow/3kabcdefghijb"},"organization":null,"profile":null}],"totalCount":12}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"cursor:valid:desc","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"b224c5782a"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"cursor:valid+limit=7:desc","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",8],"sql":"b224c5782a"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"year0000:cursor:desc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"sort=asc","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"4bd67beea6"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"paged:asc","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx",3],"sql":"4bd67beea6"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"cursor":"7b2264223a22617363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e67726170682e666f6c6c6f772f336b6162636465666768696a62222c2276223a317d","following":[{"did":"did:plc:abcdefghijklmnopqrstuvwx","follow":{"cid":"bafyfixture0","did":"did:plc:abcdefghijklmnopqrstuvwx","indexedAt":"2025-01-01T00:00:00Z","record":{"$type":"app.certified.graph.follow","createdAt":"2025-01-01T00:00:00Z","subject":"did:plc:abcdefghijklmnopqrstuvwx"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghija"},"organization":null,"profile":null},{"did":"did:plc:abcdefghijklmnopqrstuvwy","follow":{"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"app.certified.graph.follow","createdAt":"2025-01-02T00:00:00Z","subject":"did:plc:abcdefghijklmnopqrstuvwy"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.graph.follow/3kabcdefghijb"},"organization":null,"profile":null}],"totalCount":12}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"cursor:valid:asc","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"ceeb1a63af"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"cursor:valid+limit=7:asc","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",8],"sql":"ceeb1a63af"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"year0000:cursor:asc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"error:sortDirection=bad","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"error:sortDirection=ASC","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"error:sortDirection=empty","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"error:limit=abc","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"error:limit=1.5","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"error:limit=-1","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"error:limit=0-string","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"error:limit=7-string","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx",8],"sql":"f3857e8ed7"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"error:limit=empty","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"error:limit=array","calls":[],"outcome":{"error":"InvalidRequest: limit must occur once"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"error:sortDirection=array","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must occur once"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"error:cursor:non-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"error:cursor:empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"error:cursor:hex-non-json","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"error:cursor:array","calls":[],"outcome":{"error":"InvalidRequest: cursor must occur once"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"error:cursor:uppercase-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"cursor:length-at-cap","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"b224c5782a"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"cursor:length-below-cap","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"b224c5782a"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"cursor:length-above-cap","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"b224c5782a"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:month-13","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:feb-30","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:leap-2024-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"b224c5782a"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:feb-29-2100","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:leap-2000-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2000-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"b224c5782a"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:second-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:hour-24","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:zone-minus-00-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:zone-plus-24-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:zone-minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:zone-plus-05-30-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"b224c5782a"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:fraction-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00.123456Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"b224c5782a"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:fraction-offset-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00.5+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"b224c5782a"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:no-zone","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:day-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:fraction-empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:fraction-empty-offset","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:month-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:lowercase-z","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:lowercase-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:zone-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:fraction-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:year-0001-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","0001-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"b224c5782a"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:year-5-digit","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:end-of-year-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-12-31T23:59:59Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"b224c5782a"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:zone-plus-15-59","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00+15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"b224c5782a"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:zone-minus-15-59","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00-15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"b224c5782a"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:zone-plus-16-00","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00+16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"b224c5782a"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:zone-minus-16-00","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00-16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"b224c5782a"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:zone-plus-23-59-lua-accepted","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00+23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"b224c5782a"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:zone-minus-23-59-lua-accepted","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00-23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"b224c5782a"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:feb-29-2026","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:feb-29-2200","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:day-2025-01-31-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"b224c5782a"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:day-2025-01-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:day-2025-02-28-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-02-28T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"b224c5782a"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:day-2025-02-29-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:day-2025-03-31-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-03-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"b224c5782a"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:day-2025-03-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:day-2025-04-30-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-04-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"b224c5782a"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:day-2025-04-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:day-2025-05-31-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-05-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"b224c5782a"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:day-2025-05-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:day-2025-06-30-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-06-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"b224c5782a"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:day-2025-06-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:day-2025-07-31-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-07-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"b224c5782a"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:day-2025-07-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:day-2025-08-31-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-08-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"b224c5782a"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:day-2025-08-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:day-2025-09-30-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-09-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"b224c5782a"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:day-2025-09-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:day-2025-10-31-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-10-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"b224c5782a"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:day-2025-10-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:day-2025-11-30-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-11-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"b224c5782a"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:day-2025-11-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:day-2025-12-31-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2025-12-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"b224c5782a"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:day-2025-12-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:day-2024-02-29-valid","calls":[{"binds":["app.certified.graph.follow","did:plc:abcdefghijklmnopqrstuvwx","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.follow/3kabcdefghijk",26],"sql":"b224c5782a"}],"outcome":{"result":{"following":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"datetime:cursor-t:day-2024-02-30-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"error:cursor:wrong-v","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"error:cursor:wrong-collection","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"error:cursor:missing-u","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"error:cursor:u-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"error:cursor:extra-key","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"error:cursor:wrong-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"error:cursor:opposite-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"error:cursor:bad-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"error:cursor:t-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.graph.listActorFollowing","case":"error:cursor:missing-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"default","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"dc37a02dda"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"limit=1","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",2],"sql":"dc37a02dda"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"limit=7","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",8],"sql":"dc37a02dda"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"limit=99","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",100],"sql":"dc37a02dda"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"limit=100","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",101],"sql":"dc37a02dda"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"limit=0","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"limit=101","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"cursor:malformed","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"sort=desc","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"dc37a02dda"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"paged:desc","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",3],"sql":"dc37a02dda"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"26f10c09e4"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"26f10c09e4"}],"outcome":{"result":{"cursor":"7b2264223a2264657363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e67726170682e656e74697479466f6c6c6f772f336b6162636465666768696a62222c2276223a317d","followers":[{"$type":"app.certified.graph.listEntityFollowers#entityFollowerView","did":"did:plc:abcdefghijklmnopqrstuvwz","follow":{"$type":"app.certified.graph.getEntityFollow#entityFollowRecordView","cid":"bafyfixture2","did":"did:plc:abcdefghijklmnopqrstuvwz","indexedAt":"2025-01-03T00:00:00Z","record":{"$type":"app.certified.graph.entityFollow","createdAt":"2025-01-03T00:00:00Z","subject":{"cid":"bafyactivity2","uri":"at://did:plc:abcdefghijklmnopqrstuvwz/org.hypercerts.claim.activity/3kabcdefghijk"}},"uri":"at://did:plc:abcdefghijklmnopqrstuvwz/app.certified.graph.entityFollow/3kabcdefghijc"},"organization":null,"profile":null},{"$type":"app.certified.graph.listEntityFollowers#entityFollowerView","did":"did:plc:abcdefghijklmnopqrstuvwy","follow":{"$type":"app.certified.graph.getEntityFollow#entityFollowRecordView","cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"app.certified.graph.entityFollow","createdAt":"2025-01-02T00:00:00Z","subject":{"cid":"bafyactivity1","uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.claim.activity/3kabcdefghijk"}},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.graph.entityFollow/3kabcdefghijb"},"organization":null,"profile":null}],"totalCount":12}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"cursor:valid:desc","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"3e0ec9791e"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"cursor:valid+limit=7:desc","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",8],"sql":"3e0ec9791e"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"year0000:cursor:desc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"sort=asc","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"82466a8847"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"paged:asc","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",3],"sql":"82466a8847"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"26f10c09e4"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"26f10c09e4"}],"outcome":{"result":{"cursor":"7b2264223a22617363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e67726170682e656e74697479466f6c6c6f772f336b6162636465666768696a62222c2276223a317d","followers":[{"$type":"app.certified.graph.listEntityFollowers#entityFollowerView","did":"did:plc:abcdefghijklmnopqrstuvwx","follow":{"$type":"app.certified.graph.getEntityFollow#entityFollowRecordView","cid":"bafyfixture0","did":"did:plc:abcdefghijklmnopqrstuvwx","indexedAt":"2025-01-01T00:00:00Z","record":{"$type":"app.certified.graph.entityFollow","createdAt":"2025-01-01T00:00:00Z","subject":{"cid":"bafyactivity0","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk"}},"uri":"at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghija"},"organization":null,"profile":null},{"$type":"app.certified.graph.listEntityFollowers#entityFollowerView","did":"did:plc:abcdefghijklmnopqrstuvwy","follow":{"$type":"app.certified.graph.getEntityFollow#entityFollowRecordView","cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"app.certified.graph.entityFollow","createdAt":"2025-01-02T00:00:00Z","subject":{"cid":"bafyactivity1","uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.claim.activity/3kabcdefghijk"}},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.graph.entityFollow/3kabcdefghijb"},"organization":null,"profile":null}],"totalCount":12}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"cursor:valid:asc","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"ca6fa49a9a"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"cursor:valid+limit=7:asc","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",8],"sql":"ca6fa49a9a"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"year0000:cursor:asc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"error:sortDirection=bad","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"error:sortDirection=ASC","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"error:sortDirection=empty","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"error:limit=abc","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"error:limit=1.5","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"error:limit=-1","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"error:limit=0-string","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"error:limit=7-string","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",8],"sql":"dc37a02dda"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"error:limit=empty","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"error:limit=array","calls":[],"outcome":{"error":"InvalidRequest: limit must occur once"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"error:sortDirection=array","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must occur once"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"error:cursor:non-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"error:cursor:empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"error:cursor:hex-non-json","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"error:cursor:array","calls":[],"outcome":{"error":"InvalidRequest: cursor must occur once"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"error:cursor:uppercase-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"cursor:length-at-cap","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"3e0ec9791e"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"cursor:length-below-cap","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"3e0ec9791e"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"cursor:length-above-cap","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:month-13","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:feb-30","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:leap-2024-valid","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"3e0ec9791e"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:feb-29-2100","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:leap-2000-valid","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2000-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"3e0ec9791e"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:second-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:hour-24","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:zone-minus-00-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:zone-plus-24-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:zone-minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:zone-plus-05-30-valid","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"3e0ec9791e"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:fraction-valid","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00.123456Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"3e0ec9791e"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:fraction-offset-valid","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00.5+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"3e0ec9791e"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:no-zone","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:day-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:fraction-empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:fraction-empty-offset","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:month-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:lowercase-z","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:lowercase-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:zone-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:fraction-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:year-0001-valid","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","0001-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"3e0ec9791e"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:year-5-digit","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:end-of-year-valid","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-12-31T23:59:59Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"3e0ec9791e"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:zone-plus-15-59","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00+15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"3e0ec9791e"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:zone-minus-15-59","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00-15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"3e0ec9791e"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:zone-plus-16-00","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00+16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"3e0ec9791e"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:zone-minus-16-00","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00-16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"3e0ec9791e"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:zone-plus-23-59-lua-accepted","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00+23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"3e0ec9791e"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:zone-minus-23-59-lua-accepted","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-01T00:00:00-23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"3e0ec9791e"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:feb-29-2026","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:feb-29-2200","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:day-2025-01-31-valid","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-01-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"3e0ec9791e"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:day-2025-01-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:day-2025-02-28-valid","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-02-28T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"3e0ec9791e"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:day-2025-02-29-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:day-2025-03-31-valid","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-03-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"3e0ec9791e"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:day-2025-03-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:day-2025-04-30-valid","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-04-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"3e0ec9791e"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:day-2025-04-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:day-2025-05-31-valid","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-05-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"3e0ec9791e"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:day-2025-05-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:day-2025-06-30-valid","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-06-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"3e0ec9791e"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:day-2025-06-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:day-2025-07-31-valid","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-07-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"3e0ec9791e"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:day-2025-07-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:day-2025-08-31-valid","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-08-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"3e0ec9791e"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:day-2025-08-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:day-2025-09-30-valid","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-09-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"3e0ec9791e"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:day-2025-09-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:day-2025-10-31-valid","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-10-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"3e0ec9791e"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:day-2025-10-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:day-2025-11-30-valid","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-11-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"3e0ec9791e"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:day-2025-11-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:day-2025-12-31-valid","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2025-12-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"3e0ec9791e"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:day-2025-12-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:day-2024-02-29-valid","calls":[{"binds":["app.certified.graph.entityFollow","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"3e0ec9791e"}],"outcome":{"result":{"followers":[],"totalCount":0}}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"datetime:cursor-t:day-2024-02-30-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"error:cursor:wrong-v","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"error:cursor:wrong-collection","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"error:cursor:missing-u","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"error:cursor:u-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"error:cursor:extra-key","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"error:cursor:wrong-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"error:cursor:opposite-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"error:cursor:bad-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"error:cursor:t-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.graph.listEntityFollowers","case":"error:cursor:missing-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"default","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx",27],"sql":"47811ad6f2"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"limit=1","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx",3],"sql":"47811ad6f2"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"limit=7","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx",9],"sql":"47811ad6f2"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"limit=99","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx",101],"sql":"47811ad6f2"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"limit=100","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx",102],"sql":"47811ad6f2"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"limit=0","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"limit=101","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"cursor:malformed","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"sort=desc","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx",27],"sql":"47811ad6f2"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"paged:desc","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx",4],"sql":"47811ad6f2"},{"binds":["org.hypercerts.claim.activity","at://did:plc:abcdefghijklmnopqrstuvwz/org.hypercerts.claim.activity/3kabcdefghijk","at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.claim.activity/3kabcdefghijk"],"sql":"1b8c5a6a7c"}],"outcome":{"result":{"cursor":"7b2264223a2264657363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e67726170682e656e74697479466f6c6c6f772f336b6162636465666768696a62222c2276223a317d","entities":[{"$type":"app.certified.graph.listEntityFollowing#entityFollowingItem","entity":null,"follow":{"$type":"app.certified.graph.getEntityFollow#entityFollowRecordView","cid":"bafyfixture2","did":"did:plc:abcdefghijklmnopqrstuvwz","indexedAt":"2025-01-03T00:00:00Z","record":{"$type":"app.certified.graph.entityFollow","createdAt":"2025-01-03T00:00:00Z","subject":{"cid":"bafyactivity2","uri":"at://did:plc:abcdefghijklmnopqrstuvwz/org.hypercerts.claim.activity/3kabcdefghijk"}},"uri":"at://did:plc:abcdefghijklmnopqrstuvwz/app.certified.graph.entityFollow/3kabcdefghijc"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwz/org.hypercerts.claim.activity/3kabcdefghijk"},{"$type":"app.certified.graph.listEntityFollowing#entityFollowingItem","entity":null,"follow":{"$type":"app.certified.graph.getEntityFollow#entityFollowRecordView","cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"app.certified.graph.entityFollow","createdAt":"2025-01-02T00:00:00Z","subject":{"cid":"bafyactivity1","uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.claim.activity/3kabcdefghijk"}},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.graph.entityFollow/3kabcdefghijb"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.claim.activity/3kabcdefghijk"}]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"cursor:valid:desc","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",27],"sql":"f87bb726ad"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"cursor:valid+limit=7:desc","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",9],"sql":"f87bb726ad"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"year0000:cursor:desc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"sort=asc","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx",27],"sql":"51e5c58ca9"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"paged:asc","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx",4],"sql":"51e5c58ca9"},{"binds":["org.hypercerts.claim.activity","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk","at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.claim.activity/3kabcdefghijk"],"sql":"1b8c5a6a7c"}],"outcome":{"result":{"cursor":"7b2264223a22617363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e67726170682e656e74697479466f6c6c6f772f336b6162636465666768696a62222c2276223a317d","entities":[{"$type":"app.certified.graph.listEntityFollowing#entityFollowingItem","entity":null,"follow":{"$type":"app.certified.graph.getEntityFollow#entityFollowRecordView","cid":"bafyfixture0","did":"did:plc:abcdefghijklmnopqrstuvwx","indexedAt":"2025-01-01T00:00:00Z","record":{"$type":"app.certified.graph.entityFollow","createdAt":"2025-01-01T00:00:00Z","subject":{"cid":"bafyactivity0","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk"}},"uri":"at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghija"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk"},{"$type":"app.certified.graph.listEntityFollowing#entityFollowingItem","entity":null,"follow":{"$type":"app.certified.graph.getEntityFollow#entityFollowRecordView","cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"app.certified.graph.entityFollow","createdAt":"2025-01-02T00:00:00Z","subject":{"cid":"bafyactivity1","uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.claim.activity/3kabcdefghijk"}},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.graph.entityFollow/3kabcdefghijb"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.claim.activity/3kabcdefghijk"}]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"cursor:valid:asc","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",27],"sql":"935a7082cc"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"cursor:valid+limit=7:asc","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",9],"sql":"935a7082cc"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"year0000:cursor:asc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"error:sortDirection=bad","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"error:sortDirection=ASC","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"error:sortDirection=empty","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"error:limit=abc","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"error:limit=1.5","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"error:limit=-1","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"error:limit=0-string","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"error:limit=7-string","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx",9],"sql":"47811ad6f2"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"error:limit=empty","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"error:limit=array","calls":[],"outcome":{"error":"InvalidRequest: limit must occur once"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"error:sortDirection=array","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must occur once"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"error:cursor:non-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"error:cursor:empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"error:cursor:hex-non-json","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"error:cursor:array","calls":[],"outcome":{"error":"InvalidRequest: cursor must occur once"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"error:cursor:uppercase-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"cursor:length-at-cap","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",27],"sql":"f87bb726ad"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"cursor:length-below-cap","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",27],"sql":"f87bb726ad"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"cursor:length-above-cap","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:month-13","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:feb-30","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:leap-2024-valid","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",27],"sql":"f87bb726ad"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:feb-29-2100","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:leap-2000-valid","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx","2000-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",27],"sql":"f87bb726ad"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:second-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:hour-24","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:zone-minus-00-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:zone-plus-24-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:zone-minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:zone-plus-05-30-valid","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",27],"sql":"f87bb726ad"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:fraction-valid","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00.123456Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",27],"sql":"f87bb726ad"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:fraction-offset-valid","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00.5+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",27],"sql":"f87bb726ad"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:no-zone","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:day-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:fraction-empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:fraction-empty-offset","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:month-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:lowercase-z","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:lowercase-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:zone-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:fraction-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:year-0001-valid","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx","0001-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",27],"sql":"f87bb726ad"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:year-5-digit","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:end-of-year-valid","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx","2025-12-31T23:59:59Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",27],"sql":"f87bb726ad"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:zone-plus-15-59","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00+15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",27],"sql":"f87bb726ad"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:zone-minus-15-59","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00-15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",27],"sql":"f87bb726ad"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:zone-plus-16-00","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00+16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",27],"sql":"f87bb726ad"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:zone-minus-16-00","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00-16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",27],"sql":"f87bb726ad"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:zone-plus-23-59-lua-accepted","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00+23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",27],"sql":"f87bb726ad"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:zone-minus-23-59-lua-accepted","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-01T00:00:00-23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",27],"sql":"f87bb726ad"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:feb-29-2026","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:feb-29-2200","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:day-2025-01-31-valid","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx","2025-01-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",27],"sql":"f87bb726ad"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:day-2025-01-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:day-2025-02-28-valid","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx","2025-02-28T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",27],"sql":"f87bb726ad"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:day-2025-02-29-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:day-2025-03-31-valid","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx","2025-03-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",27],"sql":"f87bb726ad"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:day-2025-03-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:day-2025-04-30-valid","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx","2025-04-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",27],"sql":"f87bb726ad"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:day-2025-04-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:day-2025-05-31-valid","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx","2025-05-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",27],"sql":"f87bb726ad"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:day-2025-05-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:day-2025-06-30-valid","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx","2025-06-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",27],"sql":"f87bb726ad"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:day-2025-06-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:day-2025-07-31-valid","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx","2025-07-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",27],"sql":"f87bb726ad"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:day-2025-07-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:day-2025-08-31-valid","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx","2025-08-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",27],"sql":"f87bb726ad"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:day-2025-08-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:day-2025-09-30-valid","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx","2025-09-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",27],"sql":"f87bb726ad"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:day-2025-09-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:day-2025-10-31-valid","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx","2025-10-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",27],"sql":"f87bb726ad"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:day-2025-10-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:day-2025-11-30-valid","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx","2025-11-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",27],"sql":"f87bb726ad"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:day-2025-11-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:day-2025-12-31-valid","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx","2025-12-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",27],"sql":"f87bb726ad"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:day-2025-12-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:day-2024-02-29-valid","calls":[{"binds":["app.certified.graph.entityFollow","did:plc:abcdefghijklmnopqrstuvwx","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",27],"sql":"f87bb726ad"}],"outcome":{"result":{"entities":[]}}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"datetime:cursor-t:day-2024-02-30-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"error:cursor:wrong-v","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"error:cursor:wrong-collection","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"error:cursor:missing-u","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"error:cursor:u-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"error:cursor:extra-key","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"error:cursor:wrong-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"error:cursor:opposite-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"error:cursor:bad-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"error:cursor:t-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.graph.listEntityFollowing","case":"error:cursor:missing-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"default","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow",26],"sql":"04564cc9e7"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"limit=1","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow",2],"sql":"04564cc9e7"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"limit=7","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow",8],"sql":"04564cc9e7"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"limit=99","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow",100],"sql":"04564cc9e7"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"limit=100","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow",101],"sql":"04564cc9e7"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"limit=0","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"limit=101","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"cursor:malformed","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"paged:default","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow",3],"sql":"04564cc9e7"}],"outcome":{"result":{"cursor":"7b2262223a66616c73652c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e67726170682e656e74697479466f6c6c6f772f336b6162636465666768696a62222c2276223a317d","follows":[{"cid":"bafyfixture2","did":"did:plc:abcdefghijklmnopqrstuvwz","indexedAt":"2025-01-03T00:00:00Z","record":{"$type":"app.certified.graph.entityFollow","createdAt":"2025-01-03T00:00:00Z","subject":{"cid":"bafyactivity2","uri":"at://did:plc:abcdefghijklmnopqrstuvwz/org.hypercerts.claim.activity/3kabcdefghijk"}},"uri":"at://did:plc:abcdefghijklmnopqrstuvwz/app.certified.graph.entityFollow/3kabcdefghijc"},{"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"app.certified.graph.entityFollow","createdAt":"2025-01-02T00:00:00Z","subject":{"cid":"bafyactivity1","uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.claim.activity/3kabcdefghijk"}},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.graph.entityFollow/3kabcdefghijb"}]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"cursor:valid:default","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"a97172131c"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"cursor:valid+limit=7:default","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",8],"sql":"a97172131c"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"year0000:cursor:default","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"filter:before=2025-06-01T00:00:00Z","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow","2025-06-01T00:00:00Z",26],"sql":"b1eb0cc1f8"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"filter:before=2025-06-01T00:00:00Z","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow","2025-06-01T00:00:00Z",26],"sql":"b1eb0cc1f8"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"filter:before=2025-06-01T00:00:00Z","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow","2025-06-01T00:00:00Z",26],"sql":"b1eb0cc1f8"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"error:limit=abc","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"error:limit=1.5","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"error:limit=-1","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"error:limit=0-string","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"error:limit=7-string","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow",8],"sql":"04564cc9e7"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"error:limit=empty","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"error:limit=array","calls":[],"outcome":{"error":"InvalidRequest: limit must occur once"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"error:cursor:non-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"error:cursor:empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"error:cursor:hex-non-json","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"error:cursor:array","calls":[],"outcome":{"error":"InvalidRequest: cursor must occur once"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"error:cursor:uppercase-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"cursor:length-at-cap","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"a97172131c"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"cursor:length-below-cap","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"a97172131c"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"cursor:length-above-cap","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"a97172131c"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:month-13","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:feb-30","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:leap-2024-valid","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"a97172131c"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:feb-29-2100","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:leap-2000-valid","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow","2000-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"a97172131c"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:second-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:hour-24","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:zone-minus-00-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:zone-plus-24-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:zone-minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:zone-plus-05-30-valid","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow","2025-01-01T00:00:00+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"a97172131c"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:fraction-valid","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow","2025-01-01T00:00:00.123456Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"a97172131c"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:fraction-offset-valid","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow","2025-01-01T00:00:00.5+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"a97172131c"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:no-zone","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:day-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:fraction-empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:fraction-empty-offset","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:month-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:lowercase-z","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:lowercase-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:zone-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:fraction-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:year-0001-valid","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow","0001-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"a97172131c"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:year-5-digit","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:end-of-year-valid","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow","2025-12-31T23:59:59Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"a97172131c"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:zone-plus-15-59","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow","2025-01-01T00:00:00+15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"a97172131c"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:zone-minus-15-59","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow","2025-01-01T00:00:00-15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"a97172131c"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:zone-plus-16-00","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow","2025-01-01T00:00:00+16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"a97172131c"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:zone-minus-16-00","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow","2025-01-01T00:00:00-16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"a97172131c"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:zone-plus-23-59-lua-accepted","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow","2025-01-01T00:00:00+23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"a97172131c"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:zone-minus-23-59-lua-accepted","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow","2025-01-01T00:00:00-23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"a97172131c"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:feb-29-2026","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:feb-29-2200","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:day-2025-01-31-valid","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow","2025-01-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"a97172131c"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:day-2025-01-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:day-2025-02-28-valid","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow","2025-02-28T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"a97172131c"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:day-2025-02-29-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:day-2025-03-31-valid","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow","2025-03-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"a97172131c"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:day-2025-03-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:day-2025-04-30-valid","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow","2025-04-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"a97172131c"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:day-2025-04-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:day-2025-05-31-valid","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow","2025-05-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"a97172131c"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:day-2025-05-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:day-2025-06-30-valid","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow","2025-06-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"a97172131c"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:day-2025-06-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:day-2025-07-31-valid","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow","2025-07-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"a97172131c"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:day-2025-07-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:day-2025-08-31-valid","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow","2025-08-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"a97172131c"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:day-2025-08-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:day-2025-09-30-valid","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow","2025-09-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"a97172131c"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:day-2025-09-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:day-2025-10-31-valid","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow","2025-10-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"a97172131c"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:day-2025-10-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:day-2025-11-30-valid","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow","2025-11-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"a97172131c"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:day-2025-11-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:day-2025-12-31-valid","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow","2025-12-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"a97172131c"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:day-2025-12-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:day-2024-02-29-valid","calls":[{"binds":["app.certified.graph.follow","app.certified.graph.entityFollow","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.graph.entityFollow/3kabcdefghijk",26],"sql":"a97172131c"}],"outcome":{"result":{"follows":[]}}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"datetime:cursor-t:day-2024-02-30-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"error:cursor:wrong-v","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"error:cursor:wrong-collection","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"error:cursor:missing-u","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"error:cursor:u-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"error:cursor:extra-key","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"error:cursor:bad-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"error:cursor:t-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"error:cursor:missing-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.graph.listRecentFollows","case":"error:cursor:bad-b","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another before value"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"default","calls":[{"binds":["app.certified.link.evm",26],"sql":"7054b0a493"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"limit=1","calls":[{"binds":["app.certified.link.evm",2],"sql":"7054b0a493"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"limit=7","calls":[{"binds":["app.certified.link.evm",8],"sql":"7054b0a493"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"limit=99","calls":[{"binds":["app.certified.link.evm",100],"sql":"7054b0a493"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"limit=100","calls":[{"binds":["app.certified.link.evm",101],"sql":"7054b0a493"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"limit=0","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"limit=101","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"cursor:malformed","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"sort=desc","calls":[{"binds":["app.certified.link.evm",26],"sql":"7054b0a493"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"paged:desc","calls":[{"binds":["app.certified.link.evm",3],"sql":"7054b0a493"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"cursor":"7b2264223a2264657363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e6c696e6b2e65766d2f336b6162636465666768696a62222c2276223a317d","evmLinks":[{"actor":{"did":"did:plc:abcdefghijklmnopqrstuvwz","organization":null,"profile":null},"cid":"bafyfixture2","did":"did:plc:abcdefghijklmnopqrstuvwz","indexedAt":"2025-01-03T00:00:00Z","record":{"$type":"app.certified.link.evm","createdAt":"2025-01-03T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwz/app.certified.link.evm/3kabcdefghijc"},{"actor":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"app.certified.link.evm","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.link.evm/3kabcdefghijb"}]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"cursor:valid:desc","calls":[{"binds":["app.certified.link.evm","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.link.evm/3kabcdefghijk",26],"sql":"9d1064a743"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"cursor:valid+limit=7:desc","calls":[{"binds":["app.certified.link.evm","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.link.evm/3kabcdefghijk",8],"sql":"9d1064a743"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"year0000:cursor:desc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"sort=asc","calls":[{"binds":["app.certified.link.evm",26],"sql":"a03dd453be"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"paged:asc","calls":[{"binds":["app.certified.link.evm",3],"sql":"a03dd453be"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"cursor":"7b2264223a22617363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e6c696e6b2e65766d2f336b6162636465666768696a62222c2276223a317d","evmLinks":[{"actor":{"did":"did:plc:abcdefghijklmnopqrstuvwx","organization":null,"profile":null},"cid":"bafyfixture0","did":"did:plc:abcdefghijklmnopqrstuvwx","indexedAt":"2025-01-01T00:00:00Z","record":{"$type":"app.certified.link.evm","createdAt":"2025-01-01T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.link.evm/3kabcdefghija"},{"actor":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"app.certified.link.evm","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.link.evm/3kabcdefghijb"}]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"cursor:valid:asc","calls":[{"binds":["app.certified.link.evm","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.link.evm/3kabcdefghijk",26],"sql":"deb4345aab"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"cursor:valid+limit=7:asc","calls":[{"binds":["app.certified.link.evm","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.link.evm/3kabcdefghijk",8],"sql":"deb4345aab"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"year0000:cursor:asc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"filter:actors:many","calls":[{"binds":["app.certified.link.evm","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwz",26],"sql":"cf034f3460"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"filter:actors:one","calls":[{"binds":["app.certified.link.evm","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"269699e131"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"filter:actors:one-scalar","calls":[{"binds":["app.certified.link.evm","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"269699e131"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"filter:actors:duplicate","calls":[{"binds":["app.certified.link.evm","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"269699e131"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"filter:actors:empty","calls":[{"binds":["app.certified.link.evm",26],"sql":"1d0659e810"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"filter:addresses:many","calls":[{"binds":["app.certified.link.evm","0x1111111111111111111111111111111111111111","0x2222222222222222222222222222222222222222","0x3333333333333333333333333333333333333333",26],"sql":"7f03b386ae"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"filter:addresses:one","calls":[{"binds":["app.certified.link.evm","0x1111111111111111111111111111111111111111",26],"sql":"99c5929723"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"filter:addresses:one-scalar","calls":[{"binds":["app.certified.link.evm","0x1111111111111111111111111111111111111111",26],"sql":"99c5929723"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"filter:addresses:duplicate","calls":[{"binds":["app.certified.link.evm","0x1111111111111111111111111111111111111111",26],"sql":"99c5929723"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"filter:addresses:empty","calls":[{"binds":["app.certified.link.evm",26],"sql":"1d0659e810"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"filter:all","calls":[{"binds":["app.certified.link.evm","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","0x2222222222222222222222222222222222222222","0x3333333333333333333333333333333333333333",26],"sql":"c9e349830f"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"error:sortDirection=bad","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"error:sortDirection=ASC","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"error:sortDirection=empty","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"error:limit=abc","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"error:limit=1.5","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"error:limit=-1","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"error:limit=0-string","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"error:limit=7-string","calls":[{"binds":["app.certified.link.evm",8],"sql":"7054b0a493"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"error:limit=empty","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"error:limit=array","calls":[],"outcome":{"error":"InvalidRequest: limit must occur once"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"error:sortDirection=array","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must occur once"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"error:cursor:non-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"error:cursor:empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"error:cursor:hex-non-json","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"error:cursor:array","calls":[],"outcome":{"error":"InvalidRequest: cursor must occur once"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"error:cursor:uppercase-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"cursor:length-at-cap","calls":[{"binds":["app.certified.link.evm","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.link.evm/3kabcdefghijk",26],"sql":"9d1064a743"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"cursor:length-below-cap","calls":[{"binds":["app.certified.link.evm","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.link.evm/3kabcdefghijk",26],"sql":"9d1064a743"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"cursor:length-above-cap","calls":[{"binds":["app.certified.link.evm","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.link.evm/3kabcdefghijk",26],"sql":"9d1064a743"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:month-13","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:feb-30","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:leap-2024-valid","calls":[{"binds":["app.certified.link.evm","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.link.evm/3kabcdefghijk",26],"sql":"9d1064a743"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:feb-29-2100","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:leap-2000-valid","calls":[{"binds":["app.certified.link.evm","2000-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.link.evm/3kabcdefghijk",26],"sql":"9d1064a743"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:second-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:hour-24","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:zone-minus-00-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:zone-plus-24-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:zone-minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:zone-plus-05-30-valid","calls":[{"binds":["app.certified.link.evm","2025-01-01T00:00:00+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.link.evm/3kabcdefghijk",26],"sql":"9d1064a743"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:fraction-valid","calls":[{"binds":["app.certified.link.evm","2025-01-01T00:00:00.123456Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.link.evm/3kabcdefghijk",26],"sql":"9d1064a743"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:fraction-offset-valid","calls":[{"binds":["app.certified.link.evm","2025-01-01T00:00:00.5+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.link.evm/3kabcdefghijk",26],"sql":"9d1064a743"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:no-zone","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:day-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:fraction-empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:fraction-empty-offset","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:month-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:lowercase-z","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:lowercase-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:zone-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:fraction-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:year-0001-valid","calls":[{"binds":["app.certified.link.evm","0001-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.link.evm/3kabcdefghijk",26],"sql":"9d1064a743"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:year-5-digit","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:end-of-year-valid","calls":[{"binds":["app.certified.link.evm","2025-12-31T23:59:59Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.link.evm/3kabcdefghijk",26],"sql":"9d1064a743"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:zone-plus-15-59","calls":[{"binds":["app.certified.link.evm","2025-01-01T00:00:00+15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.link.evm/3kabcdefghijk",26],"sql":"9d1064a743"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:zone-minus-15-59","calls":[{"binds":["app.certified.link.evm","2025-01-01T00:00:00-15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.link.evm/3kabcdefghijk",26],"sql":"9d1064a743"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:zone-plus-16-00","calls":[{"binds":["app.certified.link.evm","2025-01-01T00:00:00+16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.link.evm/3kabcdefghijk",26],"sql":"9d1064a743"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:zone-minus-16-00","calls":[{"binds":["app.certified.link.evm","2025-01-01T00:00:00-16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.link.evm/3kabcdefghijk",26],"sql":"9d1064a743"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:zone-plus-23-59-lua-accepted","calls":[{"binds":["app.certified.link.evm","2025-01-01T00:00:00+23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.link.evm/3kabcdefghijk",26],"sql":"9d1064a743"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:zone-minus-23-59-lua-accepted","calls":[{"binds":["app.certified.link.evm","2025-01-01T00:00:00-23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.link.evm/3kabcdefghijk",26],"sql":"9d1064a743"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:feb-29-2026","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:feb-29-2200","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:day-2025-01-31-valid","calls":[{"binds":["app.certified.link.evm","2025-01-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.link.evm/3kabcdefghijk",26],"sql":"9d1064a743"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:day-2025-01-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:day-2025-02-28-valid","calls":[{"binds":["app.certified.link.evm","2025-02-28T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.link.evm/3kabcdefghijk",26],"sql":"9d1064a743"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:day-2025-02-29-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:day-2025-03-31-valid","calls":[{"binds":["app.certified.link.evm","2025-03-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.link.evm/3kabcdefghijk",26],"sql":"9d1064a743"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:day-2025-03-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:day-2025-04-30-valid","calls":[{"binds":["app.certified.link.evm","2025-04-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.link.evm/3kabcdefghijk",26],"sql":"9d1064a743"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:day-2025-04-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:day-2025-05-31-valid","calls":[{"binds":["app.certified.link.evm","2025-05-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.link.evm/3kabcdefghijk",26],"sql":"9d1064a743"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:day-2025-05-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:day-2025-06-30-valid","calls":[{"binds":["app.certified.link.evm","2025-06-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.link.evm/3kabcdefghijk",26],"sql":"9d1064a743"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:day-2025-06-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:day-2025-07-31-valid","calls":[{"binds":["app.certified.link.evm","2025-07-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.link.evm/3kabcdefghijk",26],"sql":"9d1064a743"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:day-2025-07-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:day-2025-08-31-valid","calls":[{"binds":["app.certified.link.evm","2025-08-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.link.evm/3kabcdefghijk",26],"sql":"9d1064a743"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:day-2025-08-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:day-2025-09-30-valid","calls":[{"binds":["app.certified.link.evm","2025-09-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.link.evm/3kabcdefghijk",26],"sql":"9d1064a743"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:day-2025-09-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:day-2025-10-31-valid","calls":[{"binds":["app.certified.link.evm","2025-10-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.link.evm/3kabcdefghijk",26],"sql":"9d1064a743"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:day-2025-10-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:day-2025-11-30-valid","calls":[{"binds":["app.certified.link.evm","2025-11-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.link.evm/3kabcdefghijk",26],"sql":"9d1064a743"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:day-2025-11-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:day-2025-12-31-valid","calls":[{"binds":["app.certified.link.evm","2025-12-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.link.evm/3kabcdefghijk",26],"sql":"9d1064a743"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:day-2025-12-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:day-2024-02-29-valid","calls":[{"binds":["app.certified.link.evm","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.link.evm/3kabcdefghijk",26],"sql":"9d1064a743"}],"outcome":{"result":{"evmLinks":[]}}} +{"endpoint":"app.certified.link.listEvmLinks","case":"datetime:cursor-t:day-2024-02-30-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"error:cursor:wrong-v","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"error:cursor:wrong-collection","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"error:cursor:missing-u","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"error:cursor:u-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"error:cursor:extra-key","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"error:cursor:wrong-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"error:cursor:opposite-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"error:cursor:bad-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"error:cursor:t-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.link.listEvmLinks","case":"error:cursor:missing-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.location.listLocations","case":"default","calls":[{"binds":["app.certified.location",26],"sql":"fdd374e87e"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"limit=1","calls":[{"binds":["app.certified.location",2],"sql":"fdd374e87e"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"limit=7","calls":[{"binds":["app.certified.location",8],"sql":"fdd374e87e"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"limit=99","calls":[{"binds":["app.certified.location",100],"sql":"fdd374e87e"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"limit=100","calls":[{"binds":["app.certified.location",101],"sql":"fdd374e87e"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"limit=0","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.location.listLocations","case":"limit=101","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.location.listLocations","case":"cursor:malformed","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"sort=desc","calls":[{"binds":["app.certified.location",26],"sql":"fdd374e87e"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"paged:desc","calls":[{"binds":["app.certified.location",3],"sql":"fdd374e87e"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"cursor":"7b2264223a2264657363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e6c6f636174696f6e2f336b6162636465666768696a62222c2276223a317d","locations":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwz","organization":null,"profile":null},"cid":"bafyfixture2","did":"did:plc:abcdefghijklmnopqrstuvwz","indexedAt":"2025-01-03T00:00:00Z","record":{"$type":"app.certified.location","createdAt":"2025-01-03T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwz/app.certified.location/3kabcdefghijc"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"app.certified.location","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.location/3kabcdefghijb"}]}}} +{"endpoint":"app.certified.location.listLocations","case":"cursor:valid:desc","calls":[{"binds":["app.certified.location","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"cursor:valid+limit=7:desc","calls":[{"binds":["app.certified.location","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijk",8],"sql":"2712d7dd78"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"year0000:cursor:desc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"sort=asc","calls":[{"binds":["app.certified.location",26],"sql":"fbade26882"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"paged:asc","calls":[{"binds":["app.certified.location",3],"sql":"fbade26882"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"cursor":"7b2264223a22617363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6170702e6365727469666965642e6c6f636174696f6e2f336b6162636465666768696a62222c2276223a317d","locations":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwx","organization":null,"profile":null},"cid":"bafyfixture0","did":"did:plc:abcdefghijklmnopqrstuvwx","indexedAt":"2025-01-01T00:00:00Z","record":{"$type":"app.certified.location","createdAt":"2025-01-01T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghija"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"app.certified.location","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/app.certified.location/3kabcdefghijb"}]}}} +{"endpoint":"app.certified.location.listLocations","case":"cursor:valid:asc","calls":[{"binds":["app.certified.location","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijk",26],"sql":"f415ca0b71"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"cursor:valid+limit=7:asc","calls":[{"binds":["app.certified.location","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijk",8],"sql":"f415ca0b71"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"year0000:cursor:asc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"filter:authors:many","calls":[{"binds":["app.certified.location","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwz",26],"sql":"056193581d"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"filter:authors:one","calls":[{"binds":["app.certified.location","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"cf715d2ab7"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"filter:authors:one-scalar","calls":[{"binds":["app.certified.location","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"cf715d2ab7"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"filter:authors:duplicate","calls":[{"binds":["app.certified.location","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"cf715d2ab7"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"filter:authors:empty","calls":[{"binds":["app.certified.location",26],"sql":"089df365a0"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"filter:uris:many","calls":[{"binds":["app.certified.location","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghija","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijb","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijc",26],"sql":"ca16d794fb"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"filter:uris:one","calls":[{"binds":["app.certified.location","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghija",26],"sql":"8d97cb081a"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"filter:uris:one-scalar","calls":[{"binds":["app.certified.location","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghija",26],"sql":"8d97cb081a"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"filter:uris:duplicate","calls":[{"binds":["app.certified.location","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghija",26],"sql":"8d97cb081a"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"filter:uris:empty","calls":[{"binds":["app.certified.location",26],"sql":"089df365a0"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"filter:locationTypes:many","calls":[{"binds":["app.certified.location","coordinate-decimal","geojson","address",26],"sql":"03715b3085"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"filter:locationTypes:one","calls":[{"binds":["app.certified.location","coordinate-decimal",26],"sql":"bb7a1812ec"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"filter:locationTypes:one-scalar","calls":[{"binds":["app.certified.location","coordinate-decimal",26],"sql":"bb7a1812ec"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"filter:locationTypes:duplicate","calls":[{"binds":["app.certified.location","coordinate-decimal",26],"sql":"bb7a1812ec"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"filter:locationTypes:empty","calls":[{"binds":["app.certified.location",26],"sql":"089df365a0"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"filter:all","calls":[{"binds":["app.certified.location","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijb","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijc","coordinate-decimal","geojson",26],"sql":"39d1ecf7da"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"error:sortDirection=bad","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.location.listLocations","case":"error:sortDirection=ASC","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.location.listLocations","case":"error:sortDirection=empty","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"app.certified.location.listLocations","case":"error:limit=abc","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.location.listLocations","case":"error:limit=1.5","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.location.listLocations","case":"error:limit=-1","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.location.listLocations","case":"error:limit=0-string","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.location.listLocations","case":"error:limit=7-string","calls":[{"binds":["app.certified.location",8],"sql":"fdd374e87e"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"error:limit=empty","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"app.certified.location.listLocations","case":"error:limit=array","calls":[],"outcome":{"error":"InvalidRequest: limit must occur once"}} +{"endpoint":"app.certified.location.listLocations","case":"error:sortDirection=array","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must occur once"}} +{"endpoint":"app.certified.location.listLocations","case":"error:cursor:non-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"error:cursor:empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.location.listLocations","case":"error:cursor:hex-non-json","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.location.listLocations","case":"error:cursor:array","calls":[],"outcome":{"error":"InvalidRequest: cursor must occur once"}} +{"endpoint":"app.certified.location.listLocations","case":"error:cursor:uppercase-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"cursor:length-at-cap","calls":[{"binds":["app.certified.location","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"cursor:length-below-cap","calls":[{"binds":["app.certified.location","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"cursor:length-above-cap","calls":[{"binds":["app.certified.location","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:month-13","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:feb-30","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:leap-2024-valid","calls":[{"binds":["app.certified.location","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:feb-29-2100","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:leap-2000-valid","calls":[{"binds":["app.certified.location","2000-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:second-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:hour-24","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:zone-minus-00-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:zone-plus-24-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:zone-minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:zone-plus-05-30-valid","calls":[{"binds":["app.certified.location","2025-01-01T00:00:00+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:fraction-valid","calls":[{"binds":["app.certified.location","2025-01-01T00:00:00.123456Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:fraction-offset-valid","calls":[{"binds":["app.certified.location","2025-01-01T00:00:00.5+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:no-zone","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:day-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:fraction-empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:fraction-empty-offset","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:month-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:lowercase-z","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:lowercase-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:zone-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:fraction-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:year-0001-valid","calls":[{"binds":["app.certified.location","0001-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:year-5-digit","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:end-of-year-valid","calls":[{"binds":["app.certified.location","2025-12-31T23:59:59Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:zone-plus-15-59","calls":[{"binds":["app.certified.location","2025-01-01T00:00:00+15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:zone-minus-15-59","calls":[{"binds":["app.certified.location","2025-01-01T00:00:00-15:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:zone-plus-16-00","calls":[{"binds":["app.certified.location","2025-01-01T00:00:00+16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:zone-minus-16-00","calls":[{"binds":["app.certified.location","2025-01-01T00:00:00-16:00","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:zone-plus-23-59-lua-accepted","calls":[{"binds":["app.certified.location","2025-01-01T00:00:00+23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:zone-minus-23-59-lua-accepted","calls":[{"binds":["app.certified.location","2025-01-01T00:00:00-23:59","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:feb-29-2026","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:feb-29-2200","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:day-2025-01-31-valid","calls":[{"binds":["app.certified.location","2025-01-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:day-2025-01-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:day-2025-02-28-valid","calls":[{"binds":["app.certified.location","2025-02-28T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:day-2025-02-29-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:day-2025-03-31-valid","calls":[{"binds":["app.certified.location","2025-03-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:day-2025-03-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:day-2025-04-30-valid","calls":[{"binds":["app.certified.location","2025-04-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:day-2025-04-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:day-2025-05-31-valid","calls":[{"binds":["app.certified.location","2025-05-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:day-2025-05-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:day-2025-06-30-valid","calls":[{"binds":["app.certified.location","2025-06-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:day-2025-06-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:day-2025-07-31-valid","calls":[{"binds":["app.certified.location","2025-07-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:day-2025-07-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:day-2025-08-31-valid","calls":[{"binds":["app.certified.location","2025-08-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:day-2025-08-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:day-2025-09-30-valid","calls":[{"binds":["app.certified.location","2025-09-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:day-2025-09-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:day-2025-10-31-valid","calls":[{"binds":["app.certified.location","2025-10-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:day-2025-10-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:day-2025-11-30-valid","calls":[{"binds":["app.certified.location","2025-11-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:day-2025-11-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:day-2025-12-31-valid","calls":[{"binds":["app.certified.location","2025-12-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:day-2025-12-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:day-2024-02-29-valid","calls":[{"binds":["app.certified.location","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/app.certified.location/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"locations":[]}}} +{"endpoint":"app.certified.location.listLocations","case":"datetime:cursor-t:day-2024-02-30-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"error:cursor:wrong-v","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.location.listLocations","case":"error:cursor:wrong-collection","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"error:cursor:missing-u","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.location.listLocations","case":"error:cursor:u-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.location.listLocations","case":"error:cursor:extra-key","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"error:cursor:wrong-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.location.listLocations","case":"error:cursor:opposite-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.location.listLocations","case":"error:cursor:bad-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"app.certified.location.listLocations","case":"error:cursor:t-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"app.certified.location.listLocations","case":"error:cursor:missing-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"default","calls":[{"binds":["org.hypercerts.claim.activity",26],"sql":"d1229757a9"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"limit=1","calls":[{"binds":["org.hypercerts.claim.activity",2],"sql":"d1229757a9"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"limit=7","calls":[{"binds":["org.hypercerts.claim.activity",8],"sql":"d1229757a9"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"limit=99","calls":[{"binds":["org.hypercerts.claim.activity",100],"sql":"d1229757a9"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"limit=100","calls":[{"binds":["org.hypercerts.claim.activity",101],"sql":"d1229757a9"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"limit=0","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"limit=101","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"cursor:malformed","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"sort=desc","calls":[{"binds":["org.hypercerts.claim.activity",26],"sql":"d1229757a9"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"paged:desc","calls":[{"binds":["org.hypercerts.claim.activity",3],"sql":"d1229757a9"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"26f10c09e4"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"26f10c09e4"}],"outcome":{"result":{"activities":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwz","organization":null,"profile":null},"cid":"bafyfixture2","did":"did:plc:abcdefghijklmnopqrstuvwz","indexedAt":"2025-01-03T00:00:00Z","record":{"$type":"org.hypercerts.claim.activity","createdAt":"2025-01-03T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwz/org.hypercerts.claim.activity/3kabcdefghijc"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"org.hypercerts.claim.activity","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.claim.activity/3kabcdefghijb"}],"cursor":"7b2264223a2264657363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6f72672e687970657263657274732e636c61696d2e61637469766974792f336b6162636465666768696a62222c2276223a317d"}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"cursor:valid:desc","calls":[{"binds":["org.hypercerts.claim.activity","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"1df3d14bb5"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"cursor:valid+limit=7:desc","calls":[{"binds":["org.hypercerts.claim.activity","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",8],"sql":"1df3d14bb5"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"year0000:cursor:desc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"sort=asc","calls":[{"binds":["org.hypercerts.claim.activity",26],"sql":"a916de18ad"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"paged:asc","calls":[{"binds":["org.hypercerts.claim.activity",3],"sql":"a916de18ad"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"26f10c09e4"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"26f10c09e4"}],"outcome":{"result":{"activities":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwx","organization":null,"profile":null},"cid":"bafyfixture0","did":"did:plc:abcdefghijklmnopqrstuvwx","indexedAt":"2025-01-01T00:00:00Z","record":{"$type":"org.hypercerts.claim.activity","createdAt":"2025-01-01T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"org.hypercerts.claim.activity","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.claim.activity/3kabcdefghijb"}],"cursor":"7b2264223a22617363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6f72672e687970657263657274732e636c61696d2e61637469766974792f336b6162636465666768696a62222c2276223a317d"}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"cursor:valid:asc","calls":[{"binds":["org.hypercerts.claim.activity","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"79c0ea89fc"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"cursor:valid+limit=7:asc","calls":[{"binds":["org.hypercerts.claim.activity","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",8],"sql":"79c0ea89fc"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"year0000:cursor:asc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"filter:authors:many","calls":[{"binds":["org.hypercerts.claim.activity","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwz",26],"sql":"3d578b7933"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"filter:authors:one","calls":[{"binds":["org.hypercerts.claim.activity","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"80efd5c186"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"filter:authors:one-scalar","calls":[{"binds":["org.hypercerts.claim.activity","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"80efd5c186"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"filter:authors:duplicate","calls":[{"binds":["org.hypercerts.claim.activity","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"80efd5c186"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"filter:authors:empty","calls":[{"binds":["org.hypercerts.claim.activity",26],"sql":"cea068549c"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"filter:hasOrganizationRecord=boolean:true","calls":[{"binds":["org.hypercerts.claim.activity",26],"sql":"8476426abd"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"filter:hasOrganizationRecord=boolean:false","calls":[{"binds":["org.hypercerts.claim.activity",26],"sql":"9f1015cbbe"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"filter:hasOrganizationRecord=string:true","calls":[{"binds":["org.hypercerts.claim.activity",26],"sql":"8476426abd"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"filter:hasOrganizationRecord=string:false","calls":[{"binds":["org.hypercerts.claim.activity",26],"sql":"9f1015cbbe"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"filter:contributors:many","calls":[{"binds":["org.hypercerts.claim.activity","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwz",26],"sql":"da9fdeff90"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"filter:contributors:one","calls":[{"binds":["org.hypercerts.claim.activity","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"17c8e5bc72"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"filter:contributors:one-scalar","calls":[{"binds":["org.hypercerts.claim.activity","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"17c8e5bc72"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"filter:contributors:duplicate","calls":[{"binds":["org.hypercerts.claim.activity","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"17c8e5bc72"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"filter:contributors:empty","calls":[{"binds":["org.hypercerts.claim.activity",26],"sql":"cea068549c"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"filter:involvedActors:many","calls":[{"binds":["org.hypercerts.claim.activity","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwz",26],"sql":"a4737487ed"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"filter:involvedActors:one","calls":[{"binds":["org.hypercerts.claim.activity","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"eb2ff4e9da"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"filter:involvedActors:one-scalar","calls":[{"binds":["org.hypercerts.claim.activity","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"eb2ff4e9da"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"filter:involvedActors:duplicate","calls":[{"binds":["org.hypercerts.claim.activity","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"eb2ff4e9da"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"filter:involvedActors:empty","calls":[{"binds":["org.hypercerts.claim.activity",26],"sql":"cea068549c"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"filter:uris:many","calls":[{"binds":["org.hypercerts.claim.activity","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijb","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijc",26],"sql":"b69127d8e5"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"filter:uris:one","calls":[{"binds":["org.hypercerts.claim.activity","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija",26],"sql":"a924fe0ac0"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"filter:uris:one-scalar","calls":[{"binds":["org.hypercerts.claim.activity","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija",26],"sql":"a924fe0ac0"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"filter:uris:duplicate","calls":[{"binds":["org.hypercerts.claim.activity","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija",26],"sql":"a924fe0ac0"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"filter:uris:empty","calls":[{"binds":["org.hypercerts.claim.activity",26],"sql":"cea068549c"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"filter:all","calls":[{"binds":["org.hypercerts.claim.activity","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwz","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijb",26],"sql":"af0b53881c"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"error:sortDirection=bad","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"error:sortDirection=ASC","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"error:sortDirection=empty","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"error:limit=abc","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"error:limit=1.5","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"error:limit=-1","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"error:limit=0-string","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"error:limit=7-string","calls":[{"binds":["org.hypercerts.claim.activity",8],"sql":"d1229757a9"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"error:limit=empty","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"error:limit=array","calls":[],"outcome":{"error":"InvalidRequest: limit must occur once"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"error:sortDirection=array","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must occur once"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"error:cursor:non-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"error:cursor:empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"error:cursor:hex-non-json","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"error:cursor:array","calls":[],"outcome":{"error":"InvalidRequest: cursor must occur once"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"error:cursor:uppercase-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"cursor:length-at-cap","calls":[{"binds":["org.hypercerts.claim.activity","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"1df3d14bb5"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"cursor:length-below-cap","calls":[{"binds":["org.hypercerts.claim.activity","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"1df3d14bb5"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"cursor:length-above-cap","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:month-13","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:feb-30","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:leap-2024-valid","calls":[{"binds":["org.hypercerts.claim.activity","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"1df3d14bb5"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:feb-29-2100","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:leap-2000-valid","calls":[{"binds":["org.hypercerts.claim.activity","2000-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"1df3d14bb5"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:second-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:hour-24","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:zone-minus-00-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:zone-plus-24-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:zone-minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:zone-plus-05-30-valid","calls":[{"binds":["org.hypercerts.claim.activity","2025-01-01T00:00:00+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"1df3d14bb5"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:fraction-valid","calls":[{"binds":["org.hypercerts.claim.activity","2025-01-01T00:00:00.123456Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"1df3d14bb5"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:fraction-offset-valid","calls":[{"binds":["org.hypercerts.claim.activity","2025-01-01T00:00:00.5+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"1df3d14bb5"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:no-zone","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:day-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:fraction-empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:fraction-empty-offset","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:month-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:lowercase-z","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:lowercase-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:zone-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:fraction-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:year-0001-valid","calls":[{"binds":["org.hypercerts.claim.activity","0001-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"1df3d14bb5"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:year-5-digit","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:end-of-year-valid","calls":[{"binds":["org.hypercerts.claim.activity","2025-12-31T23:59:59Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"1df3d14bb5"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:zone-plus-15-59","calls":[{"binds":["org.hypercerts.claim.activity","2025-01-01T00:00:00+15:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"1df3d14bb5"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:zone-minus-15-59","calls":[{"binds":["org.hypercerts.claim.activity","2025-01-01T00:00:00-15:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"1df3d14bb5"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:zone-plus-16-00","calls":[{"binds":["org.hypercerts.claim.activity","2025-01-01T00:00:00+16:00","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"1df3d14bb5"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:zone-minus-16-00","calls":[{"binds":["org.hypercerts.claim.activity","2025-01-01T00:00:00-16:00","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"1df3d14bb5"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:zone-plus-23-59-lua-accepted","calls":[{"binds":["org.hypercerts.claim.activity","2025-01-01T00:00:00+23:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"1df3d14bb5"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:zone-minus-23-59-lua-accepted","calls":[{"binds":["org.hypercerts.claim.activity","2025-01-01T00:00:00-23:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"1df3d14bb5"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:feb-29-2026","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:feb-29-2200","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:day-2025-01-31-valid","calls":[{"binds":["org.hypercerts.claim.activity","2025-01-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"1df3d14bb5"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:day-2025-01-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:day-2025-02-28-valid","calls":[{"binds":["org.hypercerts.claim.activity","2025-02-28T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"1df3d14bb5"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:day-2025-02-29-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:day-2025-03-31-valid","calls":[{"binds":["org.hypercerts.claim.activity","2025-03-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"1df3d14bb5"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:day-2025-03-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:day-2025-04-30-valid","calls":[{"binds":["org.hypercerts.claim.activity","2025-04-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"1df3d14bb5"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:day-2025-04-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:day-2025-05-31-valid","calls":[{"binds":["org.hypercerts.claim.activity","2025-05-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"1df3d14bb5"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:day-2025-05-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:day-2025-06-30-valid","calls":[{"binds":["org.hypercerts.claim.activity","2025-06-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"1df3d14bb5"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:day-2025-06-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:day-2025-07-31-valid","calls":[{"binds":["org.hypercerts.claim.activity","2025-07-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"1df3d14bb5"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:day-2025-07-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:day-2025-08-31-valid","calls":[{"binds":["org.hypercerts.claim.activity","2025-08-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"1df3d14bb5"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:day-2025-08-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:day-2025-09-30-valid","calls":[{"binds":["org.hypercerts.claim.activity","2025-09-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"1df3d14bb5"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:day-2025-09-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:day-2025-10-31-valid","calls":[{"binds":["org.hypercerts.claim.activity","2025-10-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"1df3d14bb5"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:day-2025-10-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:day-2025-11-30-valid","calls":[{"binds":["org.hypercerts.claim.activity","2025-11-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"1df3d14bb5"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:day-2025-11-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:day-2025-12-31-valid","calls":[{"binds":["org.hypercerts.claim.activity","2025-12-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"1df3d14bb5"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:day-2025-12-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:day-2024-02-29-valid","calls":[{"binds":["org.hypercerts.claim.activity","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"1df3d14bb5"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"datetime:cursor-t:day-2024-02-30-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"error:cursor:wrong-v","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"error:cursor:wrong-collection","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"error:cursor:missing-u","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"error:cursor:u-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"error:cursor:extra-key","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"error:cursor:wrong-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"error:cursor:opposite-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"error:cursor:bad-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"error:cursor:t-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.listActivities","case":"error:cursor:missing-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"default","calls":[{"binds":["org.hypercerts.claim.contribution",26],"sql":"6a0e1152da"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"limit=1","calls":[{"binds":["org.hypercerts.claim.contribution",2],"sql":"6a0e1152da"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"limit=7","calls":[{"binds":["org.hypercerts.claim.contribution",8],"sql":"6a0e1152da"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"limit=99","calls":[{"binds":["org.hypercerts.claim.contribution",100],"sql":"6a0e1152da"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"limit=100","calls":[{"binds":["org.hypercerts.claim.contribution",101],"sql":"6a0e1152da"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"limit=0","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"limit=101","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"cursor:malformed","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"sort=desc","calls":[{"binds":["org.hypercerts.claim.contribution",26],"sql":"6a0e1152da"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"paged:desc","calls":[{"binds":["org.hypercerts.claim.contribution",3],"sql":"6a0e1152da"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwz"],"sql":"d4529026b3"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwz"],"sql":"d4529026b3"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"d4529026b3"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"d4529026b3"}],"outcome":{"result":{"contributions":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwz","organization":null,"profile":null},"cid":"bafyfixture2","did":"did:plc:abcdefghijklmnopqrstuvwz","indexedAt":"2025-01-03T00:00:00Z","record":{"$type":"org.hypercerts.claim.contribution","createdAt":"2025-01-03T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwz/org.hypercerts.claim.contribution/3kabcdefghijc"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"org.hypercerts.claim.contribution","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.claim.contribution/3kabcdefghijb"}],"cursor":"7b2264223a2264657363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6f72672e687970657263657274732e636c61696d2e636f6e747269627574696f6e2f336b6162636465666768696a62222c2276223a317d"}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"cursor:valid:desc","calls":[{"binds":["org.hypercerts.claim.contribution","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contribution/3kabcdefghijk",26],"sql":"cd635ae52f"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"cursor:valid+limit=7:desc","calls":[{"binds":["org.hypercerts.claim.contribution","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contribution/3kabcdefghijk",8],"sql":"cd635ae52f"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"year0000:cursor:desc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"sort=asc","calls":[{"binds":["org.hypercerts.claim.contribution",26],"sql":"1bebe37cb6"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"paged:asc","calls":[{"binds":["org.hypercerts.claim.contribution",3],"sql":"1bebe37cb6"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwx"],"sql":"d4529026b3"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwx"],"sql":"d4529026b3"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"d4529026b3"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"d4529026b3"}],"outcome":{"result":{"contributions":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwx","organization":null,"profile":null},"cid":"bafyfixture0","did":"did:plc:abcdefghijklmnopqrstuvwx","indexedAt":"2025-01-01T00:00:00Z","record":{"$type":"org.hypercerts.claim.contribution","createdAt":"2025-01-01T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contribution/3kabcdefghija"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"org.hypercerts.claim.contribution","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.claim.contribution/3kabcdefghijb"}],"cursor":"7b2264223a22617363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6f72672e687970657263657274732e636c61696d2e636f6e747269627574696f6e2f336b6162636465666768696a62222c2276223a317d"}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"cursor:valid:asc","calls":[{"binds":["org.hypercerts.claim.contribution","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contribution/3kabcdefghijk",26],"sql":"ea7b9d6728"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"cursor:valid+limit=7:asc","calls":[{"binds":["org.hypercerts.claim.contribution","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contribution/3kabcdefghijk",8],"sql":"ea7b9d6728"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"year0000:cursor:asc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"filter:authors:many","calls":[{"binds":["org.hypercerts.claim.contribution","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwz",26],"sql":"f56f61aad1"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"filter:authors:one","calls":[{"binds":["org.hypercerts.claim.contribution","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"5c2951cb59"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"filter:authors:one-scalar","calls":[{"binds":["org.hypercerts.claim.contribution","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"5c2951cb59"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"filter:authors:duplicate","calls":[{"binds":["org.hypercerts.claim.contribution","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"5c2951cb59"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"filter:authors:empty","calls":[{"binds":["org.hypercerts.claim.contribution",26],"sql":"6f939d06b4"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"error:sortDirection=bad","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"error:sortDirection=ASC","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"error:sortDirection=empty","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"error:limit=abc","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"error:limit=1.5","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"error:limit=-1","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"error:limit=0-string","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"error:limit=7-string","calls":[{"binds":["org.hypercerts.claim.contribution",8],"sql":"6a0e1152da"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"error:limit=empty","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"error:limit=array","calls":[],"outcome":{"error":"InvalidRequest: limit must occur once"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"error:sortDirection=array","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must occur once"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"error:cursor:non-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"error:cursor:empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"error:cursor:hex-non-json","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"error:cursor:array","calls":[],"outcome":{"error":"InvalidRequest: cursor must occur once"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"error:cursor:uppercase-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"cursor:length-at-cap","calls":[{"binds":["org.hypercerts.claim.contribution","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contribution/3kabcdefghijk",26],"sql":"cd635ae52f"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"cursor:length-below-cap","calls":[{"binds":["org.hypercerts.claim.contribution","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contribution/3kabcdefghijk",26],"sql":"cd635ae52f"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"cursor:length-above-cap","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:month-13","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:feb-30","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:leap-2024-valid","calls":[{"binds":["org.hypercerts.claim.contribution","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contribution/3kabcdefghijk",26],"sql":"cd635ae52f"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:feb-29-2100","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:leap-2000-valid","calls":[{"binds":["org.hypercerts.claim.contribution","2000-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contribution/3kabcdefghijk",26],"sql":"cd635ae52f"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:second-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:hour-24","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:zone-minus-00-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:zone-plus-24-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:zone-minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:zone-plus-05-30-valid","calls":[{"binds":["org.hypercerts.claim.contribution","2025-01-01T00:00:00+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contribution/3kabcdefghijk",26],"sql":"cd635ae52f"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:fraction-valid","calls":[{"binds":["org.hypercerts.claim.contribution","2025-01-01T00:00:00.123456Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contribution/3kabcdefghijk",26],"sql":"cd635ae52f"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:fraction-offset-valid","calls":[{"binds":["org.hypercerts.claim.contribution","2025-01-01T00:00:00.5+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contribution/3kabcdefghijk",26],"sql":"cd635ae52f"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:no-zone","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:day-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:fraction-empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:fraction-empty-offset","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:month-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:lowercase-z","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:lowercase-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:zone-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:fraction-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:year-0001-valid","calls":[{"binds":["org.hypercerts.claim.contribution","0001-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contribution/3kabcdefghijk",26],"sql":"cd635ae52f"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:year-5-digit","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:end-of-year-valid","calls":[{"binds":["org.hypercerts.claim.contribution","2025-12-31T23:59:59Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contribution/3kabcdefghijk",26],"sql":"cd635ae52f"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:zone-plus-15-59","calls":[{"binds":["org.hypercerts.claim.contribution","2025-01-01T00:00:00+15:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contribution/3kabcdefghijk",26],"sql":"cd635ae52f"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:zone-minus-15-59","calls":[{"binds":["org.hypercerts.claim.contribution","2025-01-01T00:00:00-15:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contribution/3kabcdefghijk",26],"sql":"cd635ae52f"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:zone-plus-16-00","calls":[{"binds":["org.hypercerts.claim.contribution","2025-01-01T00:00:00+16:00","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contribution/3kabcdefghijk",26],"sql":"cd635ae52f"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:zone-minus-16-00","calls":[{"binds":["org.hypercerts.claim.contribution","2025-01-01T00:00:00-16:00","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contribution/3kabcdefghijk",26],"sql":"cd635ae52f"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:zone-plus-23-59-lua-accepted","calls":[{"binds":["org.hypercerts.claim.contribution","2025-01-01T00:00:00+23:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contribution/3kabcdefghijk",26],"sql":"cd635ae52f"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:zone-minus-23-59-lua-accepted","calls":[{"binds":["org.hypercerts.claim.contribution","2025-01-01T00:00:00-23:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contribution/3kabcdefghijk",26],"sql":"cd635ae52f"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:feb-29-2026","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:feb-29-2200","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:day-2025-01-31-valid","calls":[{"binds":["org.hypercerts.claim.contribution","2025-01-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contribution/3kabcdefghijk",26],"sql":"cd635ae52f"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:day-2025-01-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:day-2025-02-28-valid","calls":[{"binds":["org.hypercerts.claim.contribution","2025-02-28T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contribution/3kabcdefghijk",26],"sql":"cd635ae52f"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:day-2025-02-29-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:day-2025-03-31-valid","calls":[{"binds":["org.hypercerts.claim.contribution","2025-03-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contribution/3kabcdefghijk",26],"sql":"cd635ae52f"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:day-2025-03-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:day-2025-04-30-valid","calls":[{"binds":["org.hypercerts.claim.contribution","2025-04-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contribution/3kabcdefghijk",26],"sql":"cd635ae52f"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:day-2025-04-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:day-2025-05-31-valid","calls":[{"binds":["org.hypercerts.claim.contribution","2025-05-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contribution/3kabcdefghijk",26],"sql":"cd635ae52f"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:day-2025-05-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:day-2025-06-30-valid","calls":[{"binds":["org.hypercerts.claim.contribution","2025-06-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contribution/3kabcdefghijk",26],"sql":"cd635ae52f"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:day-2025-06-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:day-2025-07-31-valid","calls":[{"binds":["org.hypercerts.claim.contribution","2025-07-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contribution/3kabcdefghijk",26],"sql":"cd635ae52f"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:day-2025-07-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:day-2025-08-31-valid","calls":[{"binds":["org.hypercerts.claim.contribution","2025-08-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contribution/3kabcdefghijk",26],"sql":"cd635ae52f"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:day-2025-08-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:day-2025-09-30-valid","calls":[{"binds":["org.hypercerts.claim.contribution","2025-09-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contribution/3kabcdefghijk",26],"sql":"cd635ae52f"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:day-2025-09-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:day-2025-10-31-valid","calls":[{"binds":["org.hypercerts.claim.contribution","2025-10-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contribution/3kabcdefghijk",26],"sql":"cd635ae52f"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:day-2025-10-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:day-2025-11-30-valid","calls":[{"binds":["org.hypercerts.claim.contribution","2025-11-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contribution/3kabcdefghijk",26],"sql":"cd635ae52f"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:day-2025-11-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:day-2025-12-31-valid","calls":[{"binds":["org.hypercerts.claim.contribution","2025-12-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contribution/3kabcdefghijk",26],"sql":"cd635ae52f"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:day-2025-12-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:day-2024-02-29-valid","calls":[{"binds":["org.hypercerts.claim.contribution","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contribution/3kabcdefghijk",26],"sql":"cd635ae52f"}],"outcome":{"result":{"contributions":[]}}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"datetime:cursor-t:day-2024-02-30-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"error:cursor:wrong-v","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"error:cursor:wrong-collection","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"error:cursor:missing-u","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"error:cursor:u-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"error:cursor:extra-key","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"error:cursor:wrong-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"error:cursor:opposite-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"error:cursor:bad-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"error:cursor:t-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.listContributions","case":"error:cursor:missing-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"default","calls":[{"binds":["org.hypercerts.claim.contributorInformation",26],"sql":"988c9b344e"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"limit=1","calls":[{"binds":["org.hypercerts.claim.contributorInformation",2],"sql":"988c9b344e"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"limit=7","calls":[{"binds":["org.hypercerts.claim.contributorInformation",8],"sql":"988c9b344e"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"limit=99","calls":[{"binds":["org.hypercerts.claim.contributorInformation",100],"sql":"988c9b344e"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"limit=100","calls":[{"binds":["org.hypercerts.claim.contributorInformation",101],"sql":"988c9b344e"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"limit=0","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"limit=101","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"cursor:malformed","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"sort=desc","calls":[{"binds":["org.hypercerts.claim.contributorInformation",26],"sql":"988c9b344e"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"paged:desc","calls":[{"binds":["org.hypercerts.claim.contributorInformation",3],"sql":"988c9b344e"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"contributorInformation":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwz","organization":null,"profile":null},"cid":"bafyfixture2","did":"did:plc:abcdefghijklmnopqrstuvwz","indexedAt":"2025-01-03T00:00:00Z","record":{"$type":"org.hypercerts.claim.contributorInformation","createdAt":"2025-01-03T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwz/org.hypercerts.claim.contributorInformation/3kabcdefghijc"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"org.hypercerts.claim.contributorInformation","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.claim.contributorInformation/3kabcdefghijb"}],"cursor":"7b2264223a2264657363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6f72672e687970657263657274732e636c61696d2e636f6e7472696275746f72496e666f726d6174696f6e2f336b6162636465666768696a62222c2276223a317d"}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"cursor:valid:desc","calls":[{"binds":["org.hypercerts.claim.contributorInformation","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contributorInformation/3kabcdefghijk",26],"sql":"878d8c6e03"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"cursor:valid+limit=7:desc","calls":[{"binds":["org.hypercerts.claim.contributorInformation","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contributorInformation/3kabcdefghijk",8],"sql":"878d8c6e03"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"year0000:cursor:desc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"sort=asc","calls":[{"binds":["org.hypercerts.claim.contributorInformation",26],"sql":"53e54f225a"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"paged:asc","calls":[{"binds":["org.hypercerts.claim.contributorInformation",3],"sql":"53e54f225a"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"contributorInformation":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwx","organization":null,"profile":null},"cid":"bafyfixture0","did":"did:plc:abcdefghijklmnopqrstuvwx","indexedAt":"2025-01-01T00:00:00Z","record":{"$type":"org.hypercerts.claim.contributorInformation","createdAt":"2025-01-01T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contributorInformation/3kabcdefghija"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"org.hypercerts.claim.contributorInformation","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.claim.contributorInformation/3kabcdefghijb"}],"cursor":"7b2264223a22617363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6f72672e687970657263657274732e636c61696d2e636f6e7472696275746f72496e666f726d6174696f6e2f336b6162636465666768696a62222c2276223a317d"}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"cursor:valid:asc","calls":[{"binds":["org.hypercerts.claim.contributorInformation","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contributorInformation/3kabcdefghijk",26],"sql":"0026cd53dc"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"cursor:valid+limit=7:asc","calls":[{"binds":["org.hypercerts.claim.contributorInformation","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contributorInformation/3kabcdefghijk",8],"sql":"0026cd53dc"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"year0000:cursor:asc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"filter:authors:many","calls":[{"binds":["org.hypercerts.claim.contributorInformation","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwz",26],"sql":"e6d269af8e"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"filter:authors:one","calls":[{"binds":["org.hypercerts.claim.contributorInformation","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"75c0e1f2f8"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"filter:authors:one-scalar","calls":[{"binds":["org.hypercerts.claim.contributorInformation","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"75c0e1f2f8"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"filter:authors:duplicate","calls":[{"binds":["org.hypercerts.claim.contributorInformation","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"75c0e1f2f8"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"filter:authors:empty","calls":[{"binds":["org.hypercerts.claim.contributorInformation",26],"sql":"93d47a9512"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"error:sortDirection=bad","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"error:sortDirection=ASC","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"error:sortDirection=empty","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"error:limit=abc","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"error:limit=1.5","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"error:limit=-1","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"error:limit=0-string","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"error:limit=7-string","calls":[{"binds":["org.hypercerts.claim.contributorInformation",8],"sql":"988c9b344e"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"error:limit=empty","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"error:limit=array","calls":[],"outcome":{"error":"InvalidRequest: limit must occur once"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"error:sortDirection=array","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must occur once"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"error:cursor:non-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"error:cursor:empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"error:cursor:hex-non-json","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"error:cursor:array","calls":[],"outcome":{"error":"InvalidRequest: cursor must occur once"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"error:cursor:uppercase-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"cursor:length-at-cap","calls":[{"binds":["org.hypercerts.claim.contributorInformation","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contributorInformation/3kabcdefghijk",26],"sql":"878d8c6e03"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"cursor:length-below-cap","calls":[{"binds":["org.hypercerts.claim.contributorInformation","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contributorInformation/3kabcdefghijk",26],"sql":"878d8c6e03"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"cursor:length-above-cap","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:month-13","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:feb-30","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:leap-2024-valid","calls":[{"binds":["org.hypercerts.claim.contributorInformation","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contributorInformation/3kabcdefghijk",26],"sql":"878d8c6e03"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:feb-29-2100","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:leap-2000-valid","calls":[{"binds":["org.hypercerts.claim.contributorInformation","2000-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contributorInformation/3kabcdefghijk",26],"sql":"878d8c6e03"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:second-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:hour-24","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:zone-minus-00-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:zone-plus-24-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:zone-minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:zone-plus-05-30-valid","calls":[{"binds":["org.hypercerts.claim.contributorInformation","2025-01-01T00:00:00+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contributorInformation/3kabcdefghijk",26],"sql":"878d8c6e03"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:fraction-valid","calls":[{"binds":["org.hypercerts.claim.contributorInformation","2025-01-01T00:00:00.123456Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contributorInformation/3kabcdefghijk",26],"sql":"878d8c6e03"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:fraction-offset-valid","calls":[{"binds":["org.hypercerts.claim.contributorInformation","2025-01-01T00:00:00.5+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contributorInformation/3kabcdefghijk",26],"sql":"878d8c6e03"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:no-zone","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:day-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:fraction-empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:fraction-empty-offset","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:month-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:lowercase-z","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:lowercase-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:zone-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:fraction-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:year-0001-valid","calls":[{"binds":["org.hypercerts.claim.contributorInformation","0001-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contributorInformation/3kabcdefghijk",26],"sql":"878d8c6e03"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:year-5-digit","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:end-of-year-valid","calls":[{"binds":["org.hypercerts.claim.contributorInformation","2025-12-31T23:59:59Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contributorInformation/3kabcdefghijk",26],"sql":"878d8c6e03"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:zone-plus-15-59","calls":[{"binds":["org.hypercerts.claim.contributorInformation","2025-01-01T00:00:00+15:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contributorInformation/3kabcdefghijk",26],"sql":"878d8c6e03"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:zone-minus-15-59","calls":[{"binds":["org.hypercerts.claim.contributorInformation","2025-01-01T00:00:00-15:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contributorInformation/3kabcdefghijk",26],"sql":"878d8c6e03"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:zone-plus-16-00","calls":[{"binds":["org.hypercerts.claim.contributorInformation","2025-01-01T00:00:00+16:00","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contributorInformation/3kabcdefghijk",26],"sql":"878d8c6e03"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:zone-minus-16-00","calls":[{"binds":["org.hypercerts.claim.contributorInformation","2025-01-01T00:00:00-16:00","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contributorInformation/3kabcdefghijk",26],"sql":"878d8c6e03"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:zone-plus-23-59-lua-accepted","calls":[{"binds":["org.hypercerts.claim.contributorInformation","2025-01-01T00:00:00+23:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contributorInformation/3kabcdefghijk",26],"sql":"878d8c6e03"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:zone-minus-23-59-lua-accepted","calls":[{"binds":["org.hypercerts.claim.contributorInformation","2025-01-01T00:00:00-23:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contributorInformation/3kabcdefghijk",26],"sql":"878d8c6e03"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:feb-29-2026","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:feb-29-2200","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:day-2025-01-31-valid","calls":[{"binds":["org.hypercerts.claim.contributorInformation","2025-01-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contributorInformation/3kabcdefghijk",26],"sql":"878d8c6e03"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:day-2025-01-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:day-2025-02-28-valid","calls":[{"binds":["org.hypercerts.claim.contributorInformation","2025-02-28T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contributorInformation/3kabcdefghijk",26],"sql":"878d8c6e03"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:day-2025-02-29-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:day-2025-03-31-valid","calls":[{"binds":["org.hypercerts.claim.contributorInformation","2025-03-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contributorInformation/3kabcdefghijk",26],"sql":"878d8c6e03"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:day-2025-03-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:day-2025-04-30-valid","calls":[{"binds":["org.hypercerts.claim.contributorInformation","2025-04-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contributorInformation/3kabcdefghijk",26],"sql":"878d8c6e03"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:day-2025-04-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:day-2025-05-31-valid","calls":[{"binds":["org.hypercerts.claim.contributorInformation","2025-05-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contributorInformation/3kabcdefghijk",26],"sql":"878d8c6e03"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:day-2025-05-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:day-2025-06-30-valid","calls":[{"binds":["org.hypercerts.claim.contributorInformation","2025-06-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contributorInformation/3kabcdefghijk",26],"sql":"878d8c6e03"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:day-2025-06-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:day-2025-07-31-valid","calls":[{"binds":["org.hypercerts.claim.contributorInformation","2025-07-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contributorInformation/3kabcdefghijk",26],"sql":"878d8c6e03"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:day-2025-07-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:day-2025-08-31-valid","calls":[{"binds":["org.hypercerts.claim.contributorInformation","2025-08-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contributorInformation/3kabcdefghijk",26],"sql":"878d8c6e03"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:day-2025-08-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:day-2025-09-30-valid","calls":[{"binds":["org.hypercerts.claim.contributorInformation","2025-09-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contributorInformation/3kabcdefghijk",26],"sql":"878d8c6e03"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:day-2025-09-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:day-2025-10-31-valid","calls":[{"binds":["org.hypercerts.claim.contributorInformation","2025-10-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contributorInformation/3kabcdefghijk",26],"sql":"878d8c6e03"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:day-2025-10-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:day-2025-11-30-valid","calls":[{"binds":["org.hypercerts.claim.contributorInformation","2025-11-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contributorInformation/3kabcdefghijk",26],"sql":"878d8c6e03"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:day-2025-11-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:day-2025-12-31-valid","calls":[{"binds":["org.hypercerts.claim.contributorInformation","2025-12-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contributorInformation/3kabcdefghijk",26],"sql":"878d8c6e03"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:day-2025-12-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:day-2024-02-29-valid","calls":[{"binds":["org.hypercerts.claim.contributorInformation","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.contributorInformation/3kabcdefghijk",26],"sql":"878d8c6e03"}],"outcome":{"result":{"contributorInformation":[]}}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"datetime:cursor-t:day-2024-02-30-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"error:cursor:wrong-v","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"error:cursor:wrong-collection","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"error:cursor:missing-u","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"error:cursor:u-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"error:cursor:extra-key","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"error:cursor:wrong-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"error:cursor:opposite-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"error:cursor:bad-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"error:cursor:t-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.listContributorInformation","case":"error:cursor:missing-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"default","calls":[{"binds":["org.hypercerts.claim.rights",26],"sql":"deb35c0d37"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"limit=1","calls":[{"binds":["org.hypercerts.claim.rights",2],"sql":"deb35c0d37"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"limit=7","calls":[{"binds":["org.hypercerts.claim.rights",8],"sql":"deb35c0d37"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"limit=99","calls":[{"binds":["org.hypercerts.claim.rights",100],"sql":"deb35c0d37"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"limit=100","calls":[{"binds":["org.hypercerts.claim.rights",101],"sql":"deb35c0d37"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"limit=0","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"limit=101","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"cursor:malformed","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"sort=desc","calls":[{"binds":["org.hypercerts.claim.rights",26],"sql":"deb35c0d37"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"paged:desc","calls":[{"binds":["org.hypercerts.claim.rights",3],"sql":"deb35c0d37"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"cursor":"7b2264223a2264657363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6f72672e687970657263657274732e636c61696d2e7269676874732f336b6162636465666768696a62222c2276223a317d","rights":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwz","organization":null,"profile":null},"cid":"bafyfixture2","did":"did:plc:abcdefghijklmnopqrstuvwz","indexedAt":"2025-01-03T00:00:00Z","record":{"$type":"org.hypercerts.claim.rights","createdAt":"2025-01-03T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwz/org.hypercerts.claim.rights/3kabcdefghijc"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"org.hypercerts.claim.rights","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.claim.rights/3kabcdefghijb"}]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"cursor:valid:desc","calls":[{"binds":["org.hypercerts.claim.rights","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.rights/3kabcdefghijk",26],"sql":"f64bb87616"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"cursor:valid+limit=7:desc","calls":[{"binds":["org.hypercerts.claim.rights","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.rights/3kabcdefghijk",8],"sql":"f64bb87616"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"year0000:cursor:desc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"sort=asc","calls":[{"binds":["org.hypercerts.claim.rights",26],"sql":"85ff29542d"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"paged:asc","calls":[{"binds":["org.hypercerts.claim.rights",3],"sql":"85ff29542d"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"cursor":"7b2264223a22617363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6f72672e687970657263657274732e636c61696d2e7269676874732f336b6162636465666768696a62222c2276223a317d","rights":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwx","organization":null,"profile":null},"cid":"bafyfixture0","did":"did:plc:abcdefghijklmnopqrstuvwx","indexedAt":"2025-01-01T00:00:00Z","record":{"$type":"org.hypercerts.claim.rights","createdAt":"2025-01-01T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.rights/3kabcdefghija"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"org.hypercerts.claim.rights","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.claim.rights/3kabcdefghijb"}]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"cursor:valid:asc","calls":[{"binds":["org.hypercerts.claim.rights","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.rights/3kabcdefghijk",26],"sql":"bea8db93b7"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"cursor:valid+limit=7:asc","calls":[{"binds":["org.hypercerts.claim.rights","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.rights/3kabcdefghijk",8],"sql":"bea8db93b7"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"year0000:cursor:asc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"filter:authors:many","calls":[{"binds":["org.hypercerts.claim.rights","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwz",26],"sql":"963e68375d"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"filter:authors:one","calls":[{"binds":["org.hypercerts.claim.rights","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"09d6d1b616"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"filter:authors:one-scalar","calls":[{"binds":["org.hypercerts.claim.rights","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"09d6d1b616"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"filter:authors:duplicate","calls":[{"binds":["org.hypercerts.claim.rights","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"09d6d1b616"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"filter:authors:empty","calls":[{"binds":["org.hypercerts.claim.rights",26],"sql":"81914bd684"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"error:sortDirection=bad","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"error:sortDirection=ASC","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"error:sortDirection=empty","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"error:limit=abc","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"error:limit=1.5","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"error:limit=-1","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"error:limit=0-string","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"error:limit=7-string","calls":[{"binds":["org.hypercerts.claim.rights",8],"sql":"deb35c0d37"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"error:limit=empty","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"error:limit=array","calls":[],"outcome":{"error":"InvalidRequest: limit must occur once"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"error:sortDirection=array","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must occur once"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"error:cursor:non-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"error:cursor:empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"error:cursor:hex-non-json","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"error:cursor:array","calls":[],"outcome":{"error":"InvalidRequest: cursor must occur once"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"error:cursor:uppercase-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"cursor:length-at-cap","calls":[{"binds":["org.hypercerts.claim.rights","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.rights/3kabcdefghijk",26],"sql":"f64bb87616"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"cursor:length-below-cap","calls":[{"binds":["org.hypercerts.claim.rights","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.rights/3kabcdefghijk",26],"sql":"f64bb87616"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"cursor:length-above-cap","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:month-13","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:feb-30","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:leap-2024-valid","calls":[{"binds":["org.hypercerts.claim.rights","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.rights/3kabcdefghijk",26],"sql":"f64bb87616"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:feb-29-2100","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:leap-2000-valid","calls":[{"binds":["org.hypercerts.claim.rights","2000-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.rights/3kabcdefghijk",26],"sql":"f64bb87616"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:second-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:hour-24","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:zone-minus-00-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:zone-plus-24-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:zone-minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:zone-plus-05-30-valid","calls":[{"binds":["org.hypercerts.claim.rights","2025-01-01T00:00:00+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.rights/3kabcdefghijk",26],"sql":"f64bb87616"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:fraction-valid","calls":[{"binds":["org.hypercerts.claim.rights","2025-01-01T00:00:00.123456Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.rights/3kabcdefghijk",26],"sql":"f64bb87616"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:fraction-offset-valid","calls":[{"binds":["org.hypercerts.claim.rights","2025-01-01T00:00:00.5+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.rights/3kabcdefghijk",26],"sql":"f64bb87616"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:no-zone","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:day-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:fraction-empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:fraction-empty-offset","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:month-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:lowercase-z","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:lowercase-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:zone-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:fraction-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:year-0001-valid","calls":[{"binds":["org.hypercerts.claim.rights","0001-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.rights/3kabcdefghijk",26],"sql":"f64bb87616"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:year-5-digit","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:end-of-year-valid","calls":[{"binds":["org.hypercerts.claim.rights","2025-12-31T23:59:59Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.rights/3kabcdefghijk",26],"sql":"f64bb87616"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:zone-plus-15-59","calls":[{"binds":["org.hypercerts.claim.rights","2025-01-01T00:00:00+15:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.rights/3kabcdefghijk",26],"sql":"f64bb87616"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:zone-minus-15-59","calls":[{"binds":["org.hypercerts.claim.rights","2025-01-01T00:00:00-15:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.rights/3kabcdefghijk",26],"sql":"f64bb87616"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:zone-plus-16-00","calls":[{"binds":["org.hypercerts.claim.rights","2025-01-01T00:00:00+16:00","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.rights/3kabcdefghijk",26],"sql":"f64bb87616"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:zone-minus-16-00","calls":[{"binds":["org.hypercerts.claim.rights","2025-01-01T00:00:00-16:00","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.rights/3kabcdefghijk",26],"sql":"f64bb87616"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:zone-plus-23-59-lua-accepted","calls":[{"binds":["org.hypercerts.claim.rights","2025-01-01T00:00:00+23:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.rights/3kabcdefghijk",26],"sql":"f64bb87616"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:zone-minus-23-59-lua-accepted","calls":[{"binds":["org.hypercerts.claim.rights","2025-01-01T00:00:00-23:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.rights/3kabcdefghijk",26],"sql":"f64bb87616"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:feb-29-2026","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:feb-29-2200","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:day-2025-01-31-valid","calls":[{"binds":["org.hypercerts.claim.rights","2025-01-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.rights/3kabcdefghijk",26],"sql":"f64bb87616"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:day-2025-01-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:day-2025-02-28-valid","calls":[{"binds":["org.hypercerts.claim.rights","2025-02-28T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.rights/3kabcdefghijk",26],"sql":"f64bb87616"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:day-2025-02-29-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:day-2025-03-31-valid","calls":[{"binds":["org.hypercerts.claim.rights","2025-03-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.rights/3kabcdefghijk",26],"sql":"f64bb87616"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:day-2025-03-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:day-2025-04-30-valid","calls":[{"binds":["org.hypercerts.claim.rights","2025-04-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.rights/3kabcdefghijk",26],"sql":"f64bb87616"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:day-2025-04-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:day-2025-05-31-valid","calls":[{"binds":["org.hypercerts.claim.rights","2025-05-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.rights/3kabcdefghijk",26],"sql":"f64bb87616"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:day-2025-05-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:day-2025-06-30-valid","calls":[{"binds":["org.hypercerts.claim.rights","2025-06-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.rights/3kabcdefghijk",26],"sql":"f64bb87616"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:day-2025-06-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:day-2025-07-31-valid","calls":[{"binds":["org.hypercerts.claim.rights","2025-07-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.rights/3kabcdefghijk",26],"sql":"f64bb87616"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:day-2025-07-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:day-2025-08-31-valid","calls":[{"binds":["org.hypercerts.claim.rights","2025-08-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.rights/3kabcdefghijk",26],"sql":"f64bb87616"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:day-2025-08-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:day-2025-09-30-valid","calls":[{"binds":["org.hypercerts.claim.rights","2025-09-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.rights/3kabcdefghijk",26],"sql":"f64bb87616"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:day-2025-09-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:day-2025-10-31-valid","calls":[{"binds":["org.hypercerts.claim.rights","2025-10-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.rights/3kabcdefghijk",26],"sql":"f64bb87616"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:day-2025-10-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:day-2025-11-30-valid","calls":[{"binds":["org.hypercerts.claim.rights","2025-11-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.rights/3kabcdefghijk",26],"sql":"f64bb87616"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:day-2025-11-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:day-2025-12-31-valid","calls":[{"binds":["org.hypercerts.claim.rights","2025-12-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.rights/3kabcdefghijk",26],"sql":"f64bb87616"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:day-2025-12-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:day-2024-02-29-valid","calls":[{"binds":["org.hypercerts.claim.rights","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.rights/3kabcdefghijk",26],"sql":"f64bb87616"}],"outcome":{"result":{"rights":[]}}} +{"endpoint":"org.hypercerts.claim.listRights","case":"datetime:cursor-t:day-2024-02-30-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"error:cursor:wrong-v","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"error:cursor:wrong-collection","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"error:cursor:missing-u","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"error:cursor:u-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"error:cursor:extra-key","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"error:cursor:wrong-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"error:cursor:opposite-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"error:cursor:bad-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"error:cursor:t-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.listRights","case":"error:cursor:missing-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"default","calls":[{"binds":["org.hypercerts.claim.activity","test",26],"sql":"69fc88161b"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"limit=1","calls":[{"binds":["org.hypercerts.claim.activity","test",2],"sql":"69fc88161b"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"limit=7","calls":[{"binds":["org.hypercerts.claim.activity","test",8],"sql":"69fc88161b"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"limit=99","calls":[{"binds":["org.hypercerts.claim.activity","test",100],"sql":"69fc88161b"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"limit=100","calls":[{"binds":["org.hypercerts.claim.activity","test",101],"sql":"69fc88161b"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"limit=0","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"limit=101","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"cursor:malformed","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"sort=desc","calls":[{"binds":["org.hypercerts.claim.activity","test",26],"sql":"69fc88161b"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"paged:desc","calls":[{"binds":["org.hypercerts.claim.activity","test",3],"sql":"69fc88161b"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"26f10c09e4"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"26f10c09e4"}],"outcome":{"result":{"activities":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwz","organization":null,"profile":null},"cid":"bafyfixture2","did":"did:plc:abcdefghijklmnopqrstuvwz","indexedAt":"2025-01-03T00:00:00Z","record":{"$type":"org.hypercerts.claim.activity","createdAt":"2025-01-03T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwz/org.hypercerts.claim.activity/3kabcdefghijc"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"org.hypercerts.claim.activity","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.claim.activity/3kabcdefghijb"}],"cursor":"7b2264223a2264657363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6f72672e687970657263657274732e636c61696d2e61637469766974792f336b6162636465666768696a62222c2276223a317d"}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"cursor:valid:desc","calls":[{"binds":["org.hypercerts.claim.activity","test","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"bc0b02e384"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"cursor:valid+limit=7:desc","calls":[{"binds":["org.hypercerts.claim.activity","test","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",8],"sql":"bc0b02e384"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"year0000:cursor:desc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"sort=asc","calls":[{"binds":["org.hypercerts.claim.activity","test",26],"sql":"505fa63bf8"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"paged:asc","calls":[{"binds":["org.hypercerts.claim.activity","test",3],"sql":"505fa63bf8"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"26f10c09e4"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"26f10c09e4"}],"outcome":{"result":{"activities":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwx","organization":null,"profile":null},"cid":"bafyfixture0","did":"did:plc:abcdefghijklmnopqrstuvwx","indexedAt":"2025-01-01T00:00:00Z","record":{"$type":"org.hypercerts.claim.activity","createdAt":"2025-01-01T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"org.hypercerts.claim.activity","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.claim.activity/3kabcdefghijb"}],"cursor":"7b2264223a22617363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6f72672e687970657263657274732e636c61696d2e61637469766974792f336b6162636465666768696a62222c2276223a317d"}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"cursor:valid:asc","calls":[{"binds":["org.hypercerts.claim.activity","test","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"966cd6b22a"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"cursor:valid+limit=7:asc","calls":[{"binds":["org.hypercerts.claim.activity","test","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",8],"sql":"966cd6b22a"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"year0000:cursor:asc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"filter:authors:many","calls":[{"binds":["org.hypercerts.claim.activity","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwz","test",26],"sql":"c339a78b2e"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"filter:authors:one","calls":[{"binds":["org.hypercerts.claim.activity","did:plc:abcdefghijklmnopqrstuvwx","test",26],"sql":"d384922db1"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"filter:authors:one-scalar","calls":[{"binds":["org.hypercerts.claim.activity","did:plc:abcdefghijklmnopqrstuvwx","test",26],"sql":"d384922db1"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"filter:authors:duplicate","calls":[{"binds":["org.hypercerts.claim.activity","did:plc:abcdefghijklmnopqrstuvwx","test",26],"sql":"d384922db1"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"filter:authors:empty","calls":[{"binds":["org.hypercerts.claim.activity","test",26],"sql":"a899f0d903"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"filter:hasOrganizationRecord=boolean:true","calls":[{"binds":["org.hypercerts.claim.activity","test",26],"sql":"a629886768"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"filter:hasOrganizationRecord=boolean:false","calls":[{"binds":["org.hypercerts.claim.activity","test",26],"sql":"439aaf85ad"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"filter:hasOrganizationRecord=string:true","calls":[{"binds":["org.hypercerts.claim.activity","test",26],"sql":"a629886768"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"filter:hasOrganizationRecord=string:false","calls":[{"binds":["org.hypercerts.claim.activity","test",26],"sql":"439aaf85ad"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"filter:contributors:many","calls":[{"binds":["org.hypercerts.claim.activity","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwz","test",26],"sql":"0a4dfaace0"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"filter:contributors:one","calls":[{"binds":["org.hypercerts.claim.activity","did:plc:abcdefghijklmnopqrstuvwx","test",26],"sql":"2a35c20591"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"filter:contributors:one-scalar","calls":[{"binds":["org.hypercerts.claim.activity","did:plc:abcdefghijklmnopqrstuvwx","test",26],"sql":"2a35c20591"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"filter:contributors:duplicate","calls":[{"binds":["org.hypercerts.claim.activity","did:plc:abcdefghijklmnopqrstuvwx","test",26],"sql":"2a35c20591"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"filter:contributors:empty","calls":[{"binds":["org.hypercerts.claim.activity","test",26],"sql":"a899f0d903"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"filter:involvedActors:many","calls":[{"binds":["org.hypercerts.claim.activity","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwz","test",26],"sql":"e4fff6086b"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"filter:involvedActors:one","calls":[{"binds":["org.hypercerts.claim.activity","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwx","test",26],"sql":"8c5185f17d"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"filter:involvedActors:one-scalar","calls":[{"binds":["org.hypercerts.claim.activity","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwx","test",26],"sql":"8c5185f17d"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"filter:involvedActors:duplicate","calls":[{"binds":["org.hypercerts.claim.activity","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwx","test",26],"sql":"8c5185f17d"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"filter:involvedActors:empty","calls":[{"binds":["org.hypercerts.claim.activity","test",26],"sql":"a899f0d903"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"filter:uris:many","calls":[{"binds":["org.hypercerts.claim.activity","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijb","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijc","test",26],"sql":"a3ed0d16fb"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"filter:uris:one","calls":[{"binds":["org.hypercerts.claim.activity","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija","test",26],"sql":"8ba107c973"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"filter:uris:one-scalar","calls":[{"binds":["org.hypercerts.claim.activity","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija","test",26],"sql":"8ba107c973"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"filter:uris:duplicate","calls":[{"binds":["org.hypercerts.claim.activity","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija","test",26],"sql":"8ba107c973"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"filter:uris:empty","calls":[{"binds":["org.hypercerts.claim.activity","test",26],"sql":"a899f0d903"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"filter:all","calls":[{"binds":["org.hypercerts.claim.activity","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwz","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijb","test",26],"sql":"b16ebab61c"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"error:sortDirection=bad","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"error:sortDirection=ASC","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"error:sortDirection=empty","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"error:limit=abc","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"error:limit=1.5","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"error:limit=-1","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"error:limit=0-string","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"error:limit=7-string","calls":[{"binds":["org.hypercerts.claim.activity","test",8],"sql":"69fc88161b"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"error:limit=empty","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"error:limit=array","calls":[],"outcome":{"error":"InvalidRequest: limit must occur once"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"error:sortDirection=array","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must occur once"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"error:cursor:non-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"error:cursor:empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"error:cursor:hex-non-json","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"error:cursor:array","calls":[],"outcome":{"error":"InvalidRequest: cursor must occur once"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"error:cursor:uppercase-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"cursor:length-at-cap","calls":[{"binds":["org.hypercerts.claim.activity","test","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"bc0b02e384"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"cursor:length-below-cap","calls":[{"binds":["org.hypercerts.claim.activity","test","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"bc0b02e384"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"cursor:length-above-cap","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:month-13","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:feb-30","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:leap-2024-valid","calls":[{"binds":["org.hypercerts.claim.activity","test","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"bc0b02e384"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:feb-29-2100","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:leap-2000-valid","calls":[{"binds":["org.hypercerts.claim.activity","test","2000-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"bc0b02e384"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:second-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:hour-24","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:zone-minus-00-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:zone-plus-24-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:zone-minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:zone-plus-05-30-valid","calls":[{"binds":["org.hypercerts.claim.activity","test","2025-01-01T00:00:00+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"bc0b02e384"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:fraction-valid","calls":[{"binds":["org.hypercerts.claim.activity","test","2025-01-01T00:00:00.123456Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"bc0b02e384"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:fraction-offset-valid","calls":[{"binds":["org.hypercerts.claim.activity","test","2025-01-01T00:00:00.5+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"bc0b02e384"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:no-zone","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:day-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:fraction-empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:fraction-empty-offset","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:month-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:lowercase-z","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:lowercase-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:zone-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:fraction-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:year-0001-valid","calls":[{"binds":["org.hypercerts.claim.activity","test","0001-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"bc0b02e384"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:year-5-digit","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:end-of-year-valid","calls":[{"binds":["org.hypercerts.claim.activity","test","2025-12-31T23:59:59Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"bc0b02e384"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:zone-plus-15-59","calls":[{"binds":["org.hypercerts.claim.activity","test","2025-01-01T00:00:00+15:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"bc0b02e384"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:zone-minus-15-59","calls":[{"binds":["org.hypercerts.claim.activity","test","2025-01-01T00:00:00-15:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"bc0b02e384"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:zone-plus-16-00","calls":[{"binds":["org.hypercerts.claim.activity","test","2025-01-01T00:00:00+16:00","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"bc0b02e384"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:zone-minus-16-00","calls":[{"binds":["org.hypercerts.claim.activity","test","2025-01-01T00:00:00-16:00","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"bc0b02e384"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:zone-plus-23-59-lua-accepted","calls":[{"binds":["org.hypercerts.claim.activity","test","2025-01-01T00:00:00+23:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"bc0b02e384"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:zone-minus-23-59-lua-accepted","calls":[{"binds":["org.hypercerts.claim.activity","test","2025-01-01T00:00:00-23:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"bc0b02e384"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:feb-29-2026","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:feb-29-2200","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:day-2025-01-31-valid","calls":[{"binds":["org.hypercerts.claim.activity","test","2025-01-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"bc0b02e384"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:day-2025-01-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:day-2025-02-28-valid","calls":[{"binds":["org.hypercerts.claim.activity","test","2025-02-28T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"bc0b02e384"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:day-2025-02-29-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:day-2025-03-31-valid","calls":[{"binds":["org.hypercerts.claim.activity","test","2025-03-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"bc0b02e384"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:day-2025-03-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:day-2025-04-30-valid","calls":[{"binds":["org.hypercerts.claim.activity","test","2025-04-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"bc0b02e384"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:day-2025-04-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:day-2025-05-31-valid","calls":[{"binds":["org.hypercerts.claim.activity","test","2025-05-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"bc0b02e384"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:day-2025-05-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:day-2025-06-30-valid","calls":[{"binds":["org.hypercerts.claim.activity","test","2025-06-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"bc0b02e384"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:day-2025-06-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:day-2025-07-31-valid","calls":[{"binds":["org.hypercerts.claim.activity","test","2025-07-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"bc0b02e384"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:day-2025-07-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:day-2025-08-31-valid","calls":[{"binds":["org.hypercerts.claim.activity","test","2025-08-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"bc0b02e384"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:day-2025-08-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:day-2025-09-30-valid","calls":[{"binds":["org.hypercerts.claim.activity","test","2025-09-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"bc0b02e384"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:day-2025-09-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:day-2025-10-31-valid","calls":[{"binds":["org.hypercerts.claim.activity","test","2025-10-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"bc0b02e384"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:day-2025-10-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:day-2025-11-30-valid","calls":[{"binds":["org.hypercerts.claim.activity","test","2025-11-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"bc0b02e384"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:day-2025-11-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:day-2025-12-31-valid","calls":[{"binds":["org.hypercerts.claim.activity","test","2025-12-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"bc0b02e384"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:day-2025-12-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:day-2024-02-29-valid","calls":[{"binds":["org.hypercerts.claim.activity","test","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijk",26],"sql":"bc0b02e384"}],"outcome":{"result":{"activities":[]}}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"datetime:cursor-t:day-2024-02-30-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"error:cursor:wrong-v","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"error:cursor:wrong-collection","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"error:cursor:missing-u","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"error:cursor:u-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"error:cursor:extra-key","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"error:cursor:wrong-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"error:cursor:opposite-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"error:cursor:bad-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"error:cursor:t-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.claim.searchActivities","case":"error:cursor:missing-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"default","calls":[{"binds":["org.hypercerts.collection","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk"],"sql":"4a06ffe530"},{"binds":["org.hypercerts.claim.activity","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem1","bafyitem1","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem2","bafyitem2","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem3","bafyitem3"],"sql":"0a164221a8"}],"outcome":{"result":{"items":[{"itemIdentifier":{"cid":"bafyitem1","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem1"},"record":null},{"itemIdentifier":{"cid":"bafyitem2","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem2"},"record":null},{"itemIdentifier":{"cid":"bafyitem3","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem3"},"record":null}]}}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"limit=1","calls":[{"binds":["org.hypercerts.collection","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk"],"sql":"4a06ffe530"},{"binds":["org.hypercerts.claim.activity","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem1","bafyitem1"],"sql":"0606799c72"}],"outcome":{"result":{"cursor":"7b2269223a312c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677782f6f72672e687970657263657274732e636f6c6c656374696f6e2f336b6162636465666768696a6b222c2276223a317d","items":[{"itemIdentifier":{"cid":"bafyitem1","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem1"},"record":null}]}}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"limit=7","calls":[{"binds":["org.hypercerts.collection","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk"],"sql":"4a06ffe530"},{"binds":["org.hypercerts.claim.activity","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem1","bafyitem1","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem2","bafyitem2","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem3","bafyitem3"],"sql":"0a164221a8"}],"outcome":{"result":{"items":[{"itemIdentifier":{"cid":"bafyitem1","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem1"},"record":null},{"itemIdentifier":{"cid":"bafyitem2","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem2"},"record":null},{"itemIdentifier":{"cid":"bafyitem3","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem3"},"record":null}]}}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"limit=99","calls":[{"binds":["org.hypercerts.collection","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk"],"sql":"4a06ffe530"},{"binds":["org.hypercerts.claim.activity","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem1","bafyitem1","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem2","bafyitem2","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem3","bafyitem3"],"sql":"0a164221a8"}],"outcome":{"result":{"items":[{"itemIdentifier":{"cid":"bafyitem1","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem1"},"record":null},{"itemIdentifier":{"cid":"bafyitem2","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem2"},"record":null},{"itemIdentifier":{"cid":"bafyitem3","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem3"},"record":null}]}}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"limit=100","calls":[{"binds":["org.hypercerts.collection","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk"],"sql":"4a06ffe530"},{"binds":["org.hypercerts.claim.activity","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem1","bafyitem1","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem2","bafyitem2","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem3","bafyitem3"],"sql":"0a164221a8"}],"outcome":{"result":{"items":[{"itemIdentifier":{"cid":"bafyitem1","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem1"},"record":null},{"itemIdentifier":{"cid":"bafyitem2","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem2"},"record":null},{"itemIdentifier":{"cid":"bafyitem3","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem3"},"record":null}]}}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"limit=0","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"limit=101","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"cursor:malformed","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"paged:default","calls":[{"binds":["org.hypercerts.collection","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk"],"sql":"4a06ffe530"},{"binds":["org.hypercerts.claim.activity","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem1","bafyitem1","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem2","bafyitem2"],"sql":"25a23858f5"}],"outcome":{"result":{"cursor":"7b2269223a322c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677782f6f72672e687970657263657274732e636f6c6c656374696f6e2f336b6162636465666768696a6b222c2276223a317d","items":[{"itemIdentifier":{"cid":"bafyitem1","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem1"},"record":null},{"itemIdentifier":{"cid":"bafyitem2","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem2"},"record":null}]}}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"cursor:valid:default","calls":[{"binds":["org.hypercerts.collection","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk"],"sql":"4a06ffe530"},{"binds":["org.hypercerts.claim.activity","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem2","bafyitem2","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem3","bafyitem3"],"sql":"25a23858f5"}],"outcome":{"result":{"items":[{"itemIdentifier":{"cid":"bafyitem2","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem2"},"record":null},{"itemIdentifier":{"cid":"bafyitem3","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem3"},"record":null}]}}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"cursor:valid+limit=7:default","calls":[{"binds":["org.hypercerts.collection","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk"],"sql":"4a06ffe530"},{"binds":["org.hypercerts.claim.activity","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem2","bafyitem2","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem3","bafyitem3"],"sql":"25a23858f5"}],"outcome":{"result":{"items":[{"itemIdentifier":{"cid":"bafyitem2","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem2"},"record":null},{"itemIdentifier":{"cid":"bafyitem3","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem3"},"record":null}]}}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"default-limit:30-items","calls":[{"binds":["org.hypercerts.collection","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk"],"sql":"4a06ffe530"},{"binds":["org.hypercerts.claim.activity","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem1","bafyitem1","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem2","bafyitem2","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem3","bafyitem3","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem4","bafyitem4","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem5","bafyitem5","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem6","bafyitem6","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem7","bafyitem7","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem8","bafyitem8","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem9","bafyitem9","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem10","bafyitem10","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem11","bafyitem11","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem12","bafyitem12","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem13","bafyitem13","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem14","bafyitem14","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem15","bafyitem15","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem16","bafyitem16","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem17","bafyitem17","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem18","bafyitem18","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem19","bafyitem19","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem20","bafyitem20","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem21","bafyitem21","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem22","bafyitem22","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem23","bafyitem23","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem24","bafyitem24","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem25","bafyitem25"],"sql":"4e7ddc2a45"}],"outcome":{"result":{"cursor":"7b2269223a32352c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677782f6f72672e687970657263657274732e636f6c6c656374696f6e2f336b6162636465666768696a6b222c2276223a317d","items":[{"itemIdentifier":{"cid":"bafyitem1","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem1"},"record":null},{"itemIdentifier":{"cid":"bafyitem2","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem2"},"record":null},{"itemIdentifier":{"cid":"bafyitem3","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem3"},"record":null},{"itemIdentifier":{"cid":"bafyitem4","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem4"},"record":null},{"itemIdentifier":{"cid":"bafyitem5","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem5"},"record":null},{"itemIdentifier":{"cid":"bafyitem6","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem6"},"record":null},{"itemIdentifier":{"cid":"bafyitem7","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem7"},"record":null},{"itemIdentifier":{"cid":"bafyitem8","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem8"},"record":null},{"itemIdentifier":{"cid":"bafyitem9","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem9"},"record":null},{"itemIdentifier":{"cid":"bafyitem10","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem10"},"record":null},{"itemIdentifier":{"cid":"bafyitem11","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem11"},"record":null},{"itemIdentifier":{"cid":"bafyitem12","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem12"},"record":null},{"itemIdentifier":{"cid":"bafyitem13","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem13"},"record":null},{"itemIdentifier":{"cid":"bafyitem14","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem14"},"record":null},{"itemIdentifier":{"cid":"bafyitem15","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem15"},"record":null},{"itemIdentifier":{"cid":"bafyitem16","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem16"},"record":null},{"itemIdentifier":{"cid":"bafyitem17","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem17"},"record":null},{"itemIdentifier":{"cid":"bafyitem18","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem18"},"record":null},{"itemIdentifier":{"cid":"bafyitem19","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem19"},"record":null},{"itemIdentifier":{"cid":"bafyitem20","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem20"},"record":null},{"itemIdentifier":{"cid":"bafyitem21","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem21"},"record":null},{"itemIdentifier":{"cid":"bafyitem22","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem22"},"record":null},{"itemIdentifier":{"cid":"bafyitem23","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem23"},"record":null},{"itemIdentifier":{"cid":"bafyitem24","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem24"},"record":null},{"itemIdentifier":{"cid":"bafyitem25","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem25"},"record":null}]}}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"error:limit=abc","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"error:limit=1.5","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"error:limit=-1","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"error:limit=0-string","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"error:limit=7-string","calls":[{"binds":["org.hypercerts.collection","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk"],"sql":"4a06ffe530"},{"binds":["org.hypercerts.claim.activity","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem1","bafyitem1","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem2","bafyitem2","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem3","bafyitem3"],"sql":"0a164221a8"}],"outcome":{"result":{"items":[{"itemIdentifier":{"cid":"bafyitem1","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem1"},"record":null},{"itemIdentifier":{"cid":"bafyitem2","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem2"},"record":null},{"itemIdentifier":{"cid":"bafyitem3","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem3"},"record":null}]}}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"error:limit=empty","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"error:limit=array","calls":[],"outcome":{"error":"InvalidRequest: limit must occur once"}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"error:cursor:non-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"error:cursor:empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"error:cursor:hex-non-json","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another collection"}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"error:cursor:array","calls":[],"outcome":{"error":"InvalidRequest: cursor must occur once"}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"error:cursor:uppercase-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"cursor:length-at-cap","calls":[{"binds":["org.hypercerts.collection","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk"],"sql":"4a06ffe530"},{"binds":["org.hypercerts.claim.activity","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem2","bafyitem2","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem3","bafyitem3"],"sql":"25a23858f5"}],"outcome":{"result":{"items":[{"itemIdentifier":{"cid":"bafyitem2","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem2"},"record":null},{"itemIdentifier":{"cid":"bafyitem3","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem3"},"record":null}]}}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"cursor:length-below-cap","calls":[{"binds":["org.hypercerts.collection","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk"],"sql":"4a06ffe530"},{"binds":["org.hypercerts.claim.activity","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem2","bafyitem2","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem3","bafyitem3"],"sql":"25a23858f5"}],"outcome":{"result":{"items":[{"itemIdentifier":{"cid":"bafyitem2","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem2"},"record":null},{"itemIdentifier":{"cid":"bafyitem3","uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kitem3"},"record":null}]}}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"cursor:length-above-cap","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"error:cursor:wrong-v","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another collection"}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"error:cursor:wrong-collection","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another collection"}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"error:cursor:missing-u","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another collection"}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"error:cursor:u-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another collection"}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"error:cursor:extra-key","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"error:cursor:bad-i","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another collection"}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"error:cursor:missing-i","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another collection"}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"error:cursor:i-zero","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another collection"}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"error:cursor:i-negative","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another collection"}} +{"endpoint":"org.hypercerts.collection.listCollectionItems","case":"error:cursor:i-fractional","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another collection"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"default","calls":[{"binds":["org.hypercerts.collection",26],"sql":"3f156e9653"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"limit=1","calls":[{"binds":["org.hypercerts.collection",2],"sql":"3f156e9653"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"limit=7","calls":[{"binds":["org.hypercerts.collection",8],"sql":"3f156e9653"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"limit=99","calls":[{"binds":["org.hypercerts.collection",100],"sql":"3f156e9653"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"limit=100","calls":[{"binds":["org.hypercerts.collection",101],"sql":"3f156e9653"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"limit=0","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"limit=101","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"cursor:malformed","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"sort=desc","calls":[{"binds":["org.hypercerts.collection",26],"sql":"3f156e9653"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"paged:desc","calls":[{"binds":["org.hypercerts.collection",3],"sql":"3f156e9653"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"26f10c09e4"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"26f10c09e4"}],"outcome":{"result":{"collections":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwz","organization":null,"profile":null},"cid":"bafyfixture2","did":"did:plc:abcdefghijklmnopqrstuvwz","indexedAt":"2025-01-03T00:00:00Z","record":{"$type":"org.hypercerts.collection","createdAt":"2025-01-03T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwz/org.hypercerts.collection/3kabcdefghijc"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"org.hypercerts.collection","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.collection/3kabcdefghijb"}],"cursor":"7b2264223a2264657363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6f72672e687970657263657274732e636f6c6c656374696f6e2f336b6162636465666768696a62222c2276223a317d"}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"cursor:valid:desc","calls":[{"binds":["org.hypercerts.collection","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"926179a34c"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"cursor:valid+limit=7:desc","calls":[{"binds":["org.hypercerts.collection","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",8],"sql":"926179a34c"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"year0000:cursor:desc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"sort=asc","calls":[{"binds":["org.hypercerts.collection",26],"sql":"71a0d93bf2"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"paged:asc","calls":[{"binds":["org.hypercerts.collection",3],"sql":"71a0d93bf2"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"26f10c09e4"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"26f10c09e4"}],"outcome":{"result":{"collections":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwx","organization":null,"profile":null},"cid":"bafyfixture0","did":"did:plc:abcdefghijklmnopqrstuvwx","indexedAt":"2025-01-01T00:00:00Z","record":{"$type":"org.hypercerts.collection","createdAt":"2025-01-01T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghija"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"org.hypercerts.collection","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.collection/3kabcdefghijb"}],"cursor":"7b2264223a22617363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6f72672e687970657263657274732e636f6c6c656374696f6e2f336b6162636465666768696a62222c2276223a317d"}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"cursor:valid:asc","calls":[{"binds":["org.hypercerts.collection","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"66b024f84a"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"cursor:valid+limit=7:asc","calls":[{"binds":["org.hypercerts.collection","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",8],"sql":"66b024f84a"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"year0000:cursor:asc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"filter:authors:many","calls":[{"binds":["org.hypercerts.collection","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwz",26],"sql":"c8876d3546"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"filter:authors:one","calls":[{"binds":["org.hypercerts.collection","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"2888f75ed0"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"filter:authors:one-scalar","calls":[{"binds":["org.hypercerts.collection","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"2888f75ed0"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"filter:authors:duplicate","calls":[{"binds":["org.hypercerts.collection","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"2888f75ed0"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"filter:authors:empty","calls":[{"binds":["org.hypercerts.collection",26],"sql":"1a0a4d92bf"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"filter:hasOrganizationRecord=boolean:true","calls":[{"binds":["org.hypercerts.collection",26],"sql":"768ba84080"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"filter:hasOrganizationRecord=boolean:false","calls":[{"binds":["org.hypercerts.collection",26],"sql":"0974e3d21e"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"filter:hasOrganizationRecord=string:true","calls":[{"binds":["org.hypercerts.collection",26],"sql":"768ba84080"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"filter:hasOrganizationRecord=string:false","calls":[{"binds":["org.hypercerts.collection",26],"sql":"0974e3d21e"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"filter:types:many","calls":[{"binds":["org.hypercerts.collection","project","portfolio","theme",26],"sql":"49e45c0b0a"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"filter:types:one","calls":[{"binds":["org.hypercerts.collection","project",26],"sql":"3f008a1b2f"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"filter:types:one-scalar","calls":[{"binds":["org.hypercerts.collection","project",26],"sql":"3f008a1b2f"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"filter:types:duplicate","calls":[{"binds":["org.hypercerts.collection","project",26],"sql":"3f008a1b2f"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"filter:types:empty","calls":[{"binds":["org.hypercerts.collection",26],"sql":"1a0a4d92bf"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"filter:uris:many","calls":[{"binds":["org.hypercerts.collection","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghija","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijb","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijc",26],"sql":"b87da4b57f"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"filter:uris:one","calls":[{"binds":["org.hypercerts.collection","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghija",26],"sql":"38a6653b6f"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"filter:uris:one-scalar","calls":[{"binds":["org.hypercerts.collection","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghija",26],"sql":"38a6653b6f"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"filter:uris:duplicate","calls":[{"binds":["org.hypercerts.collection","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghija",26],"sql":"38a6653b6f"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"filter:uris:empty","calls":[{"binds":["org.hypercerts.collection",26],"sql":"1a0a4d92bf"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"filter:itemUris:many","calls":[{"binds":["org.hypercerts.collection","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijb","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijc",26],"sql":"f0cc9e6828"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"filter:itemUris:one","calls":[{"binds":["org.hypercerts.collection","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija",26],"sql":"fa73adf4ae"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"filter:itemUris:one-scalar","calls":[{"binds":["org.hypercerts.collection","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija",26],"sql":"fa73adf4ae"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"filter:itemUris:duplicate","calls":[{"binds":["org.hypercerts.collection","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija",26],"sql":"fa73adf4ae"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"filter:itemUris:empty","calls":[{"binds":["org.hypercerts.collection",26],"sql":"1a0a4d92bf"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"filter:tagUris:many","calls":[{"binds":["org.hypercerts.collection","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghija","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijb","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijc",26],"sql":"19725c9990"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"filter:tagUris:one","calls":[{"binds":["org.hypercerts.collection","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghija",26],"sql":"305030aa27"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"filter:tagUris:one-scalar","calls":[{"binds":["org.hypercerts.collection","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghija",26],"sql":"305030aa27"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"filter:tagUris:duplicate","calls":[{"binds":["org.hypercerts.collection","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghija",26],"sql":"305030aa27"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"filter:tagUris:empty","calls":[{"binds":["org.hypercerts.collection",26],"sql":"3f156e9653"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"filter:all","calls":[{"binds":["org.hypercerts.collection","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","project","portfolio","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijb","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijc","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijb","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijb","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijc",26],"sql":"35974e51d7"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"error:sortDirection=bad","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"error:sortDirection=ASC","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"error:sortDirection=empty","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"error:limit=abc","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"error:limit=1.5","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"error:limit=-1","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"error:limit=0-string","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"error:limit=7-string","calls":[{"binds":["org.hypercerts.collection",8],"sql":"3f156e9653"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"error:limit=empty","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"error:limit=array","calls":[],"outcome":{"error":"InvalidRequest: limit must occur once"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"error:sortDirection=array","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must occur once"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"error:cursor:non-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"error:cursor:empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"error:cursor:hex-non-json","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"error:cursor:array","calls":[],"outcome":{"error":"InvalidRequest: cursor must occur once"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"error:cursor:uppercase-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"cursor:length-at-cap","calls":[{"binds":["org.hypercerts.collection","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"926179a34c"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"cursor:length-below-cap","calls":[{"binds":["org.hypercerts.collection","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"926179a34c"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"cursor:length-above-cap","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:month-13","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:feb-30","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:leap-2024-valid","calls":[{"binds":["org.hypercerts.collection","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"926179a34c"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:feb-29-2100","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:leap-2000-valid","calls":[{"binds":["org.hypercerts.collection","2000-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"926179a34c"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:second-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:hour-24","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:zone-minus-00-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:zone-plus-24-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:zone-minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:zone-plus-05-30-valid","calls":[{"binds":["org.hypercerts.collection","2025-01-01T00:00:00+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"926179a34c"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:fraction-valid","calls":[{"binds":["org.hypercerts.collection","2025-01-01T00:00:00.123456Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"926179a34c"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:fraction-offset-valid","calls":[{"binds":["org.hypercerts.collection","2025-01-01T00:00:00.5+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"926179a34c"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:no-zone","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:day-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:fraction-empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:fraction-empty-offset","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:month-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:lowercase-z","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:lowercase-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:zone-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:fraction-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:year-0001-valid","calls":[{"binds":["org.hypercerts.collection","0001-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"926179a34c"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:year-5-digit","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:end-of-year-valid","calls":[{"binds":["org.hypercerts.collection","2025-12-31T23:59:59Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"926179a34c"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:zone-plus-15-59","calls":[{"binds":["org.hypercerts.collection","2025-01-01T00:00:00+15:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"926179a34c"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:zone-minus-15-59","calls":[{"binds":["org.hypercerts.collection","2025-01-01T00:00:00-15:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"926179a34c"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:zone-plus-16-00","calls":[{"binds":["org.hypercerts.collection","2025-01-01T00:00:00+16:00","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"926179a34c"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:zone-minus-16-00","calls":[{"binds":["org.hypercerts.collection","2025-01-01T00:00:00-16:00","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"926179a34c"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:zone-plus-23-59-lua-accepted","calls":[{"binds":["org.hypercerts.collection","2025-01-01T00:00:00+23:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"926179a34c"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:zone-minus-23-59-lua-accepted","calls":[{"binds":["org.hypercerts.collection","2025-01-01T00:00:00-23:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"926179a34c"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:feb-29-2026","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:feb-29-2200","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:day-2025-01-31-valid","calls":[{"binds":["org.hypercerts.collection","2025-01-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"926179a34c"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:day-2025-01-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:day-2025-02-28-valid","calls":[{"binds":["org.hypercerts.collection","2025-02-28T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"926179a34c"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:day-2025-02-29-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:day-2025-03-31-valid","calls":[{"binds":["org.hypercerts.collection","2025-03-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"926179a34c"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:day-2025-03-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:day-2025-04-30-valid","calls":[{"binds":["org.hypercerts.collection","2025-04-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"926179a34c"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:day-2025-04-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:day-2025-05-31-valid","calls":[{"binds":["org.hypercerts.collection","2025-05-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"926179a34c"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:day-2025-05-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:day-2025-06-30-valid","calls":[{"binds":["org.hypercerts.collection","2025-06-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"926179a34c"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:day-2025-06-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:day-2025-07-31-valid","calls":[{"binds":["org.hypercerts.collection","2025-07-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"926179a34c"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:day-2025-07-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:day-2025-08-31-valid","calls":[{"binds":["org.hypercerts.collection","2025-08-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"926179a34c"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:day-2025-08-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:day-2025-09-30-valid","calls":[{"binds":["org.hypercerts.collection","2025-09-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"926179a34c"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:day-2025-09-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:day-2025-10-31-valid","calls":[{"binds":["org.hypercerts.collection","2025-10-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"926179a34c"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:day-2025-10-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:day-2025-11-30-valid","calls":[{"binds":["org.hypercerts.collection","2025-11-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"926179a34c"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:day-2025-11-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:day-2025-12-31-valid","calls":[{"binds":["org.hypercerts.collection","2025-12-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"926179a34c"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:day-2025-12-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:day-2024-02-29-valid","calls":[{"binds":["org.hypercerts.collection","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"926179a34c"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"datetime:cursor-t:day-2024-02-30-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"error:cursor:wrong-v","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"error:cursor:wrong-collection","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"error:cursor:missing-u","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"error:cursor:u-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"error:cursor:extra-key","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"error:cursor:wrong-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"error:cursor:opposite-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"error:cursor:bad-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"error:cursor:t-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.collection.listCollections","case":"error:cursor:missing-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"default","calls":[{"binds":["org.hypercerts.collection","test",26],"sql":"b69842f8a9"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"limit=1","calls":[{"binds":["org.hypercerts.collection","test",2],"sql":"b69842f8a9"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"limit=7","calls":[{"binds":["org.hypercerts.collection","test",8],"sql":"b69842f8a9"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"limit=99","calls":[{"binds":["org.hypercerts.collection","test",100],"sql":"b69842f8a9"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"limit=100","calls":[{"binds":["org.hypercerts.collection","test",101],"sql":"b69842f8a9"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"limit=0","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"limit=101","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"cursor:malformed","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"sort=desc","calls":[{"binds":["org.hypercerts.collection","test",26],"sql":"b69842f8a9"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"paged:desc","calls":[{"binds":["org.hypercerts.collection","test",3],"sql":"b69842f8a9"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"26f10c09e4"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"26f10c09e4"}],"outcome":{"result":{"collections":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwz","organization":null,"profile":null},"cid":"bafyfixture2","did":"did:plc:abcdefghijklmnopqrstuvwz","indexedAt":"2025-01-03T00:00:00Z","record":{"$type":"org.hypercerts.collection","createdAt":"2025-01-03T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwz/org.hypercerts.collection/3kabcdefghijc"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"org.hypercerts.collection","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.collection/3kabcdefghijb"}],"cursor":"7b2264223a2264657363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6f72672e687970657263657274732e636f6c6c656374696f6e2f336b6162636465666768696a62222c2276223a317d"}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"cursor:valid:desc","calls":[{"binds":["org.hypercerts.collection","test","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"6ae42317e4"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"cursor:valid+limit=7:desc","calls":[{"binds":["org.hypercerts.collection","test","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",8],"sql":"6ae42317e4"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"year0000:cursor:desc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"sort=asc","calls":[{"binds":["org.hypercerts.collection","test",26],"sql":"78f494786e"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"paged:asc","calls":[{"binds":["org.hypercerts.collection","test",3],"sql":"78f494786e"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"26f10c09e4"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"26f10c09e4"}],"outcome":{"result":{"collections":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwx","organization":null,"profile":null},"cid":"bafyfixture0","did":"did:plc:abcdefghijklmnopqrstuvwx","indexedAt":"2025-01-01T00:00:00Z","record":{"$type":"org.hypercerts.collection","createdAt":"2025-01-01T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghija"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"org.hypercerts.collection","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.collection/3kabcdefghijb"}],"cursor":"7b2264223a22617363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6f72672e687970657263657274732e636f6c6c656374696f6e2f336b6162636465666768696a62222c2276223a317d"}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"cursor:valid:asc","calls":[{"binds":["org.hypercerts.collection","test","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"bc4dedfbb8"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"cursor:valid+limit=7:asc","calls":[{"binds":["org.hypercerts.collection","test","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",8],"sql":"bc4dedfbb8"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"year0000:cursor:asc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"filter:authors:many","calls":[{"binds":["org.hypercerts.collection","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwz","test",26],"sql":"4e7d5b3238"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"filter:authors:one","calls":[{"binds":["org.hypercerts.collection","did:plc:abcdefghijklmnopqrstuvwx","test",26],"sql":"acdeba05c5"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"filter:authors:one-scalar","calls":[{"binds":["org.hypercerts.collection","did:plc:abcdefghijklmnopqrstuvwx","test",26],"sql":"acdeba05c5"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"filter:authors:duplicate","calls":[{"binds":["org.hypercerts.collection","did:plc:abcdefghijklmnopqrstuvwx","test",26],"sql":"acdeba05c5"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"filter:authors:empty","calls":[{"binds":["org.hypercerts.collection","test",26],"sql":"14e47d934d"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"filter:hasOrganizationRecord=boolean:true","calls":[{"binds":["org.hypercerts.collection","test",26],"sql":"5151965637"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"filter:hasOrganizationRecord=boolean:false","calls":[{"binds":["org.hypercerts.collection","test",26],"sql":"77db50661f"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"filter:hasOrganizationRecord=string:true","calls":[{"binds":["org.hypercerts.collection","test",26],"sql":"5151965637"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"filter:hasOrganizationRecord=string:false","calls":[{"binds":["org.hypercerts.collection","test",26],"sql":"77db50661f"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"filter:types:many","calls":[{"binds":["org.hypercerts.collection","project","portfolio","theme","test",26],"sql":"c95b404fea"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"filter:types:one","calls":[{"binds":["org.hypercerts.collection","project","test",26],"sql":"5e533a7996"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"filter:types:one-scalar","calls":[{"binds":["org.hypercerts.collection","project","test",26],"sql":"5e533a7996"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"filter:types:duplicate","calls":[{"binds":["org.hypercerts.collection","project","test",26],"sql":"5e533a7996"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"filter:types:empty","calls":[{"binds":["org.hypercerts.collection","test",26],"sql":"14e47d934d"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"filter:uris:many","calls":[{"binds":["org.hypercerts.collection","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghija","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijb","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijc","test",26],"sql":"6505727280"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"filter:uris:one","calls":[{"binds":["org.hypercerts.collection","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghija","test",26],"sql":"86a9017a0e"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"filter:uris:one-scalar","calls":[{"binds":["org.hypercerts.collection","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghija","test",26],"sql":"86a9017a0e"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"filter:uris:duplicate","calls":[{"binds":["org.hypercerts.collection","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghija","test",26],"sql":"86a9017a0e"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"filter:uris:empty","calls":[{"binds":["org.hypercerts.collection","test",26],"sql":"14e47d934d"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"filter:itemUris:many","calls":[{"binds":["org.hypercerts.collection","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijb","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijc","test",26],"sql":"7ab962c0bf"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"filter:itemUris:one","calls":[{"binds":["org.hypercerts.collection","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija","test",26],"sql":"73b274acb6"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"filter:itemUris:one-scalar","calls":[{"binds":["org.hypercerts.collection","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija","test",26],"sql":"73b274acb6"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"filter:itemUris:duplicate","calls":[{"binds":["org.hypercerts.collection","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija","test",26],"sql":"73b274acb6"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"filter:itemUris:empty","calls":[{"binds":["org.hypercerts.collection","test",26],"sql":"14e47d934d"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"filter:tagUris:many","calls":[{"binds":["org.hypercerts.collection","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghija","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijb","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijc","test",26],"sql":"ddd82804cb"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"filter:tagUris:one","calls":[{"binds":["org.hypercerts.collection","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghija","test",26],"sql":"6d867ad058"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"filter:tagUris:one-scalar","calls":[{"binds":["org.hypercerts.collection","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghija","test",26],"sql":"6d867ad058"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"filter:tagUris:duplicate","calls":[{"binds":["org.hypercerts.collection","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghija","test",26],"sql":"6d867ad058"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"filter:tagUris:empty","calls":[{"binds":["org.hypercerts.collection","test",26],"sql":"b69842f8a9"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"filter:all","calls":[{"binds":["org.hypercerts.collection","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","project","portfolio","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijb","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijc","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijb","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijb","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijc","test",26],"sql":"c97cffbea7"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"error:sortDirection=bad","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"error:sortDirection=ASC","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"error:sortDirection=empty","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"error:limit=abc","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"error:limit=1.5","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"error:limit=-1","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"error:limit=0-string","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"error:limit=7-string","calls":[{"binds":["org.hypercerts.collection","test",8],"sql":"b69842f8a9"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"error:limit=empty","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"error:limit=array","calls":[],"outcome":{"error":"InvalidRequest: limit must occur once"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"error:sortDirection=array","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must occur once"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"error:cursor:non-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"error:cursor:empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"error:cursor:hex-non-json","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"error:cursor:array","calls":[],"outcome":{"error":"InvalidRequest: cursor must occur once"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"error:cursor:uppercase-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"cursor:length-at-cap","calls":[{"binds":["org.hypercerts.collection","test","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"6ae42317e4"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"cursor:length-below-cap","calls":[{"binds":["org.hypercerts.collection","test","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"6ae42317e4"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"cursor:length-above-cap","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:month-13","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:feb-30","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:leap-2024-valid","calls":[{"binds":["org.hypercerts.collection","test","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"6ae42317e4"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:feb-29-2100","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:leap-2000-valid","calls":[{"binds":["org.hypercerts.collection","test","2000-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"6ae42317e4"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:second-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:hour-24","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:zone-minus-00-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:zone-plus-24-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:zone-minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:zone-plus-05-30-valid","calls":[{"binds":["org.hypercerts.collection","test","2025-01-01T00:00:00+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"6ae42317e4"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:fraction-valid","calls":[{"binds":["org.hypercerts.collection","test","2025-01-01T00:00:00.123456Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"6ae42317e4"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:fraction-offset-valid","calls":[{"binds":["org.hypercerts.collection","test","2025-01-01T00:00:00.5+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"6ae42317e4"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:no-zone","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:day-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:fraction-empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:fraction-empty-offset","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:month-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:lowercase-z","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:lowercase-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:zone-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:fraction-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:year-0001-valid","calls":[{"binds":["org.hypercerts.collection","test","0001-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"6ae42317e4"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:year-5-digit","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:end-of-year-valid","calls":[{"binds":["org.hypercerts.collection","test","2025-12-31T23:59:59Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"6ae42317e4"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:zone-plus-15-59","calls":[{"binds":["org.hypercerts.collection","test","2025-01-01T00:00:00+15:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"6ae42317e4"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:zone-minus-15-59","calls":[{"binds":["org.hypercerts.collection","test","2025-01-01T00:00:00-15:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"6ae42317e4"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:zone-plus-16-00","calls":[{"binds":["org.hypercerts.collection","test","2025-01-01T00:00:00+16:00","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"6ae42317e4"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:zone-minus-16-00","calls":[{"binds":["org.hypercerts.collection","test","2025-01-01T00:00:00-16:00","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"6ae42317e4"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:zone-plus-23-59-lua-accepted","calls":[{"binds":["org.hypercerts.collection","test","2025-01-01T00:00:00+23:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"6ae42317e4"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:zone-minus-23-59-lua-accepted","calls":[{"binds":["org.hypercerts.collection","test","2025-01-01T00:00:00-23:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"6ae42317e4"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:feb-29-2026","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:feb-29-2200","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:day-2025-01-31-valid","calls":[{"binds":["org.hypercerts.collection","test","2025-01-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"6ae42317e4"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:day-2025-01-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:day-2025-02-28-valid","calls":[{"binds":["org.hypercerts.collection","test","2025-02-28T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"6ae42317e4"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:day-2025-02-29-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:day-2025-03-31-valid","calls":[{"binds":["org.hypercerts.collection","test","2025-03-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"6ae42317e4"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:day-2025-03-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:day-2025-04-30-valid","calls":[{"binds":["org.hypercerts.collection","test","2025-04-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"6ae42317e4"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:day-2025-04-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:day-2025-05-31-valid","calls":[{"binds":["org.hypercerts.collection","test","2025-05-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"6ae42317e4"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:day-2025-05-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:day-2025-06-30-valid","calls":[{"binds":["org.hypercerts.collection","test","2025-06-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"6ae42317e4"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:day-2025-06-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:day-2025-07-31-valid","calls":[{"binds":["org.hypercerts.collection","test","2025-07-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"6ae42317e4"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:day-2025-07-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:day-2025-08-31-valid","calls":[{"binds":["org.hypercerts.collection","test","2025-08-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"6ae42317e4"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:day-2025-08-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:day-2025-09-30-valid","calls":[{"binds":["org.hypercerts.collection","test","2025-09-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"6ae42317e4"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:day-2025-09-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:day-2025-10-31-valid","calls":[{"binds":["org.hypercerts.collection","test","2025-10-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"6ae42317e4"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:day-2025-10-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:day-2025-11-30-valid","calls":[{"binds":["org.hypercerts.collection","test","2025-11-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"6ae42317e4"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:day-2025-11-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:day-2025-12-31-valid","calls":[{"binds":["org.hypercerts.collection","test","2025-12-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"6ae42317e4"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:day-2025-12-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:day-2024-02-29-valid","calls":[{"binds":["org.hypercerts.collection","test","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.collection/3kabcdefghijk",26],"sql":"6ae42317e4"}],"outcome":{"result":{"collections":[]}}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"datetime:cursor-t:day-2024-02-30-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"error:cursor:wrong-v","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"error:cursor:wrong-collection","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"error:cursor:missing-u","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"error:cursor:u-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"error:cursor:extra-key","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"error:cursor:wrong-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"error:cursor:opposite-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"error:cursor:bad-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"error:cursor:t-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.collection.searchCollections","case":"error:cursor:missing-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"default","calls":[{"binds":["org.hypercerts.context.acknowledgement",26],"sql":"06606f4591"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"limit=1","calls":[{"binds":["org.hypercerts.context.acknowledgement",2],"sql":"06606f4591"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"limit=7","calls":[{"binds":["org.hypercerts.context.acknowledgement",8],"sql":"06606f4591"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"limit=99","calls":[{"binds":["org.hypercerts.context.acknowledgement",100],"sql":"06606f4591"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"limit=100","calls":[{"binds":["org.hypercerts.context.acknowledgement",101],"sql":"06606f4591"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"limit=0","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"limit=101","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"cursor:malformed","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"sort=desc","calls":[{"binds":["org.hypercerts.context.acknowledgement",26],"sql":"06606f4591"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"paged:desc","calls":[{"binds":["org.hypercerts.context.acknowledgement",3],"sql":"06606f4591"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"acknowledgements":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwz","organization":null,"profile":null},"cid":"bafyfixture2","did":"did:plc:abcdefghijklmnopqrstuvwz","indexedAt":"2025-01-03T00:00:00Z","record":{"$type":"org.hypercerts.context.acknowledgement","createdAt":"2025-01-03T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwz/org.hypercerts.context.acknowledgement/3kabcdefghijc"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"org.hypercerts.context.acknowledgement","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.context.acknowledgement/3kabcdefghijb"}],"cursor":"7b2264223a2264657363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6f72672e687970657263657274732e636f6e746578742e61636b6e6f776c656467656d656e742f336b6162636465666768696a62222c2276223a317d"}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"cursor:valid:desc","calls":[{"binds":["org.hypercerts.context.acknowledgement","2025-01-01T00:00:00.000000Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.acknowledgement/3kabcdefghijk",26],"sql":"43f92977ec"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"cursor:valid+limit=7:desc","calls":[{"binds":["org.hypercerts.context.acknowledgement","2025-01-01T00:00:00.000000Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.acknowledgement/3kabcdefghijk",8],"sql":"43f92977ec"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"year0000:cursor:desc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"sort=asc","calls":[{"binds":["org.hypercerts.context.acknowledgement",26],"sql":"206721283b"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"paged:asc","calls":[{"binds":["org.hypercerts.context.acknowledgement",3],"sql":"206721283b"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"acknowledgements":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwx","organization":null,"profile":null},"cid":"bafyfixture0","did":"did:plc:abcdefghijklmnopqrstuvwx","indexedAt":"2025-01-01T00:00:00Z","record":{"$type":"org.hypercerts.context.acknowledgement","createdAt":"2025-01-01T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.acknowledgement/3kabcdefghija"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"org.hypercerts.context.acknowledgement","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.context.acknowledgement/3kabcdefghijb"}],"cursor":"7b2264223a22617363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6f72672e687970657263657274732e636f6e746578742e61636b6e6f776c656467656d656e742f336b6162636465666768696a62222c2276223a317d"}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"cursor:valid:asc","calls":[{"binds":["org.hypercerts.context.acknowledgement","2025-01-01T00:00:00.000000Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.acknowledgement/3kabcdefghijk",26],"sql":"74c456cea7"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"cursor:valid+limit=7:asc","calls":[{"binds":["org.hypercerts.context.acknowledgement","2025-01-01T00:00:00.000000Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.acknowledgement/3kabcdefghijk",8],"sql":"74c456cea7"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"year0000:cursor:asc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"filter:authors:many","calls":[{"binds":["org.hypercerts.context.acknowledgement","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwz",26],"sql":"411b2a5736"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"filter:authors:one","calls":[{"binds":["org.hypercerts.context.acknowledgement","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"21615a0aef"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"filter:authors:one-scalar","calls":[{"binds":["org.hypercerts.context.acknowledgement","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"21615a0aef"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"filter:authors:duplicate","calls":[{"binds":["org.hypercerts.context.acknowledgement","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"21615a0aef"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"filter:authors:empty","calls":[{"binds":["org.hypercerts.context.acknowledgement",26],"sql":"2078d19ad6"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"filter:subjects:many","calls":[{"binds":["org.hypercerts.context.acknowledgement","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijb","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijc",26],"sql":"b6e25ddc09"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"filter:subjects:one","calls":[{"binds":["org.hypercerts.context.acknowledgement","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija",26],"sql":"4d4d402cd2"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"filter:subjects:one-scalar","calls":[{"binds":["org.hypercerts.context.acknowledgement","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija",26],"sql":"4d4d402cd2"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"filter:subjects:duplicate","calls":[{"binds":["org.hypercerts.context.acknowledgement","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija",26],"sql":"4d4d402cd2"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"filter:subjects:empty","calls":[{"binds":["org.hypercerts.context.acknowledgement",26],"sql":"2078d19ad6"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"filter:all","calls":[{"binds":["org.hypercerts.context.acknowledgement","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijb","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijc",26],"sql":"60f03b42b4"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"error:sortDirection=bad","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"error:sortDirection=ASC","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"error:sortDirection=empty","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"error:limit=abc","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"error:limit=1.5","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"error:limit=-1","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"error:limit=0-string","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"error:limit=7-string","calls":[{"binds":["org.hypercerts.context.acknowledgement",8],"sql":"06606f4591"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"error:limit=empty","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"error:limit=array","calls":[],"outcome":{"error":"InvalidRequest: limit must occur once"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"error:sortDirection=array","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must occur once"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"error:cursor:non-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"error:cursor:empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"error:cursor:hex-non-json","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"error:cursor:array","calls":[],"outcome":{"error":"InvalidRequest: cursor must occur once"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"error:cursor:uppercase-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"cursor:length-at-cap","calls":[{"binds":["org.hypercerts.context.acknowledgement","2025-01-01T00:00:00.000000Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.acknowledgement/3kabcdefghijk",26],"sql":"43f92977ec"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"cursor:length-below-cap","calls":[{"binds":["org.hypercerts.context.acknowledgement","2025-01-01T00:00:00.000000Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.acknowledgement/3kabcdefghijk",26],"sql":"43f92977ec"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"cursor:length-above-cap","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:month-13","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:month-13:fractional","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:feb-30","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:feb-30:fractional","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:leap-2024-valid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:leap-2024-valid:fractional","calls":[{"binds":["org.hypercerts.context.acknowledgement","2024-02-29T00:00:00.000000Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.acknowledgement/3kabcdefghijk",26],"sql":"43f92977ec"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:feb-29-2100","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:feb-29-2100:fractional","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:leap-2000-valid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:leap-2000-valid:fractional","calls":[{"binds":["org.hypercerts.context.acknowledgement","2000-02-29T00:00:00.000000Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.acknowledgement/3kabcdefghijk",26],"sql":"43f92977ec"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:second-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:second-60:fractional","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:hour-24","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:hour-24:fractional","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:zone-minus-00-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:zone-plus-24-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:zone-minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:zone-plus-05-30-valid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:fraction-valid","calls":[{"binds":["org.hypercerts.context.acknowledgement","2025-01-01T00:00:00.123456Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.acknowledgement/3kabcdefghijk",26],"sql":"43f92977ec"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:fraction-offset-valid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:no-zone","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-00:fractional","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:minute-60:fractional","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:fraction-empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:fraction-empty-offset","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:month-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:month-00:fractional","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:lowercase-z","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:lowercase-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:zone-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:fraction-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:year-0001-valid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:year-0001-valid:fractional","calls":[{"binds":["org.hypercerts.context.acknowledgement","0001-01-01T00:00:00.000000Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.acknowledgement/3kabcdefghijk",26],"sql":"43f92977ec"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:year-5-digit","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:end-of-year-valid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:end-of-year-valid:fractional","calls":[{"binds":["org.hypercerts.context.acknowledgement","2025-12-31T23:59:59.000000Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.acknowledgement/3kabcdefghijk",26],"sql":"43f92977ec"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:zone-plus-15-59","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:zone-minus-15-59","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:zone-plus-16-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:zone-minus-16-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:zone-plus-23-59-lua-accepted","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:zone-minus-23-59-lua-accepted","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:feb-29-2026","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:feb-29-2026:fractional","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:feb-29-2200","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:feb-29-2200:fractional","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-01-31-valid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-01-31-valid:fractional","calls":[{"binds":["org.hypercerts.context.acknowledgement","2025-01-31T00:00:00.000000Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.acknowledgement/3kabcdefghijk",26],"sql":"43f92977ec"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-01-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-01-32-invalid:fractional","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-02-28-valid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-02-28-valid:fractional","calls":[{"binds":["org.hypercerts.context.acknowledgement","2025-02-28T00:00:00.000000Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.acknowledgement/3kabcdefghijk",26],"sql":"43f92977ec"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-02-29-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-02-29-invalid:fractional","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-03-31-valid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-03-31-valid:fractional","calls":[{"binds":["org.hypercerts.context.acknowledgement","2025-03-31T00:00:00.000000Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.acknowledgement/3kabcdefghijk",26],"sql":"43f92977ec"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-03-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-03-32-invalid:fractional","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-04-30-valid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-04-30-valid:fractional","calls":[{"binds":["org.hypercerts.context.acknowledgement","2025-04-30T00:00:00.000000Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.acknowledgement/3kabcdefghijk",26],"sql":"43f92977ec"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-04-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-04-31-invalid:fractional","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-05-31-valid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-05-31-valid:fractional","calls":[{"binds":["org.hypercerts.context.acknowledgement","2025-05-31T00:00:00.000000Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.acknowledgement/3kabcdefghijk",26],"sql":"43f92977ec"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-05-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-05-32-invalid:fractional","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-06-30-valid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-06-30-valid:fractional","calls":[{"binds":["org.hypercerts.context.acknowledgement","2025-06-30T00:00:00.000000Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.acknowledgement/3kabcdefghijk",26],"sql":"43f92977ec"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-06-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-06-31-invalid:fractional","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-07-31-valid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-07-31-valid:fractional","calls":[{"binds":["org.hypercerts.context.acknowledgement","2025-07-31T00:00:00.000000Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.acknowledgement/3kabcdefghijk",26],"sql":"43f92977ec"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-07-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-07-32-invalid:fractional","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-08-31-valid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-08-31-valid:fractional","calls":[{"binds":["org.hypercerts.context.acknowledgement","2025-08-31T00:00:00.000000Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.acknowledgement/3kabcdefghijk",26],"sql":"43f92977ec"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-08-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-08-32-invalid:fractional","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-09-30-valid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-09-30-valid:fractional","calls":[{"binds":["org.hypercerts.context.acknowledgement","2025-09-30T00:00:00.000000Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.acknowledgement/3kabcdefghijk",26],"sql":"43f92977ec"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-09-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-09-31-invalid:fractional","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-10-31-valid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-10-31-valid:fractional","calls":[{"binds":["org.hypercerts.context.acknowledgement","2025-10-31T00:00:00.000000Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.acknowledgement/3kabcdefghijk",26],"sql":"43f92977ec"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-10-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-10-32-invalid:fractional","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-11-30-valid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-11-30-valid:fractional","calls":[{"binds":["org.hypercerts.context.acknowledgement","2025-11-30T00:00:00.000000Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.acknowledgement/3kabcdefghijk",26],"sql":"43f92977ec"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-11-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-11-31-invalid:fractional","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-12-31-valid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-12-31-valid:fractional","calls":[{"binds":["org.hypercerts.context.acknowledgement","2025-12-31T00:00:00.000000Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.acknowledgement/3kabcdefghijk",26],"sql":"43f92977ec"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-12-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2025-12-32-invalid:fractional","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2024-02-29-valid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2024-02-29-valid:fractional","calls":[{"binds":["org.hypercerts.context.acknowledgement","2024-02-29T00:00:00.000000Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.acknowledgement/3kabcdefghijk",26],"sql":"43f92977ec"}],"outcome":{"result":{"acknowledgements":[]}}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2024-02-30-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"datetime:cursor-t:day-2024-02-30-invalid:fractional","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"error:cursor:wrong-v","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"error:cursor:wrong-collection","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"error:cursor:missing-u","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"error:cursor:u-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"error:cursor:extra-key","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"error:cursor:wrong-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"error:cursor:opposite-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"error:cursor:bad-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"error:cursor:t-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.context.listAcknowledgements","case":"error:cursor:missing-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"default","calls":[{"binds":["org.hypercerts.context.attachment",26],"sql":"7d4bb27bf2"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"limit=1","calls":[{"binds":["org.hypercerts.context.attachment",2],"sql":"7d4bb27bf2"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"limit=7","calls":[{"binds":["org.hypercerts.context.attachment",8],"sql":"7d4bb27bf2"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"limit=99","calls":[{"binds":["org.hypercerts.context.attachment",100],"sql":"7d4bb27bf2"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"limit=100","calls":[{"binds":["org.hypercerts.context.attachment",101],"sql":"7d4bb27bf2"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"limit=0","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"limit=101","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"cursor:malformed","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"sort=desc","calls":[{"binds":["org.hypercerts.context.attachment",26],"sql":"7d4bb27bf2"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"paged:desc","calls":[{"binds":["org.hypercerts.context.attachment",3],"sql":"7d4bb27bf2"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"attachments":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwz","organization":null,"profile":null},"cid":"bafyfixture2","did":"did:plc:abcdefghijklmnopqrstuvwz","indexedAt":"2025-01-03T00:00:00Z","record":{"$type":"org.hypercerts.context.attachment","createdAt":"2025-01-03T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwz/org.hypercerts.context.attachment/3kabcdefghijc"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"org.hypercerts.context.attachment","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.context.attachment/3kabcdefghijb"}],"cursor":"7b2264223a2264657363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6f72672e687970657263657274732e636f6e746578742e6174746163686d656e742f336b6162636465666768696a62222c2276223a317d"}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"cursor:valid:desc","calls":[{"binds":["org.hypercerts.context.attachment","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghijk",26],"sql":"165b82cc8c"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"cursor:valid+limit=7:desc","calls":[{"binds":["org.hypercerts.context.attachment","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghijk",8],"sql":"165b82cc8c"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"year0000:cursor:desc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"sort=asc","calls":[{"binds":["org.hypercerts.context.attachment",26],"sql":"659e7408ff"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"paged:asc","calls":[{"binds":["org.hypercerts.context.attachment",3],"sql":"659e7408ff"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"attachments":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwx","organization":null,"profile":null},"cid":"bafyfixture0","did":"did:plc:abcdefghijklmnopqrstuvwx","indexedAt":"2025-01-01T00:00:00Z","record":{"$type":"org.hypercerts.context.attachment","createdAt":"2025-01-01T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghija"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"org.hypercerts.context.attachment","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.context.attachment/3kabcdefghijb"}],"cursor":"7b2264223a22617363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6f72672e687970657263657274732e636f6e746578742e6174746163686d656e742f336b6162636465666768696a62222c2276223a317d"}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"cursor:valid:asc","calls":[{"binds":["org.hypercerts.context.attachment","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghijk",26],"sql":"1c9c2867bb"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"cursor:valid+limit=7:asc","calls":[{"binds":["org.hypercerts.context.attachment","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghijk",8],"sql":"1c9c2867bb"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"year0000:cursor:asc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"filter:authors:many","calls":[{"binds":["org.hypercerts.context.attachment","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwz",26],"sql":"5d8073cadf"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"filter:authors:one","calls":[{"binds":["org.hypercerts.context.attachment","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"e918e80b8b"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"filter:authors:one-scalar","calls":[{"binds":["org.hypercerts.context.attachment","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"e918e80b8b"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"filter:authors:duplicate","calls":[{"binds":["org.hypercerts.context.attachment","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"e918e80b8b"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"filter:authors:empty","calls":[{"binds":["org.hypercerts.context.attachment",26],"sql":"9a71769be1"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"filter:uris:many","calls":[{"binds":["org.hypercerts.context.attachment","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghija","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghijb","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghijc",26],"sql":"cb72947a76"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"filter:uris:one","calls":[{"binds":["org.hypercerts.context.attachment","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghija",26],"sql":"217da8ce90"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"filter:uris:one-scalar","calls":[{"binds":["org.hypercerts.context.attachment","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghija",26],"sql":"217da8ce90"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"filter:uris:duplicate","calls":[{"binds":["org.hypercerts.context.attachment","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghija",26],"sql":"217da8ce90"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"filter:uris:empty","calls":[{"binds":["org.hypercerts.context.attachment",26],"sql":"9a71769be1"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"filter:subjects:many","calls":[{"binds":["org.hypercerts.context.attachment","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijb","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijc",26],"sql":"60c7592388"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"filter:subjects:one","calls":[{"binds":["org.hypercerts.context.attachment","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija",26],"sql":"3292022713"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"filter:subjects:one-scalar","calls":[{"binds":["org.hypercerts.context.attachment","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija",26],"sql":"3292022713"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"filter:subjects:duplicate","calls":[{"binds":["org.hypercerts.context.attachment","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija",26],"sql":"3292022713"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"filter:subjects:empty","calls":[{"binds":["org.hypercerts.context.attachment",26],"sql":"9a71769be1"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"filter:contentTypes:many","calls":[{"binds":["org.hypercerts.context.attachment","image/png","application/pdf","text/plain",26],"sql":"e7f96450ef"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"filter:contentTypes:one","calls":[{"binds":["org.hypercerts.context.attachment","image/png",26],"sql":"94b8231885"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"filter:contentTypes:one-scalar","calls":[{"binds":["org.hypercerts.context.attachment","image/png",26],"sql":"94b8231885"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"filter:contentTypes:duplicate","calls":[{"binds":["org.hypercerts.context.attachment","image/png",26],"sql":"94b8231885"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"filter:contentTypes:empty","calls":[{"binds":["org.hypercerts.context.attachment",26],"sql":"9a71769be1"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"filter:all","calls":[{"binds":["org.hypercerts.context.attachment","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghijb","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghijc","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijb","application/pdf","text/plain",26],"sql":"7e9ede407d"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"error:sortDirection=bad","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"error:sortDirection=ASC","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"error:sortDirection=empty","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"error:limit=abc","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"error:limit=1.5","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"error:limit=-1","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"error:limit=0-string","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"error:limit=7-string","calls":[{"binds":["org.hypercerts.context.attachment",8],"sql":"7d4bb27bf2"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"error:limit=empty","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"error:limit=array","calls":[],"outcome":{"error":"InvalidRequest: limit must occur once"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"error:sortDirection=array","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must occur once"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"error:cursor:non-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"error:cursor:empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"error:cursor:hex-non-json","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"error:cursor:array","calls":[],"outcome":{"error":"InvalidRequest: cursor must occur once"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"error:cursor:uppercase-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"cursor:length-at-cap","calls":[{"binds":["org.hypercerts.context.attachment","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghijk",26],"sql":"165b82cc8c"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"cursor:length-below-cap","calls":[{"binds":["org.hypercerts.context.attachment","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghijk",26],"sql":"165b82cc8c"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"cursor:length-above-cap","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:month-13","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:feb-30","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:leap-2024-valid","calls":[{"binds":["org.hypercerts.context.attachment","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghijk",26],"sql":"165b82cc8c"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:feb-29-2100","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:leap-2000-valid","calls":[{"binds":["org.hypercerts.context.attachment","2000-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghijk",26],"sql":"165b82cc8c"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:second-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:hour-24","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:zone-minus-00-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:zone-plus-24-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:zone-minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:zone-plus-05-30-valid","calls":[{"binds":["org.hypercerts.context.attachment","2025-01-01T00:00:00+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghijk",26],"sql":"165b82cc8c"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:fraction-valid","calls":[{"binds":["org.hypercerts.context.attachment","2025-01-01T00:00:00.123456Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghijk",26],"sql":"165b82cc8c"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:fraction-offset-valid","calls":[{"binds":["org.hypercerts.context.attachment","2025-01-01T00:00:00.5+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghijk",26],"sql":"165b82cc8c"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:no-zone","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:day-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:fraction-empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:fraction-empty-offset","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:month-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:lowercase-z","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:lowercase-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:zone-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:fraction-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:year-0001-valid","calls":[{"binds":["org.hypercerts.context.attachment","0001-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghijk",26],"sql":"165b82cc8c"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:year-5-digit","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:end-of-year-valid","calls":[{"binds":["org.hypercerts.context.attachment","2025-12-31T23:59:59Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghijk",26],"sql":"165b82cc8c"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:zone-plus-15-59","calls":[{"binds":["org.hypercerts.context.attachment","2025-01-01T00:00:00+15:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghijk",26],"sql":"165b82cc8c"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:zone-minus-15-59","calls":[{"binds":["org.hypercerts.context.attachment","2025-01-01T00:00:00-15:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghijk",26],"sql":"165b82cc8c"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:zone-plus-16-00","calls":[{"binds":["org.hypercerts.context.attachment","2025-01-01T00:00:00+16:00","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghijk",26],"sql":"165b82cc8c"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:zone-minus-16-00","calls":[{"binds":["org.hypercerts.context.attachment","2025-01-01T00:00:00-16:00","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghijk",26],"sql":"165b82cc8c"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:zone-plus-23-59-lua-accepted","calls":[{"binds":["org.hypercerts.context.attachment","2025-01-01T00:00:00+23:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghijk",26],"sql":"165b82cc8c"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:zone-minus-23-59-lua-accepted","calls":[{"binds":["org.hypercerts.context.attachment","2025-01-01T00:00:00-23:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghijk",26],"sql":"165b82cc8c"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:feb-29-2026","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:feb-29-2200","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:day-2025-01-31-valid","calls":[{"binds":["org.hypercerts.context.attachment","2025-01-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghijk",26],"sql":"165b82cc8c"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:day-2025-01-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:day-2025-02-28-valid","calls":[{"binds":["org.hypercerts.context.attachment","2025-02-28T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghijk",26],"sql":"165b82cc8c"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:day-2025-02-29-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:day-2025-03-31-valid","calls":[{"binds":["org.hypercerts.context.attachment","2025-03-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghijk",26],"sql":"165b82cc8c"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:day-2025-03-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:day-2025-04-30-valid","calls":[{"binds":["org.hypercerts.context.attachment","2025-04-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghijk",26],"sql":"165b82cc8c"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:day-2025-04-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:day-2025-05-31-valid","calls":[{"binds":["org.hypercerts.context.attachment","2025-05-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghijk",26],"sql":"165b82cc8c"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:day-2025-05-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:day-2025-06-30-valid","calls":[{"binds":["org.hypercerts.context.attachment","2025-06-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghijk",26],"sql":"165b82cc8c"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:day-2025-06-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:day-2025-07-31-valid","calls":[{"binds":["org.hypercerts.context.attachment","2025-07-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghijk",26],"sql":"165b82cc8c"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:day-2025-07-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:day-2025-08-31-valid","calls":[{"binds":["org.hypercerts.context.attachment","2025-08-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghijk",26],"sql":"165b82cc8c"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:day-2025-08-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:day-2025-09-30-valid","calls":[{"binds":["org.hypercerts.context.attachment","2025-09-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghijk",26],"sql":"165b82cc8c"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:day-2025-09-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:day-2025-10-31-valid","calls":[{"binds":["org.hypercerts.context.attachment","2025-10-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghijk",26],"sql":"165b82cc8c"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:day-2025-10-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:day-2025-11-30-valid","calls":[{"binds":["org.hypercerts.context.attachment","2025-11-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghijk",26],"sql":"165b82cc8c"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:day-2025-11-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:day-2025-12-31-valid","calls":[{"binds":["org.hypercerts.context.attachment","2025-12-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghijk",26],"sql":"165b82cc8c"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:day-2025-12-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:day-2024-02-29-valid","calls":[{"binds":["org.hypercerts.context.attachment","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.attachment/3kabcdefghijk",26],"sql":"165b82cc8c"}],"outcome":{"result":{"attachments":[]}}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"datetime:cursor-t:day-2024-02-30-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"error:cursor:wrong-v","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"error:cursor:wrong-collection","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"error:cursor:missing-u","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"error:cursor:u-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"error:cursor:extra-key","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"error:cursor:wrong-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"error:cursor:opposite-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"error:cursor:bad-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"error:cursor:t-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.context.listAttachments","case":"error:cursor:missing-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"default","calls":[{"binds":["org.hypercerts.context.evaluation",26],"sql":"6d8c64ef3d"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"limit=1","calls":[{"binds":["org.hypercerts.context.evaluation",2],"sql":"6d8c64ef3d"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"limit=7","calls":[{"binds":["org.hypercerts.context.evaluation",8],"sql":"6d8c64ef3d"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"limit=99","calls":[{"binds":["org.hypercerts.context.evaluation",100],"sql":"6d8c64ef3d"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"limit=100","calls":[{"binds":["org.hypercerts.context.evaluation",101],"sql":"6d8c64ef3d"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"limit=0","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"limit=101","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"cursor:malformed","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"sort=desc","calls":[{"binds":["org.hypercerts.context.evaluation",26],"sql":"6d8c64ef3d"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"paged:desc","calls":[{"binds":["org.hypercerts.context.evaluation",3],"sql":"6d8c64ef3d"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"cursor":"7b2264223a2264657363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6f72672e687970657263657274732e636f6e746578742e6576616c756174696f6e2f336b6162636465666768696a62222c2276223a317d","evaluations":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwz","organization":null,"profile":null},"cid":"bafyfixture2","did":"did:plc:abcdefghijklmnopqrstuvwz","evaluators":[],"indexedAt":"2025-01-03T00:00:00Z","record":{"$type":"org.hypercerts.context.evaluation","createdAt":"2025-01-03T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwz/org.hypercerts.context.evaluation/3kabcdefghijc"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","evaluators":[],"indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"org.hypercerts.context.evaluation","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.context.evaluation/3kabcdefghijb"}]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"cursor:valid:desc","calls":[{"binds":["org.hypercerts.context.evaluation","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.evaluation/3kabcdefghijk",26],"sql":"4348a3a8ae"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"cursor:valid+limit=7:desc","calls":[{"binds":["org.hypercerts.context.evaluation","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.evaluation/3kabcdefghijk",8],"sql":"4348a3a8ae"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"year0000:cursor:desc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"sort=asc","calls":[{"binds":["org.hypercerts.context.evaluation",26],"sql":"b9753b45e0"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"paged:asc","calls":[{"binds":["org.hypercerts.context.evaluation",3],"sql":"b9753b45e0"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"cursor":"7b2264223a22617363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6f72672e687970657263657274732e636f6e746578742e6576616c756174696f6e2f336b6162636465666768696a62222c2276223a317d","evaluations":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwx","organization":null,"profile":null},"cid":"bafyfixture0","did":"did:plc:abcdefghijklmnopqrstuvwx","evaluators":[],"indexedAt":"2025-01-01T00:00:00Z","record":{"$type":"org.hypercerts.context.evaluation","createdAt":"2025-01-01T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.evaluation/3kabcdefghija"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","evaluators":[],"indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"org.hypercerts.context.evaluation","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.context.evaluation/3kabcdefghijb"}]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"cursor:valid:asc","calls":[{"binds":["org.hypercerts.context.evaluation","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.evaluation/3kabcdefghijk",26],"sql":"3579ec0f41"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"cursor:valid+limit=7:asc","calls":[{"binds":["org.hypercerts.context.evaluation","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.evaluation/3kabcdefghijk",8],"sql":"3579ec0f41"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"year0000:cursor:asc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"filter:authors:many","calls":[{"binds":["org.hypercerts.context.evaluation","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwz",26],"sql":"9b7df21f2c"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"filter:authors:one","calls":[{"binds":["org.hypercerts.context.evaluation","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"56eaf46105"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"filter:authors:one-scalar","calls":[{"binds":["org.hypercerts.context.evaluation","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"56eaf46105"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"filter:authors:duplicate","calls":[{"binds":["org.hypercerts.context.evaluation","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"56eaf46105"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"filter:authors:empty","calls":[{"binds":["org.hypercerts.context.evaluation",26],"sql":"75a34c60e8"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"filter:evaluators:many","calls":[{"binds":["org.hypercerts.context.evaluation","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwz",26],"sql":"5b97334acb"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"filter:evaluators:one","calls":[{"binds":["org.hypercerts.context.evaluation","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"29d082424e"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"filter:evaluators:one-scalar","calls":[{"binds":["org.hypercerts.context.evaluation","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"29d082424e"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"filter:evaluators:duplicate","calls":[{"binds":["org.hypercerts.context.evaluation","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"29d082424e"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"filter:evaluators:empty","calls":[{"binds":["org.hypercerts.context.evaluation",26],"sql":"75a34c60e8"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"filter:subjects:many","calls":[{"binds":["org.hypercerts.context.evaluation","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijb","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijc",26],"sql":"0677ccea57"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"filter:subjects:one","calls":[{"binds":["org.hypercerts.context.evaluation","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija",26],"sql":"bb4b288339"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"filter:subjects:one-scalar","calls":[{"binds":["org.hypercerts.context.evaluation","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija",26],"sql":"bb4b288339"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"filter:subjects:duplicate","calls":[{"binds":["org.hypercerts.context.evaluation","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija",26],"sql":"bb4b288339"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"filter:subjects:empty","calls":[{"binds":["org.hypercerts.context.evaluation",26],"sql":"75a34c60e8"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"filter:all","calls":[{"binds":["org.hypercerts.context.evaluation","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwz","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijb",26],"sql":"fd62cfd14e"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"error:sortDirection=bad","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"error:sortDirection=ASC","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"error:sortDirection=empty","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"error:limit=abc","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"error:limit=1.5","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"error:limit=-1","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"error:limit=0-string","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"error:limit=7-string","calls":[{"binds":["org.hypercerts.context.evaluation",8],"sql":"6d8c64ef3d"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"error:limit=empty","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"error:limit=array","calls":[],"outcome":{"error":"InvalidRequest: limit must occur once"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"error:sortDirection=array","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must occur once"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"error:cursor:non-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"error:cursor:empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"error:cursor:hex-non-json","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"error:cursor:array","calls":[],"outcome":{"error":"InvalidRequest: cursor must occur once"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"error:cursor:uppercase-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"cursor:length-at-cap","calls":[{"binds":["org.hypercerts.context.evaluation","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.evaluation/3kabcdefghijk",26],"sql":"4348a3a8ae"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"cursor:length-below-cap","calls":[{"binds":["org.hypercerts.context.evaluation","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.evaluation/3kabcdefghijk",26],"sql":"4348a3a8ae"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"cursor:length-above-cap","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:month-13","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:feb-30","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:leap-2024-valid","calls":[{"binds":["org.hypercerts.context.evaluation","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.evaluation/3kabcdefghijk",26],"sql":"4348a3a8ae"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:feb-29-2100","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:leap-2000-valid","calls":[{"binds":["org.hypercerts.context.evaluation","2000-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.evaluation/3kabcdefghijk",26],"sql":"4348a3a8ae"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:second-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:hour-24","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:zone-minus-00-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:zone-plus-24-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:zone-minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:zone-plus-05-30-valid","calls":[{"binds":["org.hypercerts.context.evaluation","2025-01-01T00:00:00+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.evaluation/3kabcdefghijk",26],"sql":"4348a3a8ae"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:fraction-valid","calls":[{"binds":["org.hypercerts.context.evaluation","2025-01-01T00:00:00.123456Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.evaluation/3kabcdefghijk",26],"sql":"4348a3a8ae"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:fraction-offset-valid","calls":[{"binds":["org.hypercerts.context.evaluation","2025-01-01T00:00:00.5+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.evaluation/3kabcdefghijk",26],"sql":"4348a3a8ae"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:no-zone","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:day-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:fraction-empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:fraction-empty-offset","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:month-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:lowercase-z","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:lowercase-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:zone-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:fraction-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:year-0001-valid","calls":[{"binds":["org.hypercerts.context.evaluation","0001-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.evaluation/3kabcdefghijk",26],"sql":"4348a3a8ae"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:year-5-digit","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:end-of-year-valid","calls":[{"binds":["org.hypercerts.context.evaluation","2025-12-31T23:59:59Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.evaluation/3kabcdefghijk",26],"sql":"4348a3a8ae"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:zone-plus-15-59","calls":[{"binds":["org.hypercerts.context.evaluation","2025-01-01T00:00:00+15:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.evaluation/3kabcdefghijk",26],"sql":"4348a3a8ae"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:zone-minus-15-59","calls":[{"binds":["org.hypercerts.context.evaluation","2025-01-01T00:00:00-15:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.evaluation/3kabcdefghijk",26],"sql":"4348a3a8ae"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:zone-plus-16-00","calls":[{"binds":["org.hypercerts.context.evaluation","2025-01-01T00:00:00+16:00","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.evaluation/3kabcdefghijk",26],"sql":"4348a3a8ae"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:zone-minus-16-00","calls":[{"binds":["org.hypercerts.context.evaluation","2025-01-01T00:00:00-16:00","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.evaluation/3kabcdefghijk",26],"sql":"4348a3a8ae"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:zone-plus-23-59-lua-accepted","calls":[{"binds":["org.hypercerts.context.evaluation","2025-01-01T00:00:00+23:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.evaluation/3kabcdefghijk",26],"sql":"4348a3a8ae"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:zone-minus-23-59-lua-accepted","calls":[{"binds":["org.hypercerts.context.evaluation","2025-01-01T00:00:00-23:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.evaluation/3kabcdefghijk",26],"sql":"4348a3a8ae"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:feb-29-2026","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:feb-29-2200","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:day-2025-01-31-valid","calls":[{"binds":["org.hypercerts.context.evaluation","2025-01-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.evaluation/3kabcdefghijk",26],"sql":"4348a3a8ae"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:day-2025-01-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:day-2025-02-28-valid","calls":[{"binds":["org.hypercerts.context.evaluation","2025-02-28T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.evaluation/3kabcdefghijk",26],"sql":"4348a3a8ae"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:day-2025-02-29-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:day-2025-03-31-valid","calls":[{"binds":["org.hypercerts.context.evaluation","2025-03-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.evaluation/3kabcdefghijk",26],"sql":"4348a3a8ae"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:day-2025-03-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:day-2025-04-30-valid","calls":[{"binds":["org.hypercerts.context.evaluation","2025-04-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.evaluation/3kabcdefghijk",26],"sql":"4348a3a8ae"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:day-2025-04-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:day-2025-05-31-valid","calls":[{"binds":["org.hypercerts.context.evaluation","2025-05-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.evaluation/3kabcdefghijk",26],"sql":"4348a3a8ae"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:day-2025-05-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:day-2025-06-30-valid","calls":[{"binds":["org.hypercerts.context.evaluation","2025-06-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.evaluation/3kabcdefghijk",26],"sql":"4348a3a8ae"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:day-2025-06-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:day-2025-07-31-valid","calls":[{"binds":["org.hypercerts.context.evaluation","2025-07-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.evaluation/3kabcdefghijk",26],"sql":"4348a3a8ae"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:day-2025-07-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:day-2025-08-31-valid","calls":[{"binds":["org.hypercerts.context.evaluation","2025-08-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.evaluation/3kabcdefghijk",26],"sql":"4348a3a8ae"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:day-2025-08-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:day-2025-09-30-valid","calls":[{"binds":["org.hypercerts.context.evaluation","2025-09-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.evaluation/3kabcdefghijk",26],"sql":"4348a3a8ae"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:day-2025-09-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:day-2025-10-31-valid","calls":[{"binds":["org.hypercerts.context.evaluation","2025-10-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.evaluation/3kabcdefghijk",26],"sql":"4348a3a8ae"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:day-2025-10-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:day-2025-11-30-valid","calls":[{"binds":["org.hypercerts.context.evaluation","2025-11-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.evaluation/3kabcdefghijk",26],"sql":"4348a3a8ae"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:day-2025-11-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:day-2025-12-31-valid","calls":[{"binds":["org.hypercerts.context.evaluation","2025-12-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.evaluation/3kabcdefghijk",26],"sql":"4348a3a8ae"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:day-2025-12-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:day-2024-02-29-valid","calls":[{"binds":["org.hypercerts.context.evaluation","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.evaluation/3kabcdefghijk",26],"sql":"4348a3a8ae"}],"outcome":{"result":{"evaluations":[]}}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"datetime:cursor-t:day-2024-02-30-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"error:cursor:wrong-v","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"error:cursor:wrong-collection","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"error:cursor:missing-u","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"error:cursor:u-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"error:cursor:extra-key","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"error:cursor:wrong-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"error:cursor:opposite-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"error:cursor:bad-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"error:cursor:t-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.context.listEvaluations","case":"error:cursor:missing-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"default","calls":[{"binds":["org.hypercerts.context.measurement",26],"sql":"de2f5ba134"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"limit=1","calls":[{"binds":["org.hypercerts.context.measurement",2],"sql":"de2f5ba134"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"limit=7","calls":[{"binds":["org.hypercerts.context.measurement",8],"sql":"de2f5ba134"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"limit=99","calls":[{"binds":["org.hypercerts.context.measurement",100],"sql":"de2f5ba134"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"limit=100","calls":[{"binds":["org.hypercerts.context.measurement",101],"sql":"de2f5ba134"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"limit=0","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"limit=101","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"cursor:malformed","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"sort=desc","calls":[{"binds":["org.hypercerts.context.measurement",26],"sql":"de2f5ba134"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"paged:desc","calls":[{"binds":["org.hypercerts.context.measurement",3],"sql":"de2f5ba134"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"cursor":"7b2264223a2264657363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6f72672e687970657263657274732e636f6e746578742e6d6561737572656d656e742f336b6162636465666768696a62222c2276223a317d","measurements":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwz","organization":null,"profile":null},"cid":"bafyfixture2","did":"did:plc:abcdefghijklmnopqrstuvwz","indexedAt":"2025-01-03T00:00:00Z","record":{"$type":"org.hypercerts.context.measurement","createdAt":"2025-01-03T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwz/org.hypercerts.context.measurement/3kabcdefghijc"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"org.hypercerts.context.measurement","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.context.measurement/3kabcdefghijb"}]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"cursor:valid:desc","calls":[{"binds":["org.hypercerts.context.measurement","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.measurement/3kabcdefghijk",26],"sql":"2c2e211709"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"cursor:valid+limit=7:desc","calls":[{"binds":["org.hypercerts.context.measurement","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.measurement/3kabcdefghijk",8],"sql":"2c2e211709"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"year0000:cursor:desc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"sort=asc","calls":[{"binds":["org.hypercerts.context.measurement",26],"sql":"77ad89561f"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"paged:asc","calls":[{"binds":["org.hypercerts.context.measurement",3],"sql":"77ad89561f"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"cursor":"7b2264223a22617363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6f72672e687970657263657274732e636f6e746578742e6d6561737572656d656e742f336b6162636465666768696a62222c2276223a317d","measurements":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwx","organization":null,"profile":null},"cid":"bafyfixture0","did":"did:plc:abcdefghijklmnopqrstuvwx","indexedAt":"2025-01-01T00:00:00Z","record":{"$type":"org.hypercerts.context.measurement","createdAt":"2025-01-01T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.measurement/3kabcdefghija"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"org.hypercerts.context.measurement","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.context.measurement/3kabcdefghijb"}]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"cursor:valid:asc","calls":[{"binds":["org.hypercerts.context.measurement","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.measurement/3kabcdefghijk",26],"sql":"670611fb64"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"cursor:valid+limit=7:asc","calls":[{"binds":["org.hypercerts.context.measurement","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.measurement/3kabcdefghijk",8],"sql":"670611fb64"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"year0000:cursor:asc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"filter:authors:many","calls":[{"binds":["org.hypercerts.context.measurement","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwz",26],"sql":"667b351197"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"filter:authors:one","calls":[{"binds":["org.hypercerts.context.measurement","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"fee0b5414b"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"filter:authors:one-scalar","calls":[{"binds":["org.hypercerts.context.measurement","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"fee0b5414b"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"filter:authors:duplicate","calls":[{"binds":["org.hypercerts.context.measurement","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"fee0b5414b"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"filter:authors:empty","calls":[{"binds":["org.hypercerts.context.measurement",26],"sql":"d7232ab4cf"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"filter:subjects:many","calls":[{"binds":["org.hypercerts.context.measurement","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijb","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijc",26],"sql":"ac33fe3268"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"filter:subjects:one","calls":[{"binds":["org.hypercerts.context.measurement","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija",26],"sql":"c37b75815c"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"filter:subjects:one-scalar","calls":[{"binds":["org.hypercerts.context.measurement","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija",26],"sql":"c37b75815c"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"filter:subjects:duplicate","calls":[{"binds":["org.hypercerts.context.measurement","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija",26],"sql":"c37b75815c"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"filter:subjects:empty","calls":[{"binds":["org.hypercerts.context.measurement",26],"sql":"d7232ab4cf"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"filter:all","calls":[{"binds":["org.hypercerts.context.measurement","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijb","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijc",26],"sql":"a8fc854d42"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"error:sortDirection=bad","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"error:sortDirection=ASC","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"error:sortDirection=empty","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"error:limit=abc","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"error:limit=1.5","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"error:limit=-1","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"error:limit=0-string","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"error:limit=7-string","calls":[{"binds":["org.hypercerts.context.measurement",8],"sql":"de2f5ba134"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"error:limit=empty","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"error:limit=array","calls":[],"outcome":{"error":"InvalidRequest: limit must occur once"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"error:sortDirection=array","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must occur once"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"error:cursor:non-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"error:cursor:empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"error:cursor:hex-non-json","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"error:cursor:array","calls":[],"outcome":{"error":"InvalidRequest: cursor must occur once"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"error:cursor:uppercase-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"cursor:length-at-cap","calls":[{"binds":["org.hypercerts.context.measurement","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.measurement/3kabcdefghijk",26],"sql":"2c2e211709"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"cursor:length-below-cap","calls":[{"binds":["org.hypercerts.context.measurement","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.measurement/3kabcdefghijk",26],"sql":"2c2e211709"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"cursor:length-above-cap","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:month-13","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:feb-30","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:leap-2024-valid","calls":[{"binds":["org.hypercerts.context.measurement","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.measurement/3kabcdefghijk",26],"sql":"2c2e211709"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:feb-29-2100","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:leap-2000-valid","calls":[{"binds":["org.hypercerts.context.measurement","2000-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.measurement/3kabcdefghijk",26],"sql":"2c2e211709"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:second-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:hour-24","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:zone-minus-00-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:zone-plus-24-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:zone-minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:zone-plus-05-30-valid","calls":[{"binds":["org.hypercerts.context.measurement","2025-01-01T00:00:00+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.measurement/3kabcdefghijk",26],"sql":"2c2e211709"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:fraction-valid","calls":[{"binds":["org.hypercerts.context.measurement","2025-01-01T00:00:00.123456Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.measurement/3kabcdefghijk",26],"sql":"2c2e211709"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:fraction-offset-valid","calls":[{"binds":["org.hypercerts.context.measurement","2025-01-01T00:00:00.5+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.measurement/3kabcdefghijk",26],"sql":"2c2e211709"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:no-zone","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:day-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:fraction-empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:fraction-empty-offset","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:month-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:lowercase-z","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:lowercase-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:zone-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:fraction-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:year-0001-valid","calls":[{"binds":["org.hypercerts.context.measurement","0001-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.measurement/3kabcdefghijk",26],"sql":"2c2e211709"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:year-5-digit","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:end-of-year-valid","calls":[{"binds":["org.hypercerts.context.measurement","2025-12-31T23:59:59Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.measurement/3kabcdefghijk",26],"sql":"2c2e211709"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:zone-plus-15-59","calls":[{"binds":["org.hypercerts.context.measurement","2025-01-01T00:00:00+15:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.measurement/3kabcdefghijk",26],"sql":"2c2e211709"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:zone-minus-15-59","calls":[{"binds":["org.hypercerts.context.measurement","2025-01-01T00:00:00-15:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.measurement/3kabcdefghijk",26],"sql":"2c2e211709"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:zone-plus-16-00","calls":[{"binds":["org.hypercerts.context.measurement","2025-01-01T00:00:00+16:00","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.measurement/3kabcdefghijk",26],"sql":"2c2e211709"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:zone-minus-16-00","calls":[{"binds":["org.hypercerts.context.measurement","2025-01-01T00:00:00-16:00","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.measurement/3kabcdefghijk",26],"sql":"2c2e211709"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:zone-plus-23-59-lua-accepted","calls":[{"binds":["org.hypercerts.context.measurement","2025-01-01T00:00:00+23:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.measurement/3kabcdefghijk",26],"sql":"2c2e211709"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:zone-minus-23-59-lua-accepted","calls":[{"binds":["org.hypercerts.context.measurement","2025-01-01T00:00:00-23:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.measurement/3kabcdefghijk",26],"sql":"2c2e211709"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:feb-29-2026","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:feb-29-2200","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:day-2025-01-31-valid","calls":[{"binds":["org.hypercerts.context.measurement","2025-01-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.measurement/3kabcdefghijk",26],"sql":"2c2e211709"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:day-2025-01-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:day-2025-02-28-valid","calls":[{"binds":["org.hypercerts.context.measurement","2025-02-28T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.measurement/3kabcdefghijk",26],"sql":"2c2e211709"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:day-2025-02-29-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:day-2025-03-31-valid","calls":[{"binds":["org.hypercerts.context.measurement","2025-03-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.measurement/3kabcdefghijk",26],"sql":"2c2e211709"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:day-2025-03-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:day-2025-04-30-valid","calls":[{"binds":["org.hypercerts.context.measurement","2025-04-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.measurement/3kabcdefghijk",26],"sql":"2c2e211709"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:day-2025-04-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:day-2025-05-31-valid","calls":[{"binds":["org.hypercerts.context.measurement","2025-05-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.measurement/3kabcdefghijk",26],"sql":"2c2e211709"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:day-2025-05-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:day-2025-06-30-valid","calls":[{"binds":["org.hypercerts.context.measurement","2025-06-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.measurement/3kabcdefghijk",26],"sql":"2c2e211709"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:day-2025-06-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:day-2025-07-31-valid","calls":[{"binds":["org.hypercerts.context.measurement","2025-07-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.measurement/3kabcdefghijk",26],"sql":"2c2e211709"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:day-2025-07-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:day-2025-08-31-valid","calls":[{"binds":["org.hypercerts.context.measurement","2025-08-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.measurement/3kabcdefghijk",26],"sql":"2c2e211709"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:day-2025-08-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:day-2025-09-30-valid","calls":[{"binds":["org.hypercerts.context.measurement","2025-09-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.measurement/3kabcdefghijk",26],"sql":"2c2e211709"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:day-2025-09-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:day-2025-10-31-valid","calls":[{"binds":["org.hypercerts.context.measurement","2025-10-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.measurement/3kabcdefghijk",26],"sql":"2c2e211709"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:day-2025-10-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:day-2025-11-30-valid","calls":[{"binds":["org.hypercerts.context.measurement","2025-11-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.measurement/3kabcdefghijk",26],"sql":"2c2e211709"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:day-2025-11-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:day-2025-12-31-valid","calls":[{"binds":["org.hypercerts.context.measurement","2025-12-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.measurement/3kabcdefghijk",26],"sql":"2c2e211709"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:day-2025-12-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:day-2024-02-29-valid","calls":[{"binds":["org.hypercerts.context.measurement","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.context.measurement/3kabcdefghijk",26],"sql":"2c2e211709"}],"outcome":{"result":{"measurements":[]}}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"datetime:cursor-t:day-2024-02-30-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"error:cursor:wrong-v","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"error:cursor:wrong-collection","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"error:cursor:missing-u","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"error:cursor:u-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"error:cursor:extra-key","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"error:cursor:wrong-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"error:cursor:opposite-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"error:cursor:bad-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"error:cursor:t-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.context.listMeasurements","case":"error:cursor:missing-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"default","calls":[{"binds":["org.hypercerts.entity.feature",26],"sql":"5f1a04a6f6"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"limit=1","calls":[{"binds":["org.hypercerts.entity.feature",2],"sql":"5f1a04a6f6"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"limit=7","calls":[{"binds":["org.hypercerts.entity.feature",8],"sql":"5f1a04a6f6"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"limit=99","calls":[{"binds":["org.hypercerts.entity.feature",100],"sql":"5f1a04a6f6"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"limit=100","calls":[{"binds":["org.hypercerts.entity.feature",101],"sql":"5f1a04a6f6"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"limit=0","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"limit=101","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"cursor:malformed","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"sort=desc","calls":[{"binds":["org.hypercerts.entity.feature",26],"sql":"5f1a04a6f6"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"paged:desc","calls":[{"binds":["org.hypercerts.entity.feature",3],"sql":"5f1a04a6f6"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"26f10c09e4"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"26f10c09e4"}],"outcome":{"result":{"cursor":"7b2264223a2264657363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6f72672e687970657263657274732e656e746974792e666561747572652f336b6162636465666768696a62222c2276223a317d","features":[{"$type":"org.hypercerts.entity.defs#featureView","author":{"did":"did:plc:abcdefghijklmnopqrstuvwz","organization":null,"profile":null},"cid":"bafyfixture2","did":"did:plc:abcdefghijklmnopqrstuvwz","indexedAt":"2025-01-03T00:00:00Z","record":{"$type":"org.hypercerts.entity.feature","createdAt":"2025-01-03T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwz/org.hypercerts.entity.feature/3kabcdefghijc"},{"$type":"org.hypercerts.entity.defs#featureView","author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"org.hypercerts.entity.feature","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.entity.feature/3kabcdefghijb"}]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"cursor:valid:desc","calls":[{"binds":["org.hypercerts.entity.feature","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.entity.feature/3kabcdefghijk",26],"sql":"d8dea693a3"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"cursor:valid+limit=7:desc","calls":[{"binds":["org.hypercerts.entity.feature","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.entity.feature/3kabcdefghijk",8],"sql":"d8dea693a3"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"year0000:cursor:desc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"sort=asc","calls":[{"binds":["org.hypercerts.entity.feature",26],"sql":"0402e9caf5"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"paged:asc","calls":[{"binds":["org.hypercerts.entity.feature",3],"sql":"0402e9caf5"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"26f10c09e4"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"26f10c09e4"}],"outcome":{"result":{"cursor":"7b2264223a22617363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6f72672e687970657263657274732e656e746974792e666561747572652f336b6162636465666768696a62222c2276223a317d","features":[{"$type":"org.hypercerts.entity.defs#featureView","author":{"did":"did:plc:abcdefghijklmnopqrstuvwx","organization":null,"profile":null},"cid":"bafyfixture0","did":"did:plc:abcdefghijklmnopqrstuvwx","indexedAt":"2025-01-01T00:00:00Z","record":{"$type":"org.hypercerts.entity.feature","createdAt":"2025-01-01T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.entity.feature/3kabcdefghija"},{"$type":"org.hypercerts.entity.defs#featureView","author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"org.hypercerts.entity.feature","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.entity.feature/3kabcdefghijb"}]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"cursor:valid:asc","calls":[{"binds":["org.hypercerts.entity.feature","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.entity.feature/3kabcdefghijk",26],"sql":"2125462720"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"cursor:valid+limit=7:asc","calls":[{"binds":["org.hypercerts.entity.feature","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.entity.feature/3kabcdefghijk",8],"sql":"2125462720"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"year0000:cursor:asc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"filter:authors:many","calls":[{"binds":["org.hypercerts.entity.feature","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwz",26],"sql":"cbc411b34a"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"filter:authors:one","calls":[{"binds":["org.hypercerts.entity.feature","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"2e4b9a5ce8"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"filter:authors:one-scalar","calls":[{"binds":["org.hypercerts.entity.feature","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"2e4b9a5ce8"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"filter:authors:duplicate","calls":[{"binds":["org.hypercerts.entity.feature","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"2e4b9a5ce8"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"filter:authors:empty","calls":[{"binds":["org.hypercerts.entity.feature",26],"sql":"fe4a9479a5"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"filter:hasOrganizationRecord=boolean:true","calls":[{"binds":["org.hypercerts.entity.feature",26],"sql":"1f264cba3c"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"filter:hasOrganizationRecord=boolean:false","calls":[{"binds":["org.hypercerts.entity.feature",26],"sql":"92fa39766a"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"filter:hasOrganizationRecord=string:true","calls":[{"binds":["org.hypercerts.entity.feature",26],"sql":"1f264cba3c"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"filter:hasOrganizationRecord=string:false","calls":[{"binds":["org.hypercerts.entity.feature",26],"sql":"92fa39766a"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"filter:types:many","calls":[{"binds":["org.hypercerts.entity.feature","project","portfolio","theme",26],"sql":"f774ae6084"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"filter:types:one","calls":[{"binds":["org.hypercerts.entity.feature","project",26],"sql":"6c1a25fc34"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"filter:types:one-scalar","calls":[{"binds":["org.hypercerts.entity.feature","project",26],"sql":"6c1a25fc34"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"filter:types:duplicate","calls":[{"binds":["org.hypercerts.entity.feature","project",26],"sql":"6c1a25fc34"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"filter:types:empty","calls":[{"binds":["org.hypercerts.entity.feature",26],"sql":"fe4a9479a5"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"filter:all","calls":[{"binds":["org.hypercerts.entity.feature","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","project","portfolio",26],"sql":"1a4336693f"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"error:sortDirection=bad","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"error:sortDirection=ASC","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"error:sortDirection=empty","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"error:limit=abc","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"error:limit=1.5","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"error:limit=-1","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"error:limit=0-string","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"error:limit=7-string","calls":[{"binds":["org.hypercerts.entity.feature",8],"sql":"5f1a04a6f6"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"error:limit=empty","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"error:limit=array","calls":[],"outcome":{"error":"InvalidRequest: limit must occur once"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"error:sortDirection=array","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must occur once"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"error:cursor:non-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"error:cursor:empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"error:cursor:hex-non-json","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"error:cursor:array","calls":[],"outcome":{"error":"InvalidRequest: cursor must occur once as a string"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"error:cursor:uppercase-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"cursor:length-at-cap","calls":[{"binds":["org.hypercerts.entity.feature","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.entity.feature/3kabcdefghijk",26],"sql":"d8dea693a3"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"cursor:length-below-cap","calls":[{"binds":["org.hypercerts.entity.feature","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.entity.feature/3kabcdefghijk",26],"sql":"d8dea693a3"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"cursor:length-above-cap","calls":[{"binds":["org.hypercerts.entity.feature","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.entity.feature/3kabcdefghijk",26],"sql":"d8dea693a3"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:month-13","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:feb-30","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:leap-2024-valid","calls":[{"binds":["org.hypercerts.entity.feature","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.entity.feature/3kabcdefghijk",26],"sql":"d8dea693a3"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:feb-29-2100","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:leap-2000-valid","calls":[{"binds":["org.hypercerts.entity.feature","2000-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.entity.feature/3kabcdefghijk",26],"sql":"d8dea693a3"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:second-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:hour-24","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:zone-minus-00-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:zone-plus-24-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:zone-minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:zone-plus-05-30-valid","calls":[{"binds":["org.hypercerts.entity.feature","2025-01-01T00:00:00+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.entity.feature/3kabcdefghijk",26],"sql":"d8dea693a3"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:fraction-valid","calls":[{"binds":["org.hypercerts.entity.feature","2025-01-01T00:00:00.123456Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.entity.feature/3kabcdefghijk",26],"sql":"d8dea693a3"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:fraction-offset-valid","calls":[{"binds":["org.hypercerts.entity.feature","2025-01-01T00:00:00.5+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.entity.feature/3kabcdefghijk",26],"sql":"d8dea693a3"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:no-zone","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:day-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:fraction-empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:fraction-empty-offset","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:month-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:lowercase-z","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:lowercase-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:zone-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:fraction-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:year-0001-valid","calls":[{"binds":["org.hypercerts.entity.feature","0001-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.entity.feature/3kabcdefghijk",26],"sql":"d8dea693a3"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:year-5-digit","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:end-of-year-valid","calls":[{"binds":["org.hypercerts.entity.feature","2025-12-31T23:59:59Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.entity.feature/3kabcdefghijk",26],"sql":"d8dea693a3"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:zone-plus-15-59","calls":[{"binds":["org.hypercerts.entity.feature","2025-01-01T00:00:00+15:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.entity.feature/3kabcdefghijk",26],"sql":"d8dea693a3"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:zone-minus-15-59","calls":[{"binds":["org.hypercerts.entity.feature","2025-01-01T00:00:00-15:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.entity.feature/3kabcdefghijk",26],"sql":"d8dea693a3"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:zone-plus-16-00","calls":[{"binds":["org.hypercerts.entity.feature","2025-01-01T00:00:00+16:00","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.entity.feature/3kabcdefghijk",26],"sql":"d8dea693a3"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:zone-minus-16-00","calls":[{"binds":["org.hypercerts.entity.feature","2025-01-01T00:00:00-16:00","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.entity.feature/3kabcdefghijk",26],"sql":"d8dea693a3"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:zone-plus-23-59-lua-accepted","calls":[{"binds":["org.hypercerts.entity.feature","2025-01-01T00:00:00+23:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.entity.feature/3kabcdefghijk",26],"sql":"d8dea693a3"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:zone-minus-23-59-lua-accepted","calls":[{"binds":["org.hypercerts.entity.feature","2025-01-01T00:00:00-23:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.entity.feature/3kabcdefghijk",26],"sql":"d8dea693a3"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:feb-29-2026","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:feb-29-2200","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:day-2025-01-31-valid","calls":[{"binds":["org.hypercerts.entity.feature","2025-01-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.entity.feature/3kabcdefghijk",26],"sql":"d8dea693a3"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:day-2025-01-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:day-2025-02-28-valid","calls":[{"binds":["org.hypercerts.entity.feature","2025-02-28T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.entity.feature/3kabcdefghijk",26],"sql":"d8dea693a3"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:day-2025-02-29-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:day-2025-03-31-valid","calls":[{"binds":["org.hypercerts.entity.feature","2025-03-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.entity.feature/3kabcdefghijk",26],"sql":"d8dea693a3"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:day-2025-03-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:day-2025-04-30-valid","calls":[{"binds":["org.hypercerts.entity.feature","2025-04-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.entity.feature/3kabcdefghijk",26],"sql":"d8dea693a3"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:day-2025-04-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:day-2025-05-31-valid","calls":[{"binds":["org.hypercerts.entity.feature","2025-05-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.entity.feature/3kabcdefghijk",26],"sql":"d8dea693a3"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:day-2025-05-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:day-2025-06-30-valid","calls":[{"binds":["org.hypercerts.entity.feature","2025-06-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.entity.feature/3kabcdefghijk",26],"sql":"d8dea693a3"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:day-2025-06-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:day-2025-07-31-valid","calls":[{"binds":["org.hypercerts.entity.feature","2025-07-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.entity.feature/3kabcdefghijk",26],"sql":"d8dea693a3"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:day-2025-07-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:day-2025-08-31-valid","calls":[{"binds":["org.hypercerts.entity.feature","2025-08-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.entity.feature/3kabcdefghijk",26],"sql":"d8dea693a3"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:day-2025-08-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:day-2025-09-30-valid","calls":[{"binds":["org.hypercerts.entity.feature","2025-09-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.entity.feature/3kabcdefghijk",26],"sql":"d8dea693a3"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:day-2025-09-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:day-2025-10-31-valid","calls":[{"binds":["org.hypercerts.entity.feature","2025-10-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.entity.feature/3kabcdefghijk",26],"sql":"d8dea693a3"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:day-2025-10-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:day-2025-11-30-valid","calls":[{"binds":["org.hypercerts.entity.feature","2025-11-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.entity.feature/3kabcdefghijk",26],"sql":"d8dea693a3"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:day-2025-11-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:day-2025-12-31-valid","calls":[{"binds":["org.hypercerts.entity.feature","2025-12-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.entity.feature/3kabcdefghijk",26],"sql":"d8dea693a3"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:day-2025-12-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:day-2024-02-29-valid","calls":[{"binds":["org.hypercerts.entity.feature","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.entity.feature/3kabcdefghijk",26],"sql":"d8dea693a3"}],"outcome":{"result":{"features":[]}}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"datetime:cursor-t:day-2024-02-30-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"error:cursor:wrong-v","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"error:cursor:wrong-collection","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"error:cursor:missing-u","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"error:cursor:u-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"error:cursor:extra-key","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"error:cursor:wrong-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"error:cursor:opposite-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"error:cursor:bad-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"error:cursor:t-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.entity.listFeatures","case":"error:cursor:missing-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"default","calls":[{"binds":["org.hypercerts.funding.receipt",26],"sql":"7a3a9df1b7"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"limit=1","calls":[{"binds":["org.hypercerts.funding.receipt",2],"sql":"7a3a9df1b7"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"limit=7","calls":[{"binds":["org.hypercerts.funding.receipt",8],"sql":"7a3a9df1b7"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"limit=99","calls":[{"binds":["org.hypercerts.funding.receipt",100],"sql":"7a3a9df1b7"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"limit=100","calls":[{"binds":["org.hypercerts.funding.receipt",101],"sql":"7a3a9df1b7"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"limit=0","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"limit=101","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"cursor:malformed","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"sort=desc","calls":[{"binds":["org.hypercerts.funding.receipt",26],"sql":"7a3a9df1b7"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"paged:desc","calls":[{"binds":["org.hypercerts.funding.receipt",3],"sql":"7a3a9df1b7"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"cursor":"7b2264223a2264657363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6f72672e687970657263657274732e66756e64696e672e726563656970742f336b6162636465666768696a62222c2276223a317d","receipts":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwz","organization":null,"profile":null},"cid":"bafyfixture2","did":"did:plc:abcdefghijklmnopqrstuvwz","indexedAt":"2025-01-03T00:00:00Z","record":{"$type":"org.hypercerts.funding.receipt","createdAt":"2025-01-03T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwz/org.hypercerts.funding.receipt/3kabcdefghijc"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"org.hypercerts.funding.receipt","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.funding.receipt/3kabcdefghijb"}]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"cursor:valid:desc","calls":[{"binds":["org.hypercerts.funding.receipt","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghijk",26],"sql":"47dcb081c6"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"cursor:valid+limit=7:desc","calls":[{"binds":["org.hypercerts.funding.receipt","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghijk",8],"sql":"47dcb081c6"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"year0000:cursor:desc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"sort=asc","calls":[{"binds":["org.hypercerts.funding.receipt",26],"sql":"0b5e125e2f"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"paged:asc","calls":[{"binds":["org.hypercerts.funding.receipt",3],"sql":"0b5e125e2f"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"cursor":"7b2264223a22617363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6f72672e687970657263657274732e66756e64696e672e726563656970742f336b6162636465666768696a62222c2276223a317d","receipts":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwx","organization":null,"profile":null},"cid":"bafyfixture0","did":"did:plc:abcdefghijklmnopqrstuvwx","indexedAt":"2025-01-01T00:00:00Z","record":{"$type":"org.hypercerts.funding.receipt","createdAt":"2025-01-01T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghija"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"org.hypercerts.funding.receipt","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.funding.receipt/3kabcdefghijb"}]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"cursor:valid:asc","calls":[{"binds":["org.hypercerts.funding.receipt","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghijk",26],"sql":"9c5d84a518"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"cursor:valid+limit=7:asc","calls":[{"binds":["org.hypercerts.funding.receipt","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghijk",8],"sql":"9c5d84a518"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"year0000:cursor:asc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"filter:authors:many","calls":[{"binds":["org.hypercerts.funding.receipt","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwz",26],"sql":"18e7a85675"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"filter:authors:one","calls":[{"binds":["org.hypercerts.funding.receipt","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"032ae5b6b1"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"filter:authors:one-scalar","calls":[{"binds":["org.hypercerts.funding.receipt","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"032ae5b6b1"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"filter:authors:duplicate","calls":[{"binds":["org.hypercerts.funding.receipt","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"032ae5b6b1"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"filter:authors:empty","calls":[{"binds":["org.hypercerts.funding.receipt",26],"sql":"1179b6a5dd"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"filter:uris:many","calls":[{"binds":["org.hypercerts.funding.receipt","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghija","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghijb","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghijc",26],"sql":"7509a18685"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"filter:uris:one","calls":[{"binds":["org.hypercerts.funding.receipt","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghija",26],"sql":"9774bdb4af"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"filter:uris:one-scalar","calls":[{"binds":["org.hypercerts.funding.receipt","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghija",26],"sql":"9774bdb4af"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"filter:uris:duplicate","calls":[{"binds":["org.hypercerts.funding.receipt","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghija",26],"sql":"9774bdb4af"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"filter:uris:empty","calls":[{"binds":["org.hypercerts.funding.receipt",26],"sql":"1179b6a5dd"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"filter:from:many","calls":[{"binds":["org.hypercerts.funding.receipt","did:plc:abcdefghijklmnopqrstuvwy","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijc",26],"sql":"7754ca267f"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"filter:from:one","calls":[{"binds":["org.hypercerts.funding.receipt","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija",26],"sql":"8770b97353"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"filter:from:one-scalar","calls":[{"binds":["org.hypercerts.funding.receipt","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija",26],"sql":"8770b97353"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"filter:from:duplicate","calls":[{"binds":["org.hypercerts.funding.receipt","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija",26],"sql":"8770b97353"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"filter:from:empty","calls":[{"binds":["org.hypercerts.funding.receipt",26],"sql":"1179b6a5dd"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"filter:from:mixed-many","calls":[{"binds":["org.hypercerts.funding.receipt","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijb",26],"sql":"f46a8471ac"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"filter:to:many","calls":[{"binds":["org.hypercerts.funding.receipt","did:plc:abcdefghijklmnopqrstuvwy","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijc",26],"sql":"c93c12651c"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"filter:to:one","calls":[{"binds":["org.hypercerts.funding.receipt","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija",26],"sql":"84232a2660"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"filter:to:one-scalar","calls":[{"binds":["org.hypercerts.funding.receipt","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija",26],"sql":"84232a2660"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"filter:to:duplicate","calls":[{"binds":["org.hypercerts.funding.receipt","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija",26],"sql":"84232a2660"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"filter:to:empty","calls":[{"binds":["org.hypercerts.funding.receipt",26],"sql":"1179b6a5dd"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"filter:to:mixed-many","calls":[{"binds":["org.hypercerts.funding.receipt","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijb",26],"sql":"f1d764afaa"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"filter:forUris:many","calls":[{"binds":["org.hypercerts.funding.receipt","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijb","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijc",26],"sql":"aeb346d897"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"filter:forUris:one","calls":[{"binds":["org.hypercerts.funding.receipt","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija",26],"sql":"641d03e31b"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"filter:forUris:one-scalar","calls":[{"binds":["org.hypercerts.funding.receipt","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija",26],"sql":"641d03e31b"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"filter:forUris:duplicate","calls":[{"binds":["org.hypercerts.funding.receipt","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija",26],"sql":"641d03e31b"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"filter:forUris:empty","calls":[{"binds":["org.hypercerts.funding.receipt",26],"sql":"1179b6a5dd"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"filter:transactionIds:many","calls":[{"binds":["org.hypercerts.funding.receipt","0x1111111111111111111111111111111111111111111111111111111111111111","0x2222222222222222222222222222222222222222222222222222222222222222","0x3333333333333333333333333333333333333333333333333333333333333333",26],"sql":"b5829b39fd"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"filter:transactionIds:one","calls":[{"binds":["org.hypercerts.funding.receipt","0x1111111111111111111111111111111111111111111111111111111111111111",26],"sql":"5413d88dea"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"filter:transactionIds:one-scalar","calls":[{"binds":["org.hypercerts.funding.receipt","0x1111111111111111111111111111111111111111111111111111111111111111",26],"sql":"5413d88dea"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"filter:transactionIds:duplicate","calls":[{"binds":["org.hypercerts.funding.receipt","0x1111111111111111111111111111111111111111111111111111111111111111",26],"sql":"5413d88dea"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"filter:transactionIds:empty","calls":[{"binds":["org.hypercerts.funding.receipt",26],"sql":"1179b6a5dd"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"filter:all","calls":[{"binds":["org.hypercerts.funding.receipt","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghijb","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghijc","did:plc:abcdefghijklmnopqrstuvwy","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija","did:plc:abcdefghijklmnopqrstuvwy","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijc","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghija","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.claim.activity/3kabcdefghijb","0x2222222222222222222222222222222222222222222222222222222222222222","0x3333333333333333333333333333333333333333333333333333333333333333",26],"sql":"305c607ef5"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"error:sortDirection=bad","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"error:sortDirection=ASC","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"error:sortDirection=empty","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"error:limit=abc","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"error:limit=1.5","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"error:limit=-1","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"error:limit=0-string","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"error:limit=7-string","calls":[{"binds":["org.hypercerts.funding.receipt",8],"sql":"7a3a9df1b7"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"error:limit=empty","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"error:limit=array","calls":[],"outcome":{"error":"InvalidRequest: limit must occur once"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"error:sortDirection=array","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must occur once"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"error:cursor:non-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"error:cursor:empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"error:cursor:hex-non-json","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"error:cursor:array","calls":[],"outcome":{"error":"InvalidRequest: cursor must occur once"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"error:cursor:uppercase-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"cursor:length-at-cap","calls":[{"binds":["org.hypercerts.funding.receipt","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghijk",26],"sql":"47dcb081c6"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"cursor:length-below-cap","calls":[{"binds":["org.hypercerts.funding.receipt","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghijk",26],"sql":"47dcb081c6"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"cursor:length-above-cap","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:month-13","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:feb-30","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:leap-2024-valid","calls":[{"binds":["org.hypercerts.funding.receipt","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghijk",26],"sql":"47dcb081c6"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:feb-29-2100","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:leap-2000-valid","calls":[{"binds":["org.hypercerts.funding.receipt","2000-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghijk",26],"sql":"47dcb081c6"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:second-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:hour-24","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:zone-minus-00-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:zone-plus-24-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:zone-minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:zone-plus-05-30-valid","calls":[{"binds":["org.hypercerts.funding.receipt","2025-01-01T00:00:00+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghijk",26],"sql":"47dcb081c6"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:fraction-valid","calls":[{"binds":["org.hypercerts.funding.receipt","2025-01-01T00:00:00.123456Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghijk",26],"sql":"47dcb081c6"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:fraction-offset-valid","calls":[{"binds":["org.hypercerts.funding.receipt","2025-01-01T00:00:00.5+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghijk",26],"sql":"47dcb081c6"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:no-zone","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:day-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:fraction-empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:fraction-empty-offset","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:month-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:lowercase-z","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:lowercase-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:zone-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:fraction-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:year-0001-valid","calls":[{"binds":["org.hypercerts.funding.receipt","0001-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghijk",26],"sql":"47dcb081c6"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:year-5-digit","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:end-of-year-valid","calls":[{"binds":["org.hypercerts.funding.receipt","2025-12-31T23:59:59Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghijk",26],"sql":"47dcb081c6"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:zone-plus-15-59","calls":[{"binds":["org.hypercerts.funding.receipt","2025-01-01T00:00:00+15:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghijk",26],"sql":"47dcb081c6"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:zone-minus-15-59","calls":[{"binds":["org.hypercerts.funding.receipt","2025-01-01T00:00:00-15:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghijk",26],"sql":"47dcb081c6"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:zone-plus-16-00","calls":[{"binds":["org.hypercerts.funding.receipt","2025-01-01T00:00:00+16:00","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghijk",26],"sql":"47dcb081c6"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:zone-minus-16-00","calls":[{"binds":["org.hypercerts.funding.receipt","2025-01-01T00:00:00-16:00","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghijk",26],"sql":"47dcb081c6"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:zone-plus-23-59-lua-accepted","calls":[{"binds":["org.hypercerts.funding.receipt","2025-01-01T00:00:00+23:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghijk",26],"sql":"47dcb081c6"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:zone-minus-23-59-lua-accepted","calls":[{"binds":["org.hypercerts.funding.receipt","2025-01-01T00:00:00-23:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghijk",26],"sql":"47dcb081c6"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:feb-29-2026","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:feb-29-2200","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:day-2025-01-31-valid","calls":[{"binds":["org.hypercerts.funding.receipt","2025-01-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghijk",26],"sql":"47dcb081c6"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:day-2025-01-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:day-2025-02-28-valid","calls":[{"binds":["org.hypercerts.funding.receipt","2025-02-28T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghijk",26],"sql":"47dcb081c6"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:day-2025-02-29-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:day-2025-03-31-valid","calls":[{"binds":["org.hypercerts.funding.receipt","2025-03-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghijk",26],"sql":"47dcb081c6"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:day-2025-03-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:day-2025-04-30-valid","calls":[{"binds":["org.hypercerts.funding.receipt","2025-04-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghijk",26],"sql":"47dcb081c6"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:day-2025-04-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:day-2025-05-31-valid","calls":[{"binds":["org.hypercerts.funding.receipt","2025-05-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghijk",26],"sql":"47dcb081c6"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:day-2025-05-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:day-2025-06-30-valid","calls":[{"binds":["org.hypercerts.funding.receipt","2025-06-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghijk",26],"sql":"47dcb081c6"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:day-2025-06-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:day-2025-07-31-valid","calls":[{"binds":["org.hypercerts.funding.receipt","2025-07-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghijk",26],"sql":"47dcb081c6"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:day-2025-07-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:day-2025-08-31-valid","calls":[{"binds":["org.hypercerts.funding.receipt","2025-08-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghijk",26],"sql":"47dcb081c6"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:day-2025-08-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:day-2025-09-30-valid","calls":[{"binds":["org.hypercerts.funding.receipt","2025-09-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghijk",26],"sql":"47dcb081c6"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:day-2025-09-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:day-2025-10-31-valid","calls":[{"binds":["org.hypercerts.funding.receipt","2025-10-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghijk",26],"sql":"47dcb081c6"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:day-2025-10-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:day-2025-11-30-valid","calls":[{"binds":["org.hypercerts.funding.receipt","2025-11-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghijk",26],"sql":"47dcb081c6"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:day-2025-11-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:day-2025-12-31-valid","calls":[{"binds":["org.hypercerts.funding.receipt","2025-12-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghijk",26],"sql":"47dcb081c6"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:day-2025-12-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:day-2024-02-29-valid","calls":[{"binds":["org.hypercerts.funding.receipt","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.funding.receipt/3kabcdefghijk",26],"sql":"47dcb081c6"}],"outcome":{"result":{"receipts":[]}}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"datetime:cursor-t:day-2024-02-30-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"error:cursor:wrong-v","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"error:cursor:wrong-collection","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"error:cursor:missing-u","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"error:cursor:u-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"error:cursor:extra-key","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"error:cursor:wrong-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"error:cursor:opposite-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"error:cursor:bad-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"error:cursor:t-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.funding.listReceipts","case":"error:cursor:missing-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"default","calls":[{"binds":["org.hypercerts.vocab.tag",26],"sql":"fdd374e87e"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"limit=1","calls":[{"binds":["org.hypercerts.vocab.tag",2],"sql":"fdd374e87e"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"limit=7","calls":[{"binds":["org.hypercerts.vocab.tag",8],"sql":"fdd374e87e"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"limit=99","calls":[{"binds":["org.hypercerts.vocab.tag",100],"sql":"fdd374e87e"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"limit=100","calls":[{"binds":["org.hypercerts.vocab.tag",101],"sql":"fdd374e87e"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"limit=0","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"limit=101","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"cursor:malformed","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"sort=desc","calls":[{"binds":["org.hypercerts.vocab.tag",26],"sql":"fdd374e87e"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"paged:desc","calls":[{"binds":["org.hypercerts.vocab.tag",3],"sql":"fdd374e87e"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"cursor":"7b2264223a2264657363222c2266223a22222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6f72672e687970657263657274732e766f6361622e7461672f336b6162636465666768696a62222c2276223a317d","vocabTags":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwz","organization":null,"profile":null},"cid":"bafyfixture2","did":"did:plc:abcdefghijklmnopqrstuvwz","indexedAt":"2025-01-03T00:00:00Z","record":{"$type":"org.hypercerts.vocab.tag","createdAt":"2025-01-03T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwz/org.hypercerts.vocab.tag/3kabcdefghijc"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"org.hypercerts.vocab.tag","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.vocab.tag/3kabcdefghijb"}]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"cursor:valid:desc","calls":[{"binds":["org.hypercerts.vocab.tag","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"cursor:valid+limit=7:desc","calls":[{"binds":["org.hypercerts.vocab.tag","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijk",8],"sql":"2712d7dd78"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"year0000:cursor:desc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"sort=asc","calls":[{"binds":["org.hypercerts.vocab.tag",26],"sql":"fbade26882"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"paged:asc","calls":[{"binds":["org.hypercerts.vocab.tag",3],"sql":"fbade26882"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"cursor":"7b2264223a22617363222c2266223a22222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6f72672e687970657263657274732e766f6361622e7461672f336b6162636465666768696a62222c2276223a317d","vocabTags":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwx","organization":null,"profile":null},"cid":"bafyfixture0","did":"did:plc:abcdefghijklmnopqrstuvwx","indexedAt":"2025-01-01T00:00:00Z","record":{"$type":"org.hypercerts.vocab.tag","createdAt":"2025-01-01T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghija"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"org.hypercerts.vocab.tag","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.vocab.tag/3kabcdefghijb"}]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"cursor:valid:asc","calls":[{"binds":["org.hypercerts.vocab.tag","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijk",26],"sql":"f415ca0b71"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"cursor:valid+limit=7:asc","calls":[{"binds":["org.hypercerts.vocab.tag","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijk",8],"sql":"f415ca0b71"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"year0000:cursor:asc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"filter:authors:many","calls":[{"binds":["org.hypercerts.vocab.tag","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwz",26],"sql":"056193581d"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"filter:authors:one","calls":[{"binds":["org.hypercerts.vocab.tag","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"cf715d2ab7"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"filter:authors:one-scalar","calls":[{"binds":["org.hypercerts.vocab.tag","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"cf715d2ab7"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"filter:authors:duplicate","calls":[{"binds":["org.hypercerts.vocab.tag","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"cf715d2ab7"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"filter:authors:empty","calls":[{"binds":["org.hypercerts.vocab.tag",26],"sql":"fdd374e87e"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"error:sortDirection=bad","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"error:sortDirection=ASC","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"error:sortDirection=empty","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"error:limit=abc","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"error:limit=1.5","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"error:limit=-1","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"error:limit=0-string","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"error:limit=7-string","calls":[{"binds":["org.hypercerts.vocab.tag",8],"sql":"fdd374e87e"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"error:limit=empty","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"error:limit=array","calls":[],"outcome":{"error":"InvalidRequest: limit must occur once"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"error:sortDirection=array","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must occur once"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"error:cursor:non-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"error:cursor:empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to different query parameters"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"error:cursor:hex-non-json","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to different query parameters"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"error:cursor:array","calls":[],"outcome":{"error":"InvalidRequest: cursor must occur once"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"error:cursor:uppercase-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"cursor:length-at-cap","calls":[{"binds":["org.hypercerts.vocab.tag","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"cursor:length-below-cap","calls":[{"binds":["org.hypercerts.vocab.tag","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"cursor:length-above-cap","calls":[{"binds":["org.hypercerts.vocab.tag","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:month-13","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:feb-30","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:leap-2024-valid","calls":[{"binds":["org.hypercerts.vocab.tag","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:feb-29-2100","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:leap-2000-valid","calls":[{"binds":["org.hypercerts.vocab.tag","2000-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:second-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:hour-24","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:zone-minus-00-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:zone-plus-24-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:zone-minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:zone-plus-05-30-valid","calls":[{"binds":["org.hypercerts.vocab.tag","2025-01-01T00:00:00+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:fraction-valid","calls":[{"binds":["org.hypercerts.vocab.tag","2025-01-01T00:00:00.123456Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:fraction-offset-valid","calls":[{"binds":["org.hypercerts.vocab.tag","2025-01-01T00:00:00.5+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:no-zone","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:day-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:fraction-empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:fraction-empty-offset","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:month-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:lowercase-z","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:lowercase-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:zone-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:fraction-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:year-0001-valid","calls":[{"binds":["org.hypercerts.vocab.tag","0001-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:year-5-digit","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:end-of-year-valid","calls":[{"binds":["org.hypercerts.vocab.tag","2025-12-31T23:59:59Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:zone-plus-15-59","calls":[{"binds":["org.hypercerts.vocab.tag","2025-01-01T00:00:00+15:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:zone-minus-15-59","calls":[{"binds":["org.hypercerts.vocab.tag","2025-01-01T00:00:00-15:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:zone-plus-16-00","calls":[{"binds":["org.hypercerts.vocab.tag","2025-01-01T00:00:00+16:00","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:zone-minus-16-00","calls":[{"binds":["org.hypercerts.vocab.tag","2025-01-01T00:00:00-16:00","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:zone-plus-23-59-lua-accepted","calls":[{"binds":["org.hypercerts.vocab.tag","2025-01-01T00:00:00+23:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:zone-minus-23-59-lua-accepted","calls":[{"binds":["org.hypercerts.vocab.tag","2025-01-01T00:00:00-23:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:feb-29-2026","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:feb-29-2200","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:day-2025-01-31-valid","calls":[{"binds":["org.hypercerts.vocab.tag","2025-01-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:day-2025-01-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:day-2025-02-28-valid","calls":[{"binds":["org.hypercerts.vocab.tag","2025-02-28T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:day-2025-02-29-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:day-2025-03-31-valid","calls":[{"binds":["org.hypercerts.vocab.tag","2025-03-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:day-2025-03-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:day-2025-04-30-valid","calls":[{"binds":["org.hypercerts.vocab.tag","2025-04-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:day-2025-04-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:day-2025-05-31-valid","calls":[{"binds":["org.hypercerts.vocab.tag","2025-05-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:day-2025-05-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:day-2025-06-30-valid","calls":[{"binds":["org.hypercerts.vocab.tag","2025-06-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:day-2025-06-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:day-2025-07-31-valid","calls":[{"binds":["org.hypercerts.vocab.tag","2025-07-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:day-2025-07-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:day-2025-08-31-valid","calls":[{"binds":["org.hypercerts.vocab.tag","2025-08-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:day-2025-08-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:day-2025-09-30-valid","calls":[{"binds":["org.hypercerts.vocab.tag","2025-09-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:day-2025-09-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:day-2025-10-31-valid","calls":[{"binds":["org.hypercerts.vocab.tag","2025-10-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:day-2025-10-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:day-2025-11-30-valid","calls":[{"binds":["org.hypercerts.vocab.tag","2025-11-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:day-2025-11-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:day-2025-12-31-valid","calls":[{"binds":["org.hypercerts.vocab.tag","2025-12-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:day-2025-12-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:day-2024-02-29-valid","calls":[{"binds":["org.hypercerts.vocab.tag","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3kabcdefghijk",26],"sql":"2712d7dd78"}],"outcome":{"result":{"vocabTags":[]}}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"datetime:cursor-t:day-2024-02-30-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"error:cursor:wrong-v","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to different query parameters"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"error:cursor:wrong-collection","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"error:cursor:missing-u","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to different query parameters"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"error:cursor:u-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to different query parameters"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"error:cursor:extra-key","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"error:cursor:wrong-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to different query parameters"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"error:cursor:opposite-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to different query parameters"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"error:cursor:bad-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"error:cursor:t-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to different query parameters"}} +{"endpoint":"org.hypercerts.vocab.listVocabTags","case":"error:cursor:missing-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to different query parameters"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"default","calls":[{"binds":["org.hypercerts.workscope.tag",26],"sql":"e710ed7137"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"limit=1","calls":[{"binds":["org.hypercerts.workscope.tag",2],"sql":"e710ed7137"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"limit=7","calls":[{"binds":["org.hypercerts.workscope.tag",8],"sql":"e710ed7137"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"limit=99","calls":[{"binds":["org.hypercerts.workscope.tag",100],"sql":"e710ed7137"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"limit=100","calls":[{"binds":["org.hypercerts.workscope.tag",101],"sql":"e710ed7137"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"limit=0","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"limit=101","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"cursor:malformed","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"sort=desc","calls":[{"binds":["org.hypercerts.workscope.tag",26],"sql":"e710ed7137"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"paged:desc","calls":[{"binds":["org.hypercerts.workscope.tag",3],"sql":"e710ed7137"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwz","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"cursor":"7b2264223a2264657363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6f72672e687970657263657274732e776f726b73636f70652e7461672f336b6162636465666768696a62222c2276223a317d","workscopeTags":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwz","organization":null,"profile":null},"cid":"bafyfixture2","did":"did:plc:abcdefghijklmnopqrstuvwz","indexedAt":"2025-01-03T00:00:00Z","record":{"$type":"org.hypercerts.workscope.tag","createdAt":"2025-01-03T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwz/org.hypercerts.workscope.tag/3kabcdefghijc"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"org.hypercerts.workscope.tag","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.workscope.tag/3kabcdefghijb"}]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"cursor:valid:desc","calls":[{"binds":["org.hypercerts.workscope.tag","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.workscope.tag/3kabcdefghijk",26],"sql":"8db0d45b6b"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"cursor:valid+limit=7:desc","calls":[{"binds":["org.hypercerts.workscope.tag","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.workscope.tag/3kabcdefghijk",8],"sql":"8db0d45b6b"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"year0000:cursor:desc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"sort=asc","calls":[{"binds":["org.hypercerts.workscope.tag",26],"sql":"b0cc72faf4"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"paged:asc","calls":[{"binds":["org.hypercerts.workscope.tag",3],"sql":"b0cc72faf4"},{"binds":["app.certified.actor.profile","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"},{"binds":["app.certified.actor.organization","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy"],"sql":"bb51fad104"}],"outcome":{"result":{"cursor":"7b2264223a22617363222c2274223a22323032352d30312d30325430303a30303a30302e3030303030305a222c2275223a2261743a2f2f6469643a706c633a6162636465666768696a6b6c6d6e6f7071727374757677792f6f72672e687970657263657274732e776f726b73636f70652e7461672f336b6162636465666768696a62222c2276223a317d","workscopeTags":[{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwx","organization":null,"profile":null},"cid":"bafyfixture0","did":"did:plc:abcdefghijklmnopqrstuvwx","indexedAt":"2025-01-01T00:00:00Z","record":{"$type":"org.hypercerts.workscope.tag","createdAt":"2025-01-01T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.workscope.tag/3kabcdefghija"},{"author":{"did":"did:plc:abcdefghijklmnopqrstuvwy","organization":null,"profile":null},"cid":"bafyfixture1","did":"did:plc:abcdefghijklmnopqrstuvwy","indexedAt":"2025-01-02T00:00:00Z","record":{"$type":"org.hypercerts.workscope.tag","createdAt":"2025-01-02T00:00:00Z"},"uri":"at://did:plc:abcdefghijklmnopqrstuvwy/org.hypercerts.workscope.tag/3kabcdefghijb"}]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"cursor:valid:asc","calls":[{"binds":["org.hypercerts.workscope.tag","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.workscope.tag/3kabcdefghijk",26],"sql":"7deb402ddc"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"cursor:valid+limit=7:asc","calls":[{"binds":["org.hypercerts.workscope.tag","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.workscope.tag/3kabcdefghijk",8],"sql":"7deb402ddc"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"year0000:cursor:asc","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"filter:authors:many","calls":[{"binds":["org.hypercerts.workscope.tag","did:plc:abcdefghijklmnopqrstuvwx","did:plc:abcdefghijklmnopqrstuvwy","did:plc:abcdefghijklmnopqrstuvwz",26],"sql":"58a6e2c916"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"filter:authors:one","calls":[{"binds":["org.hypercerts.workscope.tag","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"a0200581e8"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"filter:authors:one-scalar","calls":[{"binds":["org.hypercerts.workscope.tag","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"a0200581e8"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"filter:authors:duplicate","calls":[{"binds":["org.hypercerts.workscope.tag","did:plc:abcdefghijklmnopqrstuvwx",26],"sql":"a0200581e8"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"filter:authors:empty","calls":[{"binds":["org.hypercerts.workscope.tag",26],"sql":"e04b3f0ec2"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"error:sortDirection=bad","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"error:sortDirection=ASC","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"error:sortDirection=empty","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must be 'asc' or 'desc'"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"error:limit=abc","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"error:limit=1.5","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"error:limit=-1","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"error:limit=0-string","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"error:limit=7-string","calls":[{"binds":["org.hypercerts.workscope.tag",8],"sql":"e710ed7137"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"error:limit=empty","calls":[],"outcome":{"error":"InvalidRequest: limit must be an integer from 1 through 100"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"error:limit=array","calls":[],"outcome":{"error":"InvalidRequest: limit must occur once"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"error:sortDirection=array","calls":[],"outcome":{"error":"InvalidRequest: sortDirection must occur once"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"error:cursor:non-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"error:cursor:empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"error:cursor:hex-non-json","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"error:cursor:array","calls":[],"outcome":{"error":"InvalidRequest: cursor must occur once"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"error:cursor:uppercase-hex","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"cursor:length-at-cap","calls":[{"binds":["org.hypercerts.workscope.tag","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.workscope.tag/3kabcdefghijk",26],"sql":"8db0d45b6b"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"cursor:length-below-cap","calls":[{"binds":["org.hypercerts.workscope.tag","2025-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.workscope.tag/3kabcdefghijk",26],"sql":"8db0d45b6b"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"cursor:length-above-cap","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:month-13","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:feb-30","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:leap-2024-valid","calls":[{"binds":["org.hypercerts.workscope.tag","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.workscope.tag/3kabcdefghijk",26],"sql":"8db0d45b6b"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:feb-29-2100","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:leap-2000-valid","calls":[{"binds":["org.hypercerts.workscope.tag","2000-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.workscope.tag/3kabcdefghijk",26],"sql":"8db0d45b6b"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:second-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:hour-24","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:zone-minus-00-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:zone-plus-24-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:zone-minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:zone-plus-05-30-valid","calls":[{"binds":["org.hypercerts.workscope.tag","2025-01-01T00:00:00+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.workscope.tag/3kabcdefghijk",26],"sql":"8db0d45b6b"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:fraction-valid","calls":[{"binds":["org.hypercerts.workscope.tag","2025-01-01T00:00:00.123456Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.workscope.tag/3kabcdefghijk",26],"sql":"8db0d45b6b"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:fraction-offset-valid","calls":[{"binds":["org.hypercerts.workscope.tag","2025-01-01T00:00:00.5+05:30","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.workscope.tag/3kabcdefghijk",26],"sql":"8db0d45b6b"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:no-zone","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:day-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:minute-60","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:fraction-empty","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:fraction-empty-offset","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:month-00","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:lowercase-z","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:lowercase-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:zone-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:fraction-offset-trailing-junk","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:year-0001-valid","calls":[{"binds":["org.hypercerts.workscope.tag","0001-01-01T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.workscope.tag/3kabcdefghijk",26],"sql":"8db0d45b6b"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:year-5-digit","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:end-of-year-valid","calls":[{"binds":["org.hypercerts.workscope.tag","2025-12-31T23:59:59Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.workscope.tag/3kabcdefghijk",26],"sql":"8db0d45b6b"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:zone-plus-15-59","calls":[{"binds":["org.hypercerts.workscope.tag","2025-01-01T00:00:00+15:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.workscope.tag/3kabcdefghijk",26],"sql":"8db0d45b6b"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:zone-minus-15-59","calls":[{"binds":["org.hypercerts.workscope.tag","2025-01-01T00:00:00-15:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.workscope.tag/3kabcdefghijk",26],"sql":"8db0d45b6b"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:zone-plus-16-00","calls":[{"binds":["org.hypercerts.workscope.tag","2025-01-01T00:00:00+16:00","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.workscope.tag/3kabcdefghijk",26],"sql":"8db0d45b6b"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:zone-minus-16-00","calls":[{"binds":["org.hypercerts.workscope.tag","2025-01-01T00:00:00-16:00","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.workscope.tag/3kabcdefghijk",26],"sql":"8db0d45b6b"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:zone-plus-23-59-lua-accepted","calls":[{"binds":["org.hypercerts.workscope.tag","2025-01-01T00:00:00+23:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.workscope.tag/3kabcdefghijk",26],"sql":"8db0d45b6b"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:zone-minus-23-59-lua-accepted","calls":[{"binds":["org.hypercerts.workscope.tag","2025-01-01T00:00:00-23:59","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.workscope.tag/3kabcdefghijk",26],"sql":"8db0d45b6b"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:feb-29-2026","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:feb-29-2200","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:day-2025-01-31-valid","calls":[{"binds":["org.hypercerts.workscope.tag","2025-01-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.workscope.tag/3kabcdefghijk",26],"sql":"8db0d45b6b"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:day-2025-01-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:day-2025-02-28-valid","calls":[{"binds":["org.hypercerts.workscope.tag","2025-02-28T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.workscope.tag/3kabcdefghijk",26],"sql":"8db0d45b6b"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:day-2025-02-29-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:day-2025-03-31-valid","calls":[{"binds":["org.hypercerts.workscope.tag","2025-03-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.workscope.tag/3kabcdefghijk",26],"sql":"8db0d45b6b"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:day-2025-03-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:day-2025-04-30-valid","calls":[{"binds":["org.hypercerts.workscope.tag","2025-04-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.workscope.tag/3kabcdefghijk",26],"sql":"8db0d45b6b"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:day-2025-04-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:day-2025-05-31-valid","calls":[{"binds":["org.hypercerts.workscope.tag","2025-05-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.workscope.tag/3kabcdefghijk",26],"sql":"8db0d45b6b"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:day-2025-05-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:day-2025-06-30-valid","calls":[{"binds":["org.hypercerts.workscope.tag","2025-06-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.workscope.tag/3kabcdefghijk",26],"sql":"8db0d45b6b"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:day-2025-06-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:day-2025-07-31-valid","calls":[{"binds":["org.hypercerts.workscope.tag","2025-07-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.workscope.tag/3kabcdefghijk",26],"sql":"8db0d45b6b"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:day-2025-07-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:day-2025-08-31-valid","calls":[{"binds":["org.hypercerts.workscope.tag","2025-08-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.workscope.tag/3kabcdefghijk",26],"sql":"8db0d45b6b"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:day-2025-08-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:day-2025-09-30-valid","calls":[{"binds":["org.hypercerts.workscope.tag","2025-09-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.workscope.tag/3kabcdefghijk",26],"sql":"8db0d45b6b"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:day-2025-09-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:day-2025-10-31-valid","calls":[{"binds":["org.hypercerts.workscope.tag","2025-10-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.workscope.tag/3kabcdefghijk",26],"sql":"8db0d45b6b"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:day-2025-10-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:day-2025-11-30-valid","calls":[{"binds":["org.hypercerts.workscope.tag","2025-11-30T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.workscope.tag/3kabcdefghijk",26],"sql":"8db0d45b6b"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:day-2025-11-31-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:day-2025-12-31-valid","calls":[{"binds":["org.hypercerts.workscope.tag","2025-12-31T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.workscope.tag/3kabcdefghijk",26],"sql":"8db0d45b6b"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:day-2025-12-32-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:day-2024-02-29-valid","calls":[{"binds":["org.hypercerts.workscope.tag","2024-02-29T00:00:00Z","at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.workscope.tag/3kabcdefghijk",26],"sql":"8db0d45b6b"}],"outcome":{"result":{"workscopeTags":[]}}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"datetime:cursor-t:day-2024-02-30-invalid","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"error:cursor:wrong-v","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"error:cursor:wrong-collection","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"error:cursor:missing-u","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"error:cursor:u-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"error:cursor:extra-key","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"error:cursor:wrong-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"error:cursor:opposite-d","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"error:cursor:bad-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"error:cursor:t-number","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} +{"endpoint":"org.hypercerts.workscope.listWorkscopeTags","case":"error:cursor:missing-t","calls":[],"outcome":{"error":"InvalidRequest: cursor is malformed or belongs to another sortDirection"}} diff --git a/happyview-modules/tests/unit/list-golden/list-endpoints.test.js b/happyview-modules/tests/unit/list-golden/list-endpoints.test.js new file mode 100644 index 00000000..75d9d45c --- /dev/null +++ b/happyview-modules/tests/unit/list-golden/list-endpoints.test.js @@ -0,0 +1,146 @@ +import assert from "node:assert/strict"; +import { createHash } from "node:crypto"; +import { readFileSync, writeFileSync } from "node:fs"; +import test from "node:test"; +import { fileURLToPath } from "node:url"; +import { checkLuaBundles } from "../../../tooling/lua-bundles.js"; +import { CURSOR_FIXTURE_IDS, casesFor } from "./fixtures.js"; +import { listCursorEndpoints, runCases } from "./harness.js"; + +// Safety net for shared Lua list-helper refactors. Every manifest query that +// takes `cursor` runs against its *generated bundle* (lua/endpoints/*.lua, generated; +// rebuild with `pnpm --filter @hypercerts-org/happyview-modules run build:lua`; edits to lua/shared or lua/src are +// invisible here until you rebuild) with a fake db. Captured SQL, binds and +// outcomes must match the committed golden byte for byte. +// +// Inputs per endpoint: paging/limit/cursor cases, every lexicon filter parameter +// (arrays with many/one/scalar/duplicate/empty values, booleans, scalars), a +// combined all-filters case, and table-driven rejection cases for bad +// sortDirection, limit and cursor shapes. `paged:*` cases return limit+1 rows +// so nextCursor encoding is captured; endpoints answer only their first query +// with rows, later hydration queries see none. +// +// To keep the file reviewable, each distinct SQL text is stored once in a +// leading `{"sql":id,"text":..}` line and calls refer to it by id. +// Regenerate after an intended behaviour change: UPDATE_GOLDEN=1 pnpm test:unit +// The golden runs generated bundles, so stale ones would pass or fail for the wrong reason. +const staleBundles = await checkLuaBundles(fileURLToPath(new URL("../../../", import.meta.url))); +if (staleBundles.length > 0) { + throw new Error( + `Generated Lua bundles are stale (${staleBundles.join(", ")}); run \`pnpm --filter @hypercerts-org/happyview-modules run build:lua\` before the list golden test.`, + ); +} + +const goldenPath = fileURLToPath(new URL("./list-endpoints.golden.jsonl", import.meta.url)); + +const endpoints = await listCursorEndpoints(); +const records = endpoints.flatMap((endpoint) => + runCases(endpoint.source, casesFor(endpoint)).map(({ name, calls, outcome }) => ({ + endpoint: endpoint.id, + case: name, + calls, + outcome, + })), +); +const actual = serialize(records); + +/** One line per distinct SQL text (sorted by id), then one line per case. */ +function serialize(cases) { + const texts = new Map(); + const compact = cases.map((record) => ({ + ...record, + // The runner encodes an empty Lua table as {}, so an empty call list is not an array. + calls: (Array.isArray(record.calls) ? record.calls : []).map(({ sql, binds }) => { + const id = createHash("sha1").update(sql).digest("hex").slice(0, 10); + texts.set(id, sql); + return { binds, sql: id }; + }), + })); + const sqlLines = [...texts] + .sort(([a], [b]) => (a < b ? -1 : 1)) + .map(([sql, text]) => ({ sql, text })); + return `${[...sqlLines, ...compact].map((line) => JSON.stringify(line)).join("\n")}\n`; +} + +function assertEndpointCoverage() { + const ids = endpoints.map((endpoint) => endpoint.id).sort(); + assert.deepEqual( + ids, + [...CURSOR_FIXTURE_IDS].sort(), + "manifest query set and tests/unit/list-golden/fixtures.js CURSORS differ; add or remove the endpoint there", + ); +} + +const succeeded = (record) => record.calls.length > 0 && record.outcome.error === undefined; +const describe = (record) => JSON.stringify(record.outcome).slice(0, 200); + +/** Every case in `group` must reach SQL and succeed; an empty group is a fixture bug. */ +function assertAllSucceed(endpoint, group, hint) { + assert.ok(group.length > 0, `${endpoint.id}: no matching fixture cases; ${hint}`); + for (const record of group) { + assert.ok( + succeeded(record), + `${endpoint.id} [${record.case}]: fixture did not succeed (${describe(record)}); ${hint}`, + ); + } +} + +// Fixture guard, not a behavior test: the golden would happily record a rejected, +// crashed or empty case as "expected", silently pinning nothing. These fail loudly +// if a fixture stops reaching the code paths the golden is meant to cover. Checked +// per sort direction, so a working descending case cannot mask a broken ascending one. +function assertFixturesReachHandlerPaths() { + for (const endpoint of endpoints) { + const mine = records.filter((r) => r.endpoint === endpoint.id); + const named = (...prefixes) => mine.filter((r) => prefixes.some((p) => r.case.startsWith(p))); + assertAllSucceed( + endpoint, + named("cursor:valid:", "cursor:valid+limit=7:"), + "fix cursorFor in fixtures.js", + ); + const paged = named("paged:"); + assert.ok(paged.length > 0, `${endpoint.id}: no paged cases`); + for (const record of paged) { + assert.ok( + record.outcome.result?.cursor, + `${endpoint.id} [${record.case}]: paged case produced no nextCursor (${describe(record)}); fix pageRow in fixtures.js`, + ); + } + for (const filter of named("filter:")) { + assert.ok( + succeeded(filter), + `${endpoint.id} [${filter.case}]: filter fixture did not succeed (${describe(filter)}); use a valid value in fixtures.js`, + ); + } + } +} + +// A failed check leaves the previous golden untouched. +if (process.env.UPDATE_GOLDEN === "1") { + assertEndpointCoverage(); + assertFixturesReachHandlerPaths(); + writeFileSync(goldenPath, actual); +} + +test("every cursor-taking manifest query has a cursor fixture", assertEndpointCoverage); + +test("fixtures reach real handler paths for every endpoint", assertFixturesReachHandlerPaths); + +test("list endpoint SQL, binds and outcomes match the golden snapshot", () => { + const expected = readFileSync(goldenPath, "utf8"); + if (expected === actual) return; + const want = expected.split("\n"); + const got = actual.split("\n"); + const changed = []; + for (let i = 0; i < Math.max(want.length, got.length); i++) { + if (want[i] !== got[i]) { + const source = JSON.parse(got[i] || want[i] || "null"); + changed.push(source?.case ? `${source.endpoint} [${source.case}]` : `sql line ${i + 1}`); + } + } + changed.sort((a, b) => Number(a.startsWith("sql")) - Number(b.startsWith("sql"))); + assert.fail( + `${changed.length} line(s) differ from list-endpoints.golden.jsonl: ${changed.slice(0, 10).join("; ")}. ` + + "If intended, regenerate with UPDATE_GOLDEN=1 pnpm test:unit and review the diff.", + ); +}); diff --git a/happyview-modules/tests/unit/tooling/acknowledgement.test.js b/happyview-modules/tests/unit/tooling/acknowledgement.test.js index d5826386..7c6f1fa5 100644 --- a/happyview-modules/tests/unit/tooling/acknowledgement.test.js +++ b/happyview-modules/tests/unit/tooling/acknowledgement.test.js @@ -2,6 +2,7 @@ import assert from "node:assert/strict"; import { spawnSync } from "node:child_process"; import test from "node:test"; import { fileURLToPath } from "node:url"; +import { lua } from "../helpers/lua.js"; const root = fileURLToPath(new URL("../../../", import.meta.url)); const ACKNOWLEDGEMENT = "org.hypercerts.context.acknowledgement"; @@ -23,19 +24,6 @@ const acknowledgementRecord = { extension: { preserve: true }, }; -function lua(value) { - if (value === null) return "nil"; - if (typeof value === "string") return JSON.stringify(value); - if (typeof value === "number" || typeof value === "boolean") return String(value); - if (Array.isArray(value)) return `{${value.map(lua).join(",")}}`; - if (value && typeof value === "object") { - return `{${Object.entries(value) - .map(([key, item]) => `[${JSON.stringify(key)}]=${lua(item)}`) - .join(",")}}`; - } - throw new TypeError(`Cannot encode ${typeof value} as a Lua fixture`); -} - function databaseRow(row) { const result = { ...row }; delete result.record_json; diff --git a/happyview-modules/tests/unit/tooling/activity.test.js b/happyview-modules/tests/unit/tooling/activity.test.js index 30958b40..6e9727fa 100644 --- a/happyview-modules/tests/unit/tooling/activity.test.js +++ b/happyview-modules/tests/unit/tooling/activity.test.js @@ -3,6 +3,7 @@ import { spawnSync } from "node:child_process"; import { readFile } from "node:fs/promises"; import test from "node:test"; import { fileURLToPath } from "node:url"; +import { lua } from "../helpers/lua.js"; const root = fileURLToPath(new URL("../../../", import.meta.url)); const ACTIVITY = "org.hypercerts.claim.activity"; @@ -77,19 +78,6 @@ const rows = [ }, ]; -function lua(value) { - if (value === null) return "nil"; - if (typeof value === "string") return JSON.stringify(value); - if (typeof value === "number" || typeof value === "boolean") return String(value); - if (Array.isArray(value)) return `{${value.map(lua).join(",")}}`; - if (value && typeof value === "object") { - return `{${Object.entries(value) - .map(([key, item]) => `[${JSON.stringify(key)}]=${lua(item)}`) - .join(",")}}`; - } - throw new TypeError(`Cannot encode ${typeof value} as a Lua fixture`); -} - function withoutRecordJson(row) { const databaseRow = { ...row }; delete databaseRow.record_json; diff --git a/happyview-modules/tests/unit/tooling/actor-follow.test.js b/happyview-modules/tests/unit/tooling/actor-follow.test.js index 005d0a63..eb1194c7 100644 --- a/happyview-modules/tests/unit/tooling/actor-follow.test.js +++ b/happyview-modules/tests/unit/tooling/actor-follow.test.js @@ -11,6 +11,7 @@ import { actorFollowProfileRecords, actorFollowRecords, } from "../../fixtures/actor-follows.js"; +import { lua } from "../helpers/lua.js"; const root = fileURLToPath(new URL("../../../", import.meta.url)); const actor = "did:plc:aaaaaaaaaaaaaaaaaaaaaaaa"; @@ -50,18 +51,6 @@ function sidecarRow(collection, did, record) { }; } -function lua(value) { - if (typeof value === "string") return JSON.stringify(value); - if (typeof value === "number" || typeof value === "boolean") return String(value); - if (Array.isArray(value)) return `{${value.map(lua).join(",")}}`; - if (value && typeof value === "object") { - return `{${Object.entries(value) - .map(([key, item]) => `[${JSON.stringify(key)}]=${lua(item)}`) - .join(",")}}`; - } - throw new TypeError(`Cannot encode ${typeof value} as a Lua fixture`); -} - function cursor({ direction = "desc", timestamp = "2025-01-02T03:04:05.000000Z", diff --git a/happyview-modules/tests/unit/tooling/badge-definition.contract.test.js b/happyview-modules/tests/unit/tooling/badge-definition.contract.test.js index 8ba43373..c121c7e0 100644 --- a/happyview-modules/tests/unit/tooling/badge-definition.contract.test.js +++ b/happyview-modules/tests/unit/tooling/badge-definition.contract.test.js @@ -3,6 +3,7 @@ import { spawnSync } from "node:child_process"; import { existsSync } from "node:fs"; import test from "node:test"; import { fileURLToPath } from "node:url"; +import { lua } from "../helpers/lua.js"; const root = fileURLToPath(new URL("../../../", import.meta.url)); const endpointPath = (name) => `lua/endpoints/${name}.lua`; @@ -13,18 +14,6 @@ const profileCollection = "app.certified.actor.profile"; const organizationCollection = "app.certified.actor.organization"; const indexedAt = "2025-02-01T00:00:01.000Z"; -function lua(value) { - if (typeof value === "string") return JSON.stringify(value); - if (typeof value === "number" || typeof value === "boolean") return String(value); - if (Array.isArray(value)) return `{${value.map(lua).join(",")}}`; - if (value && typeof value === "object") { - return `{${Object.entries(value) - .map(([key, item]) => `[${JSON.stringify(key)}]=${lua(item)}`) - .join(",")}}`; - } - throw new TypeError(`Cannot encode ${typeof value} as a Lua fixture`); -} - function definitionRow(did, rkey, record, sortTimestamp = "2025-02-01T00:00:00.000000Z") { return { uri: `at://${did}/app.certified.badge.definition/${rkey}`, diff --git a/happyview-modules/tests/unit/tooling/badge-queries.test.js b/happyview-modules/tests/unit/tooling/badge-queries.test.js index 4eb63ed9..39f71a36 100644 --- a/happyview-modules/tests/unit/tooling/badge-queries.test.js +++ b/happyview-modules/tests/unit/tooling/badge-queries.test.js @@ -3,6 +3,7 @@ import { spawnSync } from "node:child_process"; import { readFile } from "node:fs/promises"; import test from "node:test"; import { fileURLToPath } from "node:url"; +import { lua } from "../helpers/lua.js"; const root = fileURLToPath(new URL("../../../", import.meta.url)); const badgeQueriesModuleRoot = new URL("../../../modules/badge-queries/", import.meta.url); @@ -18,18 +19,6 @@ const organizationCollection = "app.certified.actor.organization"; const issuer = "did:plc:aaaaaaaaaaaaaaaaaaaaaaaa"; const indexedAt = "2025-02-01T00:00:01.000Z"; -function lua(value) { - if (typeof value === "string") return JSON.stringify(value); - if (typeof value === "number" || typeof value === "boolean") return String(value); - if (Array.isArray(value)) return `{${value.map(lua).join(",")}}`; - if (value && typeof value === "object") { - return `{${Object.entries(value) - .map(([key, item]) => `[${JSON.stringify(key)}]=${lua(item)}`) - .join(",")}}`; - } - throw new TypeError(`Cannot encode ${typeof value} as a Lua fixture`); -} - async function handlerSource(endpoint) { const manifest = await badgeQueriesManifest; const id = `xrpc.query:app.certified.badge.${endpoint}`; diff --git a/happyview-modules/tests/unit/tooling/collection.test.js b/happyview-modules/tests/unit/tooling/collection.test.js index f1854b1f..3c9d3c3b 100644 --- a/happyview-modules/tests/unit/tooling/collection.test.js +++ b/happyview-modules/tests/unit/tooling/collection.test.js @@ -3,6 +3,7 @@ import { spawnSync } from "node:child_process"; import { readFile } from "node:fs/promises"; import test from "node:test"; import { fileURLToPath } from "node:url"; +import { lua } from "../helpers/lua.js"; const root = fileURLToPath(new URL("../../../", import.meta.url)); const COLLECTION = "org.hypercerts.collection"; @@ -17,18 +18,6 @@ const tagUris = [ "at://did:plc:dddddddddddddddddddddddddddddddd/org.hypercerts.vocab.tag/ecology.restoration", ]; -function lua(value) { - if (typeof value === "string") return JSON.stringify(value); - if (typeof value === "number" || typeof value === "boolean") return String(value); - if (Array.isArray(value)) return `{ ${value.map(lua).join(", ")} }`; - if (value && typeof value === "object") { - return `{ ${Object.entries(value) - .map(([key, item]) => `[${JSON.stringify(key)}] = ${lua(item)}`) - .join(", ")} }`; - } - throw new TypeError(`Cannot encode ${typeof value} as a Lua fixture`); -} - function runCollectionList() { const source = ` local NULL = {} diff --git a/happyview-modules/tests/unit/tooling/comment-counts.test.js b/happyview-modules/tests/unit/tooling/comment-counts.test.js index fee12317..1e126edb 100644 --- a/happyview-modules/tests/unit/tooling/comment-counts.test.js +++ b/happyview-modules/tests/unit/tooling/comment-counts.test.js @@ -4,25 +4,13 @@ import { existsSync } from "node:fs"; import path from "node:path"; import test from "node:test"; import { fileURLToPath } from "node:url"; +import { lua } from "../helpers/lua.js"; const root = fileURLToPath(new URL("../../../", import.meta.url)); const endpointPath = "lua/endpoints/getCommentCounts.lua"; const post = "at://did:plc:aaaaaaaaaaaaaaaaaaaaaaaa/org.hypercerts.context.attachment/post"; const activity = "at://did:web:example.com/org.hypercerts.claim.activity/missing"; -function lua(value) { - if (value === null) return "nil"; - if (typeof value === "string") return JSON.stringify(value); - if (typeof value === "number" || typeof value === "boolean") return String(value); - if (Array.isArray(value)) return `{${value.map(lua).join(",")}}`; - if (value && typeof value === "object") { - return `{${Object.entries(value) - .map(([key, item]) => `[${JSON.stringify(key)}]=${lua(item)}`) - .join(",")}}`; - } - throw new TypeError(`Cannot encode ${typeof value} as a Lua fixture`); -} - function runLua({ params, rows = [], diff --git a/happyview-modules/tests/unit/tooling/contributions.test.js b/happyview-modules/tests/unit/tooling/contributions.test.js index de50b0df..a13dfc99 100644 --- a/happyview-modules/tests/unit/tooling/contributions.test.js +++ b/happyview-modules/tests/unit/tooling/contributions.test.js @@ -2,6 +2,7 @@ import assert from "node:assert/strict"; import { spawnSync } from "node:child_process"; import test from "node:test"; import { fileURLToPath } from "node:url"; +import { lua } from "../helpers/lua.js"; const root = fileURLToPath(new URL("../../../", import.meta.url)); const CONTRIBUTION = "org.hypercerts.claim.contribution"; @@ -13,19 +14,6 @@ const contributorDid = "did:plc:cccccccccccccccccccccccc"; const indexedAt = "2025-01-02T03:04:05.000Z"; const contributionUri = `at://${publisherDid}/${CONTRIBUTION}/3jzfcijpj2z2a`; -function lua(value) { - if (value === null) return "nil"; - if (typeof value === "string") return JSON.stringify(value); - if (typeof value === "number" || typeof value === "boolean") return String(value); - if (Array.isArray(value)) return `{${value.map(lua).join(",")}}`; - if (value && typeof value === "object") { - return `{${Object.entries(value) - .map(([key, item]) => `[${JSON.stringify(key)}]=${lua(item)}`) - .join(",")}}`; - } - throw new TypeError(`Cannot encode ${typeof value} as a Lua fixture`); -} - function row({ uri, did, diff --git a/happyview-modules/tests/unit/tooling/entity-follow.test.js b/happyview-modules/tests/unit/tooling/entity-follow.test.js index b66a3bde..76422487 100644 --- a/happyview-modules/tests/unit/tooling/entity-follow.test.js +++ b/happyview-modules/tests/unit/tooling/entity-follow.test.js @@ -5,6 +5,7 @@ import { readFile } from "node:fs/promises"; import { resolve } from "node:path"; import test from "node:test"; import { fileURLToPath } from "node:url"; +import { lua } from "../helpers/lua.js"; const root = fileURLToPath(new URL("../../../", import.meta.url)); const actor = "did:plc:aaaaaaaaaaaaaaaaaaaaaaaa"; @@ -16,20 +17,6 @@ const featureCollection = "org.hypercerts.entity.feature"; const profileCollection = "app.certified.actor.profile"; const organizationCollection = "app.certified.actor.organization"; -function lua(value) { - if (value === null) return "nil"; - if (typeof value === "string") return JSON.stringify(value); - if (typeof value === "number" || typeof value === "boolean") return String(value); - if (Array.isArray(value)) return `{${value.map(lua).join(",")}}`; - if (value && typeof value === "object") { - return `{${Object.entries(value) - .filter(([, item]) => item !== null) - .map(([key, item]) => `[${JSON.stringify(key)}]=${lua(item)}`) - .join(",")}}`; - } - throw new TypeError(`Cannot encode ${typeof value} as a Lua fixture`); -} - function runLua(endpoint, source) { const endpointPath = `${root}/lua/endpoints/${endpoint}.lua`; assert.ok( diff --git a/happyview-modules/tests/unit/tooling/feed-reactions.test.js b/happyview-modules/tests/unit/tooling/feed-reactions.test.js index a2ee8d1e..5657f99f 100644 --- a/happyview-modules/tests/unit/tooling/feed-reactions.test.js +++ b/happyview-modules/tests/unit/tooling/feed-reactions.test.js @@ -10,6 +10,7 @@ import { seedRows as reactionFixtureRows, reactionUris, } from "../../http/fixtures/feed-reactions.fixture.js"; +import { lua } from "../helpers/lua.js"; const root = fileURLToPath(new URL("../../../", import.meta.url)); const actor = "did:plc:aaaaaaaaaaaaaaaaaaaaaaaa"; @@ -54,20 +55,6 @@ function sidecarRow(collection, did, key, recordValue) { }; } -function lua(value) { - if (value === null) return "nil"; - if (typeof value === "string") return JSON.stringify(value); - if (typeof value === "number" || typeof value === "boolean") return String(value); - if (Array.isArray(value)) return `{${value.map(lua).join(",")}}`; - if (value && typeof value === "object") { - return `{${Object.entries(value) - .filter(([, item]) => item !== undefined) - .map(([key, item]) => `[${JSON.stringify(key)}]=${lua(item)}`) - .join(",")}}`; - } - throw new TypeError(`Cannot encode ${typeof value} as a Lua fixture`); -} - function cursor({ direction = "desc", timestamp = "2025-01-02T03:04:05.000000Z", uri } = {}) { return Buffer.from( JSON.stringify({ diff --git a/happyview-modules/tests/unit/tooling/follower-counts.test.js b/happyview-modules/tests/unit/tooling/follower-counts.test.js index 3695e3f7..3a34e0c1 100644 --- a/happyview-modules/tests/unit/tooling/follower-counts.test.js +++ b/happyview-modules/tests/unit/tooling/follower-counts.test.js @@ -5,6 +5,7 @@ import path from "node:path"; import test from "node:test"; import { fileURLToPath } from "node:url"; import { validatePackageLexicons } from "../../../tooling/validate-lexicons.js"; +import { lua } from "../helpers/lua.js"; const root = fileURLToPath(new URL("../../../", import.meta.url)); const endpointPath = "lua/endpoints/getFollowerCounts.lua"; @@ -15,19 +16,6 @@ const otherAccount = "did:web:example.com"; const entity = "at://did:plc:bbbbbbbbbbbbbbbbbbbbbbbb/org.hypercerts.collection/project"; const missingEntity = "at://did:plc:cccccccccccccccccccccccc/org.hypercerts.claim.activity/missing"; -function lua(value) { - if (value === null) return "nil"; - if (typeof value === "string") return JSON.stringify(value); - if (typeof value === "number" || typeof value === "boolean") return String(value); - if (Array.isArray(value)) return `{${value.map(lua).join(",")}}`; - if (value && typeof value === "object") { - return `{${Object.entries(value) - .map(([key, item]) => `[${JSON.stringify(key)}]=${lua(item)}`) - .join(",")}}`; - } - throw new TypeError(`Cannot encode ${typeof value} as a Lua fixture`); -} - function runLua({ params, rows = [], diff --git a/happyview-modules/tests/unit/tooling/funding-receipts.test.js b/happyview-modules/tests/unit/tooling/funding-receipts.test.js index f060633a..0bfbfcb8 100644 --- a/happyview-modules/tests/unit/tooling/funding-receipts.test.js +++ b/happyview-modules/tests/unit/tooling/funding-receipts.test.js @@ -4,6 +4,7 @@ import { existsSync } from "node:fs"; import { readFile } from "node:fs/promises"; import test from "node:test"; import { fileURLToPath } from "node:url"; +import { lua } from "../helpers/lua.js"; const root = fileURLToPath(new URL("../../../", import.meta.url)); const collection = "org.hypercerts.funding.receipt"; @@ -16,18 +17,6 @@ const fromUri = "at://did:plc:ffffffffffffffffffffffff/org.hypercerts.claim.acti const toUri = "at://did:plc:111111111111111111111111/org.hypercerts.claim.activity/recipient"; const indexedAt = "2025-01-02T03:04:05.000Z"; -function lua(value) { - if (typeof value === "string") return JSON.stringify(value); - if (typeof value === "number" || typeof value === "boolean") return String(value); - if (Array.isArray(value)) return `{${value.map(lua).join(",")}}`; - if (value && typeof value === "object") { - return `{${Object.entries(value) - .map(([key, item]) => `[${JSON.stringify(key)}]=${lua(item)}`) - .join(",")}}`; - } - throw new TypeError(`Cannot encode ${typeof value} as a Lua fixture`); -} - function receiptRow(did, rkey, record, sortTimestamp = "2025-01-01T00:00:00.000000Z") { return { uri: `at://${did}/${collection}/${rkey}`, diff --git a/happyview-modules/tests/unit/tooling/listContributorInformation.test.js b/happyview-modules/tests/unit/tooling/listContributorInformation.test.js index e0339a0d..57b4f032 100644 --- a/happyview-modules/tests/unit/tooling/listContributorInformation.test.js +++ b/happyview-modules/tests/unit/tooling/listContributorInformation.test.js @@ -19,6 +19,9 @@ test("listContributorInformation filters repeated authors and resumes in the sel read("lua/shared/datetimeValidation.lua"), read("lua/shared/listValidation.lua"), read("lua/shared/listQuery.lua"), + read("lua/shared/listCursor.lua"), + read("lua/shared/listWhere.lua"), + read("lua/shared/createdAtSort.lua"), read("lua/src/listContributorInformation.lua"), ]); const program = `JSON_NULL = {} diff --git a/happyview-modules/tests/unit/tooling/organization.test.js b/happyview-modules/tests/unit/tooling/organization.test.js index 48e17135..39f27465 100644 --- a/happyview-modules/tests/unit/tooling/organization.test.js +++ b/happyview-modules/tests/unit/tooling/organization.test.js @@ -4,6 +4,7 @@ import { existsSync } from "node:fs"; import { readFile } from "node:fs/promises"; import test from "node:test"; import { fileURLToPath } from "node:url"; +import { lua } from "../helpers/lua.js"; const root = fileURLToPath(new URL("../../../", import.meta.url)); const organizationCollection = "app.certified.actor.organization"; @@ -15,18 +16,6 @@ const thirdActor = "did:plc:cccccccccccccccccccccccc"; const fourthActor = "did:plc:dddddddddddddddddddddddd"; const indexedAt = "2025-01-02T03:04:05.000Z"; -function lua(value) { - if (typeof value === "string") return JSON.stringify(value); - if (typeof value === "number" || typeof value === "boolean") return String(value); - if (Array.isArray(value)) return `{${value.map(lua).join(",")}}`; - if (value && typeof value === "object") { - return `{${Object.entries(value) - .map(([key, item]) => `[${JSON.stringify(key)}]=${lua(item)}`) - .join(",")}}`; - } - throw new TypeError(`Cannot encode ${typeof value} as a Lua fixture`); -} - function organizationRow(did, id, record, sortTimestamp = "2025-01-01T00:00:00.000000Z") { return { uri: `at://${did}/${organizationCollection}/self`, diff --git a/happyview-modules/tests/unit/tooling/profile.test.js b/happyview-modules/tests/unit/tooling/profile.test.js index bb2666ba..35976e7b 100644 --- a/happyview-modules/tests/unit/tooling/profile.test.js +++ b/happyview-modules/tests/unit/tooling/profile.test.js @@ -6,6 +6,7 @@ import test from "node:test"; import { fileURLToPath } from "node:url"; import { loadAssets } from "../../../tooling/installer.js"; import { validatePackageLexicons } from "../../../tooling/validate-lexicons.js"; +import { lua } from "../helpers/lua.js"; const root = fileURLToPath(new URL("../../../", import.meta.url)); const collection = "app.certified.actor.profile"; @@ -13,18 +14,6 @@ const actor = "did:plc:aaaaaaaaaaaaaaaaaaaaaaaa"; const secondActor = "did:plc:bbbbbbbbbbbbbbbbbbbbbbbb"; const indexedAt = "2025-01-02T03:04:05.000Z"; -function lua(value) { - if (typeof value === "string") return JSON.stringify(value); - if (typeof value === "number" || typeof value === "boolean") return String(value); - if (Array.isArray(value)) return `{${value.map(lua).join(",")}}`; - if (value && typeof value === "object") { - return `{${Object.entries(value) - .map(([key, item]) => `[${JSON.stringify(key)}]=${lua(item)}`) - .join(",")}}`; - } - throw new TypeError(`Cannot encode ${typeof value} as a Lua fixture`); -} - function profileRow(did, id, record, createdAt) { return { uri: `at://${did}/${collection}/self`, diff --git a/happyview-modules/tests/unit/tooling/vocab-tags.test.js b/happyview-modules/tests/unit/tooling/vocab-tags.test.js index 183a39b0..7e00f17a 100644 --- a/happyview-modules/tests/unit/tooling/vocab-tags.test.js +++ b/happyview-modules/tests/unit/tooling/vocab-tags.test.js @@ -4,6 +4,7 @@ import { readFile } from "node:fs/promises"; import path from "node:path"; import test from "node:test"; import { fileURLToPath } from "node:url"; +import { lua } from "../helpers/lua.js"; const root = fileURLToPath(new URL("../../../", import.meta.url)); const uri = "at://did:plc:abcdefghijklmnopqrstuvwx/org.hypercerts.vocab.tag/3jzfcijpj2z2z"; @@ -20,18 +21,6 @@ const sharedSources = [ "lua/shared/vocabTagValidation.lua", ]; -function lua(value) { - if (typeof value === "string") return JSON.stringify(value); - if (typeof value === "number" || typeof value === "boolean") return String(value); - if (Array.isArray(value)) return `{${value.map(lua).join(",")}}`; - if (value && typeof value === "object") { - return `{${Object.entries(value) - .map(([key, item]) => `[${JSON.stringify(key)}]=${lua(item)}`) - .join(",")}}`; - } - throw new TypeError(`Cannot encode ${typeof value} as a Lua fixture`); -} - async function runLua({ endpoint = "getVocabTag", params, @@ -457,7 +446,7 @@ test("listVocabTags rejects a year-zero cursor timestamp before querying", async await runLua({ endpoint: "listVocabTags", params: { sortDirection: "asc", cursor: cursor({ timestamp: "0000-01-01T00:00:00Z" }) }, - expectError: "InvalidRequest: cursor timestamp year must be greater than 0000", + expectError: "InvalidRequest: cursor is malformed", assertions: "assert(#calls == 0)", }); }); diff --git a/packages/api/src/lexicons/app/certified/actor/listOrganizations.defs.ts b/packages/api/src/lexicons/app/certified/actor/listOrganizations.defs.ts index 6e340f29..026731a0 100644 --- a/packages/api/src/lexicons/app/certified/actor/listOrganizations.defs.ts +++ b/packages/api/src/lexicons/app/certified/actor/listOrganizations.defs.ts @@ -11,7 +11,7 @@ type $nsid = typeof $nsid; export { $nsid }; -export const $params = /*#__PURE__*/ l.params({"organizationTypes":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"maxLength":128}), {"maxLength":100})),"visibility":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.enum(["asc","desc"])),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100})),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); +export const $params = /*#__PURE__*/ l.params({"organizationTypes":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"maxLength":128}), {"maxLength":100})),"visibility":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.enum(["asc","desc"]), "desc")),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100}), 25)),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); export type $Params = l.InferOutput; diff --git a/packages/api/src/lexicons/app/certified/actor/listProfiles.defs.ts b/packages/api/src/lexicons/app/certified/actor/listProfiles.defs.ts index e2e15a41..bee78289 100644 --- a/packages/api/src/lexicons/app/certified/actor/listProfiles.defs.ts +++ b/packages/api/src/lexicons/app/certified/actor/listProfiles.defs.ts @@ -11,7 +11,7 @@ type $nsid = typeof $nsid; export { $nsid }; -export const $params = /*#__PURE__*/ l.params({"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.enum(["asc","desc"])),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100})),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); +export const $params = /*#__PURE__*/ l.params({"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.enum(["asc","desc"]), "desc")),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100}), 25)),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); export type $Params = l.InferOutput; diff --git a/packages/api/src/lexicons/app/certified/actor/searchOrganizations.defs.ts b/packages/api/src/lexicons/app/certified/actor/searchOrganizations.defs.ts index 0626cc41..aa6f99cd 100644 --- a/packages/api/src/lexicons/app/certified/actor/searchOrganizations.defs.ts +++ b/packages/api/src/lexicons/app/certified/actor/searchOrganizations.defs.ts @@ -11,7 +11,7 @@ type $nsid = typeof $nsid; export { $nsid }; -export const $params = /*#__PURE__*/ l.params({"search":/*#__PURE__*/ l.string(),"actors":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"did"}), {"maxLength":100})),"organizationTypes":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"maxLength":128}), {"maxLength":100})),"visibility":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.enum(["asc","desc"])),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100})),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); +export const $params = /*#__PURE__*/ l.params({"search":/*#__PURE__*/ l.string(),"actors":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"did"}), {"maxLength":100})),"organizationTypes":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"maxLength":128}), {"maxLength":100})),"visibility":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.enum(["asc","desc"]), "desc")),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100}), 25)),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); export type $Params = l.InferOutput; diff --git a/packages/api/src/lexicons/app/certified/actor/searchProfiles.defs.ts b/packages/api/src/lexicons/app/certified/actor/searchProfiles.defs.ts index 2876f4fa..4fed3ad3 100644 --- a/packages/api/src/lexicons/app/certified/actor/searchProfiles.defs.ts +++ b/packages/api/src/lexicons/app/certified/actor/searchProfiles.defs.ts @@ -11,7 +11,7 @@ type $nsid = typeof $nsid; export { $nsid }; -export const $params = /*#__PURE__*/ l.params({"search":/*#__PURE__*/ l.string(),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.enum(["asc","desc"])),"actors":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"did"}), {"maxLength":100})),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100})),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); +export const $params = /*#__PURE__*/ l.params({"search":/*#__PURE__*/ l.string(),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.enum(["asc","desc"]), "desc")),"actors":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"did"}), {"maxLength":100})),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100}), 25)),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); export type $Params = l.InferOutput; diff --git a/packages/api/src/lexicons/app/certified/feed/getActorLikes.defs.ts b/packages/api/src/lexicons/app/certified/feed/getActorLikes.defs.ts index 785b5101..bfc011e1 100644 --- a/packages/api/src/lexicons/app/certified/feed/getActorLikes.defs.ts +++ b/packages/api/src/lexicons/app/certified/feed/getActorLikes.defs.ts @@ -11,7 +11,7 @@ type $nsid = typeof $nsid; export { $nsid }; -export const $params = /*#__PURE__*/ l.params({"actor":/*#__PURE__*/ l.string({"format":"did"}),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.enum(["asc","desc"])),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100})),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); +export const $params = /*#__PURE__*/ l.params({"actor":/*#__PURE__*/ l.string({"format":"did"}),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.enum(["asc","desc"]), "desc")),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100}), 25)),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); export type $Params = l.InferOutput; diff --git a/packages/api/src/lexicons/app/certified/feed/getActorReposts.defs.ts b/packages/api/src/lexicons/app/certified/feed/getActorReposts.defs.ts index 4e5dbcdf..257d29ba 100644 --- a/packages/api/src/lexicons/app/certified/feed/getActorReposts.defs.ts +++ b/packages/api/src/lexicons/app/certified/feed/getActorReposts.defs.ts @@ -11,7 +11,7 @@ type $nsid = typeof $nsid; export { $nsid }; -export const $params = /*#__PURE__*/ l.params({"actor":/*#__PURE__*/ l.string({"format":"did"}),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.enum(["asc","desc"])),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100})),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); +export const $params = /*#__PURE__*/ l.params({"actor":/*#__PURE__*/ l.string({"format":"did"}),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.enum(["asc","desc"]), "desc")),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100}), 25)),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); export type $Params = l.InferOutput; diff --git a/packages/api/src/lexicons/app/certified/feed/getLikes.defs.ts b/packages/api/src/lexicons/app/certified/feed/getLikes.defs.ts index 4447d0d4..2b399e61 100644 --- a/packages/api/src/lexicons/app/certified/feed/getLikes.defs.ts +++ b/packages/api/src/lexicons/app/certified/feed/getLikes.defs.ts @@ -12,7 +12,7 @@ type $nsid = typeof $nsid; export { $nsid }; -export const $params = /*#__PURE__*/ l.params({"subject":/*#__PURE__*/ l.string({"format":"at-uri"}),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.enum(["asc","desc"])),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100})),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); +export const $params = /*#__PURE__*/ l.params({"subject":/*#__PURE__*/ l.string({"format":"at-uri"}),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.enum(["asc","desc"]), "desc")),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100}), 25)),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); export type $Params = l.InferOutput; diff --git a/packages/api/src/lexicons/app/certified/feed/getReposts.defs.ts b/packages/api/src/lexicons/app/certified/feed/getReposts.defs.ts index 421d804c..b616b01d 100644 --- a/packages/api/src/lexicons/app/certified/feed/getReposts.defs.ts +++ b/packages/api/src/lexicons/app/certified/feed/getReposts.defs.ts @@ -12,7 +12,7 @@ type $nsid = typeof $nsid; export { $nsid }; -export const $params = /*#__PURE__*/ l.params({"subject":/*#__PURE__*/ l.string({"format":"at-uri"}),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.enum(["asc","desc"])),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100})),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); +export const $params = /*#__PURE__*/ l.params({"subject":/*#__PURE__*/ l.string({"format":"at-uri"}),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.enum(["asc","desc"]), "desc")),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100}), 25)),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); export type $Params = l.InferOutput; diff --git a/packages/api/src/lexicons/app/certified/graph/listActorFollowers.defs.ts b/packages/api/src/lexicons/app/certified/graph/listActorFollowers.defs.ts index b3987ee1..9ac61752 100644 --- a/packages/api/src/lexicons/app/certified/graph/listActorFollowers.defs.ts +++ b/packages/api/src/lexicons/app/certified/graph/listActorFollowers.defs.ts @@ -11,7 +11,7 @@ type $nsid = typeof $nsid; export { $nsid }; -export const $params = /*#__PURE__*/ l.params({"actor":/*#__PURE__*/ l.string({"format":"did"}),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.enum(["asc","desc"])),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100})),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); +export const $params = /*#__PURE__*/ l.params({"actor":/*#__PURE__*/ l.string({"format":"did"}),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.enum(["asc","desc"]), "desc")),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100}), 25)),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); export type $Params = l.InferOutput; diff --git a/packages/api/src/lexicons/app/certified/graph/listActorFollowing.defs.ts b/packages/api/src/lexicons/app/certified/graph/listActorFollowing.defs.ts index 6fff8ac4..c68a056b 100644 --- a/packages/api/src/lexicons/app/certified/graph/listActorFollowing.defs.ts +++ b/packages/api/src/lexicons/app/certified/graph/listActorFollowing.defs.ts @@ -11,7 +11,7 @@ type $nsid = typeof $nsid; export { $nsid }; -export const $params = /*#__PURE__*/ l.params({"actor":/*#__PURE__*/ l.string({"format":"did"}),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.enum(["asc","desc"])),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100})),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); +export const $params = /*#__PURE__*/ l.params({"actor":/*#__PURE__*/ l.string({"format":"did"}),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.enum(["asc","desc"]), "desc")),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100}), 25)),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); export type $Params = l.InferOutput; diff --git a/packages/api/src/lexicons/app/certified/graph/listEntityFollowers.defs.ts b/packages/api/src/lexicons/app/certified/graph/listEntityFollowers.defs.ts index 401d2dc0..f1028223 100644 --- a/packages/api/src/lexicons/app/certified/graph/listEntityFollowers.defs.ts +++ b/packages/api/src/lexicons/app/certified/graph/listEntityFollowers.defs.ts @@ -12,7 +12,7 @@ type $nsid = typeof $nsid; export { $nsid }; -export const $params = /*#__PURE__*/ l.params({"entity":/*#__PURE__*/ l.string({"format":"at-uri"}),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.enum(["asc","desc"])),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100})),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); +export const $params = /*#__PURE__*/ l.params({"entity":/*#__PURE__*/ l.string({"format":"at-uri"}),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.enum(["asc","desc"]), "desc")),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100}), 25)),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); export type $Params = l.InferOutput; diff --git a/packages/api/src/lexicons/app/certified/graph/listEntityFollowing.defs.ts b/packages/api/src/lexicons/app/certified/graph/listEntityFollowing.defs.ts index f6b1998c..33969f8f 100644 --- a/packages/api/src/lexicons/app/certified/graph/listEntityFollowing.defs.ts +++ b/packages/api/src/lexicons/app/certified/graph/listEntityFollowing.defs.ts @@ -14,7 +14,7 @@ type $nsid = typeof $nsid; export { $nsid }; -export const $params = /*#__PURE__*/ l.params({"actor":/*#__PURE__*/ l.string({"format":"did"}),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.enum(["asc","desc"])),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100})),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); +export const $params = /*#__PURE__*/ l.params({"actor":/*#__PURE__*/ l.string({"format":"did"}),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.enum(["asc","desc"]), "desc")),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100}), 25)),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); export type $Params = l.InferOutput; diff --git a/packages/api/src/lexicons/app/certified/graph/listRecentFollows.defs.ts b/packages/api/src/lexicons/app/certified/graph/listRecentFollows.defs.ts index d197cf57..3f54fcbd 100644 --- a/packages/api/src/lexicons/app/certified/graph/listRecentFollows.defs.ts +++ b/packages/api/src/lexicons/app/certified/graph/listRecentFollows.defs.ts @@ -12,7 +12,7 @@ type $nsid = typeof $nsid; export { $nsid }; -export const $params = /*#__PURE__*/ l.params({"before":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({"format":"datetime"})),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100})),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); +export const $params = /*#__PURE__*/ l.params({"before":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({"format":"datetime"})),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100}), 25)),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); export type $Params = l.InferOutput; diff --git a/packages/api/src/lexicons/app/certified/location/getLocation.defs.ts b/packages/api/src/lexicons/app/certified/location/getLocation.defs.ts index 0326d7c7..2075aca1 100644 --- a/packages/api/src/lexicons/app/certified/location/getLocation.defs.ts +++ b/packages/api/src/lexicons/app/certified/location/getLocation.defs.ts @@ -22,7 +22,7 @@ export type $Output = l.InferPayload; export type $OutputBody = l.InferPayloadBody; /** Returns one indexed location by AT-URI; authentication is not required. */ -const main = /*#__PURE__*/ l.query($nsid, $params, $output, ["RecordNotFound"]); +const main = /*#__PURE__*/ l.query($nsid, $params, $output, ["InvalidRequest","RecordNotFound"]); export { main }; @@ -46,7 +46,7 @@ const output = /*#__PURE__*/ l.typedObject($nsid, "output", /*#__PURE__* export { output }; /** Indexed location with its original record and hydrated author. */ -type LocationView = { $type?: "app.certified.location.getLocation#locationView";"uri":l.AtUriString;"cid":l.CidString;"indexedAt":l.DatetimeString;"did":l.DidString; +type LocationView = { $type?: "app.certified.location.getLocation#locationView";"uri":l.AtUriString;"cid":l.CidString;"indexedAt":l.DatetimeString | null;"did":l.DidString; /** * Author DID with indexed profile and organization views; missing records are null, while lookup failures fail the query. @@ -56,6 +56,6 @@ type LocationView = { $type?: "app.certified.location.getLocation#locationView"; export type { LocationView }; /** Indexed location with its original record and hydrated author. */ -const locationView = /*#__PURE__*/ l.typedObject($nsid, "locationView", /*#__PURE__*/ l.object({"uri":/*#__PURE__*/ l.string({"format":"at-uri"}),"cid":/*#__PURE__*/ l.string({"format":"cid"}),"indexedAt":/*#__PURE__*/ l.string({"format":"datetime"}),"did":/*#__PURE__*/ l.string({"format":"did"}),"author":/*#__PURE__*/ l.ref((() => ApiDefs.actorView) as any),"record":/*#__PURE__*/ l.ref((() => CertifiedLocation.main) as any)})); +const locationView = /*#__PURE__*/ l.typedObject($nsid, "locationView", /*#__PURE__*/ l.object({"uri":/*#__PURE__*/ l.string({"format":"at-uri"}),"cid":/*#__PURE__*/ l.string({"format":"cid"}),"indexedAt":/*#__PURE__*/ l.nullable(/*#__PURE__*/ l.string({"format":"datetime"})),"did":/*#__PURE__*/ l.string({"format":"did"}),"author":/*#__PURE__*/ l.ref((() => ApiDefs.actorView) as any),"record":/*#__PURE__*/ l.ref((() => CertifiedLocation.main) as any)})); export { locationView }; diff --git a/packages/api/src/lexicons/app/certified/location/listLocations.defs.ts b/packages/api/src/lexicons/app/certified/location/listLocations.defs.ts index eb6bf8ef..ee199ad0 100644 --- a/packages/api/src/lexicons/app/certified/location/listLocations.defs.ts +++ b/packages/api/src/lexicons/app/certified/location/listLocations.defs.ts @@ -11,7 +11,7 @@ type $nsid = typeof $nsid; export { $nsid }; -export const $params = /*#__PURE__*/ l.params({"authors":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"did"}), {"maxLength":100})),"uris":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"at-uri"}), {"maxLength":100})),"locationTypes":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"maxLength":20}), {"maxLength":100})),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100})),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.enum(["asc","desc"]))}); +export const $params = /*#__PURE__*/ l.params({"authors":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"did"}), {"maxLength":100})),"uris":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"at-uri"}), {"maxLength":100})),"locationTypes":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"maxLength":20}), {"maxLength":100})),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100}), 25)),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.enum(["asc","desc"]), "desc"))}); export type $Params = l.InferOutput; diff --git a/packages/api/src/lexicons/org/hypercerts/claim/listActivities.defs.ts b/packages/api/src/lexicons/org/hypercerts/claim/listActivities.defs.ts index 81c828c6..1ccd4891 100644 --- a/packages/api/src/lexicons/org/hypercerts/claim/listActivities.defs.ts +++ b/packages/api/src/lexicons/org/hypercerts/claim/listActivities.defs.ts @@ -11,7 +11,7 @@ type $nsid = typeof $nsid; export { $nsid }; -export const $params = /*#__PURE__*/ l.params({"authors":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"did"}), {"maxLength":100})),"hasOrganizationRecord":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),"contributors":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"did"}), {"maxLength":100})),"involvedActors":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"did"}), {"maxLength":100})),"uris":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"at-uri"}), {"maxLength":100})),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.enum(["asc","desc"])),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100})),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); +export const $params = /*#__PURE__*/ l.params({"authors":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"did"}), {"maxLength":100})),"hasOrganizationRecord":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),"contributors":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"did"}), {"maxLength":100})),"involvedActors":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"did"}), {"maxLength":100})),"uris":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"at-uri"}), {"maxLength":100})),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.enum(["asc","desc"]), "desc")),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100}), 25)),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); export type $Params = l.InferOutput; diff --git a/packages/api/src/lexicons/org/hypercerts/claim/listContributorInformation.defs.ts b/packages/api/src/lexicons/org/hypercerts/claim/listContributorInformation.defs.ts index b1d7cd54..f9b385d9 100644 --- a/packages/api/src/lexicons/org/hypercerts/claim/listContributorInformation.defs.ts +++ b/packages/api/src/lexicons/org/hypercerts/claim/listContributorInformation.defs.ts @@ -11,7 +11,7 @@ type $nsid = typeof $nsid; export { $nsid }; -export const $params = /*#__PURE__*/ l.params({"authors":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"did"}), {"maxLength":100})),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.enum(["asc","desc"])),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100})),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); +export const $params = /*#__PURE__*/ l.params({"authors":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"did"}), {"maxLength":100})),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.enum(["asc","desc"]), "desc")),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100}), 25)),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); export type $Params = l.InferOutput; diff --git a/packages/api/src/lexicons/org/hypercerts/claim/listRights.defs.ts b/packages/api/src/lexicons/org/hypercerts/claim/listRights.defs.ts index 141ae6ff..bbfcd62b 100644 --- a/packages/api/src/lexicons/org/hypercerts/claim/listRights.defs.ts +++ b/packages/api/src/lexicons/org/hypercerts/claim/listRights.defs.ts @@ -11,7 +11,7 @@ type $nsid = typeof $nsid; export { $nsid }; -export const $params = /*#__PURE__*/ l.params({"authors":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"did"}), {"maxLength":100})),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.enum(["asc","desc"])),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100})),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); +export const $params = /*#__PURE__*/ l.params({"authors":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"did"}), {"maxLength":100})),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.enum(["asc","desc"]), "desc")),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100}), 25)),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); export type $Params = l.InferOutput; diff --git a/packages/api/src/lexicons/org/hypercerts/claim/searchActivities.defs.ts b/packages/api/src/lexicons/org/hypercerts/claim/searchActivities.defs.ts index ec277400..6195ddab 100644 --- a/packages/api/src/lexicons/org/hypercerts/claim/searchActivities.defs.ts +++ b/packages/api/src/lexicons/org/hypercerts/claim/searchActivities.defs.ts @@ -11,7 +11,7 @@ type $nsid = typeof $nsid; export { $nsid }; -export const $params = /*#__PURE__*/ l.params({"search":/*#__PURE__*/ l.string(),"authors":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"did"}), {"maxLength":100})),"hasOrganizationRecord":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),"contributors":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"did"}), {"maxLength":100})),"involvedActors":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"did"}), {"maxLength":100})),"uris":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"at-uri"}), {"maxLength":100})),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.enum(["asc","desc"])),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100})),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); +export const $params = /*#__PURE__*/ l.params({"search":/*#__PURE__*/ l.string(),"authors":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"did"}), {"maxLength":100})),"hasOrganizationRecord":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),"contributors":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"did"}), {"maxLength":100})),"involvedActors":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"did"}), {"maxLength":100})),"uris":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"at-uri"}), {"maxLength":100})),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.enum(["asc","desc"]), "desc")),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100}), 25)),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); export type $Params = l.InferOutput; diff --git a/packages/api/src/lexicons/org/hypercerts/collection/listCollectionItems.defs.ts b/packages/api/src/lexicons/org/hypercerts/collection/listCollectionItems.defs.ts index aecdeeca..0cf9d558 100644 --- a/packages/api/src/lexicons/org/hypercerts/collection/listCollectionItems.defs.ts +++ b/packages/api/src/lexicons/org/hypercerts/collection/listCollectionItems.defs.ts @@ -14,7 +14,7 @@ type $nsid = typeof $nsid; export { $nsid }; -export const $params = /*#__PURE__*/ l.params({"collection":/*#__PURE__*/ l.string({"format":"at-uri"}),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100})),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); +export const $params = /*#__PURE__*/ l.params({"collection":/*#__PURE__*/ l.string({"format":"at-uri"}),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100}), 25)),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); export type $Params = l.InferOutput; diff --git a/packages/api/src/lexicons/org/hypercerts/collection/listCollections.defs.ts b/packages/api/src/lexicons/org/hypercerts/collection/listCollections.defs.ts index d8266cd9..6a89b0fe 100644 --- a/packages/api/src/lexicons/org/hypercerts/collection/listCollections.defs.ts +++ b/packages/api/src/lexicons/org/hypercerts/collection/listCollections.defs.ts @@ -11,7 +11,7 @@ type $nsid = typeof $nsid; export { $nsid }; -export const $params = /*#__PURE__*/ l.params({"authors":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"did"}), {"maxLength":100})),"hasOrganizationRecord":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),"types":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"maxLength":64}), {"maxLength":100})),"uris":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"at-uri"}), {"maxLength":100})),"itemUris":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"at-uri"}), {"maxLength":100})),"tagUris":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"at-uri"}), {"maxLength":100})),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.enum(["asc","desc"])),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100})),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); +export const $params = /*#__PURE__*/ l.params({"authors":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"did"}), {"maxLength":100})),"hasOrganizationRecord":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),"types":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"maxLength":64}), {"maxLength":100})),"uris":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"at-uri"}), {"maxLength":100})),"itemUris":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"at-uri"}), {"maxLength":100})),"tagUris":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"at-uri"}), {"maxLength":100})),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.enum(["asc","desc"]), "desc")),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100}), 25)),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); export type $Params = l.InferOutput; diff --git a/packages/api/src/lexicons/org/hypercerts/collection/searchCollections.defs.ts b/packages/api/src/lexicons/org/hypercerts/collection/searchCollections.defs.ts index 9dde9f9a..a10f2657 100644 --- a/packages/api/src/lexicons/org/hypercerts/collection/searchCollections.defs.ts +++ b/packages/api/src/lexicons/org/hypercerts/collection/searchCollections.defs.ts @@ -11,7 +11,7 @@ type $nsid = typeof $nsid; export { $nsid }; -export const $params = /*#__PURE__*/ l.params({"search":/*#__PURE__*/ l.string(),"authors":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"did"}), {"maxLength":100})),"hasOrganizationRecord":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),"types":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"maxLength":64}), {"maxLength":100})),"uris":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"at-uri"}), {"maxLength":100})),"itemUris":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"at-uri"}), {"maxLength":100})),"tagUris":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"at-uri"}), {"maxLength":100})),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.enum(["asc","desc"])),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100})),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); +export const $params = /*#__PURE__*/ l.params({"search":/*#__PURE__*/ l.string(),"authors":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"did"}), {"maxLength":100})),"hasOrganizationRecord":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),"types":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"maxLength":64}), {"maxLength":100})),"uris":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"at-uri"}), {"maxLength":100})),"itemUris":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"at-uri"}), {"maxLength":100})),"tagUris":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"at-uri"}), {"maxLength":100})),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.enum(["asc","desc"]), "desc")),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100}), 25)),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); export type $Params = l.InferOutput; diff --git a/packages/api/src/lexicons/org/hypercerts/context/getEvaluation.defs.ts b/packages/api/src/lexicons/org/hypercerts/context/getEvaluation.defs.ts index e5faabeb..1bc3c152 100644 --- a/packages/api/src/lexicons/org/hypercerts/context/getEvaluation.defs.ts +++ b/packages/api/src/lexicons/org/hypercerts/context/getEvaluation.defs.ts @@ -43,7 +43,7 @@ const evaluatorView = /*#__PURE__*/ l.typedObject($nsid, "evaluat export { evaluatorView }; /** Evaluation with the original record, hydrated publisher, and evaluator projections. The record is not rewritten when evaluator data is malformed. A missing or non-array evaluator container yields an empty hydrated array; malformed entries are omitted. Missing profile or organization sidecars are omitted from evaluators; query or hydration failures fail the request. Evaluator arrays over 1000 entries still fail exact lookup and are skipped by lists. */ -type EvaluationView = { $type?: "org.hypercerts.context.getEvaluation#evaluationView";"uri":l.AtUriString;"cid":l.CidString;"indexedAt":l.DatetimeString;"did":l.DidString;"author":ApiDefs.ActorView;"record":ContextEvaluation.Main; +type EvaluationView = { $type?: "org.hypercerts.context.getEvaluation#evaluationView";"uri":l.AtUriString;"cid":l.CidString;"indexedAt":l.DatetimeString | null;"did":l.DidString;"author":ApiDefs.ActorView;"record":ContextEvaluation.Main; /** * Dense projection of valid record.evaluators object entries with valid DIDs, preserving their source order and duplicates. Entries with malformed shapes or invalid DIDs are omitted without changing the original record; a missing or non-array source yields an empty array. The first 100 response entries get their profile and organization looked up; later entries carry only the did. The raw evaluator array is limited to 1000 entries; over-limit records fail exact lookup and are skipped by lists. @@ -53,7 +53,7 @@ type EvaluationView = { $type?: "org.hypercerts.context.getEvaluation#evaluation export type { EvaluationView }; /** Evaluation with the original record, hydrated publisher, and evaluator projections. The record is not rewritten when evaluator data is malformed. A missing or non-array evaluator container yields an empty hydrated array; malformed entries are omitted. Missing profile or organization sidecars are omitted from evaluators; query or hydration failures fail the request. Evaluator arrays over 1000 entries still fail exact lookup and are skipped by lists. */ -const evaluationView = /*#__PURE__*/ l.typedObject($nsid, "evaluationView", /*#__PURE__*/ l.object({"uri":/*#__PURE__*/ l.string({"format":"at-uri"}),"cid":/*#__PURE__*/ l.string({"format":"cid"}),"indexedAt":/*#__PURE__*/ l.string({"format":"datetime"}),"did":/*#__PURE__*/ l.string({"format":"did"}),"author":/*#__PURE__*/ l.ref((() => ApiDefs.actorView) as any),"record":/*#__PURE__*/ l.ref((() => ContextEvaluation.main) as any),"evaluators":/*#__PURE__*/ l.array(/*#__PURE__*/ l.ref((() => evaluatorView) as any), {"maxLength":1000})})); +const evaluationView = /*#__PURE__*/ l.typedObject($nsid, "evaluationView", /*#__PURE__*/ l.object({"uri":/*#__PURE__*/ l.string({"format":"at-uri"}),"cid":/*#__PURE__*/ l.string({"format":"cid"}),"indexedAt":/*#__PURE__*/ l.nullable(/*#__PURE__*/ l.string({"format":"datetime"})),"did":/*#__PURE__*/ l.string({"format":"did"}),"author":/*#__PURE__*/ l.ref((() => ApiDefs.actorView) as any),"record":/*#__PURE__*/ l.ref((() => ContextEvaluation.main) as any),"evaluators":/*#__PURE__*/ l.array(/*#__PURE__*/ l.ref((() => evaluatorView) as any), {"maxLength":1000})})); export { evaluationView }; diff --git a/packages/api/src/lexicons/org/hypercerts/context/listAcknowledgements.defs.ts b/packages/api/src/lexicons/org/hypercerts/context/listAcknowledgements.defs.ts index c971d5b3..aec0a4c1 100644 --- a/packages/api/src/lexicons/org/hypercerts/context/listAcknowledgements.defs.ts +++ b/packages/api/src/lexicons/org/hypercerts/context/listAcknowledgements.defs.ts @@ -11,7 +11,7 @@ type $nsid = typeof $nsid; export { $nsid }; -export const $params = /*#__PURE__*/ l.params({"authors":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"did"}), {"maxLength":100})),"subjects":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"at-uri"}), {"maxLength":100})),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.enum(["asc","desc"])),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100}), 25)),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); +export const $params = /*#__PURE__*/ l.params({"authors":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"did"}), {"maxLength":100})),"subjects":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"at-uri"}), {"maxLength":100})),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.enum(["asc","desc"]), "desc")),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100}), 25)),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); export type $Params = l.InferOutput; diff --git a/packages/api/src/lexicons/org/hypercerts/context/listAttachments.defs.ts b/packages/api/src/lexicons/org/hypercerts/context/listAttachments.defs.ts index 05cc985a..17125d8a 100644 --- a/packages/api/src/lexicons/org/hypercerts/context/listAttachments.defs.ts +++ b/packages/api/src/lexicons/org/hypercerts/context/listAttachments.defs.ts @@ -11,7 +11,7 @@ type $nsid = typeof $nsid; export { $nsid }; -export const $params = /*#__PURE__*/ l.params({"authors":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"did"}), {"maxLength":100})),"uris":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"at-uri"}), {"maxLength":100})),"subjects":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"at-uri"}), {"maxLength":100})),"contentTypes":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), {"maxLength":100})),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.enum(["asc","desc"])),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100})),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); +export const $params = /*#__PURE__*/ l.params({"authors":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"did"}), {"maxLength":100})),"uris":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"at-uri"}), {"maxLength":100})),"subjects":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"at-uri"}), {"maxLength":100})),"contentTypes":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), {"maxLength":100})),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.enum(["asc","desc"]), "desc")),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100}), 25)),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); export type $Params = l.InferOutput; diff --git a/packages/api/src/lexicons/org/hypercerts/context/listEvaluations.defs.ts b/packages/api/src/lexicons/org/hypercerts/context/listEvaluations.defs.ts index 7bff25e7..87889058 100644 --- a/packages/api/src/lexicons/org/hypercerts/context/listEvaluations.defs.ts +++ b/packages/api/src/lexicons/org/hypercerts/context/listEvaluations.defs.ts @@ -11,7 +11,7 @@ type $nsid = typeof $nsid; export { $nsid }; -export const $params = /*#__PURE__*/ l.params({"authors":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"did"}), {"maxLength":100})),"evaluators":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"did"}), {"maxLength":100})),"subjects":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"at-uri"}), {"maxLength":100})),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.enum(["asc","desc"])),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100})),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); +export const $params = /*#__PURE__*/ l.params({"authors":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"did"}), {"maxLength":100})),"evaluators":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"did"}), {"maxLength":100})),"subjects":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"at-uri"}), {"maxLength":100})),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.enum(["asc","desc"]), "desc")),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100}), 25)),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); export type $Params = l.InferOutput; diff --git a/packages/api/src/lexicons/org/hypercerts/funding/listReceipts.defs.ts b/packages/api/src/lexicons/org/hypercerts/funding/listReceipts.defs.ts index 4c0ddaf8..042cab5b 100644 --- a/packages/api/src/lexicons/org/hypercerts/funding/listReceipts.defs.ts +++ b/packages/api/src/lexicons/org/hypercerts/funding/listReceipts.defs.ts @@ -11,7 +11,7 @@ type $nsid = typeof $nsid; export { $nsid }; -export const $params = /*#__PURE__*/ l.params({"authors":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"did"}), {"maxLength":100})),"uris":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"at-uri"}), {"maxLength":100})),"from":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), {"maxLength":100})),"to":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), {"maxLength":100})),"forUris":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"at-uri"}), {"maxLength":100})),"transactionIds":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), {"maxLength":100})),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.enum(["asc","desc"])),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100})),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); +export const $params = /*#__PURE__*/ l.params({"authors":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"did"}), {"maxLength":100})),"uris":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"at-uri"}), {"maxLength":100})),"from":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), {"maxLength":100})),"to":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), {"maxLength":100})),"forUris":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({"format":"at-uri"}), {"maxLength":100})),"transactionIds":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), {"maxLength":100})),"sortDirection":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.enum(["asc","desc"]), "desc")),"limit":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.integer({"minimum":1,"maximum":100}), 25)),"cursor":/*#__PURE__*/ l.optional(/*#__PURE__*/ l.string())}); export type $Params = l.InferOutput; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8bc3272d..b96e81fb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -215,12 +215,6 @@ importers: happyview-modules: dependencies: - '@atcute/cbor': - specifier: 2.3.2 - version: 2.3.2 - '@atcute/cid': - specifier: 2.4.1 - version: 2.4.1 '@atproto/lexicon': specifier: 0.6.2 version: 0.6.2 @@ -231,6 +225,12 @@ importers: specifier: 2.0.0 version: 2.0.0(@atproto/lex@0.4.2) devDependencies: + '@atcute/cbor': + specifier: 2.3.2 + version: 2.3.2 + '@atcute/cid': + specifier: 2.4.1 + version: 2.4.1 '@types/node': specifier: 24.3.0 version: 24.3.0