@relyio/sdk 0.4.0 → 0.5.0
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/CHANGELOG.md +23 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/{chunk-43VPZT2G.js → chunk-5AZUUV5B.js} +68 -18
- package/dist/{chunk-XS32U2UP.cjs → chunk-CIRT6TVT.cjs} +68 -18
- package/dist/client/index.cjs +3 -3
- package/dist/client/index.d.cts +3 -2
- package/dist/client/index.d.ts +3 -2
- package/dist/client/index.js +1 -1
- package/dist/{index-BvO6HDtY.d.cts → index-BozPz4n1.d.cts} +105 -2
- package/dist/{index-DFehx5sI.d.cts → index-C5mRBb6t.d.cts} +129 -0
- package/dist/{index-BzOFJJKS.d.ts → index-Dzo-upNS.d.ts} +105 -2
- package/dist/{index-FDak5ofk.d.ts → index-mXUx2H99.d.ts} +129 -0
- package/dist/index.cjs +57 -57
- package/dist/index.d.cts +24 -5
- package/dist/index.d.ts +24 -5
- package/dist/index.js +1 -1
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +3 -3
|
@@ -574,6 +574,26 @@ interface paths {
|
|
|
574
574
|
patch?: never;
|
|
575
575
|
trace?: never;
|
|
576
576
|
};
|
|
577
|
+
'/v1/project': {
|
|
578
|
+
parameters: {
|
|
579
|
+
query?: never;
|
|
580
|
+
header?: never;
|
|
581
|
+
path?: never;
|
|
582
|
+
cookie?: never;
|
|
583
|
+
};
|
|
584
|
+
/**
|
|
585
|
+
* Describe the key's project
|
|
586
|
+
* @description The organization, project, dataset and branch this key resolves to, each with its id and name, and `studioUrl` — the Studio root for the project, built from ids. `dataset` is the one this request selected (`X-RelyIO-Dataset`, or the key’s default), which is not always the project’s default: a Studio link should carry it as `?dataset=`. `studioUrl` is `null` when the service has no Dashboard address configured. Never cached.
|
|
587
|
+
*/
|
|
588
|
+
get: operations['getProject'];
|
|
589
|
+
put?: never;
|
|
590
|
+
post?: never;
|
|
591
|
+
delete?: never;
|
|
592
|
+
options?: never;
|
|
593
|
+
head?: never;
|
|
594
|
+
patch?: never;
|
|
595
|
+
trace?: never;
|
|
596
|
+
};
|
|
577
597
|
'/v1/query': {
|
|
578
598
|
parameters: {
|
|
579
599
|
query?: never;
|
|
@@ -863,6 +883,28 @@ interface components {
|
|
|
863
883
|
limit: number;
|
|
864
884
|
total: number;
|
|
865
885
|
};
|
|
886
|
+
/** @description The place this key resolves to, named, and the Studio root for its project. `id` and `name` are the project’s. */
|
|
887
|
+
Project: {
|
|
888
|
+
id: string;
|
|
889
|
+
name: string;
|
|
890
|
+
/** @description The organization that owns the project. */
|
|
891
|
+
organization: {
|
|
892
|
+
id: string;
|
|
893
|
+
name: string;
|
|
894
|
+
};
|
|
895
|
+
/** @description The dataset this request was answered from — the one `X-RelyIO-Dataset` selected, or the key’s default. */
|
|
896
|
+
dataset: {
|
|
897
|
+
id: string;
|
|
898
|
+
name: string;
|
|
899
|
+
};
|
|
900
|
+
/** @description The branch that dataset is assigned to. */
|
|
901
|
+
branch: {
|
|
902
|
+
id: string;
|
|
903
|
+
name: string;
|
|
904
|
+
};
|
|
905
|
+
/** @description `<dashboard>/o/<organization id>/<project id>/studio`, or null when the service has no Dashboard address configured. */
|
|
906
|
+
studioUrl: string | null;
|
|
907
|
+
};
|
|
866
908
|
RefusalAccessDenied: {
|
|
867
909
|
error: {
|
|
868
910
|
/** @enum {string} */
|
|
@@ -4227,6 +4269,92 @@ interface operations {
|
|
|
4227
4269
|
};
|
|
4228
4270
|
};
|
|
4229
4271
|
};
|
|
4272
|
+
getProject: {
|
|
4273
|
+
parameters: {
|
|
4274
|
+
query?: never;
|
|
4275
|
+
header?: never;
|
|
4276
|
+
path?: never;
|
|
4277
|
+
cookie?: never;
|
|
4278
|
+
};
|
|
4279
|
+
requestBody?: never;
|
|
4280
|
+
responses: {
|
|
4281
|
+
/** @description Success. */
|
|
4282
|
+
200: {
|
|
4283
|
+
headers: {
|
|
4284
|
+
'Cache-Control'?: string;
|
|
4285
|
+
[name: string]: unknown;
|
|
4286
|
+
};
|
|
4287
|
+
content: {
|
|
4288
|
+
'application/json': {
|
|
4289
|
+
data: components['schemas']['Project'];
|
|
4290
|
+
};
|
|
4291
|
+
};
|
|
4292
|
+
};
|
|
4293
|
+
/** @description REQUEST_INVALID */
|
|
4294
|
+
400: {
|
|
4295
|
+
headers: {
|
|
4296
|
+
[name: string]: unknown;
|
|
4297
|
+
};
|
|
4298
|
+
content: {
|
|
4299
|
+
'application/json': components['schemas']['RefusalRequestInvalid'];
|
|
4300
|
+
};
|
|
4301
|
+
};
|
|
4302
|
+
/** @description INVALID_API_KEY, MISSING_API_KEY */
|
|
4303
|
+
401: {
|
|
4304
|
+
headers: {
|
|
4305
|
+
[name: string]: unknown;
|
|
4306
|
+
};
|
|
4307
|
+
content: {
|
|
4308
|
+
'application/json': components['schemas']['RefusalInvalidApiKeyOrMissingApiKey'];
|
|
4309
|
+
};
|
|
4310
|
+
};
|
|
4311
|
+
/** @description ACCESS_DENIED, PLAN_FEATURE_UNAVAILABLE, USAGE_QUOTA_EXCEEDED */
|
|
4312
|
+
403: {
|
|
4313
|
+
headers: {
|
|
4314
|
+
[name: string]: unknown;
|
|
4315
|
+
};
|
|
4316
|
+
content: {
|
|
4317
|
+
'application/json': components['schemas']['RefusalAccessDeniedOrPlanFeatureUnavailableOrUsageQuotaExceeded'];
|
|
4318
|
+
};
|
|
4319
|
+
};
|
|
4320
|
+
/** @description RESOURCE_NOT_FOUND */
|
|
4321
|
+
404: {
|
|
4322
|
+
headers: {
|
|
4323
|
+
[name: string]: unknown;
|
|
4324
|
+
};
|
|
4325
|
+
content: {
|
|
4326
|
+
'application/json': components['schemas']['RefusalResourceNotFound'];
|
|
4327
|
+
};
|
|
4328
|
+
};
|
|
4329
|
+
/** @description RATE_LIMIT_EXCEEDED */
|
|
4330
|
+
429: {
|
|
4331
|
+
headers: {
|
|
4332
|
+
[name: string]: unknown;
|
|
4333
|
+
};
|
|
4334
|
+
content: {
|
|
4335
|
+
'application/json': components['schemas']['RefusalRateLimitExceeded'];
|
|
4336
|
+
};
|
|
4337
|
+
};
|
|
4338
|
+
/** @description INTERNAL_ERROR */
|
|
4339
|
+
500: {
|
|
4340
|
+
headers: {
|
|
4341
|
+
[name: string]: unknown;
|
|
4342
|
+
};
|
|
4343
|
+
content: {
|
|
4344
|
+
'application/json': components['schemas']['RefusalInternalError'];
|
|
4345
|
+
};
|
|
4346
|
+
};
|
|
4347
|
+
/** @description SERVICE_INDETERMINATE */
|
|
4348
|
+
503: {
|
|
4349
|
+
headers: {
|
|
4350
|
+
[name: string]: unknown;
|
|
4351
|
+
};
|
|
4352
|
+
content: {
|
|
4353
|
+
'application/json': components['schemas']['RefusalServiceIndeterminate'];
|
|
4354
|
+
};
|
|
4355
|
+
};
|
|
4356
|
+
};
|
|
4357
|
+
};
|
|
4230
4358
|
executeAdhocQuery: {
|
|
4231
4359
|
parameters: {
|
|
4232
4360
|
query?: never;
|
|
@@ -5831,6 +5959,7 @@ declare function matchRoute(url: string | URL, options?: MatchRouteOptions): Rou
|
|
|
5831
5959
|
/**
|
|
5832
5960
|
* Configuration types for the RelyIO SDK
|
|
5833
5961
|
*/
|
|
5962
|
+
|
|
5834
5963
|
interface RelyIOConfig {
|
|
5835
5964
|
/** API key for authentication */
|
|
5836
5965
|
apiKey: string;
|
|
@@ -1,6 +1,69 @@
|
|
|
1
|
-
import { J as MergedRelyIOConfig, A as ApiPath, a as ApiMethod, K as PathParamsOf, t as ApiResponse, W as Wire, s as RequestConfig, B as BaseContent, d as WhereClause, f as SortOptions, g as ContentQueryResult, Q as QueryOptions, C as CreateInput, U as UpdateInput, S as SDKError, x as BaseValidationError, w as ValidationViolation, N as components, O as paths, R as RelyIOConfig } from './index-
|
|
1
|
+
import { J as MergedRelyIOConfig, A as ApiPath, a as ApiMethod, K as PathParamsOf, t as ApiResponse, W as Wire, s as RequestConfig, B as BaseContent, d as WhereClause, f as SortOptions, g as ContentQueryResult, Q as QueryOptions, C as CreateInput, U as UpdateInput, S as SDKError, x as BaseValidationError, w as ValidationViolation, N as components, O as paths, R as RelyIOConfig } from './index-mXUx2H99.js';
|
|
2
2
|
import { a as SchemaDefinition, b as SchemaContentTypeNames, h as SchemaAssetTypeNames, M as InferAssetType, c as SchemaSingletonNames, t as InferSingleton, g as SchemaSettingsGroupNames, E as InferSettingsGroup, e as SchemaQueryNames, f as SchemaLocaleCodes } from './define-schema-DzYXk4HL.js';
|
|
3
3
|
import { J as InferContentType } from './define-content-type-CBfnTWSS.js';
|
|
4
|
+
import { DevUnreadableReason } from './dev-handshake/index.js';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Dev-mode detection for `relyio dev` sandboxes — the SDK's I/O shell over `../dev-handshake`.
|
|
8
|
+
*
|
|
9
|
+
* Every rule about the handshake — the path, the env names, the required fields, the deadline —
|
|
10
|
+
* lives in `@relyio/sdk/dev-handshake`, which `relyio dev` imports too. What is left here is the
|
|
11
|
+
* part that is genuinely the SDK's: reading env and walking the filesystem from the cwd, both of
|
|
12
|
+
* which have to happen without a static `node:*` import so the module stays browser-safe.
|
|
13
|
+
*
|
|
14
|
+
* Node access goes through `process.getBuiltinModule` (Node ≥ 20.16 / 22, and the platform targets
|
|
15
|
+
* Node 24), which is absent in browsers and edge runtimes — so the resolver is inert everywhere it
|
|
16
|
+
* should be, and a bundler never has to shim `fs`.
|
|
17
|
+
*
|
|
18
|
+
* **Order: env, then file.** The wrapped-child env is the primary carrier and wins. Before REL-647
|
|
19
|
+
* it won *unconditionally*, because it had no deadline to lose on; it now goes through the same
|
|
20
|
+
* rule the file does.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* What the handshake says about the sandbox, as the preview toolbar displays it
|
|
25
|
+
* (`sdk-surfaces-spec.md` decision 22). `TypedRelyIOClient.sandbox` returns it.
|
|
26
|
+
*
|
|
27
|
+
* **Plain data, on purpose.** In Next the toolbar is rendered from a server layout, and a client
|
|
28
|
+
* cannot cross the RSC boundary — while the browser cannot read the handshake at all, because this
|
|
29
|
+
* module is inert without `process.getBuiltinModule`. So the server-created client's `sandbox` is the
|
|
30
|
+
* prop the toolbar is handed, and it has to survive `JSON` unchanged: strings and `null`, dates as
|
|
31
|
+
* the ISO strings the handshake carried, no class instances.
|
|
32
|
+
*
|
|
33
|
+
* **No key.** The handshake also carries the sandbox's preview key; that is the client's credential,
|
|
34
|
+
* held beside this value in {@link DevResolution} and never inside it, so handing the state around
|
|
35
|
+
* does not hand the key with it.
|
|
36
|
+
*
|
|
37
|
+
* - `active` — the client targets the sandbox. `branchId` is `null` from the env carrier, which names
|
|
38
|
+
* no branch; only `.relyio/dev.json` does. `expiresAt` is `null` for an unbounded sandbox.
|
|
39
|
+
* - `expired` / `unreadable` — a handshake was found and refused; the client targets the configured
|
|
40
|
+
* dataset and key, and `mergeConfig` has said so on the console.
|
|
41
|
+
* - `absent` — no handshake on either carrier. This is also what a browser or edge runtime reads,
|
|
42
|
+
* since neither can see the env or the file.
|
|
43
|
+
* - `disabled` — detection did not run: `dev: false` was passed, or `NODE_ENV === 'production'`
|
|
44
|
+
* and `dev: true` was not.
|
|
45
|
+
*/
|
|
46
|
+
type SandboxState = {
|
|
47
|
+
state: 'active';
|
|
48
|
+
datasetId: string;
|
|
49
|
+
branchId: string | null;
|
|
50
|
+
expiresAt: string | null;
|
|
51
|
+
source: 'env' | 'file';
|
|
52
|
+
} | {
|
|
53
|
+
state: 'expired';
|
|
54
|
+
expiredAt: string;
|
|
55
|
+
} | {
|
|
56
|
+
state: 'unreadable';
|
|
57
|
+
reason: DevUnreadableReason;
|
|
58
|
+
} | {
|
|
59
|
+
state: 'absent';
|
|
60
|
+
} | {
|
|
61
|
+
state: 'disabled';
|
|
62
|
+
};
|
|
63
|
+
/** The sandbox the client targets, once a carrier has been accepted. */
|
|
64
|
+
type ActiveSandbox = Extract<SandboxState, {
|
|
65
|
+
state: 'active';
|
|
66
|
+
}>;
|
|
4
67
|
|
|
5
68
|
/**
|
|
6
69
|
* What a call site supplies beside the route it named.
|
|
@@ -2557,6 +2620,15 @@ type RegisteredSchema = Register extends {
|
|
|
2557
2620
|
schema: infer S extends AnySchemaDefinition;
|
|
2558
2621
|
} ? S : undefined;
|
|
2559
2622
|
|
|
2623
|
+
/**
|
|
2624
|
+
* The key's project, as `GET /v1/project` describes it: organization, project, dataset and branch,
|
|
2625
|
+
* each by id and name, and `studioUrl` — the Studio root the preview toolbar deep-links from
|
|
2626
|
+
* (`sdk-surfaces-spec.md` decision 24), or `null` when the service has no Dashboard address.
|
|
2627
|
+
*
|
|
2628
|
+
* Read from the committed document's `application/json` content by name, never written here
|
|
2629
|
+
* (`INV-API-CLIENT-IS-DERIVED`); `derived-transport.types.ts` holds the two equal.
|
|
2630
|
+
*/
|
|
2631
|
+
type Project = paths['/v1/project']['get']['responses'][200]['content']['application/json']['data'];
|
|
2560
2632
|
/**
|
|
2561
2633
|
* Client configuration with optional schema
|
|
2562
2634
|
*/
|
|
@@ -2592,6 +2664,7 @@ interface TypedClientConfig<TSchema extends AnySchemaDefinition | undefined = un
|
|
|
2592
2664
|
declare class TypedRelyIOClient<TSchema extends AnySchemaDefinition | undefined = undefined> {
|
|
2593
2665
|
private httpClient;
|
|
2594
2666
|
private config;
|
|
2667
|
+
private _sandbox;
|
|
2595
2668
|
private _search;
|
|
2596
2669
|
private _batch;
|
|
2597
2670
|
private _adhocQuery;
|
|
@@ -2601,6 +2674,21 @@ declare class TypedRelyIOClient<TSchema extends AnySchemaDefinition | undefined
|
|
|
2601
2674
|
* Get the schema definition
|
|
2602
2675
|
*/
|
|
2603
2676
|
get schema(): TSchema;
|
|
2677
|
+
/**
|
|
2678
|
+
* The `relyio dev` sandbox this client resolved at construction, as the preview toolbar displays
|
|
2679
|
+
* it (`sdk-surfaces-spec.md` decision 22).
|
|
2680
|
+
*
|
|
2681
|
+
* Plain, JSON-serializable data and no key, so a server component can hand it to a client
|
|
2682
|
+
* component as a prop — the browser cannot read the handshake itself, so a client created there
|
|
2683
|
+
* reports `absent`. See {@link SandboxState} for what each state means.
|
|
2684
|
+
*
|
|
2685
|
+
* @example
|
|
2686
|
+
* ```tsx
|
|
2687
|
+
* // app/layout.tsx — a server component handing the state to a client component
|
|
2688
|
+
* <SandboxBadge sandbox={relyio.sandbox} />
|
|
2689
|
+
* ```
|
|
2690
|
+
*/
|
|
2691
|
+
get sandbox(): SandboxState;
|
|
2604
2692
|
/**
|
|
2605
2693
|
* Get the ad-hoc query client
|
|
2606
2694
|
*/
|
|
@@ -2779,6 +2867,21 @@ declare class TypedRelyIOClient<TSchema extends AnySchemaDefinition | undefined
|
|
|
2779
2867
|
* ```
|
|
2780
2868
|
*/
|
|
2781
2869
|
executeQuery<K extends TSchema extends AnySchemaDefinition ? SchemaQueryNames<TSchema> : string>(queryName: K, params?: Record<string, unknown>): Promise<unknown[]>;
|
|
2870
|
+
/**
|
|
2871
|
+
* Describe the project this key resolves to — `GET /v1/project`.
|
|
2872
|
+
*
|
|
2873
|
+
* `dataset` is the one this client's requests select (`dataset`, a sandbox from the `relyio dev`
|
|
2874
|
+
* handshake, or the key's default), which is not always the project's default, so a Studio link
|
|
2875
|
+
* built from `studioUrl` should carry it as `?dataset=`. `studioUrl` is `null` — a value, not an
|
|
2876
|
+
* error — when the service has no Dashboard address configured.
|
|
2877
|
+
*
|
|
2878
|
+
* @example
|
|
2879
|
+
* ```typescript
|
|
2880
|
+
* const { studioUrl, dataset } = await relyio.project()
|
|
2881
|
+
* if (studioUrl !== null) window.open(`${studioUrl}?dataset=${dataset.id}`)
|
|
2882
|
+
* ```
|
|
2883
|
+
*/
|
|
2884
|
+
project(): Promise<Project>;
|
|
2782
2885
|
/**
|
|
2783
2886
|
* Get schema information from the API
|
|
2784
2887
|
*/
|
|
@@ -2930,4 +3033,4 @@ declare function createClient<TSchema extends AnySchemaDefinition>(config: Typed
|
|
|
2930
3033
|
*/
|
|
2931
3034
|
type ClientSchema<T extends TypedRelyIOClient<AnySchemaDefinition>> = T extends TypedRelyIOClient<infer TSchema> ? TSchema : never;
|
|
2932
3035
|
|
|
2933
|
-
export { type
|
|
3036
|
+
export { type SearchBlock as $, type ActiveSandbox as A, type AutocompleteSuggestion as B, type Change as C, type AutocompleteResponse as D, type ExtendedQueryResult as E, type SimilarResult as F, type SimilarResponse as G, HttpClient as H, type SearchFilter as I, type SearchFields as J, BatchClient as K, BatchBuilder as L, type BatchMethod as M, type BatchOperation as N, type BatchOptions as O, type Project as P, type BatchOperationResult as Q, type Register as R, type SandboxState as S, TypedRelyIOClient as T, type BatchSummary as U, type BatchResponse as V, AdhocQueryClient as W, AdhocQueryBuilder as X, type FetchBlock as Y, type AggregateBlock as Z, type AggregateMetric as _, type TypedClientConfig as a, type SimilarBlock as a0, type FilterValue as a1, type FullTextConfig as a2, type AdhocQueryDefinition as a3, type AdhocQueryOptions as a4, type QueryMetadata as a5, type AdhocQueryResult as a6, AssetClient as a7, AssetFileBuilder as a8, AssetUploadBuilder as a9, FileUploadError as aA, FileValidationError as aB, type FileValidationConstraints as aC, validateFile as aD, isAssetEntry as aa, type AssetVisibility as ab, type FileStatus as ac, type FileBackend as ad, type AssetFileBlock as ae, type AssetFileExtracted as af, type AssetUrls as ag, type AssetEntryResponse as ah, type PopulatedAssetReference as ai, type PresignInput as aj, type PresignResult as ak, type ConfirmInput as al, type ConfirmResult as am, type ResolveUrlInput as an, type ResolveUrlResult as ao, type CreateAssetOptions as ap, type WaitUntilReadyOptions as aq, type MultipartCreateResult as ar, type MultipartPart as as, type MultipartTarget as at, type UploadProgress as au, ResourceNotFoundError as av, ResourceConflictError as aw, ResourceExpiredError as ax, isResourceNotFound as ay, type FileErrorCode as az, type ClientSchema as b, createClient as c, type RegisteredSchema as d, type SendOptions as e, entityTagOf as f, type ConditionalWriteOptions as g, type RetryableWriteOptions as h, ChangesExpiredError as i, type ChangesOptions as j, type ChangesExpiredReason as k, ContentClient as l, SingletonClient as m, SettingsClient as n, ContentQueryBuilder as o, ContentByIdBuilder as p, type ChildrenOptions as q, type SingletonFetchOptions as r, type SettingsFetchOptions as s, SearchClient as t, SearchBuilder as u, AutocompleteBuilder as v, SimilarBuilder as w, type SearchMode as x, type SearchResultItem as y, type SearchResponse as z };
|
|
@@ -574,6 +574,26 @@ interface paths {
|
|
|
574
574
|
patch?: never;
|
|
575
575
|
trace?: never;
|
|
576
576
|
};
|
|
577
|
+
'/v1/project': {
|
|
578
|
+
parameters: {
|
|
579
|
+
query?: never;
|
|
580
|
+
header?: never;
|
|
581
|
+
path?: never;
|
|
582
|
+
cookie?: never;
|
|
583
|
+
};
|
|
584
|
+
/**
|
|
585
|
+
* Describe the key's project
|
|
586
|
+
* @description The organization, project, dataset and branch this key resolves to, each with its id and name, and `studioUrl` — the Studio root for the project, built from ids. `dataset` is the one this request selected (`X-RelyIO-Dataset`, or the key’s default), which is not always the project’s default: a Studio link should carry it as `?dataset=`. `studioUrl` is `null` when the service has no Dashboard address configured. Never cached.
|
|
587
|
+
*/
|
|
588
|
+
get: operations['getProject'];
|
|
589
|
+
put?: never;
|
|
590
|
+
post?: never;
|
|
591
|
+
delete?: never;
|
|
592
|
+
options?: never;
|
|
593
|
+
head?: never;
|
|
594
|
+
patch?: never;
|
|
595
|
+
trace?: never;
|
|
596
|
+
};
|
|
577
597
|
'/v1/query': {
|
|
578
598
|
parameters: {
|
|
579
599
|
query?: never;
|
|
@@ -863,6 +883,28 @@ interface components {
|
|
|
863
883
|
limit: number;
|
|
864
884
|
total: number;
|
|
865
885
|
};
|
|
886
|
+
/** @description The place this key resolves to, named, and the Studio root for its project. `id` and `name` are the project’s. */
|
|
887
|
+
Project: {
|
|
888
|
+
id: string;
|
|
889
|
+
name: string;
|
|
890
|
+
/** @description The organization that owns the project. */
|
|
891
|
+
organization: {
|
|
892
|
+
id: string;
|
|
893
|
+
name: string;
|
|
894
|
+
};
|
|
895
|
+
/** @description The dataset this request was answered from — the one `X-RelyIO-Dataset` selected, or the key’s default. */
|
|
896
|
+
dataset: {
|
|
897
|
+
id: string;
|
|
898
|
+
name: string;
|
|
899
|
+
};
|
|
900
|
+
/** @description The branch that dataset is assigned to. */
|
|
901
|
+
branch: {
|
|
902
|
+
id: string;
|
|
903
|
+
name: string;
|
|
904
|
+
};
|
|
905
|
+
/** @description `<dashboard>/o/<organization id>/<project id>/studio`, or null when the service has no Dashboard address configured. */
|
|
906
|
+
studioUrl: string | null;
|
|
907
|
+
};
|
|
866
908
|
RefusalAccessDenied: {
|
|
867
909
|
error: {
|
|
868
910
|
/** @enum {string} */
|
|
@@ -4227,6 +4269,92 @@ interface operations {
|
|
|
4227
4269
|
};
|
|
4228
4270
|
};
|
|
4229
4271
|
};
|
|
4272
|
+
getProject: {
|
|
4273
|
+
parameters: {
|
|
4274
|
+
query?: never;
|
|
4275
|
+
header?: never;
|
|
4276
|
+
path?: never;
|
|
4277
|
+
cookie?: never;
|
|
4278
|
+
};
|
|
4279
|
+
requestBody?: never;
|
|
4280
|
+
responses: {
|
|
4281
|
+
/** @description Success. */
|
|
4282
|
+
200: {
|
|
4283
|
+
headers: {
|
|
4284
|
+
'Cache-Control'?: string;
|
|
4285
|
+
[name: string]: unknown;
|
|
4286
|
+
};
|
|
4287
|
+
content: {
|
|
4288
|
+
'application/json': {
|
|
4289
|
+
data: components['schemas']['Project'];
|
|
4290
|
+
};
|
|
4291
|
+
};
|
|
4292
|
+
};
|
|
4293
|
+
/** @description REQUEST_INVALID */
|
|
4294
|
+
400: {
|
|
4295
|
+
headers: {
|
|
4296
|
+
[name: string]: unknown;
|
|
4297
|
+
};
|
|
4298
|
+
content: {
|
|
4299
|
+
'application/json': components['schemas']['RefusalRequestInvalid'];
|
|
4300
|
+
};
|
|
4301
|
+
};
|
|
4302
|
+
/** @description INVALID_API_KEY, MISSING_API_KEY */
|
|
4303
|
+
401: {
|
|
4304
|
+
headers: {
|
|
4305
|
+
[name: string]: unknown;
|
|
4306
|
+
};
|
|
4307
|
+
content: {
|
|
4308
|
+
'application/json': components['schemas']['RefusalInvalidApiKeyOrMissingApiKey'];
|
|
4309
|
+
};
|
|
4310
|
+
};
|
|
4311
|
+
/** @description ACCESS_DENIED, PLAN_FEATURE_UNAVAILABLE, USAGE_QUOTA_EXCEEDED */
|
|
4312
|
+
403: {
|
|
4313
|
+
headers: {
|
|
4314
|
+
[name: string]: unknown;
|
|
4315
|
+
};
|
|
4316
|
+
content: {
|
|
4317
|
+
'application/json': components['schemas']['RefusalAccessDeniedOrPlanFeatureUnavailableOrUsageQuotaExceeded'];
|
|
4318
|
+
};
|
|
4319
|
+
};
|
|
4320
|
+
/** @description RESOURCE_NOT_FOUND */
|
|
4321
|
+
404: {
|
|
4322
|
+
headers: {
|
|
4323
|
+
[name: string]: unknown;
|
|
4324
|
+
};
|
|
4325
|
+
content: {
|
|
4326
|
+
'application/json': components['schemas']['RefusalResourceNotFound'];
|
|
4327
|
+
};
|
|
4328
|
+
};
|
|
4329
|
+
/** @description RATE_LIMIT_EXCEEDED */
|
|
4330
|
+
429: {
|
|
4331
|
+
headers: {
|
|
4332
|
+
[name: string]: unknown;
|
|
4333
|
+
};
|
|
4334
|
+
content: {
|
|
4335
|
+
'application/json': components['schemas']['RefusalRateLimitExceeded'];
|
|
4336
|
+
};
|
|
4337
|
+
};
|
|
4338
|
+
/** @description INTERNAL_ERROR */
|
|
4339
|
+
500: {
|
|
4340
|
+
headers: {
|
|
4341
|
+
[name: string]: unknown;
|
|
4342
|
+
};
|
|
4343
|
+
content: {
|
|
4344
|
+
'application/json': components['schemas']['RefusalInternalError'];
|
|
4345
|
+
};
|
|
4346
|
+
};
|
|
4347
|
+
/** @description SERVICE_INDETERMINATE */
|
|
4348
|
+
503: {
|
|
4349
|
+
headers: {
|
|
4350
|
+
[name: string]: unknown;
|
|
4351
|
+
};
|
|
4352
|
+
content: {
|
|
4353
|
+
'application/json': components['schemas']['RefusalServiceIndeterminate'];
|
|
4354
|
+
};
|
|
4355
|
+
};
|
|
4356
|
+
};
|
|
4357
|
+
};
|
|
4230
4358
|
executeAdhocQuery: {
|
|
4231
4359
|
parameters: {
|
|
4232
4360
|
query?: never;
|
|
@@ -5831,6 +5959,7 @@ declare function matchRoute(url: string | URL, options?: MatchRouteOptions): Rou
|
|
|
5831
5959
|
/**
|
|
5832
5960
|
* Configuration types for the RelyIO SDK
|
|
5833
5961
|
*/
|
|
5962
|
+
|
|
5834
5963
|
interface RelyIOConfig {
|
|
5835
5964
|
/** API key for authentication */
|
|
5836
5965
|
apiKey: string;
|