@remit/api-openapi-types 0.0.90 → 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/package.json +1 -1
- package/types.d.ts +57 -2
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -387,7 +387,7 @@ distinguishable from a network failure without parsing prose.
|
|
|
387
387
|
/**
|
|
388
388
|
* Known user-setting keys. Each maps, in the registry, to a required value kind and a zod schema. New keys are added deliberately by extending this enum and the registry — never as an ad-hoc column.
|
|
389
389
|
*/
|
|
390
|
-
export type AccountSettingName = "Theme" | "Density" | "DefaultComposerFormat" | "PinnedFolders" | "AccountSignaturePlainText" | "AccountSignatureHtml" | "AccountDisplayName" | "AccountMuted" | "AccountComposeLanguages" | "MailboxDisplayName" | "MailboxMuted" | "FolderRoleAppointment" | "FolderRoleAppointmentLabel" | "MailboxRole" | "DefaultInvitationSenderAccountId" | "ClassificationPresetId" | "ClassificationModel" | "ClassificationBaseUrl" | "ClassificationApiKey" | "ClassificationEnabled" | "ClassificationDailyLimit";
|
|
390
|
+
export type AccountSettingName = "Theme" | "Density" | "DefaultComposerFormat" | "PinnedFolders" | "AccountSignaturePlainText" | "AccountSignatureHtml" | "AccountDisplayName" | "AccountMuted" | "AccountComposeLanguages" | "MailboxDisplayName" | "MailboxMuted" | "FolderRoleAppointment" | "FolderRoleAppointmentLabel" | "MailboxRole" | "DefaultInvitationSenderAccountId" | "ClassificationPresetId" | "ClassificationModel" | "ClassificationBaseUrl" | "ClassificationApiKey" | "ClassificationEnabled" | "ClassificationDailyLimit" | "ClassificationUsage";
|
|
391
391
|
/**
|
|
392
392
|
* Lifecycle of one applied configuration import. An import is Complete the moment every folder reference in the file has been bound to a real mailbox; until then it is Pending, waiting on the IMAP discovery that will produce those mailboxes.
|
|
393
393
|
*/
|
|
@@ -3720,6 +3720,40 @@ field on this resource rather than one more operation.
|
|
|
3720
3720
|
* When the provider, model, base URL or key was last saved, in epoch milliseconds (UTC).
|
|
3721
3721
|
*/
|
|
3722
3722
|
savedAt: number;
|
|
3723
|
+
/**
|
|
3724
|
+
* Today's provider calls, one row per mail account of the account config.
|
|
3725
|
+
*/
|
|
3726
|
+
usage: ClassificationUsage[];
|
|
3727
|
+
}
|
|
3728
|
+
/**
|
|
3729
|
+
* One mail account's classification calls today.
|
|
3730
|
+
*/
|
|
3731
|
+
export interface ClassificationUsage {
|
|
3732
|
+
accountId: UUID;
|
|
3733
|
+
/**
|
|
3734
|
+
* Provider calls made today (UTC). Test calls do not count.
|
|
3735
|
+
*/
|
|
3736
|
+
calls: number;
|
|
3737
|
+
/**
|
|
3738
|
+
* The most calls this mail account makes per UTC day.
|
|
3739
|
+
*/
|
|
3740
|
+
dailyLimit: number;
|
|
3741
|
+
/**
|
|
3742
|
+
* When `calls` restarts at zero: the next 00:00 UTC.
|
|
3743
|
+
*/
|
|
3744
|
+
resetsAt: string;
|
|
3745
|
+
cost: ClassificationCostPriced | ClassificationNoPrice;
|
|
3746
|
+
}
|
|
3747
|
+
/**
|
|
3748
|
+
* The cost of today's calls, counting each call as 1,500 input tokens at the preset's price.
|
|
3749
|
+
*/
|
|
3750
|
+
export interface ClassificationCostPriced {
|
|
3751
|
+
state: "Priced";
|
|
3752
|
+
/**
|
|
3753
|
+
* ISO 4217 currency of `amount`.
|
|
3754
|
+
*/
|
|
3755
|
+
currency: "USD";
|
|
3756
|
+
amount: number;
|
|
3723
3757
|
}
|
|
3724
3758
|
/**
|
|
3725
3759
|
* A change to the caller's settings. Every field is optional and absence means untouched.
|
|
@@ -6674,6 +6708,23 @@ of copying it, and so a person can see what was imported after the fact.
|
|
|
6674
6708
|
kind: "MutedFlag";
|
|
6675
6709
|
value: MutedFlag;
|
|
6676
6710
|
}
|
|
6711
|
+
/**
|
|
6712
|
+
* A count that restarts every UTC day.
|
|
6713
|
+
*/
|
|
6714
|
+
export interface DailyCount {
|
|
6715
|
+
/**
|
|
6716
|
+
* The UTC date the count belongs to.
|
|
6717
|
+
*/
|
|
6718
|
+
date: string;
|
|
6719
|
+
calls: number;
|
|
6720
|
+
}
|
|
6721
|
+
/**
|
|
6722
|
+
* DailyCount-valued setting: a count for one UTC date.
|
|
6723
|
+
*/
|
|
6724
|
+
export interface DailyCountSetting {
|
|
6725
|
+
kind: "DailyCount";
|
|
6726
|
+
value: DailyCount;
|
|
6727
|
+
}
|
|
6677
6728
|
/**
|
|
6678
6729
|
* A single user setting for an account configuration. One row per (accountConfigId, name); the primary key is a deterministic UUID v5 of that pair, so writes are idempotent upserts.
|
|
6679
6730
|
*/
|
|
@@ -6693,7 +6744,7 @@ of copying it, and so a person can see what was imported after the fact.
|
|
|
6693
6744
|
/**
|
|
6694
6745
|
* Typed setting value
|
|
6695
6746
|
*/
|
|
6696
|
-
value: BooleanSetting | StringSetting | NumberSetting | StringListSetting | MapSetting | MutedFlagSetting;
|
|
6747
|
+
value: BooleanSetting | StringSetting | NumberSetting | StringListSetting | MapSetting | MutedFlagSetting | DailyCountSetting;
|
|
6697
6748
|
createdAt: number;
|
|
6698
6749
|
updatedAt: number;
|
|
6699
6750
|
}
|
|
@@ -10477,6 +10528,8 @@ export type ClassificationPriced = Components.Schemas.ClassificationPriced;
|
|
|
10477
10528
|
export type ClassificationNoPrice = Components.Schemas.ClassificationNoPrice;
|
|
10478
10529
|
export type ClassificationNotConfigured = Components.Schemas.ClassificationNotConfigured;
|
|
10479
10530
|
export type ClassificationConfigured = Components.Schemas.ClassificationConfigured;
|
|
10531
|
+
export type ClassificationUsage = Components.Schemas.ClassificationUsage;
|
|
10532
|
+
export type ClassificationCostPriced = Components.Schemas.ClassificationCostPriced;
|
|
10480
10533
|
export type UpdateUserSettingsInput = Components.Schemas.UpdateUserSettingsInput;
|
|
10481
10534
|
export type ClassificationTestInput = Components.Schemas.ClassificationTestInput;
|
|
10482
10535
|
export type ClassificationTestPassed = Components.Schemas.ClassificationTestPassed;
|
|
@@ -10567,6 +10620,8 @@ export type NumberSetting = Components.Schemas.NumberSetting;
|
|
|
10567
10620
|
export type StringListSetting = Components.Schemas.StringListSetting;
|
|
10568
10621
|
export type MapSetting = Components.Schemas.MapSetting;
|
|
10569
10622
|
export type MutedFlagSetting = Components.Schemas.MutedFlagSetting;
|
|
10623
|
+
export type DailyCount = Components.Schemas.DailyCount;
|
|
10624
|
+
export type DailyCountSetting = Components.Schemas.DailyCountSetting;
|
|
10570
10625
|
export type AccountSetting = Components.Schemas.AccountSetting;
|
|
10571
10626
|
export type MailboxAttributeEntry = Components.Schemas.MailboxAttributeEntry;
|
|
10572
10627
|
export type MailboxSpecialUseEntry = Components.Schemas.MailboxSpecialUseEntry;
|