@serviceai/api-spec 1.6.2 → 1.6.3

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 CHANGED
@@ -2,7 +2,7 @@
2
2
  "openapi": "3.1.0",
3
3
  "info": {
4
4
  "title": "ServiceAi API",
5
- "version": "1.6.2",
5
+ "version": "1.6.3",
6
6
  "description": "Source-of-truth API contract for ServiceAi. Generated from `shared/schema.ts` Zod schemas by `scripts/build-api-spec.ts`. Versioning policy: see `docs/api-versioning.md`. The hand-written docs/ios-contract.md and docs/lidar-mobile-upload-contract.md are human-readable design notes only — this spec is the canonical wire contract.",
7
7
  "license": {
8
8
  "name": "Proprietary",
@@ -146,7 +146,7 @@
146
146
  "properties": {
147
147
  "apiVersion": {
148
148
  "type": "string",
149
- "example": "1.6.2"
149
+ "example": "1.6.3"
150
150
  },
151
151
  "minClientVersion": {
152
152
  "type": "string",
@@ -4975,6 +4975,85 @@
4975
4975
  ],
4976
4976
  "additionalProperties": false
4977
4977
  },
4978
+ {
4979
+ "type": "object",
4980
+ "properties": {
4981
+ "action": {
4982
+ "type": "string",
4983
+ "enum": [
4984
+ "separate"
4985
+ ]
4986
+ },
4987
+ "rooms": {
4988
+ "type": "array",
4989
+ "items": {
4990
+ "type": "object",
4991
+ "properties": {
4992
+ "id": {
4993
+ "type": "integer",
4994
+ "exclusiveMinimum": 0
4995
+ },
4996
+ "revision": {
4997
+ "type": "string",
4998
+ "pattern": "^[a-f0-9]{64}$"
4999
+ }
5000
+ },
5001
+ "required": [
5002
+ "id",
5003
+ "revision"
5004
+ ],
5005
+ "additionalProperties": false
5006
+ }
5007
+ }
5008
+ },
5009
+ "required": [
5010
+ "action",
5011
+ "rooms"
5012
+ ],
5013
+ "additionalProperties": false
5014
+ },
5015
+ {
5016
+ "type": "object",
5017
+ "properties": {
5018
+ "action": {
5019
+ "type": "string",
5020
+ "enum": [
5021
+ "disconnect"
5022
+ ]
5023
+ },
5024
+ "connectionId": {
5025
+ "type": "integer",
5026
+ "exclusiveMinimum": 0
5027
+ },
5028
+ "rooms": {
5029
+ "type": "array",
5030
+ "items": {
5031
+ "type": "object",
5032
+ "properties": {
5033
+ "id": {
5034
+ "type": "integer",
5035
+ "exclusiveMinimum": 0
5036
+ },
5037
+ "revision": {
5038
+ "type": "string",
5039
+ "pattern": "^[a-f0-9]{64}$"
5040
+ }
5041
+ },
5042
+ "required": [
5043
+ "id",
5044
+ "revision"
5045
+ ],
5046
+ "additionalProperties": false
5047
+ }
5048
+ }
5049
+ },
5050
+ "required": [
5051
+ "action",
5052
+ "connectionId",
5053
+ "rooms"
5054
+ ],
5055
+ "additionalProperties": false
5056
+ },
4978
5057
  {
4979
5058
  "type": "object",
4980
5059
  "properties": {
package/openapi.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  openapi: 3.1.0
2
2
  info:
3
3
  title: ServiceAi API
4
- version: 1.6.2
4
+ version: 1.6.3
5
5
  description: >-
6
6
  Source-of-truth API contract for ServiceAi. Generated from `shared/schema.ts` Zod schemas by
7
7
  `scripts/build-api-spec.ts`. Versioning policy: see `docs/api-versioning.md`. The hand-written docs/ios-contract.md
@@ -103,7 +103,7 @@ components:
103
103
  properties:
104
104
  apiVersion:
105
105
  type: string
106
- example: 1.6.2
106
+ example: 1.6.3
107
107
  minClientVersion:
108
108
  type: string
109
109
  example: 1.0.0
@@ -3496,6 +3496,60 @@ components:
3496
3496
  - action
3497
3497
  - token
3498
3498
  additionalProperties: false
3499
+ - type: object
3500
+ properties:
3501
+ action:
3502
+ type: string
3503
+ enum:
3504
+ - separate
3505
+ rooms:
3506
+ type: array
3507
+ items:
3508
+ type: object
3509
+ properties:
3510
+ id:
3511
+ type: integer
3512
+ exclusiveMinimum: 0
3513
+ revision:
3514
+ type: string
3515
+ pattern: ^[a-f0-9]{64}$
3516
+ required:
3517
+ - id
3518
+ - revision
3519
+ additionalProperties: false
3520
+ required:
3521
+ - action
3522
+ - rooms
3523
+ additionalProperties: false
3524
+ - type: object
3525
+ properties:
3526
+ action:
3527
+ type: string
3528
+ enum:
3529
+ - disconnect
3530
+ connectionId:
3531
+ type: integer
3532
+ exclusiveMinimum: 0
3533
+ rooms:
3534
+ type: array
3535
+ items:
3536
+ type: object
3537
+ properties:
3538
+ id:
3539
+ type: integer
3540
+ exclusiveMinimum: 0
3541
+ revision:
3542
+ type: string
3543
+ pattern: ^[a-f0-9]{64}$
3544
+ required:
3545
+ - id
3546
+ - revision
3547
+ additionalProperties: false
3548
+ required:
3549
+ - action
3550
+ - connectionId
3551
+ - rooms
3552
+ additionalProperties: false
3499
3553
  - type: object
3500
3554
  properties:
3501
3555
  action:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serviceai/api-spec",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
4
4
  "description": "ServiceAi OpenAPI 3.1 contract + generated TS types. Auto-published from the desktop repo.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
package/types.d.ts CHANGED
@@ -4400,7 +4400,7 @@ export interface components {
4400
4400
  };
4401
4401
  /** @description Cross-platform version handshake manifest. See docs/api-versioning.md. */
4402
4402
  VersionManifest: {
4403
- /** @example 1.6.2 */
4403
+ /** @example 1.6.3 */
4404
4404
  apiVersion: string;
4405
4405
  /** @example 1.0.0 */
4406
4406
  minClientVersion: string;
@@ -5558,6 +5558,21 @@ export interface components {
5558
5558
  /** @enum {string} */
5559
5559
  action: "undo";
5560
5560
  token: string;
5561
+ } | {
5562
+ /** @enum {string} */
5563
+ action: "separate";
5564
+ rooms: {
5565
+ id: number;
5566
+ revision: string;
5567
+ }[];
5568
+ } | {
5569
+ /** @enum {string} */
5570
+ action: "disconnect";
5571
+ connectionId: number;
5572
+ rooms: {
5573
+ id: number;
5574
+ revision: string;
5575
+ }[];
5561
5576
  } | {
5562
5577
  /** @enum {string} */
5563
5578
  action: "connect";