craterview 0.4.35 → 0.4.36
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/index.ts +10 -2
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -18,7 +18,7 @@ import { imageSize } from "image-size";
|
|
|
18
18
|
// Mirrored from package.json, which is the number a release bumps. It cannot be imported
|
|
19
19
|
// from there — this ships as TypeScript, so the import would have to resolve in the
|
|
20
20
|
// consumer's toolchain — so test/version.test.ts asserts the two agree.
|
|
21
|
-
export const VERSION = "0.4.
|
|
21
|
+
export const VERSION = "0.4.36";
|
|
22
22
|
const DEFAULT_BASE_URL = "https://api.craterview.ai";
|
|
23
23
|
// The server rejects a longer wait outright, so asking for one costs a 422 rather than the
|
|
24
24
|
// wait you asked for. `run()` clamps to this rather than letting that happen.
|
|
@@ -502,6 +502,12 @@ export interface KeyInfo {
|
|
|
502
502
|
* back in. This client has no method for that call.
|
|
503
503
|
*/
|
|
504
504
|
current: boolean;
|
|
505
|
+
/**
|
|
506
|
+
* Whether this key belongs to the CraterView.ai app on an iPhone or iPad: the key the
|
|
507
|
+
* person's devices share, or one device's own. It cannot be revoked by id; the app ends it
|
|
508
|
+
* when the person signs out in it.
|
|
509
|
+
*/
|
|
510
|
+
app: boolean;
|
|
505
511
|
}
|
|
506
512
|
|
|
507
513
|
/** A freshly minted key. The only response that carries a usable value. */
|
|
@@ -1133,7 +1139,9 @@ export class CraterView {
|
|
|
1133
1139
|
*
|
|
1134
1140
|
* You cannot revoke the key this client is authenticating with: it is refused with status
|
|
1135
1141
|
* 409, because it would leave you unable to make another. Create a replacement, move onto
|
|
1136
|
-
* it, then revoke this one.
|
|
1142
|
+
* it, then revoke this one. A key of the CraterView.ai app on an iPhone or iPad, which
|
|
1143
|
+
* `keys()` marks `app`, is refused with 409 too: those end when the person signs out in
|
|
1144
|
+
* the app.
|
|
1137
1145
|
*
|
|
1138
1146
|
* `keyId` is a key's `id` from `keys()` or `createKey()`, never its value or its prefix.
|
|
1139
1147
|
* Anything else throws a `CraterViewError` without a request being made.
|