solidping 0.2.0__tar.gz → 0.4.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. {solidping-0.2.0 → solidping-0.4.0}/.github/workflows/ci.yml +3 -3
  2. {solidping-0.2.0 → solidping-0.4.0}/.github/workflows/regenerate.yml +1 -1
  3. {solidping-0.2.0 → solidping-0.4.0}/.github/workflows/release-please.yml +1 -1
  4. solidping-0.4.0/.release-please-manifest.json +1 -0
  5. {solidping-0.2.0 → solidping-0.4.0}/CHANGELOG.md +14 -0
  6. {solidping-0.2.0 → solidping-0.4.0}/Makefile +1 -1
  7. {solidping-0.2.0 → solidping-0.4.0}/PKG-INFO +1 -1
  8. {solidping-0.2.0 → solidping-0.4.0}/openapi/openapi.yaml +343 -4
  9. {solidping-0.2.0 → solidping-0.4.0}/pyproject.toml +1 -1
  10. {solidping-0.2.0 → solidping-0.4.0}/src/solidping/_generated/models.py +220 -11
  11. {solidping-0.2.0 → solidping-0.4.0}/src/solidping/_generated/operations.py +20 -0
  12. solidping-0.2.0/.release-please-manifest.json +0 -1
  13. {solidping-0.2.0 → solidping-0.4.0}/.github/renovate.json +0 -0
  14. {solidping-0.2.0 → solidping-0.4.0}/.github/workflows/pr-title.yml +0 -0
  15. {solidping-0.2.0 → solidping-0.4.0}/.gitignore +0 -0
  16. {solidping-0.2.0 → solidping-0.4.0}/AGENTS.md +0 -0
  17. {solidping-0.2.0 → solidping-0.4.0}/CLAUDE.md +0 -0
  18. {solidping-0.2.0 → solidping-0.4.0}/LICENSE +0 -0
  19. {solidping-0.2.0 → solidping-0.4.0}/README.md +0 -0
  20. {solidping-0.2.0 → solidping-0.4.0}/release-please-config.json +0 -0
  21. {solidping-0.2.0 → solidping-0.4.0}/scripts/generate.py +0 -0
  22. {solidping-0.2.0 → solidping-0.4.0}/specs/done/2026/11/2026-11-29-01-python-sdk-from-openapi.md +0 -0
  23. {solidping-0.2.0 → solidping-0.4.0}/specs/todos/.gitkeep +0 -0
  24. {solidping-0.2.0 → solidping-0.4.0}/src/solidping/__init__.py +0 -0
  25. {solidping-0.2.0 → solidping-0.4.0}/src/solidping/_client.py +0 -0
  26. {solidping-0.2.0 → solidping-0.4.0}/src/solidping/_errors.py +0 -0
  27. {solidping-0.2.0 → solidping-0.4.0}/src/solidping/_generated/__init__.py +0 -0
  28. {solidping-0.2.0 → solidping-0.4.0}/src/solidping/_model.py +0 -0
  29. {solidping-0.2.0 → solidping-0.4.0}/src/solidping/_operation.py +0 -0
  30. {solidping-0.2.0 → solidping-0.4.0}/src/solidping/_pagination.py +0 -0
  31. {solidping-0.2.0 → solidping-0.4.0}/src/solidping/_retry.py +0 -0
  32. {solidping-0.2.0 → solidping-0.4.0}/src/solidping/py.typed +0 -0
  33. {solidping-0.2.0 → solidping-0.4.0}/src/solidping/resources/__init__.py +0 -0
  34. {solidping-0.2.0 → solidping-0.4.0}/src/solidping/resources/_base.py +0 -0
  35. {solidping-0.2.0 → solidping-0.4.0}/src/solidping/resources/channels.py +0 -0
  36. {solidping-0.2.0 → solidping-0.4.0}/src/solidping/resources/checks.py +0 -0
  37. {solidping-0.2.0 → solidping-0.4.0}/src/solidping/resources/incidents.py +0 -0
  38. {solidping-0.2.0 → solidping-0.4.0}/src/solidping/resources/maintenance_windows.py +0 -0
  39. {solidping-0.2.0 → solidping-0.4.0}/src/solidping/resources/status_pages.py +0 -0
  40. {solidping-0.2.0 → solidping-0.4.0}/tests/__init__.py +0 -0
  41. {solidping-0.2.0 → solidping-0.4.0}/tests/conftest.py +0 -0
  42. {solidping-0.2.0 → solidping-0.4.0}/tests/test_errors.py +0 -0
  43. {solidping-0.2.0 → solidping-0.4.0}/tests/test_logging.py +0 -0
  44. {solidping-0.2.0 → solidping-0.4.0}/tests/test_models.py +0 -0
  45. {solidping-0.2.0 → solidping-0.4.0}/tests/test_pagination.py +0 -0
  46. {solidping-0.2.0 → solidping-0.4.0}/tests/test_quickstart.py +0 -0
  47. {solidping-0.2.0 → solidping-0.4.0}/tests/test_resources.py +0 -0
  48. {solidping-0.2.0 → solidping-0.4.0}/tests/test_retry.py +0 -0
  49. {solidping-0.2.0 → solidping-0.4.0}/uv.lock +0 -0
@@ -17,7 +17,7 @@ jobs:
17
17
  runs-on: ubuntu-latest
18
18
  steps:
19
19
  - uses: actions/checkout@v7
20
- - uses: astral-sh/setup-uv@v10.4.1
20
+ - uses: astral-sh/setup-uv@v10.4.2
21
21
  - run: uv run ruff check .
22
22
  - run: uv run ruff format --check .
23
23
  # The generated code must match the spec of SOLIDPING_VERSION. A Renovate bump PR is
@@ -45,7 +45,7 @@ jobs:
45
45
  id: python
46
46
  with:
47
47
  python-version: ${{ matrix.python-version }}
48
- - uses: astral-sh/setup-uv@v10.4.1
48
+ - uses: astral-sh/setup-uv@v10.4.2
49
49
  with:
50
50
  python-version: ${{ steps.python.outputs.python-version }}
51
51
  # Test mode seeds the organization "test" and a user, the tests create their own token.
@@ -61,7 +61,7 @@ jobs:
61
61
  runs-on: ubuntu-latest
62
62
  steps:
63
63
  - uses: actions/checkout@v7
64
- - uses: astral-sh/setup-uv@v10.4.1
64
+ - uses: astral-sh/setup-uv@v10.4.2
65
65
  - run: uv build
66
66
  - name: The wheel installs and imports
67
67
  run: |
@@ -27,7 +27,7 @@ jobs:
27
27
  with:
28
28
  ref: ${{ github.event.pull_request.head.ref }}
29
29
  token: ${{ secrets.CI_PAT || github.token }}
30
- - uses: astral-sh/setup-uv@v10.4.1
30
+ - uses: astral-sh/setup-uv@v10.4.2
31
31
  - run: make generate
32
32
  - name: Commit the regenerated code
33
33
  run: |
@@ -66,7 +66,7 @@ jobs:
66
66
  - uses: actions/checkout@v7
67
67
  with:
68
68
  ref: ${{ env.TAG }}
69
- - uses: astral-sh/setup-uv@v10.4.1
69
+ - uses: astral-sh/setup-uv@v10.4.2
70
70
  - run: uv build
