@remit/api-openapi-spec 0.0.81 → 0.0.82
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 +558 -0
- package/package.json +1 -1
- package/request-validators.mjs +8 -3
package/openapi.json
CHANGED
|
@@ -6058,6 +6058,378 @@
|
|
|
6058
6058
|
}
|
|
6059
6059
|
}
|
|
6060
6060
|
},
|
|
6061
|
+
"/people": {
|
|
6062
|
+
"get": {
|
|
6063
|
+
"operationId": "PeopleOperations_listPeople",
|
|
6064
|
+
"description": "List everyone who signs in to this instance, ordered by email. Self-host only, and absent (404) while self sign-up is open.",
|
|
6065
|
+
"parameters": [],
|
|
6066
|
+
"responses": {
|
|
6067
|
+
"200": {
|
|
6068
|
+
"description": "The request has succeeded.",
|
|
6069
|
+
"content": {
|
|
6070
|
+
"application/json": {
|
|
6071
|
+
"schema": {
|
|
6072
|
+
"$ref": "#/components/schemas/RemitImap.PeopleListResponse"
|
|
6073
|
+
}
|
|
6074
|
+
}
|
|
6075
|
+
}
|
|
6076
|
+
},
|
|
6077
|
+
"401": {
|
|
6078
|
+
"description": "The request carried no usable credential. `code` is `unauthorized`.",
|
|
6079
|
+
"content": {
|
|
6080
|
+
"application/json": {
|
|
6081
|
+
"schema": {
|
|
6082
|
+
"$ref": "#/components/schemas/ApiError"
|
|
6083
|
+
}
|
|
6084
|
+
}
|
|
6085
|
+
}
|
|
6086
|
+
},
|
|
6087
|
+
"403": {
|
|
6088
|
+
"description": "The People operation is refused for the caller. `code` is one of\n`sign_in_disabled` (the kill switch is on), `caller_disabled` (the caller's\naccount is disabled or gone), `foreign_origin` (an unsafe request from an\norigin this instance does not serve), `step_up_required` (the step-up token\nis missing, spent, expired, or bound to another caller, action or person) and\n`wrong_password` (the step-up password is wrong).",
|
|
6089
|
+
"content": {
|
|
6090
|
+
"application/json": {
|
|
6091
|
+
"schema": {
|
|
6092
|
+
"$ref": "#/components/schemas/ApiError"
|
|
6093
|
+
}
|
|
6094
|
+
}
|
|
6095
|
+
}
|
|
6096
|
+
},
|
|
6097
|
+
"404": {
|
|
6098
|
+
"description": "Nothing answers to this address, or the caller may not learn that something does. `code` is `not_found`.",
|
|
6099
|
+
"content": {
|
|
6100
|
+
"application/json": {
|
|
6101
|
+
"schema": {
|
|
6102
|
+
"$ref": "#/components/schemas/ApiError"
|
|
6103
|
+
}
|
|
6104
|
+
}
|
|
6105
|
+
}
|
|
6106
|
+
}
|
|
6107
|
+
},
|
|
6108
|
+
"x-amazon-apigateway-integration": {
|
|
6109
|
+
"type": "aws_proxy",
|
|
6110
|
+
"httpMethod": "POST",
|
|
6111
|
+
"passthroughBehavior": "when_no_match",
|
|
6112
|
+
"uri": {
|
|
6113
|
+
"Fn::Sub": "arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:{{HandlerFunctionName}}/invocations"
|
|
6114
|
+
}
|
|
6115
|
+
}
|
|
6116
|
+
}
|
|
6117
|
+
},
|
|
6118
|
+
"/people/step-up": {
|
|
6119
|
+
"post": {
|
|
6120
|
+
"operationId": "PeopleOperations_createStepUp",
|
|
6121
|
+
"description": "Trade the caller's current password for a single-use token that allows one action on one person for five minutes. Five wrong passwords in 15 minutes refuse further step-ups with 429. Absent (404) while self sign-up is open, or when the person does not exist.",
|
|
6122
|
+
"parameters": [],
|
|
6123
|
+
"responses": {
|
|
6124
|
+
"200": {
|
|
6125
|
+
"description": "The request has succeeded.",
|
|
6126
|
+
"content": {
|
|
6127
|
+
"application/json": {
|
|
6128
|
+
"schema": {
|
|
6129
|
+
"$ref": "#/components/schemas/RemitImap.StepUpResponse"
|
|
6130
|
+
}
|
|
6131
|
+
}
|
|
6132
|
+
}
|
|
6133
|
+
},
|
|
6134
|
+
"401": {
|
|
6135
|
+
"description": "The request carried no usable credential. `code` is `unauthorized`.",
|
|
6136
|
+
"content": {
|
|
6137
|
+
"application/json": {
|
|
6138
|
+
"schema": {
|
|
6139
|
+
"$ref": "#/components/schemas/ApiError"
|
|
6140
|
+
}
|
|
6141
|
+
}
|
|
6142
|
+
}
|
|
6143
|
+
},
|
|
6144
|
+
"403": {
|
|
6145
|
+
"description": "The People operation is refused for the caller. `code` is one of\n`sign_in_disabled` (the kill switch is on), `caller_disabled` (the caller's\naccount is disabled or gone), `foreign_origin` (an unsafe request from an\norigin this instance does not serve), `step_up_required` (the step-up token\nis missing, spent, expired, or bound to another caller, action or person) and\n`wrong_password` (the step-up password is wrong).",
|
|
6146
|
+
"content": {
|
|
6147
|
+
"application/json": {
|
|
6148
|
+
"schema": {
|
|
6149
|
+
"$ref": "#/components/schemas/ApiError"
|
|
6150
|
+
}
|
|
6151
|
+
}
|
|
6152
|
+
}
|
|
6153
|
+
},
|
|
6154
|
+
"404": {
|
|
6155
|
+
"description": "Nothing answers to this address, or the caller may not learn that something does. `code` is `not_found`.",
|
|
6156
|
+
"content": {
|
|
6157
|
+
"application/json": {
|
|
6158
|
+
"schema": {
|
|
6159
|
+
"$ref": "#/components/schemas/ApiError"
|
|
6160
|
+
}
|
|
6161
|
+
}
|
|
6162
|
+
}
|
|
6163
|
+
},
|
|
6164
|
+
"429": {
|
|
6165
|
+
"description": "Five wrong step-up passwords in 15 minutes. `code` is `step_up_locked`.",
|
|
6166
|
+
"content": {
|
|
6167
|
+
"application/json": {
|
|
6168
|
+
"schema": {
|
|
6169
|
+
"$ref": "#/components/schemas/ApiError"
|
|
6170
|
+
}
|
|
6171
|
+
}
|
|
6172
|
+
}
|
|
6173
|
+
}
|
|
6174
|
+
},
|
|
6175
|
+
"requestBody": {
|
|
6176
|
+
"required": true,
|
|
6177
|
+
"content": {
|
|
6178
|
+
"application/json": {
|
|
6179
|
+
"schema": {
|
|
6180
|
+
"$ref": "#/components/schemas/RemitImap.StepUpInput"
|
|
6181
|
+
}
|
|
6182
|
+
}
|
|
6183
|
+
}
|
|
6184
|
+
},
|
|
6185
|
+
"x-amazon-apigateway-integration": {
|
|
6186
|
+
"type": "aws_proxy",
|
|
6187
|
+
"httpMethod": "POST",
|
|
6188
|
+
"passthroughBehavior": "when_no_match",
|
|
6189
|
+
"uri": {
|
|
6190
|
+
"Fn::Sub": "arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:{{HandlerFunctionName}}/invocations"
|
|
6191
|
+
}
|
|
6192
|
+
}
|
|
6193
|
+
}
|
|
6194
|
+
},
|
|
6195
|
+
"/people/{userId}": {
|
|
6196
|
+
"patch": {
|
|
6197
|
+
"operationId": "PeopleOperations_updatePerson",
|
|
6198
|
+
"description": "Disable or enable the person. Needs a `Disable` or `Enable` step-up for this person. Refused with 409 `cannot_disable_self` when the caller disables themselves.",
|
|
6199
|
+
"parameters": [
|
|
6200
|
+
{
|
|
6201
|
+
"name": "userId",
|
|
6202
|
+
"in": "path",
|
|
6203
|
+
"required": true,
|
|
6204
|
+
"schema": {
|
|
6205
|
+
"type": "string"
|
|
6206
|
+
}
|
|
6207
|
+
}
|
|
6208
|
+
],
|
|
6209
|
+
"responses": {
|
|
6210
|
+
"200": {
|
|
6211
|
+
"description": "The request has succeeded.",
|
|
6212
|
+
"content": {
|
|
6213
|
+
"application/json": {
|
|
6214
|
+
"schema": {
|
|
6215
|
+
"$ref": "#/components/schemas/RemitImap.Person"
|
|
6216
|
+
}
|
|
6217
|
+
}
|
|
6218
|
+
}
|
|
6219
|
+
},
|
|
6220
|
+
"401": {
|
|
6221
|
+
"description": "The request carried no usable credential. `code` is `unauthorized`.",
|
|
6222
|
+
"content": {
|
|
6223
|
+
"application/json": {
|
|
6224
|
+
"schema": {
|
|
6225
|
+
"$ref": "#/components/schemas/ApiError"
|
|
6226
|
+
}
|
|
6227
|
+
}
|
|
6228
|
+
}
|
|
6229
|
+
},
|
|
6230
|
+
"403": {
|
|
6231
|
+
"description": "The People operation is refused for the caller. `code` is one of\n`sign_in_disabled` (the kill switch is on), `caller_disabled` (the caller's\naccount is disabled or gone), `foreign_origin` (an unsafe request from an\norigin this instance does not serve), `step_up_required` (the step-up token\nis missing, spent, expired, or bound to another caller, action or person) and\n`wrong_password` (the step-up password is wrong).",
|
|
6232
|
+
"content": {
|
|
6233
|
+
"application/json": {
|
|
6234
|
+
"schema": {
|
|
6235
|
+
"$ref": "#/components/schemas/ApiError"
|
|
6236
|
+
}
|
|
6237
|
+
}
|
|
6238
|
+
}
|
|
6239
|
+
},
|
|
6240
|
+
"404": {
|
|
6241
|
+
"description": "Nothing answers to this address, or the caller may not learn that something does. `code` is `not_found`.",
|
|
6242
|
+
"content": {
|
|
6243
|
+
"application/json": {
|
|
6244
|
+
"schema": {
|
|
6245
|
+
"$ref": "#/components/schemas/ApiError"
|
|
6246
|
+
}
|
|
6247
|
+
}
|
|
6248
|
+
}
|
|
6249
|
+
},
|
|
6250
|
+
"409": {
|
|
6251
|
+
"description": "A person cannot disable themselves. `code` is `cannot_disable_self`.",
|
|
6252
|
+
"content": {
|
|
6253
|
+
"application/json": {
|
|
6254
|
+
"schema": {
|
|
6255
|
+
"$ref": "#/components/schemas/ApiError"
|
|
6256
|
+
}
|
|
6257
|
+
}
|
|
6258
|
+
}
|
|
6259
|
+
}
|
|
6260
|
+
},
|
|
6261
|
+
"requestBody": {
|
|
6262
|
+
"required": true,
|
|
6263
|
+
"content": {
|
|
6264
|
+
"application/json": {
|
|
6265
|
+
"schema": {
|
|
6266
|
+
"$ref": "#/components/schemas/RemitImap.UpdatePersonInput"
|
|
6267
|
+
}
|
|
6268
|
+
}
|
|
6269
|
+
}
|
|
6270
|
+
},
|
|
6271
|
+
"x-amazon-apigateway-integration": {
|
|
6272
|
+
"type": "aws_proxy",
|
|
6273
|
+
"httpMethod": "POST",
|
|
6274
|
+
"passthroughBehavior": "when_no_match",
|
|
6275
|
+
"uri": {
|
|
6276
|
+
"Fn::Sub": "arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:{{HandlerFunctionName}}/invocations"
|
|
6277
|
+
}
|
|
6278
|
+
}
|
|
6279
|
+
}
|
|
6280
|
+
},
|
|
6281
|
+
"/people/{userId}/password-reset": {
|
|
6282
|
+
"post": {
|
|
6283
|
+
"operationId": "PeopleOperations_createPasswordReset",
|
|
6284
|
+
"description": "Issue a single-use password reset link for the person, valid 24 hours. Needs a `ResetPassword` step-up for this person. The person's old password stops working and their sessions are revoked.",
|
|
6285
|
+
"parameters": [
|
|
6286
|
+
{
|
|
6287
|
+
"name": "userId",
|
|
6288
|
+
"in": "path",
|
|
6289
|
+
"required": true,
|
|
6290
|
+
"schema": {
|
|
6291
|
+
"type": "string"
|
|
6292
|
+
}
|
|
6293
|
+
}
|
|
6294
|
+
],
|
|
6295
|
+
"responses": {
|
|
6296
|
+
"200": {
|
|
6297
|
+
"description": "The request has succeeded.",
|
|
6298
|
+
"content": {
|
|
6299
|
+
"application/json": {
|
|
6300
|
+
"schema": {
|
|
6301
|
+
"$ref": "#/components/schemas/RemitImap.PasswordResetResponse"
|
|
6302
|
+
}
|
|
6303
|
+
}
|
|
6304
|
+
}
|
|
6305
|
+
},
|
|
6306
|
+
"401": {
|
|
6307
|
+
"description": "The request carried no usable credential. `code` is `unauthorized`.",
|
|
6308
|
+
"content": {
|
|
6309
|
+
"application/json": {
|
|
6310
|
+
"schema": {
|
|
6311
|
+
"$ref": "#/components/schemas/ApiError"
|
|
6312
|
+
}
|
|
6313
|
+
}
|
|
6314
|
+
}
|
|
6315
|
+
},
|
|
6316
|
+
"403": {
|
|
6317
|
+
"description": "The People operation is refused for the caller. `code` is one of\n`sign_in_disabled` (the kill switch is on), `caller_disabled` (the caller's\naccount is disabled or gone), `foreign_origin` (an unsafe request from an\norigin this instance does not serve), `step_up_required` (the step-up token\nis missing, spent, expired, or bound to another caller, action or person) and\n`wrong_password` (the step-up password is wrong).",
|
|
6318
|
+
"content": {
|
|
6319
|
+
"application/json": {
|
|
6320
|
+
"schema": {
|
|
6321
|
+
"$ref": "#/components/schemas/ApiError"
|
|
6322
|
+
}
|
|
6323
|
+
}
|
|
6324
|
+
}
|
|
6325
|
+
},
|
|
6326
|
+
"404": {
|
|
6327
|
+
"description": "Nothing answers to this address, or the caller may not learn that something does. `code` is `not_found`.",
|
|
6328
|
+
"content": {
|
|
6329
|
+
"application/json": {
|
|
6330
|
+
"schema": {
|
|
6331
|
+
"$ref": "#/components/schemas/ApiError"
|
|
6332
|
+
}
|
|
6333
|
+
}
|
|
6334
|
+
}
|
|
6335
|
+
}
|
|
6336
|
+
},
|
|
6337
|
+
"requestBody": {
|
|
6338
|
+
"required": true,
|
|
6339
|
+
"content": {
|
|
6340
|
+
"application/json": {
|
|
6341
|
+
"schema": {
|
|
6342
|
+
"$ref": "#/components/schemas/RemitImap.CreatePasswordResetInput"
|
|
6343
|
+
}
|
|
6344
|
+
}
|
|
6345
|
+
}
|
|
6346
|
+
},
|
|
6347
|
+
"x-amazon-apigateway-integration": {
|
|
6348
|
+
"type": "aws_proxy",
|
|
6349
|
+
"httpMethod": "POST",
|
|
6350
|
+
"passthroughBehavior": "when_no_match",
|
|
6351
|
+
"uri": {
|
|
6352
|
+
"Fn::Sub": "arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:{{HandlerFunctionName}}/invocations"
|
|
6353
|
+
}
|
|
6354
|
+
}
|
|
6355
|
+
}
|
|
6356
|
+
},
|
|
6357
|
+
"/people/{userId}/sign-out": {
|
|
6358
|
+
"post": {
|
|
6359
|
+
"operationId": "PeopleOperations_signOutPerson",
|
|
6360
|
+
"description": "Sign the person out of every browser session and MCP connection. Needs a `SignOut` step-up for this person. A JWT already minted works until it expires, at most 15 minutes.",
|
|
6361
|
+
"parameters": [
|
|
6362
|
+
{
|
|
6363
|
+
"name": "userId",
|
|
6364
|
+
"in": "path",
|
|
6365
|
+
"required": true,
|
|
6366
|
+
"schema": {
|
|
6367
|
+
"type": "string"
|
|
6368
|
+
}
|
|
6369
|
+
}
|
|
6370
|
+
],
|
|
6371
|
+
"responses": {
|
|
6372
|
+
"200": {
|
|
6373
|
+
"description": "The request has succeeded.",
|
|
6374
|
+
"content": {
|
|
6375
|
+
"application/json": {
|
|
6376
|
+
"schema": {
|
|
6377
|
+
"$ref": "#/components/schemas/RemitImap.Person"
|
|
6378
|
+
}
|
|
6379
|
+
}
|
|
6380
|
+
}
|
|
6381
|
+
},
|
|
6382
|
+
"401": {
|
|
6383
|
+
"description": "The request carried no usable credential. `code` is `unauthorized`.",
|
|
6384
|
+
"content": {
|
|
6385
|
+
"application/json": {
|
|
6386
|
+
"schema": {
|
|
6387
|
+
"$ref": "#/components/schemas/ApiError"
|
|
6388
|
+
}
|
|
6389
|
+
}
|
|
6390
|
+
}
|
|
6391
|
+
},
|
|
6392
|
+
"403": {
|
|
6393
|
+
"description": "The People operation is refused for the caller. `code` is one of\n`sign_in_disabled` (the kill switch is on), `caller_disabled` (the caller's\naccount is disabled or gone), `foreign_origin` (an unsafe request from an\norigin this instance does not serve), `step_up_required` (the step-up token\nis missing, spent, expired, or bound to another caller, action or person) and\n`wrong_password` (the step-up password is wrong).",
|
|
6394
|
+
"content": {
|
|
6395
|
+
"application/json": {
|
|
6396
|
+
"schema": {
|
|
6397
|
+
"$ref": "#/components/schemas/ApiError"
|
|
6398
|
+
}
|
|
6399
|
+
}
|
|
6400
|
+
}
|
|
6401
|
+
},
|
|
6402
|
+
"404": {
|
|
6403
|
+
"description": "Nothing answers to this address, or the caller may not learn that something does. `code` is `not_found`.",
|
|
6404
|
+
"content": {
|
|
6405
|
+
"application/json": {
|
|
6406
|
+
"schema": {
|
|
6407
|
+
"$ref": "#/components/schemas/ApiError"
|
|
6408
|
+
}
|
|
6409
|
+
}
|
|
6410
|
+
}
|
|
6411
|
+
}
|
|
6412
|
+
},
|
|
6413
|
+
"requestBody": {
|
|
6414
|
+
"required": true,
|
|
6415
|
+
"content": {
|
|
6416
|
+
"application/json": {
|
|
6417
|
+
"schema": {
|
|
6418
|
+
"$ref": "#/components/schemas/RemitImap.SignOutPersonInput"
|
|
6419
|
+
}
|
|
6420
|
+
}
|
|
6421
|
+
}
|
|
6422
|
+
},
|
|
6423
|
+
"x-amazon-apigateway-integration": {
|
|
6424
|
+
"type": "aws_proxy",
|
|
6425
|
+
"httpMethod": "POST",
|
|
6426
|
+
"passthroughBehavior": "when_no_match",
|
|
6427
|
+
"uri": {
|
|
6428
|
+
"Fn::Sub": "arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:{{HandlerFunctionName}}/invocations"
|
|
6429
|
+
}
|
|
6430
|
+
}
|
|
6431
|
+
}
|
|
6432
|
+
},
|
|
6061
6433
|
"/settings": {
|
|
6062
6434
|
"get": {
|
|
6063
6435
|
"operationId": "UserSettingsOperations_getUserSettings",
|
|
@@ -9825,6 +10197,18 @@
|
|
|
9825
10197
|
},
|
|
9826
10198
|
"description": "Input for creating an outbox message"
|
|
9827
10199
|
},
|
|
10200
|
+
"RemitImap.CreatePasswordResetInput": {
|
|
10201
|
+
"type": "object",
|
|
10202
|
+
"required": [
|
|
10203
|
+
"stepUpToken"
|
|
10204
|
+
],
|
|
10205
|
+
"properties": {
|
|
10206
|
+
"stepUpToken": {
|
|
10207
|
+
"type": "string"
|
|
10208
|
+
}
|
|
10209
|
+
},
|
|
10210
|
+
"description": "Issue a password reset link for the person. Their old password stops working and their sessions are revoked."
|
|
10211
|
+
},
|
|
9828
10212
|
"RemitImap.DeleteAccountConfigResponse": {
|
|
9829
10213
|
"type": "object",
|
|
9830
10214
|
"required": [
|
|
@@ -11867,6 +12251,29 @@
|
|
|
11867
12251
|
],
|
|
11868
12252
|
"description": "Status of an outbox message in the send queue"
|
|
11869
12253
|
},
|
|
12254
|
+
"RemitImap.PasswordResetResponse": {
|
|
12255
|
+
"type": "object",
|
|
12256
|
+
"required": [
|
|
12257
|
+
"person",
|
|
12258
|
+
"resetUrl",
|
|
12259
|
+
"expiresAt"
|
|
12260
|
+
],
|
|
12261
|
+
"properties": {
|
|
12262
|
+
"person": {
|
|
12263
|
+
"$ref": "#/components/schemas/RemitImap.Person"
|
|
12264
|
+
},
|
|
12265
|
+
"resetUrl": {
|
|
12266
|
+
"type": "string",
|
|
12267
|
+
"description": "The single-use reset link. It exists only in this response."
|
|
12268
|
+
},
|
|
12269
|
+
"expiresAt": {
|
|
12270
|
+
"type": "integer",
|
|
12271
|
+
"format": "int64",
|
|
12272
|
+
"description": "When the link stops working, epoch milliseconds: issue time plus 24 hours."
|
|
12273
|
+
}
|
|
12274
|
+
},
|
|
12275
|
+
"description": "The person, and the reset link to hand them. The link is shown once and works once."
|
|
12276
|
+
},
|
|
11870
12277
|
"RemitImap.PendingConfigImport": {
|
|
11871
12278
|
"type": "object",
|
|
11872
12279
|
"required": [
|
|
@@ -11892,6 +12299,79 @@
|
|
|
11892
12299
|
},
|
|
11893
12300
|
"description": "An import that is still waiting for IMAP discovery to produce the folders its\nfile named. The folder appointed to a role, a folder's own display name or\nmute, and a filter's move destination are all bound by path; a path this\naccount does not hold yet is kept, not guessed, and bound the moment discovery\nfinds it."
|
|
11894
12301
|
},
|
|
12302
|
+
"RemitImap.PeopleListResponse": {
|
|
12303
|
+
"type": "object",
|
|
12304
|
+
"required": [
|
|
12305
|
+
"people"
|
|
12306
|
+
],
|
|
12307
|
+
"properties": {
|
|
12308
|
+
"people": {
|
|
12309
|
+
"type": "array",
|
|
12310
|
+
"items": {
|
|
12311
|
+
"$ref": "#/components/schemas/RemitImap.Person"
|
|
12312
|
+
}
|
|
12313
|
+
}
|
|
12314
|
+
},
|
|
12315
|
+
"description": "Everyone who signs in to this instance, ordered by email."
|
|
12316
|
+
},
|
|
12317
|
+
"RemitImap.Person": {
|
|
12318
|
+
"type": "object",
|
|
12319
|
+
"required": [
|
|
12320
|
+
"userId",
|
|
12321
|
+
"email",
|
|
12322
|
+
"createdAt",
|
|
12323
|
+
"lastSignInAt",
|
|
12324
|
+
"sessionCount",
|
|
12325
|
+
"status",
|
|
12326
|
+
"isCaller"
|
|
12327
|
+
],
|
|
12328
|
+
"properties": {
|
|
12329
|
+
"userId": {
|
|
12330
|
+
"type": "string",
|
|
12331
|
+
"description": "The person's user id."
|
|
12332
|
+
},
|
|
12333
|
+
"email": {
|
|
12334
|
+
"type": "string",
|
|
12335
|
+
"description": "The address the person signs in with."
|
|
12336
|
+
},
|
|
12337
|
+
"createdAt": {
|
|
12338
|
+
"type": "integer",
|
|
12339
|
+
"format": "int64",
|
|
12340
|
+
"description": "When the account was created, epoch milliseconds."
|
|
12341
|
+
},
|
|
12342
|
+
"lastSignInAt": {
|
|
12343
|
+
"type": "integer",
|
|
12344
|
+
"format": "int64",
|
|
12345
|
+
"description": "When the person last signed in, epoch milliseconds."
|
|
12346
|
+
},
|
|
12347
|
+
"sessionCount": {
|
|
12348
|
+
"type": "integer",
|
|
12349
|
+
"format": "int32",
|
|
12350
|
+
"description": "Unexpired browser sessions the person holds."
|
|
12351
|
+
},
|
|
12352
|
+
"status": {
|
|
12353
|
+
"allOf": [
|
|
12354
|
+
{
|
|
12355
|
+
"$ref": "#/components/schemas/RemitImap.PersonStatus"
|
|
12356
|
+
}
|
|
12357
|
+
],
|
|
12358
|
+
"description": "Whether the person may sign in."
|
|
12359
|
+
},
|
|
12360
|
+
"isCaller": {
|
|
12361
|
+
"type": "boolean",
|
|
12362
|
+
"description": "Whether this row is the caller."
|
|
12363
|
+
}
|
|
12364
|
+
},
|
|
12365
|
+
"description": "One person who signs in to this self-hosted instance."
|
|
12366
|
+
},
|
|
12367
|
+
"RemitImap.PersonStatus": {
|
|
12368
|
+
"type": "string",
|
|
12369
|
+
"enum": [
|
|
12370
|
+
"Active",
|
|
12371
|
+
"Disabled"
|
|
12372
|
+
],
|
|
12373
|
+
"description": "Whether a person may sign in. A disabled person's sessions, MCP grants and calendar feeds are revoked, and every sign-in is refused."
|
|
12374
|
+
},
|
|
11895
12375
|
"RemitImap.PlacementAction": {
|
|
11896
12376
|
"type": "string",
|
|
11897
12377
|
"enum": [
|
|
@@ -12245,6 +12725,18 @@
|
|
|
12245
12725
|
],
|
|
12246
12726
|
"description": "Trust level for the From address, derived at read time from AddressFlags + counters."
|
|
12247
12727
|
},
|
|
12728
|
+
"RemitImap.SignOutPersonInput": {
|
|
12729
|
+
"type": "object",
|
|
12730
|
+
"required": [
|
|
12731
|
+
"stepUpToken"
|
|
12732
|
+
],
|
|
12733
|
+
"properties": {
|
|
12734
|
+
"stepUpToken": {
|
|
12735
|
+
"type": "string"
|
|
12736
|
+
}
|
|
12737
|
+
},
|
|
12738
|
+
"description": "Sign the person out of every browser session and MCP connection."
|
|
12739
|
+
},
|
|
12248
12740
|
"RemitImap.SortOrder": {
|
|
12249
12741
|
"type": "string",
|
|
12250
12742
|
"enum": [
|
|
@@ -12324,6 +12816,56 @@
|
|
|
12324
12816
|
],
|
|
12325
12817
|
"description": "Gmail-style star colors for message/thread marking"
|
|
12326
12818
|
},
|
|
12819
|
+
"RemitImap.StepUpAction": {
|
|
12820
|
+
"type": "string",
|
|
12821
|
+
"enum": [
|
|
12822
|
+
"SignOut",
|
|
12823
|
+
"Disable",
|
|
12824
|
+
"Enable",
|
|
12825
|
+
"ResetPassword"
|
|
12826
|
+
],
|
|
12827
|
+
"description": "The operation a step-up token is spent on. `updatePerson` maps `Disabled` to `Disable` and `Active` to `Enable`."
|
|
12828
|
+
},
|
|
12829
|
+
"RemitImap.StepUpInput": {
|
|
12830
|
+
"type": "object",
|
|
12831
|
+
"required": [
|
|
12832
|
+
"password",
|
|
12833
|
+
"action",
|
|
12834
|
+
"userId"
|
|
12835
|
+
],
|
|
12836
|
+
"properties": {
|
|
12837
|
+
"password": {
|
|
12838
|
+
"type": "string",
|
|
12839
|
+
"description": "The caller's own current password."
|
|
12840
|
+
},
|
|
12841
|
+
"action": {
|
|
12842
|
+
"$ref": "#/components/schemas/RemitImap.StepUpAction"
|
|
12843
|
+
},
|
|
12844
|
+
"userId": {
|
|
12845
|
+
"type": "string",
|
|
12846
|
+
"description": "The person the token will act on."
|
|
12847
|
+
}
|
|
12848
|
+
},
|
|
12849
|
+
"description": "The caller's current password, and the one action on one person the token will allow."
|
|
12850
|
+
},
|
|
12851
|
+
"RemitImap.StepUpResponse": {
|
|
12852
|
+
"type": "object",
|
|
12853
|
+
"required": [
|
|
12854
|
+
"stepUpToken",
|
|
12855
|
+
"expiresAt"
|
|
12856
|
+
],
|
|
12857
|
+
"properties": {
|
|
12858
|
+
"stepUpToken": {
|
|
12859
|
+
"type": "string"
|
|
12860
|
+
},
|
|
12861
|
+
"expiresAt": {
|
|
12862
|
+
"type": "integer",
|
|
12863
|
+
"format": "int64",
|
|
12864
|
+
"description": "When the token stops working, epoch milliseconds."
|
|
12865
|
+
}
|
|
12866
|
+
},
|
|
12867
|
+
"description": "A single-use token for one action on one person. Spend it at once; it is never stored by the client."
|
|
12868
|
+
},
|
|
12327
12869
|
"RemitImap.SyncPhase": {
|
|
12328
12870
|
"type": "string",
|
|
12329
12871
|
"enum": [
|
|
@@ -13619,6 +14161,22 @@
|
|
|
13619
14161
|
},
|
|
13620
14162
|
"description": "Input for updating a draft outbox message"
|
|
13621
14163
|
},
|
|
14164
|
+
"RemitImap.UpdatePersonInput": {
|
|
14165
|
+
"type": "object",
|
|
14166
|
+
"required": [
|
|
14167
|
+
"status",
|
|
14168
|
+
"stepUpToken"
|
|
14169
|
+
],
|
|
14170
|
+
"properties": {
|
|
14171
|
+
"status": {
|
|
14172
|
+
"$ref": "#/components/schemas/RemitImap.PersonStatus"
|
|
14173
|
+
},
|
|
14174
|
+
"stepUpToken": {
|
|
14175
|
+
"type": "string"
|
|
14176
|
+
}
|
|
14177
|
+
},
|
|
14178
|
+
"description": "Disable or enable the person. Disabling also revokes their sessions, MCP grants and calendar feeds."
|
|
14179
|
+
},
|
|
13622
14180
|
"RemitImap.UpdateUserSettingsInput": {
|
|
13623
14181
|
"type": "object",
|
|
13624
14182
|
"properties": {
|
package/package.json
CHANGED