@remit/api-openapi-spec 0.0.89 → 0.0.91
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/openapi.json +102 -19
- package/package.json +1 -1
- package/request-validators.mjs +1 -1
package/openapi.json
CHANGED
|
@@ -9461,7 +9461,7 @@
|
|
|
9461
9461
|
"apiKeySaved",
|
|
9462
9462
|
"enabled",
|
|
9463
9463
|
"dailyLimit",
|
|
9464
|
-
"
|
|
9464
|
+
"sources",
|
|
9465
9465
|
"usage"
|
|
9466
9466
|
],
|
|
9467
9467
|
"properties": {
|
|
@@ -9482,7 +9482,7 @@
|
|
|
9482
9482
|
},
|
|
9483
9483
|
"apiKeySaved": {
|
|
9484
9484
|
"type": "boolean",
|
|
9485
|
-
"description": "Whether an API key is
|
|
9485
|
+
"description": "Deprecated: read `sources.apiKey` instead. Whether an API key is saved or inherited from the deployment. Removed once reader-ui reads `sources`."
|
|
9486
9486
|
},
|
|
9487
9487
|
"enabled": {
|
|
9488
9488
|
"type": "boolean",
|
|
@@ -9493,10 +9493,13 @@
|
|
|
9493
9493
|
"format": "int32",
|
|
9494
9494
|
"description": "The most classification calls per mail account per UTC day."
|
|
9495
9495
|
},
|
|
9496
|
-
"
|
|
9497
|
-
"
|
|
9498
|
-
|
|
9499
|
-
|
|
9496
|
+
"sources": {
|
|
9497
|
+
"allOf": [
|
|
9498
|
+
{
|
|
9499
|
+
"$ref": "#/components/schemas/RemitImap.ClassificationSources"
|
|
9500
|
+
}
|
|
9501
|
+
],
|
|
9502
|
+
"description": "Where each value comes from. A reader overrides one field by saving it, and inherits it again by saving it empty."
|
|
9500
9503
|
},
|
|
9501
9504
|
"usage": {
|
|
9502
9505
|
"type": "array",
|
|
@@ -9506,7 +9509,7 @@
|
|
|
9506
9509
|
"description": "Today's provider calls, one row per mail account of the account config."
|
|
9507
9510
|
}
|
|
9508
9511
|
},
|
|
9509
|
-
"description": "The saved
|
|
9512
|
+
"description": "The classification provider in effect, saved or inherited from the deployment. No API key is ever returned."
|
|
9510
9513
|
},
|
|
9511
9514
|
"RemitImap.ClassificationCost": {
|
|
9512
9515
|
"anyOf": [
|
|
@@ -9723,9 +9726,49 @@
|
|
|
9723
9726
|
},
|
|
9724
9727
|
{
|
|
9725
9728
|
"$ref": "#/components/schemas/RemitImap.ClassificationConfigured"
|
|
9729
|
+
},
|
|
9730
|
+
{
|
|
9731
|
+
"$ref": "#/components/schemas/RemitImap.ClassificationUnrunnable"
|
|
9726
9732
|
}
|
|
9727
9733
|
]
|
|
9728
9734
|
},
|
|
9735
|
+
"RemitImap.ClassificationSources": {
|
|
9736
|
+
"type": "object",
|
|
9737
|
+
"required": [
|
|
9738
|
+
"presetId",
|
|
9739
|
+
"model",
|
|
9740
|
+
"baseUrl",
|
|
9741
|
+
"apiKey",
|
|
9742
|
+
"enabled",
|
|
9743
|
+
"dailyLimit"
|
|
9744
|
+
],
|
|
9745
|
+
"properties": {
|
|
9746
|
+
"presetId": {
|
|
9747
|
+
"$ref": "#/components/schemas/RemitImap.ClassificationValueSource"
|
|
9748
|
+
},
|
|
9749
|
+
"model": {
|
|
9750
|
+
"$ref": "#/components/schemas/RemitImap.ClassificationValueSource"
|
|
9751
|
+
},
|
|
9752
|
+
"baseUrl": {
|
|
9753
|
+
"$ref": "#/components/schemas/RemitImap.ClassificationValueSource"
|
|
9754
|
+
},
|
|
9755
|
+
"apiKey": {
|
|
9756
|
+
"allOf": [
|
|
9757
|
+
{
|
|
9758
|
+
"$ref": "#/components/schemas/RemitImap.ClassificationValueSource"
|
|
9759
|
+
}
|
|
9760
|
+
],
|
|
9761
|
+
"description": "`Saved` for a key the reader saved, `Deployment` for the deployment's key, `Default` for no key."
|
|
9762
|
+
},
|
|
9763
|
+
"enabled": {
|
|
9764
|
+
"$ref": "#/components/schemas/RemitImap.ClassificationValueSource"
|
|
9765
|
+
},
|
|
9766
|
+
"dailyLimit": {
|
|
9767
|
+
"$ref": "#/components/schemas/RemitImap.ClassificationValueSource"
|
|
9768
|
+
}
|
|
9769
|
+
},
|
|
9770
|
+
"description": "Where each classification setting's value comes from."
|
|
9771
|
+
},
|
|
9729
9772
|
"RemitImap.ClassificationTestFailed": {
|
|
9730
9773
|
"type": "object",
|
|
9731
9774
|
"required": [
|
|
@@ -9783,15 +9826,15 @@
|
|
|
9783
9826
|
},
|
|
9784
9827
|
"model": {
|
|
9785
9828
|
"type": "string",
|
|
9786
|
-
"description": "The model to ask for. Empty means the
|
|
9829
|
+
"description": "The model to ask for. Empty means the inherited model."
|
|
9787
9830
|
},
|
|
9788
9831
|
"baseUrl": {
|
|
9789
9832
|
"type": "string",
|
|
9790
|
-
"description": "The http or https base URL to call. Empty means the
|
|
9833
|
+
"description": "The http or https base URL to call. Empty means the inherited base URL."
|
|
9791
9834
|
},
|
|
9792
9835
|
"apiKey": {
|
|
9793
9836
|
"type": "string",
|
|
9794
|
-
"description": "The provider's API key. Empty means the key saved for this preset."
|
|
9837
|
+
"description": "The provider's API key. Empty means the key saved for this preset, or the deployment's key when the preset and base URL match the deployment's."
|
|
9795
9838
|
}
|
|
9796
9839
|
},
|
|
9797
9840
|
"description": "The classification provider form as it stands, saved or not."
|
|
@@ -9842,6 +9885,37 @@
|
|
|
9842
9885
|
}
|
|
9843
9886
|
]
|
|
9844
9887
|
},
|
|
9888
|
+
"RemitImap.ClassificationUnrunnable": {
|
|
9889
|
+
"type": "object",
|
|
9890
|
+
"required": [
|
|
9891
|
+
"state",
|
|
9892
|
+
"presetId",
|
|
9893
|
+
"reason"
|
|
9894
|
+
],
|
|
9895
|
+
"properties": {
|
|
9896
|
+
"state": {
|
|
9897
|
+
"type": "string",
|
|
9898
|
+
"enum": [
|
|
9899
|
+
"Unrunnable"
|
|
9900
|
+
]
|
|
9901
|
+
},
|
|
9902
|
+
"presetId": {
|
|
9903
|
+
"$ref": "#/components/schemas/RemitImap.ClassificationPresetId"
|
|
9904
|
+
},
|
|
9905
|
+
"reason": {
|
|
9906
|
+
"$ref": "#/components/schemas/RemitImap.ClassificationUnrunnableReason"
|
|
9907
|
+
}
|
|
9908
|
+
},
|
|
9909
|
+
"description": "A classification provider is chosen but cannot run, so classification is off."
|
|
9910
|
+
},
|
|
9911
|
+
"RemitImap.ClassificationUnrunnableReason": {
|
|
9912
|
+
"type": "string",
|
|
9913
|
+
"enum": [
|
|
9914
|
+
"NoBaseUrl",
|
|
9915
|
+
"NoApiKey"
|
|
9916
|
+
],
|
|
9917
|
+
"description": "Why a classification provider cannot run."
|
|
9918
|
+
},
|
|
9845
9919
|
"RemitImap.ClassificationUsage": {
|
|
9846
9920
|
"type": "object",
|
|
9847
9921
|
"required": [
|
|
@@ -9876,6 +9950,15 @@
|
|
|
9876
9950
|
},
|
|
9877
9951
|
"description": "One mail account's classification calls today."
|
|
9878
9952
|
},
|
|
9953
|
+
"RemitImap.ClassificationValueSource": {
|
|
9954
|
+
"type": "string",
|
|
9955
|
+
"enum": [
|
|
9956
|
+
"Saved",
|
|
9957
|
+
"Deployment",
|
|
9958
|
+
"Default"
|
|
9959
|
+
],
|
|
9960
|
+
"description": "Where a classification setting's value comes from."
|
|
9961
|
+
},
|
|
9879
9962
|
"RemitImap.ConfigDescriptionResponse": {
|
|
9880
9963
|
"type": "object",
|
|
9881
9964
|
"required": [
|
|
@@ -11806,14 +11889,14 @@
|
|
|
11806
11889
|
"$ref": "#/components/schemas/RemitImap.DisplayNameCorrespondence"
|
|
11807
11890
|
}
|
|
11808
11891
|
],
|
|
11809
|
-
"description": "How the From display name relates to the From domain.
|
|
11892
|
+
"description": "How the From display name relates to the From domain. Display-only: it never decides placement. Present only when the sender is not bulk-shaped (no List-Unsubscribe) — absence means the comparison was never made, never that it found nothing."
|
|
11810
11893
|
},
|
|
11811
11894
|
"offDomainLinkDomains": {
|
|
11812
11895
|
"type": "array",
|
|
11813
11896
|
"items": {
|
|
11814
11897
|
"type": "string"
|
|
11815
11898
|
},
|
|
11816
|
-
"description": "Registrable domains (eTLD+1) the body's links point at, excluding the From address's own registrable domain.
|
|
11899
|
+
"description": "Registrable domains (eTLD+1) the body's links point at, excluding the From address's own registrable domain. Display-only: it never decides placement. An empty array means every link stayed on the sender's domain, absence means the comparison was never made."
|
|
11817
11900
|
},
|
|
11818
11901
|
"signerDomain": {
|
|
11819
11902
|
"type": "string",
|
|
@@ -14831,29 +14914,29 @@
|
|
|
14831
14914
|
"$ref": "#/components/schemas/RemitImap.ClassificationPresetId"
|
|
14832
14915
|
}
|
|
14833
14916
|
],
|
|
14834
|
-
"description": "Save a classification provider. Saving another preset deletes the stored key. Without it, the classification fields below apply to the saved
|
|
14917
|
+
"description": "Save a classification provider. Saving another preset deletes the stored key, model and base URL. Without it, the classification fields below apply to the provider in effect, saved or inherited from the deployment."
|
|
14835
14918
|
},
|
|
14836
14919
|
"classificationModel": {
|
|
14837
14920
|
"type": "string",
|
|
14838
|
-
"description": "The model to ask for. Empty
|
|
14921
|
+
"description": "The model to ask for. Empty deletes the saved model, so it is inherited again."
|
|
14839
14922
|
},
|
|
14840
14923
|
"classificationBaseUrl": {
|
|
14841
14924
|
"type": "string",
|
|
14842
|
-
"description": "The http or https base URL to call. Empty
|
|
14925
|
+
"description": "The http or https base URL to call. Empty deletes the saved base URL, so it is inherited again. Refused with 400 `invalid_classification_base_url` when it is not a URL, or when no base URL is saved, inherited or given by the preset."
|
|
14843
14926
|
},
|
|
14844
14927
|
"classificationApiKey": {
|
|
14845
14928
|
"type": "string",
|
|
14846
|
-
"description": "The provider's API key. Write-only: stored encrypted and never returned. Refused with 400 `classification_api_key_required` when the preset needs a key and none is
|
|
14929
|
+
"description": "The provider's API key. Write-only: stored encrypted and never returned. Refused with 400 `classification_api_key_required` when the preset needs a key and none is saved, or inherited from the deployment for the same preset and base URL."
|
|
14847
14930
|
},
|
|
14848
14931
|
"classificationEnabled": {
|
|
14849
14932
|
"type": "boolean",
|
|
14850
|
-
"description": "Switch classification on or off. Switching on with no
|
|
14933
|
+
"description": "Switch classification on or off. Switching on with no provider in effect is refused with 400 `classification_not_configured`; switching off keeps the provider and key."
|
|
14851
14934
|
},
|
|
14852
14935
|
"classificationDailyLimit": {
|
|
14853
14936
|
"type": "integer",
|
|
14854
14937
|
"format": "int32",
|
|
14855
14938
|
"minimum": 1,
|
|
14856
|
-
"description": "The most classification calls per mail account per UTC day. Needs a saved
|
|
14939
|
+
"description": "The most classification calls per mail account per UTC day. Needs a provider in effect, saved or inherited."
|
|
14857
14940
|
}
|
|
14858
14941
|
},
|
|
14859
14942
|
"description": "A change to the caller's settings. Every field is optional and absence means untouched."
|
|
@@ -14891,7 +14974,7 @@
|
|
|
14891
14974
|
"$ref": "#/components/schemas/RemitImap.ClassificationSettings"
|
|
14892
14975
|
}
|
|
14893
14976
|
],
|
|
14894
|
-
"description": "The
|
|
14977
|
+
"description": "The classification provider in effect, `Unrunnable` when one is chosen but cannot run, or `NotConfigured`."
|
|
14895
14978
|
}
|
|
14896
14979
|
},
|
|
14897
14980
|
"description": "The caller's own settings: choices that belong to the person rather than to\none mail account. Each field is stored as an `AccountSetting` row of the\naccount config and read back here, so a setting added later is one more\nfield on this resource rather than one more operation."
|
package/package.json
CHANGED