@flowio/api-internal-mock-generator 5.31.8 → 5.31.9

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.
@@ -10,7 +10,7 @@
10
10
  "key": "api-internal"
11
11
  },
12
12
  "namespace": "io.flow.internal.v0",
13
- "version": "0.15.89",
13
+ "version": "0.15.91",
14
14
  "info": {
15
15
  "license": {
16
16
  "name": "MIT",
@@ -616,7 +616,7 @@
616
616
  "application": {
617
617
  "key": "pricing-indicator-internal-event"
618
618
  },
619
- "version": "0.15.89",
619
+ "version": "0.15.91",
620
620
  "enums": ["pricing_indicator_status", "service_name"],
621
621
  "interfaces": [],
622
622
  "unions": ["pricing_indicator_event"],
@@ -3316,10 +3316,10 @@
3316
3316
  "name": "ratecard_lane_aggregate_deleted",
3317
3317
  "attributes": []
3318
3318
  }, {
3319
- "name": "product_restriction_upserted",
3319
+ "name": "restriction_item_upserted",
3320
3320
  "attributes": []
3321
3321
  }, {
3322
- "name": "product_restriction_deleted",
3322
+ "name": "restriction_item_deleted",
3323
3323
  "attributes": []
3324
3324
  }, {
3325
3325
  "name": "shopify_shop_upserted",
@@ -9294,13 +9294,13 @@
9294
9294
  "attributes": [],
9295
9295
  "discriminator_value": "ratecard_lane_aggregate_deleted"
9296
9296
  }, {
9297
- "type": "product_restriction_upserted",
9297
+ "type": "restriction_item_upserted",
9298
9298
  "attributes": [],
9299
- "discriminator_value": "product_restriction_upserted"
9299
+ "discriminator_value": "restriction_item_upserted"
9300
9300
  }, {
9301
- "type": "product_restriction_deleted",
9301
+ "type": "restriction_item_deleted",
9302
9302
  "attributes": [],
9303
- "discriminator_value": "product_restriction_deleted"
9303
+ "discriminator_value": "restriction_item_deleted"
9304
9304
  }, {
9305
9305
  "type": "shopify_shop_upserted",
9306
9306
  "attributes": [],
@@ -46000,154 +46000,6 @@
46000
46000
  }],
46001
46001
  "attributes": [],
46002
46002
  "interfaces": []
