solidping 0.2.0__tar.gz → 0.3.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.3.0}/.github/workflows/ci.yml +3 -3
  2. {solidping-0.2.0 → solidping-0.3.0}/.github/workflows/regenerate.yml +1 -1
  3. {solidping-0.2.0 → solidping-0.3.0}/.github/workflows/release-please.yml +1 -1
  4. solidping-0.3.0/.release-please-manifest.json +1 -0
  5. {solidping-0.2.0 → solidping-0.3.0}/CHANGELOG.md +7 -0
  6. {solidping-0.2.0 → solidping-0.3.0}/Makefile +1 -1
  7. {solidping-0.2.0 → solidping-0.3.0}/PKG-INFO +1 -1
  8. {solidping-0.2.0 → solidping-0.3.0}/openapi/openapi.yaml +271 -4
  9. {solidping-0.2.0 → solidping-0.3.0}/pyproject.toml +1 -1
  10. {solidping-0.2.0 → solidping-0.3.0}/src/solidping/_generated/models.py +179 -9
  11. {solidping-0.2.0 → solidping-0.3.0}/src/solidping/_generated/operations.py +10 -0
  12. solidping-0.2.0/.release-please-manifest.json +0 -1
  13. {solidping-0.2.0 → solidping-0.3.0}/.github/renovate.json +0 -0
  14. {solidping-0.2.0 → solidping-0.3.0}/.github/workflows/pr-title.yml +0 -0
  15. {solidping-0.2.0 → solidping-0.3.0}/.gitignore +0 -0
  16. {solidping-0.2.0 → solidping-0.3.0}/AGENTS.md +0 -0
  17. {solidping-0.2.0 → solidping-0.3.0}/CLAUDE.md +0 -0
  18. {solidping-0.2.0 → solidping-0.3.0}/LICENSE +0 -0
  19. {solidping-0.2.0 → solidping-0.3.0}/README.md +0 -0
  20. {solidping-0.2.0 → solidping-0.3.0}/release-please-config.json +0 -0
  21. {solidping-0.2.0 → solidping-0.3.0}/scripts/generate.py +0 -0
  22. {solidping-0.2.0 → solidping-0.3.0}/specs/done/2026/11/2026-11-29-01-python-sdk-from-openapi.md +0 -0
  23. {solidping-0.2.0 → solidping-0.3.0}/specs/todos/.gitkeep +0 -0
  24. {solidping-0.2.0 → solidping-0.3.0}/src/solidping/__init__.py +0 -0
  25. {solidping-0.2.0 → solidping-0.3.0}/src/solidping/_client.py +0 -0
  26. {solidping-0.2.0 → solidping-0.3.0}/src/solidping/_errors.py +0 -0
  27. {solidping-0.2.0 → solidping-0.3.0}/src/solidping/_generated/__init__.py +0 -0
  28. {solidping-0.2.0 → solidping-0.3.0}/src/solidping/_model.py +0 -0
  29. {solidping-0.2.0 → solidping-0.3.0}/src/solidping/_operation.py +0 -0
  30. {solidping-0.2.0 → solidping-0.3.0}/src/solidping/_pagination.py +0 -0
  31. {solidping-0.2.0 → solidping-0.3.0}/src/solidping/_retry.py +0 -0
  32. {solidping-0.2.0 → solidping-0.3.0}/src/solidping/py.typed +0 -0
  33. {solidping-0.2.0 → solidping-0.3.0}/src/solidping/resources/__init__.py +0 -0
  34. {solidping-0.2.0 → solidping-0.3.0}/src/solidping/resources/_base.py +0 -0
  35. {solidping-0.2.0 → solidping-0.3.0}/src/solidping/resources/channels.py +0 -0
  36. {solidping-0.2.0 → solidping-0.3.0}/src/solidping/resources/checks.py +0 -0
  37. {solidping-0.2.0 → solidping-0.3.0}/src/solidping/resources/incidents.py +0 -0
  38. {solidping-0.2.0 → solidping-0.3.0}/src/solidping/resources/maintenance_windows.py +0 -0
  39. {solidping-0.2.0 → solidping-0.3.0}/src/solidping/resources/status_pages.py +0 -0
  40. {solidping-0.2.0 → solidping-0.3.0}/tests/__init__.py +0 -0
  41. {solidping-0.2.0 → solidping-0.3.0}/tests/conftest.py +0 -0
  42. {solidping-0.2.0 → solidping-0.3.0}/tests/test_errors.py +0 -0
  43. {solidping-0.2.0 → solidping-0.3.0}/tests/test_logging.py +0 -0
  44. {solidping-0.2.0 → solidping-0.3.0}/tests/test_models.py +0 -0
  45. {solidping-0.2.0 → solidping-0.3.0}/tests/test_pagination.py +0 -0
  46. {solidping-0.2.0 → solidping-0.3.0}/tests/test_quickstart.py +0 -0
  47. {solidping-0.2.0 → solidping-0.3.0}/tests/test_resources.py +0 -0
  48. {solidping-0.2.0 → solidping-0.3.0}/tests/test_retry.py +0 -0
  49. {solidping-0.2.0 → solidping-0.3.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.3.0"}
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.3.0](https://github.com/fclairamb/solidping-python/compare/v0.2.0...v0.3.0) (2026-12-03)
4
+
5
+
6
+ ### Features
7
+
8
+ * **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))
9
+
3
10
  ## [0.2.0](https://github.com/fclairamb/solidping-python/compare/v0.1.0...v0.2.0) (2026-12-03)
