@remit/api-openapi-spec 0.0.97 → 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 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",
@@ -9574,7 +9631,8 @@
9574
9631
  "Marketing",
9575
9632
  "Automated",
9576
9633
  "Transactional",
9577
- "Social"
9634
+ "Social",
9635
+ "ColdOutreach"
9578
9636
  ],
9579
9637
  "description": "A label a classification provider picks for a message: the junk verdicts, priority, and the message categories."
9580
9638
  },
@@ -9950,6 +10008,99 @@
9950
10008
  ],
9951
10009
  "description": "Where a classification setting's value comes from."
9952
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
+ },
9953
10104
  "RemitImap.ConfigDescriptionResponse": {
9954
10105
  "type": "object",
9955
10106
  "required": [
@@ -11939,7 +12090,8 @@
11939
12090
  "marketing",
11940
12091
  "automated",
11941
12092
  "transactional",
11942
- "social"
12093
+ "social",
12094
+ "coldOutreach"
11943
12095
  ],
11944
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."
11945
12097
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/api-openapi-spec",
3
- "version": "0.0.97",
3
+ "version": "0.0.98",
4
4
  "description": "Remit API OpenAPI 3 document, generated from TypeSpec, and its precompiled request validators.",
5
5
  "exports": {
6
6
  ".": "./openapi.json",