superposition-sdk 0.90.0__py3-none-any.whl → 0.91.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of superposition-sdk might be problematic. Click here for more details.

@@ -1649,6 +1649,89 @@ OBJECT = Schema.collection(
1649
1649
  }
1650
1650
  )
1651
1651
 
1652
+ DEPEDENDENCY_GRAPH = Schema.collection(
1653
+ id=ShapeID("io.superposition#DepedendencyGraph"),
1654
+ shape_type=ShapeType.MAP,
1655
+ members={
1656
+ "key": {
1657
+ "target": STRING,
1658
+ "index": 0,
1659
+ },
1660
+
1661
+ "value": {
1662
+ "target": STRING_LIST,
1663
+ "index": 1,
1664
+ },
1665
+
1666
+ }
1667
+ )
1668
+
1669
+ DIMENSION_TYPE = Schema.collection(
1670
+ id=ShapeID("io.superposition#DimensionType"),
1671
+ shape_type=ShapeType.UNION,
1672
+ members={
1673
+ "REGULAR": {
1674
+ "target": UNIT,
1675
+ "index": 0,
1676
+ },
1677
+
1678
+ "LOCAL_COHORT": {
1679
+ "target": STRING,
1680
+ "index": 1,
1681
+ },
1682
+
1683
+ "REMOTE_COHORT": {
1684
+ "target": STRING,
1685
+ "index": 2,
1686
+ },
1687
+
1688
+ }
1689
+ )
1690
+
1691
+ DIMENSION_INFO = Schema.collection(
1692
+ id=ShapeID("io.superposition#DimensionInfo"),
1693
+
1694
+ members={
1695
+ "schema": {
1696
+ "target": OBJECT,
1697
+ "index": 0,
1698
+ },
1699
+
1700
+ "position": {
1701
+ "target": INTEGER,
1702
+ "index": 1,
1703
+ },
1704
+
1705
+ "dimension_type": {
1706
+ "target": DIMENSION_TYPE,
1707
+ "index": 2,
1708
+ },
1709
+
1710
+ "dependency_graph": {
1711
+ "target": DEPEDENDENCY_GRAPH,
1712
+ "index": 3,
1713
+ },
1714
+
1715
+ }
1716
+ )
1717
+
1718
+ DIMENSION_DATA = Schema.collection(
1719
+ id=ShapeID("io.superposition#DimensionData"),
1720
+ shape_type=ShapeType.MAP,
1721
+ members={
1722
+ "key": {
1723
+ "target": STRING,
1724
+ "index": 0,
1725
+ },
1726
+
1727
+ "value": {
1728
+ "target": DIMENSION_INFO,
1729
+ "index": 1,
1730
+ },
1731
+
1732
+ }
1733
+ )
1734
+
1652
1735
  OVERRIDES_MAP = Schema.collection(
1653
1736
  id=ShapeID("io.superposition#OverridesMap"),
1654
1737
  shape_type=ShapeType.MAP,
@@ -1701,9 +1784,18 @@ GET_CONFIG_OUTPUT = Schema.collection(
1701
1784
  ],
1702
1785
  },
1703
1786
 