46003
- }, {
46004
- "name": "product_restriction",
46005
- "plural": "product_restrictions",
46006
- "fields": [{
46007
- "name": "id",
46008
- "type": "string",
46009
- "required": true,
46010
- "attributes": [],
46011
- "annotations": [],
46012
- "description": "Globally unique identifier"
46013
- }, {
46014
- "name": "organization_id",
46015
- "type": "string",
46016
- "required": true,
46017
- "attributes": [],
46018
- "annotations": []
46019
- }, {
46020
- "name": "product_id",
46021
- "type": "string",
46022
- "required": true,
46023
- "attributes": [],
46024
- "annotations": []
46025
- }, {
46026
- "name": "restriction_decisions",
46027
- "type": "[product_restriction_decision]",
46028
- "required": true,
46029
- "attributes": [],
46030
- "annotations": [],
46031
- "description": "Zero or more restrictions",
46032
- "minimum": 0
46033
- }],
46034
- "attributes": [],
46035
- "interfaces": [],
46036
- "deprecation": {
46037
- "description": "To be removed"
46038
- }
46039
- }, {
46040
- "name": "product_restriction_decision",
46041
- "plural": "product_restriction_decisions",
46042
- "fields": [{
46043
- "name": "rule_id",
46044
- "type": "string",
46045
- "required": true,
46046
- "attributes": [],
46047
- "annotations": []
46048
- }, {
46049
- "name": "status",
46050
- "type": "restriction_status",
46051
- "required": true,
46052
- "attributes": [],
46053
- "annotations": []
46054
- }, {
46055
- "name": "matching_positive_keywords",
46056
- "type": "[string]",
46057
- "required": true,
46058
- "attributes": [],
46059
- "annotations": []
46060
- }, {
46061
- "name": "matching_negative_keywords",
46062
- "type": "[string]",
46063
- "required": true,
46064
- "attributes": [],
46065
- "annotations": []
46066
- }],
46067
- "attributes": [],
46068
- "interfaces": []
46069
- }, {
46070
- "name": "product_restriction_decision_form",
46071
- "plural": "product_restriction_decision_forms",
46072
- "fields": [{
46073
- "name": "rule_id",
46074
- "type": "string",
46075
- "required": true,
46076
- "attributes": [],
46077
- "annotations": []
46078
- }, {
46079
- "name": "decision",
46080
- "type": "restriction_decision",
46081
- "required": true,
46082
- "attributes": [],
46083
- "annotations": []
46084
- }],
46085
- "attributes": [],
46086
- "interfaces": []
46087
- }, {
46088
- "name": "product_restriction_deleted",
46089
- "plural": "product_restriction_deleteds",
46090
- "fields": [{
46091
- "name": "event_id",
46092
- "type": "string",
46093
- "required": true,
46094
- "attributes": [],
46095
- "annotations": []
46096
- }, {
46097
- "name": "timestamp",
46098
- "type": "date-time-iso8601",
46099
- "required": true,
46100
- "attributes": [],
46101
- "annotations": [],
46102
- "description": "The date/time of the request"
46103
- }, {
46104
- "name": "organization",
46105
- "type": "string",
46106
- "required": true,
46107
- "attributes": [],
46108
- "annotations": [],
46109
- "description": "Refers to your organization's account identifier"
46110
- }, {
46111
- "name": "product_restriction",
46112
- "type": "product_restriction",
46113
- "required": true,
46114
- "attributes": [],
46115
- "annotations": []
46116
- }],
46117
- "attributes": [],
46118
- "interfaces": []
46119
- }, {
46120
- "name": "product_restriction_upserted",
46121
- "plural": "product_restriction_upserteds",
46122
- "fields": [{
46123
- "name": "event_id",
46124
- "type": "string",
46125
- "required": true,
46126
- "attributes": [],
46127
- "annotations": []
46128
- }, {
46129
- "name": "timestamp",
46130
- "type": "date-time-iso8601",
46131
- "required": true,
46132
- "attributes": [],
46133
- "annotations": [],
46134
- "description": "The date/time of the request"
46135
- }, {
46136
- "name": "organization",
46137
- "type": "string",
46138
- "required": true,
46139
- "attributes": [],
46140
- "annotations": [],
46141
- "description": "Refers to your organization's account identifier"
46142
- }, {
46143
- "name": "product_restriction",
46144
- "type": "product_restriction",
46145
- "required": true,
46146
- "attributes": [],
46147
- "annotations": []
46148
- }],
46149
- "attributes": [],
46150
- "interfaces": []
46151
46003
  }, {
46152
46004
  "name": "quote_request",
46153
46005
  "plural": "quote_requests",
@@ -47740,6 +47592,20 @@
47740
47592
  "attributes": [],
47741
47593
  "annotations": [],
47742
47594
  "description": "The product name"
47595
+ }, {
47596
+ "name": "description",
47597
+ "type": "string",
47598
+ "required": true,
47599
+ "attributes": [],
47600
+ "annotations": [],
47601
+ "description": "The complete raw product description including formatting tags"
47602
+ }, {
47603
+ "name": "categories",
47604
+ "type": "[string]",
47605
+ "required": true,
47606
+ "attributes": [],
47607
+ "annotations": [],
47608
+ "default": "[]"
47743
47609
  }, {
47744
47610
  "name": "images",
47745
47611
  "type": "[io.flow.catalog.v0.models.image]",
@@ -47770,6 +47636,38 @@
47770
47636
  }],
47771
47637
  "attributes": [],
