@layervai/qurl 0.2.0 → 0.3.1
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 +157 -20
- package/dist/cjs/client.d.ts +164 -4
- package/dist/cjs/client.js +494 -8
- package/dist/cjs/errors.d.ts +4 -0
- package/dist/cjs/errors.js +5 -1
- package/dist/cjs/index.d.ts +3 -3
- package/dist/cjs/index.js +4 -1
- package/dist/cjs/types.d.ts +93 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/client.d.ts +164 -4
- package/dist/esm/client.d.ts.map +1 -1
- package/dist/esm/client.js +493 -8
- package/dist/esm/client.js.map +1 -1
- package/dist/esm/errors.d.ts +4 -0
- package/dist/esm/errors.d.ts.map +1 -1
- package/dist/esm/errors.js +4 -0
- package/dist/esm/errors.js.map +1 -1
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types.d.ts +93 -1
- package/dist/esm/types.d.ts.map +1 -1
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
package/dist/cjs/types.d.ts
CHANGED
|
@@ -229,6 +229,89 @@ export interface MintOutput {
|
|
|
229
229
|
expires_at?: string;
|
|
230
230
|
type?: ResourceType;
|
|
231
231
|
}
|
|
232
|
+
/** Options for `QURLClient.protectUrl`. */
|
|
233
|
+
export interface ProtectUrlOptions {
|
|
234
|
+
/** Optional resource-level metadata. Max 500 chars. */
|
|
235
|
+
description?: string;
|
|
236
|
+
/** Optional resource-level tags. Max 10 items. */
|
|
237
|
+
tags?: string[];
|
|
238
|
+
/** Custom domain already verified in LayerV. */
|
|
239
|
+
customDomain?: string;
|
|
240
|
+
/** Owner-scoped handle for the resource. */
|
|
241
|
+
alias?: string;
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Options for minting a portal (mirrors qurl-go's `PortalOption` set).
|
|
245
|
+
*
|
|
246
|
+
* Duration options accept either a duration string (`"5m"`, `"24h"`) that is
|
|
247
|
+
* passed through for the server to validate, or a number of milliseconds that
|
|
248
|
+
* gets qurl-go's client-side guardrails: whole seconds only, at least one
|
|
249
|
+
* minute for `validFor` and at least one second for `sessionDuration`.
|
|
250
|
+
* Millisecond values are serialized to the API's h/m/s duration grammar with
|
|
251
|
+
* hours as the largest unit.
|
|
252
|
+
*/
|
|
253
|
+
export interface CreatePortalOptions {
|
|
254
|
+
/**
|
|
255
|
+
* How long the qURL link stays valid. Omit to use the API default
|
|
256
|
+
* lifetime; prefer short lifetimes such as `"5m"`. The LayerV API remains
|
|
257
|
+
* the source of truth for account limits — there is intentionally no
|
|
258
|
+
* SDK-side maximum.
|
|
259
|
+
*/
|
|
260
|
+
validFor?: string | number;
|
|
261
|
+
/** Human-readable label for the link. Max 500 chars, must not be blank. */
|
|
262
|
+
label?: string;
|
|
263
|
+
/** If `true`, the link expires after its first successful use. */
|
|
264
|
+
oneTimeUse?: boolean;
|
|
265
|
+
/**
|
|
266
|
+
* Concurrent-session limit. `0` is sent explicitly and means unlimited;
|
|
267
|
+
* omit to keep the server default.
|
|
268
|
+
*/
|
|
269
|
+
maxSessions?: number;
|
|
270
|
+
/**
|
|
271
|
+
* How long access lasts after someone opens the link. Omit to use the
|
|
272
|
+
* server default; zero is rejected rather than treated as default.
|
|
273
|
+
*/
|
|
274
|
+
sessionDuration?: string | number;
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* A qURL link minted for a protected resource.
|
|
278
|
+
*
|
|
279
|
+
* A portal is cryptographic, just-in-time permission for one actor to reach
|
|
280
|
+
* one private resource. `link` is the shareable qURL link; recipients open it
|
|
281
|
+
* directly and need no LayerV credentials.
|
|
282
|
+
*
|
|
283
|
+
* Mirrors `qurl.Portal` in qurl-go.
|
|
284
|
+
*/
|
|
285
|
+
export interface Portal {
|
|
286
|
+
/** Identifies the protected resource this link opens. */
|
|
287
|
+
resourceId: string;
|
|
288
|
+
/** The shareable qURL link. */
|
|
289
|
+
link: string;
|
|
290
|
+
/** The qURL-hosted site for this resource, when returned by the API. */
|
|
291
|
+
site?: string;
|
|
292
|
+
/** Link expiration time, when returned by the API. */
|
|
293
|
+
expiresAt?: Date;
|
|
294
|
+
/** Identifies the specific access token, when returned by the API. */
|
|
295
|
+
qurlId?: string;
|
|
296
|
+
/** Token label, when returned by the API. */
|
|
297
|
+
label?: string;
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* Result of a successful `enterPortal`: the reachable resource.
|
|
301
|
+
*
|
|
302
|
+
* Carries the reachable resource URL and the access lifetime reported by
|
|
303
|
+
* qURL (`openSeconds` is `0` when the API does not report one). `resourceId`
|
|
304
|
+
* is populated by this SDK's API-backed opener; the field does not exist on
|
|
305
|
+
* qurl-go's offline `ResourceHandle`.
|
|
306
|
+
*/
|
|
307
|
+
export interface ResourceHandle {
|
|
308
|
+
/** The reachable resource location. */
|
|
309
|
+
resourceUrl: string;
|
|
310
|
+
/** How long access stays open in seconds, as reported by qURL. */
|
|
311
|
+
openSeconds: number;
|
|
312
|
+
/** The LayerV resource id behind the portal, when reported. */
|
|
313
|
+
resourceId?: string;
|
|
314
|
+
}
|
|
232
315
|
/** Input for headless qURL resolution. */
|
|
233
316
|
export interface ResolveInput {
|
|
234
317
|
access_token: string;
|
|
@@ -371,7 +454,16 @@ export interface ResourceListOutput extends PaginatedOutput {
|
|
|
371
454
|
resources: Resource[];
|
|
372
455
|
}
|
|
373
456
|
/** Input for minting a qURL against an existing resource. */
|
|
374
|
-
export type CreateQurlForResourceInput = Omit<CreateInput, "target_url" | "custom_domain" | "type"
|
|
457
|
+
export type CreateQurlForResourceInput = Omit<CreateInput, "target_url" | "custom_domain" | "type"> & {
|
|
458
|
+
/**
|
|
459
|
+
* Path this resource qURL resolves to (e.g. "/api/detect").
|
|
460
|
+
*
|
|
461
|
+
* Creation-only and valid only for tunnel resources. The SDK rejects empty
|
|
462
|
+
* or overlong values before sending a request; server validation rejects
|
|
463
|
+
* invalid path grammar, including paths missing a leading "/".
|
|
464
|
+
*/
|
|
465
|
+
target_path?: string;
|
|
466
|
+
};
|
|
375
467
|
type UpdateResourceQurlBaseInput = {
|
|
376
468
|
label?: string;
|
|
377
469
|
access_policy?: AccessPolicy;
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.3.1";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AccessCodeListOutput, AgentBootstrapInput, AgentBootstrapOutput, ApiKey, ApiKeyListOutput, BillingInvoiceListOutput, BatchCreateInput, BatchCreateOutput, ClientOptions, ConnectorInstallation, ConnectorInstallationListOutput, CreateAccessCodeInput, CreateAccessCodeOutput, CreateApiKeyInput, CreateApiKeyOutput, CreateBillingCheckoutInput, CreateInput, CreateOutput, CreateQurlForResourceInput, CreateResourceInput, CreateWebhookInput, Customer, CheckoutSession, Domain, DomainListOutput, DomainVerifyResult, ExtendInput, Invoice, ListInput, ListOutput, ListApiKeysInput, ListBillingInvoicesInput, ListConnectorInstallationsInput, ListDomainsInput, ListWebhookDeliveriesInput, ListWebhooksInput, MintInput, MintOutput, PortalSession, QURL, QurlSummary, Quota, RedeemAccessCodeInput, RedeemAccessCodeOutput, RegisterDomainInput, Resource, ResourceDetail, ResourceListInput, ResourceListOutput, RequestOptions, ResolveInput, ResolveOutput, SessionListOutput, SessionTerminateOutput, UpdateApiKeyInput, UpdateCustomerInput, UpdateInput, UpdateResourceInput, UpdateResourceQurlInput, UpdateWebhookInput, UsageCurrentPeriod, UsageDaily, Webhook, WebhookDelivery, WebhookDeliveryListOutput, WebhookEventTypeInfo, WebhookListOutput, WebhookWithSecret } from "./types.js";
|
|
1
|
+
import type { AccessCodeListOutput, AgentBootstrapInput, AgentBootstrapOutput, ApiKey, ApiKeyListOutput, BillingInvoiceListOutput, BatchCreateInput, BatchCreateOutput, ClientOptions, ConnectorInstallation, ConnectorInstallationListOutput, CreateAccessCodeInput, CreateAccessCodeOutput, CreateApiKeyInput, CreateApiKeyOutput, CreateBillingCheckoutInput, CreateInput, CreateOutput, CreatePortalOptions, CreateQurlForResourceInput, CreateResourceInput, CreateWebhookInput, Customer, CheckoutSession, Domain, DomainListOutput, DomainVerifyResult, ExtendInput, Invoice, ListInput, ListOutput, ListApiKeysInput, ListBillingInvoicesInput, ListConnectorInstallationsInput, ListDomainsInput, ListWebhookDeliveriesInput, ListWebhooksInput, MintInput, MintOutput, Portal, PortalSession, ProtectUrlOptions, QURL, QurlSummary, Quota, RedeemAccessCodeInput, RedeemAccessCodeOutput, RegisterDomainInput, Resource, ResourceDetail, ResourceHandle, ResourceListInput, ResourceListOutput, RequestOptions, ResolveInput, ResolveOutput, SessionListOutput, SessionTerminateOutput, UpdateApiKeyInput, UpdateCustomerInput, UpdateInput, UpdateResourceInput, UpdateResourceQurlInput, UpdateWebhookInput, UsageCurrentPeriod, UsageDaily, Webhook, WebhookDelivery, WebhookDeliveryListOutput, WebhookEventTypeInfo, WebhookListOutput, WebhookWithSecret } from "./types.js";
|
|
2
2
|
/** qURL API client. */
|
|
3
3
|
export declare class QURLClient {
|
|
4
4
|
private readonly baseUrl;
|
|
@@ -49,7 +49,119 @@ export declare class QURLClient {
|
|
|
49
49
|
*/
|
|
50
50
|
private validateBatchCreateResponse;
|
|
51
51
|
private paginateAll;
|
|
52
|
-
/**
|
|
52
|
+
/**
|
|
53
|
+
* Protect a private URL — create or reuse its LayerV resource.
|
|
54
|
+
*
|
|
55
|
+
* The first step of the portal flow (qurl-go: `Client.ProtectURL`).
|
|
56
|
+
* Protect the URL once, then mint short-lived links for it with
|
|
57
|
+
* {@link ProtectedResource.createPortal}:
|
|
58
|
+
*
|
|
59
|
+
* ```ts
|
|
60
|
+
* const resource = await client.protectUrl("https://internal.example.com/dashboard");
|
|
61
|
+
* const portal = await resource.createPortal({ validFor: "5m" });
|
|
62
|
+
* share(portal.link);
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* Protecting the same target URL again returns the existing resource.
|
|
66
|
+
* Malformed URLs and URLs with embedded credentials (userinfo) are
|
|
67
|
+
* rejected before any request, mirroring qurl-go. REST-shaped equivalent:
|
|
68
|
+
* {@link createResource}.
|
|
69
|
+
*/
|
|
70
|
+
protectUrl(targetUrl: string, opts?: ProtectUrlOptions, requestOptions?: RequestOptions): Promise<ProtectedResource>;
|
|
71
|
+
/**
|
|
72
|
+
* Return a portal-minting handle for a stored resource id, without an API
|
|
73
|
+
* call.
|
|
74
|
+
*
|
|
75
|
+
* Use when you persisted a LayerV resource id and want to mint more
|
|
76
|
+
* portals for it (qurl-go: `Client.ResourceByID`):
|
|
77
|
+
*
|
|
78
|
+
* ```ts
|
|
79
|
+
* const resource = client.resourceById("r_demo1234567");
|
|
80
|
+
* const portal = await resource.createPortal({ validFor: "1h" });
|
|
81
|
+
* ```
|
|
82
|
+
*
|
|
83
|
+
* The handle carries no server metadata; use {@link getResource} when you
|
|
84
|
+
* need the full resource details.
|
|
85
|
+
*/
|
|
86
|
+
resourceById(id: string): ProtectedResource;
|
|
87
|
+
/**
|
|
88
|
+
* Return the resource qURL Connector created for `connectorId`.
|
|
89
|
+
*
|
|
90
|
+
* Use when qURL Connector already protects the service — do not call
|
|
91
|
+
* {@link protectUrl} again for the same service. The connector id is the
|
|
92
|
+
* resource slug LayerV stores for that connector; the LayerV API performs
|
|
93
|
+
* the slug lookup, and the SDK confirms the returned alias matches
|
|
94
|
+
* `connectorId` before binding the handle (qurl-go:
|
|
95
|
+
* `Client.ConnectorResource`).
|
|
96
|
+
*
|
|
97
|
+
* Throws {@link NotFoundError} (`status: 0`, `code: "resource_not_found"`)
|
|
98
|
+
* when no resource exists for the connector id, {@link QURLError}
|
|
99
|
+
* (`code: "ambiguous_resource"`) when the lookup returns more than one
|
|
100
|
+
* resource, and {@link ValidationError} (`code: "unexpected_response"`)
|
|
101
|
+
* when the returned resource's alias is missing or does not match.
|
|
102
|
+
*/
|
|
103
|
+
connectorResource(connectorId: string): Promise<ProtectedResource>;
|
|
104
|
+
/**
|
|
105
|
+
* Mint a short-lived qURL link (a portal) for a protected resource.
|
|
106
|
+
*
|
|
107
|
+
* A portal is cryptographic, just-in-time permission for one actor to
|
|
108
|
+
* reach one private resource. Recipients open `portal.link` directly and
|
|
109
|
+
* need no LayerV credentials. Prefer short lifetimes such as
|
|
110
|
+
* `{ validFor: "5m" }`. Accepts a {@link ProtectedResource} handle or a
|
|
111
|
+
* resource id (`r_` prefix). REST-shaped equivalents: {@link mintLink} /
|
|
112
|
+
* {@link createQurlForResource}.
|
|
113
|
+
*
|
|
114
|
+
* Duration options take a string (`"5m"`, `"24h"`; server-validated) or a
|
|
115
|
+
* number of milliseconds with qurl-go's client-side guardrails: whole
|
|
116
|
+
* seconds only, at least one minute for `validFor` and one second for
|
|
117
|
+
* `sessionDuration`. `maxSessions: 0` is sent explicitly and means
|
|
118
|
+
* unlimited; blank labels are rejected.
|
|
119
|
+
*/
|
|
120
|
+
createPortal(resource: ProtectedResource | string, opts?: CreatePortalOptions, requestOptions?: RequestOptions): Promise<Portal>;
|
|
121
|
+
/**
|
|
122
|
+
* Protect `targetUrl` and mint a portal in one API call.
|
|
123
|
+
*
|
|
124
|
+
* Convenience for one-off scripts (qurl-go: `Client.CreatePortalForURL`).
|
|
125
|
+
* The returned resource handle is reusable for minting more portals but
|
|
126
|
+
* carries only the resource id and the caller-supplied target URL; use
|
|
127
|
+
* {@link protectUrl} when you need the full server-populated resource
|
|
128
|
+
* metadata. Portal options match {@link createPortal}; `targetUrl` gets
|
|
129
|
+
* the same malformed-URL and embedded-credentials rejection as
|
|
130
|
+
* {@link protectUrl}. REST-shaped equivalent: {@link create}.
|
|
131
|
+
*/
|
|
132
|
+
createPortalForUrl(targetUrl: string, opts?: CreatePortalOptions, requestOptions?: RequestOptions): Promise<{
|
|
133
|
+
portal: Portal;
|
|
134
|
+
resource: ProtectedResource;
|
|
135
|
+
}>;
|
|
136
|
+
/**
|
|
137
|
+
* Open a qURL link programmatically and return the reachable resource.
|
|
138
|
+
*
|
|
139
|
+
* For services and agents that open received qURL links in code — human
|
|
140
|
+
* recipients just open the link. Accepts a full platform link
|
|
141
|
+
* (`https://qurl.link/#at_...`) or a bare access token. Triggers an NHP
|
|
142
|
+
* knock that grants network access for the caller's IP and returns a
|
|
143
|
+
* {@link ResourceHandle} with the reachable resource URL and access
|
|
144
|
+
* lifetime.
|
|
145
|
+
*
|
|
146
|
+
* Unlike qurl-go's `EnterPortal` (which verifies links locally and needs
|
|
147
|
+
* no LayerV credentials), this SDK opens links through the LayerV API:
|
|
148
|
+
* the client needs an API key with the `qurl:resolve` scope. REST-shaped
|
|
149
|
+
* equivalent: {@link resolve}.
|
|
150
|
+
*
|
|
151
|
+
* Throws {@link ValidationError} (`code: "client_validation"`) when no
|
|
152
|
+
* access token can be extracted from `qurlLink`, and
|
|
153
|
+
* (`code: "unexpected_response"`) when access is granted but the API
|
|
154
|
+
* reports no resource URL — it fails closed rather than returning an
|
|
155
|
+
* empty handle. Error messages never echo the link; qURL links are
|
|
156
|
+
* credentials.
|
|
157
|
+
*/
|
|
158
|
+
enterPortal(qurlLink: string, requestOptions?: RequestOptions): Promise<ResourceHandle>;
|
|
159
|
+
/**
|
|
160
|
+
* Create a new qURL.
|
|
161
|
+
*
|
|
162
|
+
* Portal-flow equivalent: {@link createPortalForUrl} (same endpoint,
|
|
163
|
+
* returns a {@link Portal} plus a reusable resource handle).
|
|
164
|
+
*/
|
|
53
165
|
create(input: CreateInput, options?: RequestOptions): Promise<CreateOutput>;
|
|
54
166
|
/**
|
|
55
167
|
* Batch create multiple qURLs (1-`MAX_BATCH_ITEMS` items).
|
|
@@ -171,6 +283,8 @@ export declare class QURLClient {
|
|
|
171
283
|
/**
|
|
172
284
|
* Mint a new access link for a qURL.
|
|
173
285
|
*
|
|
286
|
+
* Portal-flow equivalent: {@link createPortal}.
|
|
287
|
+
*
|
|
174
288
|
* Accepts either a resource ID (`r_` prefix) or a qURL display ID (`q_`
|
|
175
289
|
* prefix); the API resolves `q_` IDs to the parent resource automatically.
|
|
176
290
|
*
|
|
@@ -182,6 +296,9 @@ export declare class QURLClient {
|
|
|
182
296
|
/**
|
|
183
297
|
* Resolve a qURL access token (headless).
|
|
184
298
|
*
|
|
299
|
+
* Portal-flow equivalent: {@link enterPortal} (also accepts full qURL
|
|
300
|
+
* links and fails closed when no resource URL is returned).
|
|
301
|
+
*
|
|
185
302
|
* Triggers an NHP knock to grant network access for the caller's IP.
|
|
186
303
|
* Requires `qurl:resolve` scope on the API key.
|
|
187
304
|
*
|
|
@@ -201,7 +318,12 @@ export declare class QURLClient {
|
|
|
201
318
|
* iteration begins.
|
|
202
319
|
*/
|
|
203
320
|
listAllResources(input?: Omit<ResourceListInput, "cursor">): AsyncGenerator<Resource, void, undefined>;
|
|
204
|
-
/**
|
|
321
|
+
/**
|
|
322
|
+
* Create a resource directly.
|
|
323
|
+
*
|
|
324
|
+
* Portal-flow equivalent for URL resources: {@link protectUrl} (returns
|
|
325
|
+
* a portal-minting handle).
|
|
326
|
+
*/
|
|
205
327
|
createResource(input: CreateResourceInput, options?: RequestOptions): Promise<Resource>;
|
|
206
328
|
/** Get one resource plus its bounded qURL preview. */
|
|
207
329
|
getResource(id: string): Promise<ResourceDetail>;
|
|
@@ -209,7 +331,11 @@ export declare class QURLClient {
|
|
|
209
331
|
updateResource(id: string, input: UpdateResourceInput, options?: RequestOptions): Promise<Resource>;
|
|
210
332
|
/** Revoke a resource and all of its qURLs. */
|
|
211
333
|
deleteResource(id: string): Promise<void>;
|
|
212
|
-
/**
|
|
334
|
+
/**
|
|
335
|
+
* Mint a qURL against an existing resource.
|
|
336
|
+
*
|
|
337
|
+
* Portal-flow equivalent: {@link createPortal} (same endpoint).
|
|
338
|
+
*/
|
|
213
339
|
createQurlForResource(id: string, input?: CreateQurlForResourceInput, options?: RequestOptions): Promise<CreateOutput>;
|
|
214
340
|
/** Revoke a specific qURL token on a resource. */
|
|
215
341
|
revokeResourceQurl(id: string, qurlId: string): Promise<void>;
|
|
@@ -370,4 +496,38 @@ export declare class QURLClient {
|
|
|
370
496
|
private retryDelay;
|
|
371
497
|
private classifyFetchError;
|
|
372
498
|
}
|
|
499
|
+
/**
|
|
500
|
+
* A LayerV-protected resource, bound to the client that produced it.
|
|
501
|
+
*
|
|
502
|
+
* Obtained from {@link QURLClient.protectUrl},
|
|
503
|
+
* {@link QURLClient.connectorResource}, or {@link QURLClient.resourceById} —
|
|
504
|
+
* not constructed directly. Mint short-lived access links for the resource
|
|
505
|
+
* with {@link createPortal} (qurl-go: `qurl.Resource`).
|
|
506
|
+
*/
|
|
507
|
+
export declare class ProtectedResource {
|
|
508
|
+
#private;
|
|
509
|
+
/** The LayerV resource id (`r_` prefix). */
|
|
510
|
+
readonly id: string;
|
|
511
|
+
/** The private URL protected by this resource, when known. */
|
|
512
|
+
readonly targetUrl?: string;
|
|
513
|
+
/**
|
|
514
|
+
* Full server-populated {@link Resource} metadata when the handle came
|
|
515
|
+
* from an API response; `undefined` for {@link QURLClient.resourceById}
|
|
516
|
+
* handles and for the one-call {@link QURLClient.createPortalForUrl} path.
|
|
517
|
+
*/
|
|
518
|
+
readonly details?: Resource;
|
|
519
|
+
constructor(client: QURLClient, id: string, targetUrl?: string, details?: Resource);
|
|
520
|
+
/**
|
|
521
|
+
* Whether `resource` was produced by `client`. A static because the
|
|
522
|
+
* binding lives in a private field that only this class can read; used
|
|
523
|
+
* by {@link QURLClient.createPortal} to refuse handles bound to a
|
|
524
|
+
* different client.
|
|
525
|
+
*/
|
|
526
|
+
static isBoundTo(resource: ProtectedResource, client: QURLClient): boolean;
|
|
527
|
+
/**
|
|
528
|
+
* Mint a short-lived qURL link (a portal) for this resource. See
|
|
529
|
+
* {@link QURLClient.createPortal} for the option reference.
|
|
530
|
+
*/
|
|
531
|
+
createPortal(opts?: CreatePortalOptions, requestOptions?: RequestOptions): Promise<Portal>;
|
|
532
|
+
}
|
|
373
533
|
//# sourceMappingURL=client.d.ts.map
|
package/dist/esm/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAIV,oBAAoB,EAEpB,mBAAmB,EACnB,oBAAoB,EACpB,MAAM,EACN,gBAAgB,EAChB,wBAAwB,EACxB,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,qBAAqB,EACrB,+BAA+B,EAC/B,qBAAqB,EACrB,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,EAClB,0BAA0B,EAC1B,WAAW,EACX,YAAY,EACZ,mBAAmB,EACnB,0BAA0B,EAC1B,mBAAmB,EACnB,kBAAkB,EAClB,QAAQ,EACR,eAAe,EACf,MAAM,EACN,gBAAgB,EAChB,kBAAkB,EAClB,WAAW,EACX,OAAO,EACP,SAAS,EACT,UAAU,EACV,gBAAgB,EAChB,wBAAwB,EACxB,+BAA+B,EAC/B,gBAAgB,EAChB,0BAA0B,EAC1B,iBAAiB,EACjB,SAAS,EACT,UAAU,EACV,MAAM,EACN,aAAa,EACb,iBAAiB,EACjB,IAAI,EAEJ,WAAW,EACX,KAAK,EACL,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,QAAQ,EACR,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,YAAY,EACZ,aAAa,EAEb,iBAAiB,EACjB,sBAAsB,EACtB,iBAAiB,EACjB,mBAAmB,EACnB,WAAW,EACX,mBAAmB,EACnB,uBAAuB,EACvB,kBAAkB,EAClB,kBAAkB,EAClB,UAAU,EACV,OAAO,EACP,e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