4
11
 
5
12
 
@@ -1,5 +1,5 @@
1
1
  # renovate: datasource=github-releases depName=fclairamb/solidping
2
- SOLIDPING_VERSION = v0.62.1
2
+ SOLIDPING_VERSION = v0.64.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.3.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
@@ -2603,6 +2603,62 @@ paths:
2603
2603
  "422":
2604
2604
  $ref: "#/components/responses/ValidationError"
2605
2605
 
2606
+ /api/v1/orgs/{org}/checks/{checkUid}/results:
2607
+ delete:
2608
+ tags: [Checks]
2609
+ summary: Reset the history of a check before a date
2610
+ description: >-
2611
+ Deletes the history of the check before `before`: its results, raw
2612
+ and aggregated, the archive files of the deleted hours and days (when
2613
+ the result archive is on), and its incidents resolved before the date
2614
+ with their status page publications. An incident still open, or
2615
+ resolved after the date, stays. The current status of the check is not
2616
+ touched. Results are rolled up into hourly, daily and monthly buckets,
2617
+ and a bucket cannot be split: when `before` falls inside one, the whole
2618
+ bucket is deleted and `effectiveBefore` is its end. A date in the
2619
+ future means now: a full wipe is the call with the date set to now.
2620
+ SLOs, badges and status pages read the same results, so they follow;
2621
+ public pages catch up when their HTTP cache expires. A
2622
+ `check.history_reset` event records the user and the dates in the
2623
+ audit log. Org admins only.
2624
+ operationId: resetCheckHistory
2625
+ security:
2626
+ - bearerAuth: []
2627
+ parameters:
2628
+ - $ref: "#/components/parameters/OrgPath"
2629
+ - $ref: "#/components/parameters/CheckUidPath"
2630
+ - name: before
2631
+ in: query
2632
+ required: true
2633
+ description: RFC 3339 date; the history before it is deleted.
2634
+ schema:
2635
+ type: string
2636
+ format: date-time
2637
+ example: "2026-12-01T00:00:00Z"
2638
+ - name: dryRun
2639
+ in: query
2640
+ description: >-
2641
+ `true` deletes nothing and returns the effective date and the
2642
+ counts a reset would have now (the dashboard shows them in its
2643
+ confirmation).
2644
+ schema:
2645
+ type: boolean
2646
+ responses:
2647
+ "200":
2648
+ description: History reset (or, with dryRun, what a reset would delete)
2649
+ content:
2650
+ application/json:
2651
+ schema:
2652
+ $ref: "#/components/schemas/ResetCheckHistoryResponse"
2653
+ "401":
2654
+ $ref: "#/components/responses/Unauthorized"
2655
+ "403":
2656
+ $ref: "#/components/responses/Forbidden"
2657
+ "404":
2658
+ $ref: "#/components/responses/NotFound"
2659
+ "422":
2660
+ $ref: "#/components/responses/ValidationError"
2661
+
2606
2662
  /api/v1/orgs/{org}/checks/{checkUid}/rotate-token:
2607
2663
  post:
2608
2664
  tags: [Checks]
@@ -15164,6 +15220,37 @@ components:
15164
15220
  the field existed. A hint: a `true` row whose file was deleted
15165
15221
  simply has no detail.
15166
15222
 
15223
+ ResetCheckHistoryResponse:
15224
+ type: object
15225
+ required: [checkUid, before, effectiveBefore, deletedResults, deletedIncidents, deletedPublications, dryRun]
15226
+ properties:
15227
+ checkUid:
15228
+ type: string
15229
+ format: uuid
15230
+ before:
15231
+ type: string
15232
+ format: date-time
15233
+ description: The requested date (now when a future date was asked).
15234
+ effectiveBefore:
15235
+ type: string
15236
+ format: date-time
15237
+ description: >-
15238
+ The date the history is reset before: the end of the aggregated
15239
+ bucket `before` falls in, else `before`.
15240
+ deletedResults:
15241
+ type: integer
15242
+ format: int64
15243
+ description: Result rows deleted, raw and aggregated.
15244
+ deletedIncidents:
15245
+ type: integer
15246
+ description: Resolved incidents deleted.
15247
+ deletedPublications:
15248
+ type: integer
15249
+ description: Status page publications withdrawn with them.
15250
+ dryRun:
15251
+ type: boolean
15252
+ description: True when nothing was deleted.
15253
+
15167
15254
  GetOrgResultResponse:
