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.js
CHANGED
|
@@ -3183,7 +3183,7 @@ var runtimeConfig = {};
|
|
|
3183
3183
|
|
|
3184
3184
|
var name = "superposition-sdk";
|
|
3185
3185
|
var description = "superposition-sdk client";
|
|
3186
|
-
var version = "0.
|
|
3186
|
+
var version = "0.102.0";
|
|
3187
3187
|
var repository = {
|
|
3188
3188
|
type: "git",
|
|
3189
3189
|
url: "git+https://github.com/juspay/superposition.git"
|
|
@@ -8998,9 +8998,9 @@ function requireAws_restJson1 () {
|
|
|
8998
8998
|
if (hasRequiredAws_restJson1) return Aws_restJson1;
|
|
8999
8999
|
hasRequiredAws_restJson1 = 1;
|
|
9000
9000
|
Object.defineProperty(Aws_restJson1, "__esModule", { value: true });
|
|
9001
|
-
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.
|
|
9001
|
+
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;
|
|
9002
9002
|
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;
|
|
9003
|
-
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.
|
|
9003
|
+
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;
|
|
9004
9004
|
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;
|
|
9005
9005
|
const SuperpositionServiceException_1 = requireSuperpositionServiceException();
|
|
9006
9006
|
const models_0_1 = requireModels_0();
|
|
@@ -9524,6 +9524,7 @@ function requireAws_restJson1 () {
|
|
|
9524
9524
|
'content-type': 'application/json',
|
|
9525
9525
|
[_xw]: input[_wi],
|
|
9526
9526
|
[_xoi]: input[_oi],
|
|
9527
|
+
[_ims_]: [() => (0, smithy_client_1.isSerializableHeaderValue)(input[_ims]), () => (0, smithy_client_1.serializeDateTime)(input[_ims]).toString()],
|
|
9527
9528
|
});
|
|
9528
9529
|
b.bp("/config");
|
|
9529
9530
|
const query = (0, smithy_client_1.map)({
|
|
@@ -9541,29 +9542,16 @@ function requireAws_restJson1 () {
|
|
|
9541
9542
|
return b.build();
|
|
9542
9543
|
};
|
|
9543
9544
|
Aws_restJson1.se_GetConfigCommand = se_GetConfigCommand;
|
|
9544
|
-
const se_GetConfigFastCommand = async (input, context) => {
|
|
9545
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
9546
|
-
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
9547
|
-
[_xw]: input[_wi],
|
|
9548
|
-
[_xoi]: input[_oi],
|
|
9549
|
-
});
|
|
9550
|
-
b.bp("/config/fast");
|
|
9551
|
-
let body;
|
|
9552
|
-
b.m("GET")
|
|
9553
|
-
.h(headers)
|
|
9554
|
-
.b(body);
|
|
9555
|
-
return b.build();
|
|
9556
|
-
};
|
|
9557
|
-
Aws_restJson1.se_GetConfigFastCommand = se_GetConfigFastCommand;
|
|
9558
9545
|
const se_GetConfigJsonCommand = async (input, context) => {
|
|
9559
9546
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
9560
9547
|
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
9561
9548
|
[_xw]: input[_wi],
|
|
9562
9549
|
[_xoi]: input[_oi],
|
|
9550
|
+
[_ims_]: [() => (0, smithy_client_1.isSerializableHeaderValue)(input[_ims]), () => (0, smithy_client_1.serializeDateTime)(input[_ims]).toString()],
|
|
9563
9551
|
});
|
|
9564
9552
|
b.bp("/config/json");
|
|
9565
9553
|
let body;
|
|
9566
|
-
b.m("
|
|
9554
|
+
b.m("POST")
|
|
9567
9555
|
.h(headers)
|
|
9568
9556
|
.b(body);
|
|
9569
9557
|
return b.build();
|
|
@@ -9574,10 +9562,11 @@ function requireAws_restJson1 () {
|
|
|
9574
9562
|
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
9575
9563
|
[_xw]: input[_wi],
|
|
9576
9564
|
[_xoi]: input[_oi],
|
|
9565
|
+
[_ims_]: [() => (0, smithy_client_1.isSerializableHeaderValue)(input[_ims]), () => (0, smithy_client_1.serializeDateTime)(input[_ims]).toString()],
|
|
9577
9566
|
});
|
|
9578
9567
|
b.bp("/config/toml");
|
|
9579
9568
|
let body;
|
|
9580
|
-
b.m("
|
|
9569
|
+
b.m("POST")
|
|
9581
9570
|
.h(headers)
|
|
9582
9571
|
.b(body);
|
|
9583
9572
|
return b.build();
|
|
@@ -9667,6 +9656,30 @@ function requireAws_restJson1 () {
|
|
|
9667
9656
|
return b.build();
|
|
9668
9657
|
};
|
|
9669
9658
|
Aws_restJson1.se_GetExperimentCommand = se_GetExperimentCommand;
|
|
9659
|
+
const se_GetExperimentConfigCommand = async (input, context) => {
|
|
9660
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
9661
|
+
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
9662
|
+
'content-type': 'application/json',
|
|
9663
|
+
[_xw]: input[_wi],
|
|
9664
|
+
[_xoi]: input[_oi],
|
|
9665
|
+
[_ims_]: [() => (0, smithy_client_1.isSerializableHeaderValue)(input[_ims]), () => (0, smithy_client_1.serializeDateTime)(input[_ims]).toString()],
|
|
9666
|
+
});
|
|
9667
|
+
b.bp("/experiment-config");
|
|
9668
|
+
const query = (0, smithy_client_1.map)({
|
|
9669
|
+
[_p]: [() => input.prefix !== void 0, () => ((input[_p] || []))],
|
|
9670
|
+
[_dms]: [, input[_dms]],
|
|
9671
|
+
});
|
|
9672
|
+
let body;
|
|
9673
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
9674
|
+
'context': _ => se_ContextMap(_),
|
|
9675
|
+
}));
|
|
9676
|
+
b.m("POST")
|
|
9677
|
+
.h(headers)
|
|
9678
|
+
.q(query)
|
|
9679
|
+
.b(body);
|
|
9680
|
+
return b.build();
|
|
9681
|
+
};
|
|
9682
|
+
Aws_restJson1.se_GetExperimentConfigCommand = se_GetExperimentConfigCommand;
|
|
9670
9683
|
const se_GetExperimentGroupCommand = async (input, context) => {
|
|
9671
9684
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
9672
9685
|
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
@@ -9985,10 +9998,12 @@ function requireAws_restJson1 () {
|
|
|
9985
9998
|
const se_ListExperimentCommand = async (input, context) => {
|
|
9986
9999
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
9987
10000
|
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
10001
|
+
'content-type': 'application/json',
|
|
9988
10002
|
[_xw]: input[_wi],
|
|
9989
10003
|
[_xoi]: input[_oi],
|
|
10004
|
+
[_ims_]: [() => (0, smithy_client_1.isSerializableHeaderValue)(input[_ims]), () => (0, smithy_client_1.serializeDateTime)(input[_ims]).toString()],
|
|
9990
10005
|
});
|
|
9991
|
-
b.bp("/experiments");
|
|
10006
|
+
b.bp("/experiments/list");
|
|
9992
10007
|
const query = (0, smithy_client_1.map)({
|
|
9993
10008
|
[_c]: [() => input.count !== void 0, () => (input[_c].toString())],
|
|
9994
10009
|
[_pa]: [() => input.page !== void 0, () => (input[_pa].toString())],
|
|
@@ -10004,9 +10019,13 @@ function requireAws_restJson1 () {
|
|
|
10004
10019
|
[_sb]: [, input[_sb]],
|
|
10005
10020
|
[_geo]: [() => input.global_experiments_only !== void 0, () => (input[_geo].toString())],
|
|
10006
10021
|
[_dms]: [, input[_dms]],
|
|
10022
|
+
[_p]: [() => input.prefix !== void 0, () => ((input[_p] || []))],
|
|
10007
10023
|
});
|
|
10008
10024
|
let body;
|
|
10009
|
-
|
|
10025
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
10026
|
+
'context': _ => se_ContextMap(_),
|
|
10027
|
+
}));
|
|
10028
|
+
b.m("POST")
|
|
10010
10029
|
.h(headers)
|
|
10011
10030
|
.q(query)
|
|
10012
10031
|
.b(body);
|
|
@@ -10016,10 +10035,12 @@ function requireAws_restJson1 () {
|
|
|
10016
10035
|
const se_ListExperimentGroupsCommand = async (input, context) => {
|
|
10017
10036
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
10018
10037
|
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
10038
|
+
'content-type': 'application/json',
|
|
10019
10039
|
[_xw]: input[_wi],
|
|
10020
10040
|
[_xoi]: input[_oi],
|
|
10041
|
+
[_ims_]: [() => (0, smithy_client_1.isSerializableHeaderValue)(input[_ims]), () => (0, smithy_client_1.serializeDateTime)(input[_ims]).toString()],
|
|
10021
10042
|
});
|
|
10022
|
-
b.bp("/experiment-groups");
|
|
10043
|
+
b.bp("/experiment-groups/list");
|
|
10023
10044
|
const query = (0, smithy_client_1.map)({
|
|
10024
10045
|
[_c]: [() => input.count !== void 0, () => (input[_c].toString())],
|
|
10025
10046
|
[_pa]: [() => input.page !== void 0, () => (input[_pa].toString())],
|
|
@@ -10030,9 +10051,13 @@ function requireAws_restJson1 () {
|
|
|
10030
10051
|
[_so]: [, input[_so]],
|
|
10031
10052
|
[_sb]: [, input[_sb]],
|
|
10032
10053
|
[_gt]: [() => input.group_type !== void 0, () => ((input[_gt] || []))],
|
|
10054
|
+
[_dms]: [, input[_dms]],
|
|
10033
10055
|
});
|
|
10034
10056
|
let body;
|
|
10035
|
-
|
|
10057
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
10058
|
+
'context': _ => se_ContextMap(_),
|
|
10059
|
+
}));
|
|
10060
|
+
b.m("POST")
|
|
10036
10061
|
.h(headers)
|
|
10037
10062
|
.q(query)
|
|
10038
10063
|
.b(body);
|
|
@@ -11276,7 +11301,6 @@ function requireAws_restJson1 () {
|
|
|
11276
11301
|
$metadata: deserializeMetadata(output),
|
|
11277
11302
|
[_v]: [, output.headers[_xcv]],
|
|
11278
11303
|
[_lm_]: [() => void 0 !== output.headers[_lm], () => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.headers[_lm]))],
|
|
11279
|
-
[_ai]: [, output.headers[_xai]],
|
|
11280
11304
|
});
|
|
11281
11305
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
11282
11306
|
const doc = (0, smithy_client_1.take)(data, {
|
|
@@ -11289,22 +11313,6 @@ function requireAws_restJson1 () {
|
|
|
11289
11313
|
return contents;
|
|
11290
11314
|
};
|
|
11291
11315
|
Aws_restJson1.de_GetConfigCommand = de_GetConfigCommand;
|
|
11292
|
-
const de_GetConfigFastCommand = async (output, context) => {
|
|
11293
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
11294
|
-
return de_CommandError(output, context);
|
|
11295
|
-
}
|
|
11296
|
-
const contents = (0, smithy_client_1.map)({
|
|
11297
|
-
$metadata: deserializeMetadata(output),
|
|
11298
|
-
[_v]: [, output.headers[_xcv]],
|
|
11299
|
-
[_lm_]: [() => void 0 !== output.headers[_lm], () => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.headers[_lm]))],
|
|
11300
|
-
[_ai]: [, output.headers[_xai]],
|
|
11301
|
-
});
|
|
11302
|
-
const data = await collectBodyString(output.body, context);
|
|
11303
|
-
contents.config = data;
|
|
11304
|
-
contents.config = JSON.parse(data);
|
|
11305
|
-
return contents;
|
|
11306
|
-
};
|
|
11307
|
-
Aws_restJson1.de_GetConfigFastCommand = de_GetConfigFastCommand;
|
|
11308
11316
|
const de_GetConfigJsonCommand = async (output, context) => {
|
|
11309
11317
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
11310
11318
|
return de_CommandError(output, context);
|
|
@@ -11468,6 +11476,23 @@ function requireAws_restJson1 () {
|
|
|
11468
11476
|
return contents;
|
|
11469
11477
|
};
|
|
11470
11478
|
Aws_restJson1.de_GetExperimentCommand = de_GetExperimentCommand;
|
|
11479
|
+
const de_GetExperimentConfigCommand = async (output, context) => {
|
|
11480
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
11481
|
+
return de_CommandError(output, context);
|
|
11482
|
+
}
|
|
11483
|
+
const contents = (0, smithy_client_1.map)({
|
|
11484
|
+
$metadata: deserializeMetadata(output),
|
|
11485
|
+
[_lm_]: [() => void 0 !== output.headers[_lm], () => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.headers[_lm]))],
|
|
11486
|
+
});
|
|
11487
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
11488
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
11489
|
+
'experiment_groups': _ => de_ExperimentGroupList(_),
|
|
11490
|
+
'experiments': _ => de_ExperimentList(_),
|
|
11491
|
+
});
|
|
11492
|
+
Object.assign(contents, doc);
|
|
11493
|
+
return contents;
|
|
11494
|
+
};
|
|
11495
|
+
Aws_restJson1.de_GetExperimentConfigCommand = de_GetExperimentConfigCommand;
|
|
11471
11496
|
const de_GetExperimentGroupCommand = async (output, context) => {
|
|
11472
11497
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
11473
11498
|
return de_CommandError(output, context);
|
|
@@ -11847,6 +11872,7 @@ function requireAws_restJson1 () {
|
|
|
11847
11872
|
}
|
|
11848
11873
|
const contents = (0, smithy_client_1.map)({
|
|
11849
11874
|
$metadata: deserializeMetadata(output),
|
|
11875
|
+
[_lm_]: [() => void 0 !== output.headers[_lm], () => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.headers[_lm]))],
|
|
11850
11876
|
});
|
|
11851
11877
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
11852
11878
|
const doc = (0, smithy_client_1.take)(data, {
|
|
@@ -11864,6 +11890,7 @@ function requireAws_restJson1 () {
|
|
|
11864
11890
|
}
|
|
11865
11891
|
const contents = (0, smithy_client_1.map)({
|
|
11866
11892
|
$metadata: deserializeMetadata(output),
|
|
11893
|
+
[_lm_]: [() => void 0 !== output.headers[_lm], () => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.headers[_lm]))],
|
|
11867
11894
|
});
|
|
11868
11895
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
11869
11896
|
const doc = (0, smithy_client_1.take)(data, {
|
|
@@ -13256,6 +13283,8 @@ function requireAws_restJson1 () {
|
|
|
13256
13283
|
const _geo = "global_experiments_only";
|
|
13257
13284
|
const _gt = "group_type";
|
|
13258
13285
|
const _i = "identifier";
|
|
13286
|
+
const _ims = "if_modified_since";
|
|
13287
|
+
const _ims_ = "if-modified-since";
|
|
13259
13288
|
const _lm = "last-modified";
|
|
13260
13289
|
const _lm_ = "last_modified";
|
|
13261
13290
|
const _lmb = "last_modified_by";
|
|
@@ -14149,38 +14178,6 @@ function requireGetConfigCommand () {
|
|
|
14149
14178
|
return GetConfigCommand;
|
|
14150
14179
|
}
|
|
14151
14180
|
|
|
14152
|
-
var GetConfigFastCommand = {};
|
|
14153
|
-
|
|
14154
|
-
var hasRequiredGetConfigFastCommand;
|
|
14155
|
-
|
|
14156
|
-
function requireGetConfigFastCommand () {
|
|
14157
|
-
if (hasRequiredGetConfigFastCommand) return GetConfigFastCommand;
|
|
14158
|
-
hasRequiredGetConfigFastCommand = 1;
|
|
14159
|
-
(function (exports$1) {
|
|
14160
|
-
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
14161
|
-
exports$1.GetConfigFastCommand = exports$1.$Command = void 0;
|
|
14162
|
-
const Aws_restJson1_1 = requireAws_restJson1();
|
|
14163
|
-
const middleware_serde_1 = require$$1;
|
|
14164
|
-
const smithy_client_1 = require$$86;
|
|
14165
|
-
Object.defineProperty(exports$1, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
14166
|
-
class GetConfigFastCommand extends smithy_client_1.Command.classBuilder()
|
|
14167
|
-
.m(function (Command, cs, config, o) {
|
|
14168
|
-
return [
|
|
14169
|
-
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
14170
|
-
];
|
|
14171
|
-
})
|
|
14172
|
-
.s("Superposition", "GetConfigFast", {})
|
|
14173
|
-
.n("SuperpositionClient", "GetConfigFastCommand")
|
|
14174
|
-
.f(void 0, void 0)
|
|
14175
|
-
.ser(Aws_restJson1_1.se_GetConfigFastCommand)
|
|
14176
|
-
.de(Aws_restJson1_1.de_GetConfigFastCommand)
|
|
14177
|
-
.build() {
|
|
14178
|
-
}
|
|
14179
|
-
exports$1.GetConfigFastCommand = GetConfigFastCommand;
|
|
14180
|
-
} (GetConfigFastCommand));
|
|
14181
|
-
return GetConfigFastCommand;
|
|
14182
|
-
}
|
|
14183
|
-
|
|
14184
14181
|
var GetConfigJsonCommand = {};
|
|
14185
14182
|
|
|
14186
14183
|
var hasRequiredGetConfigJsonCommand;
|
|
@@ -14405,6 +14402,38 @@ function requireGetExperimentCommand () {
|
|
|
14405
14402
|
return GetExperimentCommand;
|
|
14406
14403
|
}
|
|
14407
14404
|
|
|
14405
|
+
var GetExperimentConfigCommand = {};
|
|
14406
|
+
|
|
14407
|
+
var hasRequiredGetExperimentConfigCommand;
|
|
14408
|
+
|
|
14409
|
+
function requireGetExperimentConfigCommand () {
|
|
14410
|
+
if (hasRequiredGetExperimentConfigCommand) return GetExperimentConfigCommand;
|
|
14411
|
+
hasRequiredGetExperimentConfigCommand = 1;
|
|
14412
|
+
(function (exports$1) {
|
|
14413
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
14414
|
+
exports$1.GetExperimentConfigCommand = exports$1.$Command = void 0;
|
|
14415
|
+
const Aws_restJson1_1 = requireAws_restJson1();
|
|
14416
|
+
const middleware_serde_1 = require$$1;
|
|
14417
|
+
const smithy_client_1 = require$$86;
|
|
14418
|
+
Object.defineProperty(exports$1, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
14419
|
+
class GetExperimentConfigCommand extends smithy_client_1.Command.classBuilder()
|
|
14420
|
+
.m(function (Command, cs, config, o) {
|
|
14421
|
+
return [
|
|
14422
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
14423
|
+
];
|
|
14424
|
+
})
|
|
14425
|
+
.s("Superposition", "GetExperimentConfig", {})
|
|
14426
|
+
.n("SuperpositionClient", "GetExperimentConfigCommand")
|
|
14427
|
+
.f(void 0, void 0)
|
|
14428
|
+
.ser(Aws_restJson1_1.se_GetExperimentConfigCommand)
|
|
14429
|
+
.de(Aws_restJson1_1.de_GetExperimentConfigCommand)
|
|
14430
|
+
.build() {
|
|
14431
|
+
}
|
|
14432
|
+
exports$1.GetExperimentConfigCommand = GetExperimentConfigCommand;
|
|
14433
|
+
} (GetExperimentConfigCommand));
|
|
14434
|
+
return GetExperimentConfigCommand;
|
|
14435
|
+
}
|
|
14436
|
+
|
|
14408
14437
|
var GetExperimentGroupCommand = {};
|
|
14409
14438
|
|
|
14410
14439
|
var hasRequiredGetExperimentGroupCommand;
|
|
@@ -16040,7 +16069,6 @@ function requireSuperposition () {
|
|
|
16040
16069
|
const DeleteWebhookCommand_1 = requireDeleteWebhookCommand();
|
|
16041
16070
|
const DiscardExperimentCommand_1 = requireDiscardExperimentCommand();
|
|
16042
16071
|
const GetConfigCommand_1 = requireGetConfigCommand();
|
|
16043
|
-
const GetConfigFastCommand_1 = requireGetConfigFastCommand();
|
|
16044
16072
|
const GetConfigJsonCommand_1 = requireGetConfigJsonCommand();
|
|
16045
16073
|
const GetConfigTomlCommand_1 = requireGetConfigTomlCommand();
|
|
16046
16074
|
const GetContextCommand_1 = requireGetContextCommand();
|
|
@@ -16048,6 +16076,7 @@ function requireSuperposition () {
|
|
|
16048
16076
|
const GetDefaultConfigCommand_1 = requireGetDefaultConfigCommand();
|
|
16049
16077
|
const GetDimensionCommand_1 = requireGetDimensionCommand();
|
|
16050
16078
|
const GetExperimentCommand_1 = requireGetExperimentCommand();
|
|
16079
|
+
const GetExperimentConfigCommand_1 = requireGetExperimentConfigCommand();
|
|
16051
16080
|
const GetExperimentGroupCommand_1 = requireGetExperimentGroupCommand();
|
|
16052
16081
|
const GetFunctionCommand_1 = requireGetFunctionCommand();
|
|
16053
16082
|
const GetOrganisationCommand_1 = requireGetOrganisationCommand();
|
|
@@ -16127,7 +16156,6 @@ function requireSuperposition () {
|
|
|
16127
16156
|
DeleteWebhookCommand: DeleteWebhookCommand_1.DeleteWebhookCommand,
|
|
16128
16157
|
DiscardExperimentCommand: DiscardExperimentCommand_1.DiscardExperimentCommand,
|
|
16129
16158
|
GetConfigCommand: GetConfigCommand_1.GetConfigCommand,
|
|
16130
|
-
GetConfigFastCommand: GetConfigFastCommand_1.GetConfigFastCommand,
|
|
16131
16159
|
GetConfigJsonCommand: GetConfigJsonCommand_1.GetConfigJsonCommand,
|
|
16132
16160
|
GetConfigTomlCommand: GetConfigTomlCommand_1.GetConfigTomlCommand,
|
|
16133
16161
|
GetContextCommand: GetContextCommand_1.GetContextCommand,
|
|
@@ -16135,6 +16163,7 @@ function requireSuperposition () {
|
|
|
16135
16163
|
GetDefaultConfigCommand: GetDefaultConfigCommand_1.GetDefaultConfigCommand,
|
|
16136
16164
|
GetDimensionCommand: GetDimensionCommand_1.GetDimensionCommand,
|
|
16137
16165
|
GetExperimentCommand: GetExperimentCommand_1.GetExperimentCommand,
|
|
16166
|
+
GetExperimentConfigCommand: GetExperimentConfigCommand_1.GetExperimentConfigCommand,
|
|
16138
16167
|
GetExperimentGroupCommand: GetExperimentGroupCommand_1.GetExperimentGroupCommand,
|
|
16139
16168
|
GetFunctionCommand: GetFunctionCommand_1.GetFunctionCommand,
|
|
16140
16169
|
GetOrganisationCommand: GetOrganisationCommand_1.GetOrganisationCommand,
|
|
@@ -16230,7 +16259,6 @@ function requireCommands () {
|
|
|
16230
16259
|
tslib_1.__exportStar(requireDeleteWebhookCommand(), exports$1);
|
|
16231
16260
|
tslib_1.__exportStar(requireDiscardExperimentCommand(), exports$1);
|
|
16232
16261
|
tslib_1.__exportStar(requireGetConfigCommand(), exports$1);
|
|
16233
|
-
tslib_1.__exportStar(requireGetConfigFastCommand(), exports$1);
|
|
16234
16262
|
tslib_1.__exportStar(requireGetConfigJsonCommand(), exports$1);
|
|
16235
16263
|
tslib_1.__exportStar(requireGetConfigTomlCommand(), exports$1);
|
|
16236
16264
|
tslib_1.__exportStar(requireGetContextCommand(), exports$1);
|
|
@@ -16238,6 +16266,7 @@ function requireCommands () {
|
|
|
16238
16266
|
tslib_1.__exportStar(requireGetDefaultConfigCommand(), exports$1);
|
|
16239
16267
|
tslib_1.__exportStar(requireGetDimensionCommand(), exports$1);
|
|
16240
16268
|
tslib_1.__exportStar(requireGetExperimentCommand(), exports$1);
|
|
16269
|
+
tslib_1.__exportStar(requireGetExperimentConfigCommand(), exports$1);
|
|
16241
16270
|
tslib_1.__exportStar(requireGetExperimentGroupCommand(), exports$1);
|
|
16242
16271
|
tslib_1.__exportStar(requireGetFunctionCommand(), exports$1);
|
|
16243
16272
|
tslib_1.__exportStar(requireGetOrganisationCommand(), exports$1);
|