@warmhub/sdk-ts 0.124.0 → 0.126.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 +1 -1
- package/dist/checkpoint.js +1 -1
- package/dist/{chunk-CNDUTYB2.js → chunk-4OSQJILK.js} +18 -18
- package/dist/chunk-4OSQJILK.js.map +1 -0
- package/dist/{chunk-OZZOYWZS.js → chunk-7TGKSSA6.js} +4 -4
- package/dist/chunk-7TGKSSA6.js.map +1 -0
- package/dist/index.d.ts +120 -67
- package/dist/index.js +1 -1
- package/dist/react.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-CNDUTYB2.js.map +0 -1
- package/dist/chunk-OZZOYWZS.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1094,7 +1094,7 @@ type OperationEventReceiptV1$1 = {
|
|
|
1094
1094
|
submissionId?: string;
|
|
1095
1095
|
};
|
|
1096
1096
|
type CollectionContainsResult$1 = {
|
|
1097
|
-
|
|
1097
|
+
shape: string;
|
|
1098
1098
|
wref: string;
|
|
1099
1099
|
version: number;
|
|
1100
1100
|
results: Array<{
|
|
@@ -1104,7 +1104,7 @@ type CollectionContainsResult$1 = {
|
|
|
1104
1104
|
}>;
|
|
1105
1105
|
};
|
|
1106
1106
|
type CollectionDiffResult$1 = {
|
|
1107
|
-
|
|
1107
|
+
shape: string;
|
|
1108
1108
|
leftWref: string;
|
|
1109
1109
|
rightWref: string;
|
|
1110
1110
|
leftVersion: number;
|
|
@@ -1113,50 +1113,50 @@ type CollectionDiffResult$1 = {
|
|
|
1113
1113
|
added: Array<{
|
|
1114
1114
|
wref: string;
|
|
1115
1115
|
position?: number;
|
|
1116
|
-
fieldPath:
|
|
1116
|
+
fieldPath: string;
|
|
1117
1117
|
}>;
|
|
1118
1118
|
removed: Array<{
|
|
1119
1119
|
wref: string;
|
|
1120
1120
|
position?: number;
|
|
1121
|
-
fieldPath:
|
|
1121
|
+
fieldPath: string;
|
|
1122
1122
|
}>;
|
|
1123
1123
|
unchanged: Array<{
|
|
1124
1124
|
wref: string;
|
|
1125
1125
|
position?: number;
|
|
1126
|
-
fieldPath:
|
|
1126
|
+
fieldPath: string;
|
|
1127
1127
|
}>;
|
|
1128
1128
|
changed: Array<{
|
|
1129
1129
|
position: number;
|
|
1130
1130
|
left?: {
|
|
1131
1131
|
wref: string;
|
|
1132
1132
|
position?: number;
|
|
1133
|
-
fieldPath:
|
|
1133
|
+
fieldPath: string;
|
|
1134
1134
|
};
|
|
1135
1135
|
right?: {
|
|
1136
1136
|
wref: string;
|
|
1137
1137
|
position?: number;
|
|
1138
|
-
fieldPath:
|
|
1138
|
+
fieldPath: string;
|
|
1139
1139
|
};
|
|
1140
1140
|
}>;
|
|
1141
1141
|
};
|
|
1142
1142
|
type CollectionMember$1 = {
|
|
1143
1143
|
wref: string;
|
|
1144
1144
|
position?: number;
|
|
1145
|
-
fieldPath:
|
|
1145
|
+
fieldPath: string;
|
|
1146
1146
|
};
|
|
1147
1147
|
type CollectionMembersPage$1 = {
|
|
1148
|
-
|
|
1148
|
+
shape: string;
|
|
1149
1149
|
wref: string;
|
|
1150
1150
|
version: number;
|
|
1151
1151
|
items: Array<{
|
|
1152
1152
|
wref: string;
|
|
1153
1153
|
position?: number;
|
|
1154
|
-
fieldPath:
|
|
1154
|
+
fieldPath: string;
|
|
1155
1155
|
}>;
|
|
1156
1156
|
nextCursor?: string;
|
|
1157
1157
|
};
|
|
1158
1158
|
type CollectionStatsResult$1 = {
|
|
1159
|
-
|
|
1159
|
+
shape: string;
|
|
1160
1160
|
wref: string;
|
|
1161
1161
|
version: number;
|
|
1162
1162
|
memberCount: number;
|
|
@@ -1194,7 +1194,7 @@ type ComponentDetail = {
|
|
|
1194
1194
|
ownedThings: Array<{
|
|
1195
1195
|
wref: string;
|
|
1196
1196
|
name: string;
|
|
1197
|
-
kind: '
|
|
1197
|
+
kind: 'thing' | 'assertion' | 'shape';
|
|
1198
1198
|
shapeName?: string;
|
|
1199
1199
|
declaredShapes?: Array<string>;
|
|
1200
1200
|
validatedShapes?: Array<string>;
|
|
@@ -1205,7 +1205,17 @@ type ComponentDetail = {
|
|
|
1205
1205
|
active: boolean;
|
|
1206
1206
|
aboutWref?: string;
|
|
1207
1207
|
affirmedWrefs?: Array<string>;
|
|
1208
|
-
roles?: Array<'from' | 'to' | 'ends' | 'first' | 'second'>;
|
|
1208
|
+
roles?: Array<'from' | 'to' | 'ends' | 'first' | 'second' | 'members' | 'items'>;
|
|
1209
|
+
collections?: Array<{
|
|
1210
|
+
shape: string;
|
|
1211
|
+
memberCount?: number;
|
|
1212
|
+
dataMode: 'full' | 'summary';
|
|
1213
|
+
fullData: boolean;
|
|
1214
|
+
truncated: boolean;
|
|
1215
|
+
inlineLimit?: number;
|
|
1216
|
+
preview?: Array<string>;
|
|
1217
|
+
previewCount?: number;
|
|
1218
|
+
}>;
|
|
1209
1219
|
metadata: {
|
|
1210
1220
|
durableId: string;
|
|
1211
1221
|
createdOn: number;
|
|
@@ -5320,7 +5330,7 @@ type OrgMember = {
|
|
|
5320
5330
|
invitedBy?: string;
|
|
5321
5331
|
createdAt: number;
|
|
5322
5332
|
};
|
|
5323
|
-
type CollectionMembershipRole$1 = 'from' | 'to' | 'ends' | 'first' | 'second';
|
|
5333
|
+
type CollectionMembershipRole$1 = 'from' | 'to' | 'ends' | 'first' | 'second' | 'members' | 'items';
|
|
5324
5334
|
type RefsResult$1 = {
|
|
5325
5335
|
items: Array<{
|
|
5326
5336
|
wref: string;
|
|
@@ -5372,6 +5382,16 @@ type ThingHistoryResult = {
|
|
|
5372
5382
|
shapeName?: string;
|
|
5373
5383
|
declaredShapes?: Array<string>;
|
|
5374
5384
|
validatedShapes?: Array<string>;
|
|
5385
|
+
collections?: Array<{
|
|
5386
|
+
shape: string;
|
|
5387
|
+
memberCount?: number;
|
|
5388
|
+
dataMode: 'full' | 'summary';
|
|
5389
|
+
fullData: boolean;
|
|
5390
|
+
truncated: boolean;
|
|
5391
|
+
inlineLimit?: number;
|
|
5392
|
+
preview?: Array<string>;
|
|
5393
|
+
previewCount?: number;
|
|
5394
|
+
}>;
|
|
5375
5395
|
operation: 'add' | 'revise' | 'retract' | 'reaffirm';
|
|
5376
5396
|
retractReason?: string;
|
|
5377
5397
|
data?: unknown;
|
|
@@ -5394,7 +5414,7 @@ type ThingGetManyResult$1 = {
|
|
|
5394
5414
|
wref: string;
|
|
5395
5415
|
pinnedWref?: string;
|
|
5396
5416
|
name: string;
|
|
5397
|
-
kind: '
|
|
5417
|
+
kind: 'thing' | 'assertion' | 'shape';
|
|
5398
5418
|
shape?: string;
|
|
5399
5419
|
shapeName?: string;
|
|
5400
5420
|
validatedShape?: string;
|
|
@@ -5402,17 +5422,16 @@ type ThingGetManyResult$1 = {
|
|
|
5402
5422
|
validatedShapes: Array<string>;
|
|
5403
5423
|
version: number;
|
|
5404
5424
|
data?: unknown;
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
memberCount: number;
|
|
5425
|
+
collections?: Array<{
|
|
5426
|
+
shape: string;
|
|
5427
|
+
memberCount?: number;
|
|
5409
5428
|
dataMode: 'full' | 'summary';
|
|
5410
5429
|
fullData: boolean;
|
|
5411
5430
|
truncated: boolean;
|
|
5412
5431
|
inlineLimit?: number;
|
|
5413
5432
|
preview?: Array<string>;
|
|
5414
5433
|
previewCount?: number;
|
|
5415
|
-
}
|
|
5434
|
+
}>;
|
|
5416
5435
|
active: boolean;
|
|
5417
5436
|
synthesized?: boolean;
|
|
5418
5437
|
aboutWref?: string;
|
|
@@ -5754,7 +5773,7 @@ type ViewEvaluateResult$1 = {
|
|
|
5754
5773
|
items: Array<{
|
|
5755
5774
|
wref: string;
|
|
5756
5775
|
name: string;
|
|
5757
|
-
kind: '
|
|
5776
|
+
kind: 'thing' | 'assertion' | 'shape';
|
|
5758
5777
|
shapeName?: string;
|
|
5759
5778
|
declaredShapes?: Array<string>;
|
|
5760
5779
|
validatedShapes?: Array<string>;
|
|
@@ -5765,7 +5784,17 @@ type ViewEvaluateResult$1 = {
|
|
|
5765
5784
|
active: boolean;
|
|
5766
5785
|
aboutWref?: string;
|
|
5767
5786
|
affirmedWrefs?: Array<string>;
|
|
5768
|
-
roles?: Array<'from' | 'to' | 'ends' | 'first' | 'second'>;
|
|
5787
|
+
roles?: Array<'from' | 'to' | 'ends' | 'first' | 'second' | 'members' | 'items'>;
|
|
5788
|
+
collections?: Array<{
|
|
5789
|
+
shape: string;
|
|
5790
|
+
memberCount?: number;
|
|
5791
|
+
dataMode: 'full' | 'summary';
|
|
5792
|
+
fullData: boolean;
|
|
5793
|
+
truncated: boolean;
|
|
5794
|
+
inlineLimit?: number;
|
|
5795
|
+
preview?: Array<string>;
|
|
5796
|
+
previewCount?: number;
|
|
5797
|
+
}>;
|
|
5769
5798
|
metadata: {
|
|
5770
5799
|
durableId: string;
|
|
5771
5800
|
createdOn: number;
|
|
@@ -5978,38 +6007,19 @@ type JsonValue = null | boolean | number | string | JsonValue[] | {
|
|
|
5978
6007
|
declare const REPOSITORY_EXPORT_MODES: readonly ["heads", "ops"];
|
|
5979
6008
|
declare const repositoryExportRowSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5980
6009
|
kind: z.ZodLiteral<"shape">;
|
|
5981
|
-
shapes: z.ZodArray<z.
|
|
5982
|
-
name: z.ZodString;
|
|
5983
|
-
v: z.ZodNumber;
|
|
5984
|
-
durableId: z.ZodString;
|
|
5985
|
-
provenance: z.ZodEnum<{
|
|
5986
|
-
captured: "captured";
|
|
5987
|
-
"migration-stamped": "migration-stamped";
|
|
5988
|
-
reconstructed: "reconstructed";
|
|
5989
|
-
}>;
|
|
5990
|
-
declared: z.ZodBoolean;
|
|
5991
|
-
}, z.core.$strict>>;
|
|
6010
|
+
shapes: z.ZodArray<z.ZodString>;
|
|
5992
6011
|
active: z.ZodLiteral<true>;
|
|
5993
6012
|
data: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
5994
6013
|
wref: z.ZodString;
|
|
5995
6014
|
durableId: z.ZodString;
|
|
5996
6015
|
version: z.ZodNumber;
|
|
5997
6016
|
}, z.core.$strict>, z.ZodObject<{
|
|
5998
|
-
kind: z.
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
v: z.ZodNumber;
|
|
6005
|
-
durableId: z.ZodString;
|
|
6006
|
-
provenance: z.ZodEnum<{
|
|
6007
|
-
captured: "captured";
|
|
6008
|
-
"migration-stamped": "migration-stamped";
|
|
6009
|
-
reconstructed: "reconstructed";
|
|
6010
|
-
}>;
|
|
6011
|
-
declared: z.ZodBoolean;
|
|
6012
|
-
}, z.core.$strict>>;
|
|
6017
|
+
kind: z.ZodLiteral<"thing">;
|
|
6018
|
+
shapes: z.ZodArray<z.ZodString>;
|
|
6019
|
+
collections: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6020
|
+
shape: z.ZodString;
|
|
6021
|
+
memberCount: z.ZodNumber;
|
|
6022
|
+
}, z.core.$strict>>>;
|
|
6013
6023
|
active: z.ZodLiteral<true>;
|
|
6014
6024
|
data: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
6015
6025
|
wref: z.ZodString;
|
|
@@ -6017,17 +6027,7 @@ declare const repositoryExportRowSchema: z.ZodUnion<readonly [z.ZodDiscriminated
|
|
|
6017
6027
|
version: z.ZodNumber;
|
|
6018
6028
|
}, z.core.$strict>, z.ZodObject<{
|
|
6019
6029
|
kind: z.ZodLiteral<"assertion">;
|
|
6020
|
-
shapes: z.ZodArray<z.
|
|
6021
|
-
name: z.ZodString;
|
|
6022
|
-
v: z.ZodNumber;
|
|
6023
|
-
durableId: z.ZodString;
|
|
6024
|
-
provenance: z.ZodEnum<{
|
|
6025
|
-
captured: "captured";
|
|
6026
|
-
"migration-stamped": "migration-stamped";
|
|
6027
|
-
reconstructed: "reconstructed";
|
|
6028
|
-
}>;
|
|
6029
|
-
declared: z.ZodBoolean;
|
|
6030
|
-
}, z.core.$strict>>;
|
|
6030
|
+
shapes: z.ZodArray<z.ZodString>;
|
|
6031
6031
|
about: z.ZodObject<{
|
|
6032
6032
|
wref: z.ZodString;
|
|
6033
6033
|
v: z.ZodOptional<z.ZodNumber>;
|
|
@@ -6048,7 +6048,6 @@ declare const repositoryExportRowSchema: z.ZodUnion<readonly [z.ZodDiscriminated
|
|
|
6048
6048
|
shape: "shape";
|
|
6049
6049
|
thing: "thing";
|
|
6050
6050
|
assertion: "assertion";
|
|
6051
|
-
collection: "collection";
|
|
6052
6051
|
}>;
|
|
6053
6052
|
active: z.ZodLiteral<false>;
|
|
6054
6053
|
wref: z.ZodString;
|
|
@@ -6057,7 +6056,7 @@ declare const repositoryExportRowSchema: z.ZodUnion<readonly [z.ZodDiscriminated
|
|
|
6057
6056
|
}, z.core.$strict>]>;
|
|
6058
6057
|
declare const repositoryExportHeaderSchema: z.ZodObject<{
|
|
6059
6058
|
kind: z.ZodLiteral<"header">;
|
|
6060
|
-
formatVersion: z.ZodLiteral<
|
|
6059
|
+
formatVersion: z.ZodLiteral<4>;
|
|
6061
6060
|
repo: z.ZodString;
|
|
6062
6061
|
mode: z.ZodEnum<{
|
|
6063
6062
|
ops: "ops";
|
|
@@ -8584,9 +8583,23 @@ type ThingMetadata = {
|
|
|
8584
8583
|
type CollectionReadDataMode = 'auto' | 'full';
|
|
8585
8584
|
/** @internal */
|
|
8586
8585
|
type CollectionReadSummary = {
|
|
8587
|
-
|
|
8588
|
-
|
|
8589
|
-
|
|
8586
|
+
/**
|
|
8587
|
+
* The PINNED collection Shape wref this entry describes — `Set@v3`,
|
|
8588
|
+
* `Quad@v1`. A Thing certified under two collection Shapes carries two
|
|
8589
|
+
* entries.
|
|
8590
|
+
*
|
|
8591
|
+
* The member LAYOUT is deliberately absent. It is this Shape version's own
|
|
8592
|
+
* contract — which fields are references, single or array, in declared order
|
|
8593
|
+
* — so a reader that needs to place members reads the Shape named here,
|
|
8594
|
+
* once, instead of receiving a copy of the field list on every row.
|
|
8595
|
+
*/
|
|
8596
|
+
shape: string;
|
|
8597
|
+
/**
|
|
8598
|
+
* Absent on a read whose body is not complete — head `dataMode: none` or
|
|
8599
|
+
* `summary`, or a history row the retraction policy blanked. Absent means
|
|
8600
|
+
* "not known from this read", never "zero".
|
|
8601
|
+
*/
|
|
8602
|
+
memberCount?: number;
|
|
8590
8603
|
dataMode: 'full' | 'summary';
|
|
8591
8604
|
fullData: boolean;
|
|
8592
8605
|
truncated: boolean;
|
|
@@ -8615,6 +8628,11 @@ type ThingItem = {
|
|
|
8615
8628
|
*/
|
|
8616
8629
|
affirmedWrefs?: string[];
|
|
8617
8630
|
roles?: CollectionMembershipRole[];
|
|
8631
|
+
/**
|
|
8632
|
+
* One entry per collection Shape in the certificate closure. Absent on a
|
|
8633
|
+
* Thing that is not a collection; never empty when present.
|
|
8634
|
+
*/
|
|
8635
|
+
collections?: CollectionReadSummary[];
|
|
8618
8636
|
metadata?: ThingMetadata;
|
|
8619
8637
|
[key: string]: unknown;
|
|
8620
8638
|
};
|
|
@@ -8713,7 +8731,8 @@ type ThingDetail = {
|
|
|
8713
8731
|
version: number;
|
|
8714
8732
|
active: boolean;
|
|
8715
8733
|
data?: unknown;
|
|
8716
|
-
collection
|
|
8734
|
+
/** One entry per collection Shape in the certificate closure. */
|
|
8735
|
+
collections?: CollectionReadSummary[];
|
|
8717
8736
|
/** True on synthesized empty stubs from getReadme/getAgents when no row exists yet. */
|
|
8718
8737
|
synthesized?: boolean;
|
|
8719
8738
|
aboutWref?: string;
|
|
@@ -8988,6 +9007,12 @@ type SearchResult = Omit<HeadResult, 'repoSeq'>;
|
|
|
8988
9007
|
type RefsResult = RefsResult$1;
|
|
8989
9008
|
/** @internal */
|
|
8990
9009
|
type CollectionType = CollectionType$1;
|
|
9010
|
+
/**
|
|
9011
|
+
* @internal What `collection.create` accepts. The legacy arc/bond/pair sugar is
|
|
9012
|
+
* accepted during the compatibility window (issue #10668) and lowered by the
|
|
9013
|
+
* backend to ordinary Things with a deprecation warning.
|
|
9014
|
+
*/
|
|
9015
|
+
type CollectionWriteType = CollectionType;
|
|
8991
9016
|
/** @internal */
|
|
8992
9017
|
type CollectionMutationResult = CollectionMutationCompatibilityResult;
|
|
8993
9018
|
/** @internal */
|
|
@@ -9197,7 +9222,7 @@ type CollectionMemberSourceOptions = {
|
|
|
9197
9222
|
type CollectionCreateOptions = {
|
|
9198
9223
|
/** Caller-owned UUID retained across ambiguous retries. */
|
|
9199
9224
|
eventRequestId: string;
|
|
9200
|
-
type:
|
|
9225
|
+
type: CollectionWriteType;
|
|
9201
9226
|
name: string;
|
|
9202
9227
|
from?: string;
|
|
9203
9228
|
add?: string[];
|
|
@@ -9212,17 +9237,38 @@ type CollectionMembersOptions = {
|
|
|
9212
9237
|
version?: number;
|
|
9213
9238
|
limit?: number;
|
|
9214
9239
|
cursor?: string;
|
|
9240
|
+
/**
|
|
9241
|
+
* Which collection Shape to read this Thing under. Optional when it composes
|
|
9242
|
+
* exactly one; required when it composes several, because reading an
|
|
9243
|
+
* Arc+Bond composite as whichever came first would answer a different
|
|
9244
|
+
* question per call.
|
|
9245
|
+
*/
|
|
9246
|
+
shape?: string;
|
|
9215
9247
|
};
|
|
9216
9248
|
/** @internal */
|
|
9217
9249
|
type CollectionContainsOptions = {
|
|
9218
9250
|
version?: number;
|
|
9219
9251
|
position?: number;
|
|
9252
|
+
/**
|
|
9253
|
+
* Which collection Shape to read this Thing under. Optional when it composes
|
|
9254
|
+
* exactly one; required when it composes several, because reading an
|
|
9255
|
+
* Arc+Bond composite as whichever came first would answer a different
|
|
9256
|
+
* question per call.
|
|
9257
|
+
*/
|
|
9258
|
+
shape?: string;
|
|
9220
9259
|
};
|
|
9221
9260
|
/** @internal */
|
|
9222
9261
|
type CollectionDiffOptions = {
|
|
9223
9262
|
leftVersion?: number;
|
|
9224
9263
|
rightVersion?: number;
|
|
9225
9264
|
mode?: 'auto' | 'membership' | 'ordered';
|
|
9265
|
+
/**
|
|
9266
|
+
* Which collection Shape to read this Thing under. Optional when it composes
|
|
9267
|
+
* exactly one; required when it composes several, because reading an
|
|
9268
|
+
* Arc+Bond composite as whichever came first would answer a different
|
|
9269
|
+
* question per call.
|
|
9270
|
+
*/
|
|
9271
|
+
shape?: string;
|
|
9226
9272
|
};
|
|
9227
9273
|
/** @internal */
|
|
9228
9274
|
type CollectionReviseOptions = {
|
|
@@ -9236,6 +9282,13 @@ type CollectionReviseOptions = {
|
|
|
9236
9282
|
/** @internal */
|
|
9237
9283
|
type CollectionStatsOptions = {
|
|
9238
9284
|
version?: number;
|
|
9285
|
+
/**
|
|
9286
|
+
* Which collection Shape to read this Thing under. Optional when it composes
|
|
9287
|
+
* exactly one; required when it composes several, because reading an
|
|
9288
|
+
* Arc+Bond composite as whichever came first would answer a different
|
|
9289
|
+
* question per call.
|
|
9290
|
+
*/
|
|
9291
|
+
shape?: string;
|
|
9239
9292
|
};
|
|
9240
9293
|
/** @internal */
|
|
9241
9294
|
type PingResult = {
|
|
@@ -11287,4 +11340,4 @@ declare class WarmHubClient {
|
|
|
11287
11340
|
private watchRepoQuery;
|
|
11288
11341
|
}
|
|
11289
11342
|
|
|
11290
|
-
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 AddOp, 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 CollectionAddOp, type CollectionAddType, 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 CommitApplyCompatibilityResult, type CommitDiagnostic, type CommitRealOperationResult, type CommitValidateInput, 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, 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 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, ORG_AUTH_SCOPES, type Operation, OperationBuilder, type OperationBuilderAddInput, 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 ReaffirmOperation, type RefLink, type RefsOptions, type RefsResult, 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, 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 RetractOp, type RetractOperation, type RetryPolicyOptions, type ReviseOp, type ReviseOperation, SDK_VERSION, type SearchOptions, type SearchResult, type Shape, type ShapeChange, 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 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 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, applyRepositoryExportDelta, collectDurableTokens, commitValidateRequestBodyBytes, connectionErrorMessage, contentFieldLimitError, countStreamAppendResultStatuses, createCommitValidateInput, createOperationEventRequestId, createOperationEventSubmissionId, createRepositoryExportSession, encodeCommitValidateRequestBody, getResponseDecorations, isConnectionError, isDefiniteStreamAppendRejection, isKnownOrgAuthScope, isKnownRepoAuthScope, isRetryable, isWarmHubError, normalizeWref, operationEventStreamRequestId, readRepositoryExportStream, resolveFunctionLogMode, restoreRepositoryExportSession, sanitizeErrorMessage, sdkVersionIsBelowMinimum, streamAppendResultStatus, submitOperationsViaStream, toWarmHubError, validateAgainstShape, verifyCliCall };
|
|
11343
|
+
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 AddOp, 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 CollectionAddOp, type CollectionAddType, 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 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, 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 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, ORG_AUTH_SCOPES, type Operation, OperationBuilder, type OperationBuilderAddInput, 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 ReaffirmOperation, type RefLink, type RefsOptions, type RefsResult, 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, 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 RetractOp, type RetractOperation, type RetryPolicyOptions, type ReviseOp, type ReviseOperation, SDK_VERSION, type SearchOptions, type SearchResult, type Shape, type ShapeChange, 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 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 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, applyRepositoryExportDelta, collectDurableTokens, commitValidateRequestBodyBytes, connectionErrorMessage, contentFieldLimitError, countStreamAppendResultStatuses, createCommitValidateInput, createOperationEventRequestId, createOperationEventSubmissionId, createRepositoryExportSession, encodeCommitValidateRequestBody, getResponseDecorations, isConnectionError, isDefiniteStreamAppendRejection, isKnownOrgAuthScope, isKnownRepoAuthScope, isRetryable, isWarmHubError, normalizeWref, operationEventStreamRequestId, readRepositoryExportStream, resolveFunctionLogMode, restoreRepositoryExportSession, sanitizeErrorMessage, sdkVersionIsBelowMinimum, streamAppendResultStatus, submitOperationsViaStream, toWarmHubError, validateAgainstShape, verifyCliCall };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{t as AllStreamOperationsFailedError,A as CliCallVerificationError,E as DEFAULT_API_URL,q as DEFAULT_STREAM_CHUNK_SIZE,b as MAX_COMMIT_VALIDATION_ENCODED_BYTES,a as MAX_COMMIT_VALIDATION_OPERATIONS,r as MAX_STREAM_APPEND_OPERATION_COUNT,C as OperationBuilder,s as PartialStreamSubmissionError,i as RepositoryExportError,j as RepositoryExportSession,z as SDK_VERSION,n as StreamSubmissionAggregator,y as StreamingSubmissionOutcomeUnknownError,O as WarmHubClient,H as WarmHubError,h as applyRepositoryExportDelta,f as collectDurableTokens,e as commitValidateRequestBodyBytes,M as connectionErrorMessage,v as countStreamAppendResultStatuses,c as createCommitValidateInput,p as createOperationEventRequestId,o as createOperationEventSubmissionId,k as createRepositoryExportSession,d as encodeCommitValidateRequestBody,g as getResponseDecorations,L as isConnectionError,w as isDefiniteStreamAppendRejection,K as isRetryable,J as isWarmHubError,D as normalizeWref,l as readRepositoryExportStream,F as resolveFunctionLogMode,m as restoreRepositoryExportSession,G as sanitizeErrorMessage,N as sdkVersionIsBelowMinimum,u as streamAppendResultStatus,x as submitOperationsViaStream,I as toWarmHubError,B as verifyCliCall}from'./chunk-
|
|
1
|
+
export{t as AllStreamOperationsFailedError,A as CliCallVerificationError,E as DEFAULT_API_URL,q as DEFAULT_STREAM_CHUNK_SIZE,b as MAX_COMMIT_VALIDATION_ENCODED_BYTES,a as MAX_COMMIT_VALIDATION_OPERATIONS,r as MAX_STREAM_APPEND_OPERATION_COUNT,C as OperationBuilder,s as PartialStreamSubmissionError,i as RepositoryExportError,j as RepositoryExportSession,z as SDK_VERSION,n as StreamSubmissionAggregator,y as StreamingSubmissionOutcomeUnknownError,O as WarmHubClient,H as WarmHubError,h as applyRepositoryExportDelta,f as collectDurableTokens,e as commitValidateRequestBodyBytes,M as connectionErrorMessage,v as countStreamAppendResultStatuses,c as createCommitValidateInput,p as createOperationEventRequestId,o as createOperationEventSubmissionId,k as createRepositoryExportSession,d as encodeCommitValidateRequestBody,g as getResponseDecorations,L as isConnectionError,w as isDefiniteStreamAppendRejection,K as isRetryable,J as isWarmHubError,D as normalizeWref,l as readRepositoryExportStream,F as resolveFunctionLogMode,m as restoreRepositoryExportSession,G as sanitizeErrorMessage,N as sdkVersionIsBelowMinimum,u as streamAppendResultStatus,x as submitOperationsViaStream,I as toWarmHubError,B as verifyCliCall}from'./chunk-7TGKSSA6.js';export{r as CLI_INSTALL_REPO_HEADER,s as CLI_SIGNATURE_HEADER,t as CLI_TIMESTAMP_HEADER,c as CONTENT_FIELD_LIMIT_ERROR,b as MAX_CONTENT_FIELD_BYTES,A as ORG_AUTH_SCOPES,w as REPO_AUTH_SCOPES,d as contentFieldLimitError,B as isKnownOrgAuthScope,x as isKnownRepoAuthScope,C as operationEventStreamRequestId,Z as validateAgainstShape}from'./chunk-4OSQJILK.js';//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/react.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {O}from'./chunk-
|
|
1
|
+
import {O}from'./chunk-7TGKSSA6.js';export{E as DEFAULT_API_URL,z as SDK_VERSION,O as WarmHubClient,H as WarmHubError,I as toWarmHubError}from'./chunk-7TGKSSA6.js';import'./chunk-4OSQJILK.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 O({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