diff --git a/openapi/schemas/asset.openapi.json b/openapi/schemas/asset.openapi.json index 60e44f258f..c49a7dbf93 100644 --- a/openapi/schemas/asset.openapi.json +++ b/openapi/schemas/asset.openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Rapidata Asset API", "description": "The API for the Rapidata Asset service", - "version": "2026.11.26.1400-79c56d4d" + "version": "2026.11.27.1552-1c45faf4" }, "servers": [ { diff --git a/openapi/schemas/audience.openapi.json b/openapi/schemas/audience.openapi.json index 013526d4b2..8f3e7ec858 100644 --- a/openapi/schemas/audience.openapi.json +++ b/openapi/schemas/audience.openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Rapidata Audience API", "description": "The API for the Rapidata Audience service", - "version": "2026.11.26.1400-79c56d4d" + "version": "2026.11.27.1552-1c45faf4" }, "servers": [ { diff --git a/openapi/schemas/campaign.openapi.json b/openapi/schemas/campaign.openapi.json index bb3f9062b2..99b9e59abf 100644 --- a/openapi/schemas/campaign.openapi.json +++ b/openapi/schemas/campaign.openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Rapidata Campaign API", "description": "The API for the Rapidata Campaign service", - "version": "2026.11.26.1400-79c56d4d" + "version": "2026.11.27.1552-1c45faf4" }, "servers": [ { diff --git a/openapi/schemas/dataset.openapi.json b/openapi/schemas/dataset.openapi.json index 70a1d214d3..4c5bb71d41 100644 --- a/openapi/schemas/dataset.openapi.json +++ b/openapi/schemas/dataset.openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Rapidata Dataset API", "description": "The API for the Rapidata Dataset service", - "version": "2026.11.26.1400-79c56d4d" + "version": "2026.11.27.1552-1c45faf4" }, "servers": [ { @@ -77,7 +77,7 @@ "Datapoints" ], "summary": "Creates a new datapoint in the specified dataset.", - "description": "Send either segments or the legacy fields, which fill the default segments.\n Returns 400 when the content does not fit the dataset's schema.", + "description": "Returns 400 when the content does not fit the dataset's schema.", "parameters": [ { "name": "datasetId", @@ -763,7 +763,7 @@ "DatasetGroup" ], "summary": "Creates a new dataset group.", - "description": "Send either segments or the legacy fields, which fill the default segments.\n Returns 400 when the content does not fit the dataset's schema.", + "description": "Returns 400 when the content does not fit the dataset's schema.", "parameters": [ { "name": "datasetId", @@ -825,6 +825,9 @@ "components": { "schemas": { "CreateDatapointEndpoint_Input": { + "required": [ + "segments" + ], "type": "object", "properties": { "segments": { @@ -833,35 +836,10 @@ "type": "array", "items": { "$ref": "#/components/schemas/DatasetSegmentInput" - }, - "nullable": true - } - ], - "description": "The datapoint's values, keyed by the dataset's schema. Replaces the legacy fields below." - }, - "asset": { - "allOf": [ - { - "$ref": "#/components/schemas/IAssetInput" - } - ], - "description": "The asset within the datapoint. Required unless segments are sent.", - "deprecated": true - }, - "context": { - "type": "string", - "description": "An additional context to show the users when solving the rapid.", - "nullable": true, - "deprecated": true - }, - "contextAsset": { - "allOf": [ - { - "$ref": "#/components/schemas/IAssetInput" + } } ], - "description": "An optional asset context for the datapoint.", - "deprecated": true + "description": "The datapoint's values, keyed by the dataset's schema." }, "sortIndex": { "type": "integer", @@ -874,12 +852,6 @@ "description": "The group a datapoint belongs to.", "nullable": true }, - "transcription": { - "type": "string", - "description": "For audio or video assets, an optional transcription of the content.", - "nullable": true, - "deprecated": true - }, "privateMetadata": { "allOf": [ { @@ -966,7 +938,8 @@ }, "CreateDatasetGroupEndpoint_Input": { "required": [ - "group" + "group", + "segments" ], "type": "object", "properties": { @@ -980,26 +953,10 @@ "type": "array", "items": { "$ref": "#/components/schemas/DatasetSegmentInput" - }, - "nullable": true - } - ], - "description": "The group's values, keyed by the dataset's schema. Replaces the legacy fields below." - }, - "context": { - "type": "string", - "description": "The optional text context for the group.", - "nullable": true, - "deprecated": true - }, - "contextAsset": { - "allOf": [ - { - "$ref": "#/components/schemas/IAssetInput" + } } ], - "description": "The optional asset context for the group.", - "deprecated": true + "description": "The group's values, keyed by the dataset's schema." } } }, @@ -1168,30 +1125,6 @@ ], "description": "The current state of the datapoint." }, - "asset": { - "allOf": [ - { - "$ref": "#/components/schemas/IAsset" - } - ], - "description": "The asset that will be displayed to the users.", - "deprecated": true - }, - "context": { - "type": "string", - "description": "Optional context text shown to annotators alongside the datapoint.", - "nullable": true, - "deprecated": true - }, - "contextAsset": { - "allOf": [ - { - "$ref": "#/components/schemas/IAsset" - } - ], - "description": "Optional context media (reference image/audio/video) shown alongside the datapoint.", - "deprecated": true - }, "segments": { "allOf": [ { @@ -1292,14 +1225,6 @@ "format": "int64", "nullable": true }, - "asset": { - "allOf": [ - { - "$ref": "#/components/schemas/IAsset" - } - ], - "deprecated": true - }, "segments": { "type": "array", "items": { @@ -1911,30 +1836,6 @@ "type": "string", "description": "The id of the dataset this datapoint belongs to." }, - "asset": { - "allOf": [ - { - "$ref": "#/components/schemas/IAsset" - } - ], - "description": "The asset that will be displayed to the users.", - "deprecated": true - }, - "context": { - "type": "string", - "description": "Optional context text shown to annotators alongside the datapoint.", - "nullable": true, - "deprecated": true - }, - "contextAsset": { - "allOf": [ - { - "$ref": "#/components/schemas/IAsset" - } - ], - "description": "Optional context media (reference image/audio/video) shown alongside the datapoint.", - "deprecated": true - }, "segments": { "allOf": [ { diff --git a/openapi/schemas/flow.openapi.json b/openapi/schemas/flow.openapi.json index 36a6daebb7..69dccf0627 100644 --- a/openapi/schemas/flow.openapi.json +++ b/openapi/schemas/flow.openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Rapidata Flow API", "description": "The API for the Rapidata Flow service", - "version": "2026.11.26.1400-79c56d4d" + "version": "2026.11.27.1552-1c45faf4" }, "servers": [ { diff --git a/openapi/schemas/identity.openapi.json b/openapi/schemas/identity.openapi.json index 5e20dc10c5..fea003d71e 100644 --- a/openapi/schemas/identity.openapi.json +++ b/openapi/schemas/identity.openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Rapidata Identity API", "description": "The API for the Rapidata Identity service", - "version": "2026.11.26.1400-79c56d4d" + "version": "2026.11.27.1552-1c45faf4" }, "servers": [ { @@ -281,213 +281,6 @@ ] } }, - "/authorization/relations/clickhouse": { - "get": { - "tags": [ - "ClickHouse" - ], - "summary": "Lists every grantable ClickHouse database with its members and agent ceiling.", - "description": "Databases with no grants are included, with no members and a None ceiling.", - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GetClickHouseAccessEndpoint_Output" - } - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ValidationProblemDetails" - } - } - } - }, - "401": { - "description": "Unauthenticated" - }, - "403": { - "description": "Forbidden" - } - }, - "security": [ - { - "OpenIdConnect": [ - "platform:viewer" - ] - }, - { - "OpenIdConnect": [ - "api" - ] - } - ] - }, - "put": { - "tags": [ - "ClickHouse" - ], - "summary": "Sets a customer's access to a ClickHouse database to exactly the given relation.", - "description": "Replaces the customer's other relation on the same database. Idempotent. 400 when the database is not grantable.", - "requestBody": { - "description": "The customer, the database and the relation to grant.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GrantClickHouseRelationEndpoint_Input" - } - } - }, - "required": true - }, - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ValidationProblemDetails" - } - } - } - }, - "401": { - "description": "Unauthenticated" - }, - "403": { - "description": "Forbidden" - } - }, - "security": [ - { - "OpenIdConnect": [ - "platform:admin" - ] - }, - { - "OpenIdConnect": [ - "api" - ] - } - ] - }, - "delete": { - "tags": [ - "ClickHouse" - ], - "summary": "Revokes a relation on a ClickHouse database from a customer.", - "description": "Idempotent: revoking a relation that was never granted is a no-op. 400 when the database is not grantable.", - "requestBody": { - "description": "The customer, the database and the relation to revoke.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RevokeClickHouseRelationEndpoint_Input" - } - } - }, - "required": true - }, - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ValidationProblemDetails" - } - } - } - }, - "401": { - "description": "Unauthenticated" - }, - "403": { - "description": "Forbidden" - } - }, - "security": [ - { - "OpenIdConnect": [ - "platform:admin" - ] - }, - { - "OpenIdConnect": [ - "api" - ] - } - ] - } - }, - "/authorization/relations/clickhouse/agent": { - "put": { - "tags": [ - "ClickHouse" - ], - "summary": "Sets the agent ceiling on a ClickHouse database; an agent gets the lesser of this and its owner's access.", - "description": "None denies agents the database. Idempotent. 400 when the database is not grantable.", - "requestBody": { - "description": "The database and the ceiling to set.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SetClickHouseAgentCeilingEndpoint_Input" - } - } - }, - "required": true - }, - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ValidationProblemDetails" - } - } - } - }, - "401": { - "description": "Unauthenticated" - }, - "403": { - "description": "Forbidden" - } - }, - "security": [ - { - "OpenIdConnect": [ - "platform:admin" - ] - }, - { - "OpenIdConnect": [ - "api" - ] - } - ] - } - }, "/client": { "post": { "tags": [ @@ -539,11 +332,6 @@ "OpenIdConnect": [ "client:write" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] } @@ -591,11 +379,6 @@ "OpenIdConnect": [ "client:write" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] }, @@ -1277,209 +1060,20 @@ "or" ], "type": "string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/QueryCustomersEndpoint_PagedResultOfOutput" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ValidationProblemDetails" - } - } - } - }, - "401": { - "description": "Unauthenticated" - }, - "403": { - "description": "Forbidden" - } - }, - "security": [ - { - "OpenIdConnect": [ - "organization:read" - ] - }, - { - "OpenIdConnect": [ - "api" - ] - } - ] - } - }, - "/customers/{customerId}/unban": { - "post": { - "tags": [ - "Customer" - ], - "summary": "Lifts the customer's ban so they can sign in again.", - "description": "Unbanning a customer who is not banned succeeds and changes nothing.", - "parameters": [ - { - "name": "customerId", - "in": "path", - "description": "The id of the customer to unban.", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - } - ], - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ValidationProblemDetails" - } - } - } - }, - "401": { - "description": "Unauthenticated" - }, - "403": { - "description": "Forbidden" - } - }, - "security": [ - { - "OpenIdConnect": [ - "organization:write" - ] - }, - { - "OpenIdConnect": [ - "api" - ] - } - ] - } - }, - "/authorization/relations/external-app": { - "get": { - "tags": [ - "ExternalApps" - ], - "summary": "Lists the customers holding relations on one app, one cursor page at a time.", - "description": "app is required: each app is a separate object in the graph, so there is no combined\n listing. Returns every relation unless relation narrows it. Follow nextCursor to page.", - "parameters": [ - { - "name": "app", - "in": "query", - "description": "The app whose members to list.", - "required": true, - "schema": { - "$ref": "#/components/schemas/ExternalAppId" - } - }, - { - "name": "relation", - "in": "query", - "description": "Optional relation to filter by.", - "schema": { - "$ref": "#/components/schemas/AuthorizationRelations_ExternalApp" - } - }, - { - "name": "cursor", - "in": "query", - "description": "The opaque cursor from the previous page; omit for the first page.", - "schema": { - "type": "string" - } - }, - { - "name": "page_size", - "in": "query", - "description": "The number of items per page.", - "schema": { - "type": "integer" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetExternalAppRelationMembersEndpoint_CursorPagedResultOfOutput" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ValidationProblemDetails" - } - } - } - }, - "401": { - "description": "Unauthenticated" - }, - "403": { - "description": "Forbidden" - } - }, - "security": [ - { - "OpenIdConnect": [ - "platform:viewer" - ] - }, - { - "OpenIdConnect": [ - "api" - ] - } - ] - }, - "put": { - "tags": [ - "ExternalApps" + } + } ], - "summary": "Grants an external app relation to a customer.", - "description": "Idempotent: re-granting an existing relation is a no-op. The app must be one of the known\n values — an unrecognised app is rejected rather than written, since a grant against an object\n nothing reads would look like access was granted while conferring nothing.", - "requestBody": { - "description": "The customer, the app, and the relation to grant.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GrantExternalAppRelationEndpoint_Input" + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/QueryCustomersEndpoint_PagedResultOfOutput" + } } } }, - "required": true - }, - "responses": { - "204": { - "description": "No Content" - }, "400": { "description": "Bad Request", "content": { @@ -1500,7 +1094,7 @@ "security": [ { "OpenIdConnect": [ - "platform:admin" + "organization:read" ] }, { @@ -1509,24 +1103,27 @@ ] } ] - }, - "delete": { + } + }, + "/customers/{customerId}/unban": { + "post": { "tags": [ - "ExternalApps" + "Customer" ], - "summary": "Revokes an external app relation from a customer.", - "description": "Idempotent: revoking a relation that was never granted is a no-op.", - "requestBody": { - "description": "The customer, the app, and the relation to revoke.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RevokeExternalAppRelationEndpoint_Input" - } + "summary": "Lifts the customer's ban so they can sign in again.", + "description": "Unbanning a customer who is not banned succeeds and changes nothing.", + "parameters": [ + { + "name": "customerId", + "in": "path", + "description": "The id of the customer to unban.", + "required": true, + "schema": { + "type": "string", + "format": "uuid" } - }, - "required": true - }, + } + ], "responses": { "204": { "description": "No Content" @@ -1551,7 +1148,7 @@ "security": [ { "OpenIdConnect": [ - "platform:admin" + "organization:write" ] }, { @@ -3533,11 +3130,6 @@ "OpenIdConnect": [ "platform:viewer" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] }, @@ -3584,11 +3176,6 @@ "OpenIdConnect": [ "platform:admin" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] }, @@ -3635,11 +3222,6 @@ "OpenIdConnect": [ "platform:admin" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] } @@ -3745,29 +3327,6 @@ } } }, - "AuthorizationRelations_ClickHouseAgentCeiling": { - "enum": [ - "None", - "Reader", - "Writer" - ], - "description": "The most an `agent` may do on a `clickhouse_database`, whoever it acts for.\nClickHouseAgentCeiling.None means no agent tuple exists on the database." - }, - "AuthorizationRelations_ClickHouseDatabase": { - "enum": [ - "Reader", - "Writer" - ], - "description": "Relations a customer holds on a `clickhouse_database`, one object per ClickHouse\ndatabase name. `writer` folds into `reader`." - }, - "AuthorizationRelations_ExternalApp": { - "enum": [ - "Admin", - "User", - "Viewer" - ], - "description": "Relations on an `external_app` object — one object per third-party app that federates\non the OIDC `groups` claim. The apps themselves are `ExternalAppId`. The ladder is hierarchical: `admin` folds into `user`, and `user` into `viewer`.\nGrants are direct and, like `Bidder`, are never folded in from platform staff —\nholding platform admin must not confer administration of a separate system." - }, "AuthorizationRelations_Platform": { "enum": [ "Admin", @@ -3779,8 +3338,7 @@ "AuthorizationScope": { "enum": [ "Platform", - "Bidder", - "ExternalApp" + "Bidder" ] }, "Capability": { @@ -4098,15 +3656,6 @@ }, "description": "The request body for dynamic client registration." }, - "ExternalAppId": { - "enum": [ - "ArgoCd", - "Grafana", - "Headscale", - "Poseidon" - ], - "description": " The third-party applications that federate on our OIDC `groups` claim and can therefore\n be administered through a grant here. Each maps to an `external_app` object in the\n authorization graph.\n A closed enum rather than a free-form id on purpose: an arbitrary string would let a typo\nwrite a grant against an object nothing consumes, which looks like access was granted but\nsilently is not. Adding an app is a value here plus a tuple — no model change.This is the app itself; the relation vocabulary defined on these objects is\nAuthorizationRelations.ExternalApp. The Id suffix here keeps the two\ndistinguishable: a file with using static AuthorizationRelations imports that\nnested enum, and identical short names would make every bare mention ambiguous." - }, "GetCapabilityGranteesEndpoint_CursorPagedResultOfOutput": { "required": [ "items" @@ -4149,124 +3698,6 @@ } } }, - "GetClickHouseAccessEndpoint_Member": { - "required": [ - "customer", - "email", - "relation" - ], - "type": "object", - "properties": { - "customer": { - "type": "string", - "format": "uuid" - }, - "email": { - "type": "string" - }, - "relation": { - "$ref": "#/components/schemas/AuthorizationRelations_ClickHouseDatabase" - } - } - }, - "GetClickHouseAccessEndpoint_Output": { - "required": [ - "database", - "members", - "agentCeiling" - ], - "type": "object", - "properties": { - "database": { - "type": "string", - "description": "The ClickHouse database name." - }, - "members": { - "allOf": [ - { - "type": "array", - "items": { - "$ref": "#/components/schemas/GetClickHouseAccessEndpoint_Member" - } - } - ], - "description": "The customers holding a relation on the database." - }, - "agentCeiling": { - "$ref": "#/components/schemas/AuthorizationRelations_ClickHouseAgentCeiling" - } - } - }, - "GetExternalAppRelationMembersEndpoint_CursorPagedResultOfOutput": { - "required": [ - "items" - ], - "type": "object", - "properties": { - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GetExternalAppRelationMembersEndpoint_Output" - } - }, - "nextCursor": { - "type": "string", - "nullable": true - } - }, - "description": "A page of results identified by an opaque cursor rather than an offset. Used where the\nunderlying store pages by continuation token and a total count is unavailable or expensive.\nstring? CursorPagedResult<T>.NextCursor is null on the last page." - }, - "GetExternalAppRelationMembersEndpoint_Output": { - "required": [ - "customer", - "email", - "organizationName", - "organizationId", - "scope", - "app", - "relation", - "grantedAt" - ], - "type": "object", - "properties": { - "customer": { - "type": "string", - "description": "The customer holding the relation.", - "format": "uuid" - }, - "email": { - "type": "string", - "description": "The email address of the customer." - }, - "organizationName": { - "type": "string", - "description": "The name of the customer's active organization." - }, - "organizationId": { - "type": "string", - "description": "The identifier of the customer's active organization." - }, - "scope": { - "allOf": [ - { - "$ref": "#/components/schemas/AuthorizationScope" - } - ], - "description": "The object the relation is on." - }, - "app": { - "$ref": "#/components/schemas/ExternalAppId" - }, - "relation": { - "$ref": "#/components/schemas/AuthorizationRelations_ExternalApp" - }, - "grantedAt": { - "type": "string", - "description": "When the grant was written.", - "format": "date-time" - } - } - }, "GetIamPolicyEndpoint_Output": { "required": [ "bindings", @@ -4467,49 +3898,6 @@ } } }, - "GrantClickHouseRelationEndpoint_Input": { - "required": [ - "customer", - "database", - "relation" - ], - "type": "object", - "properties": { - "customer": { - "type": "string", - "description": "The customer to grant the relation to.", - "format": "uuid" - }, - "database": { - "type": "string", - "description": "The ClickHouse database name." - }, - "relation": { - "$ref": "#/components/schemas/AuthorizationRelations_ClickHouseDatabase" - } - } - }, - "GrantExternalAppRelationEndpoint_Input": { - "required": [ - "customer", - "app", - "relation" - ], - "type": "object", - "properties": { - "customer": { - "type": "string", - "description": "The customer to grant the relation to.", - "format": "uuid" - }, - "app": { - "$ref": "#/components/schemas/ExternalAppId" - }, - "relation": { - "$ref": "#/components/schemas/AuthorizationRelations_ExternalApp" - } - } - }, "GrantPlatformRelationEndpoint_Input": { "required": [ "customer", @@ -5183,49 +4571,6 @@ } } }, - "RevokeClickHouseRelationEndpoint_Input": { - "required": [ - "customer", - "database", - "relation" - ], - "type": "object", - "properties": { - "customer": { - "type": "string", - "description": "The customer to revoke the relation from.", - "format": "uuid" - }, - "database": { - "type": "string", - "description": "The ClickHouse database name." - }, - "relation": { - "$ref": "#/components/schemas/AuthorizationRelations_ClickHouseDatabase" - } - } - }, - "RevokeExternalAppRelationEndpoint_Input": { - "required": [ - "customer", - "app", - "relation" - ], - "type": "object", - "properties": { - "customer": { - "type": "string", - "description": "The customer to revoke the relation from.", - "format": "uuid" - }, - "app": { - "$ref": "#/components/schemas/ExternalAppId" - }, - "relation": { - "$ref": "#/components/schemas/AuthorizationRelations_ExternalApp" - } - } - }, "RevokePlatformRelationEndpoint_Input": { "required": [ "customer", @@ -5262,22 +4607,6 @@ } } }, - "SetClickHouseAgentCeilingEndpoint_Input": { - "required": [ - "database", - "ceiling" - ], - "type": "object", - "properties": { - "database": { - "type": "string", - "description": "The ClickHouse database name." - }, - "ceiling": { - "$ref": "#/components/schemas/AuthorizationRelations_ClickHouseAgentCeiling" - } - } - }, "SetIamPolicyEndpoint_Input": { "required": [ "bindings", diff --git a/openapi/schemas/leaderboard.openapi.json b/openapi/schemas/leaderboard.openapi.json index 211b0619a5..1da65e5a21 100644 --- a/openapi/schemas/leaderboard.openapi.json +++ b/openapi/schemas/leaderboard.openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Rapidata Leaderboard API", "description": "The API for the Rapidata Leaderboard service", - "version": "2026.11.26.1400-79c56d4d" + "version": "2026.11.27.1552-1c45faf4" }, "servers": [ { diff --git a/openapi/schemas/order.openapi.json b/openapi/schemas/order.openapi.json index 1183fabbcb..5c19e94550 100644 --- a/openapi/schemas/order.openapi.json +++ b/openapi/schemas/order.openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Rapidata Order API", "description": "The API for the Rapidata Order service", - "version": "2026.11.26.1400-79c56d4d" + "version": "2026.11.27.1552-1c45faf4" }, "servers": [ { @@ -7880,27 +7880,6 @@ "datasetId": { "type": "string" }, - "asset": { - "allOf": [ - { - "$ref": "#/components/schemas/IAsset" - } - ], - "deprecated": true - }, - "context": { - "type": "string", - "nullable": true, - "deprecated": true - }, - "contextAsset": { - "allOf": [ - { - "$ref": "#/components/schemas/IAsset" - } - ], - "deprecated": true - }, "segments": { "type": "array", "items": { diff --git a/openapi/schemas/payment.openapi.json b/openapi/schemas/payment.openapi.json index 0581d2896c..300b5c3f57 100644 --- a/openapi/schemas/payment.openapi.json +++ b/openapi/schemas/payment.openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Rapidata Payment API", "description": "The API for the Rapidata Payment service", - "version": "2026.11.26.1400-79c56d4d" + "version": "2026.11.27.1552-1c45faf4" }, "servers": [ { diff --git a/openapi/schemas/pipeline.openapi.json b/openapi/schemas/pipeline.openapi.json index dd6099a4e0..cceb876896 100644 --- a/openapi/schemas/pipeline.openapi.json +++ b/openapi/schemas/pipeline.openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Rapidata Pipeline API", "description": "The API for the Rapidata Pipeline service", - "version": "2026.11.26.1400-79c56d4d" + "version": "2026.11.27.1552-1c45faf4" }, "servers": [ { diff --git a/openapi/schemas/rapid.openapi.json b/openapi/schemas/rapid.openapi.json index b77a42daed..5166729546 100644 --- a/openapi/schemas/rapid.openapi.json +++ b/openapi/schemas/rapid.openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Rapidata Rapid API", "description": "The API for the Rapidata Rapid service", - "version": "2026.11.26.1400-79c56d4d" + "version": "2026.11.27.1552-1c45faf4" }, "servers": [ { @@ -61,11 +61,6 @@ "OpenIdConnect": [ "platform:admin" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] } @@ -988,11 +983,6 @@ "OpenIdConnect": [ "platform:admin" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] }, @@ -1034,11 +1024,6 @@ "OpenIdConnect": [ "platform:viewer" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] } @@ -1086,11 +1071,6 @@ "OpenIdConnect": [ "platform:admin" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] }, @@ -1147,11 +1127,6 @@ "OpenIdConnect": [ "platform:admin" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] } @@ -1309,11 +1284,6 @@ "OpenIdConnect": [ "platform:admin" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] } @@ -1404,11 +1374,6 @@ "OpenIdConnect": [ "platform:admin" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] } @@ -1510,11 +1475,6 @@ "OpenIdConnect": [ "platform:viewer" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] } @@ -1904,11 +1864,6 @@ "OpenIdConnect": [ "platform:viewer" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] } diff --git a/openapi/schemas/rapidata.filtered.openapi.json b/openapi/schemas/rapidata.filtered.openapi.json index 40a9b263a8..adec51577b 100644 --- a/openapi/schemas/rapidata.filtered.openapi.json +++ b/openapi/schemas/rapidata.filtered.openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Rapidata Asset API", "description": "The API for the Rapidata Asset service", - "version": "2026.11.26.1400-79c56d4d" + "version": "2026.11.27.1552-1c45faf4" }, "servers": [ { @@ -103,10 +103,6 @@ "name": "Capabilities", "x-displayName": "Capabilities" }, - { - "name": "ClickHouse", - "x-displayName": "ClickHouse" - }, { "name": "Client", "x-displayName": "Client" @@ -115,10 +111,6 @@ "name": "Customer", "x-displayName": "Customer" }, - { - "name": "ExternalApps", - "x-displayName": "ExternalApps" - }, { "name": "Iam", "x-displayName": "Iam" @@ -6208,7 +6200,7 @@ "Datapoints" ], "summary": "Creates a new datapoint in the specified dataset.", - "description": "Send either segments or the legacy fields, which fill the default segments.\n Returns 400 when the content does not fit the dataset's schema.", + "description": "Returns 400 when the content does not fit the dataset's schema.", "parameters": [ { "name": "datasetId", @@ -6894,7 +6886,7 @@ "DatasetGroup" ], "summary": "Creates a new dataset group.", - "description": "Send either segments or the legacy fields, which fill the default segments.\n Returns 400 when the content does not fit the dataset's schema.", + "description": "Returns 400 when the content does not fit the dataset's schema.", "parameters": [ { "name": "datasetId", @@ -8788,213 +8780,6 @@ ] } }, - "/authorization/relations/clickhouse": { - "get": { - "tags": [ - "ClickHouse" - ], - "summary": "Lists every grantable ClickHouse database with its members and agent ceiling.", - "description": "Databases with no grants are included, with no members and a None ceiling.", - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GetClickHouseAccessEndpoint_Output" - } - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ValidationProblemDetails" - } - } - } - }, - "401": { - "description": "Unauthenticated" - }, - "403": { - "description": "Forbidden" - } - }, - "security": [ - { - "OpenIdConnect": [ - "platform:viewer" - ] - }, - { - "OpenIdConnect": [ - "api" - ] - } - ] - }, - "put": { - "tags": [ - "ClickHouse" - ], - "summary": "Sets a customer's access to a ClickHouse database to exactly the given relation.", - "description": "Replaces the customer's other relation on the same database. Idempotent. 400 when the database is not grantable.", - "requestBody": { - "description": "The customer, the database and the relation to grant.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GrantClickHouseRelationEndpoint_Input" - } - } - }, - "required": true - }, - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ValidationProblemDetails" - } - } - } - }, - "401": { - "description": "Unauthenticated" - }, - "403": { - "description": "Forbidden" - } - }, - "security": [ - { - "OpenIdConnect": [ - "platform:admin" - ] - }, - { - "OpenIdConnect": [ - "api" - ] - } - ] - }, - "delete": { - "tags": [ - "ClickHouse" - ], - "summary": "Revokes a relation on a ClickHouse database from a customer.", - "description": "Idempotent: revoking a relation that was never granted is a no-op. 400 when the database is not grantable.", - "requestBody": { - "description": "The customer, the database and the relation to revoke.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RevokeClickHouseRelationEndpoint_Input" - } - } - }, - "required": true - }, - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ValidationProblemDetails" - } - } - } - }, - "401": { - "description": "Unauthenticated" - }, - "403": { - "description": "Forbidden" - } - }, - "security": [ - { - "OpenIdConnect": [ - "platform:admin" - ] - }, - { - "OpenIdConnect": [ - "api" - ] - } - ] - } - }, - "/authorization/relations/clickhouse/agent": { - "put": { - "tags": [ - "ClickHouse" - ], - "summary": "Sets the agent ceiling on a ClickHouse database; an agent gets the lesser of this and its owner's access.", - "description": "None denies agents the database. Idempotent. 400 when the database is not grantable.", - "requestBody": { - "description": "The database and the ceiling to set.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SetClickHouseAgentCeilingEndpoint_Input" - } - } - }, - "required": true - }, - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ValidationProblemDetails" - } - } - } - }, - "401": { - "description": "Unauthenticated" - }, - "403": { - "description": "Forbidden" - } - }, - "security": [ - { - "OpenIdConnect": [ - "platform:admin" - ] - }, - { - "OpenIdConnect": [ - "api" - ] - } - ] - } - }, "/client": { "post": { "tags": [ @@ -9046,11 +8831,6 @@ "OpenIdConnect": [ "client:write" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] } @@ -9098,11 +8878,6 @@ "OpenIdConnect": [ "client:write" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] }, @@ -9897,192 +9672,6 @@ ] } }, - "/authorization/relations/external-app": { - "get": { - "tags": [ - "ExternalApps" - ], - "summary": "Lists the customers holding relations on one app, one cursor page at a time.", - "description": "app is required: each app is a separate object in the graph, so there is no combined\n listing. Returns every relation unless relation narrows it. Follow nextCursor to page.", - "parameters": [ - { - "name": "app", - "in": "query", - "description": "The app whose members to list.", - "required": true, - "schema": { - "$ref": "#/components/schemas/ExternalAppId" - } - }, - { - "name": "relation", - "in": "query", - "description": "Optional relation to filter by.", - "schema": { - "$ref": "#/components/schemas/AuthorizationRelations_ExternalApp" - } - }, - { - "name": "cursor", - "in": "query", - "description": "The opaque cursor from the previous page; omit for the first page.", - "schema": { - "type": "string" - } - }, - { - "name": "page_size", - "in": "query", - "description": "The number of items per page.", - "schema": { - "type": "integer" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetExternalAppRelationMembersEndpoint_CursorPagedResultOfOutput" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ValidationProblemDetails" - } - } - } - }, - "401": { - "description": "Unauthenticated" - }, - "403": { - "description": "Forbidden" - } - }, - "security": [ - { - "OpenIdConnect": [ - "platform:viewer" - ] - }, - { - "OpenIdConnect": [ - "api" - ] - } - ] - }, - "put": { - "tags": [ - "ExternalApps" - ], - "summary": "Grants an external app relation to a customer.", - "description": "Idempotent: re-granting an existing relation is a no-op. The app must be one of the known\n values — an unrecognised app is rejected rather than written, since a grant against an object\n nothing reads would look like access was granted while conferring nothing.", - "requestBody": { - "description": "The customer, the app, and the relation to grant.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GrantExternalAppRelationEndpoint_Input" - } - } - }, - "required": true - }, - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ValidationProblemDetails" - } - } - } - }, - "401": { - "description": "Unauthenticated" - }, - "403": { - "description": "Forbidden" - } - }, - "security": [ - { - "OpenIdConnect": [ - "platform:admin" - ] - }, - { - "OpenIdConnect": [ - "api" - ] - } - ] - }, - "delete": { - "tags": [ - "ExternalApps" - ], - "summary": "Revokes an external app relation from a customer.", - "description": "Idempotent: revoking a relation that was never granted is a no-op.", - "requestBody": { - "description": "The customer, the app, and the relation to revoke.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RevokeExternalAppRelationEndpoint_Input" - } - } - }, - "required": true - }, - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ValidationProblemDetails" - } - } - } - }, - "401": { - "description": "Unauthenticated" - }, - "403": { - "description": "Forbidden" - } - }, - "security": [ - { - "OpenIdConnect": [ - "platform:admin" - ] - }, - { - "OpenIdConnect": [ - "api" - ] - } - ] - } - }, "/iam/policies/{type}/{id}": { "get": { "tags": [ @@ -12096,11 +11685,6 @@ "OpenIdConnect": [ "platform:viewer" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] }, @@ -12147,11 +11731,6 @@ "OpenIdConnect": [ "platform:admin" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] }, @@ -12198,11 +11777,6 @@ "OpenIdConnect": [ "platform:admin" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] } @@ -38163,11 +37737,6 @@ "OpenIdConnect": [ "platform:admin" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] } @@ -39097,11 +38666,6 @@ "OpenIdConnect": [ "platform:admin" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] }, @@ -39143,11 +38707,6 @@ "OpenIdConnect": [ "platform:viewer" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] } @@ -39195,11 +38754,6 @@ "OpenIdConnect": [ "platform:admin" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] }, @@ -39256,11 +38810,6 @@ "OpenIdConnect": [ "platform:admin" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] } @@ -39310,11 +38859,6 @@ "OpenIdConnect": [ "platform:admin" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] } @@ -39405,11 +38949,6 @@ "OpenIdConnect": [ "platform:admin" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] } @@ -39518,11 +39057,6 @@ "OpenIdConnect": [ "platform:viewer" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] } @@ -39919,11 +39453,6 @@ "OpenIdConnect": [ "platform:viewer" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] } @@ -42356,7 +41885,9 @@ "correct_validation_count", "-correct_validation_count", "invalid_validation_count", - "-invalid_validation_count" + "-invalid_validation_count", + "flag", + "-flag" ], "type": "string" } @@ -50248,6 +49779,9 @@ } }, "CreateDatapointEndpoint_Input": { + "required": [ + "segments" + ], "type": "object", "properties": { "segments": { @@ -50256,11 +49790,10 @@ "type": "array", "items": { "$ref": "#/components/schemas/DatasetSegmentInput" - }, - "nullable": true + } } ], - "description": "The datapoint's values, keyed by the dataset's schema. Replaces the legacy fields below." + "description": "The datapoint's values, keyed by the dataset's schema." }, "sortIndex": { "type": "integer", @@ -50359,7 +49892,8 @@ }, "CreateDatasetGroupEndpoint_Input": { "required": [ - "group" + "group", + "segments" ], "type": "object", "properties": { @@ -50373,11 +49907,10 @@ "type": "array", "items": { "$ref": "#/components/schemas/DatasetSegmentInput" - }, - "nullable": true + } } ], - "description": "The group's values, keyed by the dataset's schema. Replaces the legacy fields below." + "description": "The group's values, keyed by the dataset's schema." } } }, @@ -52462,29 +51995,6 @@ } } }, - "AuthorizationRelations_ClickHouseAgentCeiling": { - "enum": [ - "None", - "Reader", - "Writer" - ], - "description": "The most an `agent` may do on a `clickhouse_database`, whoever it acts for.\nClickHouseAgentCeiling.None means no agent tuple exists on the database." - }, - "AuthorizationRelations_ClickHouseDatabase": { - "enum": [ - "Reader", - "Writer" - ], - "description": "Relations a customer holds on a `clickhouse_database`, one object per ClickHouse\ndatabase name. `writer` folds into `reader`." - }, - "AuthorizationRelations_ExternalApp": { - "enum": [ - "Admin", - "User", - "Viewer" - ], - "description": "Relations on an `external_app` object — one object per third-party app that federates\non the OIDC `groups` claim. The apps themselves are `ExternalAppId`. The ladder is hierarchical: `admin` folds into `user`, and `user` into `viewer`.\nGrants are direct and, like `Bidder`, are never folded in from platform staff —\nholding platform admin must not confer administration of a separate system." - }, "AuthorizationRelations_Platform": { "enum": [ "Admin", @@ -52496,8 +52006,7 @@ "AuthorizationScope": { "enum": [ "Platform", - "Bidder", - "ExternalApp" + "Bidder" ] }, "Capability": { @@ -52815,15 +52324,6 @@ }, "description": "The request body for dynamic client registration." }, - "ExternalAppId": { - "enum": [ - "ArgoCd", - "Grafana", - "Headscale", - "Poseidon" - ], - "description": " The third-party applications that federate on our OIDC `groups` claim and can therefore\n be administered through a grant here. Each maps to an `external_app` object in the\n authorization graph.\n A closed enum rather than a free-form id on purpose: an arbitrary string would let a typo\nwrite a grant against an object nothing consumes, which looks like access was granted but\nsilently is not. Adding an app is a value here plus a tuple — no model change.This is the app itself; the relation vocabulary defined on these objects is\nAuthorizationRelations.ExternalApp. The Id suffix here keeps the two\ndistinguishable: a file with using static AuthorizationRelations imports that\nnested enum, and identical short names would make every bare mention ambiguous." - }, "GetCapabilityGranteesEndpoint_CursorPagedResultOfOutput": { "required": [ "items" @@ -52866,124 +52366,6 @@ } } }, - "GetClickHouseAccessEndpoint_Member": { - "required": [ - "customer", - "email", - "relation" - ], - "type": "object", - "properties": { - "customer": { - "type": "string", - "format": "uuid" - }, - "email": { - "type": "string" - }, - "relation": { - "$ref": "#/components/schemas/AuthorizationRelations_ClickHouseDatabase" - } - } - }, - "GetClickHouseAccessEndpoint_Output": { - "required": [ - "database", - "members", - "agentCeiling" - ], - "type": "object", - "properties": { - "database": { - "type": "string", - "description": "The ClickHouse database name." - }, - "members": { - "allOf": [ - { - "type": "array", - "items": { - "$ref": "#/components/schemas/GetClickHouseAccessEndpoint_Member" - } - } - ], - "description": "The customers holding a relation on the database." - }, - "agentCeiling": { - "$ref": "#/components/schemas/AuthorizationRelations_ClickHouseAgentCeiling" - } - } - }, - "GetExternalAppRelationMembersEndpoint_CursorPagedResultOfOutput": { - "required": [ - "items" - ], - "type": "object", - "properties": { - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GetExternalAppRelationMembersEndpoint_Output" - } - }, - "nextCursor": { - "type": "string", - "nullable": true - } - }, - "description": "A page of results identified by an opaque cursor rather than an offset. Used where the\nunderlying store pages by continuation token and a total count is unavailable or expensive.\nstring? CursorPagedResult<T>.NextCursor is null on the last page." - }, - "GetExternalAppRelationMembersEndpoint_Output": { - "required": [ - "customer", - "email", - "organizationName", - "organizationId", - "scope", - "app", - "relation", - "grantedAt" - ], - "type": "object", - "properties": { - "customer": { - "type": "string", - "description": "The customer holding the relation.", - "format": "uuid" - }, - "email": { - "type": "string", - "description": "The email address of the customer." - }, - "organizationName": { - "type": "string", - "description": "The name of the customer's active organization." - }, - "organizationId": { - "type": "string", - "description": "The identifier of the customer's active organization." - }, - "scope": { - "allOf": [ - { - "$ref": "#/components/schemas/AuthorizationScope" - } - ], - "description": "The object the relation is on." - }, - "app": { - "$ref": "#/components/schemas/ExternalAppId" - }, - "relation": { - "$ref": "#/components/schemas/AuthorizationRelations_ExternalApp" - }, - "grantedAt": { - "type": "string", - "description": "When the grant was written.", - "format": "date-time" - } - } - }, "GetIamPolicyEndpoint_Output": { "required": [ "bindings", @@ -53184,49 +52566,6 @@ } } }, - "GrantClickHouseRelationEndpoint_Input": { - "required": [ - "customer", - "database", - "relation" - ], - "type": "object", - "properties": { - "customer": { - "type": "string", - "description": "The customer to grant the relation to.", - "format": "uuid" - }, - "database": { - "type": "string", - "description": "The ClickHouse database name." - }, - "relation": { - "$ref": "#/components/schemas/AuthorizationRelations_ClickHouseDatabase" - } - } - }, - "GrantExternalAppRelationEndpoint_Input": { - "required": [ - "customer", - "app", - "relation" - ], - "type": "object", - "properties": { - "customer": { - "type": "string", - "description": "The customer to grant the relation to.", - "format": "uuid" - }, - "app": { - "$ref": "#/components/schemas/ExternalAppId" - }, - "relation": { - "$ref": "#/components/schemas/AuthorizationRelations_ExternalApp" - } - } - }, "GrantPlatformRelationEndpoint_Input": { "required": [ "customer", @@ -53900,49 +53239,6 @@ } } }, - "RevokeClickHouseRelationEndpoint_Input": { - "required": [ - "customer", - "database", - "relation" - ], - "type": "object", - "properties": { - "customer": { - "type": "string", - "description": "The customer to revoke the relation from.", - "format": "uuid" - }, - "database": { - "type": "string", - "description": "The ClickHouse database name." - }, - "relation": { - "$ref": "#/components/schemas/AuthorizationRelations_ClickHouseDatabase" - } - } - }, - "RevokeExternalAppRelationEndpoint_Input": { - "required": [ - "customer", - "app", - "relation" - ], - "type": "object", - "properties": { - "customer": { - "type": "string", - "description": "The customer to revoke the relation from.", - "format": "uuid" - }, - "app": { - "$ref": "#/components/schemas/ExternalAppId" - }, - "relation": { - "$ref": "#/components/schemas/AuthorizationRelations_ExternalApp" - } - } - }, "RevokePlatformRelationEndpoint_Input": { "required": [ "customer", @@ -53979,22 +53275,6 @@ } } }, - "SetClickHouseAgentCeilingEndpoint_Input": { - "required": [ - "database", - "ceiling" - ], - "type": "object", - "properties": { - "database": { - "type": "string", - "description": "The ClickHouse database name." - }, - "ceiling": { - "$ref": "#/components/schemas/AuthorizationRelations_ClickHouseAgentCeiling" - } - } - }, "SetIamPolicyEndpoint_Input": { "required": [ "bindings", @@ -75844,6 +75124,14 @@ } ], "description": "The state of the rapid." + }, + "flag": { + "allOf": [ + { + "$ref": "#/components/schemas/RapidFlag" + } + ], + "description": "Why the rapid was flagged, with live answer counts per group; staff only." } } }, @@ -76064,6 +75352,68 @@ } } }, + "RapidFlag": { + "required": [ + "reason", + "flaggedAt", + "dismissed", + "groups" + ], + "type": "object", + "properties": { + "reason": { + "$ref": "#/components/schemas/RapidFlagReason" + }, + "flaggedAt": { + "type": "string", + "format": "date-time" + }, + "dismissed": { + "type": "boolean" + }, + "groups": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RapidFlag_Group" + } + } + } + }, + "RapidFlag_Group": { + "required": [ + "correct", + "incorrect", + "isLow" + ], + "type": "object", + "properties": { + "language": { + "type": "string", + "nullable": true + }, + "country": { + "type": "string", + "nullable": true + }, + "correct": { + "type": "integer", + "format": "int64" + }, + "incorrect": { + "type": "integer", + "format": "int64" + }, + "isLow": { + "type": "boolean" + } + } + }, + "RapidFlagReason": { + "enum": [ + "LowAccuracy", + "Reports" + ] + }, "RapidModality": { "type": "array", "items": { @@ -76128,9 +75478,9 @@ "type": "boolean", "description": "Whether the validation set should be public." }, - "isFlagOverruled": { + "removeWhenFlagged": { "type": "boolean", - "description": "Whether flags on validation rapids should be overruled." + "description": "Whether a flagged rapid of the set is also removed from serving." } } }, @@ -76207,10 +75557,8 @@ "tags": [ "Rapidata.Identity.API", "Capabilities", - "ClickHouse", "Client", "Customer", - "ExternalApps", "Iam", "Identity", "Newsletter", diff --git a/openapi/schemas/rapidata.openapi.json b/openapi/schemas/rapidata.openapi.json index 68a8bca88c..7e5882f7f8 100644 --- a/openapi/schemas/rapidata.openapi.json +++ b/openapi/schemas/rapidata.openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Rapidata Asset API", "description": "The API for the Rapidata Asset service", - "version": "2026.11.26.1400-79c56d4d" + "version": "2026.11.27.1552-1c45faf4" }, "servers": [ { @@ -103,10 +103,6 @@ "name": "Capabilities", "x-displayName": "Capabilities" }, - { - "name": "ClickHouse", - "x-displayName": "ClickHouse" - }, { "name": "Client", "x-displayName": "Client" @@ -115,10 +111,6 @@ "name": "Customer", "x-displayName": "Customer" }, - { - "name": "ExternalApps", - "x-displayName": "ExternalApps" - }, { "name": "Iam", "x-displayName": "Iam" @@ -6260,7 +6252,7 @@ "Datapoints" ], "summary": "Creates a new datapoint in the specified dataset.", - "description": "Send either segments or the legacy fields, which fill the default segments.\n Returns 400 when the content does not fit the dataset's schema.", + "description": "Returns 400 when the content does not fit the dataset's schema.", "parameters": [ { "name": "datasetId", @@ -6946,7 +6938,7 @@ "DatasetGroup" ], "summary": "Creates a new dataset group.", - "description": "Send either segments or the legacy fields, which fill the default segments.\n Returns 400 when the content does not fit the dataset's schema.", + "description": "Returns 400 when the content does not fit the dataset's schema.", "parameters": [ { "name": "datasetId", @@ -8903,213 +8895,6 @@ ] } }, - "/authorization/relations/clickhouse": { - "get": { - "tags": [ - "ClickHouse" - ], - "summary": "Lists every grantable ClickHouse database with its members and agent ceiling.", - "description": "Databases with no grants are included, with no members and a None ceiling.", - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GetClickHouseAccessEndpoint_Output" - } - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ValidationProblemDetails" - } - } - } - }, - "401": { - "description": "Unauthenticated" - }, - "403": { - "description": "Forbidden" - } - }, - "security": [ - { - "OpenIdConnect": [ - "platform:viewer" - ] - }, - { - "OpenIdConnect": [ - "api" - ] - } - ] - }, - "put": { - "tags": [ - "ClickHouse" - ], - "summary": "Sets a customer's access to a ClickHouse database to exactly the given relation.", - "description": "Replaces the customer's other relation on the same database. Idempotent. 400 when the database is not grantable.", - "requestBody": { - "description": "The customer, the database and the relation to grant.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GrantClickHouseRelationEndpoint_Input" - } - } - }, - "required": true - }, - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ValidationProblemDetails" - } - } - } - }, - "401": { - "description": "Unauthenticated" - }, - "403": { - "description": "Forbidden" - } - }, - "security": [ - { - "OpenIdConnect": [ - "platform:admin" - ] - }, - { - "OpenIdConnect": [ - "api" - ] - } - ] - }, - "delete": { - "tags": [ - "ClickHouse" - ], - "summary": "Revokes a relation on a ClickHouse database from a customer.", - "description": "Idempotent: revoking a relation that was never granted is a no-op. 400 when the database is not grantable.", - "requestBody": { - "description": "The customer, the database and the relation to revoke.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RevokeClickHouseRelationEndpoint_Input" - } - } - }, - "required": true - }, - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ValidationProblemDetails" - } - } - } - }, - "401": { - "description": "Unauthenticated" - }, - "403": { - "description": "Forbidden" - } - }, - "security": [ - { - "OpenIdConnect": [ - "platform:admin" - ] - }, - { - "OpenIdConnect": [ - "api" - ] - } - ] - } - }, - "/authorization/relations/clickhouse/agent": { - "put": { - "tags": [ - "ClickHouse" - ], - "summary": "Sets the agent ceiling on a ClickHouse database; an agent gets the lesser of this and its owner's access.", - "description": "None denies agents the database. Idempotent. 400 when the database is not grantable.", - "requestBody": { - "description": "The database and the ceiling to set.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SetClickHouseAgentCeilingEndpoint_Input" - } - } - }, - "required": true - }, - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ValidationProblemDetails" - } - } - } - }, - "401": { - "description": "Unauthenticated" - }, - "403": { - "description": "Forbidden" - } - }, - "security": [ - { - "OpenIdConnect": [ - "platform:admin" - ] - }, - { - "OpenIdConnect": [ - "api" - ] - } - ] - } - }, "/client": { "post": { "tags": [ @@ -9161,11 +8946,6 @@ "OpenIdConnect": [ "client:write" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] } @@ -9213,11 +8993,6 @@ "OpenIdConnect": [ "client:write" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] }, @@ -10012,192 +9787,6 @@ ] } }, - "/authorization/relations/external-app": { - "get": { - "tags": [ - "ExternalApps" - ], - "summary": "Lists the customers holding relations on one app, one cursor page at a time.", - "description": "app is required: each app is a separate object in the graph, so there is no combined\n listing. Returns every relation unless relation narrows it. Follow nextCursor to page.", - "parameters": [ - { - "name": "app", - "in": "query", - "description": "The app whose members to list.", - "required": true, - "schema": { - "$ref": "#/components/schemas/ExternalAppId" - } - }, - { - "name": "relation", - "in": "query", - "description": "Optional relation to filter by.", - "schema": { - "$ref": "#/components/schemas/AuthorizationRelations_ExternalApp" - } - }, - { - "name": "cursor", - "in": "query", - "description": "The opaque cursor from the previous page; omit for the first page.", - "schema": { - "type": "string" - } - }, - { - "name": "page_size", - "in": "query", - "description": "The number of items per page.", - "schema": { - "type": "integer" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GetExternalAppRelationMembersEndpoint_CursorPagedResultOfOutput" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ValidationProblemDetails" - } - } - } - }, - "401": { - "description": "Unauthenticated" - }, - "403": { - "description": "Forbidden" - } - }, - "security": [ - { - "OpenIdConnect": [ - "platform:viewer" - ] - }, - { - "OpenIdConnect": [ - "api" - ] - } - ] - }, - "put": { - "tags": [ - "ExternalApps" - ], - "summary": "Grants an external app relation to a customer.", - "description": "Idempotent: re-granting an existing relation is a no-op. The app must be one of the known\n values — an unrecognised app is rejected rather than written, since a grant against an object\n nothing reads would look like access was granted while conferring nothing.", - "requestBody": { - "description": "The customer, the app, and the relation to grant.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GrantExternalAppRelationEndpoint_Input" - } - } - }, - "required": true - }, - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ValidationProblemDetails" - } - } - } - }, - "401": { - "description": "Unauthenticated" - }, - "403": { - "description": "Forbidden" - } - }, - "security": [ - { - "OpenIdConnect": [ - "platform:admin" - ] - }, - { - "OpenIdConnect": [ - "api" - ] - } - ] - }, - "delete": { - "tags": [ - "ExternalApps" - ], - "summary": "Revokes an external app relation from a customer.", - "description": "Idempotent: revoking a relation that was never granted is a no-op.", - "requestBody": { - "description": "The customer, the app, and the relation to revoke.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RevokeExternalAppRelationEndpoint_Input" - } - } - }, - "required": true - }, - "responses": { - "204": { - "description": "No Content" - }, - "400": { - "description": "Bad Request", - "content": { - "application/problem+json": { - "schema": { - "$ref": "#/components/schemas/ValidationProblemDetails" - } - } - } - }, - "401": { - "description": "Unauthenticated" - }, - "403": { - "description": "Forbidden" - } - }, - "security": [ - { - "OpenIdConnect": [ - "platform:admin" - ] - }, - { - "OpenIdConnect": [ - "api" - ] - } - ] - } - }, "/iam/policies/{type}/{id}": { "get": { "tags": [ @@ -12211,11 +11800,6 @@ "OpenIdConnect": [ "platform:viewer" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] }, @@ -12262,11 +11846,6 @@ "OpenIdConnect": [ "platform:admin" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] }, @@ -12313,11 +11892,6 @@ "OpenIdConnect": [ "platform:admin" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] } @@ -40199,11 +39773,6 @@ "OpenIdConnect": [ "platform:admin" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] } @@ -41133,11 +40702,6 @@ "OpenIdConnect": [ "platform:admin" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] }, @@ -41179,11 +40743,6 @@ "OpenIdConnect": [ "platform:viewer" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] } @@ -41231,11 +40790,6 @@ "OpenIdConnect": [ "platform:admin" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] }, @@ -41292,11 +40846,6 @@ "OpenIdConnect": [ "platform:admin" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] } @@ -41454,11 +41003,6 @@ "OpenIdConnect": [ "platform:admin" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] } @@ -41549,11 +41093,6 @@ "OpenIdConnect": [ "platform:admin" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] } @@ -41662,11 +41201,6 @@ "OpenIdConnect": [ "platform:viewer" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] } @@ -42063,11 +41597,6 @@ "OpenIdConnect": [ "platform:viewer" ] - }, - { - "OpenIdConnect": [ - "api" - ] } ] } @@ -44500,7 +44029,9 @@ "correct_validation_count", "-correct_validation_count", "invalid_validation_count", - "-invalid_validation_count" + "-invalid_validation_count", + "flag", + "-flag" ], "type": "string" } @@ -52627,6 +52158,9 @@ } }, "CreateDatapointEndpoint_Input": { + "required": [ + "segments" + ], "type": "object", "properties": { "segments": { @@ -52635,35 +52169,10 @@ "type": "array", "items": { "$ref": "#/components/schemas/DatasetSegmentInput" - }, - "nullable": true - } - ], - "description": "The datapoint's values, keyed by the dataset's schema. Replaces the legacy fields below." - }, - "asset": { - "allOf": [ - { - "$ref": "#/components/schemas/IAssetInput" - } - ], - "description": "The asset within the datapoint. Required unless segments are sent.", - "deprecated": true - }, - "context": { - "type": "string", - "description": "An additional context to show the users when solving the rapid.", - "nullable": true, - "deprecated": true - }, - "contextAsset": { - "allOf": [ - { - "$ref": "#/components/schemas/IAssetInput" + } } ], - "description": "An optional asset context for the datapoint.", - "deprecated": true + "description": "The datapoint's values, keyed by the dataset's schema." }, "sortIndex": { "type": "integer", @@ -52676,12 +52185,6 @@ "description": "The group a datapoint belongs to.", "nullable": true }, - "transcription": { - "type": "string", - "description": "For audio or video assets, an optional transcription of the content.", - "nullable": true, - "deprecated": true - }, "privateMetadata": { "allOf": [ { @@ -52768,7 +52271,8 @@ }, "CreateDatasetGroupEndpoint_Input": { "required": [ - "group" + "group", + "segments" ], "type": "object", "properties": { @@ -52782,26 +52286,10 @@ "type": "array", "items": { "$ref": "#/components/schemas/DatasetSegmentInput" - }, - "nullable": true - } - ], - "description": "The group's values, keyed by the dataset's schema. Replaces the legacy fields below." - }, - "context": { - "type": "string", - "description": "The optional text context for the group.", - "nullable": true, - "deprecated": true - }, - "contextAsset": { - "allOf": [ - { - "$ref": "#/components/schemas/IAssetInput" + } } ], - "description": "The optional asset context for the group.", - "deprecated": true + "description": "The group's values, keyed by the dataset's schema." } } }, @@ -52962,30 +52450,6 @@ ], "description": "The current state of the datapoint." }, - "asset": { - "allOf": [ - { - "$ref": "#/components/schemas/IAsset" - } - ], - "description": "The asset that will be displayed to the users.", - "deprecated": true - }, - "context": { - "type": "string", - "description": "Optional context text shown to annotators alongside the datapoint.", - "nullable": true, - "deprecated": true - }, - "contextAsset": { - "allOf": [ - { - "$ref": "#/components/schemas/IAsset" - } - ], - "description": "Optional context media (reference image/audio/video) shown alongside the datapoint.", - "deprecated": true - }, "segments": { "allOf": [ { @@ -53086,14 +52550,6 @@ "format": "int64", "nullable": true }, - "asset": { - "allOf": [ - { - "$ref": "#/components/schemas/IAsset" - } - ], - "deprecated": true - }, "segments": { "type": "array", "items": { @@ -53141,30 +52597,6 @@ "type": "string", "description": "The id of the dataset this datapoint belongs to." }, - "asset": { - "allOf": [ - { - "$ref": "#/components/schemas/IAsset" - } - ], - "description": "The asset that will be displayed to the users.", - "deprecated": true - }, - "context": { - "type": "string", - "description": "Optional context text shown to annotators alongside the datapoint.", - "nullable": true, - "deprecated": true - }, - "contextAsset": { - "allOf": [ - { - "$ref": "#/components/schemas/IAsset" - } - ], - "description": "Optional context media (reference image/audio/video) shown alongside the datapoint.", - "deprecated": true - }, "segments": { "allOf": [ { @@ -55002,29 +54434,6 @@ } } }, - "AuthorizationRelations_ClickHouseAgentCeiling": { - "enum": [ - "None", - "Reader", - "Writer" - ], - "description": "The most an `agent` may do on a `clickhouse_database`, whoever it acts for.\nClickHouseAgentCeiling.None means no agent tuple exists on the database." - }, - "AuthorizationRelations_ClickHouseDatabase": { - "enum": [ - "Reader", - "Writer" - ], - "description": "Relations a customer holds on a `clickhouse_database`, one object per ClickHouse\ndatabase name. `writer` folds into `reader`." - }, - "AuthorizationRelations_ExternalApp": { - "enum": [ - "Admin", - "User", - "Viewer" - ], - "description": "Relations on an `external_app` object — one object per third-party app that federates\non the OIDC `groups` claim. The apps themselves are `ExternalAppId`. The ladder is hierarchical: `admin` folds into `user`, and `user` into `viewer`.\nGrants are direct and, like `Bidder`, are never folded in from platform staff —\nholding platform admin must not confer administration of a separate system." - }, "AuthorizationRelations_Platform": { "enum": [ "Admin", @@ -55036,8 +54445,7 @@ "AuthorizationScope": { "enum": [ "Platform", - "Bidder", - "ExternalApp" + "Bidder" ] }, "Capability": { @@ -55355,15 +54763,6 @@ }, "description": "The request body for dynamic client registration." }, - "ExternalAppId": { - "enum": [ - "ArgoCd", - "Grafana", - "Headscale", - "Poseidon" - ], - "description": " The third-party applications that federate on our OIDC `groups` claim and can therefore\n be administered through a grant here. Each maps to an `external_app` object in the\n authorization graph.\n A closed enum rather than a free-form id on purpose: an arbitrary string would let a typo\nwrite a grant against an object nothing consumes, which looks like access was granted but\nsilently is not. Adding an app is a value here plus a tuple — no model change.This is the app itself; the relation vocabulary defined on these objects is\nAuthorizationRelations.ExternalApp. The Id suffix here keeps the two\ndistinguishable: a file with using static AuthorizationRelations imports that\nnested enum, and identical short names would make every bare mention ambiguous." - }, "GetCapabilityGranteesEndpoint_CursorPagedResultOfOutput": { "required": [ "items" @@ -55406,124 +54805,6 @@ } } }, - "GetClickHouseAccessEndpoint_Member": { - "required": [ - "customer", - "email", - "relation" - ], - "type": "object", - "properties": { - "customer": { - "type": "string", - "format": "uuid" - }, - "email": { - "type": "string" - }, - "relation": { - "$ref": "#/components/schemas/AuthorizationRelations_ClickHouseDatabase" - } - } - }, - "GetClickHouseAccessEndpoint_Output": { - "required": [ - "database", - "members", - "agentCeiling" - ], - "type": "object", - "properties": { - "database": { - "type": "string", - "description": "The ClickHouse database name." - }, - "members": { - "allOf": [ - { - "type": "array", - "items": { - "$ref": "#/components/schemas/GetClickHouseAccessEndpoint_Member" - } - } - ], - "description": "The customers holding a relation on the database." - }, - "agentCeiling": { - "$ref": "#/components/schemas/AuthorizationRelations_ClickHouseAgentCeiling" - } - } - }, - "GetExternalAppRelationMembersEndpoint_CursorPagedResultOfOutput": { - "required": [ - "items" - ], - "type": "object", - "properties": { - "items": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GetExternalAppRelationMembersEndpoint_Output" - } - }, - "nextCursor": { - "type": "string", - "nullable": true - } - }, - "description": "A page of results identified by an opaque cursor rather than an offset. Used where the\nunderlying store pages by continuation token and a total count is unavailable or expensive.\nstring? CursorPagedResult<T>.NextCursor is null on the last page." - }, - "GetExternalAppRelationMembersEndpoint_Output": { - "required": [ - "customer", - "email", - "organizationName", - "organizationId", - "scope", - "app", - "relation", - "grantedAt" - ], - "type": "object", - "properties": { - "customer": { - "type": "string", - "description": "The customer holding the relation.", - "format": "uuid" - }, - "email": { - "type": "string", - "description": "The email address of the customer." - }, - "organizationName": { - "type": "string", - "description": "The name of the customer's active organization." - }, - "organizationId": { - "type": "string", - "description": "The identifier of the customer's active organization." - }, - "scope": { - "allOf": [ - { - "$ref": "#/components/schemas/AuthorizationScope" - } - ], - "description": "The object the relation is on." - }, - "app": { - "$ref": "#/components/schemas/ExternalAppId" - }, - "relation": { - "$ref": "#/components/schemas/AuthorizationRelations_ExternalApp" - }, - "grantedAt": { - "type": "string", - "description": "When the grant was written.", - "format": "date-time" - } - } - }, "GetIamPolicyEndpoint_Output": { "required": [ "bindings", @@ -55724,49 +55005,6 @@ } } }, - "GrantClickHouseRelationEndpoint_Input": { - "required": [ - "customer", - "database", - "relation" - ], - "type": "object", - "properties": { - "customer": { - "type": "string", - "description": "The customer to grant the relation to.", - "format": "uuid" - }, - "database": { - "type": "string", - "description": "The ClickHouse database name." - }, - "relation": { - "$ref": "#/components/schemas/AuthorizationRelations_ClickHouseDatabase" - } - } - }, - "GrantExternalAppRelationEndpoint_Input": { - "required": [ - "customer", - "app", - "relation" - ], - "type": "object", - "properties": { - "customer": { - "type": "string", - "description": "The customer to grant the relation to.", - "format": "uuid" - }, - "app": { - "$ref": "#/components/schemas/ExternalAppId" - }, - "relation": { - "$ref": "#/components/schemas/AuthorizationRelations_ExternalApp" - } - } - }, "GrantPlatformRelationEndpoint_Input": { "required": [ "customer", @@ -56440,49 +55678,6 @@ } } }, - "RevokeClickHouseRelationEndpoint_Input": { - "required": [ - "customer", - "database", - "relation" - ], - "type": "object", - "properties": { - "customer": { - "type": "string", - "description": "The customer to revoke the relation from.", - "format": "uuid" - }, - "database": { - "type": "string", - "description": "The ClickHouse database name." - }, - "relation": { - "$ref": "#/components/schemas/AuthorizationRelations_ClickHouseDatabase" - } - } - }, - "RevokeExternalAppRelationEndpoint_Input": { - "required": [ - "customer", - "app", - "relation" - ], - "type": "object", - "properties": { - "customer": { - "type": "string", - "description": "The customer to revoke the relation from.", - "format": "uuid" - }, - "app": { - "$ref": "#/components/schemas/ExternalAppId" - }, - "relation": { - "$ref": "#/components/schemas/AuthorizationRelations_ExternalApp" - } - } - }, "RevokePlatformRelationEndpoint_Input": { "required": [ "customer", @@ -56519,22 +55714,6 @@ } } }, - "SetClickHouseAgentCeilingEndpoint_Input": { - "required": [ - "database", - "ceiling" - ], - "type": "object", - "properties": { - "database": { - "type": "string", - "description": "The ClickHouse database name." - }, - "ceiling": { - "$ref": "#/components/schemas/AuthorizationRelations_ClickHouseAgentCeiling" - } - } - }, "SetIamPolicyEndpoint_Input": { "required": [ "bindings", @@ -65519,27 +64698,6 @@ "datasetId": { "type": "string" }, - "asset": { - "allOf": [ - { - "$ref": "#/components/schemas/IAsset" - } - ], - "deprecated": true - }, - "context": { - "type": "string", - "nullable": true, - "deprecated": true - }, - "contextAsset": { - "allOf": [ - { - "$ref": "#/components/schemas/IAsset" - } - ], - "deprecated": true - }, "segments": { "type": "array", "items": { @@ -78847,6 +78005,14 @@ } ], "description": "The state of the rapid." + }, + "flag": { + "allOf": [ + { + "$ref": "#/components/schemas/RapidFlag" + } + ], + "description": "Why the rapid was flagged, with live answer counts per group; staff only." } } }, @@ -79067,6 +78233,68 @@ } } }, + "RapidFlag": { + "required": [ + "reason", + "flaggedAt", + "dismissed", + "groups" + ], + "type": "object", + "properties": { + "reason": { + "$ref": "#/components/schemas/RapidFlagReason" + }, + "flaggedAt": { + "type": "string", + "format": "date-time" + }, + "dismissed": { + "type": "boolean" + }, + "groups": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RapidFlag_Group" + } + } + } + }, + "RapidFlag_Group": { + "required": [ + "correct", + "incorrect", + "isLow" + ], + "type": "object", + "properties": { + "language": { + "type": "string", + "nullable": true + }, + "country": { + "type": "string", + "nullable": true + }, + "correct": { + "type": "integer", + "format": "int64" + }, + "incorrect": { + "type": "integer", + "format": "int64" + }, + "isLow": { + "type": "boolean" + } + } + }, + "RapidFlagReason": { + "enum": [ + "LowAccuracy", + "Reports" + ] + }, "RapidModality": { "type": "array", "items": { @@ -79131,9 +78359,14 @@ "type": "boolean", "description": "Whether the validation set should be public." }, + "removeWhenFlagged": { + "type": "boolean", + "description": "Whether a flagged rapid of the set is also removed from serving." + }, "isFlagOverruled": { "type": "boolean", - "description": "Whether flags on validation rapids should be overruled." + "description": "The inverse of removeWhenFlagged, which wins when both are sent.", + "deprecated": true } } }, @@ -79210,10 +78443,8 @@ "tags": [ "Rapidata.Identity.API", "Capabilities", - "ClickHouse", "Client", "Customer", - "ExternalApps", "Iam", "Identity", "Newsletter", diff --git a/openapi/schemas/signal.openapi.json b/openapi/schemas/signal.openapi.json index 4c98b32eca..ae9801e6c3 100644 --- a/openapi/schemas/signal.openapi.json +++ b/openapi/schemas/signal.openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Rapidata Signal API", "description": "The API for the Rapidata Signal service", - "version": "2026.11.26.1400-79c56d4d" + "version": "2026.11.27.1552-1c45faf4" }, "servers": [ { diff --git a/openapi/schemas/translation.openapi.json b/openapi/schemas/translation.openapi.json index f68cdfad60..ca48e051d4 100644 --- a/openapi/schemas/translation.openapi.json +++ b/openapi/schemas/translation.openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Rapidata Translation API", "description": "The API for the Rapidata Translation service", - "version": "2026.11.26.1400-79c56d4d" + "version": "2026.11.27.1552-1c45faf4" }, "servers": [ { diff --git a/openapi/schemas/validation.openapi.json b/openapi/schemas/validation.openapi.json index f33cca6235..b8f55c5da1 100644 --- a/openapi/schemas/validation.openapi.json +++ b/openapi/schemas/validation.openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Rapidata Validation API", "description": "The API for the Rapidata Validation service", - "version": "2026.11.26.1400-79c56d4d" + "version": "2026.11.27.1552-1c45faf4" }, "servers": [ { @@ -599,7 +599,9 @@ "correct_validation_count", "-correct_validation_count", "invalid_validation_count", - "-invalid_validation_count" + "-invalid_validation_count", + "flag", + "-flag" ], "type": "string" } @@ -2001,6 +2003,14 @@ } ], "description": "The state of the rapid." + }, + "flag": { + "allOf": [ + { + "$ref": "#/components/schemas/RapidFlag" + } + ], + "description": "Why the rapid was flagged, with live answer counts per group; staff only." } } }, @@ -3545,6 +3555,68 @@ } } }, + "RapidFlag": { + "required": [ + "reason", + "flaggedAt", + "dismissed", + "groups" + ], + "type": "object", + "properties": { + "reason": { + "$ref": "#/components/schemas/RapidFlagReason" + }, + "flaggedAt": { + "type": "string", + "format": "date-time" + }, + "dismissed": { + "type": "boolean" + }, + "groups": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RapidFlag_Group" + } + } + } + }, + "RapidFlag_Group": { + "required": [ + "correct", + "incorrect", + "isLow" + ], + "type": "object", + "properties": { + "language": { + "type": "string", + "nullable": true + }, + "country": { + "type": "string", + "nullable": true + }, + "correct": { + "type": "integer", + "format": "int64" + }, + "incorrect": { + "type": "integer", + "format": "int64" + }, + "isLow": { + "type": "boolean" + } + } + }, + "RapidFlagReason": { + "enum": [ + "LowAccuracy", + "Reports" + ] + }, "RapidModality": { "type": "array", "items": { @@ -3696,9 +3768,14 @@ "type": "boolean", "description": "Whether the validation set should be public." }, + "removeWhenFlagged": { + "type": "boolean", + "description": "Whether a flagged rapid of the set is also removed from serving." + }, "isFlagOverruled": { "type": "boolean", - "description": "Whether flags on validation rapids should be overruled." + "description": "The inverse of removeWhenFlagged, which wins when both are sent.", + "deprecated": true } } }, diff --git a/src/rapidata/api_client/__init__.py b/src/rapidata/api_client/__init__.py index fed5a5f2f0..4da6058988 100644 --- a/src/rapidata/api_client/__init__.py +++ b/src/rapidata/api_client/__init__.py @@ -37,7 +37,6 @@ "CacheApi": "rapidata.api_client.api.cache_api", "CampaignApi": "rapidata.api_client.api.campaign_api", "CapabilitiesApi": "rapidata.api_client.api.capabilities_api", - "ClickHouseApi": "rapidata.api_client.api.click_house_api", "ClientApi": "rapidata.api_client.api.client_api", "ContextShorteningApi": "rapidata.api_client.api.context_shortening_api", "CustomerApi": "rapidata.api_client.api.customer_api", @@ -47,7 +46,6 @@ "DatasetGroupApi": "rapidata.api_client.api.dataset_group_api", "ExamplesApi": "rapidata.api_client.api.examples_api", "ExperimentApi": "rapidata.api_client.api.experiment_api", - "ExternalAppsApi": "rapidata.api_client.api.external_apps_api", "ExternalAudienceApi": "rapidata.api_client.api.external_audience_api", "ExternalServicePricesApi": "rapidata.api_client.api.external_service_prices_api", "FaucetApi": "rapidata.api_client.api.faucet_api", diff --git a/src/rapidata/api_client/api/__init__.py b/src/rapidata/api_client/api/__init__.py index 3476e19eb4..a8f75e6e63 100644 --- a/src/rapidata/api_client/api/__init__.py +++ b/src/rapidata/api_client/api/__init__.py @@ -11,7 +11,6 @@ from rapidata.api_client.api.cache_api import CacheApi from rapidata.api_client.api.campaign_api import CampaignApi from rapidata.api_client.api.capabilities_api import CapabilitiesApi -from rapidata.api_client.api.click_house_api import ClickHouseApi from rapidata.api_client.api.client_api import ClientApi from rapidata.api_client.api.context_shortening_api import ContextShorteningApi from rapidata.api_client.api.customer_api import CustomerApi @@ -21,7 +20,6 @@ from rapidata.api_client.api.dataset_group_api import DatasetGroupApi from rapidata.api_client.api.examples_api import ExamplesApi from rapidata.api_client.api.experiment_api import ExperimentApi -from rapidata.api_client.api.external_apps_api import ExternalAppsApi from rapidata.api_client.api.external_audience_api import ExternalAudienceApi from rapidata.api_client.api.external_service_prices_api import ExternalServicePricesApi from rapidata.api_client.api.faucet_api import FaucetApi diff --git a/src/rapidata/api_client/api/datapoints_api.py b/src/rapidata/api_client/api/datapoints_api.py index a4f27d09b6..f78d21a3cc 100644 --- a/src/rapidata/api_client/api/datapoints_api.py +++ b/src/rapidata/api_client/api/datapoints_api.py @@ -597,7 +597,7 @@ def dataset_dataset_id_datapoint_post( ) -> CreateDatapointEndpointOutput: """Creates a new datapoint in the specified dataset. - Send either segments or the legacy fields, which fill the default segments. Returns 400 when the content does not fit the dataset's schema. + Returns 400 when the content does not fit the dataset's schema. :param dataset_id: The id of the dataset to create the datapoint in. (required) :type dataset_id: str @@ -671,7 +671,7 @@ def dataset_dataset_id_datapoint_post_with_http_info( ) -> ApiResponse[CreateDatapointEndpointOutput]: """Creates a new datapoint in the specified dataset. - Send either segments or the legacy fields, which fill the default segments. Returns 400 when the content does not fit the dataset's schema. + Returns 400 when the content does not fit the dataset's schema. :param dataset_id: The id of the dataset to create the datapoint in. (required) :type dataset_id: str @@ -745,7 +745,7 @@ def dataset_dataset_id_datapoint_post_without_preload_content( ) -> RESTResponseType: """Creates a new datapoint in the specified dataset. - Send either segments or the legacy fields, which fill the default segments. Returns 400 when the content does not fit the dataset's schema. + Returns 400 when the content does not fit the dataset's schema. :param dataset_id: The id of the dataset to create the datapoint in. (required) :type dataset_id: str diff --git a/src/rapidata/api_client/api/dataset_group_api.py b/src/rapidata/api_client/api/dataset_group_api.py index c9eb33f49f..fb2a1c5a0a 100644 --- a/src/rapidata/api_client/api/dataset_group_api.py +++ b/src/rapidata/api_client/api/dataset_group_api.py @@ -56,7 +56,7 @@ def dataset_dataset_id_group_post( ) -> None: """Creates a new dataset group. - Send either segments or the legacy fields, which fill the default segments. Returns 400 when the content does not fit the dataset's schema. + Returns 400 when the content does not fit the dataset's schema. :param dataset_id: The id of the dataset to create the group for. (required) :type dataset_id: str @@ -130,7 +130,7 @@ def dataset_dataset_id_group_post_with_http_info( ) -> ApiResponse[None]: """Creates a new dataset group. - Send either segments or the legacy fields, which fill the default segments. Returns 400 when the content does not fit the dataset's schema. + Returns 400 when the content does not fit the dataset's schema. :param dataset_id: The id of the dataset to create the group for. (required) :type dataset_id: str @@ -204,7 +204,7 @@ def dataset_dataset_id_group_post_without_preload_content( ) -> RESTResponseType: """Creates a new dataset group. - Send either segments or the legacy fields, which fill the default segments. Returns 400 when the content does not fit the dataset's schema. + Returns 400 when the content does not fit the dataset's schema. :param dataset_id: The id of the dataset to create the group for. (required) :type dataset_id: str diff --git a/src/rapidata/api_client/configuration.py b/src/rapidata/api_client/configuration.py index ff49a352c0..b19cea2a64 100644 --- a/src/rapidata/api_client/configuration.py +++ b/src/rapidata/api_client/configuration.py @@ -382,7 +382,7 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 2026.11.26.1400-79c56d4d\n"\ + "Version of the API: 2026.11.27.1552-1c45faf4\n"\ "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/src/rapidata/api_client/models/authorization_scope.py b/src/rapidata/api_client/models/authorization_scope.py index ecf6826b36..36fbc52aad 100644 --- a/src/rapidata/api_client/models/authorization_scope.py +++ b/src/rapidata/api_client/models/authorization_scope.py @@ -26,7 +26,6 @@ class AuthorizationScope(str, Enum): """ PLATFORM = 'Platform' BIDDER = 'Bidder' - EXTERNALAPP = 'ExternalApp' @classmethod def from_json(cls, json_str: str) -> Self: diff --git a/src/rapidata/api_client/models/create_datapoint_endpoint_input.py b/src/rapidata/api_client/models/create_datapoint_endpoint_input.py index 4c06e7d8e9..831473fe28 100644 --- a/src/rapidata/api_client/models/create_datapoint_endpoint_input.py +++ b/src/rapidata/api_client/models/create_datapoint_endpoint_input.py @@ -27,7 +27,7 @@ class CreateDatapointEndpointInput(LazyValidatedModel): """ The body request for creating a new datapoint. """ # noqa: E501 - segments: Optional[List[DatasetSegmentInput]] = None + segments: List[DatasetSegmentInput] sort_index: Optional[StrictInt] = Field(default=None, description="The sort index represents the order of the datapoint in the dataset.", alias="sortIndex") group: Optional[StrictStr] = Field(default=None, description="The group a datapoint belongs to.") private_metadata: Optional[Dict[str, StrictStr]] = Field(default=None, description="Private metadata for internal tracking. Not displayed to users.", alias="privateMetadata") @@ -75,11 +75,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_segments: _items.append(_item_segments.to_dict()) _dict['segments'] = _items - # set to None if segments (nullable) is None - # and model_fields_set contains the field - if self.segments is None and "segments" in self.model_fields_set: - _dict['segments'] = None - # set to None if sort_index (nullable) is None # and model_fields_set contains the field if self.sort_index is None and "sort_index" in self.model_fields_set: diff --git a/src/rapidata/api_client/models/create_dataset_group_endpoint_input.py b/src/rapidata/api_client/models/create_dataset_group_endpoint_input.py index c3a395dae1..9874204a78 100644 --- a/src/rapidata/api_client/models/create_dataset_group_endpoint_input.py +++ b/src/rapidata/api_client/models/create_dataset_group_endpoint_input.py @@ -16,7 +16,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional +from typing import Any, ClassVar, Dict, List from rapidata.api_client.models.dataset_segment_input import DatasetSegmentInput from pydantic import ValidationError from rapidata.api_client.lazy_model import LazyValidatedModel @@ -28,7 +28,7 @@ class CreateDatasetGroupEndpointInput(LazyValidatedModel): CreateDatasetGroupEndpointInput """ # noqa: E501 group: StrictStr = Field(description="The name of the group.") - segments: Optional[List[DatasetSegmentInput]] = None + segments: List[DatasetSegmentInput] __properties: ClassVar[List[str]] = ["group", "segments"] # model_config is inherited from LazyValidatedModel @@ -73,11 +73,6 @@ def to_dict(self) -> Dict[str, Any]: if _item_segments: _items.append(_item_segments.to_dict()) _dict['segments'] = _items - # set to None if segments (nullable) is None - # and model_fields_set contains the field - if self.segments is None and "segments" in self.model_fields_set: - _dict['segments'] = None - return _dict @classmethod diff --git a/src/rapidata/api_client/models/get_validation_rapids_endpoint_output.py b/src/rapidata/api_client/models/get_validation_rapids_endpoint_output.py index e12690e908..2eb8a91b7b 100644 --- a/src/rapidata/api_client/models/get_validation_rapids_endpoint_output.py +++ b/src/rapidata/api_client/models/get_validation_rapids_endpoint_output.py @@ -20,6 +20,7 @@ from rapidata.api_client.models.i_asset import IAsset from rapidata.api_client.models.i_rapid_payload import IRapidPayload from rapidata.api_client.models.i_validation_truth import IValidationTruth +from rapidata.api_client.models.rapid_flag import RapidFlag from rapidata.api_client.models.rapid_state import RapidState from pydantic import ValidationError from rapidata.api_client.lazy_model import LazyValidatedModel @@ -42,7 +43,8 @@ class GetValidationRapidsEndpointOutput(LazyValidatedModel): explanation: Optional[StrictStr] = Field(default=None, description="The explanation shown when users answer incorrectly.") random_correct_probability: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The probability of a random correct answer.", alias="randomCorrectProbability") state: RapidState = Field(description="The state of the rapid.") - __properties: ClassVar[List[str]] = ["id", "type", "asset", "truth", "payload", "context", "contextAsset", "correctValidationCount", "invalidValidationCount", "explanation", "randomCorrectProbability", "state"] + flag: Optional[RapidFlag] = Field(default=None, description="Why the rapid was flagged, with live answer counts per group; staff only.") + __properties: ClassVar[List[str]] = ["id", "type", "asset", "truth", "payload", "context", "contextAsset", "correctValidationCount", "invalidValidationCount", "explanation", "randomCorrectProbability", "state", "flag"] # model_config is inherited from LazyValidatedModel @@ -91,6 +93,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of context_asset if self.context_asset: _dict['contextAsset'] = self.context_asset.to_dict() + # override the default output from pydantic by calling `to_dict()` of flag + if self.flag: + _dict['flag'] = self.flag.to_dict() # set to None if context (nullable) is None # and model_fields_set contains the field if self.context is None and "context" in self.model_fields_set: @@ -129,7 +134,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "invalidValidationCount": obj.get("invalidValidationCount"), "explanation": obj.get("explanation"), "randomCorrectProbability": obj.get("randomCorrectProbability"), - "state": obj.get("state") + "state": obj.get("state"), + "flag": RapidFlag.from_dict(obj["flag"]) if obj.get("flag") is not None else None } try: _obj = cls.model_validate(_data) diff --git a/src/rapidata/api_client/models/rapid_flag.py b/src/rapidata/api_client/models/rapid_flag.py new file mode 100644 index 0000000000..e283cabfdb --- /dev/null +++ b/src/rapidata/api_client/models/rapid_flag.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + Rapidata Asset API + + The API for the Rapidata Asset service + + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List +from rapidata.api_client.models.rapid_flag_group import RapidFlagGroup +from rapidata.api_client.models.rapid_flag_reason import RapidFlagReason +from pydantic import ValidationError +from rapidata.api_client.lazy_model import LazyValidatedModel +from typing import Optional, Set +from typing_extensions import Self + +class RapidFlag(LazyValidatedModel): + """ + RapidFlag + """ # noqa: E501 + reason: RapidFlagReason + flagged_at: datetime = Field(alias="flaggedAt") + dismissed: StrictBool + groups: List[RapidFlagGroup] + __properties: ClassVar[List[str]] = ["reason", "flaggedAt", "dismissed", "groups"] + + # model_config is inherited from LazyValidatedModel + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of RapidFlag from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in groups (list) + _items = [] + if self.groups: + for _item_groups in self.groups: + if _item_groups: + _items.append(_item_groups.to_dict()) + _dict['groups'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of RapidFlag from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _data = { + "reason": obj.get("reason"), + "flaggedAt": obj.get("flaggedAt"), + "dismissed": obj.get("dismissed"), + "groups": [RapidFlagGroup.from_dict(_item) for _item in obj["groups"]] if obj.get("groups") is not None else None + } + try: + _obj = cls.model_validate(_data) + except ValidationError as _val_error: + _obj = cls._lazy_construct(_data, _val_error) + return _obj + + diff --git a/src/rapidata/api_client/models/rapid_flag_group.py b/src/rapidata/api_client/models/rapid_flag_group.py new file mode 100644 index 0000000000..3e69f58641 --- /dev/null +++ b/src/rapidata/api_client/models/rapid_flag_group.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Rapidata Asset API + + The API for the Rapidata Asset service + + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from pydantic import ValidationError +from rapidata.api_client.lazy_model import LazyValidatedModel +from typing import Optional, Set +from typing_extensions import Self + +class RapidFlagGroup(LazyValidatedModel): + """ + RapidFlagGroup + """ # noqa: E501 + language: Optional[StrictStr] = None + country: Optional[StrictStr] = None + correct: StrictInt + incorrect: StrictInt + is_low: StrictBool = Field(alias="isLow") + __properties: ClassVar[List[str]] = ["language", "country", "correct", "incorrect", "isLow"] + + # model_config is inherited from LazyValidatedModel + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of RapidFlagGroup from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if language (nullable) is None + # and model_fields_set contains the field + if self.language is None and "language" in self.model_fields_set: + _dict['language'] = None + + # set to None if country (nullable) is None + # and model_fields_set contains the field + if self.country is None and "country" in self.model_fields_set: + _dict['country'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of RapidFlagGroup from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _data = { + "language": obj.get("language"), + "country": obj.get("country"), + "correct": obj.get("correct"), + "incorrect": obj.get("incorrect"), + "isLow": obj.get("isLow") + } + try: + _obj = cls.model_validate(_data) + except ValidationError as _val_error: + _obj = cls._lazy_construct(_data, _val_error) + return _obj + + diff --git a/src/rapidata/api_client/models/rapid_flag_reason.py b/src/rapidata/api_client/models/rapid_flag_reason.py new file mode 100644 index 0000000000..9677efa586 --- /dev/null +++ b/src/rapidata/api_client/models/rapid_flag_reason.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + Rapidata Asset API + + The API for the Rapidata Asset service + + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class RapidFlagReason(str, Enum): + """ + RapidFlagReason + """ + + """ + allowed enum values + """ + LOWACCURACY = 'LowAccuracy' + REPORTS = 'Reports' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of RapidFlagReason from a JSON string""" + return cls(json.loads(json_str)) + + @classmethod + def _missing_(cls, value): + # Values the server adds after this release parse instead of failing the response. + if not isinstance(value, str): + return None + member = str.__new__(cls, value) + member._name_ = value.upper() + member._value_ = value + return cls._value2member_map_.setdefault(value, member) + diff --git a/src/rapidata/api_client/models/update_validation_set_endpoint_input.py b/src/rapidata/api_client/models/update_validation_set_endpoint_input.py index 67878fd193..e663c23204 100644 --- a/src/rapidata/api_client/models/update_validation_set_endpoint_input.py +++ b/src/rapidata/api_client/models/update_validation_set_endpoint_input.py @@ -30,8 +30,8 @@ class UpdateValidationSetEndpointInput(LazyValidatedModel): dimensions: Optional[List[StrictStr]] = None should_alert: Optional[StrictBool] = Field(default=None, description="Whether users should be alerted if they answer incorrectly.", alias="shouldAlert") is_public: Optional[StrictBool] = Field(default=None, description="Whether the validation set should be public.", alias="isPublic") - is_flag_overruled: Optional[StrictBool] = Field(default=None, description="Whether flags on validation rapids should be overruled.", alias="isFlagOverruled") - __properties: ClassVar[List[str]] = ["name", "dimensions", "shouldAlert", "isPublic", "isFlagOverruled"] + remove_when_flagged: Optional[StrictBool] = Field(default=None, description="Whether a flagged rapid of the set is also removed from serving.", alias="removeWhenFlagged") + __properties: ClassVar[List[str]] = ["name", "dimensions", "shouldAlert", "isPublic", "removeWhenFlagged"] # model_config is inherited from LazyValidatedModel @@ -84,7 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "dimensions": obj.get("dimensions"), "shouldAlert": obj.get("shouldAlert"), "isPublic": obj.get("isPublic"), - "isFlagOverruled": obj.get("isFlagOverruled") + "removeWhenFlagged": obj.get("removeWhenFlagged") } try: _obj = cls.model_validate(_data) diff --git a/src/rapidata/api_client_README.md b/src/rapidata/api_client_README.md index 2a3f2111f0..9358a63053 100644 --- a/src/rapidata/api_client_README.md +++ b/src/rapidata/api_client_README.md @@ -3,7 +3,7 @@ The API for the Rapidata Asset service The `rapidata.api_client` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 2026.11.26.1400-79c56d4d +- API version: 2026.11.27.1552-1c45faf4 - Package version: 1.0.0 - Generator version: 7.23.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen @@ -207,10 +207,6 @@ Class | Method | HTTP request | Description *CapabilitiesApi* | [**organizations_organization_id_capabilities_capability_delete**](rapidata/api_client/docs/CapabilitiesApi.md#organizations_organization_id_capabilities_capability_delete) | **DELETE** /organizations/{organizationId}/capabilities/{capability} | Revokes an organization's capability grant. *CapabilitiesApi* | [**organizations_organization_id_capabilities_capability_put**](rapidata/api_client/docs/CapabilitiesApi.md#organizations_organization_id_capabilities_capability_put) | **PUT** /organizations/{organizationId}/capabilities/{capability} | Grants a capability to an organization. *CapabilitiesApi* | [**organizations_organization_id_capabilities_get**](rapidata/api_client/docs/CapabilitiesApi.md#organizations_organization_id_capabilities_get) | **GET** /organizations/{organizationId}/capabilities | Lists the capabilities granted to an organization. -*ClickHouseApi* | [**authorization_relations_clickhouse_agent_put**](rapidata/api_client/docs/ClickHouseApi.md#authorization_relations_clickhouse_agent_put) | **PUT** /authorization/relations/clickhouse/agent | Sets the agent ceiling on a ClickHouse database; an agent gets the lesser of this and its owner's access. -*ClickHouseApi* | [**authorization_relations_clickhouse_delete**](rapidata/api_client/docs/ClickHouseApi.md#authorization_relations_clickhouse_delete) | **DELETE** /authorization/relations/clickhouse | Revokes a relation on a ClickHouse database from a customer. -*ClickHouseApi* | [**authorization_relations_clickhouse_get**](rapidata/api_client/docs/ClickHouseApi.md#authorization_relations_clickhouse_get) | **GET** /authorization/relations/clickhouse | Lists every grantable ClickHouse database with its members and agent ceiling. -*ClickHouseApi* | [**authorization_relations_clickhouse_put**](rapidata/api_client/docs/ClickHouseApi.md#authorization_relations_clickhouse_put) | **PUT** /authorization/relations/clickhouse | Sets a customer's access to a ClickHouse database to exactly the given relation. *ClientApi* | [**client_client_id_delete**](rapidata/api_client/docs/ClientApi.md#client_client_id_delete) | **DELETE** /client/{clientId} | Deletes a client. *ClientApi* | [**client_post**](rapidata/api_client/docs/ClientApi.md#client_post) | **POST** /client | Creates a new client for the current customer. *ClientApi* | [**client_register_post**](rapidata/api_client/docs/ClientApi.md#client_register_post) | **POST** /client/register | Registers a new client using the OpenID Connect Dynamic Client Registration protocol. @@ -246,9 +242,6 @@ Class | Method | HTTP request | Description *ExperimentApi* | [**campaign_experiments_experiment_id_get**](rapidata/api_client/docs/ExperimentApi.md#campaign_experiments_experiment_id_get) | **GET** /campaign/experiments/{experimentId} | Returns the experiment with the given key. *ExperimentApi* | [**campaign_experiments_get**](rapidata/api_client/docs/ExperimentApi.md#campaign_experiments_get) | **GET** /campaign/experiments | Returns all experiments, newest first. *ExperimentApi* | [**campaign_experiments_post**](rapidata/api_client/docs/ExperimentApi.md#campaign_experiments_post) | **POST** /campaign/experiments | Creates an immutable experiment that applies to every campaign referencing it. -*ExternalAppsApi* | [**authorization_relations_external_app_delete**](rapidata/api_client/docs/ExternalAppsApi.md#authorization_relations_external_app_delete) | **DELETE** /authorization/relations/external-app | Revokes an external app relation from a customer. -*ExternalAppsApi* | [**authorization_relations_external_app_get**](rapidata/api_client/docs/ExternalAppsApi.md#authorization_relations_external_app_get) | **GET** /authorization/relations/external-app | Lists the customers holding relations on one app, one cursor page at a time. -*ExternalAppsApi* | [**authorization_relations_external_app_put**](rapidata/api_client/docs/ExternalAppsApi.md#authorization_relations_external_app_put) | **PUT** /authorization/relations/external-app | Grants an external app relation to a customer. *ExternalAudienceApi* | [**campaign_external_audiences_get**](rapidata/api_client/docs/ExternalAudienceApi.md#campaign_external_audiences_get) | **GET** /campaign/external-audiences | Queries the cached external audiences available for targeting. *ExternalAudienceApi* | [**campaign_external_audiences_sync_post**](rapidata/api_client/docs/ExternalAudienceApi.md#campaign_external_audiences_sync_post) | **POST** /campaign/external-audiences/sync | Enqueues a background job that synchronises external audiences with the cache. *ExternalServicePricesApi* | [**billing_external_service_prices_post**](rapidata/api_client/docs/ExternalServicePricesApi.md#billing_external_service_prices_post) | **POST** /billing/external-service-prices | Creates a rate-card price for an external service. @@ -515,9 +508,6 @@ Class | Method | HTTP request | Description - [AudienceStateRecalculationPhase](rapidata/api_client/docs/AudienceStateRecalculationPhase.md) - [AudienceStateRecalculationState](rapidata/api_client/docs/AudienceStateRecalculationState.md) - [AudienceStatus](rapidata/api_client/docs/AudienceStatus.md) - - [AuthorizationRelationsClickHouseAgentCeiling](rapidata/api_client/docs/AuthorizationRelationsClickHouseAgentCeiling.md) - - [AuthorizationRelationsClickHouseDatabase](rapidata/api_client/docs/AuthorizationRelationsClickHouseDatabase.md) - - [AuthorizationRelationsExternalApp](rapidata/api_client/docs/AuthorizationRelationsExternalApp.md) - [AuthorizationRelationsPlatform](rapidata/api_client/docs/AuthorizationRelationsPlatform.md) - [AuthorizationScope](rapidata/api_client/docs/AuthorizationScope.md) - [BatchUploadStatus](rapidata/api_client/docs/BatchUploadStatus.md) @@ -672,7 +662,6 @@ Class | Method | HTTP request | Description - [ExistingAssetInput](rapidata/api_client/docs/ExistingAssetInput.md) - [Experiment](rapidata/api_client/docs/Experiment.md) - [ExperimentSplit](rapidata/api_client/docs/ExperimentSplit.md) - - [ExternalAppId](rapidata/api_client/docs/ExternalAppId.md) - [ExternalServiceKind](rapidata/api_client/docs/ExternalServiceKind.md) - [FaucetInputBindingInput](rapidata/api_client/docs/FaucetInputBindingInput.md) - [FaucetInputBindingOutput](rapidata/api_client/docs/FaucetInputBindingOutput.md) @@ -737,8 +726,6 @@ Class | Method | HTTP request | Description - [GetCapabilityGranteesEndpointCursorPagedResultOfOutput](rapidata/api_client/docs/GetCapabilityGranteesEndpointCursorPagedResultOfOutput.md) - [GetCapabilityGranteesEndpointOutput](rapidata/api_client/docs/GetCapabilityGranteesEndpointOutput.md) - [GetCheckoutSessionEndpointOutput](rapidata/api_client/docs/GetCheckoutSessionEndpointOutput.md) - - [GetClickHouseAccessEndpointMember](rapidata/api_client/docs/GetClickHouseAccessEndpointMember.md) - - [GetClickHouseAccessEndpointOutput](rapidata/api_client/docs/GetClickHouseAccessEndpointOutput.md) - [GetCompatibleValidationSetsEndpointOutput](rapidata/api_client/docs/GetCompatibleValidationSetsEndpointOutput.md) - [GetCompatibleValidationSetsEndpointValidationSetOutput](rapidata/api_client/docs/GetCompatibleValidationSetsEndpointValidationSetOutput.md) - [GetCompletionTimeHistogramEndpointOutput](rapidata/api_client/docs/GetCompletionTimeHistogramEndpointOutput.md) @@ -748,8 +735,6 @@ Class | Method | HTTP request | Description - [GetDatapointEndpointOutput](rapidata/api_client/docs/GetDatapointEndpointOutput.md) - [GetDatasetByIdEndpointOutput](rapidata/api_client/docs/GetDatasetByIdEndpointOutput.md) - [GetDatasetProgressEndpointOutput](rapidata/api_client/docs/GetDatasetProgressEndpointOutput.md) - - [GetExternalAppRelationMembersEndpointCursorPagedResultOfOutput](rapidata/api_client/docs/GetExternalAppRelationMembersEndpointCursorPagedResultOfOutput.md) - - [GetExternalAppRelationMembersEndpointOutput](rapidata/api_client/docs/GetExternalAppRelationMembersEndpointOutput.md) - [GetFailedDatapointsEndpointDatapoint](rapidata/api_client/docs/GetFailedDatapointsEndpointDatapoint.md) - [GetFailedDatapointsEndpointOutput](rapidata/api_client/docs/GetFailedDatapointsEndpointOutput.md) - [GetFastBidMultiplierEndpointOutput](rapidata/api_client/docs/GetFastBidMultiplierEndpointOutput.md) @@ -852,8 +837,6 @@ Class | Method | HTTP request | Description - [GetVolumeDiscountsEndpointOutputVolumeDiscountItem](rapidata/api_client/docs/GetVolumeDiscountsEndpointOutputVolumeDiscountItem.md) - [GoogleOneTapLoginEndpointInput](rapidata/api_client/docs/GoogleOneTapLoginEndpointInput.md) - [GoogleOneTapLoginEndpointOutput](rapidata/api_client/docs/GoogleOneTapLoginEndpointOutput.md) - - [GrantClickHouseRelationEndpointInput](rapidata/api_client/docs/GrantClickHouseRelationEndpointInput.md) - - [GrantExternalAppRelationEndpointInput](rapidata/api_client/docs/GrantExternalAppRelationEndpointInput.md) - [GrantPlatformRelationEndpointInput](rapidata/api_client/docs/GrantPlatformRelationEndpointInput.md) - [GrantVoucherEndpointInput](rapidata/api_client/docs/GrantVoucherEndpointInput.md) - [GrantVoucherEndpointOutput](rapidata/api_client/docs/GrantVoucherEndpointOutput.md) @@ -1362,6 +1345,9 @@ Class | Method | HTTP request | Description - [RapidBinding](rapidata/api_client/docs/RapidBinding.md) - [RapidBindings](rapidata/api_client/docs/RapidBindings.md) - [RapidContextProjection](rapidata/api_client/docs/RapidContextProjection.md) + - [RapidFlag](rapidata/api_client/docs/RapidFlag.md) + - [RapidFlagGroup](rapidata/api_client/docs/RapidFlagGroup.md) + - [RapidFlagReason](rapidata/api_client/docs/RapidFlagReason.md) - [RapidIssue](rapidata/api_client/docs/RapidIssue.md) - [RapidState](rapidata/api_client/docs/RapidState.md) - [RatingGrouping](rapidata/api_client/docs/RatingGrouping.md) @@ -1386,8 +1372,6 @@ Class | Method | HTTP request | Description - [ReviewTaskSetupEndpointInputDatapoint](rapidata/api_client/docs/ReviewTaskSetupEndpointInputDatapoint.md) - [ReviewTaskSetupEndpointOutput](rapidata/api_client/docs/ReviewTaskSetupEndpointOutput.md) - [ReviewTaskSetupEndpointOutputFinding](rapidata/api_client/docs/ReviewTaskSetupEndpointOutputFinding.md) - - [RevokeClickHouseRelationEndpointInput](rapidata/api_client/docs/RevokeClickHouseRelationEndpointInput.md) - - [RevokeExternalAppRelationEndpointInput](rapidata/api_client/docs/RevokeExternalAppRelationEndpointInput.md) - [RevokePlatformRelationEndpointInput](rapidata/api_client/docs/RevokePlatformRelationEndpointInput.md) - [RunJobDefinitionEndpointCostWarning](rapidata/api_client/docs/RunJobDefinitionEndpointCostWarning.md) - [RunJobDefinitionEndpointInput](rapidata/api_client/docs/RunJobDefinitionEndpointInput.md) @@ -1406,7 +1390,6 @@ Class | Method | HTTP request | Description - [SearchReplicateModelsEndpointOutput](rapidata/api_client/docs/SearchReplicateModelsEndpointOutput.md) - [SegmentTextLanguage](rapidata/api_client/docs/SegmentTextLanguage.md) - [SendSurveyEndpointInput](rapidata/api_client/docs/SendSurveyEndpointInput.md) - - [SetClickHouseAgentCeilingEndpointInput](rapidata/api_client/docs/SetClickHouseAgentCeilingEndpointInput.md) - [SetFastBidMultiplierEndpointInput](rapidata/api_client/docs/SetFastBidMultiplierEndpointInput.md) - [SetFastBidMultiplierEndpointOutput](rapidata/api_client/docs/SetFastBidMultiplierEndpointOutput.md) - [SetIamPolicyEndpointInput](rapidata/api_client/docs/SetIamPolicyEndpointInput.md)