47772
47638
  "interfaces": []
47639
+ }, {
47640
+ "name": "restriction_item_deleted",
47641
+ "plural": "restriction_item_deleteds",
47642
+ "fields": [{
47643
+ "name": "event_id",
47644
+ "type": "string",
47645
+ "required": true,
47646
+ "attributes": [],
47647
+ "annotations": []
47648
+ }, {
47649
+ "name": "timestamp",
47650
+ "type": "date-time-iso8601",
47651
+ "required": true,
47652
+ "attributes": [],
47653
+ "annotations": [],
47654
+ "description": "The date/time of the request"
47655
+ }, {
47656
+ "name": "organization",
47657
+ "type": "string",
47658
+ "required": true,
47659
+ "attributes": [],
47660
+ "annotations": [],
47661
+ "description": "Refers to your organization's account identifier"
47662
+ }, {
47663
+ "name": "restriction_item",
47664
+ "type": "restriction_item",
47665
+ "required": true,
47666
+ "attributes": [],
47667
+ "annotations": []
47668
+ }],
47669
+ "attributes": [],
47670
+ "interfaces": []
47773
47671
  }, {
47774
47672
  "name": "restriction_item_review",
47775
47673
  "plural": "restriction_item_reviews",
@@ -47820,6 +47718,38 @@
47820
47718
  }],
47821
47719
  "attributes": [],
47822
47720
  "interfaces": []
47721
+ }, {
47722
+ "name": "restriction_item_upserted",
47723
+ "plural": "restriction_item_upserteds",
47724
+ "fields": [{
47725
+ "name": "event_id",
47726
+ "type": "string",
47727
+ "required": true,
47728
+ "attributes": [],
47729
+ "annotations": []
47730
+ }, {
47731
+ "name": "timestamp",
47732
+ "type": "date-time-iso8601",
47733
+ "required": true,
47734
+ "attributes": [],
47735
+ "annotations": [],
47736
+ "description": "The date/time of the request"
47737
+ }, {
47738
+ "name": "organization",
47739
+ "type": "string",
47740
+ "required": true,
47741
+ "attributes": [],
47742
+ "annotations": [],
47743
+ "description": "Refers to your organization's account identifier"
47744
+ }, {
47745
+ "name": "restriction_item",
47746
+ "type": "restriction_item",
47747
+ "required": true,
47748
+ "attributes": [],
47749
+ "annotations": []
47750
+ }],
47751
+ "attributes": [],
47752
+ "interfaces": []
47823
47753
  }, {
47824
47754
  "name": "restriction_keywords",
47825
47755
  "plural": "restriction_keywordses",
@@ -47860,75 +47790,6 @@
47860
47790
  }],
47861
47791
  "attributes": [],
47862
47792
  "interfaces": []
47863
- }, {
47864
- "name": "restriction_product",
47865
- "plural": "restriction_products",
47866
- "fields": [{
47867
- "name": "organization_id",
47868
- "type": "string",
47869
- "required": true,
47870
- "attributes": [],
47871
- "annotations": []
47872
- }, {
47873
- "name": "product_id",
47874
- "type": "string",
47875
- "required": true,
47876
- "attributes": [],
47877
- "annotations": []
47878
- }, {
47879
- "name": "name",
47880
- "type": "string",
47881
- "required": true,
47882
- "attributes": [],
47883
- "annotations": [],
47884
- "description": "The product name"
47885
- }, {
47886
- "name": "description",
47887
- "type": "string",
47888
- "required": true,
47889
- "attributes": [],
47890
- "annotations": [],
47891
- "description": "The complete raw product description including formatting tags"
47892
- }, {
47893
- "name": "categories",
47894
- "type": "[string]",
47895
- "required": true,
47896
- "attributes": [],
47897
- "annotations": [],
47898
- "default": "[]"
47899
- }, {
47900
- "name": "images",
47901
- "type": "[io.flow.catalog.v0.models.image]",
47902
- "required": true,
47903
- "attributes": [],
47904
- "annotations": [],
47905
- "default": "[]"
47906
- }, {
47907
- "name": "thumbnails",
47908
- "type": "[io.flow.catalog.v0.models.image]",
47909
- "required": true,
47910
- "attributes": [],
47911
- "annotations": [],
47912
- "default": "[]"
47913
- }, {
47914
- "name": "updated_at",
47915
- "type": "date-time-iso8601",
47916
- "required": true,
47917
- "attributes": [],
47918
- "annotations": [],
47919
- "description": "Date the product was last updated in the catalog"
47920
- }, {
47921
- "name": "restrictions",
47922
- "type": "[restriction_item_review]",
47923
- "required": true,
47924
- "attributes": [],
47925
- "annotations": []
47926
- }],
47927
- "attributes": [],
47928
- "interfaces": [],
47929
- "deprecation": {
47930
- "description": "To be removed"
47931
- }
47932
47793
  }, {
47933
47794
  "name": "restriction_rule",
47934
47795
  "plural": "restriction_rules",
@@ -80593,249 +80454,6 @@
80593
80454
  }],
