@warmhub/sdk-ts 0.142.0 → 0.144.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 +8 -0
- package/changelog.json +10 -0
- package/dist/checkpoint.js +1 -1
- package/dist/checkpoint.js.map +1 -1
- package/dist/{chunk-AO5UO4EW.js → chunk-EUC7LZDL.js} +19 -19
- package/dist/chunk-EUC7LZDL.js.map +1 -0
- package/dist/chunk-V4CVTIJZ.js +10 -0
- package/dist/chunk-V4CVTIJZ.js.map +1 -0
- package/dist/index.d.ts +170 -28
- package/dist/index.js +1 -1
- package/dist/react.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-AO5UO4EW.js.map +0 -1
- package/dist/chunk-B2GJBZ22.js +0 -10
- package/dist/chunk-B2GJBZ22.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1228,7 +1228,7 @@ type ComponentDetail = {
|
|
|
1228
1228
|
ref?: string;
|
|
1229
1229
|
componentName: string;
|
|
1230
1230
|
version?: string;
|
|
1231
|
-
state?:
|
|
1231
|
+
state?: string;
|
|
1232
1232
|
source?: string;
|
|
1233
1233
|
sourceUrl?: string;
|
|
1234
1234
|
sourceRef?: string;
|
|
@@ -1251,6 +1251,7 @@ type ComponentDetail = {
|
|
|
1251
1251
|
dataHash: string;
|
|
1252
1252
|
} | null;
|
|
1253
1253
|
componentRef?: string;
|
|
1254
|
+
shapeSystem?: boolean;
|
|
1254
1255
|
composition?: Array<{
|
|
1255
1256
|
wref: string;
|
|
1256
1257
|
fields: Record<string, unknown>;
|
|
@@ -1262,6 +1263,7 @@ type ComponentDetail = {
|
|
|
1262
1263
|
kind: 'thing' | 'shape';
|
|
1263
1264
|
declaredShapes?: Array<string>;
|
|
1264
1265
|
validatedShapes?: Array<string>;
|
|
1266
|
+
systemShapes?: Array<string>;
|
|
1265
1267
|
componentRef?: string;
|
|
1266
1268
|
version: number;
|
|
1267
1269
|
createdAt: number;
|
|
@@ -1299,7 +1301,7 @@ type ComponentInstallResult$1 = {
|
|
|
1299
1301
|
componentRef: string;
|
|
1300
1302
|
componentName: string;
|
|
1301
1303
|
version: string;
|
|
1302
|
-
state:
|
|
1304
|
+
state: string;
|
|
1303
1305
|
setupCreates: Array<string>;
|
|
1304
1306
|
errors: Array<string>;
|
|
1305
1307
|
hasSetup: boolean;
|
|
@@ -1560,7 +1562,7 @@ type ComponentListResult = {
|
|
|
1560
1562
|
ref?: string;
|
|
1561
1563
|
componentName: string;
|
|
1562
1564
|
version?: string;
|
|
1563
|
-
state?:
|
|
1565
|
+
state?: string;
|
|
1564
1566
|
source?: string;
|
|
1565
1567
|
sourceUrl?: string;
|
|
1566
1568
|
sourceRef?: string;
|
|
@@ -1577,7 +1579,7 @@ type ComponentSummary = {
|
|
|
1577
1579
|
ref?: string;
|
|
1578
1580
|
componentName: string;
|
|
1579
1581
|
version?: string;
|
|
1580
|
-
state?:
|
|
1582
|
+
state?: string;
|
|
1581
1583
|
source?: string;
|
|
1582
1584
|
sourceUrl?: string;
|
|
1583
1585
|
sourceRef?: string;
|
|
@@ -1982,10 +1984,10 @@ type HomepageFeaturedListsResult$1 = {
|
|
|
1982
1984
|
title: string;
|
|
1983
1985
|
description?: string;
|
|
1984
1986
|
surface?: string;
|
|
1985
|
-
itemKind?:
|
|
1987
|
+
itemKind?: string;
|
|
1986
1988
|
sortOrder?: number;
|
|
1987
1989
|
items: Array<{
|
|
1988
|
-
kind:
|
|
1990
|
+
kind: string;
|
|
1989
1991
|
slug: string;
|
|
1990
1992
|
title: string;
|
|
1991
1993
|
description?: string;
|
|
@@ -6162,7 +6164,7 @@ type OrgMember = {
|
|
|
6162
6164
|
firstName?: string;
|
|
6163
6165
|
lastName?: string;
|
|
6164
6166
|
role: 'owner' | 'admin' | 'editor' | 'viewer';
|
|
6165
|
-
status:
|
|
6167
|
+
status: string;
|
|
6166
6168
|
invitedBy?: string;
|
|
6167
6169
|
createdAt: number;
|
|
6168
6170
|
};
|
|
@@ -6190,6 +6192,7 @@ type ShapeGetResult = {
|
|
|
6190
6192
|
dataHash: string;
|
|
6191
6193
|
} | null;
|
|
6192
6194
|
componentRef?: string;
|
|
6195
|
+
shapeSystem?: boolean;
|
|
6193
6196
|
composition?: Array<{
|
|
6194
6197
|
wref: string;
|
|
6195
6198
|
fields: Record<string, unknown>;
|
|
@@ -6207,6 +6210,7 @@ type ShapeListResult = {
|
|
|
6207
6210
|
dataHash: string;
|
|
6208
6211
|
} | null;
|
|
6209
6212
|
componentRef?: string;
|
|
6213
|
+
shapeSystem?: boolean;
|
|
6210
6214
|
composition?: Array<{
|
|
6211
6215
|
wref: string;
|
|
6212
6216
|
fields: Record<string, unknown>;
|
|
@@ -6219,6 +6223,7 @@ type ThingHistoryResult = {
|
|
|
6219
6223
|
kind: 'thing' | 'shape';
|
|
6220
6224
|
declaredShapes?: Array<string>;
|
|
6221
6225
|
validatedShapes?: Array<string>;
|
|
6226
|
+
systemShapes?: Array<string>;
|
|
6222
6227
|
};
|
|
6223
6228
|
versions: Array<{
|
|
6224
6229
|
version: number;
|
|
@@ -6227,6 +6232,7 @@ type ThingHistoryResult = {
|
|
|
6227
6232
|
thingKind?: string;
|
|
6228
6233
|
declaredShapes?: Array<string>;
|
|
6229
6234
|
validatedShapes?: Array<string>;
|
|
6235
|
+
systemShapes?: Array<string>;
|
|
6230
6236
|
collections?: Array<{
|
|
6231
6237
|
shape: string;
|
|
6232
6238
|
memberCount?: number;
|
|
@@ -6262,6 +6268,7 @@ type ThingGetManyResult$1 = {
|
|
|
6262
6268
|
kind: 'thing' | 'shape';
|
|
6263
6269
|
declaredShapes: Array<string>;
|
|
6264
6270
|
validatedShapes: Array<string>;
|
|
6271
|
+
systemShapes?: Array<string>;
|
|
6265
6272
|
version: number;
|
|
6266
6273
|
data?: unknown;
|
|
6267
6274
|
collections?: Array<{
|
|
@@ -6310,7 +6317,7 @@ type RepositoryCheckpointAccess$1 = {
|
|
|
6310
6317
|
url: string;
|
|
6311
6318
|
byteLength: number;
|
|
6312
6319
|
sha256: string;
|
|
6313
|
-
contentType:
|
|
6320
|
+
contentType: string;
|
|
6314
6321
|
};
|
|
6315
6322
|
type RepositoryCheckpointStatus$1 = {
|
|
6316
6323
|
checkpointId: string;
|
|
@@ -6648,6 +6655,7 @@ type ViewEvaluateResult$1 = {
|
|
|
6648
6655
|
kind: 'thing' | 'shape';
|
|
6649
6656
|
declaredShapes?: Array<string>;
|
|
6650
6657
|
validatedShapes?: Array<string>;
|
|
6658
|
+
systemShapes?: Array<string>;
|
|
6651
6659
|
componentRef?: string;
|
|
6652
6660
|
version: number;
|
|
6653
6661
|
createdAt: number;
|
|
@@ -6874,12 +6882,123 @@ type SubscribableEventType = (typeof SUBSCRIBABLE_EVENT_TYPES)[number];
|
|
|
6874
6882
|
declare const ORG_SCOPED_EVENT_TYPES: readonly ["org.renamed", "org.member_added", "org.repo_created", "org.repo_published"];
|
|
6875
6883
|
type OrgScopedEventType = (typeof ORG_SCOPED_EVENT_TYPES)[number];
|
|
6876
6884
|
|
|
6885
|
+
/**
|
|
6886
|
+
* Install health states this build knows; the response vocabulary is open.
|
|
6887
|
+
* @see https://docs.warmhub.ai/sdk-reference/variables/component_install_result_states/
|
|
6888
|
+
*/
|
|
6889
|
+
declare const COMPONENT_INSTALL_RESULT_STATES: readonly ["ready", "degraded"];
|
|
6890
|
+
/**
|
|
6891
|
+
* Install health states this build can interpret.
|
|
6892
|
+
* @see https://docs.warmhub.ai/sdk-reference/type-aliases/componentinstallresultstate/
|
|
6893
|
+
*/
|
|
6894
|
+
type ComponentInstallResultState = (typeof COMPONENT_INSTALL_RESULT_STATES)[number];
|
|
6895
|
+
/**
|
|
6896
|
+
* Whether this build recognizes an install health state; unknown strings remain valid.
|
|
6897
|
+
* @see https://docs.warmhub.ai/sdk-reference/functions/isknowncomponentinstallresultstate/
|
|
6898
|
+
*/
|
|
6899
|
+
declare function isKnownComponentInstallResultState(value: string): value is ComponentInstallResultState;
|
|
6900
|
+
|
|
6901
|
+
/**
|
|
6902
|
+
* Component installation lifecycle states recognized by this build.
|
|
6903
|
+
* @see https://docs.warmhub.ai/sdk-reference/variables/component_summary_states/
|
|
6904
|
+
*/
|
|
6905
|
+
declare const COMPONENT_SUMMARY_STATES: readonly ["initiated", "active", "uninstalled"];
|
|
6906
|
+
/**
|
|
6907
|
+
* The internal lifecycle domain stays closed while response strings can grow.
|
|
6908
|
+
* @see https://docs.warmhub.ai/sdk-reference/type-aliases/componentsummarystate/
|
|
6909
|
+
*/
|
|
6910
|
+
type ComponentSummaryState = (typeof COMPONENT_SUMMARY_STATES)[number];
|
|
6911
|
+
/**
|
|
6912
|
+
* Narrow a response string without discarding an unfamiliar lifecycle state.
|
|
6913
|
+
* @see https://docs.warmhub.ai/sdk-reference/functions/isknowncomponentsummarystate/
|
|
6914
|
+
*/
|
|
6915
|
+
declare function isKnownComponentSummaryState(value: string): value is ComponentSummaryState;
|
|
6916
|
+
|
|
6917
|
+
/**
|
|
6918
|
+
* Credential scoping levels recognized by this build.
|
|
6919
|
+
* @see https://docs.warmhub.ai/sdk-reference/variables/credential_scopes/
|
|
6920
|
+
*/
|
|
6921
|
+
declare const CREDENTIAL_SCOPES: readonly ["org", "repo"];
|
|
6922
|
+
/**
|
|
6923
|
+
* Known credential scopes stay closed for inputs and domain decisions.
|
|
6924
|
+
* @see https://docs.warmhub.ai/sdk-reference/type-aliases/credentialscope/
|
|
6925
|
+
*/
|
|
6926
|
+
type CredentialScope = (typeof CREDENTIAL_SCOPES)[number];
|
|
6927
|
+
/**
|
|
6928
|
+
* Narrow a response string without assigning meaning to unfamiliar scopes.
|
|
6929
|
+
* @see https://docs.warmhub.ai/sdk-reference/functions/isknowncredentialscope/
|
|
6930
|
+
*/
|
|
6931
|
+
declare function isKnownCredentialScope(value: string): value is CredentialScope;
|
|
6932
|
+
|
|
6933
|
+
/**
|
|
6934
|
+
* Global search result kinds recognized by this build.
|
|
6935
|
+
* @see https://docs.warmhub.ai/sdk-reference/variables/global_search_result_item_kinds/
|
|
6936
|
+
*/
|
|
6937
|
+
declare const GLOBAL_SEARCH_RESULT_ITEM_KINDS: readonly ["repo", "component"];
|
|
6938
|
+
/**
|
|
6939
|
+
* The known domain stays closed while response strings can grow.
|
|
6940
|
+
* @see https://docs.warmhub.ai/sdk-reference/type-aliases/globalsearchresultitemkind/
|
|
6941
|
+
*/
|
|
6942
|
+
type GlobalSearchResultItemKind = (typeof GLOBAL_SEARCH_RESULT_ITEM_KINDS)[number];
|
|
6943
|
+
/**
|
|
6944
|
+
* Narrow a response string without assigning meaning to unfamiliar values.
|
|
6945
|
+
* @see https://docs.warmhub.ai/sdk-reference/functions/isknownglobalsearchresultitemkind/
|
|
6946
|
+
*/
|
|
6947
|
+
declare function isKnownGlobalSearchResultItemKind(value: string): value is GlobalSearchResultItemKind;
|
|
6948
|
+
|
|
6949
|
+
/**
|
|
6950
|
+
* Homepage featured item kinds recognized by this build.
|
|
6951
|
+
* @see https://docs.warmhub.ai/sdk-reference/variables/homepage_featured_item_kinds/
|
|
6952
|
+
*/
|
|
6953
|
+
declare const HOMEPAGE_FEATURED_ITEM_KINDS: readonly ["repo", "component", "skill"];
|
|
6954
|
+
/**
|
|
6955
|
+
* The authored catalog domain stays closed while response strings can grow.
|
|
6956
|
+
* @see https://docs.warmhub.ai/sdk-reference/type-aliases/homepagefeatureditemkind/
|
|
6957
|
+
*/
|
|
6958
|
+
type HomepageFeaturedItemKind = (typeof HOMEPAGE_FEATURED_ITEM_KINDS)[number];
|
|
6959
|
+
/**
|
|
6960
|
+
* Narrow a response string without treating an unfamiliar kind as a known one.
|
|
6961
|
+
* @see https://docs.warmhub.ai/sdk-reference/functions/isknownhomepagefeatureditemkind/
|
|
6962
|
+
*/
|
|
6963
|
+
declare function isKnownHomepageFeaturedItemKind(value: string): value is HomepageFeaturedItemKind;
|
|
6964
|
+
|
|
6877
6965
|
/**
|
|
6878
6966
|
* Derive the ratified UUIDv5 request identity for one stream chunk.
|
|
6879
6967
|
* @see https://docs.warmhub.ai/sdk-reference/functions/operationeventstreamrequestid/
|
|
6880
6968
|
*/
|
|
6881
6969
|
declare function operationEventStreamRequestId(submissionId: string, chunkOrdinal: number): string;
|
|
6882
6970
|
|
|
6971
|
+
/**
|
|
6972
|
+
* Organization membership statuses recognized by this build.
|
|
6973
|
+
* @see https://docs.warmhub.ai/sdk-reference/variables/org_member_statuses/
|
|
6974
|
+
*/
|
|
6975
|
+
declare const ORG_MEMBER_STATUSES: readonly ["active", "pending"];
|
|
6976
|
+
/**
|
|
6977
|
+
* The known domain stays closed while response strings can grow.
|
|
6978
|
+
* @see https://docs.warmhub.ai/sdk-reference/type-aliases/orgmemberstatus/
|
|
6979
|
+
*/
|
|
6980
|
+
type OrgMemberStatus = (typeof ORG_MEMBER_STATUSES)[number];
|
|
6981
|
+
/**
|
|
6982
|
+
* Narrow a response string without assigning meaning to unfamiliar values.
|
|
6983
|
+
* @see https://docs.warmhub.ai/sdk-reference/functions/isknownorgmemberstatus/
|
|
6984
|
+
*/
|
|
6985
|
+
declare function isKnownOrgMemberStatus(value: string): value is OrgMemberStatus;
|
|
6986
|
+
|
|
6987
|
+
/**
|
|
6988
|
+
* Media types this build knows how to handle from checkpoint access.
|
|
6989
|
+
* @see https://docs.warmhub.ai/sdk-reference/variables/checkpoint_content_types/
|
|
6990
|
+
*/
|
|
6991
|
+
declare const CHECKPOINT_CONTENT_TYPES: readonly ["application/zip", "application/json", "application/x-ndjson"];
|
|
6992
|
+
/**
|
|
6993
|
+
* The closed domain type; the access response accepts future media types.
|
|
6994
|
+
* @see https://docs.warmhub.ai/sdk-reference/type-aliases/checkpointcontenttype/
|
|
6995
|
+
*/
|
|
6996
|
+
type CheckpointContentType = (typeof CHECKPOINT_CONTENT_TYPES)[number];
|
|
6997
|
+
/**
|
|
6998
|
+
* Whether this build recognizes an access media type; unknown strings remain valid.
|
|
6999
|
+
* @see https://docs.warmhub.ai/sdk-reference/functions/isknowncheckpointcontenttype/
|
|
7000
|
+
*/
|
|
7001
|
+
declare function isKnownCheckpointContentType(value: string): value is CheckpointContentType;
|
|
6883
7002
|
type JsonValue = null | boolean | number | string | JsonValue[] | {
|
|
6884
7003
|
[key: string]: JsonValue;
|
|
6885
7004
|
};
|
|
@@ -6984,7 +7103,7 @@ type ShapeValidatorResult = {
|
|
|
6984
7103
|
* Returns a {@link ShapeValidatorResult} discriminated union — read `result.valid`
|
|
6985
7104
|
* to branch, then `result.errors` (only present when invalid) for the list of
|
|
6986
7105
|
* messages. `result.warnings` may be present in either branch and carries
|
|
6987
|
-
* undeclared top-level field names.
|
|
7106
|
+
* undeclared top-level field names. A `null` body is judged as `{}`.
|
|
6988
7107
|
*
|
|
6989
7108
|
* @example
|
|
6990
7109
|
* ```ts
|
|
@@ -7003,7 +7122,7 @@ type ShapeValidatorResult = {
|
|
|
7003
7122
|
* ```
|
|
7004
7123
|
* @see https://docs.warmhub.ai/sdk-reference/functions/validateagainstshape/
|
|
7005
7124
|
*/
|
|
7006
|
-
declare function validateAgainstShape(data:
|
|
7125
|
+
declare function validateAgainstShape(data: unknown, shapeFields: Record<string, unknown>): ShapeValidatorResult;
|
|
7007
7126
|
|
|
7008
7127
|
/**
|
|
7009
7128
|
* Hardcoded meta-schema for validating shape definitions.
|
|
@@ -7064,17 +7183,28 @@ declare function contentFieldLimitError(path: string, value: string): string | n
|
|
|
7064
7183
|
*/
|
|
7065
7184
|
type WarmHubErrorDetails = NonNullable<CommitDiagnostic$1['details']>
|
|
7066
7185
|
/**
|
|
7067
|
-
* A `CLIENT_INCOMPATIBLE` refusal's cause
|
|
7068
|
-
* is the SDK refusing every call under `legacy-wrefs`.
|
|
7186
|
+
* A `CLIENT_INCOMPATIBLE` refusal's cause, a stable reason to branch on:
|
|
7187
|
+
* `legacy-wrefs-sdk` is the SDK refusing every call under `legacy-wrefs`.
|
|
7069
7188
|
*/
|
|
7070
7189
|
| {
|
|
7071
7190
|
reason: 'legacy-wrefs-sdk';
|
|
7072
|
-
} | ShapeCountsUnavailableDetails;
|
|
7191
|
+
} | ShapeCountsUnavailableDetails | OldNameDetails;
|
|
7192
|
+
/**
|
|
7193
|
+
* Why a Thing read refused with `NOT_FOUND` although it can be answered: the
|
|
7194
|
+
* name asked for is an old `Shape/name` spelling, and `currentName` is the
|
|
7195
|
+
* name the Thing answers to now. Sent only to a caller who can read that
|
|
7196
|
+
* Thing. A request-level refusal only, never a commit diagnostic.
|
|
7197
|
+
* @see https://docs.warmhub.ai/sdk-reference/type-aliases/oldnamedetails/
|
|
7198
|
+
*/
|
|
7199
|
+
type OldNameDetails = {
|
|
7200
|
+
reason: 'old_name';
|
|
7201
|
+
currentName: string;
|
|
7202
|
+
};
|
|
7073
7203
|
/**
|
|
7074
7204
|
* Why `repo.shapeInstanceCounts` refused with `SHAPE_COUNTS_UNAVAILABLE`: the
|
|
7075
7205
|
* repo is above the live per-Shape size band, or the bounded read timed out.
|
|
7076
7206
|
* A request-level refusal only, never a commit diagnostic. The vocabulary is
|
|
7077
|
-
* open
|
|
7207
|
+
* open: treat an unknown reason as "unavailable, retry later", and
|
|
7078
7208
|
* read totals from `repo.stats`.
|
|
7079
7209
|
* @see https://docs.warmhub.ai/sdk-reference/type-aliases/shapecountsunavailabledetails/
|
|
7080
7210
|
*/
|
|
@@ -7277,13 +7407,6 @@ declare const DEPENDENCY_FAILED = "DEPENDENCY_FAILED";
|
|
|
7277
7407
|
*/
|
|
7278
7408
|
declare function isShapeReference(value: unknown): value is string;
|
|
7279
7409
|
|
|
7280
|
-
/**
|
|
7281
|
-
* Batch Thing read a keepShapes revise's Shapes and version come from, as
|
|
7282
|
-
* {@link createKeepShapesResolver} takes it.
|
|
7283
|
-
* @see https://docs.warmhub.ai/sdk-reference/type-aliases/thingshapesreader/
|
|
7284
|
-
*/
|
|
7285
|
-
type ThingShapesReader = (wrefs: string[]) => Promise<Pick<ThingGetManyResult$1, 'items' | 'missing'>>;
|
|
7286
|
-
|
|
7287
7410
|
/**
|
|
7288
7411
|
* The SDK's refusal under `legacy-wrefs` (adjudicator's final wording).
|
|
7289
7412
|
* @see https://docs.warmhub.ai/sdk-reference/variables/legacy_wrefs_refusal/
|
|
@@ -7299,6 +7422,13 @@ declare const LEGACY_WREFS_REFUSAL = "`legacy-wrefs` is set; the SDKs are v2-onl
|
|
|
7299
7422
|
*/
|
|
7300
7423
|
type OperationChecks = 'v2' | 'passThrough';
|
|
7301
7424
|
|
|
7425
|
+
/**
|
|
7426
|
+
* Batch Thing read a keepShapes revise's Shapes and version come from, as
|
|
7427
|
+
* {@link createKeepShapesResolver} takes it.
|
|
7428
|
+
* @see https://docs.warmhub.ai/sdk-reference/type-aliases/thingshapesreader/
|
|
7429
|
+
*/
|
|
7430
|
+
type ThingShapesReader = (wrefs: string[]) => Promise<Pick<ThingGetManyResult$1, 'items' | 'missing'>>;
|
|
7431
|
+
|
|
7302
7432
|
/**
|
|
7303
7433
|
* Maximum operations accepted by one complete validation request.
|
|
7304
7434
|
* @see https://docs.warmhub.ai/sdk-reference/variables/max_commit_validation_operations/
|
|
@@ -9271,11 +9401,11 @@ type RepoInfo = {
|
|
|
9271
9401
|
/** @internal */
|
|
9272
9402
|
type RepoList = RepoListResult;
|
|
9273
9403
|
/**
|
|
9274
|
-
* A cross-org search hit
|
|
9404
|
+
* A cross-org search hit; unfamiliar response kinds are preserved.
|
|
9275
9405
|
* @see https://docs.warmhub.ai/sdk-reference/type-aliases/globalsearchresultitem/
|
|
9276
9406
|
*/
|
|
9277
9407
|
type GlobalSearchResultItem = {
|
|
9278
|
-
kind:
|
|
9408
|
+
kind: string;
|
|
9279
9409
|
orgName: string;
|
|
9280
9410
|
name: string;
|
|
9281
9411
|
description: string | null;
|
|
@@ -9546,6 +9676,8 @@ type ThingItem = {
|
|
|
9546
9676
|
declaredShapes?: string[];
|
|
9547
9677
|
/** Full certified closure, included only when requested on page reads. */
|
|
9548
9678
|
validatedShapes?: string[];
|
|
9679
|
+
/** The `validatedShapes` that are system Shapes; absent when none. */
|
|
9680
|
+
systemShapes?: string[];
|
|
9549
9681
|
version: number;
|
|
9550
9682
|
createdAt: number;
|
|
9551
9683
|
active?: boolean;
|
|
@@ -9624,7 +9756,15 @@ type ThingGetWithLease = ThingDetail & {
|
|
|
9624
9756
|
*
|
|
9625
9757
|
* @see https://docs.warmhub.ai/data-modeling/things/
|
|
9626
9758
|
*/
|
|
9627
|
-
type ThingDetail = {
|
|
9759
|
+
type ThingDetail = ThingDetailFields & {
|
|
9760
|
+
/** The `validatedShapes` that are system Shapes; absent when none. */
|
|
9761
|
+
systemShapes?: string[];
|
|
9762
|
+
};
|
|
9763
|
+
/**
|
|
9764
|
+
* @internal A Thing read's fields shared by `ThingDetail` and graph nodes;
|
|
9765
|
+
* graph nodes do not carry `systemShapes`.
|
|
9766
|
+
*/
|
|
9767
|
+
type ThingDetailFields = {
|
|
9628
9768
|
wref: string;
|
|
9629
9769
|
pinnedWref?: string;
|
|
9630
9770
|
name: string;
|
|
@@ -9675,7 +9815,7 @@ type RepoLicense = RepoLicense$1;
|
|
|
9675
9815
|
/** @internal */
|
|
9676
9816
|
type ThingGraphValue = ThingGraphResult | string | number | boolean | null | ThingGraphValue[];
|
|
9677
9817
|
/** @internal */
|
|
9678
|
-
type ThingGraphResult =
|
|
9818
|
+
type ThingGraphResult = ThingDetailFields & {
|
|
9679
9819
|
about?: ThingGraphValue;
|
|
9680
9820
|
assertions?: ThingGraphResult[];
|
|
9681
9821
|
resolved?: Record<string, ThingGraphValue>;
|
|
@@ -9702,6 +9842,8 @@ type HistoryResult = Omit<ThingHistoryResult, 'versions'> & {
|
|
|
9702
9842
|
declaredShapes?: string[];
|
|
9703
9843
|
/** Full version-pinned certificate closure of that same version. */
|
|
9704
9844
|
validatedShapes?: string[];
|
|
9845
|
+
/** The `validatedShapes` that are system Shapes; absent when none. */
|
|
9846
|
+
systemShapes?: string[];
|
|
9705
9847
|
};
|
|
9706
9848
|
/** History rows retain forward-compatible backend fields. */
|
|
9707
9849
|
versions: HistoryVersion[];
|
|
@@ -9869,7 +10011,7 @@ type TokenInfo = {
|
|
|
9869
10011
|
/** @internal */
|
|
9870
10012
|
type CredentialInfo = {
|
|
9871
10013
|
name: string;
|
|
9872
|
-
scope:
|
|
10014
|
+
scope: string;
|
|
9873
10015
|
description?: string;
|
|
9874
10016
|
keyNames: string[];
|
|
9875
10017
|
revokedAt?: number;
|
|
@@ -10377,7 +10519,7 @@ declare class WarmHubClient {
|
|
|
10377
10519
|
private legacyWrefsRefusal;
|
|
10378
10520
|
/**
|
|
10379
10521
|
* The low-level `stream.append` takes operations as given, but a pinned
|
|
10380
|
-
* Shape is refused locally as everywhere else
|
|
10522
|
+
* Shape is refused locally as everywhere else. The
|
|
10381
10523
|
* CLI's enrolled pass-through under `legacy-wrefs` sends raw v1 unchanged.
|
|
10382
10524
|
*/
|
|
10383
10525
|
private pinnedShapeRefusal;
|
|
@@ -12255,4 +12397,4 @@ declare class WarmHubClient {
|
|
|
12255
12397
|
private watchRepoQuery;
|
|
12256
12398
|
}
|
|
12257
12399
|
|
|
12258
|
-
export { type AboutOptions, type AboutResult, type AccessResolveInput, type AccessResolveResult, type AccessTokenProvider, type ActionAttemptInfo, type ActionDeliveryTarget, type ActionLeaseAcquire, type ActionLeaseOp, type ActionListNotificationsOptions, type ActionListRunsOptions, type ActionLiveFeed, type ActionLiveFeedItem, type ActionLiveFeedOptions, type ActionNotificationInfo, type ActionRunInfo, type ActionRunStatsInfo, type ActionRunStatsOptions, type AddInput, type AddOperation, AllStreamOperationsFailedError, type Assertion, CLI_INSTALL_REPO_HEADER, CLI_SIGNATURE_HEADER, CLI_TIMESTAMP_HEADER, CONTENT_FIELD_LIMIT_ERROR, type CliCallSecrets, CliCallVerificationError, type CliCallVerificationFailureReason, type CollectionContainsOptions, type CollectionContainsResult, type CollectionCreateOptions, type CollectionDiffOptions, type CollectionDiffResult, type CollectionMember, type CollectionMembersOptions, type CollectionMembersPage, type CollectionMembershipRole, type CollectionMutationResult, type CollectionQuerySourceOptions, type CollectionReadDataMode, type CollectionReadSummary, type CollectionReviseOptions, type CollectionStatsOptions, type CollectionStatsResult, type CollectionTag, type CollectionType, type CollectionWriteType, type CommitApplyCompatibilityResult, type CommitDiagnostic, type CommitRealOperationResult, type CommitValidateInput, type CommitValidateOperation, type CommitValidateOperations, type CommitValidateOptions, type CommitValidateResult, type ComponentHistory, type ComponentHistoryOptions, type ComponentInfo, type ComponentInstallOptions, type ComponentInstallResult, type ComponentList, type ComponentListOptions, type ComponentUninstallOptions, type ComponentUninstallResult, type ComponentView, type CoreErrorKind, type CountOptions, type CountResult, type CredentialAuditEntry, type CredentialDeleteResult, type CredentialGrantResult, type CredentialInfo, type CredentialKeyMutationResult, type CredentialRevokeResult, type CredentialUngrantResult, type CurrentUserInfo, DEFAULT_API_URL, DEFAULT_STREAM_CHUNK_SIZE, DEPENDENCY_FAILED, type DeclaredFieldEntry, type ErrorKind, type FieldIndexCarryingMarker, type FieldIndexCarryingShape, type FieldIndexConsistency, type FieldIndexPinResult, type FilterOptions, type FilterResult, type FunctionLogMode, type GlobalSearchOptions, type GlobalSearchResult, type GlobalSearchResultItem, type Grant, type GrantCreateOptions, type GrantListOptions, type GrantListResult, type GrantRecipientSelector, type GrantRevokeResult, type HeadResult, type HistoryResult, type HistoryVersion, type HomepageFeaturedListsResult, type IndexedFieldEntry, type IndexedFieldsReport, type KeepShapesRevise, LEGACY_WREFS_REFUSAL, type LiveHandle, type LiveRepoEvent, type LiveSubscriptionLogOptions, type LiveThingHeadOptions, type LiveThingHistoryOptions, type LiveWatchResult, MAX_COMMIT_VALIDATION_ENCODED_BYTES, MAX_COMMIT_VALIDATION_OPERATIONS, MAX_CONTENT_FIELD_BYTES, MAX_STREAM_APPEND_OPERATION_COUNT, MAX_WREFS_PER_THING_VERSION, type MemberScopeEntry, ORG_AUTH_SCOPES, type Operation, OperationBuilder, type OperationBuilderClient, type OperationBuilderOp, type OperationBuilderOptions, type OperationEventReceipt, type OperationEventReceiptV1, type OperationSource, type OperationSubmitResult, type OrgAccessResult, type OrgAuthScope, type OrgInfo, type OrgList, type OrgListMembersOptions, type OrgListOptions, type OrgMemberInfo, type OrgMemberList, type OrgRef, type OrgRole, type Page, type PageRequest, PartialStreamSubmissionError, type PingResult, REPO_AUTH_SCOPES, type ReaffirmInput, type ReaffirmOperation, type RefLink, type RefsOptions, type RefsResult, type RemoveOperation, type RemoveOptions, type RemoveResult, type RenameOperation, type RenameOptions, type RenameResult, type RepoAccessResult, type RepoAuthScope, type RepoConfigureStatsView, type RepoDescribeResult, type RepoExploreBrowseOptions, type RepoExploreItem, type RepoExploreOptions, type RepoExploreResult, type RepoInfo, type RepoLicense, type RepoList, type RepoListForCallerOptions, type RepoListOptions, type RepoListPageOptions, type RepoListPageResult, type RepoLocator, type RepoRecentInfo, type RepoRef, type RepoShapeInstanceCountsView, type RepoSort, type RepoStatsBatchResult, type RepoStatsView, type RepoWithStatsInfo, type RepositoryCheckpointAccess, type RepositoryCheckpointStatus, type RepositoryExportDeltaFormats, RepositoryExportError, type RepositoryExportErrorReason, type RepositoryExportExpectation, type RepositoryExportOptions, type RepositoryExportPreparation, type RepositoryExportPrepareOptions, type RepositoryExportRestoreOptions, type RepositoryExportRowMap, type RepositoryExportRows, type RepositoryExportSegmentOptions, RepositoryExportSession, type RequestEvent, type ResolveWrefResult, type RestoreInput, type RestoreOperation, type RetractInput, type RetractOperation, type RetryPolicyOptions, type ReviseInput, type ReviseOperation, type RewriteOperation, type RewriteOptions, type RewriteResult, SDK_VERSION, type ScopeAllowedShapes, type SearchOptions, type SearchResult, type Shape, type ShapeChange, type ShapeCountsUnavailableDetails, type ShapeCreateOptions, type ShapeFields, type ShapeGetOptions, type ShapeHistory, type ShapeHistoryOptions, type ShapeList, type ShapeListOptions, type ShapeRef, type ShapeRemove, type ShapeRemoveOptions, type ShapeReviseOptions, type ShapeValidatorResult, type ShapesChoice, type StreamAppendInput, type StreamAppendResult, type StreamContinuationState, StreamSubmissionAggregator, type StreamingSubmissionHandle, type StreamingSubmissionOptions, StreamingSubmissionOutcomeUnknownError, type StreamingSubmissionRetryIdentity, type StreamingSubmissionRow, type SubscriptionBindCredentialsResult, type SubscriptionCompatCreateInput, type SubscriptionCompatUpdateInput, type SubscriptionInfo, type SubscriptionList, type SubscriptionUnbindCredentialsResult, type SynthesizedRepoContent, type ThingChanges, type ThingDetail, type ThingGet, type ThingGetManyResult, type ThingGetOptions, type ThingGetWithLease, type ThingGraphOptions, type ThingGraphResult, type ThingGraphValue, type ThingHead, type ThingHeadChangesOptions, type ThingHeadOptions, type ThingHeadRequest, type ThingHeadVersionsResult, type ThingHistory, type ThingHistoryOptions, type ThingItem, type ThingMetadata, type ThingQueryChangesOptions, type ThingShapesReader, type TokenInfo, type TokenResult, type UndeclaredFieldsWarning, type ValidationDiagnostic, type ValidationResult, type VerifiedCliCall, type ViewEvaluateOptions, type ViewEvaluateResult, WarmHubClient, type WarmHubClientOptions, type WarmHubDecorations, WarmHubError, type WarmHubErrorDetails, type WherePredicate, type WhoamiInfo, type WhoamiScopeEntry, type WireScopeEntry, type WriteOperation, WriteOperationError, applyRepositoryExportDelta, collectDurableTokens, commitValidateRequestBodyBytes, connectionErrorMessage, contentFieldLimitError, countStreamAppendResultStatuses, createCommitValidateInput, createKeepShapesResolver, createOperationEventRequestId, createOperationEventSubmissionId, createRepositoryExportSession, encodeCommitValidateRequestBody, getResponseDecorations, isAllStreamOperationsFailedError, isConnectionError, isDefiniteStreamAppendRejection, isKnownOrgAuthScope, isKnownRepoAuthScope, isRetryable, isShapeReference, isWarmHubError, normalizeWref, operationEventStreamRequestId, readRepositoryExportStream, resolveFunctionLogMode, restoreRepositoryExportSession, sanitizeErrorMessage, sdkVersionIsBelowMinimum, shapeName, streamAppendResultStatus, submitOperationsViaStream, toWarmHubError, validateAgainstShape, verifyCliCall };
|
|
12400
|
+
export { type AboutOptions, type AboutResult, type AccessResolveInput, type AccessResolveResult, type AccessTokenProvider, type ActionAttemptInfo, type ActionDeliveryTarget, type ActionLeaseAcquire, type ActionLeaseOp, type ActionListNotificationsOptions, type ActionListRunsOptions, type ActionLiveFeed, type ActionLiveFeedItem, type ActionLiveFeedOptions, type ActionNotificationInfo, type ActionRunInfo, type ActionRunStatsInfo, type ActionRunStatsOptions, type AddInput, type AddOperation, AllStreamOperationsFailedError, type Assertion, CHECKPOINT_CONTENT_TYPES, CLI_INSTALL_REPO_HEADER, CLI_SIGNATURE_HEADER, CLI_TIMESTAMP_HEADER, COMPONENT_INSTALL_RESULT_STATES, COMPONENT_SUMMARY_STATES, CONTENT_FIELD_LIMIT_ERROR, CREDENTIAL_SCOPES, type CheckpointContentType, type CliCallSecrets, CliCallVerificationError, type CliCallVerificationFailureReason, type CollectionContainsOptions, type CollectionContainsResult, type CollectionCreateOptions, type CollectionDiffOptions, type CollectionDiffResult, type CollectionMember, type CollectionMembersOptions, type CollectionMembersPage, type CollectionMembershipRole, type CollectionMutationResult, type CollectionQuerySourceOptions, type CollectionReadDataMode, type CollectionReadSummary, type CollectionReviseOptions, type CollectionStatsOptions, type CollectionStatsResult, type CollectionTag, type CollectionType, type CollectionWriteType, type CommitApplyCompatibilityResult, type CommitDiagnostic, type CommitRealOperationResult, type CommitValidateInput, type CommitValidateOperation, type CommitValidateOperations, type CommitValidateOptions, type CommitValidateResult, type ComponentHistory, type ComponentHistoryOptions, type ComponentInfo, type ComponentInstallOptions, type ComponentInstallResult, type ComponentInstallResultState, type ComponentList, type ComponentListOptions, type ComponentSummaryState, type ComponentUninstallOptions, type ComponentUninstallResult, type ComponentView, type CoreErrorKind, type CountOptions, type CountResult, type CredentialAuditEntry, type CredentialDeleteResult, type CredentialGrantResult, type CredentialInfo, type CredentialKeyMutationResult, type CredentialRevokeResult, type CredentialScope, type CredentialUngrantResult, type CurrentUserInfo, DEFAULT_API_URL, DEFAULT_STREAM_CHUNK_SIZE, DEPENDENCY_FAILED, type DeclaredFieldEntry, type ErrorKind, type FieldIndexCarryingMarker, type FieldIndexCarryingShape, type FieldIndexConsistency, type FieldIndexPinResult, type FilterOptions, type FilterResult, type FunctionLogMode, GLOBAL_SEARCH_RESULT_ITEM_KINDS, type GlobalSearchOptions, type GlobalSearchResult, type GlobalSearchResultItem, type GlobalSearchResultItemKind, type Grant, type GrantCreateOptions, type GrantListOptions, type GrantListResult, type GrantRecipientSelector, type GrantRevokeResult, HOMEPAGE_FEATURED_ITEM_KINDS, type HeadResult, type HistoryResult, type HistoryVersion, type HomepageFeaturedItemKind, type HomepageFeaturedListsResult, type IndexedFieldEntry, type IndexedFieldsReport, type KeepShapesRevise, LEGACY_WREFS_REFUSAL, type LiveHandle, type LiveRepoEvent, type LiveSubscriptionLogOptions, type LiveThingHeadOptions, type LiveThingHistoryOptions, type LiveWatchResult, MAX_COMMIT_VALIDATION_ENCODED_BYTES, MAX_COMMIT_VALIDATION_OPERATIONS, MAX_CONTENT_FIELD_BYTES, MAX_STREAM_APPEND_OPERATION_COUNT, MAX_WREFS_PER_THING_VERSION, type MemberScopeEntry, ORG_AUTH_SCOPES, ORG_MEMBER_STATUSES, type OldNameDetails, type Operation, OperationBuilder, type OperationBuilderClient, type OperationBuilderOp, type OperationBuilderOptions, type OperationEventReceipt, type OperationEventReceiptV1, type OperationSource, type OperationSubmitResult, type OrgAccessResult, type OrgAuthScope, type OrgInfo, type OrgList, type OrgListMembersOptions, type OrgListOptions, type OrgMemberInfo, type OrgMemberList, type OrgMemberStatus, type OrgRef, type OrgRole, type Page, type PageRequest, PartialStreamSubmissionError, type PingResult, REPO_AUTH_SCOPES, type ReaffirmInput, type ReaffirmOperation, type RefLink, type RefsOptions, type RefsResult, type RemoveOperation, type RemoveOptions, type RemoveResult, type RenameOperation, type RenameOptions, type RenameResult, type RepoAccessResult, type RepoAuthScope, type RepoConfigureStatsView, type RepoDescribeResult, type RepoExploreBrowseOptions, type RepoExploreItem, type RepoExploreOptions, type RepoExploreResult, type RepoInfo, type RepoLicense, type RepoList, type RepoListForCallerOptions, type RepoListOptions, type RepoListPageOptions, type RepoListPageResult, type RepoLocator, type RepoRecentInfo, type RepoRef, type RepoShapeInstanceCountsView, type RepoSort, type RepoStatsBatchResult, type RepoStatsView, type RepoWithStatsInfo, type RepositoryCheckpointAccess, type RepositoryCheckpointStatus, type RepositoryExportDeltaFormats, RepositoryExportError, type RepositoryExportErrorReason, type RepositoryExportExpectation, type RepositoryExportOptions, type RepositoryExportPreparation, type RepositoryExportPrepareOptions, type RepositoryExportRestoreOptions, type RepositoryExportRowMap, type RepositoryExportRows, type RepositoryExportSegmentOptions, RepositoryExportSession, type RequestEvent, type ResolveWrefResult, type RestoreInput, type RestoreOperation, type RetractInput, type RetractOperation, type RetryPolicyOptions, type ReviseInput, type ReviseOperation, type RewriteOperation, type RewriteOptions, type RewriteResult, SDK_VERSION, type ScopeAllowedShapes, type SearchOptions, type SearchResult, type Shape, type ShapeChange, type ShapeCountsUnavailableDetails, type ShapeCreateOptions, type ShapeFields, type ShapeGetOptions, type ShapeHistory, type ShapeHistoryOptions, type ShapeList, type ShapeListOptions, type ShapeRef, type ShapeRemove, type ShapeRemoveOptions, type ShapeReviseOptions, type ShapeValidatorResult, type ShapesChoice, type StreamAppendInput, type StreamAppendResult, type StreamContinuationState, StreamSubmissionAggregator, type StreamingSubmissionHandle, type StreamingSubmissionOptions, StreamingSubmissionOutcomeUnknownError, type StreamingSubmissionRetryIdentity, type StreamingSubmissionRow, type SubscriptionBindCredentialsResult, type SubscriptionCompatCreateInput, type SubscriptionCompatUpdateInput, type SubscriptionInfo, type SubscriptionList, type SubscriptionUnbindCredentialsResult, type SynthesizedRepoContent, type ThingChanges, type ThingDetail, type ThingDetailFields, type ThingGet, type ThingGetManyResult, type ThingGetOptions, type ThingGetWithLease, type ThingGraphOptions, type ThingGraphResult, type ThingGraphValue, type ThingHead, type ThingHeadChangesOptions, type ThingHeadOptions, type ThingHeadRequest, type ThingHeadVersionsResult, type ThingHistory, type ThingHistoryOptions, type ThingItem, type ThingMetadata, type ThingQueryChangesOptions, type ThingShapesReader, type TokenInfo, type TokenResult, type UndeclaredFieldsWarning, type ValidationDiagnostic, type ValidationResult, type VerifiedCliCall, type ViewEvaluateOptions, type ViewEvaluateResult, WarmHubClient, type WarmHubClientOptions, type WarmHubDecorations, WarmHubError, type WarmHubErrorDetails, type WherePredicate, type WhoamiInfo, type WhoamiScopeEntry, type WireScopeEntry, type WriteOperation, WriteOperationError, applyRepositoryExportDelta, collectDurableTokens, commitValidateRequestBodyBytes, connectionErrorMessage, contentFieldLimitError, countStreamAppendResultStatuses, createCommitValidateInput, createKeepShapesResolver, createOperationEventRequestId, createOperationEventSubmissionId, createRepositoryExportSession, encodeCommitValidateRequestBody, getResponseDecorations, isAllStreamOperationsFailedError, isConnectionError, isDefiniteStreamAppendRejection, isKnownCheckpointContentType, isKnownComponentInstallResultState, isKnownComponentSummaryState, isKnownCredentialScope, isKnownGlobalSearchResultItemKind, isKnownHomepageFeaturedItemKind, isKnownOrgAuthScope, isKnownOrgMemberStatus, isKnownRepoAuthScope, isRetryable, isShapeReference, isWarmHubError, normalizeWref, operationEventStreamRequestId, readRepositoryExportStream, resolveFunctionLogMode, restoreRepositoryExportSession, sanitizeErrorMessage, sdkVersionIsBelowMinimum, shapeName, streamAppendResultStatus, submitOperationsViaStream, toWarmHubError, validateAgainstShape, verifyCliCall };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{m as AllStreamOperationsFailedError,I as CliCallVerificationError,L as DEFAULT_API_URL,j as DEFAULT_STREAM_CHUNK_SIZE,d as DEPENDENCY_FAILED,f as LEGACY_WREFS_REFUSAL,t as MAX_COMMIT_VALIDATION_ENCODED_BYTES,s as MAX_COMMIT_VALIDATION_OPERATIONS,k as MAX_STREAM_APPEND_OPERATION_COUNT,z as OperationBuilder,l as PartialStreamSubmissionError,A as RepositoryExportError,B as RepositoryExportSession,H as SDK_VERSION,i as StreamSubmissionAggregator,G as StreamingSubmissionOutcomeUnknownError,V as WarmHubClient,a as WarmHubError,c as WriteOperationError,D as applyRepositoryExportDelta,x as collectDurableTokens,w as commitValidateRequestBodyBytes,T as connectionErrorMessage,o as countStreamAppendResultStatuses,u as createCommitValidateInput,r as createKeepShapesResolver,h as createOperationEventRequestId,g as createOperationEventSubmissionId,C as createRepositoryExportSession,v as encodeCommitValidateRequestBody,y as getResponseDecorations,P as isAllStreamOperationsFailedError,S as isConnectionError,p as isDefiniteStreamAppendRejection,R as isRetryable,e as isShapeReference,Q as isWarmHubError,K as normalizeWref,E as readRepositoryExportStream,M as resolveFunctionLogMode,F as restoreRepositoryExportSession,N as sanitizeErrorMessage,U as sdkVersionIsBelowMinimum,b as shapeName,n as streamAppendResultStatus,q as submitOperationsViaStream,O as toWarmHubError,J as verifyCliCall}from'./chunk-
|
|
1
|
+
export{m as AllStreamOperationsFailedError,I as CliCallVerificationError,L as DEFAULT_API_URL,j as DEFAULT_STREAM_CHUNK_SIZE,d as DEPENDENCY_FAILED,f as LEGACY_WREFS_REFUSAL,t as MAX_COMMIT_VALIDATION_ENCODED_BYTES,s as MAX_COMMIT_VALIDATION_OPERATIONS,k as MAX_STREAM_APPEND_OPERATION_COUNT,z as OperationBuilder,l as PartialStreamSubmissionError,A as RepositoryExportError,B as RepositoryExportSession,H as SDK_VERSION,i as StreamSubmissionAggregator,G as StreamingSubmissionOutcomeUnknownError,V as WarmHubClient,a as WarmHubError,c as WriteOperationError,D as applyRepositoryExportDelta,x as collectDurableTokens,w as commitValidateRequestBodyBytes,T as connectionErrorMessage,o as countStreamAppendResultStatuses,u as createCommitValidateInput,r as createKeepShapesResolver,h as createOperationEventRequestId,g as createOperationEventSubmissionId,C as createRepositoryExportSession,v as encodeCommitValidateRequestBody,y as getResponseDecorations,P as isAllStreamOperationsFailedError,S as isConnectionError,p as isDefiniteStreamAppendRejection,R as isRetryable,e as isShapeReference,Q as isWarmHubError,K as normalizeWref,E as readRepositoryExportStream,M as resolveFunctionLogMode,F as restoreRepositoryExportSession,N as sanitizeErrorMessage,U as sdkVersionIsBelowMinimum,b as shapeName,n as streamAppendResultStatus,q as submitOperationsViaStream,O as toWarmHubError,J as verifyCliCall}from'./chunk-V4CVTIJZ.js';export{ba as CHECKPOINT_CONTENT_TYPES,B as CLI_INSTALL_REPO_HEADER,C as CLI_SIGNATURE_HEADER,D as CLI_TIMESTAMP_HEADER,G as COMPONENT_INSTALL_RESULT_STATES,M as COMPONENT_SUMMARY_STATES,k as CONTENT_FIELD_LIMIT_ERROR,O as CREDENTIAL_SCOPES,Q as GLOBAL_SEARCH_RESULT_ITEM_KINDS,S as HOMEPAGE_FEATURED_ITEM_KINDS,j as MAX_CONTENT_FIELD_BYTES,y as MAX_WREFS_PER_THING_VERSION,U as ORG_AUTH_SCOPES,X as ORG_MEMBER_STATUSES,I as REPO_AUTH_SCOPES,l as contentFieldLimitError,ca as isKnownCheckpointContentType,H as isKnownComponentInstallResultState,N as isKnownComponentSummaryState,P as isKnownCredentialScope,R as isKnownGlobalSearchResultItemKind,T as isKnownHomepageFeaturedItemKind,V as isKnownOrgAuthScope,Y as isKnownOrgMemberStatus,J as isKnownRepoAuthScope,W as operationEventStreamRequestId,ta as validateAgainstShape}from'./chunk-EUC7LZDL.js';//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/react.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {V}from'./chunk-
|
|
1
|
+
import {V}from'./chunk-V4CVTIJZ.js';export{L as DEFAULT_API_URL,H as SDK_VERSION,V as WarmHubClient,a as WarmHubError,O as toWarmHubError}from'./chunk-V4CVTIJZ.js';import'./chunk-EUC7LZDL.js';import {createContext,useMemo,useState,useEffect,useContext}from'react';import {jsx}from'react/jsx-runtime';var p=createContext(null),f=createContext({isAuthenticated:false,isLoading:true});function P({apiUrl:e,children:t,auth:o,client:s,decorateResponses:r}){let n=s?.name,u=s?.version,i=o.getAccessToken,a=useMemo(()=>new V({apiUrl:e,accessToken:async()=>await i()??void 0,client:{name:n,version:u},decorateResponses:r}),[e,n,u,r,i]);return jsx(p.Provider,{value:a,children:jsx(g,{auth:o,client:a,children:t})})}function g({auth:e,client:t,children:o}){let[s,r]=useState(null),n=e.isAuthenticated&&s===t;useEffect(()=>{if(!e.isAuthenticated){r(null);return}let i=false;return t.auth.sync().then(()=>{i||r(t);}).catch(a=>{console.error("auth.sync failed:",a),i||r(t);}),()=>{i=true;}},[e.isAuthenticated,t]);let u=useMemo(()=>({isAuthenticated:e.isAuthenticated&&n,isLoading:e.isLoading||e.isAuthenticated&&!n}),[e.isAuthenticated,e.isLoading,n]);return e.isLoading||e.isAuthenticated&&!n?null:jsx(f.Provider,{value:u,children:o})}function v(){let e=useContext(p);if(!e)throw new Error("useWarmHubClient must be used within a WarmHubProvider");return e}function S(){return useContext(f)}export{P as WarmHubProvider,S as useWarmHubAuth,v as useWarmHubClient};//# sourceMappingURL=react.js.map
|
|
2
2
|
//# sourceMappingURL=react.js.map
|
package/package.json
CHANGED