superposition-sdk 0.88.1__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 +71 -6
- superposition_sdk/client.py +121 -56
- superposition_sdk/models.py +416 -5
- superposition_sdk/serialize.py +8 -0
- {superposition_sdk-0.88.1.dist-info → superposition_sdk-0.90.0.dist-info}/METADATA +1 -1
- superposition_sdk-0.90.0.dist-info/RECORD +12 -0
- superposition_sdk-0.88.1.dist-info/RECORD +0 -12
- {superposition_sdk-0.88.1.dist-info → superposition_sdk-0.90.0.dist-info}/WHEEL +0 -0
superposition_sdk/models.py
CHANGED
|
@@ -427,6 +427,10 @@ class AddMembersToGroupOutput:
|
|
|
427
427
|
"""
|
|
428
428
|
Standard response structure for an experiment group.
|
|
429
429
|
|
|
430
|
+
:param context:
|
|
431
|
+
**[Required]** - Represents conditional criteria used for context matching. Keys
|
|
432
|
+
define dimension names and values specify the criteria that must be met.
|
|
433
|
+
|
|
430
434
|
"""
|
|
431
435
|
|
|
432
436
|
id: str
|
|
@@ -616,6 +620,13 @@ ShapeID("io.superposition#InternalServerError"): InternalServerError,
|
|
|
616
620
|
|
|
617
621
|
@dataclass(kw_only=True)
|
|
618
622
|
class ApplicableVariantsInput:
|
|
623
|
+
"""
|
|
624
|
+
|
|
625
|
+
:param context:
|
|
626
|
+
**[Required]** - Represents conditional criteria used for context matching. Keys
|
|
627
|
+
define dimension names and values specify the criteria that must be met.
|
|
628
|
+
|
|
629
|
+
"""
|
|
619
630
|
|
|
620
631
|
workspace_id: str | None = None
|
|
621
632
|
org_id: str = "juspay"
|
|
@@ -1053,6 +1064,13 @@ class AutocompleteFunctionRequest:
|
|
|
1053
1064
|
|
|
1054
1065
|
@dataclass(kw_only=True)
|
|
1055
1066
|
class ContextMove:
|
|
1067
|
+
"""
|
|
1068
|
+
|
|
1069
|
+
:param context:
|
|
1070
|
+
**[Required]** - Represents conditional criteria used for context matching. Keys
|
|
1071
|
+
define dimension names and values specify the criteria that must be met.
|
|
1072
|
+
|
|
1073
|
+
"""
|
|
1056
1074
|
|
|
1057
1075
|
context: dict[str, Document]
|
|
1058
1076
|
|
|
@@ -1122,6 +1140,18 @@ def _deserialize_overrides(deserializer: ShapeDeserializer, schema: Schema) -> d
|
|
|
1122
1140
|
|
|
1123
1141
|
@dataclass(kw_only=True)
|
|
1124
1142
|
class ContextPut:
|
|
1143
|
+
"""
|
|
1144
|
+
|
|
1145
|
+
:param context:
|
|
1146
|
+
**[Required]** - Represents conditional criteria used for context matching. Keys
|
|
1147
|
+
define dimension names and values specify the criteria that must be met.
|
|
1148
|
+
|
|
1149
|
+
:param override:
|
|
1150
|
+
**[Required]** - Configuration overrides that replace default values when
|
|
1151
|
+
context conditions are met. Keys represent configuration keys and values are the
|
|
1152
|
+
override data.
|
|
1153
|
+
|
|
1154
|
+
"""
|
|
1125
1155
|
|
|
1126
1156
|
context: dict[str, Document]
|
|
1127
1157
|
|
|
@@ -1187,6 +1217,11 @@ class ContextIdentifierId:
|
|
|
1187
1217
|
|
|
1188
1218
|
@dataclass
|
|
1189
1219
|
class ContextIdentifierContext:
|
|
1220
|
+
"""
|
|
1221
|
+
Represents conditional criteria used for context matching. Keys define dimension
|
|
1222
|
+
names and values specify the criteria that must be met.
|
|
1223
|
+
|
|
1224
|
+
"""
|
|
1190
1225
|
|
|
1191
1226
|
value: dict[str, Document]
|
|
1192
1227
|
|
|
@@ -1254,6 +1289,14 @@ class _ContextIdentifierDeserializer:
|
|
|
1254
1289
|
|
|
1255
1290
|
@dataclass(kw_only=True)
|
|
1256
1291
|
class UpdateContextOverrideRequest:
|
|
1292
|
+
"""
|
|
1293
|
+
|
|
1294
|
+
:param override:
|
|
1295
|
+
**[Required]** - Configuration overrides that replace default values when
|
|
1296
|
+
context conditions are met. Keys represent configuration keys and values are the
|
|
1297
|
+
override data.
|
|
1298
|
+
|
|
1299
|
+
"""
|
|
1257
1300
|
|
|
1258
1301
|
context: ContextIdentifier
|
|
1259
1302
|
|
|
@@ -1512,6 +1555,21 @@ class BulkOperationInput:
|
|
|
1512
1555
|
|
|
1513
1556
|
@dataclass(kw_only=True)
|
|
1514
1557
|
class ContextResponse:
|
|
1558
|
+
"""
|
|
1559
|
+
|
|
1560
|
+
:param value:
|
|
1561
|
+
Represents conditional criteria used for context matching. Keys define dimension
|
|
1562
|
+
names and values specify the criteria that must be met.
|
|
1563
|
+
|
|
1564
|
+
:param override:
|
|
1565
|
+
Configuration overrides that replace default values when context conditions are
|
|
1566
|
+
met. Keys represent configuration keys and values are the override data.
|
|
1567
|
+
|
|
1568
|
+
:param weight:
|
|
1569
|
+
Priority weight used to determine the order of context evaluation. Higher
|
|
1570
|
+
weights take precedence during configuration resolution.
|
|
1571
|
+
|
|
1572
|
+
"""
|
|
1515
1573
|
|
|
1516
1574
|
id: str
|
|
1517
1575
|
|
|
@@ -1908,6 +1966,13 @@ class ExperimentStatusType(StrEnum):
|
|
|
1908
1966
|
|
|
1909
1967
|
@dataclass(kw_only=True)
|
|
1910
1968
|
class ConcludeExperimentOutput:
|
|
1969
|
+
"""
|
|
1970
|
+
|
|
1971
|
+
:param context:
|
|
1972
|
+
**[Required]** - Represents conditional criteria used for context matching. Keys
|
|
1973
|
+
define dimension names and values specify the criteria that must be met.
|
|
1974
|
+
|
|
1975
|
+
"""
|
|
1911
1976
|
|
|
1912
1977
|
id: str
|
|
1913
1978
|
|
|
@@ -2161,6 +2226,13 @@ def _deserialize_override_with_keys(deserializer: ShapeDeserializer, schema: Sch
|
|
|
2161
2226
|
|
|
2162
2227
|
@dataclass(kw_only=True)
|
|
2163
2228
|
class ContextPartial:
|
|
2229
|
+
"""
|
|
2230
|
+
|
|
2231
|
+
:param condition:
|
|
2232
|
+
Represents conditional criteria used for context matching. Keys define dimension
|
|
2233
|
+
names and values specify the criteria that must be met.
|
|
2234
|
+
|
|
2235
|
+
"""
|
|
2164
2236
|
|
|
2165
2237
|
id: str | None = None
|
|
2166
2238
|
condition: dict[str, Document] | None = None
|
|
@@ -2273,6 +2345,13 @@ def _deserialize_overrides_map(deserializer: ShapeDeserializer, schema: Schema)
|
|
|
2273
2345
|
|
|
2274
2346
|
@dataclass(kw_only=True)
|
|
2275
2347
|
class GetConfigOutput:
|
|
2348
|
+
"""
|
|
2349
|
+
|
|
2350
|
+
:param default_configs:
|
|
2351
|
+
Generic key-value object structure used for flexible data representation
|
|
2352
|
+
throughout the API.
|
|
2353
|
+
|
|
2354
|
+
"""
|
|
2276
2355
|
|
|
2277
2356
|
contexts: list[ContextPartial] | None = None
|
|
2278
2357
|
overrides: dict[str, dict[str, Document]] | None = None
|
|
@@ -2735,6 +2814,18 @@ LIST_VERSIONS = APIOperation(
|
|
|
2735
2814
|
|
|
2736
2815
|
@dataclass(kw_only=True)
|
|
2737
2816
|
class CreateContextInput:
|
|
2817
|
+
"""
|
|
2818
|
+
|
|
2819
|
+
:param context:
|
|
2820
|
+
**[Required]** - Represents conditional criteria used for context matching. Keys
|
|
2821
|
+
define dimension names and values specify the criteria that must be met.
|
|
2822
|
+
|
|
2823
|
+
:param override:
|
|
2824
|
+
**[Required]** - Configuration overrides that replace default values when
|
|
2825
|
+
context conditions are met. Keys represent configuration keys and values are the
|
|
2826
|
+
override data.
|
|
2827
|
+
|
|
2828
|
+
"""
|
|
2738
2829
|
|
|
2739
2830
|
workspace_id: str | None = None
|
|
2740
2831
|
org_id: str = "juspay"
|
|
@@ -2799,6 +2890,21 @@ class CreateContextInput:
|
|
|
2799
2890
|
|
|
2800
2891
|
@dataclass(kw_only=True)
|
|
2801
2892
|
class CreateContextOutput:
|
|
2893
|
+
"""
|
|
2894
|
+
|
|
2895
|
+
:param value:
|
|
2896
|
+
Represents conditional criteria used for context matching. Keys define dimension
|
|
2897
|
+
names and values specify the criteria that must be met.
|
|
2898
|
+
|
|
2899
|
+
:param override:
|
|
2900
|
+
Configuration overrides that replace default values when context conditions are
|
|
2901
|
+
met. Keys represent configuration keys and values are the override data.
|
|
2902
|
+
|
|
2903
|
+
:param weight:
|
|
2904
|
+
Priority weight used to determine the order of context evaluation. Higher
|
|
2905
|
+
weights take precedence during configuration resolution.
|
|
2906
|
+
|
|
2907
|
+
"""
|
|
2802
2908
|
|
|
2803
2909
|
id: str
|
|
2804
2910
|
|
|
@@ -3034,6 +3140,21 @@ class GetContextInput:
|
|
|
3034
3140
|
|
|
3035
3141
|
@dataclass(kw_only=True)
|
|
3036
3142
|
class GetContextOutput:
|
|
3143
|
+
"""
|
|
3144
|
+
|
|
3145
|
+
:param value:
|
|
3146
|
+
Represents conditional criteria used for context matching. Keys define dimension
|
|
3147
|
+
names and values specify the criteria that must be met.
|
|
3148
|
+
|
|
3149
|
+
:param override:
|
|
3150
|
+
Configuration overrides that replace default values when context conditions are
|
|
3151
|
+
met. Keys represent configuration keys and values are the override data.
|
|
3152
|
+
|
|
3153
|
+
:param weight:
|
|
3154
|
+
Priority weight used to determine the order of context evaluation. Higher
|
|
3155
|
+
weights take precedence during configuration resolution.
|
|
3156
|
+
|
|
3157
|
+
"""
|
|
3037
3158
|
|
|
3038
3159
|
id: str
|
|
3039
3160
|
|
|
@@ -3187,6 +3308,21 @@ class GetContextFromConditionInput:
|
|
|
3187
3308
|
|
|
3188
3309
|
@dataclass(kw_only=True)
|
|
3189
3310
|
class GetContextFromConditionOutput:
|
|
3311
|
+
"""
|
|
3312
|
+
|
|
3313
|
+
:param value:
|
|
3314
|
+
Represents conditional criteria used for context matching. Keys define dimension
|
|
3315
|
+
names and values specify the criteria that must be met.
|
|
3316
|
+
|
|
3317
|
+
:param override:
|
|
3318
|
+
Configuration overrides that replace default values when context conditions are
|
|
3319
|
+
met. Keys represent configuration keys and values are the override data.
|
|
3320
|
+
|
|
3321
|
+
:param weight:
|
|
3322
|
+
Priority weight used to determine the order of context evaluation. Higher
|
|
3323
|
+
weights take precedence during configuration resolution.
|
|
3324
|
+
|
|
3325
|
+
"""
|
|
3190
3326
|
|
|
3191
3327
|
id: str
|
|
3192
3328
|
|
|
@@ -3300,9 +3436,37 @@ ShapeID("io.superposition#InternalServerError"): InternalServerError,
|
|
|
3300
3436
|
]
|
|
3301
3437
|
)
|
|
3302
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
|
+
|
|
3303
3455
|
class SortBy(StrEnum):
|
|
3456
|
+
"""
|
|
3457
|
+
Sort order enumeration for list operations.
|
|
3458
|
+
|
|
3459
|
+
"""
|
|
3304
3460
|
DESC = "desc"
|
|
3461
|
+
"""
|
|
3462
|
+
Descending order (Z-A, newest first)
|
|
3463
|
+
|
|
3464
|
+
"""
|
|
3305
3465
|
ASC = "asc"
|
|
3466
|
+
"""
|
|
3467
|
+
Ascending order (A-Z, oldest first)
|
|
3468
|
+
|
|
3469
|
+
"""
|
|
3306
3470
|
|
|
3307
3471
|
class ContextFilterSortOn(StrEnum):
|
|
3308
3472
|
LAST_MODIFIED_AT = "last_modified_at"
|
|
@@ -3311,17 +3475,28 @@ class ContextFilterSortOn(StrEnum):
|
|
|
3311
3475
|
|
|
3312
3476
|
@dataclass(kw_only=True)
|
|
3313
3477
|
class ListContextsInput:
|
|
3478
|
+
"""
|
|
3479
|
+
|
|
3480
|
+
:param sort_by:
|
|
3481
|
+
Sort order enumeration for list operations.
|
|
3482
|
+
|
|
3483
|
+
:param dimension_match_strategy:
|
|
3484
|
+
Strategy to follow while filter items based on the context
|
|
3485
|
+
|
|
3486
|
+
"""
|
|
3314
3487
|
|
|
3315
3488
|
workspace_id: str | None = None
|
|
3316
3489
|
org_id: str = "juspay"
|
|
3317
3490
|
page: int | None = None
|
|
3318
3491
|
count: int | None = None
|
|
3492
|
+
all: bool | None = None
|
|
3319
3493
|
prefix: str | None = None
|
|
3320
3494
|
sort_on: str | None = None
|
|
3321
3495
|
sort_by: str | None = None
|
|
3322
3496
|
created_by: str | None = None
|
|
3323
3497
|
last_modified_by: str | None = None
|
|
3324
3498
|
plaintext: str | None = None
|
|
3499
|
+
dimension_match_strategy: str | None = None
|
|
3325
3500
|
|
|
3326
3501
|
def serialize(self, serializer: ShapeSerializer):
|
|
3327
3502
|
serializer.write_struct(_SCHEMA_LIST_CONTEXTS_INPUT, self)
|
|
@@ -3352,23 +3527,29 @@ class ListContextsInput:
|
|
|
3352
3527
|
kwargs["count"] = de.read_integer(_SCHEMA_LIST_CONTEXTS_INPUT.members["count"])
|
|
3353
3528
|
|
|
3354
3529
|
case 4:
|
|
3355
|
-
kwargs["
|
|
3530
|
+
kwargs["all"] = de.read_boolean(_SCHEMA_LIST_CONTEXTS_INPUT.members["all"])
|
|
3356
3531
|
|
|
3357
3532
|
case 5:
|
|
3358
|
-
kwargs["
|
|
3533
|
+
kwargs["prefix"] = de.read_string(_SCHEMA_LIST_CONTEXTS_INPUT.members["prefix"])
|
|
3359
3534
|
|
|
3360
3535
|
case 6:
|
|
3361
|
-
kwargs["
|
|
3536
|
+
kwargs["sort_on"] = de.read_string(_SCHEMA_LIST_CONTEXTS_INPUT.members["sort_on"])
|
|
3362
3537
|
|
|
3363
3538
|
case 7:
|
|
3364
|
-
kwargs["
|
|
3539
|
+
kwargs["sort_by"] = de.read_string(_SCHEMA_LIST_CONTEXTS_INPUT.members["sort_by"])
|
|
3365
3540
|
|
|
3366
3541
|
case 8:
|
|
3367
|
-
kwargs["
|
|
3542
|
+
kwargs["created_by"] = de.read_string(_SCHEMA_LIST_CONTEXTS_INPUT.members["created_by"])
|
|
3368
3543
|
|
|
3369
3544
|
case 9:
|
|
3545
|
+
kwargs["last_modified_by"] = de.read_string(_SCHEMA_LIST_CONTEXTS_INPUT.members["last_modified_by"])
|
|
3546
|
+
|
|
3547
|
+
case 10:
|
|
3370
3548
|
kwargs["plaintext"] = de.read_string(_SCHEMA_LIST_CONTEXTS_INPUT.members["plaintext"])
|
|
3371
3549
|
|
|
3550
|
+
case 11:
|
|
3551
|
+
kwargs["dimension_match_strategy"] = de.read_string(_SCHEMA_LIST_CONTEXTS_INPUT.members["dimension_match_strategy"])
|
|
3552
|
+
|
|
3372
3553
|
case _:
|
|
3373
3554
|
logger.debug("Unexpected member schema: %s", schema)
|
|
3374
3555
|
|
|
@@ -3453,6 +3634,13 @@ LIST_CONTEXTS = APIOperation(
|
|
|
3453
3634
|
|
|
3454
3635
|
@dataclass(kw_only=True)
|
|
3455
3636
|
class MoveContextInput:
|
|
3637
|
+
"""
|
|
3638
|
+
|
|
3639
|
+
:param context:
|
|
3640
|
+
**[Required]** - Represents conditional criteria used for context matching. Keys
|
|
3641
|
+
define dimension names and values specify the criteria that must be met.
|
|
3642
|
+
|
|
3643
|
+
"""
|
|
3456
3644
|
|
|
3457
3645
|
workspace_id: str | None = None
|
|
3458
3646
|
org_id: str = "juspay"
|
|
@@ -3510,6 +3698,21 @@ class MoveContextInput:
|
|
|
3510
3698
|
|
|
3511
3699
|
@dataclass(kw_only=True)
|
|
3512
3700
|
class MoveContextOutput:
|
|
3701
|
+
"""
|
|
3702
|
+
|
|
3703
|
+
:param value:
|
|
3704
|
+
Represents conditional criteria used for context matching. Keys define dimension
|
|
3705
|
+
names and values specify the criteria that must be met.
|
|
3706
|
+
|
|
3707
|
+
:param override:
|
|
3708
|
+
Configuration overrides that replace default values when context conditions are
|
|
3709
|
+
met. Keys represent configuration keys and values are the override data.
|
|
3710
|
+
|
|
3711
|
+
:param weight:
|
|
3712
|
+
Priority weight used to determine the order of context evaluation. Higher
|
|
3713
|
+
weights take precedence during configuration resolution.
|
|
3714
|
+
|
|
3715
|
+
"""
|
|
3513
3716
|
|
|
3514
3717
|
id: str
|
|
3515
3718
|
|
|
@@ -3667,6 +3870,21 @@ class UpdateOverrideInput:
|
|
|
3667
3870
|
|
|
3668
3871
|
@dataclass(kw_only=True)
|
|
3669
3872
|
class UpdateOverrideOutput:
|
|
3873
|
+
"""
|
|
3874
|
+
|
|
3875
|
+
:param value:
|
|
3876
|
+
Represents conditional criteria used for context matching. Keys define dimension
|
|
3877
|
+
names and values specify the criteria that must be met.
|
|
3878
|
+
|
|
3879
|
+
:param override:
|
|
3880
|
+
Configuration overrides that replace default values when context conditions are
|
|
3881
|
+
met. Keys represent configuration keys and values are the override data.
|
|
3882
|
+
|
|
3883
|
+
:param weight:
|
|
3884
|
+
Priority weight used to determine the order of context evaluation. Higher
|
|
3885
|
+
weights take precedence during configuration resolution.
|
|
3886
|
+
|
|
3887
|
+
"""
|
|
3670
3888
|
|
|
3671
3889
|
id: str
|
|
3672
3890
|
|
|
@@ -3820,6 +4038,21 @@ class WeightRecomputeInput:
|
|
|
3820
4038
|
|
|
3821
4039
|
@dataclass(kw_only=True)
|
|
3822
4040
|
class WeightRecomputeResponse:
|
|
4041
|
+
"""
|
|
4042
|
+
|
|
4043
|
+
:param condition:
|
|
4044
|
+
Represents conditional criteria used for context matching. Keys define dimension
|
|
4045
|
+
names and values specify the criteria that must be met.
|
|
4046
|
+
|
|
4047
|
+
:param old_weight:
|
|
4048
|
+
Priority weight used to determine the order of context evaluation. Higher
|
|
4049
|
+
weights take precedence during configuration resolution.
|
|
4050
|
+
|
|
4051
|
+
:param new_weight:
|
|
4052
|
+
Priority weight used to determine the order of context evaluation. Higher
|
|
4053
|
+
weights take precedence during configuration resolution.
|
|
4054
|
+
|
|
4055
|
+
"""
|
|
3823
4056
|
|
|
3824
4057
|
id: str | None = None
|
|
3825
4058
|
condition: dict[str, Document] | None = None
|
|
@@ -4258,6 +4491,13 @@ def _deserialize_dependents(deserializer: ShapeDeserializer, schema: Schema) ->
|
|
|
4258
4491
|
|
|
4259
4492
|
@dataclass(kw_only=True)
|
|
4260
4493
|
class CreateDimensionOutput:
|
|
4494
|
+
"""
|
|
4495
|
+
|
|
4496
|
+
:param dependency_graph:
|
|
4497
|
+
**[Required]** - Generic key-value object structure used for flexible data
|
|
4498
|
+
representation throughout the API.
|
|
4499
|
+
|
|
4500
|
+
"""
|
|
4261
4501
|
|
|
4262
4502
|
dimension: str
|
|
4263
4503
|
|
|
@@ -4389,6 +4629,13 @@ CREATE_DIMENSION = APIOperation(
|
|
|
4389
4629
|
|
|
4390
4630
|
@dataclass(kw_only=True)
|
|
4391
4631
|
class CreateExperimentInput:
|
|
4632
|
+
"""
|
|
4633
|
+
|
|
4634
|
+
:param context:
|
|
4635
|
+
**[Required]** - Represents conditional criteria used for context matching. Keys
|
|
4636
|
+
define dimension names and values specify the criteria that must be met.
|
|
4637
|
+
|
|
4638
|
+
"""
|
|
4392
4639
|
|
|
4393
4640
|
workspace_id: str | None = None
|
|
4394
4641
|
org_id: str = "juspay"
|
|
@@ -4477,6 +4724,13 @@ class CreateExperimentInput:
|
|
|
4477
4724
|
|
|
4478
4725
|
@dataclass(kw_only=True)
|
|
4479
4726
|
class CreateExperimentOutput:
|
|
4727
|
+
"""
|
|
4728
|
+
|
|
4729
|
+
:param context:
|
|
4730
|
+
**[Required]** - Represents conditional criteria used for context matching. Keys
|
|
4731
|
+
define dimension names and values specify the criteria that must be met.
|
|
4732
|
+
|
|
4733
|
+
"""
|
|
4480
4734
|
|
|
4481
4735
|
id: str
|
|
4482
4736
|
|
|
@@ -4647,6 +4901,10 @@ class CreateExperimentGroupInput:
|
|
|
4647
4901
|
:param change_reason:
|
|
4648
4902
|
**[Required]** - Reason for creating this experiment group.
|
|
4649
4903
|
|
|
4904
|
+
:param context:
|
|
4905
|
+
**[Required]** - Represents conditional criteria used for context matching. Keys
|
|
4906
|
+
define dimension names and values specify the criteria that must be met.
|
|
4907
|
+
|
|
4650
4908
|
:param member_experiment_ids:
|
|
4651
4909
|
List of experiment IDs that are members of this group.
|
|
4652
4910
|
|
|
@@ -4728,6 +4986,10 @@ class CreateExperimentGroupOutput:
|
|
|
4728
4986
|
"""
|
|
4729
4987
|
Standard response structure for an experiment group.
|
|
4730
4988
|
|
|
4989
|
+
:param context:
|
|
4990
|
+
**[Required]** - Represents conditional criteria used for context matching. Keys
|
|
4991
|
+
define dimension names and values specify the criteria that must be met.
|
|
4992
|
+
|
|
4731
4993
|
"""
|
|
4732
4994
|
|
|
4733
4995
|
id: str
|
|
@@ -5417,6 +5679,13 @@ class Version(StrEnum):
|
|
|
5417
5679
|
|
|
5418
5680
|
@dataclass(kw_only=True)
|
|
5419
5681
|
class CreateWebhookInput:
|
|
5682
|
+
"""
|
|
5683
|
+
|
|
5684
|
+
:param custom_headers:
|
|
5685
|
+
Generic key-value object structure used for flexible data representation
|
|
5686
|
+
throughout the API.
|
|
5687
|
+
|
|
5688
|
+
"""
|
|
5420
5689
|
|
|
5421
5690
|
workspace_id: str | None = None
|
|
5422
5691
|
org_id: str = "juspay"
|
|
@@ -5512,6 +5781,13 @@ class CreateWebhookInput:
|
|
|
5512
5781
|
|
|
5513
5782
|
@dataclass(kw_only=True)
|
|
5514
5783
|
class CreateWebhookOutput:
|
|
5784
|
+
"""
|
|
5785
|
+
|
|
5786
|
+
:param custom_headers:
|
|
5787
|
+
Generic key-value object structure used for flexible data representation
|
|
5788
|
+
throughout the API.
|
|
5789
|
+
|
|
5790
|
+
"""
|
|
5515
5791
|
|
|
5516
5792
|
name: str
|
|
5517
5793
|
|
|
@@ -6493,6 +6769,10 @@ class DeleteExperimentGroupOutput:
|
|
|
6493
6769
|
"""
|
|
6494
6770
|
Standard response structure for an experiment group.
|
|
6495
6771
|
|
|
6772
|
+
:param context:
|
|
6773
|
+
**[Required]** - Represents conditional criteria used for context matching. Keys
|
|
6774
|
+
define dimension names and values specify the criteria that must be met.
|
|
6775
|
+
|
|
6496
6776
|
"""
|
|
6497
6777
|
|
|
6498
6778
|
id: str
|
|
@@ -6921,6 +7201,13 @@ class GetDimensionInput:
|
|
|
6921
7201
|
|
|
6922
7202
|
@dataclass(kw_only=True)
|
|
6923
7203
|
class GetDimensionOutput:
|
|
7204
|
+
"""
|
|
7205
|
+
|
|
7206
|
+
:param dependency_graph:
|
|
7207
|
+
**[Required]** - Generic key-value object structure used for flexible data
|
|
7208
|
+
representation throughout the API.
|
|
7209
|
+
|
|
7210
|
+
"""
|
|
6924
7211
|
|
|
6925
7212
|
dimension: str
|
|
6926
7213
|
|
|
@@ -7099,6 +7386,13 @@ class ListDimensionsInput:
|
|
|
7099
7386
|
|
|
7100
7387
|
@dataclass(kw_only=True)
|
|
7101
7388
|
class DimensionExt:
|
|
7389
|
+
"""
|
|
7390
|
+
|
|
7391
|
+
:param dependency_graph:
|
|
7392
|
+
**[Required]** - Generic key-value object structure used for flexible data
|
|
7393
|
+
representation throughout the API.
|
|
7394
|
+
|
|
7395
|
+
"""
|
|
7102
7396
|
|
|
7103
7397
|
dimension: str
|
|
7104
7398
|
|
|
@@ -7377,6 +7671,13 @@ class UpdateDimensionInput:
|
|
|
7377
7671
|
|
|
7378
7672
|
@dataclass(kw_only=True)
|
|
7379
7673
|
class UpdateDimensionOutput:
|
|
7674
|
+
"""
|
|
7675
|
+
|
|
7676
|
+
:param dependency_graph:
|
|
7677
|
+
**[Required]** - Generic key-value object structure used for flexible data
|
|
7678
|
+
representation throughout the API.
|
|
7679
|
+
|
|
7680
|
+
"""
|
|
7380
7681
|
|
|
7381
7682
|
dimension: str
|
|
7382
7683
|
|
|
@@ -7552,6 +7853,13 @@ class DiscardExperimentInput:
|
|
|
7552
7853
|
|
|
7553
7854
|
@dataclass(kw_only=True)
|
|
7554
7855
|
class DiscardExperimentOutput:
|
|
7856
|
+
"""
|
|
7857
|
+
|
|
7858
|
+
:param context:
|
|
7859
|
+
**[Required]** - Represents conditional criteria used for context matching. Keys
|
|
7860
|
+
define dimension names and values specify the criteria that must be met.
|
|
7861
|
+
|
|
7862
|
+
"""
|
|
7555
7863
|
|
|
7556
7864
|
id: str
|
|
7557
7865
|
|
|
@@ -7757,6 +8065,10 @@ class GetExperimentGroupOutput:
|
|
|
7757
8065
|
"""
|
|
7758
8066
|
Standard response structure for an experiment group.
|
|
7759
8067
|
|
|
8068
|
+
:param context:
|
|
8069
|
+
**[Required]** - Represents conditional criteria used for context matching. Keys
|
|
8070
|
+
define dimension names and values specify the criteria that must be met.
|
|
8071
|
+
|
|
7760
8072
|
"""
|
|
7761
8073
|
|
|
7762
8074
|
id: str
|
|
@@ -7997,6 +8309,10 @@ class ExperimentGroupResponse:
|
|
|
7997
8309
|
"""
|
|
7998
8310
|
Standard response structure for an experiment group.
|
|
7999
8311
|
|
|
8312
|
+
:param context:
|
|
8313
|
+
**[Required]** - Represents conditional criteria used for context matching. Keys
|
|
8314
|
+
define dimension names and values specify the criteria that must be met.
|
|
8315
|
+
|
|
8000
8316
|
"""
|
|
8001
8317
|
|
|
8002
8318
|
id: str
|
|
@@ -8250,6 +8566,10 @@ class RemoveMembersFromGroupOutput:
|
|
|
8250
8566
|
"""
|
|
8251
8567
|
Standard response structure for an experiment group.
|
|
8252
8568
|
|
|
8569
|
+
:param context:
|
|
8570
|
+
**[Required]** - Represents conditional criteria used for context matching. Keys
|
|
8571
|
+
define dimension names and values specify the criteria that must be met.
|
|
8572
|
+
|
|
8253
8573
|
"""
|
|
8254
8574
|
|
|
8255
8575
|
id: str
|
|
@@ -8447,6 +8767,10 @@ class UpdateExperimentGroupOutput:
|
|
|
8447
8767
|
"""
|
|
8448
8768
|
Standard response structure for an experiment group.
|
|
8449
8769
|
|
|
8770
|
+
:param context:
|
|
8771
|
+
**[Required]** - Represents conditional criteria used for context matching. Keys
|
|
8772
|
+
define dimension names and values specify the criteria that must be met.
|
|
8773
|
+
|
|
8450
8774
|
"""
|
|
8451
8775
|
|
|
8452
8776
|
id: str
|
|
@@ -8571,6 +8895,13 @@ ShapeID("io.superposition#InternalServerError"): InternalServerError,
|
|
|
8571
8895
|
|
|
8572
8896
|
@dataclass(kw_only=True)
|
|
8573
8897
|
class ExperimentResponse:
|
|
8898
|
+
"""
|
|
8899
|
+
|
|
8900
|
+
:param context:
|
|
8901
|
+
**[Required]** - Represents conditional criteria used for context matching. Keys
|
|
8902
|
+
define dimension names and values specify the criteria that must be met.
|
|
8903
|
+
|
|
8904
|
+
"""
|
|
8574
8905
|
|
|
8575
8906
|
id: str
|
|
8576
8907
|
|
|
@@ -8776,6 +9107,13 @@ class GetExperimentInput:
|
|
|
8776
9107
|
|
|
8777
9108
|
@dataclass(kw_only=True)
|
|
8778
9109
|
class GetExperimentOutput:
|
|
9110
|
+
"""
|
|
9111
|
+
|
|
9112
|
+
:param context:
|
|
9113
|
+
**[Required]** - Represents conditional criteria used for context matching. Keys
|
|
9114
|
+
define dimension names and values specify the criteria that must be met.
|
|
9115
|
+
|
|
9116
|
+
"""
|
|
8779
9117
|
|
|
8780
9118
|
id: str
|
|
8781
9119
|
|
|
@@ -8944,6 +9282,15 @@ class ExperimentSortOn(StrEnum):
|
|
|
8944
9282
|
|
|
8945
9283
|
@dataclass(kw_only=True)
|
|
8946
9284
|
class ListExperimentInput:
|
|
9285
|
+
"""
|
|
9286
|
+
|
|
9287
|
+
:param sort_by:
|
|
9288
|
+
Sort order enumeration for list operations.
|
|
9289
|
+
|
|
9290
|
+
:param dimension_match_strategy:
|
|
9291
|
+
Strategy to follow while filter items based on the context
|
|
9292
|
+
|
|
9293
|
+
"""
|
|
8947
9294
|
|
|
8948
9295
|
workspace_id: str | None = None
|
|
8949
9296
|
org_id: str = "juspay"
|
|
@@ -8959,6 +9306,8 @@ class ListExperimentInput:
|
|
|
8959
9306
|
created_by: str | None = None
|
|
8960
9307
|
sort_on: str | None = None
|
|
8961
9308
|
sort_by: str | None = None
|
|
9309
|
+
global_experiments_only: bool | None = None
|
|
9310
|
+
dimension_match_strategy: str | None = None
|
|
8962
9311
|
|
|
8963
9312
|
def serialize(self, serializer: ShapeSerializer):
|
|
8964
9313
|
serializer.write_struct(_SCHEMA_LIST_EXPERIMENT_INPUT, self)
|
|
@@ -9018,6 +9367,12 @@ class ListExperimentInput:
|
|
|
9018
9367
|
case 13:
|
|
9019
9368
|
kwargs["sort_by"] = de.read_string(_SCHEMA_LIST_EXPERIMENT_INPUT.members["sort_by"])
|
|
9020
9369
|
|
|
9370
|
+
case 14:
|
|
9371
|
+
kwargs["global_experiments_only"] = de.read_boolean(_SCHEMA_LIST_EXPERIMENT_INPUT.members["global_experiments_only"])
|
|
9372
|
+
|
|
9373
|
+
case 15:
|
|
9374
|
+
kwargs["dimension_match_strategy"] = de.read_string(_SCHEMA_LIST_EXPERIMENT_INPUT.members["dimension_match_strategy"])
|
|
9375
|
+
|
|
9021
9376
|
case _:
|
|
9022
9377
|
logger.debug("Unexpected member schema: %s", schema)
|
|
9023
9378
|
|
|
@@ -9125,6 +9480,13 @@ class PauseExperimentInput:
|
|
|
9125
9480
|
|
|
9126
9481
|
@dataclass(kw_only=True)
|
|
9127
9482
|
class PauseExperimentOutput:
|
|
9483
|
+
"""
|
|
9484
|
+
|
|
9485
|
+
:param context:
|
|
9486
|
+
**[Required]** - Represents conditional criteria used for context matching. Keys
|
|
9487
|
+
define dimension names and values specify the criteria that must be met.
|
|
9488
|
+
|
|
9489
|
+
"""
|
|
9128
9490
|
|
|
9129
9491
|
id: str
|
|
9130
9492
|
|
|
@@ -9339,6 +9701,13 @@ class RampExperimentInput:
|
|
|
9339
9701
|
|
|
9340
9702
|
@dataclass(kw_only=True)
|
|
9341
9703
|
class RampExperimentOutput:
|
|
9704
|
+
"""
|
|
9705
|
+
|
|
9706
|
+
:param context:
|
|
9707
|
+
**[Required]** - Represents conditional criteria used for context matching. Keys
|
|
9708
|
+
define dimension names and values specify the criteria that must be met.
|
|
9709
|
+
|
|
9710
|
+
"""
|
|
9342
9711
|
|
|
9343
9712
|
id: str
|
|
9344
9713
|
|
|
@@ -9546,6 +9915,13 @@ class ResumeExperimentInput:
|
|
|
9546
9915
|
|
|
9547
9916
|
@dataclass(kw_only=True)
|
|
9548
9917
|
class ResumeExperimentOutput:
|
|
9918
|
+
"""
|
|
9919
|
+
|
|
9920
|
+
:param context:
|
|
9921
|
+
**[Required]** - Represents conditional criteria used for context matching. Keys
|
|
9922
|
+
define dimension names and values specify the criteria that must be met.
|
|
9923
|
+
|
|
9924
|
+
"""
|
|
9549
9925
|
|
|
9550
9926
|
id: str
|
|
9551
9927
|
|
|
@@ -9834,6 +10210,13 @@ class UpdateOverridesExperimentInput:
|
|
|
9834
10210
|
|
|
9835
10211
|
@dataclass(kw_only=True)
|
|
9836
10212
|
class UpdateOverridesExperimentOutput:
|
|
10213
|
+
"""
|
|
10214
|
+
|
|
10215
|
+
:param context:
|
|
10216
|
+
**[Required]** - Represents conditional criteria used for context matching. Keys
|
|
10217
|
+
define dimension names and values specify the criteria that must be met.
|
|
10218
|
+
|
|
10219
|
+
"""
|
|
9837
10220
|
|
|
9838
10221
|
id: str
|
|
9839
10222
|
|
|
@@ -11398,6 +11781,13 @@ class GetWebhookInput:
|
|
|
11398
11781
|
|
|
11399
11782
|
@dataclass(kw_only=True)
|
|
11400
11783
|
class GetWebhookOutput:
|
|
11784
|
+
"""
|
|
11785
|
+
|
|
11786
|
+
:param custom_headers:
|
|
11787
|
+
Generic key-value object structure used for flexible data representation
|
|
11788
|
+
throughout the API.
|
|
11789
|
+
|
|
11790
|
+
"""
|
|
11401
11791
|
|
|
11402
11792
|
name: str
|
|
11403
11793
|
|
|
@@ -11790,6 +12180,13 @@ class ListWebhookInput:
|
|
|
11790
12180
|
|
|
11791
12181
|
@dataclass(kw_only=True)
|
|
11792
12182
|
class WebhookResponse:
|
|
12183
|
+
"""
|
|
12184
|
+
|
|
12185
|
+
:param custom_headers:
|
|
12186
|
+
Generic key-value object structure used for flexible data representation
|
|
12187
|
+
throughout the API.
|
|
12188
|
+
|
|
12189
|
+
"""
|
|
11793
12190
|
|
|
11794
12191
|
name: str
|
|
11795
12192
|
|
|
@@ -12721,6 +13118,13 @@ ShapeID("io.superposition#InternalServerError"): InternalServerError,
|
|
|
12721
13118
|
|
|
12722
13119
|
@dataclass(kw_only=True)
|
|
12723
13120
|
class UpdateWebhookInput:
|
|
13121
|
+
"""
|
|
13122
|
+
|
|
13123
|
+
:param custom_headers:
|
|
13124
|
+
Generic key-value object structure used for flexible data representation
|
|
13125
|
+
throughout the API.
|
|
13126
|
+
|
|
13127
|
+
"""
|
|
12724
13128
|
|
|
12725
13129
|
workspace_id: str | None = None
|
|
12726
13130
|
org_id: str = "juspay"
|
|
@@ -12813,6 +13217,13 @@ class UpdateWebhookInput:
|
|
|
12813
13217
|
|
|
12814
13218
|
@dataclass(kw_only=True)
|
|
12815
13219
|
class UpdateWebhookOutput:
|
|
13220
|
+
"""
|
|
13221
|
+
|
|
13222
|
+
:param custom_headers:
|
|
13223
|
+
Generic key-value object structure used for flexible data representation
|
|
13224
|
+
throughout the API.
|
|
13225
|
+
|
|
13226
|
+
"""
|
|
12816
13227
|
|
|
12817
13228
|
name: str
|
|
12818
13229
|
|