1787
+ "dimensions": {
1788
+ "target": DIMENSION_DATA,
1789
+ "index": 3,
1790
+ "traits": [
1791
+ Trait.new(id=ShapeID("smithy.api#notProperty")),
1792
+
1793
+ ],
1794
+ },
1795
+
1704
1796
  "version": {
1705
1797
  "target": STRING,
1706
- "index": 3,
1798
+ "index": 4,
1707
1799
  "traits": [
1708
1800
  Trait.new(id=ShapeID("smithy.api#httpHeader"), value="x-config-version"),
1709
1801
 
@@ -1712,7 +1804,7 @@ GET_CONFIG_OUTPUT = Schema.collection(
1712
1804
 
1713
1805
  "last_modified": {
1714
1806
  "target": DATE_TIME,
1715
- "index": 4,
1807
+ "index": 5,
1716
1808
  "traits": [
1717
1809
  Trait.new(id=ShapeID("smithy.api#httpHeader"), value="last-modified"),
1718
1810
 
@@ -1721,7 +1813,7 @@ GET_CONFIG_OUTPUT = Schema.collection(
1721
1813
 
1722
1814
  "audit_id": {
1723
1815
  "target": STRING,
1724
- "index": 5,
1816
+ "index": 6,
1725
1817
  "traits": [
1726
1818
  Trait.new(id=ShapeID("smithy.api#httpHeader"), value="x-audit-id"),
1727
1819
  Trait.new(id=ShapeID("smithy.api#notProperty")),
@@ -3388,7 +3480,7 @@ CREATE_DEFAULT_CONFIG_INPUT = Schema.collection(
3388
3480
  },
3389
3481
 
3390
3482
  "schema": {
3391
- "target": DOCUMENT,
3483
+ "target": OBJECT,
3392
3484
  "index": 2,
3393
3485
  "traits": [
3394
3486
  Trait.new(id=ShapeID("smithy.api#required")),
@@ -3476,7 +3568,7 @@ CREATE_DEFAULT_CONFIG_OUTPUT = Schema.collection(
3476
3568
  },
3477
3569
 
3478
3570
  "schema": {
3479
- "target": DOCUMENT,
3571
+ "target": OBJECT,
3480
3572
  "index": 2,
3481
3573
  "traits": [
3482
3574
  Trait.new(id=ShapeID("smithy.api#required")),
@@ -3564,18 +3656,6 @@ CREATE_DEFAULT_CONFIG = Schema(
3564
3656
 
3565
3657
  )
3566
3658
 
3567
- DEPENDENCIES = Schema.collection(
3568
- id=ShapeID("io.superposition#Dependencies"),
3569
- shape_type=ShapeType.LIST,
3570
- members={
3571
- "member": {
3572
- "target": STRING,
3573
- "index": 0,
3574
- },
3575
-
3576
- }
3577
- )
3578
-
3579
3659
  CREATE_DIMENSION_INPUT = Schema.collection(
3580
3660
  id=ShapeID("io.superposition#CreateDimensionInput"),
3581
3661
 
@@ -3624,7 +3704,7 @@ CREATE_DIMENSION_INPUT = Schema.collection(
3624
3704
  },
3625
3705
 
3626
3706
  "schema": {
3627
- "target": DOCUMENT,
3707
+ "target": OBJECT,
3628
3708
  "index": 4,
3629
3709
  "traits": [
3630
3710
  Trait.new(id=ShapeID("smithy.api#required")),
@@ -3637,14 +3717,9 @@ CREATE_DIMENSION_INPUT = Schema.collection(
3637
3717
  "index": 5,
3638
3718
  },
3639
3719
 
3640
- "dependencies": {
3641
- "target": DEPENDENCIES,
3642
- "index": 6,
3643
- },
3644
-
3645
3720
  "description": {
3646
3721
  "target": STRING,
3647
- "index": 7,
3722
+ "index": 6,
3648
3723
  "traits": [
3649
3724
  Trait.new(id=ShapeID("smithy.api#required")),
3650
3725
 
@@ -3653,28 +3728,21 @@ CREATE_DIMENSION_INPUT = Schema.collection(
3653
3728
 
3654
3729
  "change_reason": {
3655
3730
  "target": STRING,
3656
- "index": 8,
3731
+ "index": 7,
3657
3732
  "traits": [
3658
3733
  Trait.new(id=ShapeID("smithy.api#required")),
3659
3734
 
3660
3735
  ],
3661
3736
  },
3662
3737
 
3663
- "autocomplete_function_name": {
3664
- "target": STRING,
3665
- "index": 9,
3738
+ "dimension_type": {
3739
+ "target": DIMENSION_TYPE,
3740
+ "index": 8,
3666
3741
  },
3667
3742
 
3668
- }
3669
- )
3670
-
3671
- DEPENDENTS = Schema.collection(
3672
- id=ShapeID("io.superposition#Dependents"),
3673
- shape_type=ShapeType.LIST,
3674
- members={
3675
- "member": {
3743
+ "autocomplete_function_name": {
3676
3744
  "target": STRING,
3677
- "index": 0,
3745
+ "index": 9,
3678
3746
  },
3679
3747
 
3680
3748
  }
@@ -3708,7 +3776,7 @@ CREATE_DIMENSION_OUTPUT = Schema.collection(
3708
3776
  },
3709
3777
 
3710
3778
  "schema": {
3711
- "target": DOCUMENT,
3779
+ "target": OBJECT,
3712
3780
  "index": 2,
3713
3781
  "traits": [
3714
3782
  Trait.new(id=ShapeID("smithy.api#required")),
@@ -3775,8 +3843,8 @@ CREATE_DIMENSION_OUTPUT = Schema.collection(
3775
3843
  ],
3776
3844
  },
3777
3845
 
3778
- "dependencies": {
3779
- "target": DEPENDENCIES,
3846
+ "dependency_graph": {
3847
+ "target": DEPEDENDENCY_GRAPH,
3780
3848
  "index": 10,
3781
3849
  "traits": [
3782
3850
  Trait.new(id=ShapeID("smithy.api#required")),
@@ -3784,8 +3852,8 @@ CREATE_DIMENSION_OUTPUT = Schema.collection(
3784
3852
  ],
3785
3853
  },
3786
3854
 
3787
- "dependents": {
3788
- "target": DEPENDENTS,
3855
+ "dimension_type": {
3856
+ "target": DIMENSION_TYPE,
3789
3857
  "index": 11,
3790
3858
  "traits": [
3791
3859
  Trait.new(id=ShapeID("smithy.api#required")),
@@ -3793,23 +3861,14 @@ CREATE_DIMENSION_OUTPUT = Schema.collection(
3793
3861
  ],
3794
3862
  },
3795
3863
 
3796
- "dependency_graph": {
3797
- "target": OBJECT,
3798
- "index": 12,
3799
- "traits": [
3800
- Trait.new(id=ShapeID("smithy.api#required")),
3801
-
3802
- ],
3803
- },
3804
-
3805
3864
  "autocomplete_function_name": {
3806
3865
  "target": STRING,
3807
- "index": 13,
3866
+ "index": 12,
3808
3867
  },
3809
3868
 
3810
3869
  "mandatory": {
3811
3870
  "target": BOOLEAN,
3812
- "index": 14,
3871
+ "index": 13,
3813
3872
  "traits": [
3814
3873
  Trait.new(id=ShapeID("smithy.api#notProperty")),
3815
3874
 
@@ -4838,7 +4897,7 @@ CREATE_TYPE_TEMPLATES_INPUT = Schema.collection(
4838
4897
  },
4839
4898
 
4840
4899
  "type_schema": {
4841
- "target": DOCUMENT,
4900
+ "target": OBJECT,
4842
4901
  "index": 3,
4843
4902
  "traits": [
4844
4903
  Trait.new(id=ShapeID("smithy.api#required")),
@@ -4886,7 +4945,7 @@ CREATE_TYPE_TEMPLATES_OUTPUT = Schema.collection(
4886
4945
  },
4887
4946
 
4888
4947
  "type_schema": {
4889
- "target": DOCUMENT,
4948
+ "target": OBJECT,
4890
4949
  "index": 1,
4891
4950
  "traits": [
4892
4951
  Trait.new(id=ShapeID("smithy.api#required")),
@@ -5731,7 +5790,7 @@ DEFAULT_CONFIG_FULL = Schema.collection(
5731
5790
  },
5732
5791
 
5733
5792
  "schema": {
5734
- "target": DOCUMENT,
5793
+ "target": OBJECT,
5735
5794
  "index": 2,
5736
5795
  "traits": [
5737
5796
  Trait.new(id=ShapeID("smithy.api#required")),
@@ -5912,7 +5971,7 @@ UPDATE_DEFAULT_CONFIG_INPUT = Schema.collection(
5912
5971
  },
5913
5972
 
5914
5973
  "schema": {
5915
- "target": DOCUMENT,
5974
+ "target": OBJECT,
5916
5975
  "index": 5,
5917
5976
  },
5918
5977
 
@@ -5962,7 +6021,7 @@ UPDATE_DEFAULT_CONFIG_OUTPUT = Schema.collection(
5962
6021
  },
5963
6022
 
5964
6023
  "schema": {
5965
- "target": DOCUMENT,
6024
+ "target": OBJECT,
5966
6025
  "index": 2,
5967
6026
  "traits": [
5968
6027
  Trait.new(id=ShapeID("smithy.api#required")),
@@ -6453,7 +6512,7 @@ DELETE_TYPE_TEMPLATES_OUTPUT = Schema.collection(
6453
6512
  },
6454
6513
 
6455
6514
  "type_schema": {
6456
- "target": DOCUMENT,
6515
+ "target": OBJECT,
6457
6516
  "index": 1,
6458
6517
  "traits": [
6459
6518
  Trait.new(id=ShapeID("smithy.api#required")),
@@ -6613,7 +6672,7 @@ GET_DIMENSION_OUTPUT = Schema.collection(
6613
6672
  },
6614
6673
 
6615
6674
  "schema": {
6616
- "target": DOCUMENT,
6675
+ "target": OBJECT,
6617
6676
  "index": 2,
6618
6677
  "traits": [
6619
6678
  Trait.new(id=ShapeID("smithy.api#required")),
@@ -6680,8 +6739,8 @@ GET_DIMENSION_OUTPUT = Schema.collection(
6680
6739
  ],
6681
6740
  },
6682
6741
 
6683
- "dependencies": {
6684
- "target": DEPENDENCIES,
6742
+ "dependency_graph": {
6743
+ "target": DEPEDENDENCY_GRAPH,
6685
6744
  "index": 10,
6686
6745
  "traits": [
6687
6746
  Trait.new(id=ShapeID("smithy.api#required")),
@@ -6689,8 +6748,8 @@ GET_DIMENSION_OUTPUT = Schema.collection(
6689
6748
  ],
6690
6749
  },
6691
6750
 
6692
- "dependents": {
6693
- "target": DEPENDENTS,
6751
+ "dimension_type": {
6752
+ "target": DIMENSION_TYPE,
6694
6753
  "index": 11,
6695
6754
  "traits": [
6696
6755
  Trait.new(id=ShapeID("smithy.api#required")),
@@ -6698,23 +6757,14 @@ GET_DIMENSION_OUTPUT = Schema.collection(
6698
6757
  ],
6699
6758
  },
6700
6759
 
6701
- "dependency_graph": {
6702
- "target": OBJECT,
6703
- "index": 12,
6704
- "traits": [
6705
- Trait.new(id=ShapeID("smithy.api#required")),
6706
-
6707
- ],
6708
- },
6709
-
6710
6760
  "autocomplete_function_name": {
6711
6761
  "target": STRING,
6712
- "index": 13,
6762
+ "index": 12,
6713
6763
  },
6714
6764
 
6715
6765
  "mandatory": {
6716
6766
  "target": BOOLEAN,
6717
- "index": 14,
6767
+ "index": 13,
6718
6768
  "traits": [
6719
6769
  Trait.new(id=ShapeID("smithy.api#notProperty")),
6720
6770
 
@@ -6819,7 +6869,7 @@ DIMENSION_EXT = Schema.collection(
6819
6869
  },
6820
6870
 
6821
6871
  "schema": {
6822
- "target": DOCUMENT,
6872
+ "target": OBJECT,
6823
6873
  "index": 2,
6824
6874
  "traits": [
6825
6875
  Trait.new(id=ShapeID("smithy.api#required")),
@@ -6886,8 +6936,8 @@ DIMENSION_EXT = Schema.collection(
6886
6936
  ],
6887
6937
  },
6888
6938
 
6889
- "dependencies": {
6890
- "target": DEPENDENCIES,
6939
+ "dependency_graph": {
6940
+ "target": DEPEDENDENCY_GRAPH,
6891
6941
  "index": 10,
6892
6942
  "traits": [
6893
6943
  Trait.new(id=ShapeID("smithy.api#required")),
@@ -6895,8 +6945,8 @@ DIMENSION_EXT = Schema.collection(
6895
6945
  ],
6896
6946
  },
6897
6947
 
6898
- "dependents": {
6899
- "target": DEPENDENTS,
6948
+ "dimension_type": {
6949
+ "target": DIMENSION_TYPE,
6900
6950
  "index": 11,
6901
6951
  "traits": [
6902
6952
  Trait.new(id=ShapeID("smithy.api#required")),
@@ -6904,23 +6954,14 @@ DIMENSION_EXT = Schema.collection(
6904
6954
  ],
6905
6955
  },
6906
6956
 
6907
- "dependency_graph": {
6908
- "target": OBJECT,
6909
- "index": 12,
6910
- "traits": [
6911
- Trait.new(id=ShapeID("smithy.api#required")),
6912
-
6913
- ],
6914
- },
6915
-
6916
6957
  "autocomplete_function_name": {
6917
6958
  "target": STRING,
6918
- "index": 13,
6959
+ "index": 12,
6919
6960
  },
6920
6961
 
6921
6962
  "mandatory": {
6922
6963
  "target": BOOLEAN,
6923
- "index": 14,
6964
+ "index": 13,
6924
6965
  "traits": [
6925
6966
  Trait.new(id=ShapeID("smithy.api#notProperty")),
6926
6967
 
@@ -7022,7 +7063,7 @@ UPDATE_DIMENSION_INPUT = Schema.collection(
7022
7063
  },
7023
7064
 
7024
7065
  "schema": {
7025
- "target": DOCUMENT,
7066
+ "target": OBJECT,
7026
7067
  "index": 3,
7027
7068
  },
7028
7069
 
@@ -7041,14 +7082,9 @@ UPDATE_DIMENSION_INPUT = Schema.collection(
7041
7082
  "index": 6,
7042
7083
  },
7043
7084
 
7044
- "dependencies": {
7045
- "target": DEPENDENCIES,
7046
- "index": 7,
7047
- },
7048
-
7049
7085
  "change_reason": {
7050
7086
  "target": STRING,
7051
- "index": 8,
7087
+ "index": 7,
7052
7088
  "traits": [
7053
7089
  Trait.new(id=ShapeID("smithy.api#required")),
7054
7090
 
@@ -7057,7 +7093,7 @@ UPDATE_DIMENSION_INPUT = Schema.collection(
7057
7093
 
7058
7094
  "autocomplete_function_name": {
7059
7095
  "target": STRING,
7060
- "index": 9,
7096
+ "index": 8,
7061
7097
  },
7062
7098
 
7063
7099
  }
@@ -7091,7 +7127,7 @@ UPDATE_DIMENSION_OUTPUT = Schema.collection(
7091
7127
  },
7092
7128
 
7093
7129
  "schema": {
7094
- "target": DOCUMENT,
7130
+ "target": OBJECT,
7095
7131
  "index": 2,
7096
7132
  "traits": [
7097
7133
  Trait.new(id=ShapeID("smithy.api#required")),
@@ -7158,8 +7194,8 @@ UPDATE_DIMENSION_OUTPUT = Schema.collection(
7158
7194
  ],
7159
7195
  },
7160
7196
 
7161
- "dependencies": {
7162
- "target": DEPENDENCIES,
7197
+ "dependency_graph": {
7198
+ "target": DEPEDENDENCY_GRAPH,
7163
7199
  "index": 10,
7164
7200
  "traits": [
7165
7201
  Trait.new(id=ShapeID("smithy.api#required")),
@@ -7167,8 +7203,8 @@ UPDATE_DIMENSION_OUTPUT = Schema.collection(
7167
7203
  ],
7168
7204
  },
7169
7205
 
7170
- "dependents": {
7171
- "target": DEPENDENTS,
7206
+ "dimension_type": {
7207
+ "target": DIMENSION_TYPE,
7172
7208
  "index": 11,
7173
7209
  "traits": [
7174
7210
  Trait.new(id=ShapeID("smithy.api#required")),
@@ -7176,23 +7212,14 @@ UPDATE_DIMENSION_OUTPUT = Schema.collection(
7176
7212
  ],
7177
7213
  },
7178
7214
 
7179
- "dependency_graph": {
7180
- "target": OBJECT,
7181
- "index": 12,
7182
- "traits": [
7183
- Trait.new(id=ShapeID("smithy.api#required")),
7184
-
7185
- ],
7186
- },
7187
-
7188
7215
  "autocomplete_function_name": {
7189
7216
  "target": STRING,
7190
- "index": 13,
7217
+ "index": 12,
7191
7218
  },
7192
7219
 
7193
7220
  "mandatory": {
7194
7221
  "target": BOOLEAN,
7195
- "index": 14,
7222
+ "index": 13,
7196
7223
  "traits": [
7197
7224
  Trait.new(id=ShapeID("smithy.api#notProperty")),
7198
7225
 
@@ -11306,7 +11333,7 @@ TYPE_TEMPLATES_RESPONSE = Schema.collection(
11306
11333
  },
11307
11334
 
11308
11335
  "type_schema": {
11309
- "target": DOCUMENT,
11336
+ "target": OBJECT,
11310
11337
  "index": 1,
11311
11338
  "traits": [
11312
11339
  Trait.new(id=ShapeID("smithy.api#required")),
@@ -12720,7 +12747,7 @@ UPDATE_TYPE_TEMPLATES_INPUT = Schema.collection(
12720
12747
  },
12721
12748
 
12722
12749
  "type_schema": {
12723
- "target": DOCUMENT,
12750
+ "target": OBJECT,
12724
12751
  "index": 3,
12725
12752
  "traits": [
12726
12753
  Trait.new(id=ShapeID("smithy.api#required")),
@@ -12764,7 +12791,7 @@ UPDATE_TYPE_TEMPLATES_OUTPUT = Schema.collection(
12764
12791
  },
12765
12792
 
12766
12793
  "type_schema": {
12767
- "target": DOCUMENT,
12794
+ "target": OBJECT,
12768
12795
  "index": 1,
12769
12796
  "traits": [
12770
12797
  Trait.new(id=ShapeID("smithy.api#required")),
@@ -1060,7 +1060,7 @@ class Superposition:
1060
1060
  async def get_dimension(self, input: GetDimensionInput, plugins: list[Plugin] | None = None) -> GetDimensionOutput:
1061
1061
  """
1062
1062
  Retrieves detailed information about a specific dimension, including its schema,
1063
- dependencies, and configuration metadata.
1063
+ cohort dependency graph, and configuration metadata.
1064
1064
 
1065
1065
  :param input: The operation's input.
1066
1066