@remit/api-openapi-spec 0.0.11 → 0.0.12

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 +259 -0
  2. package/package.json +1 -1
package/openapi.json CHANGED
@@ -2185,6 +2185,68 @@
2185
2185
  }
2186
2186
  }
2187
2187
  },
2188
+ "/system/update": {
2189
+ "get": {
2190
+ "operationId": "SystemOperations_getSystemUpdate",
2191
+ "description": "Read the self-update resource: the running version, the outcome of the most recent manifest check, and the state of the current or last run. Owner-only, and absent (404) unless a manifest URL is configured (RFC 037 D7, D8).",
2192
+ "parameters": [],
2193
+ "responses": {
2194
+ "200": {
2195
+ "description": "The request has succeeded.",
2196
+ "content": {
2197
+ "application/json": {
2198
+ "schema": {
2199
+ "$ref": "#/components/schemas/RemitImap.SystemUpdateResponse"
2200
+ }
2201
+ }
2202
+ }
2203
+ }
2204
+ },
2205
+ "x-amazon-apigateway-integration": {
2206
+ "type": "aws_proxy",
2207
+ "httpMethod": "POST",
2208
+ "passthroughBehavior": "when_no_match",
2209
+ "uri": {
2210
+ "Fn::Sub": "arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:{{HandlerFunctionName}}/invocations"
2211
+ }
2212
+ }
2213
+ },
2214
+ "post": {
2215
+ "operationId": "SystemOperations_applySystemUpdate",
2216
+ "description": "Request installation of a specific release. Writes the request to the control seam and returns 202 with the same resource, including a runId. 409 when a run is in flight, 422 when the target is not the manifest's version. Owner-only, and absent (404) unless a manifest URL is configured (RFC 037 D7, D8).",
2217
+ "parameters": [],
2218
+ "responses": {
2219
+ "200": {
2220
+ "description": "The request has succeeded.",
2221
+ "content": {
2222
+ "application/json": {
2223
+ "schema": {
2224
+ "$ref": "#/components/schemas/RemitImap.SystemUpdateResponse"
2225
+ }
2226
+ }
2227
+ }
2228
+ }
2229
+ },
2230
+ "requestBody": {
2231
+ "required": true,
2232
+ "content": {
2233
+ "application/json": {
2234
+ "schema": {
2235
+ "$ref": "#/components/schemas/RemitImap.ApplyUpdateInput"
2236
+ }
2237
+ }
2238
+ }
2239
+ },
2240
+ "x-amazon-apigateway-integration": {
2241
+ "type": "aws_proxy",
2242
+ "httpMethod": "POST",
2243
+ "passthroughBehavior": "when_no_match",
2244
+ "uri": {
2245
+ "Fn::Sub": "arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:{{HandlerFunctionName}}/invocations"
2246
+ }
2247
+ }
2248
+ }
2249
+ },
2188
2250
  "/threads": {
2189
2251
  "get": {
2190
2252
  "operationId": "UnifiedThreadOperations_listAllThreads",
@@ -3039,6 +3101,19 @@
3039
3101
  ],
3040
3102
  "description": "Address roles in message headers per RFC 2822 Sections 3.6.2 and 3.6.3"
3041
3103
  },
3104
+ "RemitImap.ApplyUpdateInput": {
3105
+ "type": "object",
3106
+ "required": [
3107
+ "targetVersion"
3108
+ ],
3109
+ "properties": {
3110
+ "targetVersion": {
3111
+ "type": "string",
3112
+ "description": "The release version to install, `vX.Y.Z`"
3113
+ }
3114
+ },
3115
+ "description": "Request to install a specific release. `targetVersion` must equal the version the latest check reported; the backend passes exactly this one field across the control seam and resolves nothing else (RFC 037 R6)."
3116
+ },
3042
3117
  "RemitImap.AppointFolderRoleInput": {
3043
3118
  "type": "object",
3044
3119
  "required": [
@@ -5434,6 +5509,190 @@
5434
5509
  },
5435
5510
  "description": "Sync trigger response"
5436
5511
  },
