@remit/api-openapi-spec 0.0.96 → 0.0.98
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 +154 -6
- package/package.json +1 -1
- package/request-validators.mjs +5 -4
package/openapi.json
CHANGED
|
@@ -3969,6 +3969,63 @@
|
|
|
3969
3969
|
}
|
|
3970
3970
|
}
|
|
3971
3971
|
},
|
|
3972
|
+
"/classification-stats": {
|
|
3973
|
+
"get": {
|
|
3974
|
+
"operationId": "ClassificationStatsOperations_getClassificationStats",
|
|
3975
|
+
"description": "Count what the classifier decided for mail that arrived on or after `since`, and how often the reader corrected it. Refused with 400 when `since` is not an ISO 8601 date-time with zone offset.",
|
|
3976
|
+
"parameters": [
|
|
3977
|
+
{
|
|
3978
|
+
"name": "since",
|
|
3979
|
+
"in": "query",
|
|
3980
|
+
"required": true,
|
|
3981
|
+
"description": "Start of the window, an ISO 8601 date-time with zone offset. Inclusive.",
|
|
3982
|
+
"schema": {
|
|
3983
|
+
"type": "string"
|
|
3984
|
+
}
|
|
3985
|
+
}
|
|
3986
|
+
],
|
|
3987
|
+
"responses": {
|
|
3988
|
+
"200": {
|
|
3989
|
+
"description": "The request has succeeded.",
|
|
3990
|
+
"content": {
|
|
3991
|
+
"application/json": {
|
|
3992
|
+
"schema": {
|
|
3993
|
+
"$ref": "#/components/schemas/RemitImap.ClassifierStats"
|
|
3994
|
+
}
|
|
3995
|
+
}
|
|
3996
|
+
}
|
|
3997
|
+
},
|
|
3998
|
+
"400": {
|
|
3999
|
+
"description": "The request was refused as malformed or contradictory. `code` is\n`invalid_request` where nothing more specific is known, and the refusal's own\ntoken where there is one.\n\nThe calendar surface answers with the reason it read the request by:\n`invalid_window`, `invalid_scope`, `invalid_url_segment`, `url_segment_taken`,\n`unknown_time_zone` and `default_calendar_undeletable` on the collection and\nthe query, and, for a VCALENDAR it could not accept,\n`malformed_icalendar`, `not_a_calendar`, `unsupported_component`, `no_event`,\n`no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,\n`missing_dt_start`, `backwards_end`, `invalid_date_time`,\n`invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring`,\n`unknown_occurrence` and `unmovable_recurrence_rule`. The outbox answers `mail_sync_off` to a\nsend from an account whose `syncedServices` leave out `Mail`, with the\naccount in `details.accountId`.\n\n`errors` is present only when the request failed schema validation before any\nhandler ran, and names every field that was refused.",
|
|
4000
|
+
"content": {
|
|
4001
|
+
"application/json": {
|
|
4002
|
+
"schema": {
|
|
4003
|
+
"$ref": "#/components/schemas/ValidationError"
|
|
4004
|
+
}
|
|
4005
|
+
}
|
|
4006
|
+
}
|
|
4007
|
+
},
|
|
4008
|
+
"401": {
|
|
4009
|
+
"description": "The request carried no usable credential. `code` is `unauthorized`.",
|
|
4010
|
+
"content": {
|
|
4011
|
+
"application/json": {
|
|
4012
|
+
"schema": {
|
|
4013
|
+
"$ref": "#/components/schemas/ApiError"
|
|
4014
|
+
}
|
|
4015
|
+
}
|
|
4016
|
+
}
|
|
4017
|
+
}
|
|
4018
|
+
},
|
|
4019
|
+
"x-amazon-apigateway-integration": {
|
|
4020
|
+
"type": "aws_proxy",
|
|
4021
|
+
"httpMethod": "POST",
|
|
4022
|
+
"passthroughBehavior": "when_no_match",
|
|
4023
|
+
"uri": {
|
|
4024
|
+
"Fn::Sub": "arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:{{HandlerFunctionName}}/invocations"
|
|
4025
|
+
}
|
|
4026
|
+
}
|
|
4027
|
+
}
|
|
4028
|
+
},
|
|
3972
4029
|
"/config": {
|
|
3973
4030
|
"get": {
|
|
3974
4031
|
"operationId": "ConfigOperations_getConfig",
|
|
@@ -7374,9 +7431,6 @@
|
|
|
7374
7431
|
"$ref": "#/components/schemas/RemitImap.AccountService"
|
|
7375
7432
|
},
|
|
7376
7433
|
"description": "Services this account syncs. Never empty. A password account holds `Mail` alone. Every account written before this field existed holds `#[AccountService.Mail]`.",
|
|
7377
|
-
"default": [
|
|
7378
|
-
"Mail"
|
|
7379
|
-
],
|
|
7380
7434
|
"readOnly": true
|
|
7381
7435
|
},
|
|
7382
7436
|
"grantedScopes": {
|
|
@@ -7775,7 +7829,6 @@
|
|
|
7775
7829
|
}
|
|
7776
7830
|
],
|
|
7777
7831
|
"description": "Sender-level flags (trust/block/mute/etc). Always present; an empty map means no flags are set. Individual flag keys remain sparse — a key's presence means that flag is set.",
|
|
7778
|
-
"default": {},
|
|
7779
7832
|
"readOnly": true
|
|
7780
7833
|
},
|
|
7781
7834
|
"inboundCount": {
|
|
@@ -9578,7 +9631,8 @@
|
|
|
9578
9631
|
"Marketing",
|
|
9579
9632
|
"Automated",
|
|
9580
9633
|
"Transactional",
|
|
9581
|
-
"Social"
|
|
9634
|
+
"Social",
|
|
9635
|
+
"ColdOutreach"
|
|
9582
9636
|
],
|
|
9583
9637
|
"description": "A label a classification provider picks for a message: the junk verdicts, priority, and the message categories."
|
|
9584
9638
|
},
|
|
@@ -9954,6 +10008,99 @@
|
|
|
9954
10008
|
],
|
|
9955
10009
|
"description": "Where a classification setting's value comes from."
|
|
9956
10010
|
},
|
|
10011
|
+
"RemitImap.ClassifierCategoryCount": {
|
|
10012
|
+
"type": "object",
|
|
10013
|
+
"required": [
|
|
10014
|
+
"category",
|
|
10015
|
+
"count"
|
|
10016
|
+
],
|
|
10017
|
+
"properties": {
|
|
10018
|
+
"category": {
|
|
10019
|
+
"$ref": "#/components/schemas/RemitImap.MessageCategory"
|
|
10020
|
+
},
|
|
10021
|
+
"count": {
|
|
10022
|
+
"type": "integer",
|
|
10023
|
+
"format": "int32"
|
|
10024
|
+
}
|
|
10025
|
+
},
|
|
10026
|
+
"description": "Examined messages in one category."
|
|
10027
|
+
},
|
|
10028
|
+
"RemitImap.ClassifierCorrections": {
|
|
10029
|
+
"type": "object",
|
|
10030
|
+
"required": [
|
|
10031
|
+
"spamReportedNotJunk",
|
|
10032
|
+
"categoryOverridden"
|
|
10033
|
+
],
|
|
10034
|
+
"properties": {
|
|
10035
|
+
"spamReportedNotJunk": {
|
|
10036
|
+
"type": "integer",
|
|
10037
|
+
"format": "int32",
|
|
10038
|
+
"description": "Messages the reader reported as spam whose stored scores held no confident `Spam` or `Phishing` score."
|
|
10039
|
+
},
|
|
10040
|
+
"categoryOverridden": {
|
|
10041
|
+
"type": "integer",
|
|
10042
|
+
"format": "int32",
|
|
10043
|
+
"description": "Senders whose `Address.flags.category` override was set on or after `since`."
|
|
10044
|
+
}
|
|
10045
|
+
},
|
|
10046
|
+
"description": "Times the reader disagreed with the classifier since `since`."
|
|
10047
|
+
},
|
|
10048
|
+
"RemitImap.ClassifierLabelCount": {
|
|
10049
|
+
"type": "object",
|
|
10050
|
+
"required": [
|
|
10051
|
+
"label",
|
|
10052
|
+
"count"
|
|
10053
|
+
],
|
|
10054
|
+
"properties": {
|
|
10055
|
+
"label": {
|
|
10056
|
+
"$ref": "#/components/schemas/RemitImap.ClassificationLabel"
|
|
10057
|
+
},
|
|
10058
|
+
"count": {
|
|
10059
|
+
"type": "integer",
|
|
10060
|
+
"format": "int32"
|
|
10061
|
+
}
|
|
10062
|
+
},
|
|
10063
|
+
"description": "Confident scores for one label."
|
|
10064
|
+
},
|
|
10065
|
+
"RemitImap.ClassifierStats": {
|
|
10066
|
+
"type": "object",
|
|
10067
|
+
"required": [
|
|
10068
|
+
"since",
|
|
10069
|
+
"examined",
|
|
10070
|
+
"byCategory",
|
|
10071
|
+
"byLabel",
|
|
10072
|
+
"corrections"
|
|
10073
|
+
],
|
|
10074
|
+
"properties": {
|
|
10075
|
+
"since": {
|
|
10076
|
+
"type": "string",
|
|
10077
|
+
"description": "The start of the window, as the request gave it: an ISO 8601 date-time with zone offset."
|
|
10078
|
+
},
|
|
10079
|
+
"examined": {
|
|
10080
|
+
"type": "integer",
|
|
10081
|
+
"format": "int32",
|
|
10082
|
+
"description": "Messages that arrived on or after `since` whose body sync classified them."
|
|
10083
|
+
},
|
|
10084
|
+
"byCategory": {
|
|
10085
|
+
"type": "array",
|
|
10086
|
+
"items": {
|
|
10087
|
+
"$ref": "#/components/schemas/RemitImap.ClassifierCategoryCount"
|
|
10088
|
+
},
|
|
10089
|
+
"description": "Examined messages per category; a category with none is absent."
|
|
10090
|
+
},
|
|
10091
|
+
"byLabel": {
|
|
10092
|
+
"type": "array",
|
|
10093
|
+
"items": {
|
|
10094
|
+
"$ref": "#/components/schemas/RemitImap.ClassifierLabelCount"
|
|
10095
|
+
},
|
|
10096
|
+
"description": "Confident scores per label, over the examined messages; a label with none is absent."
|
|
10097
|
+
},
|
|
10098
|
+
"corrections": {
|
|
10099
|
+
"$ref": "#/components/schemas/RemitImap.ClassifierCorrections"
|
|
10100
|
+
}
|
|
10101
|
+
},
|
|
10102
|
+
"description": "The classifier's distribution and corrections over mail that arrived on or after `since`, across every account the caller holds."
|
|
10103
|
+
},
|
|
9957
10104
|
"RemitImap.ConfigDescriptionResponse": {
|
|
9958
10105
|
"type": "object",
|
|
9959
10106
|
"required": [
|
|
@@ -11943,7 +12090,8 @@
|
|
|
11943
12090
|
"marketing",
|
|
11944
12091
|
"automated",
|
|
11945
12092
|
"transactional",
|
|
11946
|
-
"social"
|
|
12093
|
+
"social",
|
|
12094
|
+
"coldOutreach"
|
|
11947
12095
|
],
|
|
11948
12096
|
"description": "Header-derived message category. Set by classifyByHeaders during body-sync. Defaults to `uncategorized`, which covers both a message that has not been classified yet and one the classifier declined to categorize; `Message.classificationState` is what tells those apart."
|
|
11949
12097
|
},
|
package/package.json
CHANGED