solidping 0.3.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.4.0/.release-please-manifest.json +1 -0
  2. {solidping-0.3.0 → solidping-0.4.0}/CHANGELOG.md +7 -0
  3. {solidping-0.3.0 → solidping-0.4.0}/Makefile +1 -1
  4. {solidping-0.3.0 → solidping-0.4.0}/PKG-INFO +1 -1
  5. {solidping-0.3.0 → solidping-0.4.0}/openapi/openapi.yaml +72 -0
  6. {solidping-0.3.0 → solidping-0.4.0}/pyproject.toml +1 -1
  7. {solidping-0.3.0 → solidping-0.4.0}/src/solidping/_generated/models.py +41 -2
  8. {solidping-0.3.0 → solidping-0.4.0}/src/solidping/_generated/operations.py +10 -0
  9. solidping-0.3.0/.release-please-manifest.json +0 -1
  10. {solidping-0.3.0 → solidping-0.4.0}/.github/renovate.json +0 -0
  11. {solidping-0.3.0 → solidping-0.4.0}/.github/workflows/ci.yml +0 -0
  12. {solidping-0.3.0 → solidping-0.4.0}/.github/workflows/pr-title.yml +0 -0
  13. {solidping-0.3.0 → solidping-0.4.0}/.github/workflows/regenerate.yml +0 -0
  14. {solidping-0.3.0 → solidping-0.4.0}/.github/workflows/release-please.yml +0 -0
  15. {solidping-0.3.0 → solidping-0.4.0}/.gitignore +0 -0
  16. {solidping-0.3.0 → solidping-0.4.0}/AGENTS.md +0 -0
  17. {solidping-0.3.0 → solidping-0.4.0}/CLAUDE.md +0 -0
  18. {solidping-0.3.0 → solidping-0.4.0}/LICENSE +0 -0
  19. {solidping-0.3.0 → solidping-0.4.0}/README.md +0 -0
  20. {solidping-0.3.0 → solidping-0.4.0}/release-please-config.json +0 -0
  21. {solidping-0.3.0 → solidping-0.4.0}/scripts/generate.py +0 -0
  22. {solidping-0.3.0 → solidping-0.4.0}/specs/done/2026/11/2026-11-29-01-python-sdk-from-openapi.md +0 -0
  23. {solidping-0.3.0 → solidping-0.4.0}/specs/todos/.gitkeep +0 -0
  24. {solidping-0.3.0 → solidping-0.4.0}/src/solidping/__init__.py +0 -0
  25. {solidping-0.3.0 → solidping-0.4.0}/src/solidping/_client.py +0 -0
  26. {solidping-0.3.0 → solidping-0.4.0}/src/solidping/_errors.py +0 -0
  27. {solidping-0.3.0 → solidping-0.4.0}/src/solidping/_generated/__init__.py +0 -0
  28. {solidping-0.3.0 → solidping-0.4.0}/src/solidping/_model.py +0 -0
  29. {solidping-0.3.0 → solidping-0.4.0}/src/solidping/_operation.py +0 -0
  30. {solidping-0.3.0 → solidping-0.4.0}/src/solidping/_pagination.py +0 -0
  31. {solidping-0.3.0 → solidping-0.4.0}/src/solidping/_retry.py +0 -0
  32. {solidping-0.3.0 → solidping-0.4.0}/src/solidping/py.typed +0 -0
  33. {solidping-0.3.0 → solidping-0.4.0}/src/solidping/resources/__init__.py +0 -0
  34. {solidping-0.3.0 → solidping-0.4.0}/src/solidping/resources/_base.py +0 -0
  35. {solidping-0.3.0 → solidping-0.4.0}/src/solidping/resources/channels.py +0 -0
  36. {solidping-0.3.0 → solidping-0.4.0}/src/solidping/resources/checks.py +0 -0
  37. {solidping-0.3.0 → solidping-0.4.0}/src/solidping/resources/incidents.py +0 -0
  38. {solidping-0.3.0 → solidping-0.4.0}/src/solidping/resources/maintenance_windows.py +0 -0
  39. {solidping-0.3.0 → solidping-0.4.0}/src/solidping/resources/status_pages.py +0 -0
  40. {solidping-0.3.0 → solidping-0.4.0}/tests/__init__.py +0 -0
  41. {solidping-0.3.0 → solidping-0.4.0}/tests/conftest.py +0 -0
  42. {solidping-0.3.0 → solidping-0.4.0}/tests/test_errors.py +0 -0
  43. {solidping-0.3.0 → solidping-0.4.0}/tests/test_logging.py +0 -0
  44. {solidping-0.3.0 → solidping-0.4.0}/tests/test_models.py +0 -0
  45. {solidping-0.3.0 → solidping-0.4.0}/tests/test_pagination.py +0 -0
  46. {solidping-0.3.0 → solidping-0.4.0}/tests/test_quickstart.py +0 -0
  47. {solidping-0.3.0 → solidping-0.4.0}/tests/test_resources.py +0 -0
  48. {solidping-0.3.0 → solidping-0.4.0}/tests/test_retry.py +0 -0
  49. {solidping-0.3.0 → solidping-0.4.0}/uv.lock +0 -0