15168
15255
  description: >
15169
15256
  Single-result detail response. Extends OrgResult with all optional
@@ -16685,7 +16772,7 @@ components:
16685
16772
  format: date-time
16686
16773
  overallStatus:
16687
16774
  type: string
16688
- enum: [operational, degraded, down, maintenance, unknown]
16775
+ enum: [operational, degraded, partial, down, maintenance, unknown]
16689
16776
  description: >-
16690
16777
  Page-level rollup computed server-side from the live status of
16691
16778
  every resource on the page, so the public views, the summary
@@ -16828,11 +16915,99 @@ components:
16828
16915
  contain names the page already renders.
16829
16916
  items:
16830
16917
  type: string
16918
+ components:
16919
+ type: array
16920
+ description: >-
16921
+ The affected components and their current impact level, worst
16922
+ first. Empty when the incident declares none.
16923
+ items:
16924
+ $ref: "#/components/schemas/PublicComponentImpact"
16831
16925
  updates:
16832
16926
  type: array
16833
16927
  items:
16834
16928
  $ref: "#/components/schemas/PublicIncidentUpdate"
16835
16929
 
16930
+ ComponentImpact:
16931
+ type: string
16932
+ enum: [operational, degraded_performance, partial_outage, major_outage]
16933
+ description: >-
16934
+ Impact level an incident declares on a status page component, worst
16935
+ last. While the incident is open, a declared level replaces the
16936
+ component's live status on the public page and in the page rollup
16937
+ (`degraded_performance` → degraded, `partial_outage` → partial,
16938
+ `major_outage` → down). Uptime numbers never change: they keep reading
16939
+ probe results. `operational` removes the component from the incident.
16940
+
16941
+ PublicComponentImpact:
16942
+ type: object
16943
+ required: [resourceUid, name, impact, since]
16944
+ properties:
16945
+ resourceUid:
16946
+ type: string
16947
+ format: uuid
16948
+ description: The status page resource (component).
16949
+ name:
16950
+ type: string
16951
+ description: The component's public display name.
16952
+ impact:
16953
+ $ref: "#/components/schemas/ComponentImpact"
16954
+ since:
16955
+ type: string
16956
+ format: date-time
16957
+
16958
+ PublicationComponent:
16959
+ allOf:
16960
+ - $ref: "#/components/schemas/PublicComponentImpact"
16961
+ - type: object
16962
+ properties:
16963
+ setBy:
16964
+ type: string
16965
+ description: >-
16966
+ Display name of the user who set the level. Absent when the
16967
+ auto-publish automation set it, or a caller without a user
16968
+ (see setByKind).
16969
+ setByUid:
16970
+ type: string
16971
+ format: uuid
16972
+ setByKind:
16973
+ type: string
16974
+ enum: [user, api_token]
16975
+ description: >-
16976
+ Who set the level: a user, or an API token without a user
16977
+ (MCP). Absent only when the auto-publish automation set it;
16978
+ the automation never overwrites a level whose setByKind is set.
16979
+
16980
+ ComponentChange:
16981
+ type: object
16982
+ required: [resourceUid, name, from, to]
16983
+ description: >-
16984
+ One impact change an update made. `from` is `operational` when the
16985
+ component was not affected yet; `to` is `operational` when it was
16986
+ removed (resolving closes every level).
16987
+ properties:
16988
+ resourceUid:
16989
+ type: string
16990
+ format: uuid
16991
+ name:
16992
+ type: string
16993
+ from:
16994
+ $ref: "#/components/schemas/ComponentImpact"
16995
+ to:
16996
+ $ref: "#/components/schemas/ComponentImpact"
16997
+
16998
+ ComponentImpactRequest:
16999
+ type: object
17000
+ required: [resourceUid, impact]
17001
+ properties:
17002
+ resourceUid:
17003
+ type: string
17004
+ format: uuid
17005
+ description: >-
17006
+ A resource of the publication's status page. Any other UID is
17007
+ refused with 422 VALIDATION_ERROR.
17008
+ impact:
17009
+ $ref: "#/components/schemas/ComponentImpact"
17010
+
16836
17011
  PublicIncidentUpdate:
16837
17012
  type: object
16838
17013
  required: [uid, kind, title, bodyMarkdown, publishedAt]
@@ -16856,6 +17031,10 @@ components:
16856
17031
  publishedAt:
16857
17032
  type: string
16858
17033
  format: date-time
17034
+ componentChanges:
17035
+ type: array
17036
+ items:
17037
+ $ref: "#/components/schemas/ComponentChange"
16859
17038
 