71
71
  - name: Attach the distributions to the release
72
72
  env:
@@ -0,0 +1 @@
1
+ {".":"0.4.0"}
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.4.0](https://github.com/fclairamb/solidping-python/compare/v0.3.0...v0.4.0) (2026-12-06)
4
+
5
+
6
+ ### Features
7
+
8
+ * **api:** regenerate the SDK from SolidPing v0.65.0 (was v0.64.0): read the state and exact payload of the anonymous usage ping (`getUsage`, super-admin only), hide a status page's visitor subscription widget (`settings.subscriptions.hidden`), and see when stored credentials are not encrypted (`credentialsEncryptionDisabled` on the current user, super admins only) ([#21](https://github.com/fclairamb/solidping-python/issues/21)) ([e8db976](https://github.com/fclairamb/solidping-python/commit/e8db976290f7b0ed78908357aab804094f120691))
9
+
10
+ ## [0.3.0](https://github.com/fclairamb/solidping-python/compare/v0.2.0...v0.3.0) (2026-12-03)
11
+
12
+
13
+ ### Features
14
+
15
+ * **api:** regenerate the SDK from SolidPing v0.64.0 (was v0.62.1): reset a check's history before a given date (`resetCheckHistory`, with a dry run), set a different impact on each component an incident affects, and give status page sections display settings (`settings.columns`, `settings.collapsedByDefault`) ([#19](https://github.com/fclairamb/solidping-python/issues/19)) ([dedea86](https://github.com/fclairamb/solidping-python/commit/dedea86b578152d3af363d5d08173fbcfa526ccc))
16
+
3
17
  ## [0.2.0](https://github.com/fclairamb/solidping-python/compare/v0.1.0...v0.2.0) (2026-12-03)
4
18
 
5
19
 
@@ -1,5 +1,5 @@
1
1
  # renovate: datasource=github-releases depName=fclairamb/solidping
2
- SOLIDPING_VERSION = v0.62.1
2
+ SOLIDPING_VERSION = v0.65.0
3
3
 
4
4
  # The container image tag has no leading "v".
5
5
  SOLIDPING_IMAGE = ghcr.io/fclairamb/solidping:$(patsubst v%,%,$(SOLIDPING_VERSION))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: solidping
3
- Version: 0.2.0
3
+ Version: 0.4.0
4
4
  Summary: Official Python SDK for SolidPing
5
5
  Project-URL: Homepage, https://www.solidping.io
6
6
  Project-URL: Repository, https://github.com/fclairamb/solidping-python
@@ -557,6 +557,30 @@ paths:
557
557
  "403":
558
558
  $ref: "#/components/responses/Forbidden"
559
559
 
560
+ /api/v1/system/usage:
561
+ get:
562
+ tags: [System]
563
+ summary: Anonymous usage ping
564
+ description: >
565
+ Returns whether the daily anonymous usage ping is on, where it goes,
566
+ when the next one is due, the outcome of the last one, and the exact
567
+ payload it sends (also when the ping is off, so an operator sees what
568
+ they refuse). Never creates the install identity. Super-admin only.
569
+ operationId: getUsage
570
+ security:
571
+ - bearerAuth: []
572
+ responses:
573
+ "200":
574
+ description: Usage ping state and payload
575
+ content:
576
+ application/json:
577
+ schema:
578
+ $ref: "#/components/schemas/UsageResponse"
579
+ "401":
580
+ $ref: "#/components/responses/Unauthorized"
581
+ "403":
582
+ $ref: "#/components/responses/Forbidden"
583
+
560
584
  /api/v1/system/discord-setup:
561
585
  get:
562
586
  tags: [System]
@@ -2603,6 +2627,62 @@ paths:
2603
2627
  "422":
2604
2628
  $ref: "#/components/responses/ValidationError"
2605
2629
 
2630
+ /api/v1/orgs/{org}/checks/{checkUid}/results:
2631
+ delete:
2632
+ tags: [Checks]
2633
+ summary: Reset the history of a check before a date
2634
+ description: >-
2635
+ Deletes the history of the check before `before`: its results, raw
2636
+ and aggregated, the archive files of the deleted hours and days (when
2637
+ the result archive is on), and its incidents resolved before the date
2638
+ with their status page publications. An incident still open, or
2639
+ resolved after the date, stays. The current status of the check is not
2640
+ touched. Results are rolled up into hourly, daily and monthly buckets,
2641
+ and a bucket cannot be split: when `before` falls inside one, the whole
2642
+ bucket is deleted and `effectiveBefore` is its end. A date in the
2643
+ future means now: a full wipe is the call with the date set to now.
2644
+ SLOs, badges and status pages read the same results, so they follow;
2645
+ public pages catch up when their HTTP cache expires. A
2646
+ `check.history_reset` event records the user and the dates in the
2647
+ audit log. Org admins only.
2648
+ operationId: resetCheckHistory
2649
+ security:
2650
+ - bearerAuth: []
2651
+ parameters:
2652
+ - $ref: "#/components/parameters/OrgPath"
2653
+ - $ref: "#/components/parameters/CheckUidPath"
2654
+ - name: before
2655
+ in: query
2656
+ required: true
2657
+ description: RFC 3339 date; the history before it is deleted.
2658
+ schema:
2659
+ type: string
2660
+ format: date-time
2661
+ example: "2026-12-01T00:00:00Z"
2662
+ - name: dryRun
2663
+ in: query
2664
+ description: >-
2665
+ `true` deletes nothing and returns the effective date and the
2666
+ counts a reset would have now (the dashboard shows them in its
2667
+ confirmation).
2668
+ schema:
2669
+ type: boolean
2670
+ responses:
2671
+ "200":
2672
+ description: History reset (or, with dryRun, what a reset would delete)
2673
+ content:
2674
+ application/json:
2675
+ schema:
2676
+ $ref: "#/components/schemas/ResetCheckHistoryResponse"
2677
+ "401":
2678
+ $ref: "#/components/responses/Unauthorized"
2679
+ "403":
2680
+ $ref: "#/components/responses/Forbidden"
2681
+ "404":
2682
+ $ref: "#/components/responses/NotFound"
2683
+ "422":
2684
+ $ref: "#/components/responses/ValidationError"
2685
+
2606
2686
  /api/v1/orgs/{org}/checks/{checkUid}/rotate-token:
2607
2687
  post:
2608
2688
  tags: [Checks]
@@ -11613,6 +11693,32 @@ components:
11613
11693
  $ref: "#/components/schemas/Error"
11614
11694
 
11615
11695
  schemas:
11696
+ UsageResponse:
11697
+ type: object
11698
+ required: [enabled, disabledReason, endpoint, optOutEnvVar, lastStatus, payload]
11699
+ properties:
11700
+ enabled:
11701
+ type: boolean
11702
+ disabledReason:
11703
+ type: string
11704
+ description: One of opt_out, run_mode, dev_build; empty when enabled.
11705
+ endpoint:
11706
+ type: string
11707
+ optOutEnvVar:
11708
+ type: string
11709
+ nextPingAt:
11710
+ type: string
11711
+ format: date-time
11712
+ lastSentAt:
11713
+ type: string
11714
+ format: date-time
11715
+ lastStatus:
11716
+ type: string
11717
+ description: "ok, or error: <HTTP status or network error class>."
11718
+ payload:
11719
+ type: object
11720
+ description: The exact ping payload (schemaVersion, installUid, date, version, context, metrics).
11721
+ additionalProperties: true
11616
11722
  IncidentInsightsDuration:
11617
11723
  type: object
11618
11724
  properties:
@@ -12642,6 +12748,12 @@ components:
12642
12748
  expiresAt:
12643
12749
  type: string
12644
12750
  format: date-time
12751
+ credentialsEncryptionDisabled:
12752
+ type: boolean
12753
+ description: >-
12754
+ True only for a super admin when no master key is configured: stored
12755
+ secrets are in plaintext until SP_ENCRYPTION_MASTER_KEY (or
12756
+ SP_ENCRYPTION_MASTER_KEY_FILE) is set. Absent otherwise.
12645
12757
 
12646
12758
  OrganizationSummary:
12647
12759
  type: object
@@ -15164,6 +15276,37 @@ components:
15164
15276
  the field existed. A hint: a `true` row whose file was deleted
15165
15277
  simply has no detail.
15166
15278
 
15279
+ ResetCheckHistoryResponse:
15280
+ type: object
15281
+ required: [checkUid, before, effectiveBefore, deletedResults, deletedIncidents, deletedPublications, dryRun]
15282
+ properties:
15283
+ checkUid:
15284
+ type: string
15285
+ format: uuid
15286
+ before:
15287
+ type: string
15288
+ format: date-time
15289
+ description: The requested date (now when a future date was asked).
15290
+ effectiveBefore:
15291
+ type: string
15292
+ format: date-time
15293
+ description: >-
15294
+ The date the history is reset before: the end of the aggregated
15295
+ bucket `before` falls in, else `before`.
15296
+ deletedResults:
15297
+ type: integer
15298
+ format: int64
15299
+ description: Result rows deleted, raw and aggregated.
15300
+ deletedIncidents:
15301
+ type: integer
15302
+ description: Resolved incidents deleted.
15303
+ deletedPublications:
15304
+ type: integer
15305
+ description: Status page publications withdrawn with them.
15306
+ dryRun:
15307
+ type: boolean
15308
+ description: True when nothing was deleted.
15309
+
15167
15310
  GetOrgResultResponse:
15168
15311
  description: >
15169
15312
  Single-result detail response. Extends OrgResult with all optional
@@ -16685,7 +16828,7 @@ components:
16685
16828
  format: date-time
16686
16829
  overallStatus:
16687
16830
  type: string
16688
- enum: [operational, degraded, down, maintenance, unknown]
16831
+ enum: [operational, degraded, partial, down, maintenance, unknown]
16689
16832
  description: >-
16690
16833
  Page-level rollup computed server-side from the live status of
16691
16834
  every resource on the page, so the public views, the summary
@@ -16828,11 +16971,99 @@ components:
16828
16971
  contain names the page already renders.
16829
16972
  items:
16830
16973
  type: string
16974
+ components:
16975
+ type: array
16976
+ description: >-
16977
+ The affected components and their current impact level, worst
16978
+ first. Empty when the incident declares none.
16979
+ items:
16980
+ $ref: "#/components/schemas/PublicComponentImpact"
16831
16981
  updates:
16832
16982
  type: array
16833
16983
  items:
16834
16984
  $ref: "#/components/schemas/PublicIncidentUpdate"
16835
16985
 
16986
+ ComponentImpact:
16987
+ type: string
16988
+ enum: [operational, degraded_performance, partial_outage, major_outage]
16989
+ description: >-
16990
+ Impact level an incident declares on a status page component, worst
16991
+ last. While the incident is open, a declared level replaces the
16992
+ component's live status on the public page and in the page rollup
16993
+ (`degraded_performance` → degraded, `partial_outage` → partial,
16994
+ `major_outage` → down). Uptime numbers never change: they keep reading
16995
+ probe results. `operational` removes the component from the incident.
16996
+
16997
+ PublicComponentImpact:
16998
+ type: object
16999
+ required: [resourceUid, name, impact, since]
17000
+ properties:
17001
+ resourceUid:
17002
+ type: string
17003
+ format: uuid
17004
+ description: The status page resource (component).
17005
+ name:
17006
+ type: string
17007
+ description: The component's public display name.
17008
+ impact:
17009
+ $ref: "#/components/schemas/ComponentImpact"
17010
+ since:
17011
+ type: string
17012
+ format: date-time
17013
+
17014
+ PublicationComponent:
17015
+ allOf:
17016
+ - $ref: "#/components/schemas/PublicComponentImpact"
17017
+ - type: object
17018
+ properties:
17019
+ setBy:
17020
+ type: string
17021
+ description: >-
17022
+ Display name of the user who set the level. Absent when the
17023
+ auto-publish automation set it, or a caller without a user
17024
+ (see setByKind).
17025
+ setByUid:
17026
+ type: string
17027
+ format: uuid
17028
+ setByKind:
17029
+ type: string
17030
+ enum: [user, api_token]
17031
+ description: >-
17032
+ Who set the level: a user, or an API token without a user
17033
+ (MCP). Absent only when the auto-publish automation set it;
17034
+ the automation never overwrites a level whose setByKind is set.
17035
+
17036
+ ComponentChange:
17037
+ type: object
17038
+ required: [resourceUid, name, from, to]
17039
+ description: >-
17040
+ One impact change an update made. `from` is `operational` when the
17041
+ component was not affected yet; `to` is `operational` when it was
17042
+ removed (resolving closes every level).
17043
+ properties:
17044
+ resourceUid:
17045
+ type: string
17046
+ format: uuid
17047
+ name:
17048
+ type: string
17049
+ from:
17050
+ $ref: "#/components/schemas/ComponentImpact"
17051
+ to:
17052
+ $ref: "#/components/schemas/ComponentImpact"
17053
+
17054
+ ComponentImpactRequest:
17055
+ type: object
17056
+ required: [resourceUid, impact]
17057
+ properties:
17058
+ resourceUid:
17059
+ type: string
17060
+ format: uuid
17061
+ description: >-
17062
+ A resource of the publication's status page. Any other UID is
17063
+ refused with 422 VALIDATION_ERROR.
17064
+ impact:
17065
+ $ref: "#/components/schemas/ComponentImpact"
17066
+
16836
17067
  PublicIncidentUpdate:
16837
17068
  type: object
16838
17069
  required: [uid, kind, title, bodyMarkdown, publishedAt]
@@ -16856,6 +17087,10 @@ components:
16856
17087
  publishedAt:
16857
17088
  type: string
16858
17089
  format: date-time
17090
+ componentChanges:
17091
+ type: array
17092
+ items:
17093
+ $ref: "#/components/schemas/ComponentChange"
16859
17094
 
16860
17095
  IncidentPublication:
16861
17096
  type: object
@@ -16926,6 +17161,11 @@ components:
16926
17161
  type: array
16927
17162
  items:
16928
17163
  type: string
17164
+ components:
17165
+ type: array
17166
+ description: The affected components and their current impact level, worst first.
17167
+ items:
17168
+ $ref: "#/components/schemas/PublicationComponent"
16929
17169
  updates:
16930
17170
  type: array
16931
17171
  items:
@@ -16961,6 +17201,11 @@ components:
16961
17201
  Absent for updates generated by the auto-publish pipeline — a
16962
17202
  machine post has no author, and attributing it to a human would be
16963
17203
  a lie the UI then renders.
17204
+ componentChanges:
17205
+ type: array
17206
+ description: The component impact changes this update made.
17207
+ items:
17208
+ $ref: "#/components/schemas/ComponentChange"
16964
17209
 
16965
17210
  IncidentPublicationListResponse:
16966
17211
  type: object
@@ -17003,6 +17248,13 @@ components:
17003
17248
  type: string
17004
17249
  maxLength: 16384
17005
17250
  description: Optional first narrative entry.
17251
+ components:
17252
+ type: array
17253
+ description: >-
17254
+ Affected components and their impact level. A hand-written
17255
+ incident needs no linked incident to name components.
17256
+ items:
17257
+ $ref: "#/components/schemas/ComponentImpactRequest"
17006
17258
 
17007
17259
  UpdateIncidentPublicationRequest:
17008
17260
  type: object
@@ -17029,10 +17281,18 @@ components:
17029
17281
  description: >-
17030
17282
  One of minor | major | critical, or an empty string to clear the
17031
17283
  badge.
17284
+ components:
17285
+ type: array
17286
+ description: >-
17287
+ Changes the listed components' impact levels (`operational`
17288
+ removes one); unlisted components keep theirs. Resolving the
17289
+ publication closes every level.
17290
+ items:
17291
+ $ref: "#/components/schemas/ComponentImpactRequest"
17032
17292
 
