superposition-sdk 0.89.0__py3-none-any.whl → 0.90.0__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 +61 -6
- superposition_sdk/models.py +39 -5
- superposition_sdk/serialize.py +6 -0
- {superposition_sdk-0.89.0.dist-info → superposition_sdk-0.90.0.dist-info}/METADATA +1 -1
- {superposition_sdk-0.89.0.dist-info → superposition_sdk-0.90.0.dist-info}/RECORD +6 -6
- {superposition_sdk-0.89.0.dist-info → superposition_sdk-0.90.0.dist-info}/WHEEL +0 -0
|
@@ -2680,6 +2680,31 @@ GET_CONTEXT_FROM_CONDITION = Schema(
|
|
|
2680
2680
|
|
|
2681
2681
|
)
|
|
2682
2682
|
|
|
2683
|
+
DIMENSION_MATCH_STRATEGY = Schema.collection(
|
|
2684
|
+
id=ShapeID("io.superposition#DimensionMatchStrategy"),
|
|
2685
|
+
shape_type=ShapeType.ENUM,
|
|
2686
|
+
members={
|
|
2687
|
+
"Exact": {
|
|
2688
|
+
"target": UNIT,
|
|
2689
|
+
"index": 0,
|
|
2690
|
+
"traits": [
|
|
2691
|
+
Trait.new(id=ShapeID("smithy.api#enumValue"), value="exact"),
|
|
2692
|
+
|
|
2693
|
+
],
|
|
2694
|
+
},
|
|
2695
|
+
|
|
2696
|
+
"Subset": {
|
|
2697
|
+
"target": UNIT,
|
|
2698
|
+
"index": 1,
|
|
2699
|
+
"traits": [
|
|
2700
|
+
Trait.new(id=ShapeID("smithy.api#enumValue"), value="subset"),
|
|
2701
|
+
|
|
2702
|
+
],
|
|
2703
|
+
},
|
|
2704
|
+
|
|
2705
|
+
}
|
|
2706
|
+
)
|
|
2707
|
+
|
|
2683
2708
|
SORT_BY = Schema.collection(
|
|
2684
2709
|
id=ShapeID("io.superposition#SortBy"),
|
|
2685
2710
|
shape_type=ShapeType.ENUM,
|
|
@@ -2788,9 +2813,19 @@ LIST_CONTEXTS_INPUT = Schema.collection(
|
|
|
2788
2813
|
],
|
|
2789
2814
|
},
|
|
2790
2815
|
|
|
2816
|
+
"all": {
|
|
2817
|
+
"target": BOOLEAN,
|
|
2818
|
+
"index": 4,
|
|
2819
|
+
"traits": [
|
|
2820
|
+
Trait.new(id=ShapeID("smithy.api#notProperty")),
|
|
2821
|
+
Trait.new(id=ShapeID("smithy.api#httpQuery"), value="all"),
|
|
2822
|
+
|
|
2823
|
+
],
|
|
2824
|
+
},
|
|
2825
|
+
|
|
2791
2826
|
"prefix": {
|
|
2792
2827
|
"target": STRING,
|
|
2793
|
-
"index":
|
|
2828
|
+
"index": 5,
|
|
2794
2829
|
"traits": [
|
|
2795
2830
|
Trait.new(id=ShapeID("smithy.api#notProperty")),
|
|
2796
2831
|
Trait.new(id=ShapeID("smithy.api#httpQuery"), value="prefix"),
|
|
@@ -2800,7 +2835,7 @@ LIST_CONTEXTS_INPUT = Schema.collection(
|
|
|
2800
2835
|
|
|
2801
2836
|
"sort_on": {
|
|
2802
2837
|
"target": CONTEXT_FILTER_SORT_ON,
|
|
2803
|
-
"index":
|
|
2838
|
+
"index": 6,
|
|
2804
2839
|
"traits": [
|
|
2805
2840
|
Trait.new(id=ShapeID("smithy.api#notProperty")),
|
|
2806
2841
|
Trait.new(id=ShapeID("smithy.api#httpQuery"), value="sort_on"),
|
|
@@ -2810,7 +2845,7 @@ LIST_CONTEXTS_INPUT = Schema.collection(
|
|
|
2810
2845
|
|
|
2811
2846
|
"sort_by": {
|
|
2812
2847
|
"target": SORT_BY,
|
|
2813
|
-
"index":
|
|
2848
|
+
"index": 7,
|
|
2814
2849
|
"traits": [
|
|
2815
2850
|
Trait.new(id=ShapeID("smithy.api#notProperty")),
|
|
2816
2851
|
Trait.new(id=ShapeID("smithy.api#httpQuery"), value="sort_by"),
|
|
@@ -2820,7 +2855,7 @@ LIST_CONTEXTS_INPUT = Schema.collection(
|
|
|
2820
2855
|
|
|
2821
2856
|
"created_by": {
|
|
2822
2857
|
"target": STRING,
|
|
2823
|
-
"index":
|
|
2858
|
+
"index": 8,
|
|
2824
2859
|
"traits": [
|
|
2825
2860
|
Trait.new(id=ShapeID("smithy.api#notProperty")),
|
|
2826
2861
|
Trait.new(id=ShapeID("smithy.api#httpQuery"), value="created_by"),
|
|
@@ -2830,7 +2865,7 @@ LIST_CONTEXTS_INPUT = Schema.collection(
|
|
|
2830
2865
|
|
|
2831
2866
|
"last_modified_by": {
|
|
2832
2867
|
"target": STRING,
|
|
2833
|
-
"index":
|
|
2868
|
+
"index": 9,
|
|
2834
2869
|
"traits": [
|
|
2835
2870
|
Trait.new(id=ShapeID("smithy.api#notProperty")),
|
|
2836
2871
|
Trait.new(id=ShapeID("smithy.api#httpQuery"), value="last_modified_by"),
|
|
@@ -2840,7 +2875,7 @@ LIST_CONTEXTS_INPUT = Schema.collection(
|
|
|
2840
2875
|
|
|
2841
2876
|
"plaintext": {
|
|
2842
2877
|
"target": STRING,
|
|
2843
|
-
"index":
|
|
2878
|
+
"index": 10,
|
|
2844
2879
|
"traits": [
|
|
2845
2880
|
Trait.new(id=ShapeID("smithy.api#notProperty")),
|
|
2846
2881
|
Trait.new(id=ShapeID("smithy.api#httpQuery"), value="plaintext"),
|
|
@@ -2848,6 +2883,16 @@ LIST_CONTEXTS_INPUT = Schema.collection(
|
|
|
2848
2883
|
],
|
|
2849
2884
|
},
|
|
2850
2885
|
|
|
2886
|
+
"dimension_match_strategy": {
|
|
2887
|
+
"target": DIMENSION_MATCH_STRATEGY,
|
|
2888
|
+
"index": 11,
|
|
2889
|
+
"traits": [
|
|
2890
|
+
Trait.new(id=ShapeID("smithy.api#notProperty")),
|
|
2891
|
+
Trait.new(id=ShapeID("smithy.api#httpQuery"), value="dimension_match_strategy"),
|
|
2892
|
+
|
|
2893
|
+
],
|
|
2894
|
+
},
|
|
2895
|
+
|
|
2851
2896
|
}
|
|
2852
2897
|
)
|
|
2853
2898
|
|
|
@@ -8981,6 +9026,16 @@ LIST_EXPERIMENT_INPUT = Schema.collection(
|
|
|
8981
9026
|
],
|
|
8982
9027
|
},
|
|
8983
9028
|
|
|
9029
|
+
"dimension_match_strategy": {
|
|
9030
|
+
"target": DIMENSION_MATCH_STRATEGY,
|
|
9031
|
+
"index": 15,
|
|
9032
|
+
"traits": [
|
|
9033
|
+
Trait.new(id=ShapeID("smithy.api#notProperty")),
|
|
9034
|
+
Trait.new(id=ShapeID("smithy.api#httpQuery"), value="dimension_match_strategy"),
|
|
9035
|
+
|
|
9036
|
+
],
|
|
9037
|
+
},
|
|
9038
|
+
|
|
8984
9039
|
}
|
|
8985
9040
|
)
|
|
8986
9041
|
|
superposition_sdk/models.py
CHANGED
|
@@ -3436,6 +3436,22 @@ ShapeID("io.superposition#InternalServerError"): InternalServerError,
|
|
|
3436
3436
|
]
|
|
3437
3437
|
)
|
|
3438
3438
|
|
|
3439
|
+
class DimensionMatchStrategy(StrEnum):
|
|
3440
|
+
"""
|
|
3441
|
+
Strategy to follow while filter items based on the context
|
|
3442
|
+
|
|
3443
|
+
"""
|
|
3444
|
+
EXACT = "exact"
|
|
3445
|
+
"""
|
|
3446
|
+
Match the overrides which have the exact context
|
|
3447
|
+
|
|
3448
|
+
"""
|
|
3449
|
+
SUBSET = "subset"
|
|
3450
|
+
"""
|
|
3451
|
+
Match the overrides which have the given context as subset
|
|
3452
|
+
|
|
3453
|
+
"""
|
|
3454
|
+
|
|
3439
3455
|
class SortBy(StrEnum):
|
|
3440
3456
|
"""
|
|
3441
3457
|
Sort order enumeration for list operations.
|
|
@@ -3464,18 +3480,23 @@ class ListContextsInput:
|
|
|
3464
3480
|
:param sort_by:
|
|
3465
3481
|
Sort order enumeration for list operations.
|
|
3466
3482
|
|
|
3483
|
+
:param dimension_match_strategy:
|
|
3484
|
+
Strategy to follow while filter items based on the context
|
|
3485
|
+
|
|
3467
3486
|
"""
|
|
3468
3487
|
|
|
3469
3488
|
workspace_id: str | None = None
|
|
3470
3489
|
org_id: str = "juspay"
|
|
3471
3490
|
page: int | None = None
|
|
3472
3491
|
count: int | None = None
|
|
3492
|
+
all: bool | None = None
|
|
3473
3493
|
prefix: str | None = None
|
|
3474
3494
|
sort_on: str | None = None
|
|
3475
3495
|
sort_by: str | None = None
|
|
3476
3496
|
created_by: str | None = None
|
|
3477
3497
|
last_modified_by: str | None = None
|
|
3478
3498
|
plaintext: str | None = None
|
|
3499
|
+
dimension_match_strategy: str | None = None
|
|
3479
3500
|
|
|
3480
3501
|
def serialize(self, serializer: ShapeSerializer):
|
|
3481
3502
|
serializer.write_struct(_SCHEMA_LIST_CONTEXTS_INPUT, self)
|
|
@@ -3506,23 +3527,29 @@ class ListContextsInput:
|
|
|
3506
3527
|
kwargs["count"] = de.read_integer(_SCHEMA_LIST_CONTEXTS_INPUT.members["count"])
|
|
3507
3528
|
|
|
3508
3529
|
case 4:
|
|
3509
|
-
kwargs["
|
|
3530
|
+
kwargs["all"] = de.read_boolean(_SCHEMA_LIST_CONTEXTS_INPUT.members["all"])
|
|
3510
3531
|
|
|
3511
3532
|
case 5:
|
|
3512
|
-
kwargs["
|
|
3533
|
+
kwargs["prefix"] = de.read_string(_SCHEMA_LIST_CONTEXTS_INPUT.members["prefix"])
|
|
3513
3534
|
|
|
3514
3535
|
case 6:
|
|
3515
|
-
kwargs["
|
|
3536
|
+
kwargs["sort_on"] = de.read_string(_SCHEMA_LIST_CONTEXTS_INPUT.members["sort_on"])
|
|
3516
3537
|
|
|
3517
3538
|
case 7:
|
|
3518
|
-
kwargs["
|
|
3539
|
+
kwargs["sort_by"] = de.read_string(_SCHEMA_LIST_CONTEXTS_INPUT.members["sort_by"])
|
|
3519
3540
|
|
|
3520
3541
|
case 8:
|
|
3521
|
-
kwargs["
|
|
3542
|
+
kwargs["created_by"] = de.read_string(_SCHEMA_LIST_CONTEXTS_INPUT.members["created_by"])
|
|
3522
3543
|
|
|
3523
3544
|
case 9:
|
|
3545
|
+
kwargs["last_modified_by"] = de.read_string(_SCHEMA_LIST_CONTEXTS_INPUT.members["last_modified_by"])
|
|
3546
|
+
|
|
3547
|
+
case 10:
|
|
3524
3548
|
kwargs["plaintext"] = de.read_string(_SCHEMA_LIST_CONTEXTS_INPUT.members["plaintext"])
|
|
3525
3549
|
|
|
3550
|
+
case 11:
|
|
3551
|
+
kwargs["dimension_match_strategy"] = de.read_string(_SCHEMA_LIST_CONTEXTS_INPUT.members["dimension_match_strategy"])
|
|
3552
|
+
|
|
3526
3553
|
case _:
|
|
3527
3554
|
logger.debug("Unexpected member schema: %s", schema)
|
|
3528
3555
|
|
|
@@ -9260,6 +9287,9 @@ class ListExperimentInput:
|
|
|
9260
9287
|
:param sort_by:
|
|
9261
9288
|
Sort order enumeration for list operations.
|
|
9262
9289
|
|
|
9290
|
+
:param dimension_match_strategy:
|
|
9291
|
+
Strategy to follow while filter items based on the context
|
|
9292
|
+
|
|
9263
9293
|
"""
|
|
9264
9294
|
|
|
9265
9295
|
workspace_id: str | None = None
|
|
@@ -9277,6 +9307,7 @@ class ListExperimentInput:
|
|
|
9277
9307
|
sort_on: str | None = None
|
|
9278
9308
|
sort_by: str | None = None
|
|
9279
9309
|
global_experiments_only: bool | None = None
|
|
9310
|
+
dimension_match_strategy: str | None = None
|
|
9280
9311
|
|
|
9281
9312
|
def serialize(self, serializer: ShapeSerializer):
|
|
9282
9313
|
serializer.write_struct(_SCHEMA_LIST_EXPERIMENT_INPUT, self)
|
|
@@ -9339,6 +9370,9 @@ class ListExperimentInput:
|
|
|
9339
9370
|
case 14:
|
|
9340
9371
|
kwargs["global_experiments_only"] = de.read_boolean(_SCHEMA_LIST_EXPERIMENT_INPUT.members["global_experiments_only"])
|
|
9341
9372
|
|
|
9373
|
+
case 15:
|
|
9374
|
+
kwargs["dimension_match_strategy"] = de.read_string(_SCHEMA_LIST_EXPERIMENT_INPUT.members["dimension_match_strategy"])
|
|
9375
|
+
|
|
9342
9376
|
case _:
|
|
9343
9377
|
logger.debug("Unexpected member schema: %s", schema)
|
|
9344
9378
|
|
superposition_sdk/serialize.py
CHANGED
|
@@ -1303,6 +1303,8 @@ async def _serialize_list_contexts(input: ListContextsInput, config: Config) ->
|
|
|
1303
1303
|
query_params.append(("page", str(input.page)))
|
|
1304
1304
|
if input.count is not None:
|
|
1305
1305
|
query_params.append(("count", str(input.count)))
|
|
1306
|
+
if input.all is not None:
|
|
1307
|
+
query_params.append(("all", ('true' if input.all else 'false')))
|
|
1306
1308
|
if input.prefix is not None:
|
|
1307
1309
|
query_params.append(("prefix", input.prefix))
|
|
1308
1310
|
if input.sort_on is not None:
|
|
@@ -1315,6 +1317,8 @@ async def _serialize_list_contexts(input: ListContextsInput, config: Config) ->
|
|
|
1315
1317
|
query_params.append(("last_modified_by", input.last_modified_by))
|
|
1316
1318
|
if input.plaintext is not None:
|
|
1317
1319
|
query_params.append(("plaintext", input.plaintext))
|
|
1320
|
+
if input.dimension_match_strategy is not None:
|
|
1321
|
+
query_params.append(("dimension_match_strategy", input.dimension_match_strategy))
|
|
1318
1322
|
|
|
1319
1323
|
query = join_query_params(params=query_params, prefix=query)
|
|
1320
1324
|
|
|
@@ -1446,6 +1450,8 @@ async def _serialize_list_experiment(input: ListExperimentInput, config: Config)
|
|
|
1446
1450
|
query_params.append(("sort_by", input.sort_by))
|
|
1447
1451
|
if input.global_experiments_only is not None:
|
|
1448
1452
|
query_params.append(("global_experiments_only", ('true' if input.global_experiments_only else 'false')))
|
|
1453
|
+
if input.dimension_match_strategy is not None:
|
|
1454
|
+
query_params.append(("dimension_match_strategy", input.dimension_match_strategy))
|
|
1449
1455
|
|
|
1450
1456
|
query = join_query_params(params=query_params, prefix=query)
|
|
1451
1457
|
|
|
@@ -3,10 +3,10 @@ superposition_sdk/auth.py,sha256=U9D3FmOH8TX0cjibGy_CRnAkTnFEavAek0Jw1YUhN2g,404
|
|
|
3
3
|
superposition_sdk/client.py,sha256=SICMUtPJo3H_xYFXcofHZVZoRiYq_zFO7sMZP9Z5BHs,94384
|
|
4
4
|
superposition_sdk/config.py,sha256=elPULtcHP7am9Wk7VqIpzPMNlcQIdH1Do9gNeAkqdHM,11425
|
|
5
5
|
superposition_sdk/deserialize.py,sha256=fVUcHo_BtWwtINcbBWGXDVo0GmSPT0pEyDwEB6Jf82Y,77499
|
|
6
|
-
superposition_sdk/models.py,sha256=
|
|
7
|
-
superposition_sdk/serialize.py,sha256=
|
|
6
|
+
superposition_sdk/models.py,sha256=nCXDv7TbHlkpgGa2QVyrpQO4OeWG7B2Gvdyti8S6KyM,558282
|
|
7
|
+
superposition_sdk/serialize.py,sha256=aaQOAoA-_HaFl0Zl5cC2JSPebG4oE0OH1Izj1wy3p78,73276
|
|
8
8
|
superposition_sdk/_private/__init__.py,sha256=DxsJq42a0KfQv9zzLrqT0JVpoXrR-IDIYFGuJe4g1Gc,55
|
|
9
|
-
superposition_sdk/_private/schemas.py,sha256=
|
|
10
|
-
superposition_sdk-0.
|
|
11
|
-
superposition_sdk-0.
|
|
12
|
-
superposition_sdk-0.
|
|
9
|
+
superposition_sdk/_private/schemas.py,sha256=yYRHmaV4cGcS5Uhl5Bd9E-_F6DOqVpZAcEuXF5c8htA,304873
|
|
10
|
+
superposition_sdk-0.90.0.dist-info/METADATA,sha256=GN3aALrIX1Tk2Rpkp31BFHNarYjXkpFD-skgm11E59M,2280
|
|
11
|
+
superposition_sdk-0.90.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
12
|
+
superposition_sdk-0.90.0.dist-info/RECORD,,
|
|
File without changes
|