Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 67 additions & 23 deletions apps/api/src/__snapshots__/openapi-snapshot.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1898,7 +1898,6 @@ exports[`OpenAPI spec snapshot > matches the committed snapshot 1`] = `
"deleting",
"deleted",
"restoring",
"restored",
],
"type": "string",
},
Expand Down Expand Up @@ -1929,13 +1928,6 @@ exports[`OpenAPI spec snapshot > matches the committed snapshot 1`] = `
],
"type": "object",
},
"restoreCompletedAt": {
"format": "date-time",
"type": [
"string",
"null",
],
},
"restoreRequestedAt": {
"format": "date-time",
"type": [
Expand Down Expand Up @@ -2394,7 +2386,6 @@ exports[`OpenAPI spec snapshot > matches the committed snapshot 1`] = `
"deleting",
"deleted",
"restoring",
"restored",
],
"type": "string",
},
Expand Down Expand Up @@ -2425,13 +2416,6 @@ exports[`OpenAPI spec snapshot > matches the committed snapshot 1`] = `
],
"type": "object",
},
"restoreCompletedAt": {
"format": "date-time",
"type": [
"string",
"null",
],
},
"restoreRequestedAt": {
"format": "date-time",
"type": [
Expand Down Expand Up @@ -4160,6 +4144,9 @@ exports[`OpenAPI spec snapshot > matches the committed snapshot 1`] = `
},
"type": "array",
},
"lastDeletionOperationId": {
"type": "string",
},
"maxIterations": {
"type": "number",
},
Expand Down Expand Up @@ -4780,13 +4767,37 @@ exports[`OpenAPI spec snapshot > matches the committed snapshot 1`] = `
"rawChatUrl": {
"type": "string",
},
"reportPublicationIds": {
"items": {
"type": "string",
},
"type": "array",
},
"reportPublicationVersion": {
"minimum": 0,
"type": "integer",
},
"reportTemplateIds": {
"items": {
"minLength": 1,
"type": "string",
},
"type": "array",
},
"reportsTriggerCompletedAt": {
"format": "date-time",
"type": [
"string",
"null",
],
},
"reportsTriggeredAt": {
"format": "date-time",
"type": [
"string",
"null",
],
},
"resources": {
"items": {
"$ref": "#/components/schemas/ResourceRunOutcome",
Expand Down Expand Up @@ -5248,6 +5259,9 @@ exports[`OpenAPI spec snapshot > matches the committed snapshot 1`] = `
"requestId": {
"type": "string",
},
"runId": {
"type": "string",
},
},
"required": [
"requestId",
Expand Down Expand Up @@ -7225,7 +7239,7 @@ exports[`OpenAPI spec snapshot > matches the committed snapshot 1`] = `
"description": "Experiment not found",
},
"409": {
"description": "An incompatible Experiment mutation is active",
"description": "Experiment or exact member coding, handlers, reports or publication is nonterminal, or an incompatible mutation is active",
},
},
"summary": "Start or resume cascading Experiment deletion",
Expand Down Expand Up @@ -7720,7 +7734,14 @@ exports[`OpenAPI spec snapshot > matches the committed snapshot 1`] = `
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ExperimentLifecycleResponse",
"anyOf": [
{
"$ref": "#/components/schemas/ExperimentLifecycleResponse",
},
{
"$ref": "#/components/schemas/ExperimentResponse",
},
],
},
},
},
Expand All @@ -7730,7 +7751,7 @@ exports[`OpenAPI spec snapshot > matches the committed snapshot 1`] = `
"description": "Experiment not found",
},
"409": {
"description": "Experiment has no lifecycle operation",
"description": "Deleted Experiment has no recoverable operation or a conflicting intent won a repair race",
},
},
"summary": "Get and repair Experiment lifecycle progress",
Expand Down Expand Up @@ -7917,6 +7938,7 @@ exports[`OpenAPI spec snapshot > matches the committed snapshot 1`] = `
},
"/api/v1/experiments/{id}/restore": {
"post": {
"description": "Visibility-only restoration preserves exact attempts and results. Returns the normal Experiment when complete or already active; 202 progress only while pending.",
"parameters": [
{
"in": "path",
Expand All @@ -7941,6 +7963,16 @@ exports[`OpenAPI spec snapshot > matches the committed snapshot 1`] = `
},
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ExperimentResponse",
},
},
},
"description": "Success",
},
"202": {
"content": {
"application/json": {
Expand All @@ -7949,13 +7981,13 @@ exports[`OpenAPI spec snapshot > matches the committed snapshot 1`] = `
},
},
},
"description": "Success",
"description": "Restore cascade is pending",
},
"404": {
"description": "Experiment not found",
},
"409": {
"description": "Experiment is not deleted or another intent is active",
"description": "Conflicting lifecycle/publication intent or invalid recoverability",
},
},
"summary": "Start or resume cascading Experiment restore",
Expand Down Expand Up @@ -11031,6 +11063,9 @@ exports[`OpenAPI spec snapshot > matches the committed snapshot 1`] = `
"404": {
"description": "Run or template not found",
},
"409": {
"description": "Request attempt changed, was deleted, or its Experiment has a lifecycle operation",
},
},
"summary": "Create report",
"tags": [
Expand Down Expand Up @@ -11066,6 +11101,9 @@ exports[`OpenAPI spec snapshot > matches the committed snapshot 1`] = `
"400": {
"description": "Invalid input",
},
"409": {
"description": "A request attempt changed, was deleted, or its Experiment has a lifecycle operation",
},
},
"summary": "Bulk create reports",
"tags": [
Expand Down Expand Up @@ -11171,6 +11209,9 @@ exports[`OpenAPI spec snapshot > matches the committed snapshot 1`] = `
"400": {
"description": "Invalid input",
},
"409": {
"description": "A request attempt changed, was deleted, or its Experiment has a lifecycle operation",
},
},
"summary": "Bulk trigger reports",
"tags": [
Expand Down Expand Up @@ -11221,6 +11262,9 @@ exports[`OpenAPI spec snapshot > matches the committed snapshot 1`] = `
"404": {
"description": "Run not found",
},
"409": {
"description": "Exact run ID changed, request was deleted, or Experiment lifecycle conflicts with publication",
},
},
"summary": "Trigger reports",
"tags": [
Expand Down Expand Up @@ -12014,7 +12058,7 @@ exports[`OpenAPI spec snapshot > matches the committed snapshot 1`] = `
"description": "Success",
},
"409": {
"description": "Deletion spans Experiments or membership changed",
"description": "Nonterminal coding/post-processing/report work, deletion spans Experiments, or concurrent mutation",
},
},
"summary": "Bulk soft-delete requests",
Expand Down Expand Up @@ -12476,7 +12520,7 @@ exports[`OpenAPI spec snapshot > matches the committed snapshot 1`] = `
"description": "Not found",
},
"409": {
"description": "Membership changed",
"description": "Nonterminal coding/post-processing/report work or concurrent mutation",
},
"410": {
"description": "Already deleted",
Expand Down
Loading
Loading