@w6w/sdk 0.9.9 → 0.9.13
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/README.md +23 -3
- package/dist/mod.d.ts +11 -2
- package/dist/mod.d.ts.map +1 -1
- package/dist/mod.js +6 -0
- package/dist/mod.js.map +1 -1
- package/dist/src/apps.d.ts +68 -0
- package/dist/src/apps.d.ts.map +1 -0
- package/dist/src/apps.js +76 -0
- package/dist/src/apps.js.map +1 -0
- package/dist/src/client.d.ts +15 -3
- package/dist/src/client.d.ts.map +1 -1
- package/dist/src/client.js +19 -3
- package/dist/src/client.js.map +1 -1
- package/dist/src/connections.d.ts +41 -13
- package/dist/src/connections.d.ts.map +1 -1
- package/dist/src/connections.js +54 -12
- package/dist/src/connections.js.map +1 -1
- package/dist/src/console/apps.d.ts +5 -0
- package/dist/src/console/apps.d.ts.map +1 -1
- package/dist/src/console/apps.js.map +1 -1
- package/dist/src/console/connections.d.ts +10 -9
- package/dist/src/console/connections.d.ts.map +1 -1
- package/dist/src/console/connections.js +10 -9
- package/dist/src/console/connections.js.map +1 -1
- package/dist/src/console/tenant-oauth-apps.d.ts +26 -0
- package/dist/src/console/tenant-oauth-apps.d.ts.map +1 -1
- package/dist/src/console/tenant-oauth-apps.js +3 -1
- package/dist/src/console/tenant-oauth-apps.js.map +1 -1
- package/dist/src/dashboard.d.ts +50 -0
- package/dist/src/dashboard.d.ts.map +1 -0
- package/dist/src/dashboard.js +49 -0
- package/dist/src/dashboard.js.map +1 -0
- package/dist/src/functions.d.ts +100 -3
- package/dist/src/functions.d.ts.map +1 -1
- package/dist/src/functions.js +122 -3
- package/dist/src/functions.js.map +1 -1
- package/dist/src/projects.d.ts +49 -0
- package/dist/src/projects.d.ts.map +1 -0
- package/dist/src/projects.js +51 -0
- package/dist/src/projects.js.map +1 -0
- package/dist/src/reliability.d.ts +78 -0
- package/dist/src/reliability.d.ts.map +1 -0
- package/dist/src/reliability.js +76 -0
- package/dist/src/reliability.js.map +1 -0
- package/dist/src/server/mod.d.ts +71 -1
- package/dist/src/server/mod.d.ts.map +1 -1
- package/dist/src/server/mod.js +78 -7
- package/dist/src/server/mod.js.map +1 -1
- package/dist/src/types.d.ts +7 -0
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.js.map +1 -1
- package/dist/src/version.d.ts.map +1 -1
- package/dist/src/version.js +1 -1
- package/dist/src/version.js.map +1 -1
- package/dist/src/versions.d.ts +134 -0
- package/dist/src/versions.d.ts.map +1 -0
- package/dist/src/versions.js +113 -0
- package/dist/src/versions.js.map +1 -0
- package/dist/src/workflows.d.ts +82 -0
- package/dist/src/workflows.d.ts.map +1 -1
- package/dist/src/workflows.js +109 -4
- package/dist/src/workflows.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `client.projects.list()` — the account's projects, read-only.
|
|
3
|
+
*
|
|
4
|
+
* One operation, `GET /projects`. Project create / rename / archive / delete
|
|
5
|
+
* are not part of the partner contract.
|
|
6
|
+
*
|
|
7
|
+
* **Side effect to know about:** listing ensures the account has a default
|
|
8
|
+
* project. If it has none yet, the `GET` creates it before answering, so a first
|
|
9
|
+
* call on a fresh account returns one `isDefault: true` row rather than `[]`.
|
|
10
|
+
* Archived projects are not listed.
|
|
11
|
+
*
|
|
12
|
+
* The wire type {@linkcode Project} is declared once, in
|
|
13
|
+
* `./console/projects.ts`, and re-exported here.
|
|
14
|
+
*
|
|
15
|
+
* @module
|
|
16
|
+
*/
|
|
17
|
+
import type { Project } from "./console/projects.ts";
|
|
18
|
+
import type { CallOptions, HttpResponse, RequestOptions } from "./http.ts";
|
|
19
|
+
export type { Project } from "./console/projects.ts";
|
|
20
|
+
/** The slice of `W6WClient` this namespace needs: the transport, and nothing else. */
|
|
21
|
+
export interface ProjectsHost {
|
|
22
|
+
/** Perform one request. */
|
|
23
|
+
request<T>(options: RequestOptions): Promise<HttpResponse<T>>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* The `projects` namespace on a `W6WClient`.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const projects = await client.projects.list();
|
|
31
|
+
* const home = projects.find((p) => p.isDefault);
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare class ProjectsApi {
|
|
35
|
+
#private;
|
|
36
|
+
/**
|
|
37
|
+
* @param host - The client this namespace issues requests through.
|
|
38
|
+
*/
|
|
39
|
+
constructor(host: ProjectsHost);
|
|
40
|
+
/**
|
|
41
|
+
* List the account's active projects.
|
|
42
|
+
*
|
|
43
|
+
* @param options - Optional per-call transport options (`signal` to abort).
|
|
44
|
+
* @returns The projects, unwrapped from the `projects` envelope.
|
|
45
|
+
* @throws {ApiError} On any non-2xx.
|
|
46
|
+
*/
|
|
47
|
+
list(options?: CallOptions): Promise<Project[]>;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=projects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../src/projects.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAG3E,YAAY,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAErD,sFAAsF;AACtF,MAAM,WAAW,YAAY;IAC3B,2BAA2B;IAC3B,OAAO,CAAC,CAAC,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;CAC/D;AAED;;;;;;;;GAQG;AACH,qBAAa,WAAW;;IAGtB;;OAEG;gBACS,IAAI,EAAE,YAAY;IAI9B;;;;;;OAMG;IACG,IAAI,CAAC,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;CAQtD"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `client.projects.list()` — the account's projects, read-only.
|
|
3
|
+
*
|
|
4
|
+
* One operation, `GET /projects`. Project create / rename / archive / delete
|
|
5
|
+
* are not part of the partner contract.
|
|
6
|
+
*
|
|
7
|
+
* **Side effect to know about:** listing ensures the account has a default
|
|
8
|
+
* project. If it has none yet, the `GET` creates it before answering, so a first
|
|
9
|
+
* call on a fresh account returns one `isDefault: true` row rather than `[]`.
|
|
10
|
+
* Archived projects are not listed.
|
|
11
|
+
*
|
|
12
|
+
* The wire type {@linkcode Project} is declared once, in
|
|
13
|
+
* `./console/projects.ts`, and re-exported here.
|
|
14
|
+
*
|
|
15
|
+
* @module
|
|
16
|
+
*/
|
|
17
|
+
import { unwrap } from "./types.js";
|
|
18
|
+
/**
|
|
19
|
+
* The `projects` namespace on a `W6WClient`.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const projects = await client.projects.list();
|
|
24
|
+
* const home = projects.find((p) => p.isDefault);
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export class ProjectsApi {
|
|
28
|
+
#host;
|
|
29
|
+
/**
|
|
30
|
+
* @param host - The client this namespace issues requests through.
|
|
31
|
+
*/
|
|
32
|
+
constructor(host) {
|
|
33
|
+
this.#host = host;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* List the account's active projects.
|
|
37
|
+
*
|
|
38
|
+
* @param options - Optional per-call transport options (`signal` to abort).
|
|
39
|
+
* @returns The projects, unwrapped from the `projects` envelope.
|
|
40
|
+
* @throws {ApiError} On any non-2xx.
|
|
41
|
+
*/
|
|
42
|
+
async list(options) {
|
|
43
|
+
const res = await this.#host.request({
|
|
44
|
+
method: "GET",
|
|
45
|
+
path: "/projects",
|
|
46
|
+
signal: options?.signal,
|
|
47
|
+
});
|
|
48
|
+
return unwrap(res, "projects");
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=projects.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projects.js","sourceRoot":"","sources":["../../src/projects.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAIH,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAUpC;;;;;;;;GAQG;AACH,MAAM,OAAO,WAAW;IACb,KAAK,CAAe;IAE7B;;OAEG;IACH,YAAY,IAAkB;QAC5B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,IAAI,CAAC,OAAqB;QAC9B,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAU;YAC5C,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,WAAW;YACjB,MAAM,EAAE,OAAO,EAAE,MAAM;SACxB,CAAC,CAAC;QACH,OAAO,MAAM,CAAY,GAAG,EAAE,UAAU,CAAC,CAAC;IAC5C,CAAC;CACF"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `client.reliability.*` — the project-scoped reliability board.
|
|
3
|
+
*
|
|
4
|
+
* Two reads:
|
|
5
|
+
*
|
|
6
|
+
* - `members(project)` — which app ids the project's calls touch (identifiers
|
|
7
|
+
* only, no status probes).
|
|
8
|
+
* - `list(project, appIds)` — the board for an explicit set of those apps.
|
|
9
|
+
*
|
|
10
|
+
* **The server accepts at most 10 app ids per `list`.** More, or none, is a
|
|
11
|
+
* `400 invalid_app_filter`; a missing `project` is `400 missing_project`. Both
|
|
12
|
+
* surface as `ApiError` with the server's body intact. This namespace
|
|
13
|
+
* deliberately has **no batching helper**: `list` sends exactly the ids it is
|
|
14
|
+
* given, and splitting a larger set across calls (and scheduling or polling
|
|
15
|
+
* them) is the host's decision.
|
|
16
|
+
*
|
|
17
|
+
* The wire types are declared once, in `./console/reliability.ts`, and
|
|
18
|
+
* re-exported here.
|
|
19
|
+
*
|
|
20
|
+
* @module
|
|
21
|
+
*/
|
|
22
|
+
import type { ReliabilityServiceMembers, ReliabilityServices } from "./console/reliability.ts";
|
|
23
|
+
import type { CallOptions, HttpResponse, RequestOptions } from "./http.ts";
|
|
24
|
+
export type { ReliabilityComponentReport, ReliabilityErrorMix, ReliabilityService, ReliabilityServiceMembers, ReliabilityServices, ReliabilityState, ReliabilityTimelineEntry, ReliabilityUptimeDay, ReliabilityVendorStatus, } from "./console/reliability.ts";
|
|
25
|
+
/** The slice of `W6WClient` this namespace needs: the transport, and nothing else. */
|
|
26
|
+
export interface ReliabilityHost {
|
|
27
|
+
/** Perform one request. */
|
|
28
|
+
request<T>(options: RequestOptions): Promise<HttpResponse<T>>;
|
|
29
|
+
}
|
|
30
|
+
/** Options for {@linkcode ReliabilityApi.list}. */
|
|
31
|
+
export interface ReliabilityListOptions extends CallOptions {
|
|
32
|
+
/** Window size in days; omitted, the server applies its own default. */
|
|
33
|
+
days?: number;
|
|
34
|
+
/** Cap on services returned, most urgent first; omitted, no cap. */
|
|
35
|
+
limit?: number;
|
|
36
|
+
}
|
|
37
|
+
/** Options for {@linkcode ReliabilityApi.members}. */
|
|
38
|
+
export interface ReliabilityMembersOptions extends CallOptions {
|
|
39
|
+
/** Window size in days; omitted, the server applies its own default. */
|
|
40
|
+
days?: number;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* The `reliability` namespace on a `W6WClient`.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* const { appIds } = await client.reliability.members("prj_123");
|
|
48
|
+
* const board = await client.reliability.list("prj_123", appIds.slice(0, 10));
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
export declare class ReliabilityApi {
|
|
52
|
+
#private;
|
|
53
|
+
/**
|
|
54
|
+
* @param host - The client this namespace issues requests through.
|
|
55
|
+
*/
|
|
56
|
+
constructor(host: ReliabilityHost);
|
|
57
|
+
/**
|
|
58
|
+
* Fetch one project's reliability board for an explicit set of apps.
|
|
59
|
+
*
|
|
60
|
+
* @param project - The project whose calls are reported (required).
|
|
61
|
+
* @param appIds - The services to report; the server accepts 1 to 10 ids.
|
|
62
|
+
* @param options - `days`, `limit`, `signal`.
|
|
63
|
+
* @returns The board, exactly as the server sent it.
|
|
64
|
+
* @throws {ApiError} On any non-2xx, including `400 invalid_app_filter` (zero or more than
|
|
65
|
+
* ten ids) and `400 missing_project`.
|
|
66
|
+
*/
|
|
67
|
+
list(project: string, appIds: readonly string[], options?: ReliabilityListOptions): Promise<ReliabilityServices>;
|
|
68
|
+
/**
|
|
69
|
+
* Discover which apps a project's calls touch, before issuing bounded `list` batches.
|
|
70
|
+
*
|
|
71
|
+
* @param project - The project (required).
|
|
72
|
+
* @param options - `days`, `signal`.
|
|
73
|
+
* @returns The membership, exactly as the server sent it.
|
|
74
|
+
* @throws {ApiError} On any non-2xx, including `400 missing_project`.
|
|
75
|
+
*/
|
|
76
|
+
members(project: string, options?: ReliabilityMembersOptions): Promise<ReliabilityServiceMembers>;
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=reliability.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reliability.d.ts","sourceRoot":"","sources":["../../src/reliability.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/F,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3E,YAAY,EACV,0BAA0B,EAC1B,mBAAmB,EACnB,kBAAkB,EAClB,yBAAyB,EACzB,mBAAmB,EACnB,gBAAgB,EAChB,wBAAwB,EACxB,oBAAoB,EACpB,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAElC,sFAAsF;AACtF,MAAM,WAAW,eAAe;IAC9B,2BAA2B;IAC3B,OAAO,CAAC,CAAC,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;CAC/D;AAED,mDAAmD;AACnD,MAAM,WAAW,sBAAuB,SAAQ,WAAW;IACzD,wEAAwE;IACxE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oEAAoE;IACpE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,sDAAsD;AACtD,MAAM,WAAW,yBAA0B,SAAQ,WAAW;IAC5D,wEAAwE;IACxE,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;GAQG;AACH,qBAAa,cAAc;;IAGzB;;OAEG;gBACS,IAAI,EAAE,eAAe;IAIjC;;;;;;;;;OASG;IACG,IAAI,CACR,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,SAAS,MAAM,EAAE,EACzB,OAAO,GAAE,sBAA2B,GACnC,OAAO,CAAC,mBAAmB,CAAC;IAU/B;;;;;;;OAOG;IACG,OAAO,CACX,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,yBAA8B,GACtC,OAAO,CAAC,yBAAyB,CAAC;CAStC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `client.reliability.*` — the project-scoped reliability board.
|
|
3
|
+
*
|
|
4
|
+
* Two reads:
|
|
5
|
+
*
|
|
6
|
+
* - `members(project)` — which app ids the project's calls touch (identifiers
|
|
7
|
+
* only, no status probes).
|
|
8
|
+
* - `list(project, appIds)` — the board for an explicit set of those apps.
|
|
9
|
+
*
|
|
10
|
+
* **The server accepts at most 10 app ids per `list`.** More, or none, is a
|
|
11
|
+
* `400 invalid_app_filter`; a missing `project` is `400 missing_project`. Both
|
|
12
|
+
* surface as `ApiError` with the server's body intact. This namespace
|
|
13
|
+
* deliberately has **no batching helper**: `list` sends exactly the ids it is
|
|
14
|
+
* given, and splitting a larger set across calls (and scheduling or polling
|
|
15
|
+
* them) is the host's decision.
|
|
16
|
+
*
|
|
17
|
+
* The wire types are declared once, in `./console/reliability.ts`, and
|
|
18
|
+
* re-exported here.
|
|
19
|
+
*
|
|
20
|
+
* @module
|
|
21
|
+
*/
|
|
22
|
+
/**
|
|
23
|
+
* The `reliability` namespace on a `W6WClient`.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const { appIds } = await client.reliability.members("prj_123");
|
|
28
|
+
* const board = await client.reliability.list("prj_123", appIds.slice(0, 10));
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export class ReliabilityApi {
|
|
32
|
+
#host;
|
|
33
|
+
/**
|
|
34
|
+
* @param host - The client this namespace issues requests through.
|
|
35
|
+
*/
|
|
36
|
+
constructor(host) {
|
|
37
|
+
this.#host = host;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Fetch one project's reliability board for an explicit set of apps.
|
|
41
|
+
*
|
|
42
|
+
* @param project - The project whose calls are reported (required).
|
|
43
|
+
* @param appIds - The services to report; the server accepts 1 to 10 ids.
|
|
44
|
+
* @param options - `days`, `limit`, `signal`.
|
|
45
|
+
* @returns The board, exactly as the server sent it.
|
|
46
|
+
* @throws {ApiError} On any non-2xx, including `400 invalid_app_filter` (zero or more than
|
|
47
|
+
* ten ids) and `400 missing_project`.
|
|
48
|
+
*/
|
|
49
|
+
async list(project, appIds, options = {}) {
|
|
50
|
+
const res = await this.#host.request({
|
|
51
|
+
method: "GET",
|
|
52
|
+
path: "/reliability/services",
|
|
53
|
+
query: { project, apps: appIds.join(","), days: options.days, limit: options.limit },
|
|
54
|
+
signal: options.signal,
|
|
55
|
+
});
|
|
56
|
+
return res.body;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Discover which apps a project's calls touch, before issuing bounded `list` batches.
|
|
60
|
+
*
|
|
61
|
+
* @param project - The project (required).
|
|
62
|
+
* @param options - `days`, `signal`.
|
|
63
|
+
* @returns The membership, exactly as the server sent it.
|
|
64
|
+
* @throws {ApiError} On any non-2xx, including `400 missing_project`.
|
|
65
|
+
*/
|
|
66
|
+
async members(project, options = {}) {
|
|
67
|
+
const res = await this.#host.request({
|
|
68
|
+
method: "GET",
|
|
69
|
+
path: "/reliability/services/members",
|
|
70
|
+
query: { project, days: options.days },
|
|
71
|
+
signal: options.signal,
|
|
72
|
+
});
|
|
73
|
+
return res.body;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=reliability.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reliability.js","sourceRoot":"","sources":["../../src/reliability.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAqCH;;;;;;;;GAQG;AACH,MAAM,OAAO,cAAc;IAChB,KAAK,CAAkB;IAEhC;;OAEG;IACH,YAAY,IAAqB;QAC/B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,IAAI,CACR,OAAe,EACf,MAAyB,EACzB,UAAkC,EAAE;QAEpC,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAsB;YACxD,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,uBAAuB;YAC7B,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE;YACpF,MAAM,EAAE,OAAO,CAAC,MAAM;SACvB,CAAC,CAAC;QACH,OAAO,GAAG,CAAC,IAAI,CAAC;IAClB,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,OAAO,CACX,OAAe,EACf,UAAqC,EAAE;QAEvC,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAA4B;YAC9D,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,+BAA+B;YACrC,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE;YACtC,MAAM,EAAE,OAAO,CAAC,MAAM;SACvB,CAAC,CAAC;QACH,OAAO,GAAG,CAAC,IAAI,CAAC;IAClB,CAAC;CACF"}
|
package/dist/src/server/mod.d.ts
CHANGED
|
@@ -66,7 +66,7 @@ export interface ExchangeTokenResult {
|
|
|
66
66
|
tenant: string;
|
|
67
67
|
/** Always `"user"` for a token minted this way. */
|
|
68
68
|
role: string;
|
|
69
|
-
/** The resolved account
|
|
69
|
+
/** The server's resolved account id (`acct_…`), never the ref you passed. */
|
|
70
70
|
account: string;
|
|
71
71
|
};
|
|
72
72
|
/** Token lifetime, in seconds. */
|
|
@@ -97,4 +97,74 @@ export interface ExchangeTokenResult {
|
|
|
97
97
|
* recovery attempt.
|
|
98
98
|
*/
|
|
99
99
|
export declare function exchangeToken(options: ExchangeTokenOptions): Promise<ExchangeTokenResult>;
|
|
100
|
+
/** Options for {@linkcode createEmbedSessionClient}. */
|
|
101
|
+
export interface EmbedSessionClientOptions {
|
|
102
|
+
/**
|
|
103
|
+
* The w6w server's origin. Required and explicit: unlike {@linkcode exchangeToken}
|
|
104
|
+
* this factory never falls back to `W6W_BASE_URL`.
|
|
105
|
+
*/
|
|
106
|
+
baseUrl: string;
|
|
107
|
+
/** The tenant's client id. Must not contain `:` or a non-latin-1 character. */
|
|
108
|
+
clientId: string;
|
|
109
|
+
/** The tenant's client secret. Held by this instance only; never returned. */
|
|
110
|
+
clientSecret: string;
|
|
111
|
+
/** Transport override, passed through to {@linkcode exchangeToken}. */
|
|
112
|
+
fetch?: FetchLike;
|
|
113
|
+
/** Epoch-milliseconds clock, sampled before each request. Defaults to `Date.now`. */
|
|
114
|
+
now?: () => number;
|
|
115
|
+
}
|
|
116
|
+
/** Input to {@linkcode EmbedSessionClient.create}. */
|
|
117
|
+
export interface CreateEmbedSessionInput {
|
|
118
|
+
/** The signed-in end user's id on the host. Sent verbatim, never trimmed. */
|
|
119
|
+
subject: string;
|
|
120
|
+
/**
|
|
121
|
+
* The host's own reference for the company/workspace the user is acting in
|
|
122
|
+
* (the account's external ref). Required and non-blank: the server silently
|
|
123
|
+
* selects the tenant's default account for a blank one, so this client refuses.
|
|
124
|
+
* It is trimmed before sending.
|
|
125
|
+
*/
|
|
126
|
+
accountRef: string;
|
|
127
|
+
}
|
|
128
|
+
/** What {@linkcode EmbedSessionClient.create} returns. Safe to hand to a browser. */
|
|
129
|
+
export interface EmbedSession {
|
|
130
|
+
/** The minted, short-lived bearer token. */
|
|
131
|
+
token: string;
|
|
132
|
+
/** Token lifetime, in seconds. */
|
|
133
|
+
expiresIn: number;
|
|
134
|
+
/** ISO-8601 UTC expiry, computed from the host clock sampled before the request. */
|
|
135
|
+
expiresAt: string;
|
|
136
|
+
/** The subject the server minted into the token. */
|
|
137
|
+
subject: string;
|
|
138
|
+
/** The tenant the client credentials resolved to. */
|
|
139
|
+
tenant: string;
|
|
140
|
+
/** The server's resolved account id (`acct_…`). */
|
|
141
|
+
account: string;
|
|
142
|
+
/** The trimmed account ref that was sent as the wire `account`. */
|
|
143
|
+
accountRef: string;
|
|
144
|
+
}
|
|
145
|
+
/** An account-scoped session minter bound to one set of tenant credentials. */
|
|
146
|
+
export interface EmbedSessionClient {
|
|
147
|
+
/**
|
|
148
|
+
* Mint one account-scoped session: exactly one `POST /auth/exchange`.
|
|
149
|
+
*
|
|
150
|
+
* @throws {ConfigError} A non-string or blank `subject` / `accountRef` (no request is made).
|
|
151
|
+
* @throws {ApiError} Any server or transport failure, unwrapped (status and code intact).
|
|
152
|
+
*/
|
|
153
|
+
create(input: CreateEmbedSessionInput): Promise<EmbedSession>;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Build a session client that holds tenant credentials per instance and mints
|
|
157
|
+
* one account-scoped token per `create()`. A thin layer over
|
|
158
|
+
* {@linkcode exchangeToken}, which stays the only HTTP path.
|
|
159
|
+
*
|
|
160
|
+
* Backend-only: construction throws {@linkcode ConfigError} when both `window`
|
|
161
|
+
* and `document` exist (a browser-like global). This is a runtime check by
|
|
162
|
+
* design; a bundler may or may not remove it.
|
|
163
|
+
*
|
|
164
|
+
* @throws {ConfigError} A missing/blank `baseUrl` (even when `W6W_BASE_URL` is
|
|
165
|
+
* set), blank/non-string `clientId` or `clientSecret`, a `clientId` containing
|
|
166
|
+
* `:`, non-latin-1 credentials, or a browser-like runtime. No message echoes
|
|
167
|
+
* `clientSecret`.
|
|
168
|
+
*/
|
|
169
|
+
export declare function createEmbedSessionClient(options: EmbedSessionClientOptions): EmbedSessionClient;
|
|
100
170
|
//# sourceMappingURL=mod.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../src/server/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAE,KAAK,SAAS,EAAiB,MAAM,cAAc,CAAC;AAI7D,6CAA6C;AAC7C,MAAM,WAAW,oBAAoB;IACnC;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,+EAA+E;IAC/E,QAAQ,EAAE,MAAM,CAAC;IACjB,6DAA6D;IAC7D,YAAY,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iEAAiE;IACjE,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,+DAA+D;AAC/D,MAAM,WAAW,mBAAmB;IAClC,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,sCAAsC;IACtC,IAAI,EAAE;QACJ,mDAAmD;QACnD,OAAO,EAAE,MAAM,CAAC;QAChB,qDAAqD;QACrD,MAAM,EAAE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;IACrB,uEAAuE;IACvE,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,qFAAqF;IACrF,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC;CACpB;AAED,sDAAsD;AACtD,MAAM,WAAW,uBAAuB;IACtC,6EAA6E;IAC7E,OAAO,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,qFAAqF;AACrF,MAAM,WAAW,YAAY;IAC3B,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,kCAAkC;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,oFAAoF;IACpF,SAAS,EAAE,MAAM,CAAC;IAClB,oDAAoD;IACpD,OAAO,EAAE,MAAM,CAAC;IAChB,qDAAqD;IACrD,MAAM,EAAE,MAAM,CAAC;IACf,mDAAmD;IACnD,OAAO,EAAE,MAAM,CAAC;IAChB,mEAAmE;IACnE,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,+EAA+E;AAC/E,MAAM,WAAW,kBAAkB;IACjC;;;;;OAKG;IACH,MAAM,CAAC,KAAK,EAAE,uBAAuB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;CAC/D;AAID;;;;;;;;;;;;;GAaG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,yBAAyB,GAAG,kBAAkB,CA6D/F"}
|
package/dist/src/server/mod.js
CHANGED
|
@@ -26,14 +26,21 @@
|
|
|
26
26
|
* @module
|
|
27
27
|
*/
|
|
28
28
|
import { resolveConfig } from "../config.js";
|
|
29
|
-
import { ConfigError } from "../errors.js";
|
|
29
|
+
import { ApiError, ConfigError } from "../errors.js";
|
|
30
30
|
import { request } from "../http.js";
|
|
31
|
-
/** Non-blank after trimming. */
|
|
32
|
-
function required(value, field) {
|
|
31
|
+
/** Non-blank after trimming. `who` prefixes the message (the raw path keeps `exchangeToken`). */
|
|
32
|
+
function required(value, field, who = "exchangeToken") {
|
|
33
33
|
if (value.trim().length === 0) {
|
|
34
|
-
throw new ConfigError(
|
|
34
|
+
throw new ConfigError(`${who}: \`${field}\` must not be blank.`);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
+
/** {@linkcode required}, but a non-string is a {@linkcode ConfigError} too, not a TypeError. */
|
|
38
|
+
function requiredText(value, field, who) {
|
|
39
|
+
if (typeof value !== "string") {
|
|
40
|
+
throw new ConfigError(`${who}: \`${field}\` must be a non-blank string.`);
|
|
41
|
+
}
|
|
42
|
+
required(value, field, who);
|
|
43
|
+
}
|
|
37
44
|
/**
|
|
38
45
|
* Base64-encode `clientId:clientSecret` the way the server decodes it:
|
|
39
46
|
* latin-1 (`atob`'s own alphabet), via `btoa`.
|
|
@@ -46,9 +53,9 @@ function required(value, field) {
|
|
|
46
53
|
* @throws {ConfigError} When `clientId` contains `:` (indistinguishable from
|
|
47
54
|
* the Basic separator on decode) or either value is not latin-1.
|
|
48
55
|
*/
|
|
49
|
-
function basicAuthHeader(clientId, clientSecret) {
|
|
56
|
+
function basicAuthHeader(clientId, clientSecret, who = "exchangeToken") {
|
|
50
57
|
if (clientId.includes(":")) {
|
|
51
|
-
throw new ConfigError(
|
|
58
|
+
throw new ConfigError(`${who}: \`clientId\` must not contain ":" — the server splits a ` +
|
|
52
59
|
"decoded Basic credential on the FIRST colon, so a colon in `clientId` " +
|
|
53
60
|
"would be read as part of the secret instead.");
|
|
54
61
|
}
|
|
@@ -56,7 +63,7 @@ function basicAuthHeader(clientId, clientSecret) {
|
|
|
56
63
|
return btoa(`${clientId}:${clientSecret}`);
|
|
57
64
|
}
|
|
58
65
|
catch {
|
|
59
|
-
throw new ConfigError(
|
|
66
|
+
throw new ConfigError(`${who}: \`clientId\`/\`clientSecret\` must be representable as ` +
|
|
60
67
|
"latin-1 (ISO-8859-1) — the server decodes the Basic header with " +
|
|
61
68
|
"`atob`, which cannot represent a wider character set.");
|
|
62
69
|
}
|
|
@@ -118,4 +125,68 @@ export async function exchangeToken(options) {
|
|
|
118
125
|
});
|
|
119
126
|
return res.body;
|
|
120
127
|
}
|
|
128
|
+
const SESSION = "EmbedSessionClient";
|
|
129
|
+
/**
|
|
130
|
+
* Build a session client that holds tenant credentials per instance and mints
|
|
131
|
+
* one account-scoped token per `create()`. A thin layer over
|
|
132
|
+
* {@linkcode exchangeToken}, which stays the only HTTP path.
|
|
133
|
+
*
|
|
134
|
+
* Backend-only: construction throws {@linkcode ConfigError} when both `window`
|
|
135
|
+
* and `document` exist (a browser-like global). This is a runtime check by
|
|
136
|
+
* design; a bundler may or may not remove it.
|
|
137
|
+
*
|
|
138
|
+
* @throws {ConfigError} A missing/blank `baseUrl` (even when `W6W_BASE_URL` is
|
|
139
|
+
* set), blank/non-string `clientId` or `clientSecret`, a `clientId` containing
|
|
140
|
+
* `:`, non-latin-1 credentials, or a browser-like runtime. No message echoes
|
|
141
|
+
* `clientSecret`.
|
|
142
|
+
*/
|
|
143
|
+
export function createEmbedSessionClient(options) {
|
|
144
|
+
const g = globalThis;
|
|
145
|
+
if (typeof g.window !== "undefined" && typeof g.document !== "undefined") {
|
|
146
|
+
throw new ConfigError(`${SESSION}: refusing to construct in a browser-like runtime — the tenant client ` +
|
|
147
|
+
"secret must stay on your backend.");
|
|
148
|
+
}
|
|
149
|
+
const { baseUrl, clientId, clientSecret } = options ?? {};
|
|
150
|
+
requiredText(baseUrl, "baseUrl", SESSION);
|
|
151
|
+
requiredText(clientId, "clientId", SESSION);
|
|
152
|
+
requiredText(clientSecret, "clientSecret", SESSION);
|
|
153
|
+
basicAuthHeader(clientId, clientSecret, SESSION);
|
|
154
|
+
resolveConfig({ baseUrl });
|
|
155
|
+
const fetchOption = options.fetch;
|
|
156
|
+
const now = options.now ?? Date.now;
|
|
157
|
+
return {
|
|
158
|
+
async create(input) {
|
|
159
|
+
const { subject, accountRef } = input ?? {};
|
|
160
|
+
requiredText(subject, "subject", SESSION);
|
|
161
|
+
requiredText(accountRef, "accountRef", SESSION);
|
|
162
|
+
const account = accountRef.trim();
|
|
163
|
+
const t0 = now();
|
|
164
|
+
const res = await exchangeToken({
|
|
165
|
+
baseUrl,
|
|
166
|
+
clientId,
|
|
167
|
+
clientSecret,
|
|
168
|
+
subject,
|
|
169
|
+
account,
|
|
170
|
+
fetch: fetchOption,
|
|
171
|
+
});
|
|
172
|
+
const expiresAtMs = t0 + res?.expiresIn * 1000;
|
|
173
|
+
if (res === null || res === undefined ||
|
|
174
|
+
typeof res.token !== "string" || typeof res.expiresIn !== "number" ||
|
|
175
|
+
Number.isNaN(new Date(expiresAtMs).getTime()) || res.user === null ||
|
|
176
|
+
typeof res.user !== "object" || typeof res.user.subject !== "string" ||
|
|
177
|
+
typeof res.user.tenant !== "string" || typeof res.user.account !== "string") {
|
|
178
|
+
throw new ApiError(200, "bad_response", `${SESSION}: the exchange response was not the documented shape.`);
|
|
179
|
+
}
|
|
180
|
+
return {
|
|
181
|
+
token: res.token,
|
|
182
|
+
expiresIn: res.expiresIn,
|
|
183
|
+
expiresAt: new Date(expiresAtMs).toISOString(),
|
|
184
|
+
subject: res.user.subject,
|
|
185
|
+
tenant: res.user.tenant,
|
|
186
|
+
account: res.user.account,
|
|
187
|
+
accountRef: account,
|
|
188
|
+
};
|
|
189
|
+
},
|
|
190
|
+
};
|
|
191
|
+
}
|
|
121
192
|
//# sourceMappingURL=mod.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.js","sourceRoot":"","sources":["../../../src/server/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAkB,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"mod.js","sourceRoot":"","sources":["../../../src/server/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAkB,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,E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BACP,OAAO;gBACP,KAAK,EAAE,WAAW;aACnB,CAAC,CAAC;YAEH,MAAM,WAAW,GAAG,EAAE,GAAG,GAAG,EAAE,SAAS,GAAG,IAAI,CAAC;YAC/C,IACE,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,SAAS;gBACjC,OAAO,GAAG,CAAC,KAAK,KAAK,QAAQ,IAAI,OAAO,GAAG,CAAC,SAAS,KAAK,QAAQ;gBAClE,MAAM,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,OAAO,EAAE,CAAC,IAAI,GAAG,CAAC,IAAI,KAAK,IAAI;gBAClE,OAAO,GAAG,CAAC,IAAI,KAAK,QAAQ,IAAI,OAAO,GAAG,CAAC,IAAI,CAAC,OAAO,KAAK,QAAQ;gBACpE,OAAO,GAAG,CAAC,IAAI,CAAC,MAAM,KAAK,QAAQ,IAAI,OAAO,GAAG,CAAC,IAAI,CAAC,OAAO,KAAK,QAAQ,EAC3E,CAAC;gBACD,MAAM,IAAI,QAAQ,CAChB,GAAG,EACH,cAAc,EACd,GAAG,OAAO,uDAAuD,CAClE,CAAC;YACJ,CAAC;YACD,OAAO;gBACL,KAAK,EAAE,GAAG,CAAC,KAAK;gBAChB,SAAS,EAAE,GAAG,CAAC,SAAS;gBACxB,SAAS,EAAE,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,WAAW,EAAE;gBAC9C,OAAO,EAAE,GAAG,CAAC,IAAI,CAAC,OAAO;gBACzB,MAAM,EAAE,GAAG,CAAC,IAAI,CAAC,MAAM;gBACvB,OAAO,EAAE,GAAG,CAAC,IAAI,CAAC,OAAO;gBACzB,UAAU,EAAE,OAAO;aACpB,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/dist/src/types.d.ts
CHANGED
|
@@ -174,6 +174,13 @@ export interface ConnectionSummary {
|
|
|
174
174
|
* `null` means the server found no app row; absent means an older server.
|
|
175
175
|
*/
|
|
176
176
|
app?: ConnectionAppMeta | null;
|
|
177
|
+
/**
|
|
178
|
+
* `true` on the synthetic zero-credential row the list can include (a
|
|
179
|
+
* `zerocred:…` id — usable with no connection step, not stored, not
|
|
180
|
+
* deletable). Absent on a stored connection, and on an older server that does
|
|
181
|
+
* not emit the marker.
|
|
182
|
+
*/
|
|
183
|
+
builtIn?: boolean;
|
|
177
184
|
}
|
|
178
185
|
/** Lifecycle state of a workflow: an editable draft, a published live one, or archived. */
|
|
179
186
|
export type WorkflowStatus = "draft" | "active" | "archived";
|
package/dist/src/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE9C;;;;;;GAMG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvE;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,GAAG;IAClB,8DAA8D;IAC9D,EAAE,EAAE,MAAM,CAAC;IACX,iFAAiF;IACjF,GAAG,EAAE,MAAM,CAAC;IACZ,gEAAgE;IAChE,OAAO,EAAE,MAAM,CAAC;IAChB,mBAAmB;IACnB,MAAM,EAAE,SAAS,CAAC;IAClB,8CAA8C;IAC9C,WAAW,EAAE,MAAM,CAAC;IACpB,0BAA0B;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,0BAA0B;IAC1B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,mFAAmF;AACnF,MAAM,MAAM,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;AAE/D;;;;;;;GAOG;AACH,MAAM,WAAW,GAAG;IAClB,8DAA8D;IAC9D,EAAE,EAAE,MAAM,CAAC;IACX,oEAAoE;IACpE,IAAI,EAAE,MAAM,CAAC;IACb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M,CAK7C"}
|
package/dist/src/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AA8ZvC;;;;;;GAMG;AACH,MAAM,UAAU,WAAW,CAAC,GAAgB;IAC1C,OAAO,GAAG,CAAC,IAAI,KAAK,QAAQ,CAAC;AAC/B,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,aAAa,CAAC,GAAgB;IAC5C,OAAO,GAAG,CAAC,IAAI,KAAK,UAAU,CAAC;AACjC,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,aAAa,CAAC,GAAgB;IAC5C,OAAO,GAAG,CAAC,IAAI,KAAK,UAAU,CAAC;AACjC,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,mBAAmB,CAAC,MAAiB;IACnD,OAAO,MAAM,KAAK,WAAW,IAAI,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,UAAU,CAAC;AAChF,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,UAAU,MAAM,CAAI,GAA0B,EAAE,GAAW;IAC/D,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;IACtB,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAI,IAAgC,CAAC,GAAG,CAAC,CAAC;QACrD,2EAA2E;QAC3E,6DAA6D;QAC7D,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI;YAAE,OAAO,KAAU,CAAC;IAC/D,CAAC;IACD,MAAM,IAAI,QAAQ,CAChB,GAAG,CAAC,MAAM,EACV,cAAc,EACd,qBAAqB,GAAG,CAAC,MAAM,aAAa,GAAG,yBAAyB,EACxE,IAAI,CACL,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,MAAM,CAAC,MAAc;IACnC,MAAM,IAAI,GAAG,OAAO,MAAM,KAAK,WAAW,IAAI,YAAY,IAAI,MAAM;QAClE,CAAC,CAAC,MAAM,CAAC,UAAU,EAAE;QACrB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAClD,OAAO,GAAG,MAAM,IAAI,IAAI,EAAE,CAAC;AAC7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,OAAO,EAAE,MAAiB,CAAC"}
|
package/dist/src/version.js
CHANGED
package/dist/src/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,OAAO,GAAW,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,OAAO,GAAW,QAAQ,CAAC"}
|