superposition-provider 0.100.2 → 0.102.0
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.
- package/dist/index.esm.js +104 -75
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +104 -75
- package/dist/index.js.map +1 -1
- package/dist/native-lib/libsuperposition_core-aarch64-apple-darwin.dylib +0 -0
- package/dist/native-lib/libsuperposition_core-x86_64-apple-darwin.dylib +0 -0
- package/dist/native-lib/libsuperposition_core-x86_64-pc-windows-msvc.dll +0 -0
- package/dist/native-lib/libsuperposition_core-x86_64-unknown-linux-gnu.so +0 -0
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -3180,7 +3180,7 @@ var runtimeConfig = {};
|
|
|
3180
3180
|
|
|
3181
3181
|
var name = "superposition-sdk";
|
|
3182
3182
|
var description = "superposition-sdk client";
|
|
3183
|
-
var version = "0.
|
|
3183
|
+
var version = "0.102.0";
|
|
3184
3184
|
var repository = {
|
|
3185
3185
|
type: "git",
|
|
3186
3186
|
url: "git+https://github.com/juspay/superposition.git"
|
|
@@ -8995,9 +8995,9 @@ function requireAws_restJson1 () {
|
|
|
8995
8995
|
if (hasRequiredAws_restJson1) return Aws_restJson1;
|
|
8996
8996
|
hasRequiredAws_restJson1 = 1;
|
|
8997
8997
|
Object.defineProperty(Aws_restJson1, "__esModule", { value: true });
|
|
8998
|
-
Aws_restJson1.se_ListContextsCommand = Aws_restJson1.se_ListAuditLogsCommand = Aws_restJson1.se_GetWorkspaceCommand = Aws_restJson1.se_GetWebhookByEventCommand = Aws_restJson1.se_GetWebhookCommand = Aws_restJson1.se_GetVersionCommand = Aws_restJson1.se_GetVariableCommand = Aws_restJson1.se_GetTypeTemplatesListCommand = Aws_restJson1.se_GetTypeTemplateCommand = Aws_restJson1.se_GetSecretCommand = Aws_restJson1.se_GetResolvedConfigWithIdentifierCommand = Aws_restJson1.se_GetResolvedConfigCommand = Aws_restJson1.se_GetOrganisationCommand = Aws_restJson1.se_GetFunctionCommand = Aws_restJson1.se_GetExperimentGroupCommand = Aws_restJson1.se_GetExperimentCommand = Aws_restJson1.se_GetDimensionCommand = Aws_restJson1.se_GetDefaultConfigCommand = Aws_restJson1.se_GetContextFromConditionCommand = Aws_restJson1.se_GetContextCommand = Aws_restJson1.se_GetConfigTomlCommand = Aws_restJson1.se_GetConfigJsonCommand = Aws_restJson1.
|
|
8998
|
+
Aws_restJson1.se_ListContextsCommand = Aws_restJson1.se_ListAuditLogsCommand = Aws_restJson1.se_GetWorkspaceCommand = Aws_restJson1.se_GetWebhookByEventCommand = Aws_restJson1.se_GetWebhookCommand = Aws_restJson1.se_GetVersionCommand = Aws_restJson1.se_GetVariableCommand = Aws_restJson1.se_GetTypeTemplatesListCommand = Aws_restJson1.se_GetTypeTemplateCommand = Aws_restJson1.se_GetSecretCommand = Aws_restJson1.se_GetResolvedConfigWithIdentifierCommand = Aws_restJson1.se_GetResolvedConfigCommand = Aws_restJson1.se_GetOrganisationCommand = Aws_restJson1.se_GetFunctionCommand = Aws_restJson1.se_GetExperimentGroupCommand = Aws_restJson1.se_GetExperimentConfigCommand = Aws_restJson1.se_GetExperimentCommand = Aws_restJson1.se_GetDimensionCommand = Aws_restJson1.se_GetDefaultConfigCommand = Aws_restJson1.se_GetContextFromConditionCommand = Aws_restJson1.se_GetContextCommand = Aws_restJson1.se_GetConfigTomlCommand = Aws_restJson1.se_GetConfigJsonCommand = Aws_restJson1.se_GetConfigCommand = Aws_restJson1.se_DiscardExperimentCommand = Aws_restJson1.se_DeleteWebhookCommand = Aws_restJson1.se_DeleteVariableCommand = Aws_restJson1.se_DeleteTypeTemplatesCommand = Aws_restJson1.se_DeleteSecretCommand = Aws_restJson1.se_DeleteFunctionCommand = Aws_restJson1.se_DeleteExperimentGroupCommand = Aws_restJson1.se_DeleteDimensionCommand = Aws_restJson1.se_DeleteDefaultConfigCommand = Aws_restJson1.se_DeleteContextCommand = Aws_restJson1.se_CreateWorkspaceCommand = Aws_restJson1.se_CreateWebhookCommand = Aws_restJson1.se_CreateVariableCommand = Aws_restJson1.se_CreateTypeTemplatesCommand = Aws_restJson1.se_CreateSecretCommand = Aws_restJson1.se_CreateOrganisationCommand = Aws_restJson1.se_CreateFunctionCommand = Aws_restJson1.se_CreateExperimentGroupCommand = Aws_restJson1.se_CreateExperimentCommand = Aws_restJson1.se_CreateDimensionCommand = Aws_restJson1.se_CreateDefaultConfigCommand = Aws_restJson1.se_CreateContextCommand = Aws_restJson1.se_ConcludeExperimentCommand = Aws_restJson1.se_BulkOperationCommand = Aws_restJson1.se_ApplicableVariantsCommand = Aws_restJson1.se_AddMembersToGroupCommand = void 0;
|
|
8999
8999
|
Aws_restJson1.de_CreateWebhookCommand = Aws_restJson1.de_CreateVariableCommand = Aws_restJson1.de_CreateTypeTemplatesCommand = Aws_restJson1.de_CreateSecretCommand = Aws_restJson1.de_CreateOrganisationCommand = Aws_restJson1.de_CreateFunctionCommand = Aws_restJson1.de_CreateExperimentGroupCommand = Aws_restJson1.de_CreateExperimentCommand = Aws_restJson1.de_CreateDimensionCommand = Aws_restJson1.de_CreateDefaultConfigCommand = Aws_restJson1.de_CreateContextCommand = Aws_restJson1.de_ConcludeExperimentCommand = Aws_restJson1.de_BulkOperationCommand = Aws_restJson1.de_ApplicableVariantsCommand = Aws_restJson1.de_AddMembersToGroupCommand = Aws_restJson1.se_WeightRecomputeCommand = Aws_restJson1.se_ValidateContextCommand = Aws_restJson1.se_UpdateWorkspaceCommand = Aws_restJson1.se_UpdateWebhookCommand = Aws_restJson1.se_UpdateVariableCommand = Aws_restJson1.se_UpdateTypeTemplatesCommand = Aws_restJson1.se_UpdateSecretCommand = Aws_restJson1.se_UpdateOverridesExperimentCommand = Aws_restJson1.se_UpdateOverrideCommand = Aws_restJson1.se_UpdateOrganisationCommand = Aws_restJson1.se_UpdateFunctionCommand = Aws_restJson1.se_UpdateExperimentGroupCommand = Aws_restJson1.se_UpdateDimensionCommand = Aws_restJson1.se_UpdateDefaultConfigCommand = Aws_restJson1.se_TestCommand = Aws_restJson1.se_RotateWorkspaceEncryptionKeyCommand = Aws_restJson1.se_RotateMasterEncryptionKeyCommand = Aws_restJson1.se_ResumeExperimentCommand = Aws_restJson1.se_RemoveMembersFromGroupCommand = Aws_restJson1.se_RampExperimentCommand = Aws_restJson1.se_PublishCommand = Aws_restJson1.se_PauseExperimentCommand = Aws_restJson1.se_MoveContextCommand = Aws_restJson1.se_MigrateWorkspaceSchemaCommand = Aws_restJson1.se_ListWorkspaceCommand = Aws_restJson1.se_ListWebhookCommand = Aws_restJson1.se_ListVersionsCommand = Aws_restJson1.se_ListVariablesCommand = Aws_restJson1.se_ListSecretsCommand = Aws_restJson1.se_ListOrganisationCommand = Aws_restJson1.se_ListFunctionCommand = Aws_restJson1.se_ListExperimentGroupsCommand = Aws_restJson1.se_ListExperimentCommand = Aws_restJson1.se_ListDimensionsCommand = Aws_restJson1.se_ListDefaultConfigsCommand = void 0;
|
|
9000
|
-
Aws_restJson1.de_PublishCommand = Aws_restJson1.de_PauseExperimentCommand = Aws_restJson1.de_MoveContextCommand = Aws_restJson1.de_MigrateWorkspaceSchemaCommand = Aws_restJson1.de_ListWorkspaceCommand = Aws_restJson1.de_ListWebhookCommand = Aws_restJson1.de_ListVersionsCommand = Aws_restJson1.de_ListVariablesCommand = Aws_restJson1.de_ListSecretsCommand = Aws_restJson1.de_ListOrganisationCommand = Aws_restJson1.de_ListFunctionCommand = Aws_restJson1.de_ListExperimentGroupsCommand = Aws_restJson1.de_ListExperimentCommand = Aws_restJson1.de_ListDimensionsCommand = Aws_restJson1.de_ListDefaultConfigsCommand = Aws_restJson1.de_ListContextsCommand = Aws_restJson1.de_ListAuditLogsCommand = Aws_restJson1.de_GetWorkspaceCommand = Aws_restJson1.de_GetWebhookByEventCommand = Aws_restJson1.de_GetWebhookCommand = Aws_restJson1.de_GetVersionCommand = Aws_restJson1.de_GetVariableCommand = Aws_restJson1.de_GetTypeTemplatesListCommand = Aws_restJson1.de_GetTypeTemplateCommand = Aws_restJson1.de_GetSecretCommand = Aws_restJson1.de_GetResolvedConfigWithIdentifierCommand = Aws_restJson1.de_GetResolvedConfigCommand = Aws_restJson1.de_GetOrganisationCommand = Aws_restJson1.de_GetFunctionCommand = Aws_restJson1.de_GetExperimentGroupCommand = Aws_restJson1.de_GetExperimentCommand = Aws_restJson1.de_GetDimensionCommand = Aws_restJson1.de_GetDefaultConfigCommand = Aws_restJson1.de_GetContextFromConditionCommand = Aws_restJson1.de_GetContextCommand = Aws_restJson1.de_GetConfigTomlCommand = Aws_restJson1.de_GetConfigJsonCommand = Aws_restJson1.
|
|
9000
|
+
Aws_restJson1.de_PublishCommand = Aws_restJson1.de_PauseExperimentCommand = Aws_restJson1.de_MoveContextCommand = Aws_restJson1.de_MigrateWorkspaceSchemaCommand = Aws_restJson1.de_ListWorkspaceCommand = Aws_restJson1.de_ListWebhookCommand = Aws_restJson1.de_ListVersionsCommand = Aws_restJson1.de_ListVariablesCommand = Aws_restJson1.de_ListSecretsCommand = Aws_restJson1.de_ListOrganisationCommand = Aws_restJson1.de_ListFunctionCommand = Aws_restJson1.de_ListExperimentGroupsCommand = Aws_restJson1.de_ListExperimentCommand = Aws_restJson1.de_ListDimensionsCommand = Aws_restJson1.de_ListDefaultConfigsCommand = Aws_restJson1.de_ListContextsCommand = Aws_restJson1.de_ListAuditLogsCommand = Aws_restJson1.de_GetWorkspaceCommand = Aws_restJson1.de_GetWebhookByEventCommand = Aws_restJson1.de_GetWebhookCommand = Aws_restJson1.de_GetVersionCommand = Aws_restJson1.de_GetVariableCommand = Aws_restJson1.de_GetTypeTemplatesListCommand = Aws_restJson1.de_GetTypeTemplateCommand = Aws_restJson1.de_GetSecretCommand = Aws_restJson1.de_GetResolvedConfigWithIdentifierCommand = Aws_restJson1.de_GetResolvedConfigCommand = Aws_restJson1.de_GetOrganisationCommand = Aws_restJson1.de_GetFunctionCommand = Aws_restJson1.de_GetExperimentGroupCommand = Aws_restJson1.de_GetExperimentConfigCommand = Aws_restJson1.de_GetExperimentCommand = Aws_restJson1.de_GetDimensionCommand = Aws_restJson1.de_GetDefaultConfigCommand = Aws_restJson1.de_GetContextFromConditionCommand = Aws_restJson1.de_GetContextCommand = Aws_restJson1.de_GetConfigTomlCommand = Aws_restJson1.de_GetConfigJsonCommand = Aws_restJson1.de_GetConfigCommand = Aws_restJson1.de_DiscardExperimentCommand = Aws_restJson1.de_DeleteWebhookCommand = Aws_restJson1.de_DeleteVariableCommand = Aws_restJson1.de_DeleteTypeTemplatesCommand = Aws_restJson1.de_DeleteSecretCommand = Aws_restJson1.de_DeleteFunctionCommand = Aws_restJson1.de_DeleteExperimentGroupCommand = Aws_restJson1.de_DeleteDimensionCommand = Aws_restJson1.de_DeleteDefaultConfigCommand = Aws_restJson1.de_DeleteContextCommand = Aws_restJson1.de_CreateWorkspaceCommand = void 0;
|
|
9001
9001
|
Aws_restJson1.de_WeightRecomputeCommand = Aws_restJson1.de_ValidateContextCommand = Aws_restJson1.de_UpdateWorkspaceCommand = Aws_restJson1.de_UpdateWebhookCommand = Aws_restJson1.de_UpdateVariableCommand = Aws_restJson1.de_UpdateTypeTemplatesCommand = Aws_restJson1.de_UpdateSecretCommand = Aws_restJson1.de_UpdateOverridesExperimentCommand = Aws_restJson1.de_UpdateOverrideCommand = Aws_restJson1.de_UpdateOrganisationCommand = Aws_restJson1.de_UpdateFunctionCommand = Aws_restJson1.de_UpdateExperimentGroupCommand = Aws_restJson1.de_UpdateDimensionCommand = Aws_restJson1.de_UpdateDefaultConfigCommand = Aws_restJson1.de_TestCommand = Aws_restJson1.de_RotateWorkspaceEncryptionKeyCommand = Aws_restJson1.de_RotateMasterEncryptionKeyCommand = Aws_restJson1.de_ResumeExperimentCommand = Aws_restJson1.de_RemoveMembersFromGroupCommand = Aws_restJson1.de_RampExperimentCommand = void 0;
|
|
9002
9002
|
const SuperpositionServiceException_1 = requireSuperpositionServiceException();
|
|
9003
9003
|
const models_0_1 = requireModels_0();
|
|
@@ -9521,6 +9521,7 @@ function requireAws_restJson1 () {
|
|
|
9521
9521
|
'content-type': 'application/json',
|
|
9522
9522
|
[_xw]: input[_wi],
|
|
9523
9523
|
[_xoi]: input[_oi],
|
|
9524
|
+
[_ims_]: [() => (0, smithy_client_1.isSerializableHeaderValue)(input[_ims]), () => (0, smithy_client_1.serializeDateTime)(input[_ims]).toString()],
|
|
9524
9525
|
});
|
|
9525
9526
|
b.bp("/config");
|
|
9526
9527
|
const query = (0, smithy_client_1.map)({
|
|
@@ -9538,29 +9539,16 @@ function requireAws_restJson1 () {
|
|
|
9538
9539
|
return b.build();
|
|
9539
9540
|
};
|
|
9540
9541
|
Aws_restJson1.se_GetConfigCommand = se_GetConfigCommand;
|
|
9541
|
-
const se_GetConfigFastCommand = async (input, context) => {
|
|
9542
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
9543
|
-
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
9544
|
-
[_xw]: input[_wi],
|
|
9545
|
-
[_xoi]: input[_oi],
|
|
9546
|
-
});
|
|
9547
|
-
b.bp("/config/fast");
|
|
9548
|
-
let body;
|
|
9549
|
-
b.m("GET")
|
|
9550
|
-
.h(headers)
|
|
9551
|
-
.b(body);
|
|
9552
|
-
return b.build();
|
|
9553
|
-
};
|
|
9554
|
-
Aws_restJson1.se_GetConfigFastCommand = se_GetConfigFastCommand;
|
|
9555
9542
|
const se_GetConfigJsonCommand = async (input, context) => {
|
|
9556
9543
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
9557
9544
|
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
9558
9545
|
[_xw]: input[_wi],
|
|
9559
9546
|
[_xoi]: input[_oi],
|
|
9547
|
+
[_ims_]: [() => (0, smithy_client_1.isSerializableHeaderValue)(input[_ims]), () => (0, smithy_client_1.serializeDateTime)(input[_ims]).toString()],
|
|
9560
9548
|
});
|
|
9561
9549
|
b.bp("/config/json");
|
|
9562
9550
|
let body;
|
|
9563
|
-
b.m("
|
|
9551
|
+
b.m("POST")
|
|
9564
9552
|
.h(headers)
|
|
9565
9553
|
.b(body);
|
|
9566
9554
|
return b.build();
|
|
@@ -9571,10 +9559,11 @@ function requireAws_restJson1 () {
|
|
|
9571
9559
|
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
9572
9560
|
[_xw]: input[_wi],
|
|
9573
9561
|
[_xoi]: input[_oi],
|
|
9562
|
+
[_ims_]: [() => (0, smithy_client_1.isSerializableHeaderValue)(input[_ims]), () => (0, smithy_client_1.serializeDateTime)(input[_ims]).toString()],
|
|
9574
9563
|
});
|
|
9575
9564
|
b.bp("/config/toml");
|
|
9576
9565
|
let body;
|
|
9577
|
-
b.m("
|
|
9566
|
+
b.m("POST")
|
|
9578
9567
|
.h(headers)
|
|
9579
9568
|
.b(body);
|
|
9580
9569
|
return b.build();
|
|
@@ -9664,6 +9653,30 @@ function requireAws_restJson1 () {
|
|
|
9664
9653
|
return b.build();
|
|
9665
9654
|
};
|
|
9666
9655
|
Aws_restJson1.se_GetExperimentCommand = se_GetExperimentCommand;
|
|
9656
|
+
const se_GetExperimentConfigCommand = async (input, context) => {
|
|
9657
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
9658
|
+
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
9659
|
+
'content-type': 'application/json',
|
|
9660
|
+
[_xw]: input[_wi],
|
|
9661
|
+
[_xoi]: input[_oi],
|
|
9662
|
+
[_ims_]: [() => (0, smithy_client_1.isSerializableHeaderValue)(input[_ims]), () => (0, smithy_client_1.serializeDateTime)(input[_ims]).toString()],
|
|
9663
|
+
});
|
|
9664
|
+
b.bp("/experiment-config");
|
|
9665
|
+
const query = (0, smithy_client_1.map)({
|
|
9666
|
+
[_p]: [() => input.prefix !== void 0, () => ((input[_p] || []))],
|
|
9667
|
+
[_dms]: [, input[_dms]],
|
|
9668
|
+
});
|
|
9669
|
+
let body;
|
|
9670
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
9671
|
+
'context': _ => se_ContextMap(_),
|
|
9672
|
+
}));
|
|
9673
|
+
b.m("POST")
|
|
9674
|
+
.h(headers)
|
|
9675
|
+
.q(query)
|
|
9676
|
+
.b(body);
|
|
9677
|
+
return b.build();
|
|
9678
|
+
};
|
|
9679
|
+
Aws_restJson1.se_GetExperimentConfigCommand = se_GetExperimentConfigCommand;
|
|
9667
9680
|
const se_GetExperimentGroupCommand = async (input, context) => {
|
|
9668
9681
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
9669
9682
|
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
@@ -9982,10 +9995,12 @@ function requireAws_restJson1 () {
|
|
|
9982
9995
|
const se_ListExperimentCommand = async (input, context) => {
|
|
9983
9996
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
9984
9997
|
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
9998
|
+
'content-type': 'application/json',
|
|
9985
9999
|
[_xw]: input[_wi],
|
|
9986
10000
|
[_xoi]: input[_oi],
|
|
10001
|
+
[_ims_]: [() => (0, smithy_client_1.isSerializableHeaderValue)(input[_ims]), () => (0, smithy_client_1.serializeDateTime)(input[_ims]).toString()],
|
|
9987
10002
|
});
|
|
9988
|
-
b.bp("/experiments");
|
|
10003
|
+
b.bp("/experiments/list");
|
|
9989
10004
|
const query = (0, smithy_client_1.map)({
|
|
9990
10005
|
[_c]: [() => input.count !== void 0, () => (input[_c].toString())],
|
|
9991
10006
|
[_pa]: [() => input.page !== void 0, () => (input[_pa].toString())],
|
|
@@ -10001,9 +10016,13 @@ function requireAws_restJson1 () {
|
|
|
10001
10016
|
[_sb]: [, input[_sb]],
|
|
10002
10017
|
[_geo]: [() => input.global_experiments_only !== void 0, () => (input[_geo].toString())],
|
|
10003
10018
|
[_dms]: [, input[_dms]],
|
|
10019
|
+
[_p]: [() => input.prefix !== void 0, () => ((input[_p] || []))],
|
|
10004
10020
|
});
|
|
10005
10021
|
let body;
|
|
10006
|
-
|
|
10022
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
10023
|
+
'context': _ => se_ContextMap(_),
|
|
10024
|
+
}));
|
|
10025
|
+
b.m("POST")
|
|
10007
10026
|
.h(headers)
|
|
10008
10027
|
.q(query)
|
|
10009
10028
|
.b(body);
|
|
@@ -10013,10 +10032,12 @@ function requireAws_restJson1 () {
|
|
|
10013
10032
|
const se_ListExperimentGroupsCommand = async (input, context) => {
|
|
10014
10033
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
10015
10034
|
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
10035
|
+
'content-type': 'application/json',
|
|
10016
10036
|
[_xw]: input[_wi],
|
|
10017
10037
|
[_xoi]: input[_oi],
|
|
10038
|
+
[_ims_]: [() => (0, smithy_client_1.isSerializableHeaderValue)(input[_ims]), () => (0, smithy_client_1.serializeDateTime)(input[_ims]).toString()],
|
|
10018
10039
|
});
|
|
10019
|
-
b.bp("/experiment-groups");
|
|
10040
|
+
b.bp("/experiment-groups/list");
|
|
10020
10041
|
const query = (0, smithy_client_1.map)({
|
|
10021
10042
|
[_c]: [() => input.count !== void 0, () => (input[_c].toString())],
|
|
10022
10043
|
[_pa]: [() => input.page !== void 0, () => (input[_pa].toString())],
|
|
@@ -10027,9 +10048,13 @@ function requireAws_restJson1 () {
|
|
|
10027
10048
|
[_so]: [, input[_so]],
|
|
10028
10049
|
[_sb]: [, input[_sb]],
|
|
10029
10050
|
[_gt]: [() => input.group_type !== void 0, () => ((input[_gt] || []))],
|
|
10051
|
+
[_dms]: [, input[_dms]],
|
|
10030
10052
|
});
|
|
10031
10053
|
let body;
|
|
10032
|
-
|
|
10054
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
10055
|
+
'context': _ => se_ContextMap(_),
|
|
10056
|
+
}));
|
|
10057
|
+
b.m("POST")
|
|
10033
10058
|
.h(headers)
|
|
10034
10059
|
.q(query)
|
|
10035
10060
|
.b(body);
|
|
@@ -11273,7 +11298,6 @@ function requireAws_restJson1 () {
|
|
|
11273
11298
|
$metadata: deserializeMetadata(output),
|
|
11274
11299
|
[_v]: [, output.headers[_xcv]],
|
|
11275
11300
|
[_lm_]: [() => void 0 !== output.headers[_lm], () => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.headers[_lm]))],
|
|
11276
|
-
[_ai]: [, output.headers[_xai]],
|
|
11277
11301
|
});
|
|
11278
11302
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
11279
11303
|
const doc = (0, smithy_client_1.take)(data, {
|
|
@@ -11286,22 +11310,6 @@ function requireAws_restJson1 () {
|
|
|
11286
11310
|
return contents;
|
|
11287
11311
|
};
|
|
11288
11312
|
Aws_restJson1.de_GetConfigCommand = de_GetConfigCommand;
|
|
11289
|
-
const de_GetConfigFastCommand = async (output, context) => {
|
|
11290
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
11291
|
-
return de_CommandError(output, context);
|
|
11292
|
-
}
|
|
11293
|
-
const contents = (0, smithy_client_1.map)({
|
|
11294
|
-
$metadata: deserializeMetadata(output),
|
|
11295
|
-
[_v]: [, output.headers[_xcv]],
|
|
11296
|
-
[_lm_]: [() => void 0 !== output.headers[_lm], () => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.headers[_lm]))],
|
|
11297
|
-
[_ai]: [, output.headers[_xai]],
|
|
11298
|
-
});
|
|
11299
|
-
const data = await collectBodyString(output.body, context);
|
|
11300
|
-
contents.config = data;
|
|
11301
|
-
contents.config = JSON.parse(data);
|
|
11302
|
-
return contents;
|
|
11303
|
-
};
|
|
11304
|
-
Aws_restJson1.de_GetConfigFastCommand = de_GetConfigFastCommand;
|
|
11305
11313
|
const de_GetConfigJsonCommand = async (output, context) => {
|
|
11306
11314
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
11307
11315
|
return de_CommandError(output, context);
|
|
@@ -11465,6 +11473,23 @@ function requireAws_restJson1 () {
|
|
|
11465
11473
|
return contents;
|
|
11466
11474
|
};
|
|
11467
11475
|
Aws_restJson1.de_GetExperimentCommand = de_GetExperimentCommand;
|
|
11476
|
+
const de_GetExperimentConfigCommand = async (output, context) => {
|
|
11477
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
11478
|
+
return de_CommandError(output, context);
|
|
11479
|
+
}
|
|
11480
|
+
const contents = (0, smithy_client_1.map)({
|
|
11481
|
+
$metadata: deserializeMetadata(output),
|
|
11482
|
+
[_lm_]: [() => void 0 !== output.headers[_lm], () => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.headers[_lm]))],
|
|
11483
|
+
});
|
|
11484
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
11485
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
11486
|
+
'experiment_groups': _ => de_ExperimentGroupList(_),
|
|
11487
|
+
'experiments': _ => de_ExperimentList(_),
|
|
11488
|
+
});
|
|
11489
|
+
Object.assign(contents, doc);
|
|
11490
|
+
return contents;
|
|
11491
|
+
};
|
|
11492
|
+
Aws_restJson1.de_GetExperimentConfigCommand = de_GetExperimentConfigCommand;
|
|
11468
11493
|
const de_GetExperimentGroupCommand = async (output, context) => {
|
|
11469
11494
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
11470
11495
|
return de_CommandError(output, context);
|
|
@@ -11844,6 +11869,7 @@ function requireAws_restJson1 () {
|
|
|
11844
11869
|
}
|
|
11845
11870
|
const contents = (0, smithy_client_1.map)({
|
|
11846
11871
|
$metadata: deserializeMetadata(output),
|
|
11872
|
+
[_lm_]: [() => void 0 !== output.headers[_lm], () => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.headers[_lm]))],
|
|
11847
11873
|
});
|
|
11848
11874
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
11849
11875
|
const doc = (0, smithy_client_1.take)(data, {
|
|
@@ -11861,6 +11887,7 @@ function requireAws_restJson1 () {
|
|
|
11861
11887
|
}
|
|
11862
11888
|
const contents = (0, smithy_client_1.map)({
|
|
11863
11889
|
$metadata: deserializeMetadata(output),
|
|
11890
|
+
[_lm_]: [() => void 0 !== output.headers[_lm], () => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.headers[_lm]))],
|
|
11864
11891
|
});
|
|
11865
11892
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
11866
11893
|
const doc = (0, smithy_client_1.take)(data, {
|
|
@@ -13253,6 +13280,8 @@ function requireAws_restJson1 () {
|
|
|
13253
13280
|
const _geo = "global_experiments_only";
|
|
13254
13281
|
const _gt = "group_type";
|
|
13255
13282
|
const _i = "identifier";
|
|
13283
|
+
const _ims = "if_modified_since";
|
|
13284
|
+
const _ims_ = "if-modified-since";
|
|
13256
13285
|
const _lm = "last-modified";
|
|
13257
13286
|
const _lm_ = "last_modified";
|
|
13258
13287
|
const _lmb = "last_modified_by";
|
|
@@ -14146,38 +14175,6 @@ function requireGetConfigCommand () {
|
|
|
14146
14175
|
return GetConfigCommand;
|
|
14147
14176
|
}
|
|
14148
14177
|
|
|
14149
|
-
var GetConfigFastCommand = {};
|
|
14150
|
-
|
|
14151
|
-
var hasRequiredGetConfigFastCommand;
|
|
14152
|
-
|
|
14153
|
-
function requireGetConfigFastCommand () {
|
|
14154
|
-
if (hasRequiredGetConfigFastCommand) return GetConfigFastCommand;
|
|
14155
|
-
hasRequiredGetConfigFastCommand = 1;
|
|
14156
|
-
(function (exports$1) {
|
|
14157
|
-
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
14158
|
-
exports$1.GetConfigFastCommand = exports$1.$Command = void 0;
|
|
14159
|
-
const Aws_restJson1_1 = requireAws_restJson1();
|
|
14160
|
-
const middleware_serde_1 = require$$1;
|
|
14161
|
-
const smithy_client_1 = require$$86;
|
|
14162
|
-
Object.defineProperty(exports$1, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
14163
|
-
class GetConfigFastCommand extends smithy_client_1.Command.classBuilder()
|
|
14164
|
-
.m(function (Command, cs, config, o) {
|
|
14165
|
-
return [
|
|
14166
|
-
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
14167
|
-
];
|
|
14168
|
-
})
|
|
14169
|
-
.s("Superposition", "GetConfigFast", {})
|
|
14170
|
-
.n("SuperpositionClient", "GetConfigFastCommand")
|
|
14171
|
-
.f(void 0, void 0)
|
|
14172
|
-
.ser(Aws_restJson1_1.se_GetConfigFastCommand)
|
|
14173
|
-
.de(Aws_restJson1_1.de_GetConfigFastCommand)
|
|
14174
|
-
.build() {
|
|
14175
|
-
}
|
|
14176
|
-
exports$1.GetConfigFastCommand = GetConfigFastCommand;
|
|
14177
|
-
} (GetConfigFastCommand));
|
|
14178
|
-
return GetConfigFastCommand;
|
|
14179
|
-
}
|
|
14180
|
-
|
|
14181
14178
|
var GetConfigJsonCommand = {};
|
|
14182
14179
|
|
|
14183
14180
|
var hasRequiredGetConfigJsonCommand;
|
|
@@ -14402,6 +14399,38 @@ function requireGetExperimentCommand () {
|
|
|
14402
14399
|
return GetExperimentCommand;
|
|
14403
14400
|
}
|
|
14404
14401
|
|
|
14402
|
+
var GetExperimentConfigCommand = {};
|
|
14403
|
+
|
|
14404
|
+
var hasRequiredGetExperimentConfigCommand;
|
|
14405
|
+
|
|
14406
|
+
function requireGetExperimentConfigCommand () {
|
|
14407
|
+
if (hasRequiredGetExperimentConfigCommand) return GetExperimentConfigCommand;
|
|
14408
|
+
hasRequiredGetExperimentConfigCommand = 1;
|
|
14409
|
+
(function (exports$1) {
|
|
14410
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
14411
|
+
exports$1.GetExperimentConfigCommand = exports$1.$Command = void 0;
|
|
14412
|
+
const Aws_restJson1_1 = requireAws_restJson1();
|
|
14413
|
+
const middleware_serde_1 = require$$1;
|
|
14414
|
+
const smithy_client_1 = require$$86;
|
|
14415
|
+
Object.defineProperty(exports$1, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
14416
|
+
class GetExperimentConfigCommand extends smithy_client_1.Command.classBuilder()
|
|
14417
|
+
.m(function (Command, cs, config, o) {
|
|
14418
|
+
return [
|
|
14419
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
14420
|
+
];
|
|
14421
|
+
})
|
|
14422
|
+
.s("Superposition", "GetExperimentConfig", {})
|
|
14423
|
+
.n("SuperpositionClient", "GetExperimentConfigCommand")
|
|
14424
|
+
.f(void 0, void 0)
|
|
14425
|
+
.ser(Aws_restJson1_1.se_GetExperimentConfigCommand)
|
|
14426
|
+
.de(Aws_restJson1_1.de_GetExperimentConfigCommand)
|
|
14427
|
+
.build() {
|
|
14428
|
+
}
|
|
14429
|
+
exports$1.GetExperimentConfigCommand = GetExperimentConfigCommand;
|
|
14430
|
+
} (GetExperimentConfigCommand));
|
|
14431
|
+
return GetExperimentConfigCommand;
|
|
14432
|
+
}
|
|
14433
|
+
|
|
14405
14434
|
var GetExperimentGroupCommand = {};
|
|
14406
14435
|
|
|
14407
14436
|
var hasRequiredGetExperimentGroupCommand;
|
|
@@ -16037,7 +16066,6 @@ function requireSuperposition () {
|
|
|
16037
16066
|
const DeleteWebhookCommand_1 = requireDeleteWebhookCommand();
|
|
16038
16067
|
const DiscardExperimentCommand_1 = requireDiscardExperimentCommand();
|
|
16039
16068
|
const GetConfigCommand_1 = requireGetConfigCommand();
|
|
16040
|
-
const GetConfigFastCommand_1 = requireGetConfigFastCommand();
|
|
16041
16069
|
const GetConfigJsonCommand_1 = requireGetConfigJsonCommand();
|
|
16042
16070
|
const GetConfigTomlCommand_1 = requireGetConfigTomlCommand();
|
|
16043
16071
|
const GetContextCommand_1 = requireGetContextCommand();
|
|
@@ -16045,6 +16073,7 @@ function requireSuperposition () {
|
|
|
16045
16073
|
const GetDefaultConfigCommand_1 = requireGetDefaultConfigCommand();
|
|
16046
16074
|
const GetDimensionCommand_1 = requireGetDimensionCommand();
|
|
16047
16075
|
const GetExperimentCommand_1 = requireGetExperimentCommand();
|
|
16076
|
+
const GetExperimentConfigCommand_1 = requireGetExperimentConfigCommand();
|
|
16048
16077
|
const GetExperimentGroupCommand_1 = requireGetExperimentGroupCommand();
|
|
16049
16078
|
const GetFunctionCommand_1 = requireGetFunctionCommand();
|
|
16050
16079
|
const GetOrganisationCommand_1 = requireGetOrganisationCommand();
|
|
@@ -16124,7 +16153,6 @@ function requireSuperposition () {
|
|
|
16124
16153
|
DeleteWebhookCommand: DeleteWebhookCommand_1.DeleteWebhookCommand,
|
|
16125
16154
|
DiscardExperimentCommand: DiscardExperimentCommand_1.DiscardExperimentCommand,
|
|
16126
16155
|
GetConfigCommand: GetConfigCommand_1.GetConfigCommand,
|
|
16127
|
-
GetConfigFastCommand: GetConfigFastCommand_1.GetConfigFastCommand,
|
|
16128
16156
|
GetConfigJsonCommand: GetConfigJsonCommand_1.GetConfigJsonCommand,
|
|
16129
16157
|
GetConfigTomlCommand: GetConfigTomlCommand_1.GetConfigTomlCommand,
|
|
16130
16158
|
GetContextCommand: GetContextCommand_1.GetContextCommand,
|
|
@@ -16132,6 +16160,7 @@ function requireSuperposition () {
|
|
|
16132
16160
|
GetDefaultConfigCommand: GetDefaultConfigCommand_1.GetDefaultConfigCommand,
|
|
16133
16161
|
GetDimensionCommand: GetDimensionCommand_1.GetDimensionCommand,
|
|
16134
16162
|
GetExperimentCommand: GetExperimentCommand_1.GetExperimentCommand,
|
|
16163
|
+
GetExperimentConfigCommand: GetExperimentConfigCommand_1.GetExperimentConfigCommand,
|
|
16135
16164
|
GetExperimentGroupCommand: GetExperimentGroupCommand_1.GetExperimentGroupCommand,
|
|
16136
16165
|
GetFunctionCommand: GetFunctionCommand_1.GetFunctionCommand,
|
|
16137
16166
|
GetOrganisationCommand: GetOrganisationCommand_1.GetOrganisationCommand,
|
|
@@ -16227,7 +16256,6 @@ function requireCommands () {
|
|
|
16227
16256
|
tslib_1.__exportStar(requireDeleteWebhookCommand(), exports$1);
|
|
16228
16257
|
tslib_1.__exportStar(requireDiscardExperimentCommand(), exports$1);
|
|
16229
16258
|
tslib_1.__exportStar(requireGetConfigCommand(), exports$1);
|
|
16230
|
-
tslib_1.__exportStar(requireGetConfigFastCommand(), exports$1);
|
|
16231
16259
|
tslib_1.__exportStar(requireGetConfigJsonCommand(), exports$1);
|
|
16232
16260
|
tslib_1.__exportStar(requireGetConfigTomlCommand(), exports$1);
|
|
16233
16261
|
tslib_1.__exportStar(requireGetContextCommand(), exports$1);
|
|
@@ -16235,6 +16263,7 @@ function requireCommands () {
|
|
|
16235
16263
|
tslib_1.__exportStar(requireGetDefaultConfigCommand(), exports$1);
|
|
16236
16264
|
tslib_1.__exportStar(requireGetDimensionCommand(), exports$1);
|
|
16237
16265
|
tslib_1.__exportStar(requireGetExperimentCommand(), exports$1);
|
|
16266
|
+
tslib_1.__exportStar(requireGetExperimentConfigCommand(), exports$1);
|
|
16238
16267
|
tslib_1.__exportStar(requireGetExperimentGroupCommand(), exports$1);
|
|
16239
16268
|
tslib_1.__exportStar(requireGetFunctionCommand(), exports$1);
|
|
16240
16269
|
tslib_1.__exportStar(requireGetOrganisationCommand(), exports$1);
|