17033
17293
  AppendPublicationUpdateRequest:
17034
17294
  type: object
17035
- required: [kind, bodyMarkdown]
17295
+ required: [kind]
17036
17296
  description: >-
17037
17297
  Updates are APPEND-ONLY: there is deliberately no edit and no delete
17038
17298
  endpoint for them.
@@ -17049,6 +17309,14 @@ components:
17049
17309
  bodyMarkdown:
17050
17310
  type: string
17051
17311
  maxLength: 16384
17312
+ description: Required unless the update changes components.
17313
+ components:
17314
+ type: array
17315
+ description: >-
17316
+ Impact changes made with this update, in the same transaction. A
17317
+ `resolved` update closes every level instead.
17318
+ items:
17319
+ $ref: "#/components/schemas/ComponentImpactRequest"
17052
17320
 
17053
17321
  PublishIncidentRequest:
17054
17322
  type: object
@@ -17070,13 +17338,16 @@ components:
17070
17338
 
17071
17339
  StatusCounts:
17072
17340
  type: object
17073
- required: [operational, degraded, down, maintenance, unknown]
17341
+ required: [operational, degraded, partial, down, maintenance, unknown]
17074
17342
  description: Tallies the page's resources per overallStatus category.
17075
17343
  properties:
17076
17344
  operational:
