superposition-sdk 0.93.0__py3-none-any.whl → 0.93.1__py3-none-any.whl
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.
Potentially problematic release.
This version of superposition-sdk might be problematic. Click here for more details.
- superposition_sdk/_private/schemas.py +605 -149
- superposition_sdk/deserialize.py +8 -7
- superposition_sdk/models.py +615 -788
- superposition_sdk/serialize.py +27 -23
- {superposition_sdk-0.93.0.dist-info → superposition_sdk-0.93.1.dist-info}/METADATA +1 -1
- superposition_sdk-0.93.1.dist-info/RECORD +12 -0
- superposition_sdk-0.93.0.dist-info/RECORD +0 -12
- {superposition_sdk-0.93.0.dist-info → superposition_sdk-0.93.1.dist-info}/WHEEL +0 -0
superposition_sdk/serialize.py
CHANGED
|
@@ -171,16 +171,12 @@ async def _serialize_bulk_operation(input: BulkOperationInput, config: Config) -
|
|
|
171
171
|
query: str = f''
|
|
172
172
|
|
|
173
173
|
body: AsyncIterable[bytes] = AsyncBytesReader(b'')
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
content =
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
body = SeekableAsyncBytesReader(content)
|
|
181
|
-
else:
|
|
182
|
-
content_length = 2
|
|
183
|
-
body = SeekableAsyncBytesReader(b"{}")
|
|
174
|
+
codec = JSONCodec(default_timestamp_format=TimestampFormat.EPOCH_SECONDS)
|
|
175
|
+
content = codec.serialize(input)
|
|
176
|
+
if not content:
|
|
177
|
+
content = b"{}"
|
|
178
|
+
content_length = len(content)
|
|
179
|
+
body = SeekableAsyncBytesReader(content)
|
|
184
180
|
|
|
185
181
|
headers = Fields(
|
|
186
182
|
[
|
|
@@ -254,12 +250,16 @@ async def _serialize_create_context(input: CreateContextInput, config: Config) -
|
|
|
254
250
|
query: str = f''
|
|
255
251
|
|
|
256
252
|
body: AsyncIterable[bytes] = AsyncBytesReader(b'')
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
content =
|
|
261
|
-
|
|
262
|
-
|
|
253
|
+
content_length: int = 0
|
|
254
|
+
if input.request is not None:
|
|
255
|
+
codec = JSONCodec(default_timestamp_format=TimestampFormat.EPOCH_SECONDS)
|
|
256
|
+
content = codec.serialize(input.request)
|
|
257
|
+
|
|
258
|
+
content_length = len(content)
|
|
259
|
+
body = SeekableAsyncBytesReader(content)
|
|
260
|
+
else:
|
|
261
|
+
content_length = 2
|
|
262
|
+
body = SeekableAsyncBytesReader(b"{}")
|
|
263
263
|
|
|
264
264
|
headers = Fields(
|
|
265
265
|
[
|
|
@@ -1947,12 +1947,16 @@ async def _serialize_move_context(input: MoveContextInput, config: Config) -> HT
|
|
|
1947
1947
|
query: str = f''
|
|
1948
1948
|
|
|
1949
1949
|
body: AsyncIterable[bytes] = AsyncBytesReader(b'')
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
content =
|
|
1954
|
-
|
|
1955
|
-
|
|
1950
|
+
content_length: int = 0
|
|
1951
|
+
if input.request is not None:
|
|
1952
|
+
codec = JSONCodec(default_timestamp_format=TimestampFormat.EPOCH_SECONDS)
|
|
1953
|
+
content = codec.serialize(input.request)
|
|
1954
|
+
|
|
1955
|
+
content_length = len(content)
|
|
1956
|
+
body = SeekableAsyncBytesReader(content)
|
|
1957
|
+
else:
|
|
1958
|
+
content_length = 2
|
|
1959
|
+
body = SeekableAsyncBytesReader(b"{}")
|
|
1956
1960
|
|
|
1957
1961
|
headers = Fields(
|
|
1958
1962
|
[
|
|
@@ -2466,7 +2470,7 @@ async def _serialize_update_override(input: UpdateOverrideInput, config: Config)
|
|
|
2466
2470
|
scheme="https",
|
|
2467
2471
|
query=query,
|
|
2468
2472
|
),
|
|
2469
|
-
method="
|
|
2473
|
+
method="PATCH",
|
|
2470
2474
|
fields=headers,
|
|
2471
2475
|
body=body,
|
|
2472
2476
|
)
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
superposition_sdk/__init__.py,sha256=Inc_oe2U1CzZ_ZxsNVbU96RGaAlD-6M5xt1ZcW5hGUo,83
|
|
2
|
+
superposition_sdk/auth.py,sha256=U9D3FmOH8TX0cjibGy_CRnAkTnFEavAek0Jw1YUhN2g,404
|
|
3
|
+
superposition_sdk/client.py,sha256=rs7o9mTBQ7az1PdEK_FfLwyNKvP0vJrFoO3esBZOEbk,102350
|
|
4
|
+
superposition_sdk/config.py,sha256=9sPXQhX31OzU2nnOFrzlchFpfHpgnltWXynZY6qwweo,12244
|
|
5
|
+
superposition_sdk/deserialize.py,sha256=b-qT2scth-4xczdQl0LDGC7CvEi450zbvYFn5HKBF8U,85255
|
|
6
|
+
superposition_sdk/models.py,sha256=P7eVbBm0s5D_MhlizoOBnOfKtFbaZi6RqOf-ylxNKYE,596841
|
|
7
|
+
superposition_sdk/serialize.py,sha256=r23J6Y1zOAekiDTBEIouiDWyy1l-phE0LKsL_bRNZb8,80235
|
|
8
|
+
superposition_sdk/_private/__init__.py,sha256=DxsJq42a0KfQv9zzLrqT0JVpoXrR-IDIYFGuJe4g1Gc,55
|
|
9
|
+
superposition_sdk/_private/schemas.py,sha256=HsBroo2-j00ChQ5J0bC2RP8rkdTeQnC55Si0vhXQRTY,340724
|
|
10
|
+
superposition_sdk-0.93.1.dist-info/METADATA,sha256=N1Et9aa1fOf_leyCtUd-J7xjlyk5s9sxVXma1sMCBTc,2278
|
|
11
|
+
superposition_sdk-0.93.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
12
|
+
superposition_sdk-0.93.1.dist-info/RECORD,,
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
superposition_sdk/__init__.py,sha256=Inc_oe2U1CzZ_ZxsNVbU96RGaAlD-6M5xt1ZcW5hGUo,83
|
|
2
|
-
superposition_sdk/auth.py,sha256=U9D3FmOH8TX0cjibGy_CRnAkTnFEavAek0Jw1YUhN2g,404
|
|
3
|
-
superposition_sdk/client.py,sha256=rs7o9mTBQ7az1PdEK_FfLwyNKvP0vJrFoO3esBZOEbk,102350
|
|
4
|
-
superposition_sdk/config.py,sha256=9sPXQhX31OzU2nnOFrzlchFpfHpgnltWXynZY6qwweo,12244
|
|
5
|
-
superposition_sdk/deserialize.py,sha256=QZRjEs6oTCaGHf91_Dux-MNRLUNJohVfzOIhqgSTI-I,85196
|
|
6
|
-
superposition_sdk/models.py,sha256=nUv9Tgz_qPc00h6OxAwkTnskKbUS_yW7-SmWddIda6M,606384
|
|
7
|
-
superposition_sdk/serialize.py,sha256=tiEzN6UfBo-IzyHSSxyFf3bXNhwY-C5nOGYYzcyRNPU,80120
|
|
8
|
-
superposition_sdk/_private/__init__.py,sha256=DxsJq42a0KfQv9zzLrqT0JVpoXrR-IDIYFGuJe4g1Gc,55
|
|
9
|
-
superposition_sdk/_private/schemas.py,sha256=HWXdqzdL4zeoVevFfwTIM2EHazmTpfKBtGuYj5iSxQQ,328428
|
|
10
|
-
superposition_sdk-0.93.0.dist-info/METADATA,sha256=y8HEECJJ-aV1rxoktuvUNLV7exCQreXv_aFBFKHgoVI,2278
|
|
11
|
-
superposition_sdk-0.93.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
12
|
-
superposition_sdk-0.93.0.dist-info/RECORD,,
|
|
File without changes
|