16860
17039
  IncidentPublication:
16861
17040
  type: object
@@ -16926,6 +17105,11 @@ components:
16926
17105
  type: array
16927
17106
  items:
16928
17107
  type: string
17108
+ components:
17109
+ type: array
17110
+ description: The affected components and their current impact level, worst first.
17111
+ items:
17112
+ $ref: "#/components/schemas/PublicationComponent"
16929
17113
  updates:
16930
17114
  type: array
16931
17115
  items:
@@ -16961,6 +17145,11 @@ components:
16961
17145
  Absent for updates generated by the auto-publish pipeline — a
16962
17146
  machine post has no author, and attributing it to a human would be
16963
17147
  a lie the UI then renders.
17148
+ componentChanges:
17149
+ type: array
17150
+ description: The component impact changes this update made.
17151
+ items:
17152
+ $ref: "#/components/schemas/ComponentChange"
16964
17153
 
16965
17154
  IncidentPublicationListResponse:
16966
17155
  type: object
@@ -17003,6 +17192,13 @@ components:
17003
17192
  type: string
17004
17193
  maxLength: 16384
17005
17194
  description: Optional first narrative entry.
17195
+ components:
17196
+ type: array
17197
+ description: >-
17198
+ Affected components and their impact level. A hand-written
17199
+ incident needs no linked incident to name components.
17200
+ items:
17201
+ $ref: "#/components/schemas/ComponentImpactRequest"
17006
17202
 
17007
17203
  UpdateIncidentPublicationRequest:
17008
17204
  type: object
@@ -17029,10 +17225,18 @@ components:
17029
17225
  description: >-
17030
17226
  One of minor | major | critical, or an empty string to clear the
17031
17227
  badge.
17228
+ components:
17229
+ type: array
17230
+ description: >-
17231
+ Changes the listed components' impact levels (`operational`
17232
+ removes one); unlisted components keep theirs. Resolving the
17233
+ publication closes every level.
17234
+ items:
17235
+ $ref: "#/components/schemas/ComponentImpactRequest"
17032
17236
 
17033
17237
  AppendPublicationUpdateRequest:
17034
17238
  type: object
17035
- required: [kind, bodyMarkdown]
17239
+ required: [kind]
17036
17240
  description: >-
17037
17241
  Updates are APPEND-ONLY: there is deliberately no edit and no delete
17038
17242
  endpoint for them.
@@ -17049,6 +17253,14 @@ components:
17049
17253
  bodyMarkdown:
17050
17254
  type: string
17051
17255
  maxLength: 16384
17256
+ description: Required unless the update changes components.
17257
+ components:
17258
+ type: array
17259
+ description: >-
17260
+ Impact changes made with this update, in the same transaction. A
17261
+ `resolved` update closes every level instead.
17262
+ items:
17263
+ $ref: "#/components/schemas/ComponentImpactRequest"
17052
17264
 
17053
17265
  PublishIncidentRequest:
17054
17266
  type: object
@@ -17070,13 +17282,16 @@ components:
17070
17282
 
17071
17283
  StatusCounts:
17072
17284
  type: object
17073
- required: [operational, degraded, down, maintenance, unknown]
17285
+ required: [operational, degraded, partial, down, maintenance, unknown]
17074
17286
  description: Tallies the page's resources per overallStatus category.
17075
17287
  properties:
17076
17288
  operational:
17077
17289
  type: integer
17078
17290
  degraded:
17079
17291
  type: integer
17292
+ partial:
17293
+ type: integer
17294
+ description: Resources an open incident declares in partial outage.
17080
17295
  down:
17081
17296
  type: integer
17082
17297
  maintenance:
@@ -17094,7 +17309,7 @@ components:
17094
17309
  properties:
17095
17310
  status:
17096
17311
  type: string
17097
- enum: [operational, degraded, down, maintenance, unknown]
17312
+ enum: [operational, degraded, partial, down, maintenance, unknown]
17098
17313
  counts:
17099
17314
  $ref: "#/components/schemas/StatusCounts"
17100
17315
  overallAvailabilityPct:
@@ -17175,6 +17390,10 @@ components:
17175
17390
  statusWarning:
17176
17391
  type: string
17177
17392
  pattern: "^#[0-9a-fA-F]{6}$"
17393
+ statusPartial:
17394
+ type: string
17395
+ pattern: "^#[0-9a-fA-F]{6}$"
17396
+ description: Partial outage color (a declared component impact).
17178
17397
  statusError:
17179
17398
  type: string
17180
17399
  pattern: "^#[0-9a-fA-F]{6}$"
@@ -17478,6 +17697,37 @@ components:
17478
17697
  (VALIDATION_ERROR). The effective thresholds (submitted or
17479
17698
  default) must satisfy 0 < thresholdDegraded < thresholdUp <= 100.
17480
17699
 