17077
17345
  type: integer
17078
17346
  degraded:
17079
17347
  type: integer
17348
+ partial:
17349
+ type: integer
17350
+ description: Resources an open incident declares in partial outage.
17080
17351
  down:
17081
17352
  type: integer
17082
17353
  maintenance:
@@ -17094,7 +17365,7 @@ components:
17094
17365
  properties:
17095
17366
  status:
17096
17367
  type: string
17097
- enum: [operational, degraded, down, maintenance, unknown]
17368
+ enum: [operational, degraded, partial, down, maintenance, unknown]
17098
17369
  counts:
17099
17370
  $ref: "#/components/schemas/StatusCounts"
17100
17371
  overallAvailabilityPct:
@@ -17175,6 +17446,10 @@ components:
17175
17446
  statusWarning:
17176
17447
  type: string
17177
17448
  pattern: "^#[0-9a-fA-F]{6}$"
17449
+ statusPartial:
17450
+ type: string
17451
+ pattern: "^#[0-9a-fA-F]{6}$"
17452
+ description: Partial outage color (a declared component impact).
17178
17453
  statusError:
17179
17454
  type: string
17180
17455
  pattern: "^#[0-9a-fA-F]{6}$"
@@ -17195,6 +17470,19 @@ components:
17195
17470
  dark:
17196
17471
  $ref: "#/components/schemas/ThemeTokens"
17197
17472
 
17473
+ SubscriptionsSettings:
17474
+ type: object
17475
+ additionalProperties: false
17476
+ description: >-
17477
+ Visitor subscription widget of a status page (email double opt-in and
17478
+ RSS/Atom link). Replaced as a whole on update; null resets it.
17479
+ properties:
17480
+ hidden:
17481
+ type: boolean
17482
+ description: >-
17483
+ Hide the widget on the public page. The subscribe endpoints and the
17484
+ feeds keep answering. Default false.
17485
+
17198
17486
  StatusPageSettings:
17199
17487
  type: object
17200
17488
  description: >-
@@ -17207,6 +17495,9 @@ components:
17207
17495
  theme:
17208
17496
  $ref: "#/components/schemas/ThemeSettings"
17209
17497
  nullable: true
17498
+ subscriptions:
17499
+ $ref: "#/components/schemas/SubscriptionsSettings"
17500
+ nullable: true
17210
17501
 
17211
17502
  AvailabilityThresholds:
17212
17503
  type: object
@@ -17478,6 +17769,37 @@ components:
17478
17769
  (VALIDATION_ERROR). The effective thresholds (submitted or
17479
17770
  default) must satisfy 0 < thresholdDegraded < thresholdUp <= 100.
17480
17771
 
17772
+ StatusPageSectionSettings:
17773
+ type: object
17774
+ required: [columns, collapsedByDefault]
17775
+ description: Display settings of a section, on admin and public payloads.
17776
+ properties:
17777
+ columns:
17778
+ type: integer
17779
+ minimum: 1
17780
+ maximum: 3
17781
+ description: >-
17782
+ Number of columns the public page lays the section's rows out in.
17783
+ 1 when unset. Phones always show one column.
17784
+ collapsedByDefault:
17785
+ type: boolean
17786
+ description: >-
17787
+ The public page starts the section closed, unless the section is
17788
+ not fully operational (it then always opens). False when unset.
17789
+
17790
+ StatusPageSectionSettingsInput:
17791
+ type: object
17792
+ description: >-
17793
+ Display settings of a section. Omit the object, or a key in it, to
17794
+ leave it unchanged (on create: the default).
17795
+ properties:
17796
+ columns:
17797
+ type: integer
17798
+ description: 1, 2 or 3. Any other value is a VALIDATION_ERROR.
17799
+ collapsedByDefault:
17800
+ type: boolean
17801
+ description: Start the section closed on the public page. Defaults to false.
17802
+
17481
17803
  StatusPageSection:
17482
17804
  type: object
17483
17805
  required: [uid, name, slug, position]
@@ -17491,6 +17813,17 @@ components:
17491
17813
  type: string
17492
17814
  position:
17493
17815
  type: integer
17816
+ settings:
17817
+ $ref: "#/components/schemas/StatusPageSectionSettings"
17818
+ status:
17819
+ type: string
17820
+ enum: [operational, degraded, partial, down, maintenance, unknown]
17821
+ description: >-
17822
+ The section's own live status, computed by the server from the same
17823
+ inputs as the page's `overallStatus`. An empty section is
17824
+ `operational`. Public view payloads only.
17825
+ statusCounts:
17826
+ $ref: "#/components/schemas/StatusCounts"
17494
17827
  selector:
17495
17828
  allOf:
