superposition-sdk 0.91.1__py3-none-any.whl → 0.92.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 +1396 -443
- superposition_sdk/client.py +228 -4
- superposition_sdk/config.py +15 -1
- superposition_sdk/deserialize.py +241 -80
- superposition_sdk/models.py +1316 -374
- superposition_sdk/serialize.py +306 -69
- {superposition_sdk-0.91.1.dist-info → superposition_sdk-0.92.0.dist-info}/METADATA +1 -1
- superposition_sdk-0.92.0.dist-info/RECORD +12 -0
- superposition_sdk-0.91.1.dist-info/RECORD +0 -12
- {superposition_sdk-0.91.1.dist-info → superposition_sdk-0.92.0.dist-info}/WHEEL +0 -0
superposition_sdk/client.py
CHANGED
|
@@ -54,19 +54,25 @@ from .deserialize import (
|
|
|
54
54
|
_deserialize_delete_experiment_group,
|
|
55
55
|
_deserialize_delete_function,
|
|
56
56
|
_deserialize_delete_type_templates,
|
|
57
|
+
_deserialize_delete_webhook,
|
|
57
58
|
_deserialize_discard_experiment,
|
|
58
59
|
_deserialize_get_config,
|
|
59
60
|
_deserialize_get_config_fast,
|
|
60
61
|
_deserialize_get_context,
|
|
61
62
|
_deserialize_get_context_from_condition,
|
|
63
|
+
_deserialize_get_default_config,
|
|
62
64
|
_deserialize_get_dimension,
|
|
63
65
|
_deserialize_get_experiment,
|
|
64
66
|
_deserialize_get_experiment_group,
|
|
65
67
|
_deserialize_get_function,
|
|
66
68
|
_deserialize_get_organisation,
|
|
67
69
|
_deserialize_get_resolved_config,
|
|
70
|
+
_deserialize_get_type_template,
|
|
68
71
|
_deserialize_get_type_templates_list,
|
|
72
|
+
_deserialize_get_version,
|
|
69
73
|
_deserialize_get_webhook,
|
|
74
|
+
_deserialize_get_webhook_by_event,
|
|
75
|
+
_deserialize_get_workspace,
|
|
70
76
|
_deserialize_list_audit_logs,
|
|
71
77
|
_deserialize_list_contexts,
|
|
72
78
|
_deserialize_list_default_configs,
|
|
@@ -96,6 +102,7 @@ from .deserialize import (
|
|
|
96
102
|
_deserialize_update_type_templates,
|
|
97
103
|
_deserialize_update_webhook,
|
|
98
104
|
_deserialize_update_workspace,
|
|
105
|
+
_deserialize_validate_context,
|
|
99
106
|
_deserialize_weight_recompute,
|
|
100
107
|
)
|
|
101
108
|
from .models import (
|
|
@@ -147,6 +154,7 @@ from .models import (
|
|
|
147
154
|
DELETE_EXPERIMENT_GROUP,
|
|
148
155
|
DELETE_FUNCTION,
|
|
149
156
|
DELETE_TYPE_TEMPLATES,
|
|
157
|
+
DELETE_WEBHOOK,
|
|
150
158
|
DISCARD_EXPERIMENT,
|
|
151
159
|
DeleteContextInput,
|
|
152
160
|
DeleteContextOutput,
|
|
@@ -160,20 +168,27 @@ from .models import (
|
|
|
160
168
|
DeleteFunctionOutput,
|
|
161
169
|
DeleteTypeTemplatesInput,
|
|
162
170
|
DeleteTypeTemplatesOutput,
|
|
171
|
+
DeleteWebhookInput,
|
|
172
|
+
DeleteWebhookOutput,
|
|
163
173
|
DiscardExperimentInput,
|
|
164
174
|
DiscardExperimentOutput,
|
|
165
175
|
GET_CONFIG,
|
|
166
176
|
GET_CONFIG_FAST,
|
|
167
177
|
GET_CONTEXT,
|
|
168
178
|
GET_CONTEXT_FROM_CONDITION,
|
|
179
|
+
GET_DEFAULT_CONFIG,
|
|
169
180
|
GET_DIMENSION,
|
|
170
181
|
GET_EXPERIMENT,
|
|
171
182
|
GET_EXPERIMENT_GROUP,
|
|
172
183
|
GET_FUNCTION,
|
|
173
184
|
GET_ORGANISATION,
|
|
174
185
|
GET_RESOLVED_CONFIG,
|
|
186
|
+
GET_TYPE_TEMPLATE,
|
|
175
187
|
GET_TYPE_TEMPLATES_LIST,
|
|
188
|
+
GET_VERSION,
|
|
176
189
|
GET_WEBHOOK,
|
|
190
|
+
GET_WEBHOOK_BY_EVENT,
|
|
191
|
+
GET_WORKSPACE,
|
|
177
192
|
GetConfigFastInput,
|
|
178
193
|
GetConfigFastOutput,
|
|
179
194
|
GetConfigInput,
|
|
@@ -182,6 +197,8 @@ from .models import (
|
|
|
182
197
|
GetContextFromConditionOutput,
|
|
183
198
|
GetContextInput,
|
|
184
199
|
GetContextOutput,
|
|
200
|
+
GetDefaultConfigInput,
|
|
201
|
+
GetDefaultConfigOutput,
|
|
185
202
|
GetDimensionInput,
|
|
186
203
|
GetDimensionOutput,
|
|
187
204
|
GetExperimentGroupInput,
|
|
@@ -194,10 +211,18 @@ from .models import (
|
|
|
194
211
|
GetOrganisationOutput,
|
|
195
212
|
GetResolvedConfigInput,
|
|
196
213
|
GetResolvedConfigOutput,
|
|
214
|
+
GetTypeTemplateInput,
|
|
215
|
+
GetTypeTemplateOutput,
|
|
197
216
|
GetTypeTemplatesListInput,
|
|
198
217
|
GetTypeTemplatesListOutput,
|
|
218
|
+
GetVersionInput,
|
|
219
|
+
GetVersionOutput,
|
|
220
|
+
GetWebhookByEventInput,
|
|
221
|
+
GetWebhookByEventOutput,
|
|
199
222
|
GetWebhookInput,
|
|
200
223
|
GetWebhookOutput,
|
|
224
|
+
GetWorkspaceInput,
|
|
225
|
+
GetWorkspaceOutput,
|
|
201
226
|
LIST_AUDIT_LOGS,
|
|
202
227
|
LIST_CONTEXTS,
|
|
203
228
|
LIST_DEFAULT_CONFIGS,
|
|
@@ -286,6 +311,9 @@ from .models import (
|
|
|
286
311
|
UpdateWebhookOutput,
|
|
287
312
|
UpdateWorkspaceInput,
|
|
288
313
|
UpdateWorkspaceOutput,
|
|
314
|
+
VALIDATE_CONTEXT,
|
|
315
|
+
ValidateContextInput,
|
|
316
|
+
ValidateContextOutput,
|
|
289
317
|
WEIGHT_RECOMPUTE,
|
|
290
318
|
WeightRecomputeInput,
|
|
291
319
|
WeightRecomputeOutput,
|
|
@@ -311,19 +339,25 @@ from .serialize import (
|
|
|
311
339
|
_serialize_delete_experiment_group,
|
|
312
340
|
_serialize_delete_function,
|
|
313
341
|
_serialize_delete_type_templates,
|
|
342
|
+
_serialize_delete_webhook,
|
|
314
343
|
_serialize_discard_experiment,
|
|
315
344
|
_serialize_get_config,
|
|
316
345
|
_serialize_get_config_fast,
|
|
317
346
|
_serialize_get_context,
|
|
318
347
|
_serialize_get_context_from_condition,
|
|
348
|
+
_serialize_get_default_config,
|
|
319
349
|
_serialize_get_dimension,
|
|
320
350
|
_serialize_get_experiment,
|
|
321
351
|
_serialize_get_experiment_group,
|
|
322
352
|
_serialize_get_function,
|
|
323
353
|
_serialize_get_organisation,
|
|
324
354
|
_serialize_get_resolved_config,
|
|
355
|
+
_serialize_get_type_template,
|
|
325
356
|
_serialize_get_type_templates_list,
|
|
357
|
+
_serialize_get_version,
|
|
326
358
|
_serialize_get_webhook,
|
|
359
|
+
_serialize_get_webhook_by_event,
|
|
360
|
+
_serialize_get_workspace,
|
|
327
361
|
_serialize_list_audit_logs,
|
|
328
362
|
_serialize_list_contexts,
|
|
329
363
|
_serialize_list_default_configs,
|
|
@@ -353,6 +387,7 @@ from .serialize import (
|
|
|
353
387
|
_serialize_update_type_templates,
|
|
354
388
|
_serialize_update_webhook,
|
|
355
389
|
_serialize_update_workspace,
|
|
390
|
+
_serialize_validate_context,
|
|
356
391
|
_serialize_weight_recompute,
|
|
357
392
|
)
|
|
358
393
|
|
|
@@ -653,8 +688,9 @@ class Superposition:
|
|
|
653
688
|
|
|
654
689
|
async def create_organisation(self, input: CreateOrganisationInput, plugins: list[Plugin] | None = None) -> CreateOrganisationOutput:
|
|
655
690
|
"""
|
|
656
|
-
Creates a new organisation with specified
|
|
657
|
-
and
|
|
691
|
+
Creates a new organisation with specified name and administrator email. This is
|
|
692
|
+
the top-level entity that contains workspaces and manages organizational-level
|
|
693
|
+
settings.
|
|
658
694
|
|
|
659
695
|
:param input: The operation's input.
|
|
660
696
|
|
|
@@ -923,6 +959,33 @@ class Superposition:
|
|
|
923
959
|
operation=DELETE_TYPE_TEMPLATES,
|
|
924
960
|
)
|
|
925
961
|
|
|
962
|
+
async def delete_webhook(self, input: DeleteWebhookInput, plugins: list[Plugin] | None = None) -> DeleteWebhookOutput:
|
|
963
|
+
"""
|
|
964
|
+
Permanently removes a webhook config from the workspace, stopping all future
|
|
965
|
+
event notifications to that endpoint.
|
|
966
|
+
|
|
967
|
+
:param input: The operation's input.
|
|
968
|
+
|
|
969
|
+
:param plugins: A list of callables that modify the configuration dynamically.
|
|
970
|
+
Changes made by these plugins only apply for the duration of the operation
|
|
971
|
+
execution and will not affect any other operation invocations.
|
|
972
|
+
|
|
973
|
+
"""
|
|
974
|
+
operation_plugins: list[Plugin] = [
|
|
975
|
+
|
|
976
|
+
]
|
|
977
|
+
if plugins:
|
|
978
|
+
operation_plugins.extend(plugins)
|
|
979
|
+
|
|
980
|
+
return await self._execute_operation(
|
|
981
|
+
input=input,
|
|
982
|
+
plugins=operation_plugins,
|
|
983
|
+
serialize=_serialize_delete_webhook,
|
|
984
|
+
deserialize=_deserialize_delete_webhook,
|
|
985
|
+
config=self._config,
|
|
986
|
+
operation=DELETE_WEBHOOK,
|
|
987
|
+
)
|
|
988
|
+
|
|
926
989
|
async def discard_experiment(self, input: DiscardExperimentInput, plugins: list[Plugin] | None = None) -> DiscardExperimentOutput:
|
|
927
990
|
"""
|
|
928
991
|
Discards an experiment without selecting a winner, effectively canceling the
|
|
@@ -1057,6 +1120,33 @@ class Superposition:
|
|
|
1057
1120
|
operation=GET_CONTEXT_FROM_CONDITION,
|
|
1058
1121
|
)
|
|
1059
1122
|
|
|
1123
|
+
async def get_default_config(self, input: GetDefaultConfigInput, plugins: list[Plugin] | None = None) -> GetDefaultConfigOutput:
|
|
1124
|
+
"""
|
|
1125
|
+
Retrieves a specific default config entry by its key, including its value,
|
|
1126
|
+
schema, function mappings, and metadata.
|
|
1127
|
+
|
|
1128
|
+
:param input: The operation's input.
|
|
1129
|
+
|
|
1130
|
+
:param plugins: A list of callables that modify the configuration dynamically.
|
|
1131
|
+
Changes made by these plugins only apply for the duration of the operation
|
|
1132
|
+
execution and will not affect any other operation invocations.
|
|
1133
|
+
|
|
1134
|
+
"""
|
|
1135
|
+
operation_plugins: list[Plugin] = [
|
|
1136
|
+
|
|
1137
|
+
]
|
|
1138
|
+
if plugins:
|
|
1139
|
+
operation_plugins.extend(plugins)
|
|
1140
|
+
|
|
1141
|
+
return await self._execute_operation(
|
|
1142
|
+
input=input,
|
|
1143
|
+
plugins=operation_plugins,
|
|
1144
|
+
serialize=_serialize_get_default_config,
|
|
1145
|
+
deserialize=_deserialize_get_default_config,
|
|
1146
|
+
config=self._config,
|
|
1147
|
+
operation=GET_DEFAULT_CONFIG,
|
|
1148
|
+
)
|
|
1149
|
+
|
|
1060
1150
|
async def get_dimension(self, input: GetDimensionInput, plugins: list[Plugin] | None = None) -> GetDimensionOutput:
|
|
1061
1151
|
"""
|
|
1062
1152
|
Retrieves detailed information about a specific dimension, including its schema,
|
|
@@ -1218,6 +1308,33 @@ class Superposition:
|
|
|
1218
1308
|
operation=GET_RESOLVED_CONFIG,
|
|
1219
1309
|
)
|
|
1220
1310
|
|
|
1311
|
+
async def get_type_template(self, input: GetTypeTemplateInput, plugins: list[Plugin] | None = None) -> GetTypeTemplateOutput:
|
|
1312
|
+
"""
|
|
1313
|
+
Retrieves detailed information about a specific type template including its
|
|
1314
|
+
schema and metadata.
|
|
1315
|
+
|
|
1316
|
+
:param input: The operation's input.
|
|
1317
|
+
|
|
1318
|
+
:param plugins: A list of callables that modify the configuration dynamically.
|
|
1319
|
+
Changes made by these plugins only apply for the duration of the operation
|
|
1320
|
+
execution and will not affect any other operation invocations.
|
|
1321
|
+
|
|
1322
|
+
"""
|
|
1323
|
+
operation_plugins: list[Plugin] = [
|
|
1324
|
+
|
|
1325
|
+
]
|
|
1326
|
+
if plugins:
|
|
1327
|
+
operation_plugins.extend(plugins)
|
|
1328
|
+
|
|
1329
|
+
return await self._execute_operation(
|
|
1330
|
+
input=input,
|
|
1331
|
+
plugins=operation_plugins,
|
|
1332
|
+
serialize=_serialize_get_type_template,
|
|
1333
|
+
deserialize=_deserialize_get_type_template,
|
|
1334
|
+
config=self._config,
|
|
1335
|
+
operation=GET_TYPE_TEMPLATE,
|
|
1336
|
+
)
|
|
1337
|
+
|
|
1221
1338
|
async def get_type_templates_list(self, input: GetTypeTemplatesListInput, plugins: list[Plugin] | None = None) -> GetTypeTemplatesListOutput:
|
|
1222
1339
|
"""
|
|
1223
1340
|
Retrieves a paginated list of all type templates in the workspace, including
|
|
@@ -1245,6 +1362,33 @@ class Superposition:
|
|
|
1245
1362
|
operation=GET_TYPE_TEMPLATES_LIST,
|
|
1246
1363
|
)
|
|
1247
1364
|
|
|
1365
|
+
async def get_version(self, input: GetVersionInput, plugins: list[Plugin] | None = None) -> GetVersionOutput:
|
|
1366
|
+
"""
|
|
1367
|
+
Retrieves a specific config version along with its metadata for audit and
|
|
1368
|
+
rollback purposes.
|
|
1369
|
+
|
|
1370
|
+
:param input: The operation's input.
|
|
1371
|
+
|
|
1372
|
+
:param plugins: A list of callables that modify the configuration dynamically.
|
|
1373
|
+
Changes made by these plugins only apply for the duration of the operation
|
|
1374
|
+
execution and will not affect any other operation invocations.
|
|
1375
|
+
|
|
1376
|
+
"""
|
|
1377
|
+
operation_plugins: list[Plugin] = [
|
|
1378
|
+
|
|
1379
|
+
]
|
|
1380
|
+
if plugins:
|
|
1381
|
+
operation_plugins.extend(plugins)
|
|
1382
|
+
|
|
1383
|
+
return await self._execute_operation(
|
|
1384
|
+
input=input,
|
|
1385
|
+
plugins=operation_plugins,
|
|
1386
|
+
serialize=_serialize_get_version,
|
|
1387
|
+
deserialize=_deserialize_get_version,
|
|
1388
|
+
config=self._config,
|
|
1389
|
+
operation=GET_VERSION,
|
|
1390
|
+
)
|
|
1391
|
+
|
|
1248
1392
|
async def get_webhook(self, input: GetWebhookInput, plugins: list[Plugin] | None = None) -> GetWebhookOutput:
|
|
1249
1393
|
"""
|
|
1250
1394
|
Retrieves detailed information about a specific webhook config, including its
|
|
@@ -1272,6 +1416,60 @@ class Superposition:
|
|
|
1272
1416
|
operation=GET_WEBHOOK,
|
|
1273
1417
|
)
|
|
1274
1418
|
|
|
1419
|
+
async def get_webhook_by_event(self, input: GetWebhookByEventInput, plugins: list[Plugin] | None = None) -> GetWebhookByEventOutput:
|
|
1420
|
+
"""
|
|
1421
|
+
Retrieves a webhook configuration based on a specific event type, allowing users
|
|
1422
|
+
to find which webhook is set to trigger for that event.
|
|
1423
|
+
|
|
1424
|
+
:param input: The operation's input.
|
|
1425
|
+
|
|
1426
|
+
:param plugins: A list of callables that modify the configuration dynamically.
|
|
1427
|
+
Changes made by these plugins only apply for the duration of the operation
|
|
1428
|
+
execution and will not affect any other operation invocations.
|
|
1429
|
+
|
|
1430
|
+
"""
|
|
1431
|
+
operation_plugins: list[Plugin] = [
|
|
1432
|
+
|
|
1433
|
+
]
|
|
1434
|
+
if plugins:
|
|
1435
|
+
operation_plugins.extend(plugins)
|
|
1436
|
+
|
|
1437
|
+
return await self._execute_operation(
|
|
1438
|
+
input=input,
|
|
1439
|
+
plugins=operation_plugins,
|
|
1440
|
+
serialize=_serialize_get_webhook_by_event,
|
|
1441
|
+
deserialize=_deserialize_get_webhook_by_event,
|
|
1442
|
+
config=self._config,
|
|
1443
|
+
operation=GET_WEBHOOK_BY_EVENT,
|
|
1444
|
+
)
|
|
1445
|
+
|
|
1446
|
+
async def get_workspace(self, input: GetWorkspaceInput, plugins: list[Plugin] | None = None) -> GetWorkspaceOutput:
|
|
1447
|
+
"""
|
|
1448
|
+
Retrieves detailed information about a specific workspace including its
|
|
1449
|
+
configuration and metadata.
|
|
1450
|
+
|
|
1451
|
+
:param input: The operation's input.
|
|
1452
|
+
|
|
1453
|
+
:param plugins: A list of callables that modify the configuration dynamically.
|
|
1454
|
+
Changes made by these plugins only apply for the duration of the operation
|
|
1455
|
+
execution and will not affect any other operation invocations.
|
|
1456
|
+
|
|
1457
|
+
"""
|
|
1458
|
+
operation_plugins: list[Plugin] = [
|
|
1459
|
+
|
|
1460
|
+
]
|
|
1461
|
+
if plugins:
|
|
1462
|
+
operation_plugins.extend(plugins)
|
|
1463
|
+
|
|
1464
|
+
return await self._execute_operation(
|
|
1465
|
+
input=input,
|
|
1466
|
+
plugins=operation_plugins,
|
|
1467
|
+
serialize=_serialize_get_workspace,
|
|
1468
|
+
deserialize=_deserialize_get_workspace,
|
|
1469
|
+
config=self._config,
|
|
1470
|
+
operation=GET_WORKSPACE,
|
|
1471
|
+
)
|
|
1472
|
+
|
|
1275
1473
|
async def list_audit_logs(self, input: ListAuditLogsInput, plugins: list[Plugin] | None = None) -> ListAuditLogsOutput:
|
|
1276
1474
|
"""
|
|
1277
1475
|
Retrieves a paginated list of audit logs with support for filtering by date
|
|
@@ -1463,8 +1661,8 @@ class Superposition:
|
|
|
1463
1661
|
|
|
1464
1662
|
async def list_organisation(self, input: ListOrganisationInput, plugins: list[Plugin] | None = None) -> ListOrganisationOutput:
|
|
1465
1663
|
"""
|
|
1466
|
-
Retrieves a paginated list of all organisations with their basic information
|
|
1467
|
-
|
|
1664
|
+
Retrieves a paginated list of all organisations with their basic information,
|
|
1665
|
+
creation details, and current status.
|
|
1468
1666
|
|
|
1469
1667
|
:param input: The operation's input.
|
|
1470
1668
|
|
|
@@ -2059,6 +2257,32 @@ class Superposition:
|
|
|
2059
2257
|
operation=UPDATE_WORKSPACE,
|
|
2060
2258
|
)
|
|
2061
2259
|
|
|
2260
|
+
async def validate_context(self, input: ValidateContextInput, plugins: list[Plugin] | None = None) -> ValidateContextOutput:
|
|
2261
|
+
"""
|
|
2262
|
+
Validates if a given context condition is well-formed
|
|
2263
|
+
|
|
2264
|
+
:param input: The operation's input.
|
|
2265
|
+
|
|
2266
|
+
:param plugins: A list of callables that modify the configuration dynamically.
|
|
2267
|
+
Changes made by these plugins only apply for the duration of the operation
|
|
2268
|
+
execution and will not affect any other operation invocations.
|
|
2269
|
+
|
|
2270
|
+
"""
|
|
2271
|
+
operation_plugins: list[Plugin] = [
|
|
2272
|
+
|
|
2273
|
+
]
|
|
2274
|
+
if plugins:
|
|
2275
|
+
operation_plugins.extend(plugins)
|
|
2276
|
+
|
|
2277
|
+
return await self._execute_operation(
|
|
2278
|
+
input=input,
|
|
2279
|
+
plugins=operation_plugins,
|
|
2280
|
+
serialize=_serialize_validate_context,
|
|
2281
|
+
deserialize=_deserialize_validate_context,
|
|
2282
|
+
config=self._config,
|
|
2283
|
+
operation=VALIDATE_CONTEXT,
|
|
2284
|
+
)
|
|
2285
|
+
|
|
2062
2286
|
async def weight_recompute(self, input: WeightRecomputeInput, plugins: list[Plugin] | None = None) -> WeightRecomputeOutput:
|
|
2063
2287
|
"""
|
|
2064
2288
|
Recalculates and updates the priority weights for all contexts in the workspace
|
superposition_sdk/config.py
CHANGED
|
@@ -56,6 +56,8 @@ from .models import (
|
|
|
56
56
|
DeleteFunctionOutput,
|
|
57
57
|
DeleteTypeTemplatesInput,
|
|
58
58
|
DeleteTypeTemplatesOutput,
|
|
59
|
+
DeleteWebhookInput,
|
|
60
|
+
DeleteWebhookOutput,
|
|
59
61
|
DiscardExperimentInput,
|
|
60
62
|
DiscardExperimentOutput,
|
|
61
63
|
GetConfigFastInput,
|
|
@@ -66,6 +68,8 @@ from .models import (
|
|
|
66
68
|
GetContextFromConditionOutput,
|
|
67
69
|
GetContextInput,
|
|
68
70
|
GetContextOutput,
|
|
71
|
+
GetDefaultConfigInput,
|
|
72
|
+
GetDefaultConfigOutput,
|
|
69
73
|
GetDimensionInput,
|
|
70
74
|
GetDimensionOutput,
|
|
71
75
|
GetExperimentGroupInput,
|
|
@@ -78,10 +82,18 @@ from .models import (
|
|
|
78
82
|
GetOrganisationOutput,
|
|
79
83
|
GetResolvedConfigInput,
|
|
80
84
|
GetResolvedConfigOutput,
|
|
85
|
+
GetTypeTemplateInput,
|
|
86
|
+
GetTypeTemplateOutput,
|
|
81
87
|
GetTypeTemplatesListInput,
|
|
82
88
|
GetTypeTemplatesListOutput,
|
|
89
|
+
GetVersionInput,
|
|
90
|
+
GetVersionOutput,
|
|
91
|
+
GetWebhookByEventInput,
|
|
92
|
+
GetWebhookByEventOutput,
|
|
83
93
|
GetWebhookInput,
|
|
84
94
|
GetWebhookOutput,
|
|
95
|
+
GetWorkspaceInput,
|
|
96
|
+
GetWorkspaceOutput,
|
|
85
97
|
ListAuditLogsInput,
|
|
86
98
|
ListAuditLogsOutput,
|
|
87
99
|
ListContextsInput,
|
|
@@ -140,12 +152,14 @@ from .models import (
|
|
|
140
152
|
UpdateWebhookOutput,
|
|
141
153
|
UpdateWorkspaceInput,
|
|
142
154
|
UpdateWorkspaceOutput,
|
|
155
|
+
ValidateContextInput,
|
|
156
|
+
ValidateContextOutput,
|
|
143
157
|
WeightRecomputeInput,
|
|
144
158
|
WeightRecomputeOutput,
|
|
145
159
|
)
|
|
146
160
|
|
|
147
161
|
|
|
148
|
-
_ServiceInterceptor = Union[Interceptor[AddMembersToGroupInput, AddMembersToGroupOutput, Any, Any], Interceptor[ApplicableVariantsInput, ApplicableVariantsOutput, Any, Any], Interceptor[BulkOperationInput, BulkOperationOutput, Any, Any], Interceptor[ConcludeExperimentInput, ConcludeExperimentOutput, Any, Any], Interceptor[CreateContextInput, CreateContextOutput, Any, Any], Interceptor[CreateDefaultConfigInput, CreateDefaultConfigOutput, Any, Any], Interceptor[CreateDimensionInput, CreateDimensionOutput, Any, Any], Interceptor[CreateExperimentInput, CreateExperimentOutput, Any, Any], Interceptor[CreateExperimentGroupInput, CreateExperimentGroupOutput, Any, Any], Interceptor[CreateFunctionInput, CreateFunctionOutput, Any, Any], Interceptor[CreateOrganisationInput, CreateOrganisationOutput, Any, Any], Interceptor[CreateTypeTemplatesInput, CreateTypeTemplatesOutput, Any, Any], Interceptor[CreateWebhookInput, CreateWebhookOutput, Any, Any], Interceptor[CreateWorkspaceInput, CreateWorkspaceOutput, Any, Any], Interceptor[DeleteContextInput, DeleteContextOutput, Any, Any], Interceptor[DeleteDefaultConfigInput, DeleteDefaultConfigOutput, Any, Any], Interceptor[DeleteDimensionInput, DeleteDimensionOutput, Any, Any], Interceptor[DeleteExperimentGroupInput, DeleteExperimentGroupOutput, Any, Any], Interceptor[DeleteFunctionInput, DeleteFunctionOutput, Any, Any], Interceptor[DeleteTypeTemplatesInput, DeleteTypeTemplatesOutput, Any, Any], Interceptor[DiscardExperimentInput, DiscardExperimentOutput, Any, Any], Interceptor[GetConfigInput, GetConfigOutput, Any, Any], Interceptor[GetConfigFastInput, GetConfigFastOutput, Any, Any], Interceptor[GetContextInput, GetContextOutput, Any, Any], Interceptor[GetContextFromConditionInput, GetContextFromConditionOutput, Any, Any], Interceptor[GetDimensionInput, GetDimensionOutput, Any, Any], Interceptor[GetExperimentInput, GetExperimentOutput, Any, Any], Interceptor[GetExperimentGroupInput, GetExperimentGroupOutput, Any, Any], Interceptor[GetFunctionInput, GetFunctionOutput, Any, Any], Interceptor[GetOrganisationInput, GetOrganisationOutput, Any, Any], Interceptor[GetResolvedConfigInput, GetResolvedConfigOutput, Any, Any], Interceptor[GetTypeTemplatesListInput, GetTypeTemplatesListOutput, Any, Any], Interceptor[GetWebhookInput, GetWebhookOutput, Any, Any], Interceptor[ListAuditLogsInput, ListAuditLogsOutput, Any, Any], Interceptor[ListContextsInput, ListContextsOutput, Any, Any], Interceptor[ListDefaultConfigsInput, ListDefaultConfigsOutput, Any, Any], Interceptor[ListDimensionsInput, ListDimensionsOutput, Any, Any], Interceptor[ListExperimentInput, ListExperimentOutput, Any, Any], Interceptor[ListExperimentGroupsInput, ListExperimentGroupsOutput, Any, Any], Interceptor[ListFunctionInput, ListFunctionOutput, Any, Any], Interceptor[ListOrganisationInput, ListOrganisationOutput, Any, Any], Interceptor[ListVersionsInput, ListVersionsOutput, Any, Any], Interceptor[ListWebhookInput, ListWebhookOutput, Any, Any], Interceptor[ListWorkspaceInput, ListWorkspaceOutput, Any, Any], Interceptor[MigrateWorkspaceSchemaInput, MigrateWorkspaceSchemaOutput, Any, Any], Interceptor[MoveContextInput, MoveContextOutput, Any, Any], Interceptor[PauseExperimentInput, PauseExperimentOutput, Any, Any], Interceptor[PublishInput, PublishOutput, Any, Any], Interceptor[RampExperimentInput, RampExperimentOutput, Any, Any], Interceptor[RemoveMembersFromGroupInput, RemoveMembersFromGroupOutput, Any, Any], Interceptor[ResumeExperimentInput, ResumeExperimentOutput, Any, Any], Interceptor[TestInput, TestOutput, Any, Any], Interceptor[UpdateDefaultConfigInput, UpdateDefaultConfigOutput, Any, Any], Interceptor[UpdateDimensionInput, UpdateDimensionOutput, Any, Any], Interceptor[UpdateExperimentGroupInput, UpdateExperimentGroupOutput, Any, Any], Interceptor[UpdateFunctionInput, UpdateFunctionOutput, Any, Any], Interceptor[UpdateOrganisationInput, UpdateOrganisationOutput, Any, Any], Interceptor[UpdateOverrideInput, UpdateOverrideOutput, Any, Any], Interceptor[UpdateOverridesExperimentInput, UpdateOverridesExperimentOutput, Any, Any], Interceptor[UpdateTypeTemplatesInput, UpdateTypeTemplatesOutput, Any, Any], Interceptor[UpdateWebhookInput, UpdateWebhookOutput, Any, Any], Interceptor[UpdateWorkspaceInput, UpdateWorkspaceOutput, Any, Any], Interceptor[WeightRecomputeInput, WeightRecomputeOutput, Any, Any]]
|
|
162
|
+
_ServiceInterceptor = Union[Interceptor[AddMembersToGroupInput, AddMembersToGroupOutput, Any, Any], Interceptor[ApplicableVariantsInput, ApplicableVariantsOutput, Any, Any], Interceptor[BulkOperationInput, BulkOperationOutput, Any, Any], Interceptor[ConcludeExperimentInput, ConcludeExperimentOutput, Any, Any], Interceptor[CreateContextInput, CreateContextOutput, Any, Any], Interceptor[CreateDefaultConfigInput, CreateDefaultConfigOutput, Any, Any], Interceptor[CreateDimensionInput, CreateDimensionOutput, Any, Any], Interceptor[CreateExperimentInput, CreateExperimentOutput, Any, Any], Interceptor[CreateExperimentGroupInput, CreateExperimentGroupOutput, Any, Any], Interceptor[CreateFunctionInput, CreateFunctionOutput, Any, Any], Interceptor[CreateOrganisationInput, CreateOrganisationOutput, Any, Any], Interceptor[CreateTypeTemplatesInput, CreateTypeTemplatesOutput, Any, Any], Interceptor[CreateWebhookInput, CreateWebhookOutput, Any, Any], Interceptor[CreateWorkspaceInput, CreateWorkspaceOutput, Any, Any], Interceptor[DeleteContextInput, DeleteContextOutput, Any, Any], Interceptor[DeleteDefaultConfigInput, DeleteDefaultConfigOutput, Any, Any], Interceptor[DeleteDimensionInput, DeleteDimensionOutput, Any, Any], Interceptor[DeleteExperimentGroupInput, DeleteExperimentGroupOutput, Any, Any], Interceptor[DeleteFunctionInput, DeleteFunctionOutput, Any, Any], Interceptor[DeleteTypeTemplatesInput, DeleteTypeTemplatesOutput, Any, Any], Interceptor[DeleteWebhookInput, DeleteWebhookOutput, Any, Any], Interceptor[DiscardExperimentInput, DiscardExperimentOutput, Any, Any], Interceptor[GetConfigInput, GetConfigOutput, Any, Any], Interceptor[GetConfigFastInput, GetConfigFastOutput, Any, Any], Interceptor[GetContextInput, GetContextOutput, Any, Any], Interceptor[GetContextFromConditionInput, GetContextFromConditionOutput, Any, Any], Interceptor[GetDefaultConfigInput, GetDefaultConfigOutput, Any, Any], Interceptor[GetDimensionInput, GetDimensionOutput, Any, Any], Interceptor[GetExperimentInput, GetExperimentOutput, Any, Any], Interceptor[GetExperimentGroupInput, GetExperimentGroupOutput, Any, Any], Interceptor[GetFunctionInput, GetFunctionOutput, Any, Any], Interceptor[GetOrganisationInput, GetOrganisationOutput, Any, Any], Interceptor[GetResolvedConfigInput, GetResolvedConfigOutput, Any, Any], Interceptor[GetTypeTemplateInput, GetTypeTemplateOutput, Any, Any], Interceptor[GetTypeTemplatesListInput, GetTypeTemplatesListOutput, Any, Any], Interceptor[GetVersionInput, GetVersionOutput, Any, Any], Interceptor[GetWebhookInput, GetWebhookOutput, Any, Any], Interceptor[GetWebhookByEventInput, GetWebhookByEventOutput, Any, Any], Interceptor[GetWorkspaceInput, GetWorkspaceOutput, Any, Any], Interceptor[ListAuditLogsInput, ListAuditLogsOutput, Any, Any], Interceptor[ListContextsInput, ListContextsOutput, Any, Any], Interceptor[ListDefaultConfigsInput, ListDefaultConfigsOutput, Any, Any], Interceptor[ListDimensionsInput, ListDimensionsOutput, Any, Any], Interceptor[ListExperimentInput, ListExperimentOutput, Any, Any], Interceptor[ListExperimentGroupsInput, ListExperimentGroupsOutput, Any, Any], Interceptor[ListFunctionInput, ListFunctionOutput, Any, Any], Interceptor[ListOrganisationInput, ListOrganisationOutput, Any, Any], Interceptor[ListVersionsInput, ListVersionsOutput, Any, Any], Interceptor[ListWebhookInput, ListWebhookOutput, Any, Any], Interceptor[ListWorkspaceInput, ListWorkspaceOutput, Any, Any], Interceptor[MigrateWorkspaceSchemaInput, MigrateWorkspaceSchemaOutput, Any, Any], Interceptor[MoveContextInput, MoveContextOutput, Any, Any], Interceptor[PauseExperimentInput, PauseExperimentOutput, Any, Any], Interceptor[PublishInput, PublishOutput, Any, Any], Interceptor[RampExperimentInput, RampExperimentOutput, Any, Any], Interceptor[RemoveMembersFromGroupInput, RemoveMembersFromGroupOutput, Any, Any], Interceptor[ResumeExperimentInput, ResumeExperimentOutput, Any, Any], Interceptor[TestInput, TestOutput, Any, Any], Interceptor[UpdateDefaultConfigInput, UpdateDefaultConfigOutput, Any, Any], Interceptor[UpdateDimensionInput, UpdateDimensionOutput, Any, Any], Interceptor[UpdateExperimentGroupInput, UpdateExperimentGroupOutput, Any, Any], Interceptor[UpdateFunctionInput, UpdateFunctionOutput, Any, Any], Interceptor[UpdateOrganisationInput, UpdateOrganisationOutput, Any, Any], Interceptor[UpdateOverrideInput, UpdateOverrideOutput, Any, Any], Interceptor[UpdateOverridesExperimentInput, UpdateOverridesExperimentOutput, Any, Any], Interceptor[UpdateTypeTemplatesInput, UpdateTypeTemplatesOutput, Any, Any], Interceptor[UpdateWebhookInput, UpdateWebhookOutput, Any, Any], Interceptor[UpdateWorkspaceInput, UpdateWorkspaceOutput, Any, Any], Interceptor[ValidateContextInput, ValidateContextOutput, Any, Any], Interceptor[WeightRecomputeInput, WeightRecomputeOutput, Any, Any]]
|
|
149
163
|
@dataclass(init=False)
|
|
150
164
|
class Config:
|
|
151
165
|
"""Configuration for Superposition."""
|