@remit/api-openapi-spec 0.0.86 → 0.0.87

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.
Files changed (2) hide show
  1. package/openapi.json +81 -1
  2. package/package.json +1 -1
package/openapi.json CHANGED
@@ -9461,7 +9461,8 @@
9461
9461
  "apiKeySaved",
9462
9462
  "enabled",
9463
9463
  "dailyLimit",
9464
- "savedAt"
9464
+ "savedAt",
9465
+ "usage"
9465
9466
  ],
9466
9467
  "properties": {
9467
9468
  "state": {
@@ -9496,10 +9497,55 @@
9496
9497
  "type": "integer",
9497
9498
  "format": "int64",
9498
9499
  "description": "When the provider, model, base URL or key was last saved, in epoch milliseconds (UTC)."
9500
+ },
9501
+ "usage": {
9502
+ "type": "array",
9503
+ "items": {
9504
+ "$ref": "#/components/schemas/RemitImap.ClassificationUsage"
9505
+ },
9506
+ "description": "Today's provider calls, one row per mail account of the account config."
9499
9507
  }
9500
9508
  },
9501
9509
  "description": "The saved classification provider. The API key itself is never returned."
9502
9510
  },
9511
+ "RemitImap.ClassificationCost": {
9512
+ "anyOf": [
9513
+ {
9514
+ "$ref": "#/components/schemas/RemitImap.ClassificationCostPriced"
9515
+ },
9516
+ {
9517
+ "$ref": "#/components/schemas/RemitImap.ClassificationNoPrice"
9518
+ }
9519
+ ]
9520
+ },
9521
+ "RemitImap.ClassificationCostPriced": {
9522
+ "type": "object",
9523
+ "required": [
9524
+ "state",
9525
+ "currency",
9526
+ "amount"
9527
+ ],
9528
+ "properties": {
9529
+ "state": {
9530
+ "type": "string",
9531
+ "enum": [
9532
+ "Priced"
9533
+ ]
9534
+ },
9535
+ "currency": {
9536
+ "type": "string",
9537
+ "enum": [
9538
+ "USD"
9539
+ ],
9540
+ "description": "ISO 4217 currency of `amount`."
9541
+ },
9542
+ "amount": {
9543
+ "type": "number",
9544
+ "format": "double"
9545
+ }
9546
+ },
9547
+ "description": "The cost of today's calls, counting each call as 1,500 input tokens at the preset's price."
9548
+ },
9503
9549
  "RemitImap.ClassificationFailureKind": {
9504
9550
  "type": "string",
9505
9551
  "enum": [
@@ -9796,6 +9842,40 @@
9796
9842
  }
9797
9843
  ]
9798
9844
  },
9845
+ "RemitImap.ClassificationUsage": {
9846
+ "type": "object",
9847
+ "required": [
9848
+ "accountId",
9849
+ "calls",
9850
+ "dailyLimit",
9851
+ "resetsAt",
9852
+ "cost"
9853
+ ],
9854
+ "properties": {
9855
+ "accountId": {
9856
+ "$ref": "#/components/schemas/UUID"
9857
+ },
9858
+ "calls": {
9859
+ "type": "integer",
9860
+ "format": "int32",
9861
+ "description": "Provider calls made today (UTC). Test calls do not count."
9862
+ },
9863
+ "dailyLimit": {
9864
+ "type": "integer",
9865
+ "format": "int32",
9866
+ "description": "The most calls this mail account makes per UTC day."
9867
+ },
9868
+ "resetsAt": {
9869
+ "type": "string",
9870
+ "format": "date-time",
9871
+ "description": "When `calls` restarts at zero: the next 00:00 UTC."
9872
+ },
9873
+ "cost": {
9874
+ "$ref": "#/components/schemas/RemitImap.ClassificationCost"
9875
+ }
9876
+ },
9877
+ "description": "One mail account's classification calls today."
9878
+ },
9799
9879
  "RemitImap.ConfigDescriptionResponse": {
9800
9880
  "type": "object",
9801
9881
  "required": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/api-openapi-spec",
3
- "version": "0.0.86",
3
+ "version": "0.0.87",
4
4
  "description": "Remit API OpenAPI 3 document, generated from TypeSpec, and its precompiled request validators.",
5
5
  "exports": {
6
6
  ".": "./openapi.json",