17496
17829
  - $ref: "#/components/schemas/StatusPageSectionSelector"
@@ -17596,6 +17929,8 @@ components:
17596
17929
  collision returns VALIDATION_ERROR instead.
17597
17930
  position:
17598
17931
  type: integer
17932
+ settings:
17933
+ $ref: "#/components/schemas/StatusPageSectionSettingsInput"
17599
17934
  selector:
17600
17935
  allOf:
17601
17936
  - $ref: "#/components/schemas/StatusPageSectionSelector"
@@ -17612,6 +17947,8 @@ components:
17612
17947
  type: string
17613
17948
  position:
17614
17949
  type: integer
17950
+ settings:
17951
+ $ref: "#/components/schemas/StatusPageSectionSettingsInput"
17615
17952
  selector:
17616
17953
  allOf:
17617
17954
  - $ref: "#/components/schemas/StatusPageSectionSelector"
@@ -17677,6 +18014,8 @@ components:
17677
18014
  context.
17678
18015
  position:
17679
18016
  type: integer
18017
+ impact:
18018
+ $ref: "#/components/schemas/ComponentImpact"
17680
18019
  createdAt:
17681
18020
  type: string
17682
18021
  format: date-time
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "solidping"
7
- version = "0.2.0"
7
+ version = "0.4.0"
8
8
  description = "Official Python SDK for SolidPing"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -11,6 +11,15 @@ from typing import Any, ClassVar
11
11
  from solidping._model import Model
12
12
 
13
13
 
14
+ class ComponentImpact:
15
+ """Known values; the API may return others."""
16
+
17
+ OPERATIONAL = "operational"
18
+ DEGRADED_PERFORMANCE = "degraded_performance"
19
+ PARTIAL_OUTAGE = "partial_outage"
20
+ MAJOR_OUTAGE = "major_outage"
21
+
22
+
14
23
  class AICheckContract(Model):
15
24
  _fields: ClassVar[tuple[str, ...]] = ("contract", "model", "usage")
16
25
  _nested: ClassVar[dict[str, tuple[str, str]]] = {"usage": ("one", "AIUsage")}
@@ -523,7 +532,10 @@ class AdminUsersListResponse(Model):
523
532
  class AppendPublicationUpdateRequest(Model):
524
533
  """Updates are APPEND-ONLY: there is deliberately no edit and no delete endpoint for them."""
525
534
 
526
- _fields: ClassVar[tuple[str, ...]] = ("kind", "title", "bodyMarkdown")
535
+ _fields: ClassVar[tuple[str, ...]] = ("kind", "title", "bodyMarkdown", "components")
536
+ _nested: ClassVar[dict[str, tuple[str, str]]] = {
537
+ "components": ("list", "ComponentImpactRequest")
538
+ }
527
539
  # Values known at generation time; any other is accepted.
528
540
  _known_values: ClassVar[dict[str, tuple[str, ...]]] = {
529
541
  "kind": ("investigating", "identified", "monitoring", "resolved", "maintenance", "info")
@@ -532,6 +544,7 @@ class AppendPublicationUpdateRequest(Model):
532
544
  kind: str | None = None
533
545
  title: str | None = None
534
546
  bodyMarkdown: str | None = None
547
+ components: list[ComponentImpactRequest] | None = None
535
548
 
536
549
 
537
550
  class ApplyPlanEntry(Model):
@@ -1720,6 +1733,34 @@ class CloneCheckRequest(Model):
1720
1733
  enabled: bool | None = None
1721
1734
 
1722
1735
 
1736
+ class ComponentChange(Model):
1737
+ """One impact change an update made. `from` is `operational` when the component was not affected yet; `to` is `operational` when it was removed (resolving closes every level)."""
1738
+
1739
+ _fields: ClassVar[tuple[str, ...]] = ("resourceUid", "name", "from", "to")
1740
+ _aliases: ClassVar[dict[str, str]] = {"from": "from_"}
1741
+ # Values known at generation time; any other is accepted.
1742
+ _known_values: ClassVar[dict[str, tuple[str, ...]]] = {
1743
+ "from": ("operational", "degraded_performance", "partial_outage", "major_outage"),
1744
+ "to": ("operational", "degraded_performance", "partial_outage", "major_outage"),
1745
+ }
1746
+
1747
+ resourceUid: str | None = None
1748
+ name: str | None = None
1749
+ from_: str | None = None
1750
+ to: str | None = None
1751
+
1752
+
1753
+ class ComponentImpactRequest(Model):
1754
+ _fields: ClassVar[tuple[str, ...]] = ("resourceUid", "impact")
1755
+ # Values known at generation time; any other is accepted.
1756
+ _known_values: ClassVar[dict[str, tuple[str, ...]]] = {
1757
+ "impact": ("operational", "degraded_performance", "partial_outage", "major_outage")
1758
+ }
1759
+
1760
+ resourceUid: str | None = None
1761
+ impact: str | None = None
1762
+
1763
+
1723
1764
  class Confirm2FARequest(Model):
1724
1765
  _fields: ClassVar[tuple[str, ...]] = ("code", "setupToken")
1725
1766
 
@@ -2009,8 +2050,12 @@ class CreateIncidentPublicationRequest(Model):
2009
2050
  "severity",
2010
2051
  "incidentUid",
2011
2052
  "bodyMarkdown",
2053
+ "components",
2012
2054
  )
2013
- _nested: ClassVar[dict[str, tuple[str, str]]] = {"translations": ("map", "TranslationEntry")}
2055
+ _nested: ClassVar[dict[str, tuple[str, str]]] = {
2056
+ "translations": ("map", "TranslationEntry"),
2057
+ "components": ("list", "ComponentImpactRequest"),
2058
+ }
2014
2059
  # Values known at generation time; any other is accepted.
2015
2060
  _known_values: ClassVar[dict[str, tuple[str, ...]]] = {
2016
2061
  "state": ("investigating", "identified", "monitoring", "resolved"),
@@ -2023,6 +2068,7 @@ class CreateIncidentPublicationRequest(Model):
2023
2068
  severity: str | None = None
2024
2069
  incidentUid: str | None = None
2025
2070
  bodyMarkdown: str | None = None
2071
+ components: list[ComponentImpactRequest] | None = None
2026
2072
 
2027
2073
 
2028
2074
  class CreateInvitationRequest(Model):
@@ -2267,14 +2313,16 @@ class CreateStatusPageResourceRequest(Model):
2267
2313
 
2268
2314
 
2269
2315
  class CreateStatusPageSectionRequest(Model):
2270
- _fields: ClassVar[tuple[str, ...]] = ("name", "slug", "position", "selector")
2316
+ _fields: ClassVar[tuple[str, ...]] = ("name", "slug", "position", "settings", "selector")
2271
2317
  _nested: ClassVar[dict[str, tuple[str, str]]] = {
2272
- "selector": ("one", "CreateStatusPageSectionRequestSelector")
2318
+ "settings": ("one", "StatusPageSectionSettingsInput"),
2319
+ "selector": ("one", "CreateStatusPageSectionRequestSelector"),
2273
2320
  }
2274
2321
 
2275
2322
  name: str | None = None
2276
2323
  slug: str | None = None
2277
2324
  position: int | None = None
2325
+ settings: StatusPageSectionSettingsInput | None = None
2278
2326
  selector: CreateStatusPageSectionRequestSelector | None = None
2279
2327
 
2280
2328
 
@@ -3464,11 +3512,13 @@ class IncidentPublication(Model):
3464
3512
  "createdAt",
3465
3513
  "updatedAt",
3466
3514
  "affectedResources",
3515
+ "components",
3467
3516
  "updates",
3468
3517
  )