80594
80455
  "path": "/product_classifications",
80595
80456
  "description": "Label based product classification endpoints"
80596
- }, {
80597
- "type": "product_restriction",
80598
- "plural": "product_restrictions",
80599
- "operations": [{
80600
- "method": "GET",
80601
- "path": "/internal/product/restrictions",
80602
- "parameters": [{
80603
- "name": "id",
80604
- "type": "[string]",
80605
- "location": "Query",
80606
- "required": false,
80607
- "description": "Filter by one or more IDs of this resource",
80608
- "maximum": 100
80609
- }, {
80610
- "name": "organization_id",
80611
- "type": "string",
80612
- "location": "Query",
80613
- "required": false
80614
- }, {
80615
- "name": "product_id",
80616
- "type": "string",
80617
- "location": "Query",
80618
- "required": false
80619
- }, {
80620
- "name": "restriction_name",
80621
- "type": "string",
80622
- "location": "Query",
80623
- "required": false
80624
- }, {
80625
- "name": "limit",
80626
- "type": "long",
80627
- "location": "Query",
80628
- "required": true,
80629
- "description": "The maximum number of results to return",
80630
- "default": "25",
80631
- "minimum": 1,
80632
- "maximum": 100
80633
- }, {
80634
- "name": "offset",
80635
- "type": "long",
80636
- "location": "Query",
80637
- "required": true,
80638
- "description": "The number of results to skip before returning results",
80639
- "default": "0",
80640
- "minimum": 0
80641
- }, {
80642
- "name": "sort",
80643
- "type": "string",
80644
- "location": "Query",
80645
- "required": true,
80646
- "default": "-created_at"
80647
- }],
80648
- "responses": [{
80649
- "code": {
80650
- "integer": {
80651
- "value": 200
80652
- }
80653
- },
80654
- "type": "[product_restriction]",
80655
- "description": "Successful response",
80656
- "attributes": []
80657
- }, {
80658
- "code": {
80659
- "integer": {
80660
- "value": 401
80661
- }
80662
- },
80663
- "type": "unit",
80664
- "description": "Authorization failed",
80665
- "attributes": []
80666
- }, {
80667
- "code": {
80668
- "integer": {
80669
- "value": 422
80670
- }
80671
- },
80672
- "type": "io.flow.error.v0.models.generic_error",
80673
- "description": "One or more errors were found with the data sent in the request. The body of the response contains specific details on what data failed validation.",
80674
- "attributes": []
80675
- }],
80676
- "attributes": [{
80677
- "name": "sort",
80678
- "value": {
80679
- "values": [{
80680
- "value": "status"
80681
- }, {
80682
- "value": "created_at"
80683
- }]
80684
- }
80685
- }],
80686
- "description": "Returns the list of product restrictions",
80687
- "deprecation": {
80688
- "description": "To be removed"
80689
- }
80690
- }, {
80691
- "method": "POST",
80692
- "path": "/internal/product/restrictions",
80693
- "parameters": [],
80694
- "responses": [{
80695
- "code": {
80696
- "integer": {
80697
- "value": 201
80698
- }
80699
- },
80700
- "type": "product_restriction",
80701
- "description": "Operation succeeded and the resource was created",
80702
- "attributes": []
80703
- }, {
80704
- "code": {
80705
- "integer": {
80706
- "value": 401
80707
- }
80708
- },
80709
- "type": "unit",
80710
- "description": "Authorization failed",
80711
- "attributes": []
80712
- }, {
80713
- "code": {
80714
- "integer": {
80715
- "value": 422
80716
- }
80717
- },
80718
- "type": "io.flow.error.v0.models.generic_error",
80719
- "description": "One or more errors were found with the data sent in the request. The body of the response contains specific details on what data failed validation.",
80720
- "attributes": []
80721
- }],
80722
- "attributes": [],
80723
- "description": "For a decision creates a product restriction",
80724
- "body": {
80725
- "type": "product_restriction_decision_form",
80726
- "attributes": []
80727
- }
80728
- }, {
80729
- "method": "GET",
80730
- "path": "/internal/product/restrictions/:product_id",
80731
- "parameters": [{
80732
- "name": "product_id",
80733
- "type": "string",
80734
- "location": "Path",
80735
- "required": true
80736
- }],
80737
- "responses": [{
80738
- "code": {
80739
- "integer": {
80740
- "value": 200
80741
- }
80742
- },
80743
- "type": "product_restriction",
80744
- "description": "Successful response",
80745
- "attributes": []
80746
- }, {
80747
- "code": {
80748
- "integer": {
80749
- "value": 401
80750
- }
80751
- },
80752
- "type": "unit",
80753
- "description": "Authorization failed",
80754
- "attributes": []
80755
- }, {
80756
- "code": {
80757
- "integer": {
80758
- "value": 404
80759
- }
80760
- },
80761
- "type": "unit",
80762
- "description": "Resource was not found",
80763
- "attributes": []
80764
- }],
80765
- "attributes": [],
80766
- "description": "Returns a restriction by product id",
80767
- "deprecation": {
80768
- "description": "To be removed"
80769
- }
80770
- }, {
80771
- "method": "PUT",
80772
- "path": "/internal/product/restrictions/:product_id",
80773
- "parameters": [{
80774
- "name": "product_id",
80775
- "type": "string",
80776
- "location": "Path",
80777
- "required": true
80778
- }],
80779
- "responses": [{
80780
- "code": {
80781
- "integer": {
80782
- "value": 200
80783
- }
80784
- },
80785
- "type": "product_restriction",
80786
- "description": "Successful response",
80787
- "attributes": []
80788
- }, {
80789
- "code": {
80790
- "integer": {
80791
- "value": 201
80792
- }
80793
- },
80794
- "type": "product_restriction",
80795
- "description": "Operation succeeded and the resource was created",
80796
- "attributes": []
80797
- }, {
80798
- "code": {
80799
- "integer": {
80800
- "value": 401
80801
- }
80802
- },
80803
- "type": "unit",
80804
- "description": "Authorization failed",
80805
- "attributes": []
80806
- }, {
80807
- "code": {
80808
- "integer": {
80809
- "value": 404
80810
- }
80811
- },
80812
- "type": "unit",
80813
- "description": "Resource was not found",
80814
- "attributes": []
80815
- }, {
80816
- "code": {
80817
- "integer": {
80818
- "value": 422
80819
- }
80820
- },
80821
- "type": "io.flow.error.v0.models.generic_error",
80822
- "description": "One or more errors were found with the data sent in the request. The body of the response contains specific details on what data failed validation.",
80823
- "attributes": []
80824
- }],
80825
- "attributes": [],
80826
- "description": "Updates the restriction decision for a product identified by the product id",
80827
- "body": {
80828
- "type": "product_restriction_decision_form",
80829
- "attributes": []
80830
- }
80831
- }],
80832
- "attributes": [{
80833
- "name": "docs",
80834
- "value": {
80835
- "module": "general"
80836
- }
80837
- }],
80838
- "path": "/internal/product/restrictions"
80839
80457
  }, {
80840
80458
  "type": "rate_and_rule_lookup",
80841
80459
  "plural": "rate_and_rule_lookups",
@@ -81469,7 +81087,7 @@
81469
81087
  }
