From 708f5015d8c0a7b87d7f682755305e3714cf869b Mon Sep 17 00:00:00 2001 From: "fingerprint-dx-team-actions-runner[bot]" <197604345+fingerprint-dx-team-actions-runner[bot]@users.noreply.github.com> Date: Thu, 19 Nov 2026 20:11:10 +0000 Subject: [PATCH 1/3] chore: sync OpenAPI schema --- .../{LabelsEventError.yaml => LabelSubmissionError.yaml} | 2 +- ...LabelsStatus.yaml => LabelSubmissionEventOutcome.yaml} | 0 ...abelsRequest.yaml => LabelSubmissionEventRequest.yaml} | 2 +- ...abelsResponse.yaml => LabelSubmissionEventResult.yaml} | 4 ++-- .../{LabelsEventLabel.yaml => LabelSubmissionLabel.yaml} | 0 schemas/paths/labels.yaml | 8 ++++---- 6 files changed, 8 insertions(+), 8 deletions(-) rename schemas/components/schemas/{LabelsEventError.yaml => LabelSubmissionError.yaml} (67%) rename schemas/components/schemas/{LabelsStatus.yaml => LabelSubmissionEventOutcome.yaml} (100%) rename schemas/components/schemas/{LabelsRequest.yaml => LabelSubmissionEventRequest.yaml} (92%) rename schemas/components/schemas/{LabelsResponse.yaml => LabelSubmissionEventResult.yaml} (89%) rename schemas/components/schemas/{LabelsEventLabel.yaml => LabelSubmissionLabel.yaml} (100%) diff --git a/schemas/components/schemas/LabelsEventError.yaml b/schemas/components/schemas/LabelSubmissionError.yaml similarity index 67% rename from schemas/components/schemas/LabelsEventError.yaml rename to schemas/components/schemas/LabelSubmissionError.yaml index f3064acb..029940b3 100644 --- a/schemas/components/schemas/LabelsEventError.yaml +++ b/schemas/components/schemas/LabelSubmissionError.yaml @@ -1,5 +1,5 @@ type: object -description: A stable error code and message describing why a label submission was rejected. +description: A stable error code and message describing why labels in a submission could not be applied. additionalProperties: false required: - code diff --git a/schemas/components/schemas/LabelsStatus.yaml b/schemas/components/schemas/LabelSubmissionEventOutcome.yaml similarity index 100% rename from schemas/components/schemas/LabelsStatus.yaml rename to schemas/components/schemas/LabelSubmissionEventOutcome.yaml diff --git a/schemas/components/schemas/LabelsRequest.yaml b/schemas/components/schemas/LabelSubmissionEventRequest.yaml similarity index 92% rename from schemas/components/schemas/LabelsRequest.yaml rename to schemas/components/schemas/LabelSubmissionEventRequest.yaml index 1a31b831..2940f333 100644 --- a/schemas/components/schemas/LabelsRequest.yaml +++ b/schemas/components/schemas/LabelSubmissionEventRequest.yaml @@ -15,4 +15,4 @@ properties: description: The list of labels to submit. A label may appear only once. minItems: 1 items: - $ref: LabelsEventLabel.yaml + $ref: LabelSubmissionLabel.yaml diff --git a/schemas/components/schemas/LabelsResponse.yaml b/schemas/components/schemas/LabelSubmissionEventResult.yaml similarity index 89% rename from schemas/components/schemas/LabelsResponse.yaml rename to schemas/components/schemas/LabelSubmissionEventResult.yaml index 06658de7..527492e1 100644 --- a/schemas/components/schemas/LabelsResponse.yaml +++ b/schemas/components/schemas/LabelSubmissionEventResult.yaml @@ -23,9 +23,9 @@ properties: examples: - 1735401600000.AbCdEf status: - $ref: LabelsStatus.yaml + $ref: LabelSubmissionEventOutcome.yaml errors: type: array description: The reasons the labels were rejected. Omitted unless `status` is `rejected`. items: - $ref: LabelsEventError.yaml + $ref: LabelSubmissionError.yaml diff --git a/schemas/components/schemas/LabelsEventLabel.yaml b/schemas/components/schemas/LabelSubmissionLabel.yaml similarity index 100% rename from schemas/components/schemas/LabelsEventLabel.yaml rename to schemas/components/schemas/LabelSubmissionLabel.yaml diff --git a/schemas/paths/labels.yaml b/schemas/paths/labels.yaml index 720f4207..1832f3cf 100644 --- a/schemas/paths/labels.yaml +++ b/schemas/paths/labels.yaml @@ -1,7 +1,7 @@ post: tags: - Labels - operationId: submitFraudLabels + operationId: submitEventFraudLabels summary: Submit Fraud Labels for an event description: | Submits labels for a single event, no more than 30 days old. The submission is processed synchronously — a `200` @@ -12,7 +12,7 @@ post: content: application/json: schema: - $ref: ../components/schemas/LabelsRequest.yaml + $ref: ../components/schemas/LabelSubmissionEventRequest.yaml examples: valid: summary: Example request @@ -23,7 +23,7 @@ post: content: application/json: schema: - $ref: ../components/schemas/LabelsResponse.yaml + $ref: ../components/schemas/LabelSubmissionEventResult.yaml examples: 200-applied: summary: Example response @@ -73,7 +73,7 @@ post: content: application/json: schema: - $ref: ../components/schemas/LabelsResponse.yaml + $ref: ../components/schemas/LabelSubmissionEventResult.yaml examples: 422-rejected: summary: Response when the labels were rejected. From 91236517e7afa739cda995f997a0372e3907e7a1 Mon Sep 17 00:00:00 2001 From: "fingerprint-dx-team-actions-runner[bot]" <197604345+fingerprint-dx-team-actions-runner[bot]@users.noreply.github.com> Date: Thu, 19 Nov 2026 20:14:12 +0000 Subject: [PATCH 2/3] chore: add changeset label-submission-renames.md [skip ci-ai-prep] --- .changeset/label-submission-renames.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/label-submission-renames.md diff --git a/.changeset/label-submission-renames.md b/.changeset/label-submission-renames.md new file mode 100644 index 00000000..4330fc32 --- /dev/null +++ b/.changeset/label-submission-renames.md @@ -0,0 +1,5 @@ +--- +'openapi': patch +--- + +Rename labels submission schemas from `Labels*` to `LabelSubmission*` and `operationId` from `submitFraudLabels` to `submitEventFraudLabels` From 65e0d6ac0c00cf13aebee34338b02a157928a90e Mon Sep 17 00:00:00 2001 From: Dan McNulty <212590662+mcnulty-fp@users.noreply.github.com> Date: Thu, 19 Nov 2026 14:16:31 -0600 Subject: [PATCH 3/3] chore: delete unneeded changeset https://github.com/fingerprintjs/openapi/pull/507 is still pending so we don't need to record the rename in the CHANGELOG --- .changeset/label-submission-renames.md | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 .changeset/label-submission-renames.md diff --git a/.changeset/label-submission-renames.md b/.changeset/label-submission-renames.md deleted file mode 100644 index 4330fc32..00000000 --- a/.changeset/label-submission-renames.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'openapi': patch ---- - -Rename labels submission schemas from `Labels*` to `LabelSubmission*` and `operationId` from `submitFraudLabels` to `submitEventFraudLabels`