3469
3518
  _nested: ClassVar[dict[str, tuple[str, str]]] = {
3470
3519
  "translations": ("map", "TranslationEntry"),
3471
3520
  "titleI18n": ("one", "LocalizedText"),
3521
+ "components": ("list", "PublicationComponent"),
3472
3522
  "updates": ("list", "PublicationUpdate"),
3473
3523
  }
3474
3524
  # Values known at generation time; any other is accepted.
@@ -3493,6 +3543,7 @@ class IncidentPublication(Model):
3493
3543
  createdAt: str | None = None
3494
3544
  updatedAt: str | None = None
3495
3545
  affectedResources: list[str] | None = None
3546
+ components: list[PublicationComponent] | None = None
3496
3547
  updates: list[PublicationUpdate] | None = None
3497
3548
 
3498
3549
 
@@ -3963,7 +4014,13 @@ class MaintenanceWindowOccurrence(Model):
3963
4014
 
3964
4015
 
3965
4016
  class MeResponse(Model):
3966
- _fields: ClassVar[tuple[str, ...]] = ("user", "organization", "organizations", "impersonation")
4017
+ _fields: ClassVar[tuple[str, ...]] = (
4018
+ "user",
4019
+ "organization",
4020
+ "organizations",
4021
+ "impersonation",
4022
+ "credentialsEncryptionDisabled",
4023
+ )
3967
4024
  _nested: ClassVar[dict[str, tuple[str, str]]] = {
3968
4025
  "user": ("one", "UserSummary"),
3969
4026
  "organization": ("one", "OrganizationSummary"),
@@ -3975,6 +4032,7 @@ class MeResponse(Model):
3975
4032
  organization: OrganizationSummary | None = None
3976
4033
  organizations: list[OrganizationMemberSummary] | None = None
3977
4034
  impersonation: MeResponseImpersonation | None = None
4035
+ credentialsEncryptionDisabled: bool | None = None
3978
4036
 
3979
4037
 
3980
4038
  class MeResponseImpersonation(Model):
@@ -4927,6 +4985,19 @@ class PromoteChecksRequestOverrides(Model):
4927
4985
  period: str | None = None
4928
4986
 
4929
4987
 
4988
+ class PublicComponentImpact(Model):
4989
+ _fields: ClassVar[tuple[str, ...]] = ("resourceUid", "name", "impact", "since")
4990
+ # Values known at generation time; any other is accepted.
4991
+ _known_values: ClassVar[dict[str, tuple[str, ...]]] = {
4992
+ "impact": ("operational", "degraded_performance", "partial_outage", "major_outage")
4993
+ }
4994
+
4995
+ resourceUid: str | None = None
4996
+ name: str | None = None
4997
+ impact: str | None = None
4998
+ since: str | None = None
4999
+
5000
+
4930
5001
  class PublicConfigResponse(Model):
4931
5002
  """Browser-safe public configuration. Designed as a general-purpose blob:"""
4932
5003
 
@@ -5017,11 +5088,13 @@ class PublicIncident(Model):
5017
5088
  "startedAt",
5018
5089
  "resolvedAt",
5019
5090
  "affectedResources",
5091
+ "components",
5020
5092
  "updates",
5021
5093
  )
5022
5094
  _nested: ClassVar[dict[str, tuple[str, str]]] = {
5023
5095
  "translations": ("map", "TranslationEntry"),
5024
5096
  "titleI18n": ("one", "LocalizedText"),
5097
+ "components": ("list", "PublicComponentImpact"),
5025
5098
  "updates": ("list", "PublicIncidentUpdate"),
5026
5099
  }
5027
5100
  # Values known at generation time; any other is accepted.
@@ -5039,6 +5112,7 @@ class PublicIncident(Model):
5039
5112
  startedAt: str | None = None
5040
5113
  resolvedAt: str | None = None
5041
5114
  affectedResources: list[str] | None = None
5115
+ components: list[PublicComponentImpact] | None = None
5042
5116
  updates: list[PublicIncidentUpdate] | None = None
5043
5117
 
5044
5118
 
@@ -5059,11 +5133,13 @@ class PublicIncidentUpdate(Model):
5059
5133
  "bodyMarkdown",
5060
5134
  "bodyI18n",
5061
5135
  "publishedAt",
5136
+ "componentChanges",
5062
5137
  )
5063
5138
  _nested: ClassVar[dict[str, tuple[str, str]]] = {
5064
5139
  "translations": ("map", "TranslationEntry"),
5065
5140
  "titleI18n": ("one", "LocalizedText"),
5066
5141
  "bodyI18n": ("one", "LocalizedText"),
5142
+ "componentChanges": ("list", "ComponentChange"),
5067
5143
  }
5068
5144
  # Values known at generation time; any other is accepted.