17700
+ StatusPageSectionSettings:
17701
+ type: object
17702
+ required: [columns, collapsedByDefault]
17703
+ description: Display settings of a section, on admin and public payloads.
17704
+ properties:
17705
+ columns:
17706
+ type: integer
17707
+ minimum: 1
17708
+ maximum: 3
17709
+ description: >-
17710
+ Number of columns the public page lays the section's rows out in.
17711
+ 1 when unset. Phones always show one column.
17712
+ collapsedByDefault:
17713
+ type: boolean
17714
+ description: >-
17715
+ The public page starts the section closed, unless the section is
17716
+ not fully operational (it then always opens). False when unset.
17717
+
17718
+ StatusPageSectionSettingsInput:
17719
+ type: object
17720
+ description: >-
17721
+ Display settings of a section. Omit the object, or a key in it, to
17722
+ leave it unchanged (on create: the default).
17723
+ properties:
17724
+ columns:
17725
+ type: integer
17726
+ description: 1, 2 or 3. Any other value is a VALIDATION_ERROR.
17727
+ collapsedByDefault:
17728
+ type: boolean
17729
+ description: Start the section closed on the public page. Defaults to false.
17730
+
17481
17731
  StatusPageSection:
17482
17732
  type: object
17483
17733
  required: [uid, name, slug, position]
@@ -17491,6 +17741,17 @@ components:
17491
17741
  type: string
17492
17742
  position:
17493
17743
  type: integer
17744
+ settings:
17745
+ $ref: "#/components/schemas/StatusPageSectionSettings"
17746
+ status:
17747
+ type: string
17748
+ enum: [operational, degraded, partial, down, maintenance, unknown]
17749
+ description: >-
17750
+ The section's own live status, computed by the server from the same
17751
+ inputs as the page's `overallStatus`. An empty section is
17752
+ `operational`. Public view payloads only.
17753
+ statusCounts:
17754
+ $ref: "#/components/schemas/StatusCounts"
17494
17755
  selector:
17495
17756
  allOf:
17496
17757
  - $ref: "#/components/schemas/StatusPageSectionSelector"
@@ -17596,6 +17857,8 @@ components:
17596
17857
  collision returns VALIDATION_ERROR instead.
17597
17858
  position:
17598
17859
  type: integer
17860
+ settings:
17861
+ $ref: "#/components/schemas/StatusPageSectionSettingsInput"
17599
17862
  selector:
17600
17863
  allOf:
17601
17864
  - $ref: "#/components/schemas/StatusPageSectionSelector"
@@ -17612,6 +17875,8 @@ components:
17612
17875
  type: string
17613
17876
  position:
17614
17877
  type: integer
17878
+ settings:
17879
+ $ref: "#/components/schemas/StatusPageSectionSettingsInput"
17615
17880
  selector:
17616
17881
  allOf:
17617
17882
  - $ref: "#/components/schemas/StatusPageSectionSelector"
@@ -17677,6 +17942,8 @@ components:
17677
17942
  context.
17678
17943
  position:
17679
17944
  type: integer
17945
+ impact:
17946
+ $ref: "#/components/schemas/ComponentImpact"
17680
17947
  createdAt:
17681
17948
  type: string
17682
17949
  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.3.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
 
@@ -4927,6 +4978,19 @@ class PromoteChecksRequestOverrides(Model):
4927
4978
  period: str | None = None
4928
4979
 
4929
4980
 
4981
+ class PublicComponentImpact(Model):
4982
+ _fields: ClassVar[tuple[str, ...]] = ("resourceUid", "name", "impact", "since")
4983
+ # Values known at generation time; any other is accepted.
4984
+ _known_values: ClassVar[dict[str, tuple[str, ...]]] = {
4985
+ "impact": ("operational", "degraded_performance", "partial_outage", "major_outage")
4986
+ }
4987
+
4988
+ resourceUid: str | None = None
4989
+ name: str | None = None
4990
+ impact: str | None = None
4991
+ since: str | None = None
4992
+
4993
+
4930
4994
  class PublicConfigResponse(Model):
4931
4995
  """Browser-safe public configuration. Designed as a general-purpose blob:"""
4932
4996
 
@@ -5017,11 +5081,13 @@ class PublicIncident(Model):
5017
5081
  "startedAt",
5018
5082
  "resolvedAt",
5019
5083
  "affectedResources",
5084
+ "components",
5020
5085
  "updates",
5021
5086
  )
5022
5087
  _nested: ClassVar[dict[str, tuple[str, str]]] = {
5023
5088
  "translations": ("map", "TranslationEntry"),
5024
5089
  "titleI18n": ("one", "LocalizedText"),
5090
+ "components": ("list", "PublicComponentImpact"),
5025
5091
  "updates": ("list", "PublicIncidentUpdate"),
5026
5092
  }
5027
5093
  # Values known at generation time; any other is accepted.
