@kosuke-ai/kosuke 1.0.148 → 1.0.149
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 +4 -0
- package/dist/generated/commands/index.js +318 -276
- package/dist/generated/commands/mac/calendar-calendars-list.js +29 -0
- package/dist/generated/commands/mac/calendar-events-create.js +75 -0
- package/dist/generated/commands/mac/calendar-events-list.js +71 -0
- package/dist/generated/commands/mac/calendar-events-update.js +92 -0
- package/dist/generated/commands/mac/contacts-get.js +35 -0
- package/dist/generated/commands/mac/contacts-search.js +49 -0
- package/dist/generated/commands/mac/location-get.js +28 -0
- package/dist/generated/commands/mac/messages-conversations-list.js +43 -0
- package/dist/generated/commands/mac/messages-list.js +49 -0
- package/dist/generated/commands/mac/messages-send.js +53 -0
- package/dist/generated/commands/mac/notes-create.js +48 -0
- package/dist/generated/commands/mac/notes-folders-list.js +29 -0
- package/dist/generated/commands/mac/notes-get.js +35 -0
- package/dist/generated/commands/mac/notes-search.js +56 -0
- package/dist/generated/commands/mac/notes-update.js +42 -0
- package/dist/generated/commands/mac/reminders-complete.js +42 -0
- package/dist/generated/commands/mac/reminders-create.js +61 -0
- package/dist/generated/commands/mac/reminders-list.js +56 -0
- package/dist/generated/commands/mac/reminders-lists-list.js +29 -0
- package/dist/generated/commands/mac/reminders-search.js +63 -0
- package/dist/generated/commands/mac/reminders-update.js +75 -0
- package/dist/runtime/list-defaults.js +8 -0
- package/openapi.json +1798 -120
- package/package.json +4 -4
package/openapi.json
CHANGED
|
@@ -1944,13 +1944,1640 @@
|
|
|
1944
1944
|
}
|
|
1945
1945
|
}
|
|
1946
1946
|
},
|
|
1947
|
+
"/api/devices/mac/calendar/calendars": {
|
|
1948
|
+
"post": {
|
|
1949
|
+
"operationId": "macCalendarCalendarsList",
|
|
1950
|
+
"summary": "List the member's calendars on their Mac. Answers calendars: id, title, writable and source. Without Apple Calendar turned on in the Sensei app on that Mac (Settings, You, Integrations) it fails with PERMISSION_MISSING, which says so. Only Sensei calls it; a Chat Session gets 403 SENSEI_ONLY_TOOL.",
|
|
1951
|
+
"tags": ["mac"],
|
|
1952
|
+
"x-kosuke-command": ["mac", "calendar", "calendars", "list"],
|
|
1953
|
+
"x-kosuke-sandbox-token": true,
|
|
1954
|
+
"x-kosuke-cron-token": true,
|
|
1955
|
+
"x-kosuke-sensei-token": true,
|
|
1956
|
+
"requestBody": {
|
|
1957
|
+
"required": true,
|
|
1958
|
+
"content": {
|
|
1959
|
+
"application/json": {
|
|
1960
|
+
"schema": {
|
|
1961
|
+
"type": "object",
|
|
1962
|
+
"properties": {
|
|
1963
|
+
"deviceId": {
|
|
1964
|
+
"description": "The member’s Mac, by the device ID `kosuke mac status get` prints. Leave it out for the member’s Mac that is online.",
|
|
1965
|
+
"x-kosuke-flag": "device-id",
|
|
1966
|
+
"type": "string",
|
|
1967
|
+
"minLength": 1,
|
|
1968
|
+
"maxLength": 255
|
|
1969
|
+
}
|
|
1970
|
+
}
|
|
1971
|
+
}
|
|
1972
|
+
}
|
|
1973
|
+
}
|
|
1974
|
+
},
|
|
1975
|
+
"responses": {
|
|
1976
|
+
"2XX": {
|
|
1977
|
+
"description": "Success envelope",
|
|
1978
|
+
"content": {
|
|
1979
|
+
"application/json": {
|
|
1980
|
+
"schema": {
|
|
1981
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
1982
|
+
}
|
|
1983
|
+
}
|
|
1984
|
+
}
|
|
1985
|
+
},
|
|
1986
|
+
"4XX": {
|
|
1987
|
+
"description": "Error envelope",
|
|
1988
|
+
"content": {
|
|
1989
|
+
"application/json": {
|
|
1990
|
+
"schema": {
|
|
1991
|
+
"$ref": "#/components/schemas/ApiError"
|
|
1992
|
+
}
|
|
1993
|
+
}
|
|
1994
|
+
}
|
|
1995
|
+
},
|
|
1996
|
+
"5XX": {
|
|
1997
|
+
"description": "Error envelope",
|
|
1998
|
+
"content": {
|
|
1999
|
+
"application/json": {
|
|
2000
|
+
"schema": {
|
|
2001
|
+
"$ref": "#/components/schemas/ApiError"
|
|
2002
|
+
}
|
|
2003
|
+
}
|
|
2004
|
+
}
|
|
2005
|
+
}
|
|
2006
|
+
}
|
|
2007
|
+
}
|
|
2008
|
+
},
|
|
2009
|
+
"/api/devices/mac/calendar/create": {
|
|
2010
|
+
"post": {
|
|
2011
|
+
"operationId": "macCalendarEventsCreate",
|
|
2012
|
+
"summary": "Create an event on the member's Mac: a title, start and end (ISO 8601 with an offset, or dates with --all-day), and optional calendar (by id or exact title; the default calendar otherwise), location and notes. It invites nobody. Answers event. Without Apple Calendar turned on in the Sensei app on that Mac (Settings, You, Integrations) it fails with PERMISSION_MISSING, which says so. Only Sensei calls it; a Chat Session gets 403 SENSEI_ONLY_TOOL.",
|
|
2013
|
+
"tags": ["mac"],
|
|
2014
|
+
"x-kosuke-command": ["mac", "calendar", "events", "create"],
|
|
2015
|
+
"x-kosuke-sandbox-token": true,
|
|
2016
|
+
"x-kosuke-cron-token": true,
|
|
2017
|
+
"x-kosuke-sensei-token": true,
|
|
2018
|
+
"requestBody": {
|
|
2019
|
+
"required": true,
|
|
2020
|
+
"content": {
|
|
2021
|
+
"application/json": {
|
|
2022
|
+
"schema": {
|
|
2023
|
+
"type": "object",
|
|
2024
|
+
"properties": {
|
|
2025
|
+
"deviceId": {
|
|
2026
|
+
"description": "The member’s Mac, by the device ID `kosuke mac status get` prints. Leave it out for the member’s Mac that is online.",
|
|
2027
|
+
"x-kosuke-flag": "device-id",
|
|
2028
|
+
"type": "string",
|
|
2029
|
+
"minLength": 1,
|
|
2030
|
+
"maxLength": 255
|
|
2031
|
+
},
|
|
2032
|
+
"title": {
|
|
2033
|
+
"type": "string",
|
|
2034
|
+
"minLength": 1,
|
|
2035
|
+
"maxLength": 1000
|
|
2036
|
+
},
|
|
2037
|
+
"start": {
|
|
2038
|
+
"type": "string",
|
|
2039
|
+
"maxLength": 40,
|
|
2040
|
+
"description": "When it starts."
|
|
2041
|
+
},
|
|
2042
|
+
"end": {
|
|
2043
|
+
"type": "string",
|
|
2044
|
+
"maxLength": 40,
|
|
2045
|
+
"description": "When it ends, no earlier than start."
|
|
2046
|
+
},
|
|
2047
|
+
"allDay": {
|
|
2048
|
+
"description": "An all-day event, its start and end as dates.",
|
|
2049
|
+
"type": "boolean"
|
|
2050
|
+
},
|
|
2051
|
+
"calendar": {
|
|
2052
|
+
"description": "The calendar, by id or exact title. The default calendar by default.",
|
|
2053
|
+
"type": "string",
|
|
2054
|
+
"minLength": 1,
|
|
2055
|
+
"maxLength": 255
|
|
2056
|
+
},
|
|
2057
|
+
"location": {
|
|
2058
|
+
"type": "string",
|
|
2059
|
+
"maxLength": 1000
|
|
2060
|
+
},
|
|
2061
|
+
"notes": {
|
|
2062
|
+
"type": "string",
|
|
2063
|
+
"maxLength": 10000
|
|
2064
|
+
}
|
|
2065
|
+
},
|
|
2066
|
+
"required": ["title", "start", "end"]
|
|
2067
|
+
}
|
|
2068
|
+
}
|
|
2069
|
+
}
|
|
2070
|
+
},
|
|
2071
|
+
"responses": {
|
|
2072
|
+
"2XX": {
|
|
2073
|
+
"description": "Success envelope",
|
|
2074
|
+
"content": {
|
|
2075
|
+
"application/json": {
|
|
2076
|
+
"schema": {
|
|
2077
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
2078
|
+
}
|
|
2079
|
+
}
|
|
2080
|
+
}
|
|
2081
|
+
},
|
|
2082
|
+
"4XX": {
|
|
2083
|
+
"description": "Error envelope",
|
|
2084
|
+
"content": {
|
|
2085
|
+
"application/json": {
|
|
2086
|
+
"schema": {
|
|
2087
|
+
"$ref": "#/components/schemas/ApiError"
|
|
2088
|
+
}
|
|
2089
|
+
}
|
|
2090
|
+
}
|
|
2091
|
+
},
|
|
2092
|
+
"5XX": {
|
|
2093
|
+
"description": "Error envelope",
|
|
2094
|
+
"content": {
|
|
2095
|
+
"application/json": {
|
|
2096
|
+
"schema": {
|
|
2097
|
+
"$ref": "#/components/schemas/ApiError"
|
|
2098
|
+
}
|
|
2099
|
+
}
|
|
2100
|
+
}
|
|
2101
|
+
}
|
|
2102
|
+
}
|
|
2103
|
+
}
|
|
2104
|
+
},
|
|
2105
|
+
"/api/devices/mac/calendar/list": {
|
|
2106
|
+
"post": {
|
|
2107
|
+
"operationId": "macCalendarEventsList",
|
|
2108
|
+
"summary": "List events on the member's Mac from --from to --to (ISO 8601, at most 366 days apart), in one calendar (by id or exact title) or in all; --query keeps those whose title, location or notes contain it. Answers events (id, title, start, end, allDay, calendar, location, notes cut at 4000 characters, url, attendees as a count, recurring) and nextCursor, null on the last page: pass it as --cursor for the next (--limit 25 by default, at most 100). Without Apple Calendar turned on in the Sensei app on that Mac (Settings, You, Integrations) it fails with PERMISSION_MISSING, which says so. Only Sensei calls it; a Chat Session gets 403 SENSEI_ONLY_TOOL.",
|
|
2109
|
+
"tags": ["mac"],
|
|
2110
|
+
"x-kosuke-command": ["mac", "calendar", "events", "list"],
|
|
2111
|
+
"x-kosuke-sandbox-token": true,
|
|
2112
|
+
"x-kosuke-cron-token": true,
|
|
2113
|
+
"x-kosuke-sensei-token": true,
|
|
2114
|
+
"requestBody": {
|
|
2115
|
+
"required": true,
|
|
2116
|
+
"content": {
|
|
2117
|
+
"application/json": {
|
|
2118
|
+
"schema": {
|
|
2119
|
+
"type": "object",
|
|
2120
|
+
"properties": {
|
|
2121
|
+
"deviceId": {
|
|
2122
|
+
"description": "The member’s Mac, by the device ID `kosuke mac status get` prints. Leave it out for the member’s Mac that is online.",
|
|
2123
|
+
"x-kosuke-flag": "device-id",
|
|
2124
|
+
"type": "string",
|
|
2125
|
+
"minLength": 1,
|
|
2126
|
+
"maxLength": 255
|
|
2127
|
+
},
|
|
2128
|
+
"from": {
|
|
2129
|
+
"type": "string",
|
|
2130
|
+
"maxLength": 40,
|
|
2131
|
+
"description": "The start of the range."
|
|
2132
|
+
},
|
|
2133
|
+
"to": {
|
|
2134
|
+
"type": "string",
|
|
2135
|
+
"maxLength": 40,
|
|
2136
|
+
"description": "The end of the range, at most 366 days after from."
|
|
2137
|
+
},
|
|
2138
|
+
"calendar": {
|
|
2139
|
+
"type": "string",
|
|
2140
|
+
"minLength": 1,
|
|
2141
|
+
"maxLength": 255,
|
|
2142
|
+
"description": "The calendar, by id or exact title, from `kosuke mac calendar calendars list`."
|
|
2143
|
+
},
|
|
2144
|
+
"query": {
|
|
2145
|
+
"description": "Only events whose title, location or notes contain it.",
|
|
2146
|
+
"type": "string",
|
|
2147
|
+
"minLength": 1,
|
|
2148
|
+
"maxLength": 500
|
|
2149
|
+
},
|
|
2150
|
+
"limit": {
|
|
2151
|
+
"description": "Most items in one page: 25 by default, at most 100.",
|
|
2152
|
+
"type": "integer",
|
|
2153
|
+
"minimum": 1,
|
|
2154
|
+
"maximum": 100
|
|
2155
|
+
},
|
|
2156
|
+
"cursor": {
|
|
2157
|
+
"description": "The nextCursor of the previous page. Leave it out for the first page.",
|
|
2158
|
+
"type": "string",
|
|
2159
|
+
"minLength": 1,
|
|
2160
|
+
"maxLength": 1024
|
|
2161
|
+
}
|
|
2162
|
+
},
|
|
2163
|
+
"required": ["from", "to"]
|
|
2164
|
+
}
|
|
2165
|
+
}
|
|
2166
|
+
}
|
|
2167
|
+
},
|
|
2168
|
+
"responses": {
|
|
2169
|
+
"2XX": {
|
|
2170
|
+
"description": "Success envelope",
|
|
2171
|
+
"content": {
|
|
2172
|
+
"application/json": {
|
|
2173
|
+
"schema": {
|
|
2174
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
2175
|
+
}
|
|
2176
|
+
}
|
|
2177
|
+
}
|
|
2178
|
+
},
|
|
2179
|
+
"4XX": {
|
|
2180
|
+
"description": "Error envelope",
|
|
2181
|
+
"content": {
|
|
2182
|
+
"application/json": {
|
|
2183
|
+
"schema": {
|
|
2184
|
+
"$ref": "#/components/schemas/ApiError"
|
|
2185
|
+
}
|
|
2186
|
+
}
|
|
2187
|
+
}
|
|
2188
|
+
},
|
|
2189
|
+
"5XX": {
|
|
2190
|
+
"description": "Error envelope",
|
|
2191
|
+
"content": {
|
|
2192
|
+
"application/json": {
|
|
2193
|
+
"schema": {
|
|
2194
|
+
"$ref": "#/components/schemas/ApiError"
|
|
2195
|
+
}
|
|
2196
|
+
}
|
|
2197
|
+
}
|
|
2198
|
+
}
|
|
2199
|
+
}
|
|
2200
|
+
}
|
|
2201
|
+
},
|
|
2202
|
+
"/api/devices/mac/calendar/update": {
|
|
2203
|
+
"post": {
|
|
2204
|
+
"operationId": "macCalendarEventsUpdate",
|
|
2205
|
+
"summary": "Change an event on the member's Mac, by its id: its title, start, end, allDay, location, notes or calendar. Fields left out stay as they are. On a repeating event --span future changes this one and the ones after it; this, the default, changes only this one. Answers event. Without Apple Calendar turned on in the Sensei app on that Mac (Settings, You, Integrations) it fails with PERMISSION_MISSING, which says so. Only Sensei calls it; a Chat Session gets 403 SENSEI_ONLY_TOOL.",
|
|
2206
|
+
"tags": ["mac"],
|
|
2207
|
+
"x-kosuke-command": ["mac", "calendar", "events", "update"],
|
|
2208
|
+
"x-kosuke-sandbox-token": true,
|
|
2209
|
+
"x-kosuke-cron-token": true,
|
|
2210
|
+
"x-kosuke-sensei-token": true,
|
|
2211
|
+
"requestBody": {
|
|
2212
|
+
"required": true,
|
|
2213
|
+
"content": {
|
|
2214
|
+
"application/json": {
|
|
2215
|
+
"schema": {
|
|
2216
|
+
"type": "object",
|
|
2217
|
+
"properties": {
|
|
2218
|
+
"deviceId": {
|
|
2219
|
+
"description": "The member’s Mac, by the device ID `kosuke mac status get` prints. Leave it out for the member’s Mac that is online.",
|
|
2220
|
+
"x-kosuke-flag": "device-id",
|
|
2221
|
+
"type": "string",
|
|
2222
|
+
"minLength": 1,
|
|
2223
|
+
"maxLength": 255
|
|
2224
|
+
},
|
|
2225
|
+
"id": {
|
|
2226
|
+
"type": "string",
|
|
2227
|
+
"minLength": 1,
|
|
2228
|
+
"maxLength": 1024,
|
|
2229
|
+
"description": "The event, by the id a list or create answered."
|
|
2230
|
+
},
|
|
2231
|
+
"title": {
|
|
2232
|
+
"type": "string",
|
|
2233
|
+
"minLength": 1,
|
|
2234
|
+
"maxLength": 1000
|
|
2235
|
+
},
|
|
2236
|
+
"start": {
|
|
2237
|
+
"type": "string",
|
|
2238
|
+
"maxLength": 40,
|
|
2239
|
+
"description": "When it starts."
|
|
2240
|
+
},
|
|
2241
|
+
"end": {
|
|
2242
|
+
"type": "string",
|
|
2243
|
+
"maxLength": 40,
|
|
2244
|
+
"description": "When it ends."
|
|
2245
|
+
},
|
|
2246
|
+
"allDay": {
|
|
2247
|
+
"type": "boolean"
|
|
2248
|
+
},
|
|
2249
|
+
"location": {
|
|
2250
|
+
"type": "string",
|
|
2251
|
+
"maxLength": 1000
|
|
2252
|
+
},
|
|
2253
|
+
"notes": {
|
|
2254
|
+
"type": "string",
|
|
2255
|
+
"maxLength": 10000
|
|
2256
|
+
},
|
|
2257
|
+
"calendar": {
|
|
2258
|
+
"description": "Move it to this calendar, by id or exact title.",
|
|
2259
|
+
"type": "string",
|
|
2260
|
+
"minLength": 1,
|
|
2261
|
+
"maxLength": 255
|
|
2262
|
+
},
|
|
2263
|
+
"span": {
|
|
2264
|
+
"description": "A repeating event: this occurrence (this, by default) or this and the ones after it (future).",
|
|
2265
|
+
"type": "string",
|
|
2266
|
+
"enum": ["this", "future"]
|
|
2267
|
+
}
|
|
2268
|
+
},
|
|
2269
|
+
"required": ["id"]
|
|
2270
|
+
}
|
|
2271
|
+
}
|
|
2272
|
+
}
|
|
2273
|
+
},
|
|
2274
|
+
"responses": {
|
|
2275
|
+
"2XX": {
|
|
2276
|
+
"description": "Success envelope",
|
|
2277
|
+
"content": {
|
|
2278
|
+
"application/json": {
|
|
2279
|
+
"schema": {
|
|
2280
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
2281
|
+
}
|
|
2282
|
+
}
|
|
2283
|
+
}
|
|
2284
|
+
},
|
|
2285
|
+
"4XX": {
|
|
2286
|
+
"description": "Error envelope",
|
|
2287
|
+
"content": {
|
|
2288
|
+
"application/json": {
|
|
2289
|
+
"schema": {
|
|
2290
|
+
"$ref": "#/components/schemas/ApiError"
|
|
2291
|
+
}
|
|
2292
|
+
}
|
|
2293
|
+
}
|
|
2294
|
+
},
|
|
2295
|
+
"5XX": {
|
|
2296
|
+
"description": "Error envelope",
|
|
2297
|
+
"content": {
|
|
2298
|
+
"application/json": {
|
|
2299
|
+
"schema": {
|
|
2300
|
+
"$ref": "#/components/schemas/ApiError"
|
|
2301
|
+
}
|
|
2302
|
+
}
|
|
2303
|
+
}
|
|
2304
|
+
}
|
|
2305
|
+
}
|
|
2306
|
+
}
|
|
2307
|
+
},
|
|
1947
2308
|
"/api/devices/mac/click": {
|
|
1948
2309
|
"post": {
|
|
1949
|
-
"operationId": "macClick",
|
|
1950
|
-
"summary": "Click in a window of the member's Mac, on an element ref from ax-tree or at x and y in window coordinates, without bringing the window forward. Answers the method used. Sensei calls it, and a Chat Session does with --device-id for a device approved for it.",
|
|
2310
|
+
"operationId": "macClick",
|
|
2311
|
+
"summary": "Click in a window of the member's Mac, on an element ref from ax-tree or at x and y in window coordinates, without bringing the window forward. Answers the method used. Sensei calls it, and a Chat Session does with --device-id for a device approved for it.",
|
|
2312
|
+
"tags": ["mac"],
|
|
2313
|
+
"x-kosuke-command": ["mac", "click"],
|
|
2314
|
+
"x-kosuke-sandbox-token": true,
|
|
2315
|
+
"x-kosuke-sensei-token": true,
|
|
2316
|
+
"requestBody": {
|
|
2317
|
+
"required": true,
|
|
2318
|
+
"content": {
|
|
2319
|
+
"application/json": {
|
|
2320
|
+
"schema": {
|
|
2321
|
+
"type": "object",
|
|
2322
|
+
"properties": {
|
|
2323
|
+
"deviceId": {
|
|
2324
|
+
"description": "The device, by the ID `kosuke devices list` prints. A Chat Session names the device it was approved for; Sensei may leave it out for the member’s Mac that is online.",
|
|
2325
|
+
"x-kosuke-flag": "device-id",
|
|
2326
|
+
"type": "string",
|
|
2327
|
+
"minLength": 1,
|
|
2328
|
+
"maxLength": 255
|
|
2329
|
+
},
|
|
2330
|
+
"app": {
|
|
2331
|
+
"type": "string",
|
|
2332
|
+
"minLength": 1,
|
|
2333
|
+
"maxLength": 255,
|
|
2334
|
+
"description": "The app, by name or bundle id."
|
|
2335
|
+
},
|
|
2336
|
+
"pid": {
|
|
2337
|
+
"type": "integer",
|
|
2338
|
+
"exclusiveMinimum": 0,
|
|
2339
|
+
"maximum": 9007199254740991,
|
|
2340
|
+
"description": "The process id, from `kosuke mac windows list`."
|
|
2341
|
+
},
|
|
2342
|
+
"window": {
|
|
2343
|
+
"type": "string",
|
|
2344
|
+
"minLength": 1,
|
|
2345
|
+
"maxLength": 255,
|
|
2346
|
+
"description": "A substring of the window title."
|
|
2347
|
+
},
|
|
2348
|
+
"ref": {
|
|
2349
|
+
"type": "string",
|
|
2350
|
+
"pattern": "^e\\d+$",
|
|
2351
|
+
"description": "An element ref from `kosuke mac ax-tree get`, such as e12."
|
|
2352
|
+
},
|
|
2353
|
+
"x": {
|
|
2354
|
+
"description": "Window x, with y, when there is no ref.",
|
|
2355
|
+
"type": "number"
|
|
2356
|
+
},
|
|
2357
|
+
"y": {
|
|
2358
|
+
"description": "Window y, with x, when there is no ref.",
|
|
2359
|
+
"type": "number"
|
|
2360
|
+
}
|
|
2361
|
+
}
|
|
2362
|
+
}
|
|
2363
|
+
}
|
|
2364
|
+
}
|
|
2365
|
+
},
|
|
2366
|
+
"responses": {
|
|
2367
|
+
"2XX": {
|
|
2368
|
+
"description": "Success envelope",
|
|
2369
|
+
"content": {
|
|
2370
|
+
"application/json": {
|
|
2371
|
+
"schema": {
|
|
2372
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
2373
|
+
}
|
|
2374
|
+
}
|
|
2375
|
+
}
|
|
2376
|
+
},
|
|
2377
|
+
"4XX": {
|
|
2378
|
+
"description": "Error envelope",
|
|
2379
|
+
"content": {
|
|
2380
|
+
"application/json": {
|
|
2381
|
+
"schema": {
|
|
2382
|
+
"$ref": "#/components/schemas/ApiError"
|
|
2383
|
+
}
|
|
2384
|
+
}
|
|
2385
|
+
}
|
|
2386
|
+
},
|
|
2387
|
+
"5XX": {
|
|
2388
|
+
"description": "Error envelope",
|
|
2389
|
+
"content": {
|
|
2390
|
+
"application/json": {
|
|
2391
|
+
"schema": {
|
|
2392
|
+
"$ref": "#/components/schemas/ApiError"
|
|
2393
|
+
}
|
|
2394
|
+
}
|
|
2395
|
+
}
|
|
2396
|
+
}
|
|
2397
|
+
}
|
|
2398
|
+
}
|
|
2399
|
+
},
|
|
2400
|
+
"/api/devices/mac/contacts/read": {
|
|
2401
|
+
"post": {
|
|
2402
|
+
"operationId": "macContactsGet",
|
|
2403
|
+
"summary": "Read one contact on the member's Mac, by its id. Answers contact: id, name, givenName, familyName, organization, jobTitle, birthday, and emails, phones, addresses and urls, each with label and value. Without Apple Contacts turned on in the Sensei app on that Mac (Settings, You, Integrations) it fails with PERMISSION_MISSING, which says so. Only Sensei calls it; a Chat Session gets 403 SENSEI_ONLY_TOOL.",
|
|
2404
|
+
"tags": ["mac"],
|
|
2405
|
+
"x-kosuke-command": ["mac", "contacts", "get"],
|
|
2406
|
+
"x-kosuke-sandbox-token": true,
|
|
2407
|
+
"x-kosuke-cron-token": true,
|
|
2408
|
+
"x-kosuke-sensei-token": true,
|
|
2409
|
+
"requestBody": {
|
|
2410
|
+
"required": true,
|
|
2411
|
+
"content": {
|
|
2412
|
+
"application/json": {
|
|
2413
|
+
"schema": {
|
|
2414
|
+
"type": "object",
|
|
2415
|
+
"properties": {
|
|
2416
|
+
"deviceId": {
|
|
2417
|
+
"description": "The member’s Mac, by the device ID `kosuke mac status get` prints. Leave it out for the member’s Mac that is online.",
|
|
2418
|
+
"x-kosuke-flag": "device-id",
|
|
2419
|
+
"type": "string",
|
|
2420
|
+
"minLength": 1,
|
|
2421
|
+
"maxLength": 255
|
|
2422
|
+
},
|
|
2423
|
+
"id": {
|
|
2424
|
+
"type": "string",
|
|
2425
|
+
"minLength": 1,
|
|
2426
|
+
"maxLength": 1024,
|
|
2427
|
+
"description": "The contact, by the id a search answered."
|
|
2428
|
+
}
|
|
2429
|
+
},
|
|
2430
|
+
"required": ["id"]
|
|
2431
|
+
}
|
|
2432
|
+
}
|
|
2433
|
+
}
|
|
2434
|
+
},
|
|
2435
|
+
"responses": {
|
|
2436
|
+
"2XX": {
|
|
2437
|
+
"description": "Success envelope",
|
|
2438
|
+
"content": {
|
|
2439
|
+
"application/json": {
|
|
2440
|
+
"schema": {
|
|
2441
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
2442
|
+
}
|
|
2443
|
+
}
|
|
2444
|
+
}
|
|
2445
|
+
},
|
|
2446
|
+
"4XX": {
|
|
2447
|
+
"description": "Error envelope",
|
|
2448
|
+
"content": {
|
|
2449
|
+
"application/json": {
|
|
2450
|
+
"schema": {
|
|
2451
|
+
"$ref": "#/components/schemas/ApiError"
|
|
2452
|
+
}
|
|
2453
|
+
}
|
|
2454
|
+
}
|
|
2455
|
+
},
|
|
2456
|
+
"5XX": {
|
|
2457
|
+
"description": "Error envelope",
|
|
2458
|
+
"content": {
|
|
2459
|
+
"application/json": {
|
|
2460
|
+
"schema": {
|
|
2461
|
+
"$ref": "#/components/schemas/ApiError"
|
|
2462
|
+
}
|
|
2463
|
+
}
|
|
2464
|
+
}
|
|
2465
|
+
}
|
|
2466
|
+
}
|
|
2467
|
+
}
|
|
2468
|
+
},
|
|
2469
|
+
"/api/devices/mac/contacts/search": {
|
|
2470
|
+
"post": {
|
|
2471
|
+
"operationId": "macContactsSearch",
|
|
2472
|
+
"summary": "Search the member's contacts on their Mac by name, or by email or phone number when --query looks like one. Answers contacts (id, name, organization, emails, phones) and nextCursor, null on the last page: pass it as --cursor for the next (--limit 25 by default, at most 100). Without Apple Contacts turned on in the Sensei app on that Mac (Settings, You, Integrations) it fails with PERMISSION_MISSING, which says so. Only Sensei calls it; a Chat Session gets 403 SENSEI_ONLY_TOOL.",
|
|
2473
|
+
"tags": ["mac"],
|
|
2474
|
+
"x-kosuke-command": ["mac", "contacts", "search"],
|
|
2475
|
+
"x-kosuke-sandbox-token": true,
|
|
2476
|
+
"x-kosuke-cron-token": true,
|
|
2477
|
+
"x-kosuke-sensei-token": true,
|
|
2478
|
+
"requestBody": {
|
|
2479
|
+
"required": true,
|
|
2480
|
+
"content": {
|
|
2481
|
+
"application/json": {
|
|
2482
|
+
"schema": {
|
|
2483
|
+
"type": "object",
|
|
2484
|
+
"properties": {
|
|
2485
|
+
"deviceId": {
|
|
2486
|
+
"description": "The member’s Mac, by the device ID `kosuke mac status get` prints. Leave it out for the member’s Mac that is online.",
|
|
2487
|
+
"x-kosuke-flag": "device-id",
|
|
2488
|
+
"type": "string",
|
|
2489
|
+
"minLength": 1,
|
|
2490
|
+
"maxLength": 255
|
|
2491
|
+
},
|
|
2492
|
+
"query": {
|
|
2493
|
+
"type": "string",
|
|
2494
|
+
"minLength": 1,
|
|
2495
|
+
"maxLength": 500,
|
|
2496
|
+
"description": "Matches the name, or an email or phone number when it looks like one."
|
|
2497
|
+
},
|
|
2498
|
+
"limit": {
|
|
2499
|
+
"description": "Most items in one page: 25 by default, at most 100.",
|
|
2500
|
+
"type": "integer",
|
|
2501
|
+
"minimum": 1,
|
|
2502
|
+
"maximum": 100
|
|
2503
|
+
},
|
|
2504
|
+
"cursor": {
|
|
2505
|
+
"description": "The nextCursor of the previous page. Leave it out for the first page.",
|
|
2506
|
+
"type": "string",
|
|
2507
|
+
"minLength": 1,
|
|
2508
|
+
"maxLength": 1024
|
|
2509
|
+
}
|
|
2510
|
+
},
|
|
2511
|
+
"required": ["query"]
|
|
2512
|
+
}
|
|
2513
|
+
}
|
|
2514
|
+
}
|
|
2515
|
+
},
|
|
2516
|
+
"responses": {
|
|
2517
|
+
"2XX": {
|
|
2518
|
+
"description": "Success envelope",
|
|
2519
|
+
"content": {
|
|
2520
|
+
"application/json": {
|
|
2521
|
+
"schema": {
|
|
2522
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
2523
|
+
}
|
|
2524
|
+
}
|
|
2525
|
+
}
|
|
2526
|
+
},
|
|
2527
|
+
"4XX": {
|
|
2528
|
+
"description": "Error envelope",
|
|
2529
|
+
"content": {
|
|
2530
|
+
"application/json": {
|
|
2531
|
+
"schema": {
|
|
2532
|
+
"$ref": "#/components/schemas/ApiError"
|
|
2533
|
+
}
|
|
2534
|
+
}
|
|
2535
|
+
}
|
|
2536
|
+
},
|
|
2537
|
+
"5XX": {
|
|
2538
|
+
"description": "Error envelope",
|
|
2539
|
+
"content": {
|
|
2540
|
+
"application/json": {
|
|
2541
|
+
"schema": {
|
|
2542
|
+
"$ref": "#/components/schemas/ApiError"
|
|
2543
|
+
}
|
|
2544
|
+
}
|
|
2545
|
+
}
|
|
2546
|
+
}
|
|
2547
|
+
}
|
|
2548
|
+
}
|
|
2549
|
+
},
|
|
2550
|
+
"/api/devices/mac/file-delete": {
|
|
2551
|
+
"post": {
|
|
2552
|
+
"operationId": "macFilesDelete",
|
|
2553
|
+
"summary": "Move a file on the member's Mac to the Trash. Sensei calls it, and a Chat Session does with --device-id for a device approved for it. A Chat Session's call deletes only under its scratch folder ~/KosukeQA/<session8>/ (the session id's first 8 characters), Xcode DerivedData, CoreSimulator, the temporary folders and the project's deviceWritePaths: a path elsewhere answers OUTSIDE_FENCE, and a device whose app cannot keep it answers FENCE_UNSUPPORTED.",
|
|
2554
|
+
"tags": ["mac"],
|
|
2555
|
+
"x-kosuke-command": ["mac", "files", "delete"],
|
|
2556
|
+
"x-kosuke-sandbox-token": true,
|
|
2557
|
+
"x-kosuke-sensei-token": true,
|
|
2558
|
+
"requestBody": {
|
|
2559
|
+
"required": true,
|
|
2560
|
+
"content": {
|
|
2561
|
+
"application/json": {
|
|
2562
|
+
"schema": {
|
|
2563
|
+
"type": "object",
|
|
2564
|
+
"properties": {
|
|
2565
|
+
"deviceId": {
|
|
2566
|
+
"description": "The device, by the ID `kosuke devices list` prints. A Chat Session names the device it was approved for; Sensei may leave it out for the member’s Mac that is online.",
|
|
2567
|
+
"x-kosuke-flag": "device-id",
|
|
2568
|
+
"type": "string",
|
|
2569
|
+
"minLength": 1,
|
|
2570
|
+
"maxLength": 255
|
|
2571
|
+
},
|
|
2572
|
+
"path": {
|
|
2573
|
+
"type": "string",
|
|
2574
|
+
"minLength": 1,
|
|
2575
|
+
"maxLength": 4096,
|
|
2576
|
+
"description": "Moved to the Trash."
|
|
2577
|
+
}
|
|
2578
|
+
},
|
|
2579
|
+
"required": ["path"]
|
|
2580
|
+
}
|
|
2581
|
+
}
|
|
2582
|
+
}
|
|
2583
|
+
},
|
|
2584
|
+
"responses": {
|
|
2585
|
+
"2XX": {
|
|
2586
|
+
"description": "Success envelope",
|
|
2587
|
+
"content": {
|
|
2588
|
+
"application/json": {
|
|
2589
|
+
"schema": {
|
|
2590
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
2591
|
+
}
|
|
2592
|
+
}
|
|
2593
|
+
}
|
|
2594
|
+
},
|
|
2595
|
+
"4XX": {
|
|
2596
|
+
"description": "Error envelope",
|
|
2597
|
+
"content": {
|
|
2598
|
+
"application/json": {
|
|
2599
|
+
"schema": {
|
|
2600
|
+
"$ref": "#/components/schemas/ApiError"
|
|
2601
|
+
}
|
|
2602
|
+
}
|
|
2603
|
+
}
|
|
2604
|
+
},
|
|
2605
|
+
"5XX": {
|
|
2606
|
+
"description": "Error envelope",
|
|
2607
|
+
"content": {
|
|
2608
|
+
"application/json": {
|
|
2609
|
+
"schema": {
|
|
2610
|
+
"$ref": "#/components/schemas/ApiError"
|
|
2611
|
+
}
|
|
2612
|
+
}
|
|
2613
|
+
}
|
|
2614
|
+
}
|
|
2615
|
+
}
|
|
2616
|
+
}
|
|
2617
|
+
},
|
|
2618
|
+
"/api/devices/mac/file-list": {
|
|
2619
|
+
"post": {
|
|
2620
|
+
"operationId": "macFilesList",
|
|
2621
|
+
"summary": "List a folder on the member's Mac, with each entry's name, kind, size and modification time. Sensei calls it, and a Chat Session does with --device-id for a device approved for it.",
|
|
2622
|
+
"tags": ["mac"],
|
|
2623
|
+
"x-kosuke-command": ["mac", "files", "list"],
|
|
2624
|
+
"x-kosuke-sandbox-token": true,
|
|
2625
|
+
"x-kosuke-sensei-token": true,
|
|
2626
|
+
"requestBody": {
|
|
2627
|
+
"required": true,
|
|
2628
|
+
"content": {
|
|
2629
|
+
"application/json": {
|
|
2630
|
+
"schema": {
|
|
2631
|
+
"type": "object",
|
|
2632
|
+
"properties": {
|
|
2633
|
+
"deviceId": {
|
|
2634
|
+
"description": "The device, by the ID `kosuke devices list` prints. A Chat Session names the device it was approved for; Sensei may leave it out for the member’s Mac that is online.",
|
|
2635
|
+
"x-kosuke-flag": "device-id",
|
|
2636
|
+
"type": "string",
|
|
2637
|
+
"minLength": 1,
|
|
2638
|
+
"maxLength": 255
|
|
2639
|
+
},
|
|
2640
|
+
"path": {
|
|
2641
|
+
"type": "string",
|
|
2642
|
+
"minLength": 1,
|
|
2643
|
+
"maxLength": 4096,
|
|
2644
|
+
"description": "A path on the Mac. ~ is the member’s home."
|
|
2645
|
+
}
|
|
2646
|
+
},
|
|
2647
|
+
"required": ["path"]
|
|
2648
|
+
}
|
|
2649
|
+
}
|
|
2650
|
+
}
|
|
2651
|
+
},
|
|
2652
|
+
"responses": {
|
|
2653
|
+
"2XX": {
|
|
2654
|
+
"description": "Success envelope",
|
|
2655
|
+
"content": {
|
|
2656
|
+
"application/json": {
|
|
2657
|
+
"schema": {
|
|
2658
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
2659
|
+
}
|
|
2660
|
+
}
|
|
2661
|
+
}
|
|
2662
|
+
},
|
|
2663
|
+
"4XX": {
|
|
2664
|
+
"description": "Error envelope",
|
|
2665
|
+
"content": {
|
|
2666
|
+
"application/json": {
|
|
2667
|
+
"schema": {
|
|
2668
|
+
"$ref": "#/components/schemas/ApiError"
|
|
2669
|
+
}
|
|
2670
|
+
}
|
|
2671
|
+
}
|
|
2672
|
+
},
|
|
2673
|
+
"5XX": {
|
|
2674
|
+
"description": "Error envelope",
|
|
2675
|
+
"content": {
|
|
2676
|
+
"application/json": {
|
|
2677
|
+
"schema": {
|
|
2678
|
+
"$ref": "#/components/schemas/ApiError"
|
|
2679
|
+
}
|
|
2680
|
+
}
|
|
2681
|
+
}
|
|
2682
|
+
}
|
|
2683
|
+
}
|
|
2684
|
+
}
|
|
2685
|
+
},
|
|
2686
|
+
"/api/devices/mac/file-move": {
|
|
2687
|
+
"post": {
|
|
2688
|
+
"operationId": "macFilesMove",
|
|
2689
|
+
"summary": "Move or rename a file on the member's Mac. Sensei calls it, and a Chat Session does with --device-id for a device approved for it. A Chat Session's call moves a file only when both paths are under its scratch folder ~/KosukeQA/<session8>/ (the session id's first 8 characters), Xcode DerivedData, CoreSimulator, the temporary folders and the project's deviceWritePaths: a path elsewhere answers OUTSIDE_FENCE, and a device whose app cannot keep it answers FENCE_UNSUPPORTED.",
|
|
2690
|
+
"tags": ["mac"],
|
|
2691
|
+
"x-kosuke-command": ["mac", "files", "move"],
|
|
2692
|
+
"x-kosuke-sandbox-token": true,
|
|
2693
|
+
"x-kosuke-sensei-token": true,
|
|
2694
|
+
"requestBody": {
|
|
2695
|
+
"required": true,
|
|
2696
|
+
"content": {
|
|
2697
|
+
"application/json": {
|
|
2698
|
+
"schema": {
|
|
2699
|
+
"type": "object",
|
|
2700
|
+
"properties": {
|
|
2701
|
+
"deviceId": {
|
|
2702
|
+
"description": "The device, by the ID `kosuke devices list` prints. A Chat Session names the device it was approved for; Sensei may leave it out for the member’s Mac that is online.",
|
|
2703
|
+
"x-kosuke-flag": "device-id",
|
|
2704
|
+
"type": "string",
|
|
2705
|
+
"minLength": 1,
|
|
2706
|
+
"maxLength": 255
|
|
2707
|
+
},
|
|
2708
|
+
"from": {
|
|
2709
|
+
"type": "string",
|
|
2710
|
+
"minLength": 1,
|
|
2711
|
+
"maxLength": 4096,
|
|
2712
|
+
"description": "A path on the Mac. ~ is the member’s home."
|
|
2713
|
+
},
|
|
2714
|
+
"to": {
|
|
2715
|
+
"type": "string",
|
|
2716
|
+
"minLength": 1,
|
|
2717
|
+
"maxLength": 4096,
|
|
2718
|
+
"description": "A path on the Mac. ~ is the member’s home."
|
|
2719
|
+
}
|
|
2720
|
+
},
|
|
2721
|
+
"required": ["from", "to"]
|
|
2722
|
+
}
|
|
2723
|
+
}
|
|
2724
|
+
}
|
|
2725
|
+
},
|
|
2726
|
+
"responses": {
|
|
2727
|
+
"2XX": {
|
|
2728
|
+
"description": "Success envelope",
|
|
2729
|
+
"content": {
|
|
2730
|
+
"application/json": {
|
|
2731
|
+
"schema": {
|
|
2732
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
2733
|
+
}
|
|
2734
|
+
}
|
|
2735
|
+
}
|
|
2736
|
+
},
|
|
2737
|
+
"4XX": {
|
|
2738
|
+
"description": "Error envelope",
|
|
2739
|
+
"content": {
|
|
2740
|
+
"application/json": {
|
|
2741
|
+
"schema": {
|
|
2742
|
+
"$ref": "#/components/schemas/ApiError"
|
|
2743
|
+
}
|
|
2744
|
+
}
|
|
2745
|
+
}
|
|
2746
|
+
},
|
|
2747
|
+
"5XX": {
|
|
2748
|
+
"description": "Error envelope",
|
|
2749
|
+
"content": {
|
|
2750
|
+
"application/json": {
|
|
2751
|
+
"schema": {
|
|
2752
|
+
"$ref": "#/components/schemas/ApiError"
|
|
2753
|
+
}
|
|
2754
|
+
}
|
|
2755
|
+
}
|
|
2756
|
+
}
|
|
2757
|
+
}
|
|
2758
|
+
}
|
|
2759
|
+
},
|
|
2760
|
+
"/api/devices/mac/file-read": {
|
|
2761
|
+
"post": {
|
|
2762
|
+
"operationId": "macFilesGet",
|
|
2763
|
+
"summary": "Read a file on the member's Mac: its text up to 256 KiB, or file.url for a larger or binary file. ~ is the member's home. Sensei calls it, and a Chat Session does with --device-id for a device approved for it.",
|
|
2764
|
+
"tags": ["mac"],
|
|
2765
|
+
"x-kosuke-command": ["mac", "files", "get"],
|
|
2766
|
+
"x-kosuke-sandbox-token": true,
|
|
2767
|
+
"x-kosuke-sensei-token": true,
|
|
2768
|
+
"requestBody": {
|
|
2769
|
+
"required": true,
|
|
2770
|
+
"content": {
|
|
2771
|
+
"application/json": {
|
|
2772
|
+
"schema": {
|
|
2773
|
+
"type": "object",
|
|
2774
|
+
"properties": {
|
|
2775
|
+
"deviceId": {
|
|
2776
|
+
"description": "The Mac ID returned by browser-profiles. An unavailable Mac fails without choosing another.",
|
|
2777
|
+
"x-kosuke-flag": "device-id",
|
|
2778
|
+
"type": "string",
|
|
2779
|
+
"minLength": 1,
|
|
2780
|
+
"maxLength": 255
|
|
2781
|
+
},
|
|
2782
|
+
"path": {
|
|
2783
|
+
"type": "string",
|
|
2784
|
+
"minLength": 1,
|
|
2785
|
+
"maxLength": 4096,
|
|
2786
|
+
"description": "A path on the Mac. ~ is the member’s home."
|
|
2787
|
+
}
|
|
2788
|
+
},
|
|
2789
|
+
"required": ["path"]
|
|
2790
|
+
}
|
|
2791
|
+
}
|
|
2792
|
+
}
|
|
2793
|
+
},
|
|
2794
|
+
"responses": {
|
|
2795
|
+
"2XX": {
|
|
2796
|
+
"description": "Success envelope",
|
|
2797
|
+
"content": {
|
|
2798
|
+
"application/json": {
|
|
2799
|
+
"schema": {
|
|
2800
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
2801
|
+
}
|
|
2802
|
+
}
|
|
2803
|
+
}
|
|
2804
|
+
},
|
|
2805
|
+
"4XX": {
|
|
2806
|
+
"description": "Error envelope",
|
|
2807
|
+
"content": {
|
|
2808
|
+
"application/json": {
|
|
2809
|
+
"schema": {
|
|
2810
|
+
"$ref": "#/components/schemas/ApiError"
|
|
2811
|
+
}
|
|
2812
|
+
}
|
|
2813
|
+
}
|
|
2814
|
+
},
|
|
2815
|
+
"5XX": {
|
|
2816
|
+
"description": "Error envelope",
|
|
2817
|
+
"content": {
|
|
2818
|
+
"application/json": {
|
|
2819
|
+
"schema": {
|
|
2820
|
+
"$ref": "#/components/schemas/ApiError"
|
|
2821
|
+
}
|
|
2822
|
+
}
|
|
2823
|
+
}
|
|
2824
|
+
}
|
|
2825
|
+
}
|
|
2826
|
+
}
|
|
2827
|
+
},
|
|
2828
|
+
"/api/devices/mac/file-write": {
|
|
2829
|
+
"post": {
|
|
2830
|
+
"operationId": "macFilesSet",
|
|
2831
|
+
"summary": "Write a file on the member's Mac, from text or from a URL the Mac downloads. Sensei calls it, and a Chat Session does with --device-id for a device approved for it. A Chat Session's call writes only under its scratch folder ~/KosukeQA/<session8>/ (the session id's first 8 characters), Xcode DerivedData, CoreSimulator, the temporary folders and the project's deviceWritePaths: a path elsewhere answers OUTSIDE_FENCE, and a device whose app cannot keep it answers FENCE_UNSUPPORTED.",
|
|
2832
|
+
"tags": ["mac"],
|
|
2833
|
+
"x-kosuke-command": ["mac", "files", "set"],
|
|
2834
|
+
"x-kosuke-sandbox-token": true,
|
|
2835
|
+
"x-kosuke-sensei-token": true,
|
|
2836
|
+
"requestBody": {
|
|
2837
|
+
"required": true,
|
|
2838
|
+
"content": {
|
|
2839
|
+
"application/json": {
|
|
2840
|
+
"schema": {
|
|
2841
|
+
"type": "object",
|
|
2842
|
+
"properties": {
|
|
2843
|
+
"deviceId": {
|
|
2844
|
+
"description": "The device, by the ID `kosuke devices list` prints. A Chat Session names the device it was approved for; Sensei may leave it out for the member’s Mac that is online.",
|
|
2845
|
+
"x-kosuke-flag": "device-id",
|
|
2846
|
+
"type": "string",
|
|
2847
|
+
"minLength": 1,
|
|
2848
|
+
"maxLength": 255
|
|
2849
|
+
},
|
|
2850
|
+
"path": {
|
|
2851
|
+
"type": "string",
|
|
2852
|
+
"minLength": 1,
|
|
2853
|
+
"maxLength": 4096,
|
|
2854
|
+
"description": "A path on the Mac. ~ is the member’s home."
|
|
2855
|
+
},
|
|
2856
|
+
"text": {
|
|
2857
|
+
"type": "string",
|
|
2858
|
+
"maxLength": 400000
|
|
2859
|
+
},
|
|
2860
|
+
"url": {
|
|
2861
|
+
"description": "A URL the Mac downloads the file from.",
|
|
2862
|
+
"type": "string",
|
|
2863
|
+
"format": "uri"
|
|
2864
|
+
}
|
|
2865
|
+
},
|
|
2866
|
+
"required": ["path"]
|
|
2867
|
+
}
|
|
2868
|
+
}
|
|
2869
|
+
}
|
|
2870
|
+
},
|
|
2871
|
+
"responses": {
|
|
2872
|
+
"2XX": {
|
|
2873
|
+
"description": "Success envelope",
|
|
2874
|
+
"content": {
|
|
2875
|
+
"application/json": {
|
|
2876
|
+
"schema": {
|
|
2877
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
2878
|
+
}
|
|
2879
|
+
}
|
|
2880
|
+
}
|
|
2881
|
+
},
|
|
2882
|
+
"4XX": {
|
|
2883
|
+
"description": "Error envelope",
|
|
2884
|
+
"content": {
|
|
2885
|
+
"application/json": {
|
|
2886
|
+
"schema": {
|
|
2887
|
+
"$ref": "#/components/schemas/ApiError"
|
|
2888
|
+
}
|
|
2889
|
+
}
|
|
2890
|
+
}
|
|
2891
|
+
},
|
|
2892
|
+
"5XX": {
|
|
2893
|
+
"description": "Error envelope",
|
|
2894
|
+
"content": {
|
|
2895
|
+
"application/json": {
|
|
2896
|
+
"schema": {
|
|
2897
|
+
"$ref": "#/components/schemas/ApiError"
|
|
2898
|
+
}
|
|
2899
|
+
}
|
|
2900
|
+
}
|
|
2901
|
+
}
|
|
2902
|
+
}
|
|
2903
|
+
}
|
|
2904
|
+
},
|
|
2905
|
+
"/api/devices/mac/key": {
|
|
2906
|
+
"post": {
|
|
2907
|
+
"operationId": "macKey",
|
|
2908
|
+
"summary": "Press a key chord, such as cmd+shift+s, in a window of the member's Mac, without bringing the window forward. Sensei calls it, and a Chat Session does with --device-id for a device approved for it.",
|
|
2909
|
+
"tags": ["mac"],
|
|
2910
|
+
"x-kosuke-command": ["mac", "key"],
|
|
2911
|
+
"x-kosuke-sandbox-token": true,
|
|
2912
|
+
"x-kosuke-sensei-token": true,
|
|
2913
|
+
"requestBody": {
|
|
2914
|
+
"required": true,
|
|
2915
|
+
"content": {
|
|
2916
|
+
"application/json": {
|
|
2917
|
+
"schema": {
|
|
2918
|
+
"type": "object",
|
|
2919
|
+
"properties": {
|
|
2920
|
+
"deviceId": {
|
|
2921
|
+
"description": "The device, by the ID `kosuke devices list` prints. A Chat Session names the device it was approved for; Sensei may leave it out for the member’s Mac that is online.",
|
|
2922
|
+
"x-kosuke-flag": "device-id",
|
|
2923
|
+
"type": "string",
|
|
2924
|
+
"minLength": 1,
|
|
2925
|
+
"maxLength": 255
|
|
2926
|
+
},
|
|
2927
|
+
"app": {
|
|
2928
|
+
"type": "string",
|
|
2929
|
+
"minLength": 1,
|
|
2930
|
+
"maxLength": 255,
|
|
2931
|
+
"description": "The app, by name or bundle id."
|
|
2932
|
+
},
|
|
2933
|
+
"pid": {
|
|
2934
|
+
"type": "integer",
|
|
2935
|
+
"exclusiveMinimum": 0,
|
|
2936
|
+
"maximum": 9007199254740991,
|
|
2937
|
+
"description": "The process id, from `kosuke mac windows list`."
|
|
2938
|
+
},
|
|
2939
|
+
"window": {
|
|
2940
|
+
"type": "string",
|
|
2941
|
+
"minLength": 1,
|
|
2942
|
+
"maxLength": 255,
|
|
2943
|
+
"description": "A substring of the window title."
|
|
2944
|
+
},
|
|
2945
|
+
"chord": {
|
|
2946
|
+
"type": "string",
|
|
2947
|
+
"minLength": 1,
|
|
2948
|
+
"maxLength": 64,
|
|
2949
|
+
"description": "The chord, such as cmd+shift+s."
|
|
2950
|
+
}
|
|
2951
|
+
},
|
|
2952
|
+
"required": ["chord"]
|
|
2953
|
+
}
|
|
2954
|
+
}
|
|
2955
|
+
}
|
|
2956
|
+
},
|
|
2957
|
+
"responses": {
|
|
2958
|
+
"2XX": {
|
|
2959
|
+
"description": "Success envelope",
|
|
2960
|
+
"content": {
|
|
2961
|
+
"application/json": {
|
|
2962
|
+
"schema": {
|
|
2963
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
2964
|
+
}
|
|
2965
|
+
}
|
|
2966
|
+
}
|
|
2967
|
+
},
|
|
2968
|
+
"4XX": {
|
|
2969
|
+
"description": "Error envelope",
|
|
2970
|
+
"content": {
|
|
2971
|
+
"application/json": {
|
|
2972
|
+
"schema": {
|
|
2973
|
+
"$ref": "#/components/schemas/ApiError"
|
|
2974
|
+
}
|
|
2975
|
+
}
|
|
2976
|
+
}
|
|
2977
|
+
},
|
|
2978
|
+
"5XX": {
|
|
2979
|
+
"description": "Error envelope",
|
|
2980
|
+
"content": {
|
|
2981
|
+
"application/json": {
|
|
2982
|
+
"schema": {
|
|
2983
|
+
"$ref": "#/components/schemas/ApiError"
|
|
2984
|
+
}
|
|
2985
|
+
}
|
|
2986
|
+
}
|
|
2987
|
+
}
|
|
2988
|
+
}
|
|
2989
|
+
}
|
|
2990
|
+
},
|
|
2991
|
+
"/api/devices/mac/location/get": {
|
|
2992
|
+
"post": {
|
|
2993
|
+
"operationId": "macLocationGet",
|
|
2994
|
+
"summary": "Read where the member's Mac is now, once, within 15 seconds (TIMEOUT otherwise). Answers latitude, longitude, accuracy in meters, altitude when known, and at. Without Apple Location turned on in the Sensei app on that Mac (Settings, You, Integrations), or with Location Services off for the whole Mac, it fails with PERMISSION_MISSING, which says which. Only Sensei calls it; a Chat Session gets 403 SENSEI_ONLY_TOOL.",
|
|
2995
|
+
"tags": ["mac"],
|
|
2996
|
+
"x-kosuke-command": ["mac", "location", "get"],
|
|
2997
|
+
"x-kosuke-sandbox-token": true,
|
|
2998
|
+
"x-kosuke-cron-token": true,
|
|
2999
|
+
"x-kosuke-sensei-token": true,
|
|
3000
|
+
"requestBody": {
|
|
3001
|
+
"required": true,
|
|
3002
|
+
"content": {
|
|
3003
|
+
"application/json": {
|
|
3004
|
+
"schema": {
|
|
3005
|
+
"type": "object",
|
|
3006
|
+
"properties": {
|
|
3007
|
+
"deviceId": {
|
|
3008
|
+
"description": "The member’s Mac, by the device ID `kosuke mac status get` prints. Leave it out for the member’s Mac that is online.",
|
|
3009
|
+
"x-kosuke-flag": "device-id",
|
|
3010
|
+
"type": "string",
|
|
3011
|
+
"minLength": 1,
|
|
3012
|
+
"maxLength": 255
|
|
3013
|
+
}
|
|
3014
|
+
}
|
|
3015
|
+
}
|
|
3016
|
+
}
|
|
3017
|
+
}
|
|
3018
|
+
},
|
|
3019
|
+
"responses": {
|
|
3020
|
+
"2XX": {
|
|
3021
|
+
"description": "Success envelope",
|
|
3022
|
+
"content": {
|
|
3023
|
+
"application/json": {
|
|
3024
|
+
"schema": {
|
|
3025
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
3026
|
+
}
|
|
3027
|
+
}
|
|
3028
|
+
}
|
|
3029
|
+
},
|
|
3030
|
+
"4XX": {
|
|
3031
|
+
"description": "Error envelope",
|
|
3032
|
+
"content": {
|
|
3033
|
+
"application/json": {
|
|
3034
|
+
"schema": {
|
|
3035
|
+
"$ref": "#/components/schemas/ApiError"
|
|
3036
|
+
}
|
|
3037
|
+
}
|
|
3038
|
+
}
|
|
3039
|
+
},
|
|
3040
|
+
"5XX": {
|
|
3041
|
+
"description": "Error envelope",
|
|
3042
|
+
"content": {
|
|
3043
|
+
"application/json": {
|
|
3044
|
+
"schema": {
|
|
3045
|
+
"$ref": "#/components/schemas/ApiError"
|
|
3046
|
+
}
|
|
3047
|
+
}
|
|
3048
|
+
}
|
|
3049
|
+
}
|
|
3050
|
+
}
|
|
3051
|
+
}
|
|
3052
|
+
},
|
|
3053
|
+
"/api/devices/mac/messages/conversations": {
|
|
3054
|
+
"post": {
|
|
3055
|
+
"operationId": "macMessagesConversationsList",
|
|
3056
|
+
"summary": "List the member's Messages conversations on their Mac, newest first. Answers conversations (id, name, participants, service, lastAt, lastText, lastFromMe) and nextCursor, null on the last page: pass it as --cursor for the next (--limit 25 by default, at most 100). Needs Apple Messages turned on in the Sensei app on that Mac (Settings, You, Integrations) and Full Disk Access (Settings, This Mac, Permissions): PERMISSION_MISSING names the one missing. Only Sensei calls it; a Chat Session gets 403 SENSEI_ONLY_TOOL.",
|
|
3057
|
+
"tags": ["mac"],
|
|
3058
|
+
"x-kosuke-command": ["mac", "messages", "conversations", "list"],
|
|
3059
|
+
"x-kosuke-sandbox-token": true,
|
|
3060
|
+
"x-kosuke-cron-token": true,
|
|
3061
|
+
"x-kosuke-sensei-token": true,
|
|
3062
|
+
"requestBody": {
|
|
3063
|
+
"required": true,
|
|
3064
|
+
"content": {
|
|
3065
|
+
"application/json": {
|
|
3066
|
+
"schema": {
|
|
3067
|
+
"type": "object",
|
|
3068
|
+
"properties": {
|
|
3069
|
+
"deviceId": {
|
|
3070
|
+
"description": "The member’s Mac, by the device ID `kosuke mac status get` prints. Leave it out for the member’s Mac that is online.",
|
|
3071
|
+
"x-kosuke-flag": "device-id",
|
|
3072
|
+
"type": "string",
|
|
3073
|
+
"minLength": 1,
|
|
3074
|
+
"maxLength": 255
|
|
3075
|
+
},
|
|
3076
|
+
"limit": {
|
|
3077
|
+
"description": "Most items in one page: 25 by default, at most 100.",
|
|
3078
|
+
"type": "integer",
|
|
3079
|
+
"minimum": 1,
|
|
3080
|
+
"maximum": 100
|
|
3081
|
+
},
|
|
3082
|
+
"cursor": {
|
|
3083
|
+
"description": "The nextCursor of the previous page. Leave it out for the first page.",
|
|
3084
|
+
"type": "string",
|
|
3085
|
+
"minLength": 1,
|
|
3086
|
+
"maxLength": 1024
|
|
3087
|
+
}
|
|
3088
|
+
}
|
|
3089
|
+
}
|
|
3090
|
+
}
|
|
3091
|
+
}
|
|
3092
|
+
},
|
|
3093
|
+
"responses": {
|
|
3094
|
+
"2XX": {
|
|
3095
|
+
"description": "Success envelope",
|
|
3096
|
+
"content": {
|
|
3097
|
+
"application/json": {
|
|
3098
|
+
"schema": {
|
|
3099
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
3100
|
+
}
|
|
3101
|
+
}
|
|
3102
|
+
}
|
|
3103
|
+
},
|
|
3104
|
+
"4XX": {
|
|
3105
|
+
"description": "Error envelope",
|
|
3106
|
+
"content": {
|
|
3107
|
+
"application/json": {
|
|
3108
|
+
"schema": {
|
|
3109
|
+
"$ref": "#/components/schemas/ApiError"
|
|
3110
|
+
}
|
|
3111
|
+
}
|
|
3112
|
+
}
|
|
3113
|
+
},
|
|
3114
|
+
"5XX": {
|
|
3115
|
+
"description": "Error envelope",
|
|
3116
|
+
"content": {
|
|
3117
|
+
"application/json": {
|
|
3118
|
+
"schema": {
|
|
3119
|
+
"$ref": "#/components/schemas/ApiError"
|
|
3120
|
+
}
|
|
3121
|
+
}
|
|
3122
|
+
}
|
|
3123
|
+
}
|
|
3124
|
+
}
|
|
3125
|
+
}
|
|
3126
|
+
},
|
|
3127
|
+
"/api/devices/mac/messages/read": {
|
|
3128
|
+
"post": {
|
|
3129
|
+
"operationId": "macMessagesList",
|
|
3130
|
+
"summary": "Read the messages of one conversation on the member's Mac, newest first: --chat is an id conversations list answered, or a phone number or email. Answers messages (id, at, fromMe, sender, text cut at 4000 characters with truncated true, attachments as a count) and nextCursor, null on the last page: pass it as --cursor for the next (--limit 25 by default, at most 100). Needs Apple Messages turned on in the Sensei app on that Mac (Settings, You, Integrations) and Full Disk Access (Settings, This Mac, Permissions): PERMISSION_MISSING names the one missing. Only Sensei calls it; a Chat Session gets 403 SENSEI_ONLY_TOOL.",
|
|
3131
|
+
"tags": ["mac"],
|
|
3132
|
+
"x-kosuke-command": ["mac", "messages", "list"],
|
|
3133
|
+
"x-kosuke-sandbox-token": true,
|
|
3134
|
+
"x-kosuke-cron-token": true,
|
|
3135
|
+
"x-kosuke-sensei-token": true,
|
|
3136
|
+
"requestBody": {
|
|
3137
|
+
"required": true,
|
|
3138
|
+
"content": {
|
|
3139
|
+
"application/json": {
|
|
3140
|
+
"schema": {
|
|
3141
|
+
"type": "object",
|
|
3142
|
+
"properties": {
|
|
3143
|
+
"deviceId": {
|
|
3144
|
+
"description": "The member’s Mac, by the device ID `kosuke mac status get` prints. Leave it out for the member’s Mac that is online.",
|
|
3145
|
+
"x-kosuke-flag": "device-id",
|
|
3146
|
+
"type": "string",
|
|
3147
|
+
"minLength": 1,
|
|
3148
|
+
"maxLength": 255
|
|
3149
|
+
},
|
|
3150
|
+
"chat": {
|
|
3151
|
+
"type": "string",
|
|
3152
|
+
"minLength": 1,
|
|
3153
|
+
"maxLength": 512,
|
|
3154
|
+
"description": "The conversation, by the id `kosuke mac messages conversations list` answered, or a phone number or email."
|
|
3155
|
+
},
|
|
3156
|
+
"limit": {
|
|
3157
|
+
"description": "Most items in one page: 25 by default, at most 100.",
|
|
3158
|
+
"type": "integer",
|
|
3159
|
+
"minimum": 1,
|
|
3160
|
+
"maximum": 100
|
|
3161
|
+
},
|
|
3162
|
+
"cursor": {
|
|
3163
|
+
"description": "The nextCursor of the previous page. Leave it out for the first page.",
|
|
3164
|
+
"type": "string",
|
|
3165
|
+
"minLength": 1,
|
|
3166
|
+
"maxLength": 1024
|
|
3167
|
+
}
|
|
3168
|
+
},
|
|
3169
|
+
"required": ["chat"]
|
|
3170
|
+
}
|
|
3171
|
+
}
|
|
3172
|
+
}
|
|
3173
|
+
},
|
|
3174
|
+
"responses": {
|
|
3175
|
+
"2XX": {
|
|
3176
|
+
"description": "Success envelope",
|
|
3177
|
+
"content": {
|
|
3178
|
+
"application/json": {
|
|
3179
|
+
"schema": {
|
|
3180
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
3181
|
+
}
|
|
3182
|
+
}
|
|
3183
|
+
}
|
|
3184
|
+
},
|
|
3185
|
+
"4XX": {
|
|
3186
|
+
"description": "Error envelope",
|
|
3187
|
+
"content": {
|
|
3188
|
+
"application/json": {
|
|
3189
|
+
"schema": {
|
|
3190
|
+
"$ref": "#/components/schemas/ApiError"
|
|
3191
|
+
}
|
|
3192
|
+
}
|
|
3193
|
+
}
|
|
3194
|
+
},
|
|
3195
|
+
"5XX": {
|
|
3196
|
+
"description": "Error envelope",
|
|
3197
|
+
"content": {
|
|
3198
|
+
"application/json": {
|
|
3199
|
+
"schema": {
|
|
3200
|
+
"$ref": "#/components/schemas/ApiError"
|
|
3201
|
+
}
|
|
3202
|
+
}
|
|
3203
|
+
}
|
|
3204
|
+
}
|
|
3205
|
+
}
|
|
3206
|
+
}
|
|
3207
|
+
},
|
|
3208
|
+
"/api/devices/mac/messages/send": {
|
|
3209
|
+
"post": {
|
|
3210
|
+
"operationId": "macMessagesSend",
|
|
3211
|
+
"summary": "Send an iMessage, or an SMS with --service SMS, from the member's Mac: --to a phone number, email or conversation id, and --text. It sends only after the member approved, in this thread and this Turn, a card keyed mac-message:<recipient> that shows the recipient and, in a text block with role draft, this exact text; each Approve allows one send. Without one it fails with 403 MESSAGE_NEEDS_APPROVAL, which names the card's key. Answers sent, to and service. Without Apple Messages turned on in the Sensei app on that Mac (Settings, You, Integrations) it fails with PERMISSION_MISSING, which says so. Only Sensei calls it; a Chat Session gets 403 SENSEI_ONLY_TOOL.",
|
|
3212
|
+
"tags": ["mac"],
|
|
3213
|
+
"x-kosuke-command": ["mac", "messages", "send"],
|
|
3214
|
+
"x-kosuke-sandbox-token": true,
|
|
3215
|
+
"x-kosuke-cron-token": true,
|
|
3216
|
+
"x-kosuke-sensei-token": true,
|
|
3217
|
+
"requestBody": {
|
|
3218
|
+
"required": true,
|
|
3219
|
+
"content": {
|
|
3220
|
+
"application/json": {
|
|
3221
|
+
"schema": {
|
|
3222
|
+
"type": "object",
|
|
3223
|
+
"properties": {
|
|
3224
|
+
"deviceId": {
|
|
3225
|
+
"description": "The member’s Mac, by the device ID `kosuke mac status get` prints. Leave it out for the member’s Mac that is online.",
|
|
3226
|
+
"x-kosuke-flag": "device-id",
|
|
3227
|
+
"type": "string",
|
|
3228
|
+
"minLength": 1,
|
|
3229
|
+
"maxLength": 255
|
|
3230
|
+
},
|
|
3231
|
+
"to": {
|
|
3232
|
+
"type": "string",
|
|
3233
|
+
"minLength": 1,
|
|
3234
|
+
"maxLength": 512,
|
|
3235
|
+
"description": "A phone number, an email or a conversation id, exactly as the approved card names it."
|
|
3236
|
+
},
|
|
3237
|
+
"text": {
|
|
3238
|
+
"type": "string",
|
|
3239
|
+
"minLength": 1,
|
|
3240
|
+
"maxLength": 4000,
|
|
3241
|
+
"description": "The message, exactly as the approved card shows it."
|
|
3242
|
+
},
|
|
3243
|
+
"service": {
|
|
3244
|
+
"description": "iMessage by default.",
|
|
3245
|
+
"type": "string",
|
|
3246
|
+
"enum": ["iMessage", "SMS"]
|
|
3247
|
+
}
|
|
3248
|
+
},
|
|
3249
|
+
"required": ["to", "text"]
|
|
3250
|
+
}
|
|
3251
|
+
}
|
|
3252
|
+
}
|
|
3253
|
+
},
|
|
3254
|
+
"responses": {
|
|
3255
|
+
"2XX": {
|
|
3256
|
+
"description": "Success envelope",
|
|
3257
|
+
"content": {
|
|
3258
|
+
"application/json": {
|
|
3259
|
+
"schema": {
|
|
3260
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
3261
|
+
}
|
|
3262
|
+
}
|
|
3263
|
+
}
|
|
3264
|
+
},
|
|
3265
|
+
"4XX": {
|
|
3266
|
+
"description": "Error envelope",
|
|
3267
|
+
"content": {
|
|
3268
|
+
"application/json": {
|
|
3269
|
+
"schema": {
|
|
3270
|
+
"$ref": "#/components/schemas/ApiError"
|
|
3271
|
+
}
|
|
3272
|
+
}
|
|
3273
|
+
}
|
|
3274
|
+
},
|
|
3275
|
+
"5XX": {
|
|
3276
|
+
"description": "Error envelope",
|
|
3277
|
+
"content": {
|
|
3278
|
+
"application/json": {
|
|
3279
|
+
"schema": {
|
|
3280
|
+
"$ref": "#/components/schemas/ApiError"
|
|
3281
|
+
}
|
|
3282
|
+
}
|
|
3283
|
+
}
|
|
3284
|
+
}
|
|
3285
|
+
}
|
|
3286
|
+
}
|
|
3287
|
+
},
|
|
3288
|
+
"/api/devices/mac/notes/append": {
|
|
3289
|
+
"post": {
|
|
3290
|
+
"operationId": "macNotesUpdate",
|
|
3291
|
+
"summary": "Add plain text at the end of a note on the member's Mac, by its id: it never replaces what the note holds. Answers note: id, title and folder. Without Apple Notes turned on in the Sensei app on that Mac (Settings, You, Integrations) it fails with PERMISSION_MISSING, which says so. Only Sensei calls it; a Chat Session gets 403 SENSEI_ONLY_TOOL.",
|
|
3292
|
+
"tags": ["mac"],
|
|
3293
|
+
"x-kosuke-command": ["mac", "notes", "update"],
|
|
3294
|
+
"x-kosuke-sandbox-token": true,
|
|
3295
|
+
"x-kosuke-cron-token": true,
|
|
3296
|
+
"x-kosuke-sensei-token": true,
|
|
3297
|
+
"requestBody": {
|
|
3298
|
+
"required": true,
|
|
3299
|
+
"content": {
|
|
3300
|
+
"application/json": {
|
|
3301
|
+
"schema": {
|
|
3302
|
+
"type": "object",
|
|
3303
|
+
"properties": {
|
|
3304
|
+
"deviceId": {
|
|
3305
|
+
"description": "The member’s Mac, by the device ID `kosuke mac status get` prints. Leave it out for the member’s Mac that is online.",
|
|
3306
|
+
"x-kosuke-flag": "device-id",
|
|
3307
|
+
"type": "string",
|
|
3308
|
+
"minLength": 1,
|
|
3309
|
+
"maxLength": 255
|
|
3310
|
+
},
|
|
3311
|
+
"id": {
|
|
3312
|
+
"type": "string",
|
|
3313
|
+
"minLength": 1,
|
|
3314
|
+
"maxLength": 1024,
|
|
3315
|
+
"description": "The note, by the id a search or create answered."
|
|
3316
|
+
},
|
|
3317
|
+
"text": {
|
|
3318
|
+
"type": "string",
|
|
3319
|
+
"minLength": 1,
|
|
3320
|
+
"maxLength": 100000,
|
|
3321
|
+
"description": "Plain text added at the end of the note."
|
|
3322
|
+
}
|
|
3323
|
+
},
|
|
3324
|
+
"required": ["id", "text"]
|
|
3325
|
+
}
|
|
3326
|
+
}
|
|
3327
|
+
}
|
|
3328
|
+
},
|
|
3329
|
+
"responses": {
|
|
3330
|
+
"2XX": {
|
|
3331
|
+
"description": "Success envelope",
|
|
3332
|
+
"content": {
|
|
3333
|
+
"application/json": {
|
|
3334
|
+
"schema": {
|
|
3335
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
3336
|
+
}
|
|
3337
|
+
}
|
|
3338
|
+
}
|
|
3339
|
+
},
|
|
3340
|
+
"4XX": {
|
|
3341
|
+
"description": "Error envelope",
|
|
3342
|
+
"content": {
|
|
3343
|
+
"application/json": {
|
|
3344
|
+
"schema": {
|
|
3345
|
+
"$ref": "#/components/schemas/ApiError"
|
|
3346
|
+
}
|
|
3347
|
+
}
|
|
3348
|
+
}
|
|
3349
|
+
},
|
|
3350
|
+
"5XX": {
|
|
3351
|
+
"description": "Error envelope",
|
|
3352
|
+
"content": {
|
|
3353
|
+
"application/json": {
|
|
3354
|
+
"schema": {
|
|
3355
|
+
"$ref": "#/components/schemas/ApiError"
|
|
3356
|
+
}
|
|
3357
|
+
}
|
|
3358
|
+
}
|
|
3359
|
+
}
|
|
3360
|
+
}
|
|
3361
|
+
}
|
|
3362
|
+
},
|
|
3363
|
+
"/api/devices/mac/notes/create": {
|
|
3364
|
+
"post": {
|
|
3365
|
+
"operationId": "macNotesCreate",
|
|
3366
|
+
"summary": "Create a note on the member's Mac with a title and an optional plain-text body, in --folder (by id or exact name) or the default account's default folder. Answers note: id, title and folder. Without Apple Notes turned on in the Sensei app on that Mac (Settings, You, Integrations) it fails with PERMISSION_MISSING, which says so. Only Sensei calls it; a Chat Session gets 403 SENSEI_ONLY_TOOL.",
|
|
3367
|
+
"tags": ["mac"],
|
|
3368
|
+
"x-kosuke-command": ["mac", "notes", "create"],
|
|
3369
|
+
"x-kosuke-sandbox-token": true,
|
|
3370
|
+
"x-kosuke-cron-token": true,
|
|
3371
|
+
"x-kosuke-sensei-token": true,
|
|
3372
|
+
"requestBody": {
|
|
3373
|
+
"required": true,
|
|
3374
|
+
"content": {
|
|
3375
|
+
"application/json": {
|
|
3376
|
+
"schema": {
|
|
3377
|
+
"type": "object",
|
|
3378
|
+
"properties": {
|
|
3379
|
+
"deviceId": {
|
|
3380
|
+
"description": "The member’s Mac, by the device ID `kosuke mac status get` prints. Leave it out for the member’s Mac that is online.",
|
|
3381
|
+
"x-kosuke-flag": "device-id",
|
|
3382
|
+
"type": "string",
|
|
3383
|
+
"minLength": 1,
|
|
3384
|
+
"maxLength": 255
|
|
3385
|
+
},
|
|
3386
|
+
"title": {
|
|
3387
|
+
"type": "string",
|
|
3388
|
+
"minLength": 1,
|
|
3389
|
+
"maxLength": 1000
|
|
3390
|
+
},
|
|
3391
|
+
"body": {
|
|
3392
|
+
"description": "Plain text.",
|
|
3393
|
+
"type": "string",
|
|
3394
|
+
"maxLength": 100000
|
|
3395
|
+
},
|
|
3396
|
+
"folder": {
|
|
3397
|
+
"description": "The folder, by id or exact name. The default account’s default folder by default.",
|
|
3398
|
+
"type": "string",
|
|
3399
|
+
"minLength": 1,
|
|
3400
|
+
"maxLength": 255
|
|
3401
|
+
}
|
|
3402
|
+
},
|
|
3403
|
+
"required": ["title"]
|
|
3404
|
+
}
|
|
3405
|
+
}
|
|
3406
|
+
}
|
|
3407
|
+
},
|
|
3408
|
+
"responses": {
|
|
3409
|
+
"2XX": {
|
|
3410
|
+
"description": "Success envelope",
|
|
3411
|
+
"content": {
|
|
3412
|
+
"application/json": {
|
|
3413
|
+
"schema": {
|
|
3414
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
3415
|
+
}
|
|
3416
|
+
}
|
|
3417
|
+
}
|
|
3418
|
+
},
|
|
3419
|
+
"4XX": {
|
|
3420
|
+
"description": "Error envelope",
|
|
3421
|
+
"content": {
|
|
3422
|
+
"application/json": {
|
|
3423
|
+
"schema": {
|
|
3424
|
+
"$ref": "#/components/schemas/ApiError"
|
|
3425
|
+
}
|
|
3426
|
+
}
|
|
3427
|
+
}
|
|
3428
|
+
},
|
|
3429
|
+
"5XX": {
|
|
3430
|
+
"description": "Error envelope",
|
|
3431
|
+
"content": {
|
|
3432
|
+
"application/json": {
|
|
3433
|
+
"schema": {
|
|
3434
|
+
"$ref": "#/components/schemas/ApiError"
|
|
3435
|
+
}
|
|
3436
|
+
}
|
|
3437
|
+
}
|
|
3438
|
+
}
|
|
3439
|
+
}
|
|
3440
|
+
}
|
|
3441
|
+
},
|
|
3442
|
+
"/api/devices/mac/notes/folders": {
|
|
3443
|
+
"post": {
|
|
3444
|
+
"operationId": "macNotesFoldersList",
|
|
3445
|
+
"summary": "List the member's Notes folders on their Mac. Answers folders: id, name, account and count. Without Apple Notes turned on in the Sensei app on that Mac (Settings, You, Integrations) it fails with PERMISSION_MISSING, which says so. Only Sensei calls it; a Chat Session gets 403 SENSEI_ONLY_TOOL.",
|
|
3446
|
+
"tags": ["mac"],
|
|
3447
|
+
"x-kosuke-command": ["mac", "notes", "folders", "list"],
|
|
3448
|
+
"x-kosuke-sandbox-token": true,
|
|
3449
|
+
"x-kosuke-cron-token": true,
|
|
3450
|
+
"x-kosuke-sensei-token": true,
|
|
3451
|
+
"requestBody": {
|
|
3452
|
+
"required": true,
|
|
3453
|
+
"content": {
|
|
3454
|
+
"application/json": {
|
|
3455
|
+
"schema": {
|
|
3456
|
+
"type": "object",
|
|
3457
|
+
"properties": {
|
|
3458
|
+
"deviceId": {
|
|
3459
|
+
"description": "The member’s Mac, by the device ID `kosuke mac status get` prints. Leave it out for the member’s Mac that is online.",
|
|
3460
|
+
"x-kosuke-flag": "device-id",
|
|
3461
|
+
"type": "string",
|
|
3462
|
+
"minLength": 1,
|
|
3463
|
+
"maxLength": 255
|
|
3464
|
+
}
|
|
3465
|
+
}
|
|
3466
|
+
}
|
|
3467
|
+
}
|
|
3468
|
+
}
|
|
3469
|
+
},
|
|
3470
|
+
"responses": {
|
|
3471
|
+
"2XX": {
|
|
3472
|
+
"description": "Success envelope",
|
|
3473
|
+
"content": {
|
|
3474
|
+
"application/json": {
|
|
3475
|
+
"schema": {
|
|
3476
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
3477
|
+
}
|
|
3478
|
+
}
|
|
3479
|
+
}
|
|
3480
|
+
},
|
|
3481
|
+
"4XX": {
|
|
3482
|
+
"description": "Error envelope",
|
|
3483
|
+
"content": {
|
|
3484
|
+
"application/json": {
|
|
3485
|
+
"schema": {
|
|
3486
|
+
"$ref": "#/components/schemas/ApiError"
|
|
3487
|
+
}
|
|
3488
|
+
}
|
|
3489
|
+
}
|
|
3490
|
+
},
|
|
3491
|
+
"5XX": {
|
|
3492
|
+
"description": "Error envelope",
|
|
3493
|
+
"content": {
|
|
3494
|
+
"application/json": {
|
|
3495
|
+
"schema": {
|
|
3496
|
+
"$ref": "#/components/schemas/ApiError"
|
|
3497
|
+
}
|
|
3498
|
+
}
|
|
3499
|
+
}
|
|
3500
|
+
}
|
|
3501
|
+
}
|
|
3502
|
+
}
|
|
3503
|
+
},
|
|
3504
|
+
"/api/devices/mac/notes/read": {
|
|
3505
|
+
"post": {
|
|
3506
|
+
"operationId": "macNotesGet",
|
|
3507
|
+
"summary": "Read one note on the member's Mac, by its id. Answers note: id, title, folder, created, modified, and body as plain text, cut at 4000 characters with truncated true. Without Apple Notes turned on in the Sensei app on that Mac (Settings, You, Integrations) it fails with PERMISSION_MISSING, which says so. Only Sensei calls it; a Chat Session gets 403 SENSEI_ONLY_TOOL.",
|
|
3508
|
+
"tags": ["mac"],
|
|
3509
|
+
"x-kosuke-command": ["mac", "notes", "get"],
|
|
3510
|
+
"x-kosuke-sandbox-token": true,
|
|
3511
|
+
"x-kosuke-cron-token": true,
|
|
3512
|
+
"x-kosuke-sensei-token": true,
|
|
3513
|
+
"requestBody": {
|
|
3514
|
+
"required": true,
|
|
3515
|
+
"content": {
|
|
3516
|
+
"application/json": {
|
|
3517
|
+
"schema": {
|
|
3518
|
+
"type": "object",
|
|
3519
|
+
"properties": {
|
|
3520
|
+
"deviceId": {
|
|
3521
|
+
"description": "The member’s Mac, by the device ID `kosuke mac status get` prints. Leave it out for the member’s Mac that is online.",
|
|
3522
|
+
"x-kosuke-flag": "device-id",
|
|
3523
|
+
"type": "string",
|
|
3524
|
+
"minLength": 1,
|
|
3525
|
+
"maxLength": 255
|
|
3526
|
+
},
|
|
3527
|
+
"id": {
|
|
3528
|
+
"type": "string",
|
|
3529
|
+
"minLength": 1,
|
|
3530
|
+
"maxLength": 1024,
|
|
3531
|
+
"description": "The note, by the id a search or create answered."
|
|
3532
|
+
}
|
|
3533
|
+
},
|
|
3534
|
+
"required": ["id"]
|
|
3535
|
+
}
|
|
3536
|
+
}
|
|
3537
|
+
}
|
|
3538
|
+
},
|
|
3539
|
+
"responses": {
|
|
3540
|
+
"2XX": {
|
|
3541
|
+
"description": "Success envelope",
|
|
3542
|
+
"content": {
|
|
3543
|
+
"application/json": {
|
|
3544
|
+
"schema": {
|
|
3545
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
3546
|
+
}
|
|
3547
|
+
}
|
|
3548
|
+
}
|
|
3549
|
+
},
|
|
3550
|
+
"4XX": {
|
|
3551
|
+
"description": "Error envelope",
|
|
3552
|
+
"content": {
|
|
3553
|
+
"application/json": {
|
|
3554
|
+
"schema": {
|
|
3555
|
+
"$ref": "#/components/schemas/ApiError"
|
|
3556
|
+
}
|
|
3557
|
+
}
|
|
3558
|
+
}
|
|
3559
|
+
},
|
|
3560
|
+
"5XX": {
|
|
3561
|
+
"description": "Error envelope",
|
|
3562
|
+
"content": {
|
|
3563
|
+
"application/json": {
|
|
3564
|
+
"schema": {
|
|
3565
|
+
"$ref": "#/components/schemas/ApiError"
|
|
3566
|
+
}
|
|
3567
|
+
}
|
|
3568
|
+
}
|
|
3569
|
+
}
|
|
3570
|
+
}
|
|
3571
|
+
}
|
|
3572
|
+
},
|
|
3573
|
+
"/api/devices/mac/notes/search": {
|
|
3574
|
+
"post": {
|
|
3575
|
+
"operationId": "macNotesSearch",
|
|
3576
|
+
"summary": "Search notes on the member's Mac whose title or body contains --query, in one folder (by id or exact name) or in all. Answers notes (id, title, folder, modified, snippet) and nextCursor, null on the last page: pass it as --cursor for the next (--limit 25 by default, at most 100). Without Apple Notes turned on in the Sensei app on that Mac (Settings, You, Integrations) it fails with PERMISSION_MISSING, which says so. Only Sensei calls it; a Chat Session gets 403 SENSEI_ONLY_TOOL.",
|
|
1951
3577
|
"tags": ["mac"],
|
|
1952
|
-
"x-kosuke-command": ["mac", "
|
|
3578
|
+
"x-kosuke-command": ["mac", "notes", "search"],
|
|
1953
3579
|
"x-kosuke-sandbox-token": true,
|
|
3580
|
+
"x-kosuke-cron-token": true,
|
|
1954
3581
|
"x-kosuke-sensei-token": true,
|
|
1955
3582
|
"requestBody": {
|
|
1956
3583
|
"required": true,
|
|
@@ -1960,44 +3587,38 @@
|
|
|
1960
3587
|
"type": "object",
|
|
1961
3588
|
"properties": {
|
|
1962
3589
|
"deviceId": {
|
|
1963
|
-
"description": "The
|
|
3590
|
+
"description": "The member’s Mac, by the device ID `kosuke mac status get` prints. Leave it out for the member’s Mac that is online.",
|
|
1964
3591
|
"x-kosuke-flag": "device-id",
|
|
1965
3592
|
"type": "string",
|
|
1966
3593
|
"minLength": 1,
|
|
1967
3594
|
"maxLength": 255
|
|
1968
3595
|
},
|
|
1969
|
-
"
|
|
3596
|
+
"query": {
|
|
1970
3597
|
"type": "string",
|
|
1971
3598
|
"minLength": 1,
|
|
1972
|
-
"maxLength":
|
|
1973
|
-
"description": "
|
|
1974
|
-
},
|
|
1975
|
-
"pid": {
|
|
1976
|
-
"type": "integer",
|
|
1977
|
-
"exclusiveMinimum": 0,
|
|
1978
|
-
"maximum": 9007199254740991,
|
|
1979
|
-
"description": "The process id, from `kosuke mac windows list`."
|
|
3599
|
+
"maxLength": 500,
|
|
3600
|
+
"description": "Matches the title or body."
|
|
1980
3601
|
},
|
|
1981
|
-
"
|
|
3602
|
+
"folder": {
|
|
1982
3603
|
"type": "string",
|
|
1983
3604
|
"minLength": 1,
|
|
1984
3605
|
"maxLength": 255,
|
|
1985
|
-
"description": "
|
|
1986
|
-
},
|
|
1987
|
-
"ref": {
|
|
1988
|
-
"type": "string",
|
|
1989
|
-
"pattern": "^e\\d+$",
|
|
1990
|
-
"description": "An element ref from `kosuke mac ax-tree get`, such as e12."
|
|
3606
|
+
"description": "The folder, by id or exact name, from `kosuke mac notes folders list`."
|
|
1991
3607
|
},
|
|
1992
|
-
"
|
|
1993
|
-
"description": "
|
|
1994
|
-
"type": "
|
|
3608
|
+
"limit": {
|
|
3609
|
+
"description": "Most items in one page: 25 by default, at most 100.",
|
|
3610
|
+
"type": "integer",
|
|
3611
|
+
"minimum": 1,
|
|
3612
|
+
"maximum": 100
|
|
1995
3613
|
},
|
|
1996
|
-
"
|
|
1997
|
-
"description": "
|
|
1998
|
-
"type": "
|
|
3614
|
+
"cursor": {
|
|
3615
|
+
"description": "The nextCursor of the previous page. Leave it out for the first page.",
|
|
3616
|
+
"type": "string",
|
|
3617
|
+
"minLength": 1,
|
|
3618
|
+
"maxLength": 1024
|
|
1999
3619
|
}
|
|
2000
|
-
}
|
|
3620
|
+
},
|
|
3621
|
+
"required": ["query"]
|
|
2001
3622
|
}
|
|
2002
3623
|
}
|
|
2003
3624
|
}
|
|
@@ -2036,12 +3657,12 @@
|
|
|
2036
3657
|
}
|
|
2037
3658
|
}
|
|
2038
3659
|
},
|
|
2039
|
-
"/api/devices/mac/
|
|
3660
|
+
"/api/devices/mac/open": {
|
|
2040
3661
|
"post": {
|
|
2041
|
-
"operationId": "
|
|
2042
|
-
"summary": "
|
|
3662
|
+
"operationId": "macOpen",
|
|
3663
|
+
"summary": "Open an app or a URL on the member's Mac. Sensei calls it, and a Chat Session does with --device-id for a device approved for it.",
|
|
2043
3664
|
"tags": ["mac"],
|
|
2044
|
-
"x-kosuke-command": ["mac", "
|
|
3665
|
+
"x-kosuke-command": ["mac", "open"],
|
|
2045
3666
|
"x-kosuke-sandbox-token": true,
|
|
2046
3667
|
"x-kosuke-sensei-token": true,
|
|
2047
3668
|
"requestBody": {
|
|
@@ -2058,14 +3679,17 @@
|
|
|
2058
3679
|
"minLength": 1,
|
|
2059
3680
|
"maxLength": 255
|
|
2060
3681
|
},
|
|
2061
|
-
"
|
|
3682
|
+
"app": {
|
|
2062
3683
|
"type": "string",
|
|
2063
3684
|
"minLength": 1,
|
|
2064
|
-
"maxLength":
|
|
2065
|
-
"description": "
|
|
3685
|
+
"maxLength": 255,
|
|
3686
|
+
"description": "The app, by name or bundle id."
|
|
3687
|
+
},
|
|
3688
|
+
"url": {
|
|
3689
|
+
"type": "string",
|
|
3690
|
+
"format": "uri"
|
|
2066
3691
|
}
|
|
2067
|
-
}
|
|
2068
|
-
"required": ["path"]
|
|
3692
|
+
}
|
|
2069
3693
|
}
|
|
2070
3694
|
}
|
|
2071
3695
|
}
|
|
@@ -2104,13 +3728,14 @@
|
|
|
2104
3728
|
}
|
|
2105
3729
|
}
|
|
2106
3730
|
},
|
|
2107
|
-
"/api/devices/mac/
|
|
3731
|
+
"/api/devices/mac/reminders/complete": {
|
|
2108
3732
|
"post": {
|
|
2109
|
-
"operationId": "
|
|
2110
|
-
"summary": "
|
|
3733
|
+
"operationId": "macRemindersComplete",
|
|
3734
|
+
"summary": "Mark a reminder on the member's Mac done, by its id; --no-completed opens it again. Answers reminder. Without Apple Reminders turned on in the Sensei app on that Mac (Settings, You, Integrations) it fails with PERMISSION_MISSING, which says so. Only Sensei calls it; a Chat Session gets 403 SENSEI_ONLY_TOOL.",
|
|
2111
3735
|
"tags": ["mac"],
|
|
2112
|
-
"x-kosuke-command": ["mac", "
|
|
3736
|
+
"x-kosuke-command": ["mac", "reminders", "complete"],
|
|
2113
3737
|
"x-kosuke-sandbox-token": true,
|
|
3738
|
+
"x-kosuke-cron-token": true,
|
|
2114
3739
|
"x-kosuke-sensei-token": true,
|
|
2115
3740
|
"requestBody": {
|
|
2116
3741
|
"required": true,
|
|
@@ -2120,20 +3745,24 @@
|
|
|
2120
3745
|
"type": "object",
|
|
2121
3746
|
"properties": {
|
|
2122
3747
|
"deviceId": {
|
|
2123
|
-
"description": "The
|
|
3748
|
+
"description": "The member’s Mac, by the device ID `kosuke mac status get` prints. Leave it out for the member’s Mac that is online.",
|
|
2124
3749
|
"x-kosuke-flag": "device-id",
|
|
2125
3750
|
"type": "string",
|
|
2126
3751
|
"minLength": 1,
|
|
2127
3752
|
"maxLength": 255
|
|
2128
3753
|
},
|
|
2129
|
-
"
|
|
3754
|
+
"id": {
|
|
2130
3755
|
"type": "string",
|
|
2131
3756
|
"minLength": 1,
|
|
2132
|
-
"maxLength":
|
|
2133
|
-
"description": "
|
|
3757
|
+
"maxLength": 1024,
|
|
3758
|
+
"description": "The reminder, by the id a list, search or create answered."
|
|
3759
|
+
},
|
|
3760
|
+
"completed": {
|
|
3761
|
+
"description": "Send false (--no-completed) to open a completed reminder again. True by default.",
|
|
3762
|
+
"type": "boolean"
|
|
2134
3763
|
}
|
|
2135
3764
|
},
|
|
2136
|
-
"required": ["
|
|
3765
|
+
"required": ["id"]
|
|
2137
3766
|
}
|
|
2138
3767
|
}
|
|
2139
3768
|
}
|
|
@@ -2172,13 +3801,14 @@
|
|
|
2172
3801
|
}
|
|
2173
3802
|
}
|
|
2174
3803
|
},
|
|
2175
|
-
"/api/devices/mac/
|
|
3804
|
+
"/api/devices/mac/reminders/create": {
|
|
2176
3805
|
"post": {
|
|
2177
|
-
"operationId": "
|
|
2178
|
-
"summary": "
|
|
3806
|
+
"operationId": "macRemindersCreate",
|
|
3807
|
+
"summary": "Create a reminder on the member's Mac with a title, in --list (by id or exact title) or the default list, with optional notes, due (a date such as 2026-11-20, or a date and time with an offset) and priority (0 none, 1 highest to 9 lowest). Answers reminder. Without Apple Reminders turned on in the Sensei app on that Mac (Settings, You, Integrations) it fails with PERMISSION_MISSING, which says so. Only Sensei calls it; a Chat Session gets 403 SENSEI_ONLY_TOOL.",
|
|
2179
3808
|
"tags": ["mac"],
|
|
2180
|
-
"x-kosuke-command": ["mac", "
|
|
3809
|
+
"x-kosuke-command": ["mac", "reminders", "create"],
|
|
2181
3810
|
"x-kosuke-sandbox-token": true,
|
|
3811
|
+
"x-kosuke-cron-token": true,
|
|
2182
3812
|
"x-kosuke-sensei-token": true,
|
|
2183
3813
|
"requestBody": {
|
|
2184
3814
|
"required": true,
|
|
@@ -2188,26 +3818,40 @@
|
|
|
2188
3818
|
"type": "object",
|
|
2189
3819
|
"properties": {
|
|
2190
3820
|
"deviceId": {
|
|
2191
|
-
"description": "The
|
|
3821
|
+
"description": "The member’s Mac, by the device ID `kosuke mac status get` prints. Leave it out for the member’s Mac that is online.",
|
|
2192
3822
|
"x-kosuke-flag": "device-id",
|
|
2193
3823
|
"type": "string",
|
|
2194
3824
|
"minLength": 1,
|
|
2195
3825
|
"maxLength": 255
|
|
2196
3826
|
},
|
|
2197
|
-
"
|
|
3827
|
+
"title": {
|
|
2198
3828
|
"type": "string",
|
|
2199
3829
|
"minLength": 1,
|
|
2200
|
-
"maxLength":
|
|
2201
|
-
"description": "A path on the Mac. ~ is the member’s home."
|
|
3830
|
+
"maxLength": 1000
|
|
2202
3831
|
},
|
|
2203
|
-
"
|
|
3832
|
+
"list": {
|
|
3833
|
+
"description": "The list, by id or exact title. The default list by default.",
|
|
2204
3834
|
"type": "string",
|
|
2205
3835
|
"minLength": 1,
|
|
2206
|
-
"maxLength":
|
|
2207
|
-
|
|
3836
|
+
"maxLength": 255
|
|
3837
|
+
},
|
|
3838
|
+
"notes": {
|
|
3839
|
+
"type": "string",
|
|
3840
|
+
"maxLength": 10000
|
|
3841
|
+
},
|
|
3842
|
+
"due": {
|
|
3843
|
+
"type": "string",
|
|
3844
|
+
"maxLength": 40,
|
|
3845
|
+
"description": "When it is due: a date (2026-11-20) or a date and time with an offset."
|
|
3846
|
+
},
|
|
3847
|
+
"priority": {
|
|
3848
|
+
"type": "integer",
|
|
3849
|
+
"minimum": 0,
|
|
3850
|
+
"maximum": 9,
|
|
3851
|
+
"description": "0 for none, 1 highest to 9 lowest, as Reminders reads it."
|
|
2208
3852
|
}
|
|
2209
3853
|
},
|
|
2210
|
-
"required": ["
|
|
3854
|
+
"required": ["title"]
|
|
2211
3855
|
}
|
|
2212
3856
|
}
|
|
2213
3857
|
}
|
|
@@ -2246,13 +3890,14 @@
|
|
|
2246
3890
|
}
|
|
2247
3891
|
}
|
|
2248
3892
|
},
|
|
2249
|
-
"/api/devices/mac/
|
|
3893
|
+
"/api/devices/mac/reminders/list": {
|
|
2250
3894
|
"post": {
|
|
2251
|
-
"operationId": "
|
|
2252
|
-
"summary": "
|
|
3895
|
+
"operationId": "macRemindersList",
|
|
3896
|
+
"summary": "List reminders on the member's Mac, open ones unless --completed, in one list (by id or exact title) or in all. Answers reminders (id, title, notes, list, due, completed, completedAt, priority) and nextCursor, null on the last page: pass it as --cursor for the next (--limit 25 by default, at most 100). Without Apple Reminders turned on in the Sensei app on that Mac (Settings, You, Integrations) it fails with PERMISSION_MISSING, which says so. Only Sensei calls it; a Chat Session gets 403 SENSEI_ONLY_TOOL.",
|
|
2253
3897
|
"tags": ["mac"],
|
|
2254
|
-
"x-kosuke-command": ["mac", "
|
|
3898
|
+
"x-kosuke-command": ["mac", "reminders", "list"],
|
|
2255
3899
|
"x-kosuke-sandbox-token": true,
|
|
3900
|
+
"x-kosuke-cron-token": true,
|
|
2256
3901
|
"x-kosuke-sensei-token": true,
|
|
2257
3902
|
"requestBody": {
|
|
2258
3903
|
"required": true,
|
|
@@ -2262,20 +3907,35 @@
|
|
|
2262
3907
|
"type": "object",
|
|
2263
3908
|
"properties": {
|
|
2264
3909
|
"deviceId": {
|
|
2265
|
-
"description": "The Mac ID
|
|
3910
|
+
"description": "The member’s Mac, by the device ID `kosuke mac status get` prints. Leave it out for the member’s Mac that is online.",
|
|
2266
3911
|
"x-kosuke-flag": "device-id",
|
|
2267
3912
|
"type": "string",
|
|
2268
3913
|
"minLength": 1,
|
|
2269
3914
|
"maxLength": 255
|
|
2270
3915
|
},
|
|
2271
|
-
"
|
|
3916
|
+
"list": {
|
|
2272
3917
|
"type": "string",
|
|
2273
3918
|
"minLength": 1,
|
|
2274
|
-
"maxLength":
|
|
2275
|
-
"description": "
|
|
3919
|
+
"maxLength": 255,
|
|
3920
|
+
"description": "The list, by id or exact title, from `kosuke mac reminders lists list`."
|
|
3921
|
+
},
|
|
3922
|
+
"completed": {
|
|
3923
|
+
"description": "List completed reminders instead of open ones. Open ones by default.",
|
|
3924
|
+
"type": "boolean"
|
|
3925
|
+
},
|
|
3926
|
+
"limit": {
|
|
3927
|
+
"description": "Most items in one page: 25 by default, at most 100.",
|
|
3928
|
+
"type": "integer",
|
|
3929
|
+
"minimum": 1,
|
|
3930
|
+
"maximum": 100
|
|
3931
|
+
},
|
|
3932
|
+
"cursor": {
|
|
3933
|
+
"description": "The nextCursor of the previous page. Leave it out for the first page.",
|
|
3934
|
+
"type": "string",
|
|
3935
|
+
"minLength": 1,
|
|
3936
|
+
"maxLength": 1024
|
|
2276
3937
|
}
|
|
2277
|
-
}
|
|
2278
|
-
"required": ["path"]
|
|
3938
|
+
}
|
|
2279
3939
|
}
|
|
2280
3940
|
}
|
|
2281
3941
|
}
|
|
@@ -2314,13 +3974,14 @@
|
|
|
2314
3974
|
}
|
|
2315
3975
|
}
|
|
2316
3976
|
},
|
|
2317
|
-
"/api/devices/mac/
|
|
3977
|
+
"/api/devices/mac/reminders/lists": {
|
|
2318
3978
|
"post": {
|
|
2319
|
-
"operationId": "
|
|
2320
|
-
"summary": "
|
|
3979
|
+
"operationId": "macRemindersListsList",
|
|
3980
|
+
"summary": "List the member's Reminders lists on their Mac. Answers lists: id, title and color. Without Apple Reminders turned on in the Sensei app on that Mac (Settings, You, Integrations) it fails with PERMISSION_MISSING, which says so. Only Sensei calls it; a Chat Session gets 403 SENSEI_ONLY_TOOL.",
|
|
2321
3981
|
"tags": ["mac"],
|
|
2322
|
-
"x-kosuke-command": ["mac", "
|
|
3982
|
+
"x-kosuke-command": ["mac", "reminders", "lists", "list"],
|
|
2323
3983
|
"x-kosuke-sandbox-token": true,
|
|
3984
|
+
"x-kosuke-cron-token": true,
|
|
2324
3985
|
"x-kosuke-sensei-token": true,
|
|
2325
3986
|
"requestBody": {
|
|
2326
3987
|
"required": true,
|
|
@@ -2330,29 +3991,13 @@
|
|
|
2330
3991
|
"type": "object",
|
|
2331
3992
|
"properties": {
|
|
2332
3993
|
"deviceId": {
|
|
2333
|
-
"description": "The
|
|
3994
|
+
"description": "The member’s Mac, by the device ID `kosuke mac status get` prints. Leave it out for the member’s Mac that is online.",
|
|
2334
3995
|
"x-kosuke-flag": "device-id",
|
|
2335
3996
|
"type": "string",
|
|
2336
3997
|
"minLength": 1,
|
|
2337
3998
|
"maxLength": 255
|
|
2338
|
-
},
|
|
2339
|
-
"path": {
|
|
2340
|
-
"type": "string",
|
|
2341
|
-
"minLength": 1,
|
|
2342
|
-
"maxLength": 4096,
|
|
2343
|
-
"description": "A path on the Mac. ~ is the member’s home."
|
|
2344
|
-
},
|
|
2345
|
-
"text": {
|
|
2346
|
-
"type": "string",
|
|
2347
|
-
"maxLength": 400000
|
|
2348
|
-
},
|
|
2349
|
-
"url": {
|
|
2350
|
-
"description": "A URL the Mac downloads the file from.",
|
|
2351
|
-
"type": "string",
|
|
2352
|
-
"format": "uri"
|
|
2353
3999
|
}
|
|
2354
|
-
}
|
|
2355
|
-
"required": ["path"]
|
|
4000
|
+
}
|
|
2356
4001
|
}
|
|
2357
4002
|
}
|
|
2358
4003
|
}
|
|
@@ -2391,13 +4036,14 @@
|
|
|
2391
4036
|
}
|
|
2392
4037
|
}
|
|
2393
4038
|
},
|
|
2394
|
-
"/api/devices/mac/
|
|
4039
|
+
"/api/devices/mac/reminders/search": {
|
|
2395
4040
|
"post": {
|
|
2396
|
-
"operationId": "
|
|
2397
|
-
"summary": "
|
|
4041
|
+
"operationId": "macRemindersSearch",
|
|
4042
|
+
"summary": "Search reminders on the member's Mac whose title or notes contain --query, ignoring case, in one list or in all: open and completed ones, unless --completed or --no-completed says which. Answers reminders and nextCursor, null on the last page: pass it as --cursor for the next (--limit 25 by default, at most 100). Without Apple Reminders turned on in the Sensei app on that Mac (Settings, You, Integrations) it fails with PERMISSION_MISSING, which says so. Only Sensei calls it; a Chat Session gets 403 SENSEI_ONLY_TOOL.",
|
|
2398
4043
|
"tags": ["mac"],
|
|
2399
|
-
"x-kosuke-command": ["mac", "
|
|
4044
|
+
"x-kosuke-command": ["mac", "reminders", "search"],
|
|
2400
4045
|
"x-kosuke-sandbox-token": true,
|
|
4046
|
+
"x-kosuke-cron-token": true,
|
|
2401
4047
|
"x-kosuke-sensei-token": true,
|
|
2402
4048
|
"requestBody": {
|
|
2403
4049
|
"required": true,
|
|
@@ -2407,38 +4053,42 @@
|
|
|
2407
4053
|
"type": "object",
|
|
2408
4054
|
"properties": {
|
|
2409
4055
|
"deviceId": {
|
|
2410
|
-
"description": "The
|
|
4056
|
+
"description": "The member’s Mac, by the device ID `kosuke mac status get` prints. Leave it out for the member’s Mac that is online.",
|
|
2411
4057
|
"x-kosuke-flag": "device-id",
|
|
2412
4058
|
"type": "string",
|
|
2413
4059
|
"minLength": 1,
|
|
2414
4060
|
"maxLength": 255
|
|
2415
4061
|
},
|
|
2416
|
-
"
|
|
4062
|
+
"query": {
|
|
2417
4063
|
"type": "string",
|
|
2418
4064
|
"minLength": 1,
|
|
2419
|
-
"maxLength":
|
|
2420
|
-
"description": "
|
|
2421
|
-
},
|
|
2422
|
-
"pid": {
|
|
2423
|
-
"type": "integer",
|
|
2424
|
-
"exclusiveMinimum": 0,
|
|
2425
|
-
"maximum": 9007199254740991,
|
|
2426
|
-
"description": "The process id, from `kosuke mac windows list`."
|
|
4065
|
+
"maxLength": 500,
|
|
4066
|
+
"description": "Matches the title and notes, ignoring case."
|
|
2427
4067
|
},
|
|
2428
|
-
"
|
|
4068
|
+
"list": {
|
|
2429
4069
|
"type": "string",
|
|
2430
4070
|
"minLength": 1,
|
|
2431
4071
|
"maxLength": 255,
|
|
2432
|
-
"description": "
|
|
4072
|
+
"description": "The list, by id or exact title, from `kosuke mac reminders lists list`."
|
|
2433
4073
|
},
|
|
2434
|
-
"
|
|
4074
|
+
"completed": {
|
|
4075
|
+
"description": "Only completed (true) or only open (false) reminders. Both by default.",
|
|
4076
|
+
"type": "boolean"
|
|
4077
|
+
},
|
|
4078
|
+
"limit": {
|
|
4079
|
+
"description": "Most items in one page: 25 by default, at most 100.",
|
|
4080
|
+
"type": "integer",
|
|
4081
|
+
"minimum": 1,
|
|
4082
|
+
"maximum": 100
|
|
4083
|
+
},
|
|
4084
|
+
"cursor": {
|
|
4085
|
+
"description": "The nextCursor of the previous page. Leave it out for the first page.",
|
|
2435
4086
|
"type": "string",
|
|
2436
4087
|
"minLength": 1,
|
|
2437
|
-
"maxLength":
|
|
2438
|
-
"description": "The chord, such as cmd+shift+s."
|
|
4088
|
+
"maxLength": 1024
|
|
2439
4089
|
}
|
|
2440
4090
|
},
|
|
2441
|
-
"required": ["
|
|
4091
|
+
"required": ["query"]
|
|
2442
4092
|
}
|
|
2443
4093
|
}
|
|
2444
4094
|
}
|
|
@@ -2477,13 +4127,14 @@
|
|
|
2477
4127
|
}
|
|
2478
4128
|
}
|
|
2479
4129
|
},
|
|
2480
|
-
"/api/devices/mac/
|
|
4130
|
+
"/api/devices/mac/reminders/update": {
|
|
2481
4131
|
"post": {
|
|
2482
|
-
"operationId": "
|
|
2483
|
-
"summary": "
|
|
4132
|
+
"operationId": "macRemindersUpdate",
|
|
4133
|
+
"summary": "Change a reminder on the member's Mac, by its id: its title, notes, due (--clear-due removes it), priority, or the list it is in. Fields left out stay as they are. Answers reminder. Without Apple Reminders turned on in the Sensei app on that Mac (Settings, You, Integrations) it fails with PERMISSION_MISSING, which says so. Only Sensei calls it; a Chat Session gets 403 SENSEI_ONLY_TOOL.",
|
|
2484
4134
|
"tags": ["mac"],
|
|
2485
|
-
"x-kosuke-command": ["mac", "
|
|
4135
|
+
"x-kosuke-command": ["mac", "reminders", "update"],
|
|
2486
4136
|
"x-kosuke-sandbox-token": true,
|
|
4137
|
+
"x-kosuke-cron-token": true,
|
|
2487
4138
|
"x-kosuke-sensei-token": true,
|
|
2488
4139
|
"requestBody": {
|
|
2489
4140
|
"required": true,
|
|
@@ -2493,23 +4144,50 @@
|
|
|
2493
4144
|
"type": "object",
|
|
2494
4145
|
"properties": {
|
|
2495
4146
|
"deviceId": {
|
|
2496
|
-
"description": "The
|
|
4147
|
+
"description": "The member’s Mac, by the device ID `kosuke mac status get` prints. Leave it out for the member’s Mac that is online.",
|
|
2497
4148
|
"x-kosuke-flag": "device-id",
|
|
2498
4149
|
"type": "string",
|
|
2499
4150
|
"minLength": 1,
|
|
2500
4151
|
"maxLength": 255
|
|
2501
4152
|
},
|
|
2502
|
-
"
|
|
4153
|
+
"id": {
|
|
2503
4154
|
"type": "string",
|
|
2504
4155
|
"minLength": 1,
|
|
2505
|
-
"maxLength":
|
|
2506
|
-
"description": "The
|
|
4156
|
+
"maxLength": 1024,
|
|
4157
|
+
"description": "The reminder, by the id a list, search or create answered."
|
|
2507
4158
|
},
|
|
2508
|
-
"
|
|
4159
|
+
"title": {
|
|
2509
4160
|
"type": "string",
|
|
2510
|
-
"
|
|
4161
|
+
"minLength": 1,
|
|
4162
|
+
"maxLength": 1000
|
|
4163
|
+
},
|
|
4164
|
+
"notes": {
|
|
4165
|
+
"type": "string",
|
|
4166
|
+
"maxLength": 10000
|
|
4167
|
+
},
|
|
4168
|
+
"due": {
|
|
4169
|
+
"type": "string",
|
|
4170
|
+
"maxLength": 40,
|
|
4171
|
+
"description": "When it is due: a date (2026-11-20) or a date and time with an offset."
|
|
4172
|
+
},
|
|
4173
|
+
"clearDue": {
|
|
4174
|
+
"description": "Remove its due date.",
|
|
4175
|
+
"type": "boolean"
|
|
4176
|
+
},
|
|
4177
|
+
"priority": {
|
|
4178
|
+
"type": "integer",
|
|
4179
|
+
"minimum": 0,
|
|
4180
|
+
"maximum": 9,
|
|
4181
|
+
"description": "0 for none, 1 highest to 9 lowest, as Reminders reads it."
|
|
4182
|
+
},
|
|
4183
|
+
"list": {
|
|
4184
|
+
"description": "Move it to this list, by id or exact title.",
|
|
4185
|
+
"type": "string",
|
|
4186
|
+
"minLength": 1,
|
|
4187
|
+
"maxLength": 255
|
|
2511
4188
|
}
|
|
2512
|
-
}
|
|
4189
|
+
},
|
|
4190
|
+
"required": ["id"]
|
|
2513
4191
|
}
|
|
2514
4192
|
}
|
|
2515
4193
|
}
|