81470
81088
  }, {
81471
81089
  "method": "GET",
81472
- "path": "/internal/restriction/:organization/items/rules",
81090
+ "path": "/internal/restriction/:organization/items/:id",
81473
81091
  "parameters": [{
81474
81092
  "name": "organization",
81475
81093
  "type": "string",
@@ -81478,34 +81096,10 @@
81478
81096
  "description": "Refers to your organization's account identifier"
81479
81097
  }, {
81480
81098
  "name": "id",
81481
- "type": "[string]",
81482
- "location": "Query",
81483
- "required": false,
81484
- "description": "Filter by one or more IDs of this resource",
81485
- "maximum": 100
81486
- }, {
81487
- "name": "limit",
81488
- "type": "long",
81489
- "location": "Query",
81490
- "required": true,
81491
- "description": "The maximum number of results to return",
81492
- "default": "25",
81493
- "minimum": 1,
81494
- "maximum": 100
81495
- }, {
81496
- "name": "offset",
81497
- "type": "long",
81498
- "location": "Query",
81499
- "required": true,
81500
- "description": "The number of results to skip before returning results",
81501
- "default": "0",
81502
- "minimum": 0
81503
- }, {
81504
- "name": "sort",
81505
81099
  "type": "string",
81506
- "location": "Query",
81100
+ "location": "Path",
81507
81101
  "required": true,
81508
- "default": "name"
81102
+ "description": "Filter by one or more IDs of this resource"
81509
81103
  }],
81510
81104
  "responses": [{
81511
81105
  "code": {
@@ -81513,7 +81107,7 @@
81513
81107
  "value": 200
81514
81108
  }
81515
81109
  },
81516
- "type": "[restriction_rule_summary]",
81110
+ "type": "restriction_item",
81517
81111
  "description": "Successful response",
81518
81112
  "attributes": []
81519
81113
  }, {
@@ -81528,24 +81122,17 @@
81528
81122
  }, {
81529
81123
  "code": {
81530
81124
  "integer": {
81531
- "value": 422
81125
+ "value": 404
81532
81126
  }
81533
81127
  },
81534
- "type": "io.flow.error.v0.models.generic_error",
81535
- "description": "One or more errors were found with the data sent in the request. The body of the response contains specific details on what data failed validation.",
81128
+ "type": "unit",
81129
+ "description": "Resource was not found",
81536
81130
  "attributes": []
81537
81131
  }],
