@kosuke-ai/kosuke 1.2.3578 → 1.2.3583

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.2.3583
4
+
5
+ - The Mac app now reports whether Kosuke has Microphone, system audio and Speech Recognition access, beside its other permissions. The iOS app reports where Notifications, Location, Photos, Camera and Microphone stand on each iPhone, at launch and whenever it comes back to the front, without asking for any of them. A super admin sees both in the user sheet. `user phone set` sends the iPhone report.
6
+
3
7
  ## 1.2.3578
4
8
 
5
9
  - `sessions search` takes `--sort status`: running and under-review sessions first, then to do, then completed, each the most recently updated first. Without it, sessions still come most recently active first.
@@ -347,27 +347,28 @@ import { operation as o345 } from './tasks/update.js';
347
347
  import { operation as o346 } from './tasks/update--personal.js';
348
348
  import { operation as o347 } from './user/api-keys-delete.js';
349
349
  import { operation as o348 } from './user/personal-space-get.js';
350
- import { operation as o349 } from './user/plan-get.js';
351
- import { operation as o350 } from './user/profile-get.js';
352
- import { operation as o351 } from './user/push-devices-create.js';
353
- import { operation as o352 } from './user/push-devices-delete.js';
354
- import { operation as o353 } from './user/settings-get.js';
355
- import { operation as o354 } from './user/settings-update.js';
356
- import { operation as o355 } from './user/usage-get.js';
357
- import { operation as o356 } from './workspaces/credits-get.js';
358
- import { operation as o357 } from './workspaces/get.js';
359
- import { operation as o358 } from './workspaces/list.js';
360
- import { operation as o359 } from './workspaces/members-list.js';
361
- import { operation as o360 } from './workspaces/members-list--all.js';
362
- import { operation as o361 } from './workspaces/memory-get.js';
363
- import { operation as o362 } from './workspaces/memory-set.js';
364
- import { operation as o363 } from './workspaces/personal-runtime-get.js';
365
- import { operation as o364 } from './workspaces/sandbox-hours-get.js';
366
- import { operation as o365 } from './workspaces/sandbox-limit-get.js';
367
- import { operation as o366 } from './workspaces/sandboxes-stop.js';
368
- import { operation as o367 } from './workspaces/timezone-set.js';
369
- import { operation as o368 } from './workspaces/usage-breakdown-get.js';
370
- import { operation as o369 } from './workspaces/usage-get.js';
350
+ import { operation as o349 } from './user/phone-set.js';
351
+ import { operation as o350 } from './user/plan-get.js';
352
+ import { operation as o351 } from './user/profile-get.js';
353
+ import { operation as o352 } from './user/push-devices-create.js';
354
+ import { operation as o353 } from './user/push-devices-delete.js';
355
+ import { operation as o354 } from './user/settings-get.js';
356
+ import { operation as o355 } from './user/settings-update.js';
357
+ import { operation as o356 } from './user/usage-get.js';
358
+ import { operation as o357 } from './workspaces/credits-get.js';
359
+ import { operation as o358 } from './workspaces/get.js';
360
+ import { operation as o359 } from './workspaces/list.js';
361
+ import { operation as o360 } from './workspaces/members-list.js';
362
+ import { operation as o361 } from './workspaces/members-list--all.js';
363
+ import { operation as o362 } from './workspaces/memory-get.js';
364
+ import { operation as o363 } from './workspaces/memory-set.js';
365
+ import { operation as o364 } from './workspaces/personal-runtime-get.js';
366
+ import { operation as o365 } from './workspaces/sandbox-hours-get.js';
367
+ import { operation as o366 } from './workspaces/sandbox-limit-get.js';
368
+ import { operation as o367 } from './workspaces/sandboxes-stop.js';
369
+ import { operation as o368 } from './workspaces/timezone-set.js';
370
+ import { operation as o369 } from './workspaces/usage-breakdown-get.js';
371
+ import { operation as o370 } from './workspaces/usage-get.js';
371
372
  export const operations = [
372
373
  o0,
373
374
  o1,
@@ -739,4 +740,5 @@ export const operations = [
739
740
  o367,
740
741
  o368,
741
742
  o369,
743
+ o370,
742
744
  ];
@@ -0,0 +1,51 @@
1
+ export const operation = {
2
+ "method": "post",
3
+ "path": "/api/push/permissions",
4
+ "command": [
5
+ "user",
6
+ "phone",
7
+ "set"
8
+ ],
9
+ "summary": "Report the iOS app's OS permissions on one iPhone: its installationId, the app bundle id and appVersion, readAt (when the app read them, an ISO 8601 time no more than a day before now or 5 minutes after), and the state of notifications, location, photos, camera and microphone (granted, limited, provisional, denied or undetermined). Replaces the last report from that installation when it was read later than that one, and is dropped otherwise; a permission left out reads as not reported. Called by the Sensei iPhone app at launch, after asking for notifications and on returning to the front; answers 204.",
10
+ "pathParams": [],
11
+ "query": [],
12
+ "body": {
13
+ "fields": [
14
+ {
15
+ "name": "installationId",
16
+ "flag": "installation-id",
17
+ "kind": "string",
18
+ "required": true
19
+ },
20
+ {
21
+ "name": "bundleId",
22
+ "flag": "bundle-id",
23
+ "kind": "string",
24
+ "required": true
25
+ },
26
+ {
27
+ "name": "appVersion",
28
+ "flag": "app-version",
29
+ "kind": "string",
30
+ "required": false
31
+ },
32
+ {
33
+ "name": "readAt",
34
+ "flag": "read-at",
35
+ "kind": "string",
36
+ "required": true
37
+ },
38
+ {
39
+ "name": "permissions",
40
+ "flag": "permissions",
41
+ "kind": "json",
42
+ "required": true,
43
+ "shape": "{notifications?: \"granted\"|\"limited\"|\"provisional\"|\"denied\"|\"undetermined\", location?: \"granted\"|\"limited\"|\"provisional\"|\"denied\"|\"undetermined\", photos?: \"granted\"|\"limited\"|\"provisional\"|\"denied\"|\"undetermined\", camera?: \"granted\"|\"limited\"|\"provisional\"|\"denied\"|\"undetermined\", microphone?: \"granted\"|\"limited\"|\"provisional\"|\"denied\"|\"undetermined\"}"
44
+ }
45
+ ],
46
+ "required": true
47
+ },
48
+ "multipart": null,
49
+ "attachments": false,
50
+ "anonymous": false
51
+ };
package/openapi.json CHANGED
@@ -23418,6 +23418,104 @@
23418
23418
  }
