xcore-protocol 0.6.0__tar.gz → 0.6.2__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 (40) hide show
  1. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/PKG-INFO +1 -1
  2. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/pyproject.toml +1 -1
  3. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol/generated/sentinel.py +7 -1
  4. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol.egg-info/PKG-INFO +1 -1
  5. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/README.md +0 -0
  6. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_canonical_protocol_fixtures.py +0 -0
  7. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_chat_fixtures.py +0 -0
  8. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_discord_fixtures.py +0 -0
  9. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_envelope_schemas.py +0 -0
  10. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_generated_chat_models.py +0 -0
  11. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_generated_discord_models.py +0 -0
  12. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_generated_maps_models.py +0 -0
  13. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_generated_moderation_models.py +0 -0
  14. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_generated_sentinel_models.py +0 -0
  15. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_generated_telemetry_models.py +0 -0
  16. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_generator_bootstrap.py +0 -0
  17. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_java_python_route_compatibility.py +0 -0
  18. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_java_python_serialized_compatibility.py +0 -0
  19. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_maps_fixtures.py +0 -0
  20. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_moderation_fixtures.py +0 -0
  21. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_normalized_route_model.py +0 -0
  22. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/tests/test_telemetry_fixtures.py +0 -0
  23. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol/__init__.py +0 -0
  24. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol/generated/__init__.py +0 -0
  25. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol/generated/chat.py +0 -0
  26. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol/generated/discord.py +0 -0
  27. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol/generated/envelopes.py +0 -0
  28. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol/generated/maps.py +0 -0
  29. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol/generated/moderation.py +0 -0
  30. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol/generated/routes.py +0 -0
  31. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol/generated/shared.py +0 -0
  32. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol/generated/telemetry.py +0 -0
  33. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol/models/__init__.py +0 -0
  34. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol/paths.py +0 -0
  35. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol/schema_validation.py +0 -0
  36. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol.egg-info/SOURCES.txt +0 -0
  37. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol.egg-info/dependency_links.txt +0 -0
  38. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol.egg-info/requires.txt +0 -0
  39. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/python/xcore_protocol.egg-info/top_level.txt +0 -0
  40. {xcore_protocol-0.6.0 → xcore_protocol-0.6.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xcore-protocol
3
- Version: 0.6.0
3
+ Version: 0.6.2
4
4
  Summary: Canonical cross-service protocol for the XCore ecosystem
5
5
  Requires-Python: >=3.11
6
6
  Description-Content-Type: text/markdown
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "xcore-protocol"
7
- version = "0.6.0"
7
+ version = "0.6.2"
8
8
  description = "Canonical cross-service protocol for the XCore ecosystem"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
@@ -219,6 +219,7 @@ class SentinelSubnetRulesCommandV1:
219
219
  targetServer: str | None = None
220
220
  source: str | None = None
221
221
  reason: str | None = None
222
+ expiresAt: int | None = None
222
223
 
223
224
  MESSAGE_TYPE: ClassVar[str] = 'sentinel.subnet-rules.command'
224
225
  MESSAGE_VERSION: ClassVar[int] = 1
@@ -237,6 +238,8 @@ class SentinelSubnetRulesCommandV1:
237
238
  _expect_str(self.source, 'source')
238
239
  if self.reason is not None:
239
240
  _expect_str(self.reason, 'reason')
241
+ if self.expiresAt is not None:
242
+ _expect_int(self.expiresAt, 'expiresAt')
240
243
 
241
244
  @classmethod
242
245
  def from_payload(cls, payload: Mapping[str, Any]) -> "SentinelSubnetRulesCommandV1":
@@ -244,7 +247,7 @@ class SentinelSubnetRulesCommandV1:
244
247
  _expect_exact_keys(
245
248
  mapping,
246
249
  required=frozenset(('messageType', 'messageVersion', 'request', 'idempotency', 'actor', 'operation', 'rules')),
247
- allowed=frozenset(('messageType', 'messageVersion', 'request', 'idempotency', 'actor', 'operation', 'targetServer', 'rules', 'source', 'reason')),
250
+ allowed=frozenset(('messageType', 'messageVersion', 'request', 'idempotency', 'actor', 'operation', 'targetServer', 'rules', 'source', 'reason', 'expiresAt')),
248
251
  model_name="SentinelSubnetRulesCommandV1",
249
252
  )
250
253
  if mapping['messageType'] != cls.MESSAGE_TYPE:
@@ -260,6 +263,7 @@ class SentinelSubnetRulesCommandV1:
260
263
  rules=tuple(_expect_str(item, 'rules[]') for item in _expect_list(mapping['rules'], 'rules')),
261
264
  source=(_expect_str(mapping['source'], 'source') if 'source' in mapping else None),
262
265
  reason=(_expect_str(mapping['reason'], 'reason') if 'reason' in mapping else None),
266
+ expiresAt=(_expect_int(mapping['expiresAt'], 'expiresAt') if 'expiresAt' in mapping else None),
263
267
  )
264
268
 
265
269
  def to_payload(self) -> dict[str, Any]:
@@ -278,6 +282,8 @@ class SentinelSubnetRulesCommandV1:
278
282
  payload['source'] = self.source
279
283
  if self.reason is not None:
280
284
  payload['reason'] = self.reason
285
+ if self.expiresAt is not None:
286
+ payload['expiresAt'] = self.expiresAt
281
287
  return payload
282
288
 
283
289
  @dataclass(frozen=True, slots=True)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xcore-protocol
3
- Version: 0.6.0
3
+ Version: 0.6.2
4
4
  Summary: Canonical cross-service protocol for the XCore ecosystem
5
5
  Requires-Python: >=3.11
6
6
  Description-Content-Type: text/markdown
File without changes
File without changes