5512
+ "RemitImap.SystemUpdateCheck": {
5513
+ "type": "object",
5514
+ "required": [
5515
+ "status"
5516
+ ],
5517
+ "properties": {
5518
+ "status": {
5519
+ "allOf": [
5520
+ {
5521
+ "$ref": "#/components/schemas/RemitImap.SystemUpdateCheckStatus"
5522
+ }
5523
+ ],
5524
+ "description": "Outcome of the most recent manifest check"
5525
+ },
5526
+ "lastCheckedAt": {
5527
+ "type": "string",
5528
+ "description": "When the manifest was last fetched, ISO 8601. Absent when the check is disabled."
5529
+ },
5530
+ "latestVersion": {
5531
+ "type": "string",
5532
+ "description": "Latest release version named by the manifest, `vX.Y.Z`. Present when status is `ok`."
5533
+ },
5534
+ "publishedAt": {
5535
+ "type": "string",
5536
+ "description": "Publication date of the latest release, ISO 8601. Present when status is `ok`."
5537
+ },
5538
+ "summary": {
5539
+ "type": "string",
5540
+ "description": "One authored sentence describing the latest release. Present when status is `ok`."
5541
+ },
5542
+ "releaseNotesUrl": {
5543
+ "type": "string",
5544
+ "description": "URL of the release notes for the latest release. Present when status is `ok`."
5545
+ },
5546
+ "updateAvailable": {
5547
+ "type": "boolean",
5548
+ "description": "Whether the latest release is newer than the running version. Present when status is `ok`."
5549
+ },
5550
+ "schemaVersion": {
5551
+ "type": "integer",
5552
+ "format": "int32",
5553
+ "description": "Schema version of the latest release, from the manifest. Compared against `currentSchemaVersion` to derive whether applying the release runs a migration. Absent when the manifest does not carry it, so a state file written before this field existed still validates."
5554
+ },
5555
+ "error": {
5556
+ "type": "string",
5557
+ "description": "Plain sentence naming why the check failed. Present when status is `failed`."
5558
+ }
5559
+ },
5560
+ "description": "The most recent manifest check. The check block is independent of the run block: a failed check never renders as a failed update. On `failed` the version fields are absent and an `error` sentence explains why; on `disabled` only the status is present."
5561
+ },
5562
+ "RemitImap.SystemUpdateCheckStatus": {
5563
+ "type": "string",
5564
+ "enum": [
5565
+ "ok",
5566
+ "failed",
5567
+ "disabled"
5568
+ ],
5569
+ "description": "Outcome of the most recent manifest check. `ok` when a manifest was fetched and validated, `failed` when it could not be, `disabled` when no manifest URL is configured or no check has ever run (RFC 037 D8)."
5570
+ },
5571
+ "RemitImap.SystemUpdateOutcome": {
5572
+ "type": "string",
5573
+ "enum": [
5574
+ "succeeded",
5575
+ "rolledBack",
5576
+ "rollbackFailed",
5577
+ "abandoned"
5578
+ ],
5579
+ "description": "Terminal outcome of an update run. `null` while a run is in flight; `succeeded` when the new version committed, `rolledBack` when it did not and the previous version was restored, `rollbackFailed` when the restore itself failed and an operator shell is needed, `abandoned` when the run ended having changed nothing (RFC 037 R11)."
5580
+ },
5581
+ "RemitImap.SystemUpdatePhase": {
5582
+ "type": "string",
5583
+ "enum": [
5584
+ "checking",
5585
+ "pulling",
5586
+ "snapshotting",
5587
+ "stopping",
5588
+ "starting",
5589
+ "verifying",
5590
+ "committing",
5591
+ "rollingBack",
5592
+ "recovering"
5593
+ ],
5594
+ "description": "Phase of an update run. Advances through the atomic update sequence; `checking` before anything is pulled, `committing` once the new version has answered the gate (RFC 037 R9, R11)."
5595
+ },
5596
+ "RemitImap.SystemUpdateResponse": {
5597
+ "type": "object",
5598
+ "required": [
5599
+ "currentVersion",
5600
+ "check",
5601
+ "run"
5602
+ ],
5603
+ "properties": {
5604
+ "currentVersion": {
5605
+ "type": "string",
5606
+ "description": "The version the instance is currently running, `vX.Y.Z` (or a non-release tag such as `latest`)"
5607
+ },
5608
+ "currentSchemaVersion": {
5609
+ "type": "integer",
5610
+ "format": "int32",
5611
+ "description": "Schema version the running instance is on, written by the wrapper at check time. The consent UI derives that applying a release runs a migration from `check.schemaVersion` being greater than this. Absent when unknown, so a state file written before this field existed still validates."
5612
+ },
5613
+ "check": {
5614
+ "allOf": [
5615
+ {
5616
+ "$ref": "#/components/schemas/RemitImap.SystemUpdateCheck"
5617
+ }
5618
+ ],
5619
+ "description": "The most recent manifest check"
5620
+ },
5621
+ "run": {
5622
+ "type": "object",
5623
+ "allOf": [
5624
+ {
5625
+ "$ref": "#/components/schemas/RemitImap.SystemUpdateRun"
5626
+ }
5627
+ ],
5628
+ "nullable": true,
5629
+ "description": "The current or last update run, or `null` when no run has ever started"
5630
+ }
5631
+ },
5632
+ "description": "The self-update resource: the running version, the outcome of the most recent manifest check, and the state of the current or last run. One read serves every interface state. The check block and the run block are independent by construction (RFC 037 D7)."
5633
+ },
5634
+ "RemitImap.SystemUpdateRun": {
5635
+ "type": "object",
5636
+ "required": [
5637
+ "runId",
5638
+ "fromVersion",
5639
+ "targetVersion",
5640
+ "phase",
5641
+ "outcome",
5642
+ "startedAt",
5643
+ "updatedAt",
5644
+ "message",
5645
+ "logCommand"
5646
+ ],
5647
+ "properties": {
5648
+ "runId": {
5649
+ "type": "string",
5650
+ "description": "Opaque id of this run; the client persists it and treats subsequent request failures as an in-progress apply until the surface answers"
5651
+ },
5652
+ "fromVersion": {
5653
+ "type": "string",
5654
+ "description": "Version the run started from, `vX.Y.Z`"
5655
+ },
5656
+ "targetVersion": {
5657
+ "type": "string",
5658
+ "description": "Version the run is installing, `vX.Y.Z`"
5659
+ },
5660
+ "phase": {
5661
+ "allOf": [
5662
+ {
5663
+ "$ref": "#/components/schemas/RemitImap.SystemUpdatePhase"
5664
+ }
5665
+ ],
5666
+ "description": "Phase the run is in"
5667
+ },
5668
+ "outcome": {
5669
+ "allOf": [
5670
+ {
5671
+ "$ref": "#/components/schemas/RemitImap.SystemUpdateOutcome"
5672
+ }
5673
+ ],
5674
+ "nullable": true,
5675
+ "description": "Terminal outcome, or `null` while the run is in flight"
5676
+ },
5677
+ "startedAt": {
5678
+ "type": "string",
5679
+ "description": "When the run started, ISO 8601"
5680
+ },
5681
+ "updatedAt": {
5682
+ "type": "string",
5683
+ "description": "When the run state was last written, ISO 8601"
5684
+ },
5685
+ "message": {
5686
+ "type": "string",
5687
+ "description": "Plain sentence naming the current cause, rendered to the operator verbatim"
5688
+ },
5689
+ "logCommand": {
5690
+ "type": "string",
5691
+ "description": "A command that can be pasted into a shell to see more, rendered to the operator verbatim"
5692
+ }
5693
+ },
5694
+ "description": "The current or last update run. `null` when no run has ever started. `outcome` is `null` while a run is in flight. `message` and `logCommand` are rendered to the operator verbatim: a plain sentence naming the cause and a command that can be pasted into a shell to see more (RFC 037 Interface)."
5695
+ },
5437
5696
  "RemitImap.TestConnectionInput": {
5438
5697
  "type": "object",
5439
5698
  "required": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/api-openapi-spec",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "description": "Remit API OpenAPI 3 document, generated from TypeSpec.",
5
5
  "exports": {
6
6
  ".": "./openapi.json",