-
Notifications
You must be signed in to change notification settings - Fork 0
feat(sdk): add typed BanSafe Health resources #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
purpshell
wants to merge
11
commits into
dev
Choose a base branch
from
codex/bansafe-health-sdk
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
171ff23
feat(sdk): add typed BanSafe resources
purpshell 43237c2
chore: preserve draft contract snapshots
purpshell 35fe3d6
chore: refresh integrated BanSafe contracts
purpshell 9e175fd
fix(sdk): allow null historical health bands
purpshell 89eb347
Merge remote-tracking branch 'origin/dev' into codex/bansafe-health-sdk
purpshell 2b88670
fix(sdk): allow incident reports without options
purpshell 85435f1
fix(sdk): preserve incident idempotency requirement
purpshell 949a5c9
Merge dev into BanSafe Health SDK
purpshell 41878c9
Merge remote-tracking branch 'origin/dev' into codex/bansafe-health-s…
purpshell f81e7a3
fix(sdk): align BanSafe with platform contracts
purpshell 254da4c
chore(contracts): pin final BanSafe API head
purpshell File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| # BanSafe draft contracts | ||
|
|
||
| These files are byte-identical copies of the BanSafe API pull request specs at | ||
| the commit and hashes recorded in `source.json`. These snapshots do not claim a | ||
| merged Polymorfa source revision or published SDK parity. | ||
|
|
||
| The canonical files under `contracts/` and their coverage ledger stay pinned to | ||
| the last merged source revision. Replace that pin only after the API changes | ||
| land at one exact commit and the coverage ledger has been reconciled. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,199 @@ | ||
| { | ||
| "schemaVersion": 1, | ||
| "platformSha256": "a7f9d3b449aa93ebdf1e52c5c04519dd405d963a2da59db85d43748f671c95bf", | ||
| "scope": "OpenAPI operations tagged bansafe", | ||
| "covered": 25, | ||
| "excluded": 2, | ||
| "missing": 0, | ||
| "operations": [ | ||
| { | ||
| "operationId": "listBanSafeHealth", | ||
| "method": "GET", | ||
| "path": "/platform/bansafe/health", | ||
| "status": "covered", | ||
| "sdkPath": "Client.banSafe.listHealth" | ||
| }, | ||
| { | ||
| "operationId": "getBanSafeHealth", | ||
| "method": "GET", | ||
| "path": "/platform/bansafe/health/{session}", | ||
| "status": "covered", | ||
| "sdkPath": "Client.banSafe.getHealth" | ||
| }, | ||
| { | ||
| "operationId": "listBanSafeHealthHistory", | ||
| "method": "GET", | ||
| "path": "/platform/bansafe/health/{session}/history", | ||
| "status": "covered", | ||
| "sdkPath": "Client.banSafe.listHealthHistory" | ||
| }, | ||
| { | ||
| "operationId": "listBanSafeSignals", | ||
| "method": "GET", | ||
| "path": "/platform/bansafe/signals", | ||
| "status": "covered", | ||
| "sdkPath": "Client.banSafe.listSignals" | ||
| }, | ||
| { | ||
| "operationId": "getBanSafeTelemetry", | ||
| "method": "GET", | ||
| "path": "/platform/bansafe/telemetry/{session}", | ||
| "status": "covered", | ||
| "sdkPath": "Client.banSafe.getTelemetry" | ||
| }, | ||
| { | ||
| "operationId": "listBanSafeTelemetryHistory", | ||
| "method": "GET", | ||
| "path": "/platform/bansafe/telemetry/{session}/history", | ||
| "status": "covered", | ||
| "sdkPath": "Client.banSafe.listTelemetryHistory" | ||
| }, | ||
| { | ||
| "operationId": "listBanSafeCollection", | ||
| "method": "GET", | ||
| "path": "/platform/bansafe/collection", | ||
| "status": "covered", | ||
| "sdkPath": "Client.banSafe.listCollection" | ||
| }, | ||
| { | ||
| "operationId": "listBanSafeHealthActions", | ||
| "method": "GET", | ||
| "path": "/platform/bansafe/health-actions", | ||
| "status": "covered", | ||
| "sdkPath": "Client.banSafe.listHealthActions" | ||
| }, | ||
| { | ||
| "operationId": "listBanSafeFindings", | ||
| "method": "GET", | ||
| "path": "/platform/bansafe/findings", | ||
| "status": "covered", | ||
| "sdkPath": "Client.banSafe.listFindings" | ||
| }, | ||
| { | ||
| "operationId": "acknowledgeBanSafeFinding", | ||
| "method": "POST", | ||
| "path": "/platform/bansafe/findings/{findingId}/acknowledge", | ||
| "status": "excluded", | ||
| "reason": "Requires signed-in dashboard identity; server API keys and project tokens are refused." | ||
| }, | ||
| { | ||
| "operationId": "listBanSafeEnforcement", | ||
| "method": "GET", | ||
| "path": "/platform/bansafe/enforcement", | ||
| "status": "covered", | ||
| "sdkPath": "Client.banSafe.listEnforcement" | ||
| }, | ||
| { | ||
| "operationId": "appealBanSafeEnforcement", | ||
| "method": "POST", | ||
| "path": "/platform/bansafe/enforcement/{session}/appeal", | ||
| "status": "excluded", | ||
| "reason": "Requires signed-in dashboard identity; server API keys and project tokens are refused." | ||
| }, | ||
| { | ||
| "operationId": "listBanSafeIncidents", | ||
| "method": "GET", | ||
| "path": "/platform/bansafe/incidents", | ||
| "status": "covered", | ||
| "sdkPath": "Client.banSafe.listIncidents" | ||
| }, | ||
| { | ||
| "operationId": "createBanSafeIncident", | ||
| "method": "POST", | ||
| "path": "/platform/bansafe/incidents", | ||
| "status": "covered", | ||
| "sdkPath": "Client.banSafe.createIncident" | ||
| }, | ||
| { | ||
| "operationId": "retractBanSafeIncident", | ||
| "method": "POST", | ||
| "path": "/platform/bansafe/incidents/{incidentId}/retract", | ||
| "status": "covered", | ||
| "sdkPath": "Client.banSafe.retractIncident" | ||
| }, | ||
| { | ||
| "operationId": "listBanSafeClaims", | ||
| "method": "GET", | ||
| "path": "/platform/bansafe/claims", | ||
| "status": "covered", | ||
| "sdkPath": "Client.banSafe.listClaims" | ||
| }, | ||
| { | ||
| "operationId": "getBanSafeClaim", | ||
| "method": "GET", | ||
| "path": "/platform/bansafe/claims/{claimId}", | ||
| "status": "covered", | ||
| "sdkPath": "Client.banSafe.getClaim" | ||
| }, | ||
| { | ||
| "operationId": "getProjectSafeModeCeiling", | ||
| "method": "GET", | ||
| "path": "/platform/projects/{projectId}/safe-mode", | ||
| "status": "covered", | ||
| "sdkPath": "Client.projects.getSafeMode" | ||
| }, | ||
| { | ||
| "operationId": "updateProjectSafeModeCeiling", | ||
| "method": "PUT", | ||
| "path": "/platform/projects/{projectId}/safe-mode", | ||
| "status": "covered", | ||
| "sdkPath": "Client.projects.updateSafeMode" | ||
| }, | ||
| { | ||
| "operationId": "getNumberSafeMode", | ||
| "method": "GET", | ||
| "path": "/platform/sessions/{sessionId}/safe-mode", | ||
| "status": "covered", | ||
| "sdkPath": "Client.sessions.getSafeMode" | ||
| }, | ||
| { | ||
| "operationId": "updateNumberSafeMode", | ||
| "method": "PUT", | ||
| "path": "/platform/sessions/{sessionId}/safe-mode", | ||
| "status": "covered", | ||
| "sdkPath": "Client.sessions.updateSafeMode" | ||
| }, | ||
| { | ||
| "operationId": "getProjectWarmupPlanSettings", | ||
| "method": "GET", | ||
| "path": "/platform/projects/{projectId}/warmup-plan", | ||
| "status": "covered", | ||
| "sdkPath": "Client.projects.getWarmupPlan" | ||
| }, | ||
| { | ||
| "operationId": "updateProjectWarmupPlanSettings", | ||
| "method": "PUT", | ||
| "path": "/platform/projects/{projectId}/warmup-plan", | ||
| "status": "covered", | ||
| "sdkPath": "Client.projects.updateWarmupPlan" | ||
| }, | ||
| { | ||
| "operationId": "getProjectHealthPolicySettings", | ||
| "method": "GET", | ||
| "path": "/platform/projects/{projectId}/health-policy", | ||
| "status": "covered", | ||
| "sdkPath": "Client.projects.getHealthPolicy" | ||
| }, | ||
| { | ||
| "operationId": "updateProjectHealthPolicySettings", | ||
| "method": "PUT", | ||
| "path": "/platform/projects/{projectId}/health-policy", | ||
| "status": "covered", | ||
| "sdkPath": "Client.projects.updateHealthPolicy" | ||
| }, | ||
| { | ||
| "operationId": "getInsuranceEvidenceSettings", | ||
| "method": "GET", | ||
| "path": "/platform/projects/{projectId}/insurance-evidence", | ||
| "status": "covered", | ||
| "sdkPath": "Client.projects.getInsuranceEvidence" | ||
| }, | ||
| { | ||
| "operationId": "updateInsuranceEvidenceSettings", | ||
| "method": "PUT", | ||
| "path": "/platform/projects/{projectId}/insurance-evidence", | ||
| "status": "covered", | ||
| "sdkPath": "Client.projects.updateInsuranceEvidence" | ||
| } | ||
| ] | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.