@remit/api-openapi-types 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.
- package/package.json +1 -1
- package/types.d.ts +11 -20
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -105,6 +105,10 @@ writer can reach is a vocabulary that lies about what the field means.
|
|
|
105
105
|
* Whether a person may sign in. A disabled person's sessions, MCP grants and calendar feeds are revoked, and every sign-in is refused.
|
|
106
106
|
*/
|
|
107
107
|
export type PersonStatus = "Active" | "Disabled";
|
|
108
|
+
/**
|
|
109
|
+
* Why a People operation was refused. Wire values stay snake_case.
|
|
110
|
+
*/
|
|
111
|
+
export type PeopleErrorCode = "sign_in_disabled" | "caller_disabled" | "foreign_origin" | "step_up_required" | "wrong_password" | "step_up_locked" | "cannot_disable_self";
|
|
108
112
|
/**
|
|
109
113
|
* The operation a step-up token is spent on. `updatePerson` maps `Disabled` to `Disable` and `Active` to `Enable`.
|
|
110
114
|
*/
|
|
@@ -1970,19 +1974,10 @@ with `onExisting: merge` to upsert instead.
|
|
|
1970
1974
|
isCaller: boolean;
|
|
1971
1975
|
}
|
|
1972
1976
|
/**
|
|
1973
|
-
* The People operation is refused for the caller.
|
|
1974
|
-
`sign_in_disabled` (the kill switch is on), `caller_disabled` (the caller's
|
|
1975
|
-
account is disabled or gone), `foreign_origin` (an unsafe request from an
|
|
1976
|
-
origin this instance does not serve), `step_up_required` (the step-up token
|
|
1977
|
-
is missing, spent, expired, or bound to another caller, action or person) and
|
|
1978
|
-
`wrong_password` (the step-up password is wrong).
|
|
1977
|
+
* The People operation is refused for the caller.
|
|
1979
1978
|
*/
|
|
1980
1979
|
export interface PeopleForbiddenError {
|
|
1981
1980
|
statusCode: 403;
|
|
1982
|
-
/**
|
|
1983
|
-
* Stable token naming the refusal. Branch on this, never on `message`.
|
|
1984
|
-
*/
|
|
1985
|
-
code: string;
|
|
1986
1981
|
/**
|
|
1987
1982
|
* Human-readable error message
|
|
1988
1983
|
*/
|
|
@@ -1991,6 +1986,7 @@ is missing, spent, expired, or bound to another caller, action or person) and
|
|
|
1991
1986
|
* Additional error details
|
|
1992
1987
|
*/
|
|
1993
1988
|
details?: Record;
|
|
1989
|
+
code: any | any | any | any | any;
|
|
1994
1990
|
}
|
|
1995
1991
|
/**
|
|
1996
1992
|
* The caller's current password, and the one action on one person the token will allow.
|
|
@@ -2017,14 +2013,10 @@ is missing, spent, expired, or bound to another caller, action or person) and
|
|
|
2017
2013
|
expiresAt: number;
|
|
2018
2014
|
}
|
|
2019
2015
|
/**
|
|
2020
|
-
*
|
|
2016
|
+
* Too many wrong step-up passwords.
|
|
2021
2017
|
*/
|
|
2022
2018
|
export interface StepUpLockedError {
|
|
2023
2019
|
statusCode: 429;
|
|
2024
|
-
/**
|
|
2025
|
-
* Stable token naming the refusal. Branch on this, never on `message`.
|
|
2026
|
-
*/
|
|
2027
|
-
code: string;
|
|
2028
2020
|
/**
|
|
2029
2021
|
* Human-readable error message
|
|
2030
2022
|
*/
|
|
@@ -2033,6 +2025,7 @@ is missing, spent, expired, or bound to another caller, action or person) and
|
|
|
2033
2025
|
* Additional error details
|
|
2034
2026
|
*/
|
|
2035
2027
|
details?: Record;
|
|
2028
|
+
code: any;
|
|
2036
2029
|
}
|
|
2037
2030
|
/**
|
|
2038
2031
|
* Sign the person out of every browser session and MCP connection.
|
|
@@ -2048,14 +2041,10 @@ is missing, spent, expired, or bound to another caller, action or person) and
|
|
|
2048
2041
|
stepUpToken: string;
|
|
2049
2042
|
}
|
|
2050
2043
|
/**
|
|
2051
|
-
*
|
|
2044
|
+
* The caller tried to disable their own account.
|
|
2052
2045
|
*/
|
|
2053
2046
|
export interface CannotDisableSelfError {
|
|
2054
2047
|
statusCode: 409;
|
|
2055
|
-
/**
|
|
2056
|
-
* Stable token naming the refusal. Branch on this, never on `message`.
|
|
2057
|
-
*/
|
|
2058
|
-
code: string;
|
|
2059
2048
|
/**
|
|
2060
2049
|
* Human-readable error message
|
|
2061
2050
|
*/
|
|
@@ -2064,6 +2053,7 @@ is missing, spent, expired, or bound to another caller, action or person) and
|
|
|
2064
2053
|
* Additional error details
|
|
2065
2054
|
*/
|
|
2066
2055
|
details?: Record;
|
|
2056
|
+
code: any;
|
|
2067
2057
|
}
|
|
2068
2058
|
/**
|
|
2069
2059
|
* Issue a password reset link for the person. Their old password stops working and their sessions are revoked.
|
|
@@ -10370,6 +10360,7 @@ export type SystemUpdateCheckStatus = Components.Schemas.SystemUpdateCheckStatus
|
|
|
10370
10360
|
export type SystemUpdatePhase = Components.Schemas.SystemUpdatePhase;
|
|
10371
10361
|
export type SystemUpdateOutcome = Components.Schemas.SystemUpdateOutcome;
|
|
10372
10362
|
export type PersonStatus = Components.Schemas.PersonStatus;
|
|
10363
|
+
export type PeopleErrorCode = Components.Schemas.PeopleErrorCode;
|
|
10373
10364
|
export type StepUpAction = Components.Schemas.StepUpAction;
|
|
10374
10365
|
export type NamespaceType = Components.Schemas.NamespaceType;
|
|
10375
10366
|
export type MailboxSyncStatus = Components.Schemas.MailboxSyncStatus;
|