@@ -0,0 +1 @@
1
+ {".":"0.4.0"}
@@ -1,5 +1,12 @@
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
+
3
10
  ## [0.3.0](https://github.com/fclairamb/solidping-python/compare/v0.2.0...v0.3.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.64.0
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.3.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]
@@ -11669,6 +11693,32 @@ components:
11669
11693
  $ref: "#/components/schemas/Error"
11670
11694
 
11671
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
11672
11722
  IncidentInsightsDuration:
11673
11723
  type: object
11674
11724
  properties:
@@ -12698,6 +12748,12 @@ components:
12698
12748
  expiresAt:
12699
12749
  type: string
12700
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.
12701
12757
 
12702
12758
  OrganizationSummary:
12703
12759
  type: object
@@ -17414,6 +17470,19 @@ components:
17414
17470
  dark:
17415
17471
  $ref: "#/components/schemas/ThemeTokens"
17416
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
+
17417
17486
  StatusPageSettings:
17418
17487
  type: object
17419
17488
  description: >-
@@ -17426,6 +17495,9 @@ components:
17426
17495
  theme:
17427
17496
  $ref: "#/components/schemas/ThemeSettings"
17428
17497
  nullable: true
17498
+ subscriptions:
17499
+ $ref: "#/components/schemas/SubscriptionsSettings"
17500
+ nullable: true
17429
17501
 
17430
17502
  AvailabilityThresholds:
17431
17503
  type: object
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "solidping"
7
- version = "0.3.0"
7
+ version = "0.4.0"
8
8
  description = "Official Python SDK for SolidPing"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -4014,7 +4014,13 @@ class MaintenanceWindowOccurrence(Model):
4014
4014
 
4015
4015
 
4016
4016
  class MeResponse(Model):
4017
- _fields: ClassVar[tuple[str, ...]] = ("user", "organization", "organizations", "impersonation")
4017
+ _fields: ClassVar[tuple[str, ...]] = (
4018
+ "user",
4019
+ "organization",
4020
+ "organizations",
4021
+ "impersonation",
4022
+ "credentialsEncryptionDisabled",
4023
+ )
4018
4024
  _nested: ClassVar[dict[str, tuple[str, str]]] = {
4019
4025
  "user": ("one", "UserSummary"),
4020
4026
  "organization": ("one", "OrganizationSummary"),
@@ -4026,6 +4032,7 @@ class MeResponse(Model):
4026
4032
  organization: OrganizationSummary | None = None
4027
4033
  organizations: list[OrganizationMemberSummary] | None = None
4028
4034
  impersonation: MeResponseImpersonation | None = None
4035
+ credentialsEncryptionDisabled: bool | None = None
4029
4036
 
4030
4037
 
4031
4038
  class MeResponseImpersonation(Model):
@@ -6210,14 +6217,16 @@ class StatusPageSectionSettingsInput(Model):
6210
6217
  class StatusPageSettings(Model):
6211
6218
  """Per-page display customization. Typed rather than a free-form map; unknown keys are rejected on write (VALIDATION_ERROR)."""
6212
6219
 
6213
- _fields: ClassVar[tuple[str, ...]] = ("availability", "theme")
6220
+ _fields: ClassVar[tuple[str, ...]] = ("availability", "theme", "subscriptions")
6214
6221
  _nested: ClassVar[dict[str, tuple[str, str]]] = {
6215
6222
  "availability": ("one", "AvailabilitySettings"),
6216
6223
  "theme": ("one", "ThemeSettings"),
6224
+ "subscriptions": ("one", "SubscriptionsSettings"),
6217
6225
  }
6218
6226
 
6219
6227
  availability: AvailabilitySettings | None = None
6220
6228
  theme: ThemeSettings | None = None
6229
+ subscriptions: SubscriptionsSettings | None = None
6221
6230
 
6222
6231
 
6223
6232
  class StatusPageSubscribeRequest(Model):
@@ -6406,6 +6415,14 @@ class StatusUpdatePublic(Model):
6406
6415
  publishedAt: str | None = None
6407
6416
 
6408
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
+
6409
6426
  class SupportMessage(Model):
6410
6427
  _fields: ClassVar[tuple[str, ...]] = (
6411
6428
  "uid",
@@ -7256,6 +7273,28 @@ class UpsertCheckRequest(Model):
7256
7273
  dependsOn: list[ExportedDependency] | None = None
7257
7274
 
7258
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
+
7259
7298
  class UserPreferences(Model):
7260
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)."""
7261
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",
@@ -1 +0,0 @@
1
- {".":"0.3.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