@north-light/api 0.3.420 → 0.3.422
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/dist/api/error-codes.d.ts +10 -0
- package/dist/api/error-codes.js +4 -0
- package/dist/types.d.ts +3 -1
- package/package.json +1 -1
|
@@ -4,6 +4,11 @@ export declare const errorCodes: {
|
|
|
4
4
|
readonly status: 401;
|
|
5
5
|
readonly retryable: false;
|
|
6
6
|
};
|
|
7
|
+
readonly machine_revoked: {
|
|
8
|
+
readonly type: "authentication_error";
|
|
9
|
+
readonly status: 401;
|
|
10
|
+
readonly retryable: false;
|
|
11
|
+
};
|
|
7
12
|
readonly grant_revoked: {
|
|
8
13
|
readonly type: "authentication_error";
|
|
9
14
|
readonly status: 401;
|
|
@@ -79,6 +84,11 @@ export declare const errorCodes: {
|
|
|
79
84
|
readonly status: 403;
|
|
80
85
|
readonly retryable: false;
|
|
81
86
|
};
|
|
87
|
+
readonly unsandboxed_machine: {
|
|
88
|
+
readonly type: "permission_error";
|
|
89
|
+
readonly status: 403;
|
|
90
|
+
readonly retryable: false;
|
|
91
|
+
};
|
|
82
92
|
readonly isolated_run: {
|
|
83
93
|
readonly type: "permission_error";
|
|
84
94
|
readonly status: 403;
|
package/dist/api/error-codes.js
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
// shape (provider_error, usage, stream_*) do not have a fixed tuple.
|
|
4
4
|
export const errorCodes = {
|
|
5
5
|
unauthorized: { type: 'authentication_error', status: 401, retryable: false },
|
|
6
|
+
// The directory no longer recognises this machine's runtime key: it was removed from the account.
|
|
7
|
+
machine_revoked: { type: 'authentication_error', status: 401, retryable: false },
|
|
6
8
|
// A refusal that names no reason (runtime validation step 5, or the directory's bare invalid_grant). Not deprecated.
|
|
7
9
|
grant_revoked: { type: 'authentication_error', status: 401, retryable: false },
|
|
8
10
|
// The directory's reasons for refusing a refresh token (D2-ERR-49..51), carried in its invalid_grant error_description.
|
|
@@ -21,6 +23,8 @@ export const errorCodes = {
|
|
|
21
23
|
// An app refusing its own operation because a provider in its `requires` is not `ready`; details `{ provider, state, message?, next }`, copied from `grant.get`'s `dependencies[provider]` entry (`next` = `<issuer>/connect/setup/<provider>?client_id=<grantee>`). The daemon never raises it (it only carries `dependencies`).
|
|
22
24
|
provider_setup_pending: { type: 'permission_error', status: 403, retryable: false },
|
|
23
25
|
question_pages_off: { type: 'permission_error', status: 403, retryable: false },
|
|
26
|
+
// An unsandboxed machine (a computer joined to a Northlight account) runs only the person's own terminal agents; app grantees run on the hosted machine.
|
|
27
|
+
unsandboxed_machine: { type: 'permission_error', status: 403, retryable: false },
|
|
24
28
|
isolated_run: { type: 'permission_error', status: 403, retryable: false },
|
|
25
29
|
provider_version_retired: { type: 'permission_error', status: 403, retryable: false },
|
|
26
30
|
invalid_scope: { type: 'invalid_request_error', status: 400, retryable: false },
|
package/dist/types.d.ts
CHANGED
|
@@ -388,10 +388,12 @@ export interface ScopeConfig {
|
|
|
388
388
|
runtime?: {
|
|
389
389
|
issuer: string;
|
|
390
390
|
audience: string;
|
|
391
|
-
listener
|
|
391
|
+
listener?: {
|
|
392
392
|
address: string;
|
|
393
393
|
port: number;
|
|
394
394
|
};
|
|
395
|
+
/** Set by joining as a non-default machine: no app listener; only `app:terminal` nodes run. */
|
|
396
|
+
unsandboxed?: boolean;
|
|
395
397
|
jwksUrl?: string;
|
|
396
398
|
person_uids?: number[];
|
|
397
399
|
/** Hosting file storage: `service_url` is the storage token audience and API
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@north-light/api",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.422",
|
|
4
4
|
"description": "Typed crtrd /v1 API contract — DTOs, route builders, the error contract, the CrtrClient, and the command-plugin manifest format. Zero runtime dependencies.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/api/index.js",
|