@opensteer/protocol 0.7.2 → 0.7.3
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/dist/index.cjs +187 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +135 -4
- package/dist/index.d.ts +135 -4
- package/dist/index.js +175 -14
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2450,6 +2450,7 @@ var cloudActionMethods = [
|
|
|
2450
2450
|
var cloudErrorCodes = [
|
|
2451
2451
|
"CLOUD_AUTH_FAILED",
|
|
2452
2452
|
"CLOUD_SESSION_NOT_FOUND",
|
|
2453
|
+
"CLOUD_ARTIFACT_NOT_FOUND",
|
|
2453
2454
|
"CLOUD_SESSION_CLOSED",
|
|
2454
2455
|
"CLOUD_UNSUPPORTED_METHOD",
|
|
2455
2456
|
"CLOUD_INVALID_REQUEST",
|
|
@@ -3156,6 +3157,164 @@ function traceBundleSchema(dataSchema = {}) {
|
|
|
3156
3157
|
);
|
|
3157
3158
|
}
|
|
3158
3159
|
|
|
3160
|
+
// src/observability.ts
|
|
3161
|
+
var observabilityProfiles = ["off", "baseline", "diagnostic"];
|
|
3162
|
+
var observationEventPhases = [
|
|
3163
|
+
"started",
|
|
3164
|
+
"updated",
|
|
3165
|
+
"completed",
|
|
3166
|
+
"failed",
|
|
3167
|
+
"occurred"
|
|
3168
|
+
];
|
|
3169
|
+
var observationEventKinds = [
|
|
3170
|
+
"session",
|
|
3171
|
+
"operation",
|
|
3172
|
+
"page",
|
|
3173
|
+
"console",
|
|
3174
|
+
"error",
|
|
3175
|
+
"network",
|
|
3176
|
+
"artifact",
|
|
3177
|
+
"annotation",
|
|
3178
|
+
"runtime",
|
|
3179
|
+
"observability"
|
|
3180
|
+
];
|
|
3181
|
+
var observationArtifactKinds = [
|
|
3182
|
+
"screenshot",
|
|
3183
|
+
"dom-snapshot",
|
|
3184
|
+
"html-snapshot",
|
|
3185
|
+
"trace-bundle",
|
|
3186
|
+
"frame-buffer",
|
|
3187
|
+
"request-body",
|
|
3188
|
+
"response-body",
|
|
3189
|
+
"log",
|
|
3190
|
+
"other"
|
|
3191
|
+
];
|
|
3192
|
+
var observabilityProfileSchema = enumSchema(observabilityProfiles, {
|
|
3193
|
+
title: "ObservabilityProfile"
|
|
3194
|
+
});
|
|
3195
|
+
var observabilityTraceContextSchema = objectSchema(
|
|
3196
|
+
{
|
|
3197
|
+
traceparent: stringSchema(),
|
|
3198
|
+
baggage: stringSchema()
|
|
3199
|
+
},
|
|
3200
|
+
{
|
|
3201
|
+
title: "ObservabilityTraceContext"
|
|
3202
|
+
}
|
|
3203
|
+
);
|
|
3204
|
+
var observabilityRedactionConfigSchema = objectSchema(
|
|
3205
|
+
{
|
|
3206
|
+
sensitiveKeys: arraySchema(stringSchema()),
|
|
3207
|
+
sensitiveValues: arraySchema(stringSchema())
|
|
3208
|
+
},
|
|
3209
|
+
{
|
|
3210
|
+
title: "ObservabilityRedactionConfig"
|
|
3211
|
+
}
|
|
3212
|
+
);
|
|
3213
|
+
var observabilityConfigSchema = objectSchema(
|
|
3214
|
+
{
|
|
3215
|
+
profile: observabilityProfileSchema,
|
|
3216
|
+
labels: recordSchema(stringSchema()),
|
|
3217
|
+
traceContext: observabilityTraceContextSchema,
|
|
3218
|
+
redaction: observabilityRedactionConfigSchema
|
|
3219
|
+
},
|
|
3220
|
+
{
|
|
3221
|
+
title: "ObservabilityConfig",
|
|
3222
|
+
required: ["profile"]
|
|
3223
|
+
}
|
|
3224
|
+
);
|
|
3225
|
+
var observationContextSchema = objectSchema(
|
|
3226
|
+
{
|
|
3227
|
+
sessionRef: sessionRefSchema,
|
|
3228
|
+
pageRef: pageRefSchema,
|
|
3229
|
+
frameRef: frameRefSchema,
|
|
3230
|
+
documentRef: documentRefSchema,
|
|
3231
|
+
documentEpoch: documentEpochSchema
|
|
3232
|
+
},
|
|
3233
|
+
{
|
|
3234
|
+
title: "ObservationContext"
|
|
3235
|
+
}
|
|
3236
|
+
);
|
|
3237
|
+
var observationEventErrorSchema = objectSchema(
|
|
3238
|
+
{
|
|
3239
|
+
code: stringSchema(),
|
|
3240
|
+
message: stringSchema(),
|
|
3241
|
+
retriable: {
|
|
3242
|
+
type: "boolean"
|
|
3243
|
+
},
|
|
3244
|
+
details: {}
|
|
3245
|
+
},
|
|
3246
|
+
{
|
|
3247
|
+
title: "ObservationEventError",
|
|
3248
|
+
required: ["message"]
|
|
3249
|
+
}
|
|
3250
|
+
);
|
|
3251
|
+
var observationEventSchema = objectSchema(
|
|
3252
|
+
{
|
|
3253
|
+
eventId: stringSchema(),
|
|
3254
|
+
sessionId: stringSchema(),
|
|
3255
|
+
sequence: integerSchema({ minimum: 1 }),
|
|
3256
|
+
kind: enumSchema(observationEventKinds),
|
|
3257
|
+
phase: enumSchema(observationEventPhases),
|
|
3258
|
+
createdAt: integerSchema({ minimum: 0 }),
|
|
3259
|
+
correlationId: stringSchema(),
|
|
3260
|
+
spanId: stringSchema(),
|
|
3261
|
+
parentSpanId: stringSchema(),
|
|
3262
|
+
context: observationContextSchema,
|
|
3263
|
+
data: {},
|
|
3264
|
+
error: observationEventErrorSchema,
|
|
3265
|
+
artifactIds: arraySchema(stringSchema())
|
|
3266
|
+
},
|
|
3267
|
+
{
|
|
3268
|
+
title: "ObservationEvent",
|
|
3269
|
+
required: ["eventId", "sessionId", "sequence", "kind", "phase", "createdAt", "correlationId"]
|
|
3270
|
+
}
|
|
3271
|
+
);
|
|
3272
|
+
var observationArtifactSchema = objectSchema(
|
|
3273
|
+
{
|
|
3274
|
+
artifactId: stringSchema(),
|
|
3275
|
+
sessionId: stringSchema(),
|
|
3276
|
+
kind: enumSchema(observationArtifactKinds),
|
|
3277
|
+
createdAt: integerSchema({ minimum: 0 }),
|
|
3278
|
+
context: observationContextSchema,
|
|
3279
|
+
mediaType: stringSchema(),
|
|
3280
|
+
byteLength: integerSchema({ minimum: 0 }),
|
|
3281
|
+
sha256: stringSchema(),
|
|
3282
|
+
opensteerArtifactId: stringSchema(),
|
|
3283
|
+
storageKey: stringSchema(),
|
|
3284
|
+
metadata: {}
|
|
3285
|
+
},
|
|
3286
|
+
{
|
|
3287
|
+
title: "ObservationArtifact",
|
|
3288
|
+
required: ["artifactId", "sessionId", "kind", "createdAt"]
|
|
3289
|
+
}
|
|
3290
|
+
);
|
|
3291
|
+
var observationSessionSchema = objectSchema(
|
|
3292
|
+
{
|
|
3293
|
+
sessionId: stringSchema(),
|
|
3294
|
+
profile: observabilityProfileSchema,
|
|
3295
|
+
labels: recordSchema(stringSchema()),
|
|
3296
|
+
traceContext: observabilityTraceContextSchema,
|
|
3297
|
+
openedAt: integerSchema({ minimum: 0 }),
|
|
3298
|
+
updatedAt: integerSchema({ minimum: 0 }),
|
|
3299
|
+
closedAt: integerSchema({ minimum: 0 }),
|
|
3300
|
+
currentSequence: integerSchema({ minimum: 0 }),
|
|
3301
|
+
eventCount: integerSchema({ minimum: 0 }),
|
|
3302
|
+
artifactCount: integerSchema({ minimum: 0 })
|
|
3303
|
+
},
|
|
3304
|
+
{
|
|
3305
|
+
title: "ObservationSession",
|
|
3306
|
+
required: [
|
|
3307
|
+
"sessionId",
|
|
3308
|
+
"profile",
|
|
3309
|
+
"openedAt",
|
|
3310
|
+
"updatedAt",
|
|
3311
|
+
"currentSequence",
|
|
3312
|
+
"eventCount",
|
|
3313
|
+
"artifactCount"
|
|
3314
|
+
]
|
|
3315
|
+
}
|
|
3316
|
+
);
|
|
3317
|
+
|
|
3159
3318
|
// src/envelopes.ts
|
|
3160
3319
|
function createRequestEnvelope(operation, input, options) {
|
|
3161
3320
|
return {
|
|
@@ -3268,7 +3427,7 @@ function responseEnvelopeSchema(dataSchema, operation) {
|
|
|
3268
3427
|
}
|
|
3269
3428
|
|
|
3270
3429
|
// src/session-info.ts
|
|
3271
|
-
var opensteerSessionGrantKinds = ["automation", "view", "cdp"];
|
|
3430
|
+
var opensteerSessionGrantKinds = ["semantic", "automation", "view", "cdp"];
|
|
3272
3431
|
|
|
3273
3432
|
// src/automation.ts
|
|
3274
3433
|
var opensteerAutomationOperationNames = [
|
|
@@ -6759,9 +6918,23 @@ var opensteerInspectStorageInputSchema = objectSchema(
|
|
|
6759
6918
|
title: "OpensteerInspectStorageInput"
|
|
6760
6919
|
}
|
|
6761
6920
|
);
|
|
6921
|
+
var opensteerComputerMouseButtonSchema = enumSchema(["left", "middle", "right"], {
|
|
6922
|
+
title: "OpensteerComputerMouseButton"
|
|
6923
|
+
});
|
|
6924
|
+
var opensteerComputerKeyModifierSchema = enumSchema(
|
|
6925
|
+
["Shift", "Control", "Alt", "Meta"],
|
|
6926
|
+
{
|
|
6927
|
+
title: "OpensteerComputerKeyModifier"
|
|
6928
|
+
}
|
|
6929
|
+
);
|
|
6762
6930
|
var opensteerDomClickInputSchema = objectSchema(
|
|
6763
6931
|
{
|
|
6764
6932
|
target: opensteerTargetInputSchema,
|
|
6933
|
+
button: opensteerComputerMouseButtonSchema,
|
|
6934
|
+
clickCount: integerSchema({ minimum: 1 }),
|
|
6935
|
+
modifiers: arraySchema(opensteerComputerKeyModifierSchema, {
|
|
6936
|
+
uniqueItems: true
|
|
6937
|
+
}),
|
|
6765
6938
|
persistAsDescription: stringSchema(),
|
|
6766
6939
|
captureNetwork: stringSchema({ minLength: 1 })
|
|
6767
6940
|
},
|
|
@@ -6861,18 +7034,6 @@ var opensteerSessionCloseOutputSchema = objectSchema(
|
|
|
6861
7034
|
required: ["closed"]
|
|
6862
7035
|
}
|
|
6863
7036
|
);
|
|
6864
|
-
var opensteerComputerMouseButtonSchema = enumSchema(
|
|
6865
|
-
["left", "middle", "right"],
|
|
6866
|
-
{
|
|
6867
|
-
title: "OpensteerComputerMouseButton"
|
|
6868
|
-
}
|
|
6869
|
-
);
|
|
6870
|
-
var opensteerComputerKeyModifierSchema = enumSchema(
|
|
6871
|
-
["Shift", "Control", "Alt", "Meta"],
|
|
6872
|
-
{
|
|
6873
|
-
title: "OpensteerComputerKeyModifier"
|
|
6874
|
-
}
|
|
6875
|
-
);
|
|
6876
7037
|
var opensteerComputerAnnotationSchema = enumSchema(opensteerComputerAnnotationNames, {
|
|
6877
7038
|
title: "OpensteerComputerAnnotation"
|
|
6878
7039
|
});
|
|
@@ -7828,6 +7989,19 @@ exports.nodeLocatorSchema = nodeLocatorSchema;
|
|
|
7828
7989
|
exports.nodeRefSchema = nodeRefSchema;
|
|
7829
7990
|
exports.numberSchema = numberSchema;
|
|
7830
7991
|
exports.objectSchema = objectSchema;
|
|
7992
|
+
exports.observabilityConfigSchema = observabilityConfigSchema;
|
|
7993
|
+
exports.observabilityProfileSchema = observabilityProfileSchema;
|
|
7994
|
+
exports.observabilityProfiles = observabilityProfiles;
|
|
7995
|
+
exports.observabilityRedactionConfigSchema = observabilityRedactionConfigSchema;
|
|
7996
|
+
exports.observabilityTraceContextSchema = observabilityTraceContextSchema;
|
|
7997
|
+
exports.observationArtifactKinds = observationArtifactKinds;
|
|
7998
|
+
exports.observationArtifactSchema = observationArtifactSchema;
|
|
7999
|
+
exports.observationContextSchema = observationContextSchema;
|
|
8000
|
+
exports.observationEventErrorSchema = observationEventErrorSchema;
|
|
8001
|
+
exports.observationEventKinds = observationEventKinds;
|
|
8002
|
+
exports.observationEventPhases = observationEventPhases;
|
|
8003
|
+
exports.observationEventSchema = observationEventSchema;
|
|
8004
|
+
exports.observationSessionSchema = observationSessionSchema;
|
|
7831
8005
|
exports.oneOfSchema = oneOfSchema;
|
|
7832
8006
|
exports.opensteerArtifactReadInputSchema = opensteerArtifactReadInputSchema;
|
|
7833
8007
|
exports.opensteerArtifactReadOutputSchema = opensteerArtifactReadOutputSchema;
|