@@ -5039,6 +5105,7 @@ class PublicIncident(Model):
5039
5105
  startedAt: str | None = None
5040
5106
  resolvedAt: str | None = None
5041
5107
  affectedResources: list[str] | None = None
5108
+ components: list[PublicComponentImpact] | None = None
5042
5109
  updates: list[PublicIncidentUpdate] | None = None
5043
5110
 
5044
5111
 
@@ -5059,11 +5126,13 @@ class PublicIncidentUpdate(Model):
5059
5126
  "bodyMarkdown",
5060
5127
  "bodyI18n",
5061
5128
  "publishedAt",
5129
+ "componentChanges",
5062
5130
  )
5063
5131
  _nested: ClassVar[dict[str, tuple[str, str]]] = {
5064
5132
  "translations": ("map", "TranslationEntry"),
5065
5133
  "titleI18n": ("one", "LocalizedText"),
5066
5134
  "bodyI18n": ("one", "LocalizedText"),
5135
+ "componentChanges": ("list", "ComponentChange"),
5067
5136
  }
5068
5137
  # Values known at generation time; any other is accepted.
5069
5138
  _known_values: ClassVar[dict[str, tuple[str, ...]]] = {
@@ -5078,6 +5147,7 @@ class PublicIncidentUpdate(Model):
5078
5147
  bodyMarkdown: str | None = None
5079
5148
  bodyI18n: LocalizedText | None = None
5080
5149
  publishedAt: str | None = None
5150
+ componentChanges: list[ComponentChange] | None = None
5081
5151
 
5082
5152
 
5083
5153
  class PublicMaintenance(Model):
@@ -5128,6 +5198,31 @@ class PublicWhatsAppConfig(Model):
5128
5198
  enabled: bool | None = None
5129
5199
 
5130
5200
 
5201
+ class PublicationComponent(Model):
5202
+ _fields: ClassVar[tuple[str, ...]] = (
5203
+ "resourceUid",
5204
+ "name",
5205
+ "impact",
5206
+ "since",
5207
+ "setBy",
5208
+ "setByUid",
5209
+ "setByKind",
5210
+ )
5211
+ # Values known at generation time; any other is accepted.
5212
+ _known_values: ClassVar[dict[str, tuple[str, ...]]] = {
5213
+ "impact": ("operational", "degraded_performance", "partial_outage", "major_outage"),
5214
+ "setByKind": ("user", "api_token"),
5215
+ }
5216
+
5217
+ resourceUid: str | None = None
5218
+ name: str | None = None
5219
+ impact: str | None = None
5220
+ since: str | None = None
5221
+ setBy: str | None = None
5222
+ setByUid: str | None = None
5223
+ setByKind: str | None = None
5224
+
5225
+
5131
5226
  class PublicationUpdate(Model):
5132
5227
  _fields: ClassVar[tuple[str, ...]] = (
5133
5228
  "translations",
@@ -5139,11 +5234,13 @@ class PublicationUpdate(Model):
5139
5234
  "bodyI18n",
5140
5235
  "publishedAt",
5141
5236
  "authorUid",
5237
+ "componentChanges",
5142
5238
  )
5143
5239
  _nested: ClassVar[dict[str, tuple[str, str]]] = {
5144
5240
  "translations": ("map", "TranslationEntry"),
5145
5241
  "titleI18n": ("one", "LocalizedText"),
5146
5242
  "bodyI18n": ("one", "LocalizedText"),
5243
+ "componentChanges": ("list", "ComponentChange"),
5147
5244
  }
5148
5245
  # Values known at generation time; any other is accepted.
5149
5246
  _known_values: ClassVar[dict[str, tuple[str, ...]]] = {
@@ -5159,6 +5256,7 @@ class PublicationUpdate(Model):
5159
5256
  bodyI18n: LocalizedText | None = None
5160
5257
  publishedAt: str | None = None
5161
5258
  authorUid: str | None = None
5259
+ componentChanges: list[ComponentChange] | None = None
5162
5260
 
5163
5261
 
5164
5262
  class PublishIncidentRequest(Model):
@@ -5393,6 +5491,26 @@ class RequestPasswordResetRequest(Model):
5393
5491
  email: str | None = None
5394
5492
 
5395
5493
 
5494
+ class ResetCheckHistoryResponse(Model):
5495
+ _fields: ClassVar[tuple[str, ...]] = (
5496
+ "checkUid",
5497
+ "before",
5498
+ "effectiveBefore",
5499
+ "deletedResults",
5500
+ "deletedIncidents",
5501
+ "deletedPublications",
5502
+ "dryRun",
5503
+ )
5504
+
5505
+ checkUid: str | None = None
5506
+ before: str | None = None
5507
+ effectiveBefore: str | None = None
5508
+ deletedResults: int | None = None
5509
+ deletedIncidents: int | None = None
5510
+ deletedPublications: int | None = None
5511
+ dryRun: bool | None = None
5512
+
5513
+
5396
5514
  class ResetPasswordRequest(Model):
5397
5515
  _fields: ClassVar[tuple[str, ...]] = ("token", "password")
5398
5516
 
@@ -5793,6 +5911,7 @@ class StatusCounts(Model):
5793
5911
  _fields: ClassVar[tuple[str, ...]] = (
5794
5912
  "operational",
5795
5913
  "degraded",
5914
+ "partial",
5796
5915
  "down",
5797
5916
  "maintenance",
5798
5917
  "unknown",
@@ -5800,6 +5919,7 @@ class StatusCounts(Model):
5800
5919
 
5801
5920
  operational: int | None = None
5802
5921
  degraded: int | None = None
5922
+ partial: int | None = None
5803
5923
  down: int | None = None
5804
5924
  maintenance: int | None = None
5805
5925
  unknown: int | None = None
@@ -5871,7 +5991,7 @@ class StatusPage(Model):
5871
5991
  "customDomainStatus": ("unverified", "verified"),
5872
5992
  "customDomainCertStatus": ("none", "issued", "error"),
5873
5993
  "customDomainState": ("none", "pending", "active", "grace", "demoted"),
5874
- "overallStatus": ("operational", "degraded", "down", "maintenance", "unknown"),
5994
+ "overallStatus": ("operational", "degraded", "partial", "down", "maintenance", "unknown"),
5875
5995
  }
5876
5996
 
5877
5997
  uid: str | None = None
@@ -5985,8 +6105,13 @@ class StatusPageResource(Model):
5985
6105
  "autoPublish",
5986
6106
  "managedBySelector",
5987
6107
  "position",
6108
+ "impact",
5988
6109
  "createdAt",
5989
6110
  )
6111
+ # Values known at generation time; any other is accepted.
6112
+ _known_values: ClassVar[dict[str, tuple[str, ...]]] = {
6113
+ "impact": ("operational", "degraded_performance", "partial_outage", "major_outage")
6114
+ }
5990
6115
 
5991
6116
  uid: str | None = None
5992
6117
  checkUid: str | None = None
@@ -5996,6 +6121,7 @@ class StatusPageResource(Model):
5996
6121
  autoPublish: bool | None = None
5997
6122
  managedBySelector: bool | None = None
5998
6123
  position: int | None = None
6124
+ impact: str | None = None
5999
6125
  createdAt: str | None = None
6000
6126
 
6001
6127
 
@@ -6012,6 +6138,9 @@ class StatusPageSection(Model):
6012
6138
  "name",
6013
6139
  "slug",
6014
6140
  "position",
6141
+ "settings",
6142
+ "status",
6143
+ "statusCounts",
6015
6144
  "selector",
6016
6145
  "selectorMatchTotal",
6017
6146
  "selectorTruncated",
@@ -6020,14 +6149,23 @@ class StatusPageSection(Model):
6020
6149
  "createdAt",
6021
6150
  )