5069
5145
  _known_values: ClassVar[dict[str, tuple[str, ...]]] = {
@@ -5078,6 +5154,7 @@ class PublicIncidentUpdate(Model):
5078
5154
  bodyMarkdown: str | None = None
5079
5155
  bodyI18n: LocalizedText | None = None
5080
5156
  publishedAt: str | None = None
5157
+ componentChanges: list[ComponentChange] | None = None
5081
5158
 
5082
5159
 
5083
5160
  class PublicMaintenance(Model):
@@ -5128,6 +5205,31 @@ class PublicWhatsAppConfig(Model):
5128
5205
  enabled: bool | None = None
5129
5206
 
5130
5207
 
5208
+ class PublicationComponent(Model):
5209
+ _fields: ClassVar[tuple[str, ...]] = (
5210
+ "resourceUid",
5211
+ "name",
5212
+ "impact",
5213
+ "since",
5214
+ "setBy",
5215
+ "setByUid",
5216
+ "setByKind",
5217
+ )
5218
+ # Values known at generation time; any other is accepted.
5219
+ _known_values: ClassVar[dict[str, tuple[str, ...]]] = {
5220
+ "impact": ("operational", "degraded_performance", "partial_outage", "major_outage"),
5221
+ "setByKind": ("user", "api_token"),
5222
+ }
5223
+
5224
+ resourceUid: str | None = None
5225
+ name: str | None = None
5226
+ impact: str | None = None
5227
+ since: str | None = None
5228
+ setBy: str | None = None
5229
+ setByUid: str | None = None
5230
+ setByKind: str | None = None
5231
+
5232
+
5131
5233
  class PublicationUpdate(Model):
5132
5234
  _fields: ClassVar[tuple[str, ...]] = (
5133
5235
  "translations",
@@ -5139,11 +5241,13 @@ class PublicationUpdate(Model):
5139
5241
  "bodyI18n",
5140
5242
  "publishedAt",
5141
5243
  "authorUid",
5244
+ "componentChanges",
5142
5245
  )
5143
5246
  _nested: ClassVar[dict[str, tuple[str, str]]] = {
5144
5247
  "translations": ("map", "TranslationEntry"),
5145
5248
  "titleI18n": ("one", "LocalizedText"),
5146
5249
  "bodyI18n": ("one", "LocalizedText"),
5250
+ "componentChanges": ("list", "ComponentChange"),
5147
5251
  }
5148
5252
  # Values known at generation time; any other is accepted.
5149
5253
  _known_values: ClassVar[dict[str, tuple[str, ...]]] = {
@@ -5159,6 +5263,7 @@ class PublicationUpdate(Model):
5159
5263
  bodyI18n: LocalizedText | None = None
5160
5264
  publishedAt: str | None = None
5161
5265
  authorUid: str | None = None
5266
+ componentChanges: list[ComponentChange] | None = None
5162
5267
 
5163
5268
 
5164
5269
  class PublishIncidentRequest(Model):
@@ -5393,6 +5498,26 @@ class RequestPasswordResetRequest(Model):
5393
5498
  email: str | None = None
5394
5499
 
5395
5500
 
5501
+ class ResetCheckHistoryResponse(Model):
5502
+ _fields: ClassVar[tuple[str, ...]] = (
5503
+ "checkUid",
5504
+ "before",
5505
+ "effectiveBefore",
5506
+ "deletedResults",
5507
+ "deletedIncidents",
5508
+ "deletedPublications",
5509
+ "dryRun",
5510
+ )
5511
+
5512
+ checkUid: str | None = None
5513
+ before: str | None = None
5514
+ effectiveBefore: str | None = None
5515
+ deletedResults: int | None = None
5516
+ deletedIncidents: int | None = None
5517
+ deletedPublications: int | None = None
5518
+ dryRun: bool | None = None
5519
+
5520
+
5396
5521
  class ResetPasswordRequest(Model):
5397
5522
  _fields: ClassVar[tuple[str, ...]] = ("token", "password")
5398
5523
 
@@ -5793,6 +5918,7 @@ class StatusCounts(Model):
5793
5918
  _fields: ClassVar[tuple[str, ...]] = (
5794
5919
  "operational",
5795
5920
  "degraded",
5921
+ "partial",
5796
5922
  "down",
5797
5923
  "maintenance",
5798
5924
  "unknown",
@@ -5800,6 +5926,7 @@ class StatusCounts(Model):
5800
5926
 
5801
5927
  operational: int | None = None
5802
5928
  degraded: int | None = None
5929
+ partial: int | None = None
5803
5930
  down: int | None = None
5804
5931
  maintenance: int | None = None
5805
5932
  unknown: int | None = None
@@ -5871,7 +5998,7 @@ class StatusPage(Model):
5871
5998
  "customDomainStatus": ("unverified", "verified"),
5872
5999
  "customDomainCertStatus": ("none", "issued", "error"),
5873
6000
  "customDomainState": ("none", "pending", "active", "grace", "demoted"),
5874
- "overallStatus": ("operational", "degraded", "down", "maintenance", "unknown"),
6001
+ "overallStatus": ("operational", "degraded", "partial", "down", "maintenance", "unknown"),
5875
6002
  }
5876
6003
 
5877
6004
  uid: str | None = None
@@ -5985,8 +6112,13 @@ class StatusPageResource(Model):
5985
6112
  "autoPublish",
5986
6113
  "managedBySelector",
5987
6114
  "position",
6115
+ "impact",
5988
6116
  "createdAt",
5989
6117
  )
6118
+ # Values known at generation time; any other is accepted.
6119
+ _known_values: ClassVar[dict[str, tuple[str, ...]]] = {
6120
+ "impact": ("operational", "degraded_performance", "partial_outage", "major_outage")
6121
+ }
5990
6122
 
5991
6123
  uid: str | None = None
5992
6124
  checkUid: str | None = None
@@ -5996,6 +6128,7 @@ class StatusPageResource(Model):
5996
6128
  autoPublish: bool | None = None
5997
6129
  managedBySelector: bool | None = None
5998
6130
  position: int | None = None
6131
+ impact: str | None = None
5999
6132
  createdAt: str | None = None
6000
6133
 
6001
6134
 
@@ -6012,6 +6145,9 @@ class StatusPageSection(Model):
6012
6145
  "name",
6013
6146
  "slug",
6014
6147
  "position",
6148
+ "settings",
6149
+ "status",
6150
+ "statusCounts",
6015
6151
  "selector",
6016
6152
  "selectorMatchTotal",
6017
6153
  "selectorTruncated",
@@ -6020,14 +6156,23 @@ class StatusPageSection(Model):
6020
6156
  "createdAt",
6021
6157
  )
6022
6158
  _nested: ClassVar[dict[str, tuple[str, str]]] = {
6159
+ "settings": ("one", "StatusPageSectionSettings"),
6160
+ "statusCounts": ("one", "StatusCounts"),
6023
6161
  "selector": ("one", "StatusPageSectionSelector"),
6024
6162
  "resources": ("list", "StatusPageResource"),
6025
6163
  }
6164
+ # Values known at generation time; any other is accepted.
6165
+ _known_values: ClassVar[dict[str, tuple[str, ...]]] = {
6166
+ "status": ("operational", "degraded", "partial", "down", "maintenance", "unknown")
6167
+ }
6026
6168
 
6027
6169
  uid: str | None = None
6028
6170
  name: str | None = None
6029
6171
  slug: str | None = None
6030
6172
  position: int | None = None
6173
+ settings: StatusPageSectionSettings | None = None
6174
+ status: str | None = None
6175
+ statusCounts: StatusCounts | None = None
6031
6176
  selector: StatusPageSectionSelector | None = None
6032
6177
  selectorMatchTotal: int | None = None
6033
6178
  selectorTruncated: bool | None = None
@@ -6051,17 +6196,37 @@ class StatusPageSectionSelector(Model):
6051
6196
  checkGroupUid: str | None = None
6052
6197
 
6053
6198
 
6199
+ class StatusPageSectionSettings(Model):
6200
+ """Display settings of a section, on admin and public payloads."""
6201
+
6202
+ _fields: ClassVar[tuple[str, ...]] = ("columns", "collapsedByDefault")
6203
+
6204
+ columns: int | None = None
6205
+ collapsedByDefault: bool | None = None
6206
+
6207
+
6208
+ class StatusPageSectionSettingsInput(Model):
6209
+ """Display settings of a section. Omit the object, or a key in it, to leave it unchanged (on create: the default)."""
6210
+
6211
+ _fields: ClassVar[tuple[str, ...]] = ("columns", "collapsedByDefault")
6212
+
6213
+ columns: int | None = None
6214
+ collapsedByDefault: bool | None = None
6215
+
6216
+
6054
6217
  class StatusPageSettings(Model):
6055
6218
  """Per-page display customization. Typed rather than a free-form map; unknown keys are rejected on write (VALIDATION_ERROR)."""
6056
6219
 
6057
- _fields: ClassVar[tuple[str, ...]] = ("availability", "theme")
6220
+ _fields: ClassVar[tuple[str, ...]] = ("availability", "theme", "subscriptions")
6058
6221
  _nested: ClassVar[dict[str, tuple[str, str]]] = {
6059
6222
  "availability": ("one", "AvailabilitySettings"),
6060
6223
  "theme": ("one", "ThemeSettings"),
6224
+ "subscriptions": ("one", "SubscriptionsSettings"),
6061
6225
  }
6062
6226
 
6063
6227
  availability: AvailabilitySettings | None = None
