@tailorkit/client-platform 0.1.0-beta.2 → 0.1.0-beta.21
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/LICENSE.md +201 -0
- package/README.md +3 -0
- package/dist/agent.d.ts +31 -0
- package/dist/agent.js +10 -0
- package/dist/{chunk-4K3CQFYO.js → chunk-3CR3KAER.js} +3 -3
- package/dist/chunk-AX5PTMUR.js +23 -0
- package/dist/{chunk-TWOK2M2L.js → chunk-HXX7UM4A.js} +2 -1
- package/dist/chunk-KF2MA65O.js +211 -0
- package/dist/{chunk-BV7KDGT6.js → chunk-P5HWCKOQ.js} +1 -1
- package/dist/chunk-PTDO4GSQ.js +115 -0
- package/dist/{chunk-VS3R5QGP.js → chunk-VUBA7FI4.js} +45 -16
- package/dist/client/client/client.gen.d.ts +1 -2
- package/dist/client/client/client.gen.js +2 -2
- package/dist/client/client/index.d.ts +10 -9
- package/dist/client/client/index.js +5 -5
- package/dist/client/client/types.gen.d.ts +5 -6
- package/dist/client/client/utils.gen.d.ts +3 -4
- package/dist/client/client.gen.d.ts +3 -4
- package/dist/client/client.gen.js +4 -4
- package/dist/client/core/auth.gen.d.ts +7 -1
- package/dist/client/core/bodySerializer.gen.d.ts +1 -2
- package/dist/client/core/params.gen.d.ts +2 -3
- package/dist/client/core/params.gen.js +1 -1
- package/dist/client/core/pathSerializer.gen.d.ts +3 -4
- package/dist/client/core/queryKeySerializer.gen.d.ts +1 -2
- package/dist/client/core/serverSentEvents.gen.d.ts +1 -2
- package/dist/client/core/serverSentEvents.gen.js +1 -1
- package/dist/client/core/types.gen.d.ts +7 -3
- package/dist/client/core/utils.gen.d.ts +1 -2
- package/dist/client/index.d.ts +2 -3
- package/dist/client/index.js +23 -7
- package/dist/client/sdk.gen.d.ts +26 -19
- package/dist/client/sdk.gen.js +23 -7
- package/dist/client/types.gen.d.ts +665 -100
- package/dist/client.d.ts +1 -2
- package/dist/index.d.ts +4 -3
- package/dist/index.js +45 -7
- package/dist/preview.d.ts +109 -0
- package/dist/preview.js +16 -0
- package/package.json +21 -19
- package/LICENSE +0 -674
- package/dist/chunk-GBVROCWH.js +0 -123
- package/dist/client/client/client.gen.d.ts.map +0 -1
- package/dist/client/client/index.d.ts.map +0 -1
- package/dist/client/client/types.gen.d.ts.map +0 -1
- package/dist/client/client/utils.gen.d.ts.map +0 -1
- package/dist/client/client.gen.d.ts.map +0 -1
- package/dist/client/core/auth.gen.d.ts.map +0 -1
- package/dist/client/core/bodySerializer.gen.d.ts.map +0 -1
- package/dist/client/core/params.gen.d.ts.map +0 -1
- package/dist/client/core/pathSerializer.gen.d.ts.map +0 -1
- package/dist/client/core/queryKeySerializer.gen.d.ts.map +0 -1
- package/dist/client/core/serverSentEvents.gen.d.ts.map +0 -1
- package/dist/client/core/types.gen.d.ts.map +0 -1
- package/dist/client/core/utils.gen.d.ts.map +0 -1
- package/dist/client/index.d.ts.map +0 -1
- package/dist/client/sdk.gen.d.ts.map +0 -1
- package/dist/client/types.gen.d.ts.map +0 -1
- package/dist/client.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
|
@@ -6,7 +6,7 @@ var extraPrefixesMap = {
|
|
|
6
6
|
$query_: "query"
|
|
7
7
|
};
|
|
8
8
|
var extraPrefixes = Object.entries(extraPrefixesMap);
|
|
9
|
-
|
|
9
|
+
function buildKeyMap(fields, map) {
|
|
10
10
|
if (!map) {
|
|
11
11
|
map = /* @__PURE__ */ new Map();
|
|
12
12
|
}
|
|
@@ -27,22 +27,51 @@ var buildKeyMap = (fields, map) => {
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
return map;
|
|
30
|
-
}
|
|
31
|
-
|
|
30
|
+
}
|
|
31
|
+
function stripEmptySlots(params) {
|
|
32
32
|
for (const [slot, value] of Object.entries(params)) {
|
|
33
|
+
if (slot === "body") continue;
|
|
33
34
|
if (value && typeof value === "object" && !Array.isArray(value) && !Object.keys(value).length) {
|
|
34
35
|
delete params[slot];
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
|
-
}
|
|
38
|
-
|
|
38
|
+
}
|
|
39
|
+
function buildClientParams(args, fields) {
|
|
39
40
|
const params = {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
query: {}
|
|
41
|
+
headers: /* @__PURE__ */ Object.create(null),
|
|
42
|
+
path: /* @__PURE__ */ Object.create(null),
|
|
43
|
+
query: /* @__PURE__ */ Object.create(null)
|
|
44
44
|
};
|
|
45
45
|
const map = buildKeyMap(fields);
|
|
46
|
+
let bodyMode;
|
|
47
|
+
function writeSlot(slot, key, value) {
|
|
48
|
+
if (slot === "body") {
|
|
49
|
+
if (bodyMode === "raw") {
|
|
50
|
+
throw new Error("Cannot mix raw and mapped body parameters.");
|
|
51
|
+
}
|
|
52
|
+
bodyMode = "mapped";
|
|
53
|
+
}
|
|
54
|
+
let record = params[slot];
|
|
55
|
+
if (record === void 0) {
|
|
56
|
+
record = /* @__PURE__ */ Object.create(null);
|
|
57
|
+
params[slot] = record;
|
|
58
|
+
}
|
|
59
|
+
if (record === null || typeof record !== "object" || Array.isArray(record)) {
|
|
60
|
+
throw new Error(`Cannot map fields into a non-object ${slot} parameter.`);
|
|
61
|
+
}
|
|
62
|
+
record[key] = value;
|
|
63
|
+
}
|
|
64
|
+
function writeRawSlot(slot, value) {
|
|
65
|
+
if (slot === "body") {
|
|
66
|
+
if (bodyMode === "mapped") {
|
|
67
|
+
throw new Error("Cannot mix raw and mapped body parameters.");
|
|
68
|
+
}
|
|
69
|
+
bodyMode = "raw";
|
|
70
|
+
params.body = value;
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
params[slot] = value;
|
|
74
|
+
}
|
|
46
75
|
let config;
|
|
47
76
|
for (const [index, arg] of args.entries()) {
|
|
48
77
|
if (fields[index]) {
|
|
@@ -56,10 +85,10 @@ var buildClientParams = (args, fields) => {
|
|
|
56
85
|
const field = map.get(config.key);
|
|
57
86
|
const name = field.map || config.key;
|
|
58
87
|
if (field.in) {
|
|
59
|
-
|
|
88
|
+
writeSlot(field.in, name, arg);
|
|
60
89
|
}
|
|
61
90
|
} else {
|
|
62
|
-
|
|
91
|
+
writeRawSlot("body", arg);
|
|
63
92
|
}
|
|
64
93
|
} else {
|
|
65
94
|
for (const [key, value] of Object.entries(arg ?? {})) {
|
|
@@ -67,19 +96,19 @@ var buildClientParams = (args, fields) => {
|
|
|
67
96
|
if (field) {
|
|
68
97
|
if (field.in) {
|
|
69
98
|
const name = field.map || key;
|
|
70
|
-
|
|
99
|
+
writeSlot(field.in, name, value);
|
|
71
100
|
} else {
|
|
72
|
-
|
|
101
|
+
writeRawSlot(field.map, value);
|
|
73
102
|
}
|
|
74
103
|
} else {
|
|
75
104
|
const extra = extraPrefixes.find(([prefix]) => key.startsWith(prefix));
|
|
76
105
|
if (extra) {
|
|
77
106
|
const [prefix, slot] = extra;
|
|
78
|
-
|
|
107
|
+
writeSlot(slot, key.slice(prefix.length), value);
|
|
79
108
|
} else if ("allowExtra" in config && config.allowExtra) {
|
|
80
109
|
for (const [slot, allowed] of Object.entries(config.allowExtra)) {
|
|
81
110
|
if (allowed) {
|
|
82
|
-
|
|
111
|
+
writeSlot(slot, key, value);
|
|
83
112
|
break;
|
|
84
113
|
}
|
|
85
114
|
}
|
|
@@ -90,7 +119,7 @@ var buildClientParams = (args, fields) => {
|
|
|
90
119
|
}
|
|
91
120
|
stripEmptySlots(params);
|
|
92
121
|
return params;
|
|
93
|
-
}
|
|
122
|
+
}
|
|
94
123
|
|
|
95
124
|
export {
|
|
96
125
|
buildClientParams
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createClient
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-3CR3KAER.js";
|
|
4
|
+
import "../../chunk-HXX7UM4A.js";
|
|
4
5
|
import "../../chunk-MG3GT4SQ.js";
|
|
5
6
|
import "../../chunk-KP5YYTW6.js";
|
|
6
7
|
import "../../chunk-TZPDFAYB.js";
|
|
7
8
|
import "../../chunk-ZLGFMDTV.js";
|
|
8
9
|
import "../../chunk-JETBOCXO.js";
|
|
9
|
-
import "../../chunk-TWOK2M2L.js";
|
|
10
10
|
export {
|
|
11
11
|
createClient
|
|
12
12
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export type { Auth } from "../core/auth.gen";
|
|
2
|
-
export type { QuerySerializerOptions } from "../core/bodySerializer.gen";
|
|
3
|
-
export { formDataBodySerializer, jsonBodySerializer, urlSearchParamsBodySerializer, } from "../core/bodySerializer.gen";
|
|
4
|
-
export { buildClientParams } from "../core/params.gen";
|
|
5
|
-
export { serializeQueryKeyValue } from "../core/queryKeySerializer.gen";
|
|
6
|
-
export {
|
|
7
|
-
export type {
|
|
8
|
-
export {
|
|
9
|
-
|
|
1
|
+
export type { Auth } from "../core/auth.gen.js";
|
|
2
|
+
export type { QuerySerializerOptions } from "../core/bodySerializer.gen.js";
|
|
3
|
+
export { formDataBodySerializer, jsonBodySerializer, urlSearchParamsBodySerializer, } from "../core/bodySerializer.gen.js";
|
|
4
|
+
export { buildClientParams } from "../core/params.gen.js";
|
|
5
|
+
export { serializeQueryKeyValue } from "../core/queryKeySerializer.gen.js";
|
|
6
|
+
export type { ServerSentEventsResult } from "../core/serverSentEvents.gen.js";
|
|
7
|
+
export type { ClientMeta } from "../core/types.gen.js";
|
|
8
|
+
export { createClient } from "./client.gen.js";
|
|
9
|
+
export type { Client, ClientOptions, Config, CreateClientConfig, Options, RequestOptions, RequestResult, ResolvedRequestOptions, ResponseStyle, TDataShape, } from "./types.gen.js";
|
|
10
|
+
export { createConfig, mergeHeaders } from "./utils.gen.js";
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import "../../chunk-X5TBL4RL.js";
|
|
2
|
-
import {
|
|
3
|
-
buildClientParams
|
|
4
|
-
} from "../../chunk-VS3R5QGP.js";
|
|
5
2
|
import {
|
|
6
3
|
serializeQueryKeyValue
|
|
7
4
|
} from "../../chunk-RRYF7FTJ.js";
|
|
8
5
|
import {
|
|
9
6
|
createClient
|
|
10
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-3CR3KAER.js";
|
|
8
|
+
import "../../chunk-HXX7UM4A.js";
|
|
11
9
|
import {
|
|
12
10
|
createConfig,
|
|
13
11
|
mergeHeaders
|
|
@@ -19,8 +17,10 @@ import {
|
|
|
19
17
|
jsonBodySerializer,
|
|
20
18
|
urlSearchParamsBodySerializer
|
|
21
19
|
} from "../../chunk-ZLGFMDTV.js";
|
|
20
|
+
import {
|
|
21
|
+
buildClientParams
|
|
22
|
+
} from "../../chunk-VUBA7FI4.js";
|
|
22
23
|
import "../../chunk-JETBOCXO.js";
|
|
23
|
-
import "../../chunk-TWOK2M2L.js";
|
|
24
24
|
export {
|
|
25
25
|
buildClientParams,
|
|
26
26
|
createClient,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Auth } from "../core/auth.gen";
|
|
2
|
-
import type { ServerSentEventsOptions, ServerSentEventsResult } from "../core/serverSentEvents.gen";
|
|
3
|
-
import type { Client as CoreClient, Config as CoreConfig } from "../core/types.gen";
|
|
4
|
-
import type { Middleware } from "./utils.gen";
|
|
1
|
+
import type { Auth } from "../core/auth.gen.js";
|
|
2
|
+
import type { ServerSentEventsOptions, ServerSentEventsResult } from "../core/serverSentEvents.gen.js";
|
|
3
|
+
import type { Client as CoreClient, Config as CoreConfig } from "../core/types.gen.js";
|
|
4
|
+
import type { Middleware } from "./utils.gen.js";
|
|
5
5
|
export type ResponseStyle = "data" | "fields";
|
|
6
6
|
export interface Config<T extends ClientOptions = ClientOptions> extends Omit<RequestInit, "body" | "headers" | "method">, CoreConfig {
|
|
7
7
|
/**
|
|
@@ -88,7 +88,7 @@ export interface ClientOptions {
|
|
|
88
88
|
throwOnError?: boolean;
|
|
89
89
|
}
|
|
90
90
|
type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = "fields">(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, "method">) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
91
|
-
type SseFn = <TData = unknown,
|
|
91
|
+
type SseFn = <TData = unknown, _TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = "fields">(options: Omit<RequestOptions<never, TResponseStyle, ThrowOnError>, "method">) => Promise<ServerSentEventsResult<TData>>;
|
|
92
92
|
type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = "fields">(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, "method"> & Pick<Required<RequestOptions<TData, TResponseStyle, ThrowOnError>>, "method">) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
93
93
|
type BuildUrlFn = <TData extends {
|
|
94
94
|
body?: unknown;
|
|
@@ -118,4 +118,3 @@ export interface TDataShape {
|
|
|
118
118
|
type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
119
119
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = "fields"> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, "body" | "path" | "query" | "url"> & ([TData] extends [never] ? unknown : Omit<TData, "url">);
|
|
120
120
|
export {};
|
|
121
|
-
//# sourceMappingURL=types.gen.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { QuerySerializerOptions } from "../core/bodySerializer.gen";
|
|
2
|
-
import type { Client, ClientOptions, Config, RequestOptions } from "./types.gen";
|
|
3
|
-
export declare const createQuerySerializer: <T = unknown>({ parameters, ...args }?: QuerySerializerOptions) => (queryParams: T) => string;
|
|
1
|
+
import type { QuerySerializerOptions } from "../core/bodySerializer.gen.js";
|
|
2
|
+
import type { Client, ClientOptions, Config, RequestOptions } from "./types.gen.js";
|
|
3
|
+
export declare const createQuerySerializer: <T = unknown>({ parameters, ...args }?: QuerySerializerOptions) => ((queryParams: T) => string);
|
|
4
4
|
/**
|
|
5
5
|
* Infers parseAs value from provided Content-Type header.
|
|
6
6
|
*/
|
|
@@ -35,4 +35,3 @@ export interface Middleware<Req, Res, Err, Options> {
|
|
|
35
35
|
export declare const createInterceptors: <Req, Res, Err, Options>() => Middleware<Req, Res, Err, Options>;
|
|
36
36
|
export declare const createConfig: <T extends ClientOptions = ClientOptions>(override?: Config<Omit<ClientOptions, keyof T> & T>) => Config<Omit<ClientOptions, keyof T> & T>;
|
|
37
37
|
export {};
|
|
38
|
-
//# sourceMappingURL=utils.gen.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type ClientOptions, type Config } from "./client";
|
|
2
|
-
import type { ClientOptions as ClientOptions2 } from "./types.gen";
|
|
1
|
+
import { type Client, type ClientOptions, type Config } from "./client/index.js";
|
|
2
|
+
import type { ClientOptions as ClientOptions2 } from "./types.gen.js";
|
|
3
3
|
/**
|
|
4
4
|
* The `createClientConfig()` function will be called on client initialization
|
|
5
5
|
* and the returned object will become the client's initial configuration.
|
|
@@ -9,5 +9,4 @@ import type { ClientOptions as ClientOptions2 } from "./types.gen";
|
|
|
9
9
|
* to ensure your client always has the correct values.
|
|
10
10
|
*/
|
|
11
11
|
export type CreateClientConfig<T extends ClientOptions = ClientOptions2> = (override?: Config<ClientOptions & T>) => Config<Required<ClientOptions> & T>;
|
|
12
|
-
export declare const client:
|
|
13
|
-
//# sourceMappingURL=client.gen.d.ts.map
|
|
12
|
+
export declare const client: Client;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
client
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-P5HWCKOQ.js";
|
|
4
4
|
import "../chunk-X5TBL4RL.js";
|
|
5
|
-
import "../chunk-VS3R5QGP.js";
|
|
6
5
|
import "../chunk-RRYF7FTJ.js";
|
|
7
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-3CR3KAER.js";
|
|
7
|
+
import "../chunk-HXX7UM4A.js";
|
|
8
8
|
import "../chunk-MG3GT4SQ.js";
|
|
9
9
|
import "../chunk-KP5YYTW6.js";
|
|
10
10
|
import "../chunk-TZPDFAYB.js";
|
|
11
11
|
import "../chunk-ZLGFMDTV.js";
|
|
12
|
+
import "../chunk-VUBA7FI4.js";
|
|
12
13
|
import "../chunk-JETBOCXO.js";
|
|
13
|
-
import "../chunk-TWOK2M2L.js";
|
|
14
14
|
export {
|
|
15
15
|
client
|
|
16
16
|
};
|
|
@@ -6,6 +6,13 @@ export interface Auth {
|
|
|
6
6
|
* @default 'header'
|
|
7
7
|
*/
|
|
8
8
|
in?: "header" | "query" | "cookie";
|
|
9
|
+
/**
|
|
10
|
+
* A unique identifier for the security scheme.
|
|
11
|
+
*
|
|
12
|
+
* Defined only when there are multiple security schemes whose `Auth`
|
|
13
|
+
* shape would otherwise be identical.
|
|
14
|
+
*/
|
|
15
|
+
key?: string;
|
|
9
16
|
/**
|
|
10
17
|
* Header or query parameter name.
|
|
11
18
|
*
|
|
@@ -16,4 +23,3 @@ export interface Auth {
|
|
|
16
23
|
type: "apiKey" | "http";
|
|
17
24
|
}
|
|
18
25
|
export declare const getAuthToken: (auth: Auth, callback: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken) => Promise<string | undefined>;
|
|
19
|
-
//# sourceMappingURL=auth.gen.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ArrayStyle, ObjectStyle, SerializerOptions } from "./pathSerializer.gen";
|
|
1
|
+
import type { ArrayStyle, ObjectStyle, SerializerOptions } from "./pathSerializer.gen.js";
|
|
2
2
|
export type QuerySerializer = (query: Record<string, unknown>) => string;
|
|
3
3
|
export type BodySerializer = (body: unknown) => unknown;
|
|
4
4
|
type QuerySerializerOptionsObject = {
|
|
@@ -23,4 +23,3 @@ export declare const urlSearchParamsBodySerializer: {
|
|
|
23
23
|
bodySerializer: (body: unknown) => string;
|
|
24
24
|
};
|
|
25
25
|
export {};
|
|
26
|
-
//# sourceMappingURL=bodySerializer.gen.d.ts.map
|
|
@@ -34,11 +34,10 @@ export interface Fields {
|
|
|
34
34
|
}
|
|
35
35
|
export type FieldsConfig = ReadonlyArray<Field | Fields>;
|
|
36
36
|
interface Params {
|
|
37
|
-
body
|
|
37
|
+
body?: unknown;
|
|
38
38
|
headers: Record<string, unknown>;
|
|
39
39
|
path: Record<string, unknown>;
|
|
40
40
|
query: Record<string, unknown>;
|
|
41
41
|
}
|
|
42
|
-
export declare
|
|
42
|
+
export declare function buildClientParams(args: ReadonlyArray<unknown>, fields: FieldsConfig): Params;
|
|
43
43
|
export {};
|
|
44
|
-
//# sourceMappingURL=params.gen.d.ts.map
|
|
@@ -19,9 +19,9 @@ type ObjectSeparatorStyle = ObjectStyle | MatrixStyle;
|
|
|
19
19
|
interface SerializePrimitiveParam extends SerializePrimitiveOptions {
|
|
20
20
|
value: string;
|
|
21
21
|
}
|
|
22
|
-
export declare const separatorArrayExplode: (style: ArraySeparatorStyle) => "
|
|
23
|
-
export declare const separatorArrayNoExplode: (style: ArraySeparatorStyle) => "
|
|
24
|
-
export declare const separatorObjectExplode: (style: ObjectSeparatorStyle) => "
|
|
22
|
+
export declare const separatorArrayExplode: (style: ArraySeparatorStyle) => "." | ";" | "," | "&";
|
|
23
|
+
export declare const separatorArrayNoExplode: (style: ArraySeparatorStyle) => "," | "|" | "%20";
|
|
24
|
+
export declare const separatorObjectExplode: (style: ObjectSeparatorStyle) => "." | ";" | "," | "&";
|
|
25
25
|
export declare const serializeArrayParam: ({ allowReserved, explode, name, style, value, }: SerializeOptions<ArraySeparatorStyle> & {
|
|
26
26
|
value: unknown[];
|
|
27
27
|
}) => string;
|
|
@@ -31,4 +31,3 @@ export declare const serializeObjectParam: ({ allowReserved, explode, name, styl
|
|
|
31
31
|
valueOnly?: boolean;
|
|
32
32
|
}) => string;
|
|
33
33
|
export {};
|
|
34
|
-
//# sourceMappingURL=pathSerializer.gen.d.ts.map
|
|
@@ -7,7 +7,7 @@ export type JsonValue = null | string | number | boolean | JsonValue[] | {
|
|
|
7
7
|
/**
|
|
8
8
|
* Replacer that converts non-JSON values (bigint, Date, etc.) to safe substitutes.
|
|
9
9
|
*/
|
|
10
|
-
export declare const queryKeyJsonReplacer: (_key: string, value: unknown) =>
|
|
10
|
+
export declare const queryKeyJsonReplacer: (_key: string, value: unknown) => unknown | undefined;
|
|
11
11
|
/**
|
|
12
12
|
* Safely stringifies a value and parses it back into a JsonValue.
|
|
13
13
|
*/
|
|
@@ -16,4 +16,3 @@ export declare const stringifyToJsonValue: (input: unknown) => JsonValue | undef
|
|
|
16
16
|
* Normalizes any accepted value into a JSON-friendly shape for query keys.
|
|
17
17
|
*/
|
|
18
18
|
export declare const serializeQueryKeyValue: (value: unknown) => JsonValue | undefined;
|
|
19
|
-
//# sourceMappingURL=queryKeySerializer.gen.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Config } from "./types.gen";
|
|
1
|
+
import type { Config } from "./types.gen.js";
|
|
2
2
|
export type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, "method"> & Pick<Config, "method" | "responseTransformer" | "responseValidator"> & {
|
|
3
3
|
/**
|
|
4
4
|
* Fetch API implementation. You can use this option to provide a custom
|
|
@@ -69,4 +69,3 @@ export type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unkn
|
|
|
69
69
|
stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
|
|
70
70
|
};
|
|
71
71
|
export declare function createSseClient<TData = unknown>({ onRequest, onSseError, onSseEvent, responseTransformer, responseValidator, sseDefaultRetryDelay, sseMaxRetryAttempts, sseMaxRetryDelay, sseSleepFn, url, ...options }: ServerSentEventsOptions): ServerSentEventsResult<TData>;
|
|
72
|
-
//# sourceMappingURL=serverSentEvents.gen.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Auth, AuthToken } from "./auth.gen";
|
|
2
|
-
import type { BodySerializer, QuerySerializer, QuerySerializerOptions } from "./bodySerializer.gen";
|
|
1
|
+
import type { Auth, AuthToken } from "./auth.gen.js";
|
|
2
|
+
import type { BodySerializer, QuerySerializer, QuerySerializerOptions } from "./bodySerializer.gen.js";
|
|
3
3
|
export type HttpMethod = "connect" | "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace";
|
|
4
4
|
export type Client<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
|
|
5
5
|
/**
|
|
@@ -71,9 +71,13 @@ export interface Config {
|
|
|
71
71
|
*/
|
|
72
72
|
responseValidator?: (data: unknown) => Promise<unknown>;
|
|
73
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* Arbitrary metadata passed through the `meta` request option.
|
|
76
|
+
*/
|
|
77
|
+
export interface ClientMeta {
|
|
78
|
+
}
|
|
74
79
|
type IsExactlyNeverOrNeverUndefined<T> = [T] extends [never] ? true : [T] extends [never | undefined] ? [undefined] extends [T] ? false : true : false;
|
|
75
80
|
export type OmitNever<T extends Record<string, unknown>> = {
|
|
76
81
|
[K in keyof T as IsExactlyNeverOrNeverUndefined<T[K]> extends true ? never : K]: T[K];
|
|
77
82
|
};
|
|
78
83
|
export {};
|
|
79
|
-
//# sourceMappingURL=types.gen.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BodySerializer, QuerySerializer } from "./bodySerializer.gen";
|
|
1
|
+
import type { BodySerializer, QuerySerializer } from "./bodySerializer.gen.js";
|
|
2
2
|
export interface PathSerializer {
|
|
3
3
|
path: Record<string, unknown>;
|
|
4
4
|
url: string;
|
|
@@ -17,4 +17,3 @@ export declare function getValidRequestBody(options: {
|
|
|
17
17
|
bodySerializer?: BodySerializer | null;
|
|
18
18
|
serializedBody?: unknown;
|
|
19
19
|
}): unknown;
|
|
20
|
-
//# sourceMappingURL=utils.gen.d.ts.map
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export { appsCreate, appsDelete, appsDeploy, appsGet, appsList, appsUpdate, cliAuthApprove, cliAuthDeny, cliAuthPoll, cliAuthStart, cliAuthVerifyToken, deploymentsCreate, deploymentsGet, deploymentsList, deploymentsPublish, type Options, } from "./sdk.gen";
|
|
2
|
-
export type { AppsCreateData, AppsCreateResponse, AppsCreateResponses, AppsDeleteData, AppsDeleteResponse, AppsDeleteResponses, AppsDeployData, AppsDeployResponse, AppsDeployResponses, AppsGetData, AppsGetResponse, AppsGetResponses, AppsListData, AppsListResponse, AppsListResponses, AppsUpdateData, AppsUpdateResponse, AppsUpdateResponses, CliAuthApproveData, CliAuthApproveResponse, CliAuthApproveResponses, CliAuthDenyData, CliAuthDenyResponse, CliAuthDenyResponses, CliAuthPollData, CliAuthPollResponse, CliAuthPollResponses, CliAuthStartData, CliAuthStartResponse, CliAuthStartResponses, CliAuthVerifyTokenData, CliAuthVerifyTokenResponse, CliAuthVerifyTokenResponses, ClientOptions, DeploymentsCreateData, DeploymentsCreateResponse, DeploymentsCreateResponses, DeploymentsGetData, DeploymentsGetResponse, DeploymentsGetResponses, DeploymentsListData, DeploymentsListResponse, DeploymentsListResponses, DeploymentsPublishData, DeploymentsPublishResponse, DeploymentsPublishResponses, } from "./types.gen";
|
|
3
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export { appAgentChat, appsCreate, appsDelete, appsDeploy, appsGet, appsList, appsRuntimeSession, appsUpdate, cliAuthApprove, cliAuthDeny, cliAuthPoll, cliAuthStart, cliAuthVerifyToken, deploymentsCreate, deploymentsGet, deploymentsList, deploymentsPublish, deploymentsRuntime, type Options, previewAccept, previewAccepted, previewInvitation, previewStart, previewStop, } from "./sdk.gen.js";
|
|
2
|
+
export type { AppAgentChatData, AppAgentChatResponse, AppAgentChatResponses, AppsCreateData, AppsCreateResponse, AppsCreateResponses, AppsDeleteData, AppsDeleteResponse, AppsDeleteResponses, AppsDeployData, AppsDeployResponse, AppsDeployResponses, AppsGetData, AppsGetResponse, AppsGetResponses, AppsListData, AppsListResponse, AppsListResponses, AppsRuntimeSessionData, AppsRuntimeSessionResponse, AppsRuntimeSessionResponses, AppsUpdateData, AppsUpdateResponse, AppsUpdateResponses, CliAuthApproveData, CliAuthApproveResponse, CliAuthApproveResponses, CliAuthDenyData, CliAuthDenyResponse, CliAuthDenyResponses, CliAuthPollData, CliAuthPollResponse, CliAuthPollResponses, CliAuthStartData, CliAuthStartResponse, CliAuthStartResponses, CliAuthVerifyTokenData, CliAuthVerifyTokenResponse, CliAuthVerifyTokenResponses, ClientOptions, DeploymentsCreateData, DeploymentsCreateResponse, DeploymentsCreateResponses, DeploymentsGetData, DeploymentsGetResponse, DeploymentsGetResponses, DeploymentsListData, DeploymentsListResponse, DeploymentsListResponses, DeploymentsPublishData, DeploymentsPublishResponse, DeploymentsPublishResponses, DeploymentsRuntimeData, DeploymentsRuntimeResponse, DeploymentsRuntimeResponses, PreviewAcceptData, PreviewAcceptedData, PreviewAcceptedResponse, PreviewAcceptedResponses, PreviewAcceptResponse, PreviewAcceptResponses, PreviewInvitationData, PreviewInvitationResponse, PreviewInvitationResponses, PreviewStartData, PreviewStartResponse, PreviewStartResponses, PreviewStopData, PreviewStopResponse, PreviewStopResponses, Schema0, } from "./types.gen.js";
|
package/dist/client/index.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import "../chunk-5X7JZMEF.js";
|
|
2
2
|
import {
|
|
3
|
+
appAgentChat,
|
|
3
4
|
appsCreate,
|
|
4
5
|
appsDelete,
|
|
5
6
|
appsDeploy,
|
|
6
7
|
appsGet,
|
|
7
8
|
appsList,
|
|
9
|
+
appsRuntimeSession,
|
|
8
10
|
appsUpdate,
|
|
9
11
|
cliAuthApprove,
|
|
10
12
|
cliAuthDeny,
|
|
@@ -14,25 +16,33 @@ import {
|
|
|
14
16
|
deploymentsCreate,
|
|
15
17
|
deploymentsGet,
|
|
16
18
|
deploymentsList,
|
|
17
|
-
deploymentsPublish
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
deploymentsPublish,
|
|
20
|
+
deploymentsRuntime,
|
|
21
|
+
previewAccept,
|
|
22
|
+
previewAccepted,
|
|
23
|
+
previewInvitation,
|
|
24
|
+
previewStart,
|
|
25
|
+
previewStop
|
|
26
|
+
} from "../chunk-KF2MA65O.js";
|
|
27
|
+
import "../chunk-P5HWCKOQ.js";
|
|
20
28
|
import "../chunk-X5TBL4RL.js";
|
|
21
|
-
import "../chunk-VS3R5QGP.js";
|
|
22
29
|
import "../chunk-RRYF7FTJ.js";
|
|
23
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-3CR3KAER.js";
|
|
31
|
+
import "../chunk-HXX7UM4A.js";
|
|
24
32
|
import "../chunk-MG3GT4SQ.js";
|
|
25
33
|
import "../chunk-KP5YYTW6.js";
|
|
26
34
|
import "../chunk-TZPDFAYB.js";
|
|
27
35
|
import "../chunk-ZLGFMDTV.js";
|
|
36
|
+
import "../chunk-VUBA7FI4.js";
|
|
28
37
|
import "../chunk-JETBOCXO.js";
|
|
29
|
-
import "../chunk-TWOK2M2L.js";
|
|
30
38
|
export {
|
|
39
|
+
appAgentChat,
|
|
31
40
|
appsCreate,
|
|
32
41
|
appsDelete,
|
|
33
42
|
appsDeploy,
|
|
34
43
|
appsGet,
|
|
35
44
|
appsList,
|
|
45
|
+
appsRuntimeSession,
|
|
36
46
|
appsUpdate,
|
|
37
47
|
cliAuthApprove,
|
|
38
48
|
cliAuthDeny,
|
|
@@ -42,5 +52,11 @@ export {
|
|
|
42
52
|
deploymentsCreate,
|
|
43
53
|
deploymentsGet,
|
|
44
54
|
deploymentsList,
|
|
45
|
-
deploymentsPublish
|
|
55
|
+
deploymentsPublish,
|
|
56
|
+
deploymentsRuntime,
|
|
57
|
+
previewAccept,
|
|
58
|
+
previewAccepted,
|
|
59
|
+
previewInvitation,
|
|
60
|
+
previewStart,
|
|
61
|
+
previewStop
|
|
46
62
|
};
|
package/dist/client/sdk.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Client, Options as Options2, TDataShape } from "./client";
|
|
2
|
-
import type { AppsCreateData, AppsCreateResponses, AppsDeleteData, AppsDeleteResponses, AppsDeployData, AppsDeployResponses, AppsGetData, AppsGetResponses, AppsListData, AppsListResponses, AppsUpdateData, AppsUpdateResponses, CliAuthApproveData, CliAuthApproveResponses, CliAuthDenyData, CliAuthDenyResponses, CliAuthPollData, CliAuthPollResponses, CliAuthStartData, CliAuthStartResponses, CliAuthVerifyTokenData, CliAuthVerifyTokenResponses, DeploymentsCreateData, DeploymentsCreateResponses, DeploymentsGetData, DeploymentsGetResponses, DeploymentsListData, DeploymentsListResponses, DeploymentsPublishData, DeploymentsPublishResponses } from "./types.gen";
|
|
1
|
+
import type { Client, ClientMeta, Options as Options2, RequestResult, ServerSentEventsResult, TDataShape } from "./client/index.js";
|
|
2
|
+
import type { AppAgentChatData, AppAgentChatResponse, AppAgentChatResponses, AppsCreateData, AppsCreateResponses, AppsDeleteData, AppsDeleteResponses, AppsDeployData, AppsDeployResponses, AppsGetData, AppsGetResponses, AppsListData, AppsListResponses, AppsRuntimeSessionData, AppsRuntimeSessionResponses, AppsUpdateData, AppsUpdateResponses, CliAuthApproveData, CliAuthApproveResponses, CliAuthDenyData, CliAuthDenyResponses, CliAuthPollData, CliAuthPollResponses, CliAuthStartData, CliAuthStartResponses, CliAuthVerifyTokenData, CliAuthVerifyTokenResponses, DeploymentsCreateData, DeploymentsCreateResponses, DeploymentsGetData, DeploymentsGetResponses, DeploymentsListData, DeploymentsListResponses, DeploymentsPublishData, DeploymentsPublishResponses, DeploymentsRuntimeData, DeploymentsRuntimeResponses, PreviewAcceptData, PreviewAcceptedData, PreviewAcceptedResponses, PreviewAcceptResponses, PreviewInvitationData, PreviewInvitationResponses, PreviewStartData, PreviewStartResponses, PreviewStopData, PreviewStopResponses } from "./types.gen.js";
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -11,21 +11,28 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
|
|
|
11
11
|
* You can pass arbitrary values through the `meta` object. This can be
|
|
12
12
|
* used to access values that aren't defined as part of the SDK function.
|
|
13
13
|
*/
|
|
14
|
-
meta?: Record<string, unknown
|
|
14
|
+
meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
|
|
15
15
|
};
|
|
16
|
-
export declare const
|
|
17
|
-
export declare const
|
|
18
|
-
export declare const
|
|
19
|
-
export declare const appsGet: <ThrowOnError extends boolean = false>(options: Options<AppsGetData, ThrowOnError>) =>
|
|
20
|
-
export declare const
|
|
21
|
-
export declare const
|
|
22
|
-
export declare const
|
|
23
|
-
export declare const
|
|
24
|
-
export declare const
|
|
25
|
-
export declare const
|
|
26
|
-
export declare const
|
|
27
|
-
export declare const
|
|
28
|
-
export declare const
|
|
29
|
-
export declare const
|
|
30
|
-
export declare const
|
|
31
|
-
|
|
16
|
+
export declare const appAgentChat: <ThrowOnError extends boolean = false>(options: Options<AppAgentChatData, ThrowOnError, AppAgentChatResponse>) => Promise<ServerSentEventsResult<AppAgentChatResponses>>;
|
|
17
|
+
export declare const appsRuntimeSession: <ThrowOnError extends boolean = false>(options: Options<AppsRuntimeSessionData, ThrowOnError>) => RequestResult<AppsRuntimeSessionResponses, unknown, ThrowOnError>;
|
|
18
|
+
export declare const appsList: <ThrowOnError extends boolean = false>(options: Options<AppsListData, ThrowOnError>) => RequestResult<AppsListResponses, unknown, ThrowOnError>;
|
|
19
|
+
export declare const appsGet: <ThrowOnError extends boolean = false>(options: Options<AppsGetData, ThrowOnError>) => RequestResult<AppsGetResponses, unknown, ThrowOnError>;
|
|
20
|
+
export declare const appsCreate: <ThrowOnError extends boolean = false>(options: Options<AppsCreateData, ThrowOnError>) => RequestResult<AppsCreateResponses, unknown, ThrowOnError>;
|
|
21
|
+
export declare const appsDelete: <ThrowOnError extends boolean = false>(options: Options<AppsDeleteData, ThrowOnError>) => RequestResult<AppsDeleteResponses, unknown, ThrowOnError>;
|
|
22
|
+
export declare const appsUpdate: <ThrowOnError extends boolean = false>(options: Options<AppsUpdateData, ThrowOnError>) => RequestResult<AppsUpdateResponses, unknown, ThrowOnError>;
|
|
23
|
+
export declare const appsDeploy: <ThrowOnError extends boolean = false>(options: Options<AppsDeployData, ThrowOnError>) => RequestResult<AppsDeployResponses, unknown, ThrowOnError>;
|
|
24
|
+
export declare const cliAuthApprove: <ThrowOnError extends boolean = false>(options: Options<CliAuthApproveData, ThrowOnError>) => RequestResult<CliAuthApproveResponses, unknown, ThrowOnError>;
|
|
25
|
+
export declare const cliAuthDeny: <ThrowOnError extends boolean = false>(options: Options<CliAuthDenyData, ThrowOnError>) => RequestResult<CliAuthDenyResponses, unknown, ThrowOnError>;
|
|
26
|
+
export declare const cliAuthPoll: <ThrowOnError extends boolean = false>(options: Options<CliAuthPollData, ThrowOnError>) => RequestResult<CliAuthPollResponses, unknown, ThrowOnError>;
|
|
27
|
+
export declare const cliAuthStart: <ThrowOnError extends boolean = false>(options: Options<CliAuthStartData, ThrowOnError>) => RequestResult<CliAuthStartResponses, unknown, ThrowOnError>;
|
|
28
|
+
export declare const cliAuthVerifyToken: <ThrowOnError extends boolean = false>(options: Options<CliAuthVerifyTokenData, ThrowOnError>) => RequestResult<CliAuthVerifyTokenResponses, unknown, ThrowOnError>;
|
|
29
|
+
export declare const deploymentsList: <ThrowOnError extends boolean = false>(options: Options<DeploymentsListData, ThrowOnError>) => RequestResult<DeploymentsListResponses, unknown, ThrowOnError>;
|
|
30
|
+
export declare const deploymentsGet: <ThrowOnError extends boolean = false>(options: Options<DeploymentsGetData, ThrowOnError>) => RequestResult<DeploymentsGetResponses, unknown, ThrowOnError>;
|
|
31
|
+
export declare const deploymentsCreate: <ThrowOnError extends boolean = false>(options: Options<DeploymentsCreateData, ThrowOnError>) => RequestResult<DeploymentsCreateResponses, unknown, ThrowOnError>;
|
|
32
|
+
export declare const deploymentsPublish: <ThrowOnError extends boolean = false>(options: Options<DeploymentsPublishData, ThrowOnError>) => RequestResult<DeploymentsPublishResponses, unknown, ThrowOnError>;
|
|
33
|
+
export declare const deploymentsRuntime: <ThrowOnError extends boolean = false>(options: Options<DeploymentsRuntimeData, ThrowOnError>) => RequestResult<DeploymentsRuntimeResponses, unknown, ThrowOnError>;
|
|
34
|
+
export declare const previewStart: <ThrowOnError extends boolean = false>(options: Options<PreviewStartData, ThrowOnError>) => RequestResult<PreviewStartResponses, unknown, ThrowOnError>;
|
|
35
|
+
export declare const previewStop: <ThrowOnError extends boolean = false>(options: Options<PreviewStopData, ThrowOnError>) => RequestResult<PreviewStopResponses, unknown, ThrowOnError>;
|
|
36
|
+
export declare const previewInvitation: <ThrowOnError extends boolean = false>(options: Options<PreviewInvitationData, ThrowOnError>) => RequestResult<PreviewInvitationResponses, unknown, ThrowOnError>;
|
|
37
|
+
export declare const previewAccept: <ThrowOnError extends boolean = false>(options: Options<PreviewAcceptData, ThrowOnError>) => RequestResult<PreviewAcceptResponses, unknown, ThrowOnError>;
|
|
38
|
+
export declare const previewAccepted: <ThrowOnError extends boolean = false>(options: Options<PreviewAcceptedData, ThrowOnError>) => RequestResult<PreviewAcceptedResponses, unknown, ThrowOnError>;
|
package/dist/client/sdk.gen.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
+
appAgentChat,
|
|
2
3
|
appsCreate,
|
|
3
4
|
appsDelete,
|
|
4
5
|
appsDeploy,
|
|
5
6
|
appsGet,
|
|
6
7
|
appsList,
|
|
8
|
+
appsRuntimeSession,
|
|
7
9
|
appsUpdate,
|
|
8
10
|
cliAuthApprove,
|
|
9
11
|
cliAuthDeny,
|
|
@@ -13,25 +15,33 @@ import {
|
|
|
13
15
|
deploymentsCreate,
|
|
14
16
|
deploymentsGet,
|
|
15
17
|
deploymentsList,
|
|
16
|
-
deploymentsPublish
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
deploymentsPublish,
|
|
19
|
+
deploymentsRuntime,
|
|
20
|
+
previewAccept,
|
|
21
|
+
previewAccepted,
|
|
22
|
+
previewInvitation,
|
|
23
|
+
previewStart,
|
|
24
|
+
previewStop
|
|
25
|
+
} from "../chunk-KF2MA65O.js";
|
|
26
|
+
import "../chunk-P5HWCKOQ.js";
|
|
19
27
|
import "../chunk-X5TBL4RL.js";
|
|
20
|
-
import "../chunk-VS3R5QGP.js";
|
|
21
28
|
import "../chunk-RRYF7FTJ.js";
|
|
22
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-3CR3KAER.js";
|
|
30
|
+
import "../chunk-HXX7UM4A.js";
|
|
23
31
|
import "../chunk-MG3GT4SQ.js";
|
|
24
32
|
import "../chunk-KP5YYTW6.js";
|
|
25
33
|
import "../chunk-TZPDFAYB.js";
|
|
26
34
|
import "../chunk-ZLGFMDTV.js";
|
|
35
|
+
import "../chunk-VUBA7FI4.js";
|
|
27
36
|
import "../chunk-JETBOCXO.js";
|
|
28
|
-
import "../chunk-TWOK2M2L.js";
|
|
29
37
|
export {
|
|
38
|
+
appAgentChat,
|
|
30
39
|
appsCreate,
|
|
31
40
|
appsDelete,
|
|
32
41
|
appsDeploy,
|
|
33
42
|
appsGet,
|
|
34
43
|
appsList,
|
|
44
|
+
appsRuntimeSession,
|
|
35
45
|
appsUpdate,
|
|
36
46
|
cliAuthApprove,
|
|
37
47
|
cliAuthDeny,
|
|
@@ -41,5 +51,11 @@ export {
|
|
|
41
51
|
deploymentsCreate,
|
|
42
52
|
deploymentsGet,
|
|
43
53
|
deploymentsList,
|
|
44
|
-
deploymentsPublish
|
|
54
|
+
deploymentsPublish,
|
|
55
|
+
deploymentsRuntime,
|
|
56
|
+
previewAccept,
|
|
57
|
+
previewAccepted,
|
|
58
|
+
previewInvitation,
|
|
59
|
+
previewStart,
|
|
60
|
+
previewStop
|
|
45
61
|
};
|