6022
6151
  _nested: ClassVar[dict[str, tuple[str, str]]] = {
6152
+ "settings": ("one", "StatusPageSectionSettings"),
6153
+ "statusCounts": ("one", "StatusCounts"),
6023
6154
  "selector": ("one", "StatusPageSectionSelector"),
6024
6155
  "resources": ("list", "StatusPageResource"),
6025
6156
  }
6157
+ # Values known at generation time; any other is accepted.
6158
+ _known_values: ClassVar[dict[str, tuple[str, ...]]] = {
6159
+ "status": ("operational", "degraded", "partial", "down", "maintenance", "unknown")
6160
+ }
6026
6161
 
6027
6162
  uid: str | None = None
6028
6163
  name: str | None = None
6029
6164
  slug: str | None = None
6030
6165
  position: int | None = None
6166
+ settings: StatusPageSectionSettings | None = None
6167
+ status: str | None = None
6168
+ statusCounts: StatusCounts | None = None
6031
6169
  selector: StatusPageSectionSelector | None = None
6032
6170
  selectorMatchTotal: int | None = None
6033
6171
  selectorTruncated: bool | None = None
@@ -6051,6 +6189,24 @@ class StatusPageSectionSelector(Model):
6051
6189
  checkGroupUid: str | None = None
6052
6190
 
6053
6191
 
6192
+ class StatusPageSectionSettings(Model):
6193
+ """Display settings of a section, on admin and public payloads."""
6194
+
6195
+ _fields: ClassVar[tuple[str, ...]] = ("columns", "collapsedByDefault")
6196
+
6197
+ columns: int | None = None
6198
+ collapsedByDefault: bool | None = None
6199
+
6200
+
6201
+ class StatusPageSectionSettingsInput(Model):
6202
+ """Display settings of a section. Omit the object, or a key in it, to leave it unchanged (on create: the default)."""
6203
+
6204
+ _fields: ClassVar[tuple[str, ...]] = ("columns", "collapsedByDefault")
6205
+
6206
+ columns: int | None = None
6207
+ collapsedByDefault: bool | None = None
6208
+
6209
+
6054
6210
  class StatusPageSettings(Model):