6064
6228
  theme: ThemeSettings | None = None
6229
+ subscriptions: SubscriptionsSettings | None = None
6065
6230
 
6066
6231
 
6067
6232
  class StatusPageSubscribeRequest(Model):
@@ -6139,7 +6304,7 @@ class StatusPageSummary(Model):
6139
6304
  }
6140
6305
  # Values known at generation time; any other is accepted.
6141
6306
  _known_values: ClassVar[dict[str, tuple[str, ...]]] = {
6142
- "status": ("operational", "degraded", "down", "maintenance", "unknown")
6307
+ "status": ("operational", "degraded", "partial", "down", "maintenance", "unknown")
6143
6308
  }
6144
6309
 
6145
6310
  status: str | None = None
@@ -6250,6 +6415,14 @@ class StatusUpdatePublic(Model):
6250
6415
  publishedAt: str | None = None
6251
6416
 
6252
6417
 
6418
+ class SubscriptionsSettings(Model):
6419
+ """Visitor subscription widget of a status page (email double opt-in and RSS/Atom link). Replaced as a whole on update; null resets it."""
6420
+
6421
+ _fields: ClassVar[tuple[str, ...]] = ("hidden",)
6422
+
6423
+ hidden: bool | None = None
6424
+
6425
+
6253
6426
  class SupportMessage(Model):
6254
6427
  _fields: ClassVar[tuple[str, ...]] = (
6255
6428
  "uid",
@@ -6435,6 +6608,7 @@ class ThemeTokens(Model):
6435
6608
  "border",
6436
6609
  "statusOk",
6437
6610
  "statusWarning",
6611
+ "statusPartial",
6438
6612
  "statusError",
6439
6613
  )
6440
6614
 
@@ -6447,6 +6621,7 @@ class ThemeTokens(Model):
6447
6621
  border: str | None = None
6448
6622
  statusOk: str | None = None
6449
6623
  statusWarning: str | None = None
6624
+ statusPartial: str | None = None
6450
6625
  statusError: str | None = None
6451
6626
 
6452
6627
 
@@ -6658,7 +6833,16 @@ class UpdateEscalationPolicyRequest(Model):
6658
6833
  class UpdateIncidentPublicationRequest(Model):
6659
6834
  """PATCH semantics. ANY field present stamps human_touched_at, which stops the auto-resolve pipeline from closing the incident behind the operator's back."""
6660
6835
 
6661
- _fields: ClassVar[tuple[str, ...]] = ("translations", "title", "state", "severity")
6836
+ _fields: ClassVar[tuple[str, ...]] = (
6837
+ "translations",
6838
+ "title",
6839
+ "state",
6840
+ "severity",
6841
+ "components",
6842
+ )
6843
+ _nested: ClassVar[dict[str, tuple[str, str]]] = {
6844
+ "components": ("list", "ComponentImpactRequest")
6845
+ }
6662
6846
  # Values known at generation time; any other is accepted.
6663
6847
  _known_values: ClassVar[dict[str, tuple[str, ...]]] = {
6664
6848
  "state": ("investigating", "identified", "monitoring", "resolved")
@@ -6668,6 +6852,7 @@ class UpdateIncidentPublicationRequest(Model):
6668
6852
  title: str | None = None
6669
6853
  state: str | None = None
6670
6854
  severity: str | None = None
6855
+ components: list[ComponentImpactRequest] | None = None
6671
6856
 
6672
6857
 
6673
6858
  class UpdateMaintenanceWindowRequest(Model):
@@ -6939,14 +7124,16 @@ class UpdateStatusPageResourceRequest(Model):
6939
7124
 
6940
7125
 
6941
7126
  class UpdateStatusPageSectionRequest(Model):
6942
- _fields: ClassVar[tuple[str, ...]] = ("name", "slug", "position", "selector")
7127
+ _fields: ClassVar[tuple[str, ...]] = ("name", "slug", "position", "settings", "selector")
6943
7128
  _nested: ClassVar[dict[str, tuple[str, str]]] = {
6944
- "selector": ("one", "UpdateStatusPageSectionRequestSelector")
7129
+ "settings": ("one", "StatusPageSectionSettingsInput"),
7130
+ "selector": ("one", "UpdateStatusPageSectionRequestSelector"),
6945
7131
  }
6946
7132
 
6947
7133
  name: str | None = None
6948
7134
  slug: str | None = None
6949
7135
  position: int | None = None
7136
+ settings: StatusPageSectionSettingsInput | None = None
6950
7137
  selector: UpdateStatusPageSectionRequestSelector | None = None
6951
7138
 
6952
7139
 
@@ -7086,6 +7273,28 @@ class UpsertCheckRequest(Model):
7086
7273
  dependsOn: list[ExportedDependency] | None = None
7087
7274
 
7088
7275
 
7276
+ class UsageResponse(Model):
7277
+ _fields: ClassVar[tuple[str, ...]] = (
7278
+ "enabled",
7279
+ "disabledReason",
7280
+ "endpoint",
7281
+ "optOutEnvVar",
7282
+ "nextPingAt",
7283
+ "lastSentAt",
7284
+ "lastStatus",
7285
+ "payload",
7286
+ )
7287
+
7288
+ enabled: bool | None = None
7289
+ disabledReason: str | None = None
7290
+ endpoint: str | None = None
7291
+ optOutEnvVar: str | None = None
7292
+ nextPingAt: str | None = None
7293
+ lastSentAt: str | None = None
7294
+ lastStatus: str | None = None
7295
+ payload: dict[str, Any] | None = None
7296
+
7297
+
7089
7298
  class UserPreferences(Model):
7090
7299
  """What the user picked: the language and timezone of their emails, and dashboard settings that follow them across browsers. Present on /auth/me and every login response, `{}` when nothing is set (emails then use English and UTC, the dashboard its defaults)."""
7091
7300
 
@@ -1577,6 +1577,16 @@ OPERATIONS: dict[str, Operation] = {
1577
1577
  response_model="SystemParameter",
1578
1578
  item_model=None,
1579
1579
  ),
1580
+ "getUsage": Operation(
1581
+ operation_id="getUsage",
1582
+ method="GET",
1583
+ path="/api/v1/system/usage",
1584
+ path_params=(),
1585
+ query_params=(),
1586
+ request_model=None,
1587
+ response_model="UsageResponse",
1588
+ item_model=None,
1589
+ ),
1580
1590
  "getVersion": Operation(
1581
1591
  operation_id="getVersion",
1582
1592
  method="GET",
@@ -2544,6 +2554,16 @@ OPERATIONS: dict[str, Operation] = {
2544
2554
  response_model="SupportMessage",
2545
2555
  item_model=None,
2546
2556
  ),
2557
+ "resetCheckHistory": Operation(
2558
+ operation_id="resetCheckHistory",
2559
+ method="DELETE",
2560
+ path="/api/v1/orgs/{org}/checks/{checkUid}/results",
2561
+ path_params=("org", "checkUid"),
2562
+ query_params=("before", "dryRun"),
2563
+ request_model=None,
2564
+ response_model="ResetCheckHistoryResponse",
2565
+ item_model=None,
2566
+ ),
2547
2567
  "resetPassword": Operation(
2548
2568
  operation_id="resetPassword",
2549
2569
  method="POST",
@@ -1 +0,0 @@
1
- {".":"0.2.0"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes