superposition-provider 0.101.0 → 0.103.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 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.101.0";
3183
+ var version = "0.103.0";
3184
3184
  var repository = {
3185
3185
  type: "git",
3186
3186
  url: "git+https://github.com/juspay/superposition.git"
@@ -8799,7 +8799,7 @@ function requireModels_0 () {
8799
8799
  if (hasRequiredModels_0) return models_0;
8800
8800
  hasRequiredModels_0 = 1;
8801
8801
  Object.defineProperty(models_0, "__esModule", { value: true });
8802
- models_0.VariableSortOn = models_0.SecretSortOn = models_0.Stage = models_0.FunctionExecutionRequest = models_0.ExperimentSortOn = models_0.ExperimentGroupSortOn = models_0.WorkspaceStatus = models_0.Version = models_0.HttpMethod = models_0.OrgStatus = models_0.FunctionRuntimeVersion = models_0.FunctionTypes = models_0.ContextFilterSortOn = models_0.DimensionMatchStrategy = models_0.MergeStrategy = models_0.DimensionType = models_0.ExperimentStatusType = models_0.ExperimentType = models_0.ContextActionOut = models_0.ContextAction = models_0.ContextIdentifier = models_0.SortBy = models_0.AuditAction = models_0.VariantType = models_0.ResourceNotFound = models_0.InternalServerError = models_0.GroupType = void 0;
8802
+ models_0.VariableSortOn = models_0.SecretSortOn = models_0.Stage = models_0.FunctionExecutionRequest = models_0.ExperimentSortOn = models_0.ExperimentGroupSortOn = models_0.WorkspaceStatus = models_0.Version = models_0.HttpMethod = models_0.OrgStatus = models_0.FunctionRuntimeVersion = models_0.FunctionTypes = models_0.ContextFilterSortOn = models_0.DimensionMatchStrategy = models_0.MergeStrategy = models_0.DimensionType = models_0.ExperimentStatusType = models_0.ExperimentType = models_0.WebhookFailed = models_0.ContextActionOut = models_0.ContextAction = models_0.ContextIdentifier = models_0.SortBy = models_0.AuditAction = models_0.VariantType = models_0.ResourceNotFound = models_0.InternalServerError = models_0.GroupType = void 0;
8803
8803
  const SuperpositionServiceException_1 = requireSuperpositionServiceException();
8804
8804
  models_0.GroupType = {
8805
8805
  SYSTEM_GENERATED: "SYSTEM_GENERATED",
@@ -8882,6 +8882,21 @@ function requireModels_0 () {
8882
8882
  return visitor._(value.$unknown[0], value.$unknown[1]);
8883
8883
  };
8884
8884
  })(ContextActionOut || (models_0.ContextActionOut = ContextActionOut = {}));
8885
+ class WebhookFailed extends SuperpositionServiceException_1.SuperpositionServiceException {
8886
+ name = "WebhookFailed";
8887
+ $fault = "server";
8888
+ data;
8889
+ constructor(opts) {
8890
+ super({
8891
+ name: "WebhookFailed",
8892
+ $fault: "server",
8893
+ ...opts
8894
+ });
8895
+ Object.setPrototypeOf(this, WebhookFailed.prototype);
8896
+ this.data = opts.data;
8897
+ }
8898
+ }
8899
+ models_0.WebhookFailed = WebhookFailed;
8885
8900
  models_0.ExperimentType = {
8886
8901
  DEFAULT: "DEFAULT",
8887
8902
  DELETE_OVERRIDES: "DELETE_OVERRIDES",
@@ -8995,9 +9010,9 @@ function requireAws_restJson1 () {
8995
9010
  if (hasRequiredAws_restJson1) return Aws_restJson1;
8996
9011
  hasRequiredAws_restJson1 = 1;
8997
9012
  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.se_GetConfigFastCommand = 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;
9013
+ 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
9014
  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.de_GetConfigFastCommand = 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;
9015
+ 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
9016
  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
9017
  const SuperpositionServiceException_1 = requireSuperpositionServiceException();
9003
9018
  const models_0_1 = requireModels_0();
@@ -9032,13 +9047,17 @@ function requireAws_restJson1 () {
9032
9047
  [_xoi]: input[_oi],
9033
9048
  });
9034
9049
  b.bp("/experiments/applicable-variants");
9050
+ const query = (0, smithy_client_1.map)({
9051
+ [_i]: [, (0, smithy_client_1.expectNonNull)(input[_i], `identifier`)],
9052
+ [_p]: [() => input.prefix !== void 0, () => ((input[_p] || []))],
9053
+ });
9035
9054
  let body;
9036
9055
  body = JSON.stringify((0, smithy_client_1.take)(input, {
9037
9056
  'context': _ => se_Condition(_),
9038
- 'identifier': [],
9039
9057
  }));
9040
9058
  b.m("POST")
9041
9059
  .h(headers)
9060
+ .q(query)
9042
9061
  .b(body);
9043
9062
  return b.build();
9044
9063
  };
@@ -9521,6 +9540,7 @@ function requireAws_restJson1 () {
9521
9540
  'content-type': 'application/json',
9522
9541
  [_xw]: input[_wi],
9523
9542
  [_xoi]: input[_oi],
9543
+ [_ims_]: [() => (0, smithy_client_1.isSerializableHeaderValue)(input[_ims]), () => (0, smithy_client_1.serializeDateTime)(input[_ims]).toString()],
9524
9544
  });
9525
9545
  b.bp("/config");
9526
9546
  const query = (0, smithy_client_1.map)({
@@ -9538,29 +9558,16 @@ function requireAws_restJson1 () {
9538
9558
  return b.build();
9539
9559
  };
9540
9560
  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
9561
  const se_GetConfigJsonCommand = async (input, context) => {
9556
9562
  const b = (0, core_2.requestBuilder)(input, context);
9557
9563
  const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
9558
9564
  [_xw]: input[_wi],
9559
9565
  [_xoi]: input[_oi],
9566
+ [_ims_]: [() => (0, smithy_client_1.isSerializableHeaderValue)(input[_ims]), () => (0, smithy_client_1.serializeDateTime)(input[_ims]).toString()],
9560
9567
  });
9561
9568
  b.bp("/config/json");
9562
9569
  let body;
9563
- b.m("GET")
9570
+ b.m("POST")
9564
9571
  .h(headers)
9565
9572
  .b(body);
9566
9573
  return b.build();
@@ -9571,10 +9578,11 @@ function requireAws_restJson1 () {
9571
9578
  const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
9572
9579
  [_xw]: input[_wi],
9573
9580
  [_xoi]: input[_oi],
9581
+ [_ims_]: [() => (0, smithy_client_1.isSerializableHeaderValue)(input[_ims]), () => (0, smithy_client_1.serializeDateTime)(input[_ims]).toString()],
9574
9582
  });
9575
9583
  b.bp("/config/toml");
9576
9584
  let body;
9577
- b.m("GET")
9585
+ b.m("POST")
9578
9586
  .h(headers)
9579
9587
  .b(body);
9580
9588
  return b.build();
@@ -9664,6 +9672,30 @@ function requireAws_restJson1 () {
9664
9672
  return b.build();
9665
9673
  };
9666
9674
  Aws_restJson1.se_GetExperimentCommand = se_GetExperimentCommand;
9675
+ const se_GetExperimentConfigCommand = async (input, context) => {
9676
+ const b = (0, core_2.requestBuilder)(input, context);
9677
+ const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
9678
+ 'content-type': 'application/json',
9679
+ [_xw]: input[_wi],
9680
+ [_xoi]: input[_oi],
9681
+ [_ims_]: [() => (0, smithy_client_1.isSerializableHeaderValue)(input[_ims]), () => (0, smithy_client_1.serializeDateTime)(input[_ims]).toString()],
9682
+ });
9683
+ b.bp("/experiment-config");
9684
+ const query = (0, smithy_client_1.map)({
9685
+ [_p]: [() => input.prefix !== void 0, () => ((input[_p] || []))],
9686
+ [_dms]: [, input[_dms]],
9687
+ });
9688
+ let body;
9689
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
9690
+ 'context': _ => se_ContextMap(_),
9691
+ }));
9692
+ b.m("POST")
9693
+ .h(headers)
9694
+ .q(query)
9695
+ .b(body);
9696
+ return b.build();
9697
+ };
9698
+ Aws_restJson1.se_GetExperimentConfigCommand = se_GetExperimentConfigCommand;
9667
9699
  const se_GetExperimentGroupCommand = async (input, context) => {
9668
9700
  const b = (0, core_2.requestBuilder)(input, context);
9669
9701
  const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
@@ -9982,10 +10014,12 @@ function requireAws_restJson1 () {
9982
10014
  const se_ListExperimentCommand = async (input, context) => {
9983
10015
  const b = (0, core_2.requestBuilder)(input, context);
9984
10016
  const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
10017
+ 'content-type': 'application/json',
9985
10018
  [_xw]: input[_wi],
9986
10019
  [_xoi]: input[_oi],
10020
+ [_ims_]: [() => (0, smithy_client_1.isSerializableHeaderValue)(input[_ims]), () => (0, smithy_client_1.serializeDateTime)(input[_ims]).toString()],
9987
10021
  });
9988
- b.bp("/experiments");
10022
+ b.bp("/experiments/list");
9989
10023
  const query = (0, smithy_client_1.map)({
9990
10024
  [_c]: [() => input.count !== void 0, () => (input[_c].toString())],
9991
10025
  [_pa]: [() => input.page !== void 0, () => (input[_pa].toString())],
@@ -10001,9 +10035,13 @@ function requireAws_restJson1 () {
10001
10035
  [_sb]: [, input[_sb]],
10002
10036
  [_geo]: [() => input.global_experiments_only !== void 0, () => (input[_geo].toString())],
10003
10037
  [_dms]: [, input[_dms]],
10038
+ [_p]: [() => input.prefix !== void 0, () => ((input[_p] || []))],
10004
10039
  });
10005
10040
  let body;
10006
- b.m("GET")
10041
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
10042
+ 'context': _ => se_ContextMap(_),
10043
+ }));
10044
+ b.m("POST")
10007
10045
  .h(headers)
10008
10046
  .q(query)
10009
10047
  .b(body);
@@ -10013,10 +10051,12 @@ function requireAws_restJson1 () {
10013
10051
  const se_ListExperimentGroupsCommand = async (input, context) => {
10014
10052
  const b = (0, core_2.requestBuilder)(input, context);
10015
10053
  const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
10054
+ 'content-type': 'application/json',
10016
10055
  [_xw]: input[_wi],
10017
10056
  [_xoi]: input[_oi],
10057
+ [_ims_]: [() => (0, smithy_client_1.isSerializableHeaderValue)(input[_ims]), () => (0, smithy_client_1.serializeDateTime)(input[_ims]).toString()],
10018
10058
  });
10019
- b.bp("/experiment-groups");
10059
+ b.bp("/experiment-groups/list");
10020
10060
  const query = (0, smithy_client_1.map)({
10021
10061
  [_c]: [() => input.count !== void 0, () => (input[_c].toString())],
10022
10062
  [_pa]: [() => input.page !== void 0, () => (input[_pa].toString())],
@@ -10027,9 +10067,13 @@ function requireAws_restJson1 () {
10027
10067
  [_so]: [, input[_so]],
10028
10068
  [_sb]: [, input[_sb]],
10029
10069
  [_gt]: [() => input.group_type !== void 0, () => ((input[_gt] || []))],
10070
+ [_dms]: [, input[_dms]],
10030
10071
  });
10031
10072
  let body;
10032
- b.m("GET")
10073
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
10074
+ 'context': _ => se_ContextMap(_),
10075
+ }));
10076
+ b.m("POST")
10033
10077
  .h(headers)
10034
10078
  .q(query)
10035
10079
  .b(body);
@@ -11273,7 +11317,6 @@ function requireAws_restJson1 () {
11273
11317
  $metadata: deserializeMetadata(output),
11274
11318
  [_v]: [, output.headers[_xcv]],
11275
11319
  [_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
11320
  });
11278
11321
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
11279
11322
  const doc = (0, smithy_client_1.take)(data, {
@@ -11286,22 +11329,6 @@ function requireAws_restJson1 () {
11286
11329
  return contents;
11287
11330
  };
11288
11331
  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
11332
  const de_GetConfigJsonCommand = async (output, context) => {
11306
11333
  if (output.statusCode !== 200 && output.statusCode >= 300) {
11307
11334
  return de_CommandError(output, context);
@@ -11465,6 +11492,23 @@ function requireAws_restJson1 () {
11465
11492
  return contents;
11466
11493
  };
11467
11494
  Aws_restJson1.de_GetExperimentCommand = de_GetExperimentCommand;
11495
+ const de_GetExperimentConfigCommand = async (output, context) => {
11496
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
11497
+ return de_CommandError(output, context);
11498
+ }
11499
+ const contents = (0, smithy_client_1.map)({
11500
+ $metadata: deserializeMetadata(output),
11501
+ [_lm_]: [() => void 0 !== output.headers[_lm], () => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.headers[_lm]))],
11502
+ });
11503
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
11504
+ const doc = (0, smithy_client_1.take)(data, {
11505
+ 'experiment_groups': _ => de_ExperimentGroupList(_),
11506
+ 'experiments': _ => de_ExperimentList(_),
11507
+ });
11508
+ Object.assign(contents, doc);
11509
+ return contents;
11510
+ };
11511
+ Aws_restJson1.de_GetExperimentConfigCommand = de_GetExperimentConfigCommand;
11468
11512
  const de_GetExperimentGroupCommand = async (output, context) => {
11469
11513
  if (output.statusCode !== 200 && output.statusCode >= 300) {
11470
11514
  return de_CommandError(output, context);
@@ -11670,7 +11714,7 @@ function requireAws_restJson1 () {
11670
11714
  });
11671
11715
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
11672
11716
  const doc = (0, smithy_client_1.take)(data, {
11673
- 'config': _ => de_Document(_),
11717
+ 'config': _ => de_ConfigData(_),
11674
11718
  'config_hash': smithy_client_1.expectString,
11675
11719
  'created_at': _ => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
11676
11720
  'description': smithy_client_1.expectString,
@@ -11844,6 +11888,7 @@ function requireAws_restJson1 () {
11844
11888
  }
11845
11889
  const contents = (0, smithy_client_1.map)({
11846
11890
  $metadata: deserializeMetadata(output),
11891
+ [_lm_]: [() => void 0 !== output.headers[_lm], () => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.headers[_lm]))],
11847
11892
  });
11848
11893
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
11849
11894
  const doc = (0, smithy_client_1.take)(data, {
@@ -11861,6 +11906,7 @@ function requireAws_restJson1 () {
11861
11906
  }
11862
11907
  const contents = (0, smithy_client_1.map)({
11863
11908
  $metadata: deserializeMetadata(output),
11909
+ [_lm_]: [() => void 0 !== output.headers[_lm], () => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.headers[_lm]))],
11864
11910
  });
11865
11911
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
11866
11912
  const doc = (0, smithy_client_1.take)(data, {
@@ -12611,6 +12657,9 @@ function requireAws_restJson1 () {
12611
12657
  case "ResourceNotFound":
12612
12658
  case "io.superposition#ResourceNotFound":
12613
12659
  throw await de_ResourceNotFoundRes(parsedOutput);
12660
+ case "WebhookFailed":
12661
+ case "io.superposition#WebhookFailed":
12662
+ throw await de_WebhookFailedRes(parsedOutput);
12614
12663
  default:
12615
12664
  const parsedBody = parsedOutput.body;
12616
12665
  return throwDefaultError({
@@ -12645,6 +12694,19 @@ function requireAws_restJson1 () {
12645
12694
  });
12646
12695
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
12647
12696
  };
12697
+ const de_WebhookFailedRes = async (parsedOutput, context) => {
12698
+ const contents = (0, smithy_client_1.map)({});
12699
+ const data = parsedOutput.body;
12700
+ const doc = (0, smithy_client_1.take)(data, {
12701
+ 'data': _ => de_Document(_),
12702
+ });
12703
+ Object.assign(contents, doc);
12704
+ const exception = new models_0_1.WebhookFailed({
12705
+ $metadata: deserializeMetadata(parsedOutput),
12706
+ ...contents
12707
+ });
12708
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
12709
+ };
12648
12710
  const se_BulkOperationList = (input, context) => {
12649
12711
  return input.filter((e) => e != null).map(entry => {
12650
12712
  return se_ContextAction(entry);
@@ -12831,6 +12893,14 @@ function requireAws_restJson1 () {
12831
12893
  return acc;
12832
12894
  }, {});
12833
12895
  };
12896
+ const de_ConfigData = (output, context) => {
12897
+ return (0, smithy_client_1.take)(output, {
12898
+ 'contexts': (_) => de_ContextList(_),
12899
+ 'default_configs': (_) => de_Object(_),
12900
+ 'dimensions': (_) => de_DimensionData(_),
12901
+ 'overrides': (_) => de_OverridesMap(_),
12902
+ });
12903
+ };
12834
12904
  const de_ContextActionOut = (output, context) => {
12835
12905
  if ((0, smithy_client_1.expectString)(output.DELETE) !== undefined) {
12836
12906
  return { DELETE: (0, smithy_client_1.expectString)(output.DELETE) };
@@ -13037,7 +13107,7 @@ function requireAws_restJson1 () {
13037
13107
  };
13038
13108
  const de_ListVersionsMember = (output, context) => {
13039
13109
  return (0, smithy_client_1.take)(output, {
13040
- 'config': (_) => de_Document(_),
13110
+ 'config': (_) => de_ConfigData(_),
13041
13111
  'created_at': (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
13042
13112
  'description': smithy_client_1.expectString,
13043
13113
  'id': smithy_client_1.expectString,
@@ -13253,6 +13323,8 @@ function requireAws_restJson1 () {
13253
13323
  const _geo = "global_experiments_only";
13254
13324
  const _gt = "group_type";
13255
13325
  const _i = "identifier";
13326
+ const _ims = "if_modified_since";
13327
+ const _ims_ = "if-modified-since";
13256
13328
  const _lm = "last-modified";
13257
13329
  const _lm_ = "last_modified";
13258
13330
  const _lmb = "last_modified_by";
@@ -14146,38 +14218,6 @@ function requireGetConfigCommand () {
14146
14218
  return GetConfigCommand;
14147
14219
  }
14148
14220
 
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
14221
  var GetConfigJsonCommand = {};
14182
14222
 
14183
14223
  var hasRequiredGetConfigJsonCommand;
@@ -14402,6 +14442,38 @@ function requireGetExperimentCommand () {
14402
14442
  return GetExperimentCommand;
14403
14443
  }
14404
14444
 
14445
+ var GetExperimentConfigCommand = {};
14446
+
14447
+ var hasRequiredGetExperimentConfigCommand;
14448
+
14449
+ function requireGetExperimentConfigCommand () {
14450
+ if (hasRequiredGetExperimentConfigCommand) return GetExperimentConfigCommand;
14451
+ hasRequiredGetExperimentConfigCommand = 1;
14452
+ (function (exports$1) {
14453
+ Object.defineProperty(exports$1, "__esModule", { value: true });
14454
+ exports$1.GetExperimentConfigCommand = exports$1.$Command = void 0;
14455
+ const Aws_restJson1_1 = requireAws_restJson1();
14456
+ const middleware_serde_1 = require$$1;
14457
+ const smithy_client_1 = require$$86;
14458
+ Object.defineProperty(exports$1, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
14459
+ class GetExperimentConfigCommand extends smithy_client_1.Command.classBuilder()
14460
+ .m(function (Command, cs, config, o) {
14461
+ return [
14462
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
14463
+ ];
14464
+ })
14465
+ .s("Superposition", "GetExperimentConfig", {})
14466
+ .n("SuperpositionClient", "GetExperimentConfigCommand")
14467
+ .f(void 0, void 0)
14468
+ .ser(Aws_restJson1_1.se_GetExperimentConfigCommand)
14469
+ .de(Aws_restJson1_1.de_GetExperimentConfigCommand)
14470
+ .build() {
14471
+ }
14472
+ exports$1.GetExperimentConfigCommand = GetExperimentConfigCommand;
14473
+ } (GetExperimentConfigCommand));
14474
+ return GetExperimentConfigCommand;
14475
+ }
14476
+
14405
14477
  var GetExperimentGroupCommand = {};
14406
14478
 
14407
14479
  var hasRequiredGetExperimentGroupCommand;
@@ -16037,7 +16109,6 @@ function requireSuperposition () {
16037
16109
  const DeleteWebhookCommand_1 = requireDeleteWebhookCommand();
16038
16110
  const DiscardExperimentCommand_1 = requireDiscardExperimentCommand();
16039
16111
  const GetConfigCommand_1 = requireGetConfigCommand();
16040
- const GetConfigFastCommand_1 = requireGetConfigFastCommand();
16041
16112
  const GetConfigJsonCommand_1 = requireGetConfigJsonCommand();
16042
16113
  const GetConfigTomlCommand_1 = requireGetConfigTomlCommand();
16043
16114
  const GetContextCommand_1 = requireGetContextCommand();
@@ -16045,6 +16116,7 @@ function requireSuperposition () {
16045
16116
  const GetDefaultConfigCommand_1 = requireGetDefaultConfigCommand();
16046
16117
  const GetDimensionCommand_1 = requireGetDimensionCommand();
16047
16118
  const GetExperimentCommand_1 = requireGetExperimentCommand();
16119
+ const GetExperimentConfigCommand_1 = requireGetExperimentConfigCommand();
16048
16120
  const GetExperimentGroupCommand_1 = requireGetExperimentGroupCommand();
16049
16121
  const GetFunctionCommand_1 = requireGetFunctionCommand();
16050
16122
  const GetOrganisationCommand_1 = requireGetOrganisationCommand();
@@ -16124,7 +16196,6 @@ function requireSuperposition () {
16124
16196
  DeleteWebhookCommand: DeleteWebhookCommand_1.DeleteWebhookCommand,
16125
16197
  DiscardExperimentCommand: DiscardExperimentCommand_1.DiscardExperimentCommand,
16126
16198
  GetConfigCommand: GetConfigCommand_1.GetConfigCommand,
16127
- GetConfigFastCommand: GetConfigFastCommand_1.GetConfigFastCommand,
16128
16199
  GetConfigJsonCommand: GetConfigJsonCommand_1.GetConfigJsonCommand,
16129
16200
  GetConfigTomlCommand: GetConfigTomlCommand_1.GetConfigTomlCommand,
16130
16201
  GetContextCommand: GetContextCommand_1.GetContextCommand,
@@ -16132,6 +16203,7 @@ function requireSuperposition () {
16132
16203
  GetDefaultConfigCommand: GetDefaultConfigCommand_1.GetDefaultConfigCommand,
16133
16204
  GetDimensionCommand: GetDimensionCommand_1.GetDimensionCommand,
16134
16205
  GetExperimentCommand: GetExperimentCommand_1.GetExperimentCommand,
16206
+ GetExperimentConfigCommand: GetExperimentConfigCommand_1.GetExperimentConfigCommand,
16135
16207
  GetExperimentGroupCommand: GetExperimentGroupCommand_1.GetExperimentGroupCommand,
16136
16208
  GetFunctionCommand: GetFunctionCommand_1.GetFunctionCommand,
16137
16209
  GetOrganisationCommand: GetOrganisationCommand_1.GetOrganisationCommand,
@@ -16227,7 +16299,6 @@ function requireCommands () {
16227
16299
  tslib_1.__exportStar(requireDeleteWebhookCommand(), exports$1);
16228
16300
  tslib_1.__exportStar(requireDiscardExperimentCommand(), exports$1);
16229
16301
  tslib_1.__exportStar(requireGetConfigCommand(), exports$1);
16230
- tslib_1.__exportStar(requireGetConfigFastCommand(), exports$1);
16231
16302
  tslib_1.__exportStar(requireGetConfigJsonCommand(), exports$1);
16232
16303
  tslib_1.__exportStar(requireGetConfigTomlCommand(), exports$1);
16233
16304
  tslib_1.__exportStar(requireGetContextCommand(), exports$1);
@@ -16235,6 +16306,7 @@ function requireCommands () {
16235
16306
  tslib_1.__exportStar(requireGetDefaultConfigCommand(), exports$1);
16236
16307
  tslib_1.__exportStar(requireGetDimensionCommand(), exports$1);
16237
16308
  tslib_1.__exportStar(requireGetExperimentCommand(), exports$1);
16309
+ tslib_1.__exportStar(requireGetExperimentConfigCommand(), exports$1);
16238
16310
  tslib_1.__exportStar(requireGetExperimentGroupCommand(), exports$1);
16239
16311
  tslib_1.__exportStar(requireGetFunctionCommand(), exports$1);
16240
16312
  tslib_1.__exportStar(requireGetOrganisationCommand(), exports$1);