6055
6211
  """Per-page display customization. Typed rather than a free-form map; unknown keys are rejected on write (VALIDATION_ERROR)."""
6056
6212
 
@@ -6139,7 +6295,7 @@ class StatusPageSummary(Model):
6139
6295
  }
6140
6296
  # Values known at generation time; any other is accepted.
6141
6297
  _known_values: ClassVar[dict[str, tuple[str, ...]]] = {
6142
- "status": ("operational", "degraded", "down", "maintenance", "unknown")
6298
+ "status": ("operational", "degraded", "partial", "down", "maintenance", "unknown")
6143
6299
  }
6144
6300
 
6145
6301
  status: str | None = None
@@ -6435,6 +6591,7 @@ class ThemeTokens(Model):
6435
6591
  "border",
6436
6592
  "statusOk",
6437
6593
  "statusWarning",
6594
+ "statusPartial",
6438
6595
  "statusError",
6439
6596
  )
6440
6597
 
@@ -6447,6 +6604,7 @@ class ThemeTokens(Model):
6447
6604
  border: str | None = None
6448
6605
  statusOk: str | None = None
6449
6606
  statusWarning: str | None = None
6607
+ statusPartial: str | None = None
6450
6608
  statusError: str | None = None
6451
6609
 
6452
6610
 
@@ -6658,7 +6816,16 @@ class UpdateEscalationPolicyRequest(Model):
6658
6816
  class UpdateIncidentPublicationRequest(Model):
6659
6817
  """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
6818
 
6661
- _fields: ClassVar[tuple[str, ...]] = ("translations", "title", "state", "severity")
6819
+ _fields: ClassVar[tuple[str, ...]] = (
6820
+ "translations",
6821
+ "title",
6822
+ "state",
6823
+ "severity",
6824
+ "components",
6825
+ )
6826
+ _nested: ClassVar[dict[str, tuple[str, str]]] = {
6827
+ "components": ("list", "ComponentImpactRequest")
6828
+ }
6662
6829
  # Values known at generation time; any other is accepted.
6663
6830
  _known_values: ClassVar[dict[str, tuple[str, ...]]] = {
6664
6831
  "state": ("investigating", "identified", "monitoring", "resolved")
@@ -6668,6 +6835,7 @@ class UpdateIncidentPublicationRequest(Model):
6668
6835
  title: str | None = None
6669
6836
  state: str | None = None
6670
6837
  severity: str | None = None
6838
+ components: list[ComponentImpactRequest] | None = None
6671
6839
 
6672
6840
 
6673
6841
  class UpdateMaintenanceWindowRequest(Model):
@@ -6939,14 +7107,16 @@ class UpdateStatusPageResourceRequest(Model):
6939
7107
 
6940
7108
 
6941
7109
  class UpdateStatusPageSectionRequest(Model):
6942
- _fields: ClassVar[tuple[str, ...]] = ("name", "slug", "position", "selector")
7110
+ _fields: ClassVar[tuple[str, ...]] = ("name", "slug", "position", "settings", "selector")
6943
7111
  _nested: ClassVar[dict[str, tuple[str, str]]] = {
6944
- "selector": ("one", "UpdateStatusPageSectionRequestSelector")
7112
+ "settings": ("one", "StatusPageSectionSettingsInput"),
7113
+ "selector": ("one", "UpdateStatusPageSectionRequestSelector"),
6945
7114
  }
6946
7115
 
6947
7116
  name: str | None = None
6948
7117
  slug: str | None = None
6949
7118
  position: int | None = None
7119
+ settings: StatusPageSectionSettingsInput | None = None
6950
7120
  selector: UpdateStatusPageSectionRequestSelector | None = None
6951
7121
 
6952
7122
 
@@ -2544,6 +2544,16 @@ OPERATIONS: dict[str, Operation] = {
2544
2544
  response_model="SupportMessage",
2545
2545
  item_model=None,
2546
2546
  ),
2547
+ "resetCheckHistory": Operation(
2548
+ operation_id="resetCheckHistory",
2549
+ method="DELETE",
2550
+ path="/api/v1/orgs/{org}/checks/{checkUid}/results",
2551
+ path_params=("org", "checkUid"),
2552
+ query_params=("before", "dryRun"),
2553
+ request_model=None,
2554
+ response_model="ResetCheckHistoryResponse",
2555
+ item_model=None,
2556
+ ),
2547
2557
  "resetPassword": Operation(
2548
2558
  operation_id="resetPassword",
2549
2559
  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