81538
- "attributes": [{
81539
- "name": "sort",
81540
- "value": {
81541
- "values": [{
81542
- "value": "name"
81543
- }]
81544
- }
81545
- }],
81546
- "description": "Returns the list of restriction rules currently applicable for an organizations products in review"
81132
+ "attributes": [],
81133
+ "description": "Returns a restriction product item by id"
81547
81134
  }, {
81548
- "method": "GET",
81135
+ "method": "PUT",
81549
81136
  "path": "/internal/restriction/:organization/items/:id",
81550
81137
  "parameters": [{
81551
81138
  "name": "organization",
@@ -81572,89 +81159,29 @@
81572
81159
  }, {
81573
81160
  "code": {
81574
81161
  "integer": {
81575
- "value": 401
81162
+ "value": 201
81576
81163
  }
81577
81164
  },
81578
- "type": "unit",
81579
- "description": "Authorization failed",
81165
+ "type": "restriction_item",
81166
+ "description": "Operation succeeded and the resource was created",
81580
81167
  "attributes": []
81581
81168
  }, {
81582
81169
  "code": {
81583
81170
  "integer": {
81584
- "value": 404
81171
+ "value": 401
81585
81172
  }
81586
81173
  },
81587
81174
  "type": "unit",
81588
- "description": "Resource was not found",
81589
- "attributes": []
81590
- }],
81591
- "attributes": [],
81592
- "description": "Returns a restriction product item by id"
81593
- }],
81594
- "attributes": [{
81595
- "name": "docs",
81596
- "value": {
81597
- "module": "general"
81598
- }
81599
- }],
81600
- "path": "/internal/restriction/:organization/items"
81601
- }, {
81602
- "type": "restriction_product",
81603
- "plural": "restriction_products",
81604
- "operations": [{
81605
- "method": "GET",
81606
- "path": "/internal/restriction/products",
81607
- "parameters": [{
81608
- "name": "organization_id",
81609
- "type": "string",
81610
- "location": "Query",
81611
- "required": false
81612
- }, {
81613
- "name": "status",
81614
- "type": "restriction_status",
81615
- "location": "Query",
81616
- "required": false
81617
- }, {
81618
- "name": "rule_ids",
81619
- "type": "[string]",
81620
- "location": "Query",
81621
- "required": false,
81622
- "maximum": 100
81623
- }, {
81624
- "name": "limit",
81625
- "type": "long",
81626
- "location": "Query",
81627
- "required": true,
81628
- "description": "The maximum number of results to return",
81629
- "default": "25",
81630
- "minimum": 1,
81631
- "maximum": 100
81632
- }, {
81633
- "name": "offset",
81634
- "type": "long",
81635
- "location": "Query",
81636
- "required": true,
81637
- "description": "The number of results to skip before returning results",
81638
- "default": "0",
81639
- "minimum": 0
81640
- }],
81641
- "responses": [{
81642
- "code": {
81643
- "integer": {
81644
- "value": 200
81645
- }
81646
- },
81647
- "type": "[restriction_product]",
81648
- "description": "Successful response",
81175
+ "description": "Authorization failed",
81649
81176
  "attributes": []
81650
81177
  }, {
81651
81178
  "code": {
81652
81179
  "integer": {
81653
- "value": 401
81180
+ "value": 404
81654
81181
  }
81655
81182
  },
81656
81183
  "type": "unit",
81657
- "description": "Authorization failed",
81184
+ "description": "Resource was not found",
81658
81185
  "attributes": []
81659
81186
  }, {
81660
81187
  "code": {
@@ -81666,57 +81193,11 @@
81666
81193
  "description": "One or more errors were found with the data sent in the request. The body of the response contains specific details on what data failed validation.",
81667
81194
  "attributes": []
81668
81195
  }],
81669
- "attributes": [{
81670
- "name": "linter",
81671
- "value": {
81672
- "ignore": ["get", "id", "sort"]
81673
- }
81674
- }],
81675
- "description": "Returns a list of products for an organization",
81676
- "deprecation": {
81677
- "description": "To be removed"
81678
- }
81679
- }, {
81680
- "method": "GET",
81681
- "path": "/internal/restriction/products/:product_id",
81682
- "parameters": [{
81683
- "name": "product_id",
81684
- "type": "string",
81685
- "location": "Path",
81686
- "required": true
81687
- }],
81688
- "responses": [{
81689
- "code": {
81690
- "integer": {
81691
- "value": 200
81692
- }
81693
- },
81694
- "type": "restriction_product",
81695
- "description": "Successful response",
81696
- "attributes": []
81697
- }, {
81698
- "code": {
81699
- "integer": {
81700
- "value": 401
81701
- }
81702
- },
81703
- "type": "unit",
81704
- "description": "Authorization failed",
81705
- "attributes": []
81706
- }, {
81707
- "code": {
81708
- "integer": {
81709
- "value": 404
81710
- }
81711
- },
81712
- "type": "unit",
81713
- "description": "Resource was not found",
81714
- "attributes": []
81715
- }],
81716
81196
  "attributes": [],
81717
- "description": "Returns a restriction product by product id",
81718
- "deprecation": {
81719
- "description": "To be removed"
81197
+ "description": "Update the restriction decision for a product item",
81198
+ "body": {
81199
+ "type": "restriction_item_review_decision_form",
81200
+ "attributes": []
81720
81201
  }
81721
81202
  }],
81722
81203
  "attributes": [{
@@ -81725,7 +81206,7 @@
81725
81206
  "module": "general"
81726
81207
  }
81727
81208
  }],
81728
- "path": "/internal/restriction/products"
81209
+ "path": "/internal/restriction/:organization/items"
81729
81210
  }, {
81730
81211
  "type": "restriction_rule",
81731
81212
  "plural": "restriction_rules",
@@ -81943,6 +81424,89 @@
81943
81424
  "type": "restriction_rule_form",
81944
81425
  "attributes": []
81945
81426
  }
81427
+ }, {
81428
+ "method": "GET",
81429
+ "path": "/internal/restriction/rules/:organization/:status",
81430
+ "parameters": [{
81431
+ "name": "organization",
81432
+ "type": "string",
81433
+ "location": "Path",
81434
+ "required": true,
81435
+ "description": "Refers to your organization's account identifier"
81436
+ }, {
81437
+ "name": "status",
81438
+ "type": "restriction_status",
81439
+ "location": "Path",
81440
+ "required": true,
81441
+ "example": "in_review"
81442
+ }, {
81443
+ "name": "id",
81444
+ "type": "[string]",
81445
+ "location": "Query",
81446
+ "required": false,
81447
+ "description": "Filter by one or more IDs of this resource",
81448
+ "maximum": 100
81449
+ }, {
81450
+ "name": "limit",
81451
+ "type": "long",
81452
+ "location": "Query",
81453
+ "required": true,
81454
+ "description": "The maximum number of results to return",
81455
+ "default": "25",
81456
+ "minimum": 1,
81457
+ "maximum": 100
81458
+ }, {
81459
+ "name": "offset",
81460
+ "type": "long",
81461
+ "location": "Query",
81462
+ "required": true,
81463
+ "description": "The number of results to skip before returning results",
81464
+ "default": "0",
81465
+ "minimum": 0
81466
+ }, {
81467
+ "name": "sort",
81468
+ "type": "string",
81469
+ "location": "Query",
81470
+ "required": true,
81471
+ "default": "name"
81472
+ }],
81473
+ "responses": [{
81474
+ "code": {
81475
+ "integer": {
81476
+ "value": 200
81477
+ }
81478
+ },
81479
+ "type": "[restriction_rule_summary]",
81480
+ "description": "Successful response",
81481
+ "attributes": []
81482
+ }, {
81483
+ "code": {
81484
+ "integer": {
81485
+ "value": 401
81486
+ }
81487
+ },
81488
+ "type": "unit",
81489
+ "description": "Authorization failed",
81490
+ "attributes": []
81491
+ }, {
81492
+ "code": {
81493
+ "integer": {
81494
+ "value": 422
81495
+ }
81496
+ },
81497
+ "type": "io.flow.error.v0.models.generic_error",
81498
+ "description": "One or more errors were found with the data sent in the request. The body of the response contains specific details on what data failed validation.",
81499
+ "attributes": []
81500
+ }],
81501
+ "attributes": [{
81502
+ "name": "sort",
81503
+ "value": {
81504
+ "values": [{
81505
+ "value": "name"
81506
+ }]
81507
+ }
81508
+ }],
81509
+ "description": "Returns the list of restriction rules currently applicable for an organization"
81946
81510
  }],
81947
81511
  "attributes": [{
81948
81512
  "name": "docs",