23419
23419
  }
23420
23420
  },
23421
+ "/api/push/permissions": {
23422
+ "post": {
23423
+ "operationId": "userPhoneSet",
23424
+ "summary": "Report the iOS app's OS permissions on one iPhone: its installationId, the app bundle id and appVersion, readAt (when the app read them, an ISO 8601 time no more than a day before now or 5 minutes after), and the state of notifications, location, photos, camera and microphone (granted, limited, provisional, denied or undetermined). Replaces the last report from that installation when it was read later than that one, and is dropped otherwise; a permission left out reads as not reported. Called by the Sensei iPhone app at launch, after asking for notifications and on returning to the front; answers 204.",
23425
+ "tags": ["user"],
23426
+ "x-kosuke-command": ["user", "phone", "set"],
23427
+ "requestBody": {
23428
+ "required": true,
23429
+ "content": {
23430
+ "application/json": {
23431
+ "schema": {
23432
+ "type": "object",
23433
+ "properties": {
23434
+ "installationId": {
23435
+ "type": "string",
23436
+ "format": "uuid",
23437
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
23438
+ },
23439
+ "bundleId": {
23440
+ "type": "string",
23441
+ "minLength": 1,
23442
+ "maxLength": 255,
23443
+ "pattern": "^[A-Za-z0-9.-]+$"
23444
+ },
23445
+ "appVersion": {
23446
+ "type": "string",
23447
+ "pattern": "^\\d{1,6}(\\.\\d{1,6}){0,3}$"
23448
+ },
23449
+ "readAt": {
23450
+ "type": "string",
23451
+ "format": "date-time",
23452
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
23453
+ },
23454
+ "permissions": {
23455
+ "type": "object",
23456
+ "properties": {
23457
+ "notifications": {
23458
+ "type": "string",
23459
+ "enum": ["granted", "limited", "provisional", "denied", "undetermined"]
23460
+ },
23461
+ "location": {
23462
+ "type": "string",
23463
+ "enum": ["granted", "limited", "provisional", "denied", "undetermined"]
23464
+ },
23465
+ "photos": {
23466
+ "type": "string",
23467
+ "enum": ["granted", "limited", "provisional", "denied", "undetermined"]
23468
+ },
23469
+ "camera": {
23470
+ "type": "string",
23471
+ "enum": ["granted", "limited", "provisional", "denied", "undetermined"]
23472
+ },
23473
+ "microphone": {
23474
+ "type": "string",
23475
+ "enum": ["granted", "limited", "provisional", "denied", "undetermined"]
23476
+ }
23477
+ }
23478
+ }
23479
+ },
23480
+ "required": ["installationId", "bundleId", "readAt", "permissions"]
23481
+ }
23482
+ }
23483
+ }
23484
+ },
23485
+ "responses": {
23486
+ "2XX": {
23487
+ "description": "Success envelope",
23488
+ "content": {
23489
+ "application/json": {
23490
+ "schema": {
23491
+ "$ref": "#/components/schemas/ApiSuccess"
23492
+ }
23493
+ }
23494
+ }
23495
+ },
23496
+ "4XX": {
23497
+ "description": "Error envelope",
23498
+ "content": {
23499
+ "application/json": {
23500
+ "schema": {
23501
+ "$ref": "#/components/schemas/ApiError"
23502
+ }
23503
+ }
23504
+ }
23505
+ },
23506
+ "5XX": {
23507
+ "description": "Error envelope",
23508
+ "content": {
23509
+ "application/json": {
23510
+ "schema": {
23511
+ "$ref": "#/components/schemas/ApiError"
23512
+ }
23513
+ }
23514
+ }
23515
+ }
23516
+ }
23517
+ }
23518
+ },
23421
23519
  "/api/search": {
23422
23520
  "post": {
23423
23521
  "operationId": "senseiSearch",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kosuke-ai/kosuke",
3
- "version": "1.2.3578",
3
+ "version": "1.2.3583",
4
4
  "description": "Sensei platform CLI. The client customers install to drive app.kosuke.ai from their own machine.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -43,10 +43,10 @@
43
43
  "minimatch": "^11.0.1"
44
44
  },
45
45
  "kosukeRelease": {
46
- "sourceCommit": "1f223aafa213c3812a10c85d5b1b6711b0aab666",
47
- "sourceIdentity": "4c092be3d4294ef45ca4e53d80013026824bc7cbb30eef0707841633624cf898",
46
+ "sourceCommit": "5d64a7ef6e4d9f53dcb1dad92e105d3f7407d1f9",
47
+ "sourceIdentity": "0ccac0cbee7ce1c2d7fd6cc86703f57e3e9ab46172b583090684c79659d40ded",
48
48
  "fragments": [
49
- "sessions-search-sort-status-dysebf.json"
49
+ "phone-permissions-report-ygmji4.json"
50
50
  ]
51
51
  }
52
52
  }