@fonoster/sdk 0.17.1 → 0.18.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/dist/node/Applications.d.ts +11 -55
- package/dist/node/Applications.js +85 -71
- package/dist/node/client/types/ApplicationsClient.d.ts +3 -2
- package/dist/node/generated/node/applications_grpc_pb.js +15 -15
- package/dist/node/generated/node/applications_pb.js +1046 -388
- package/dist/node/generated/web/AclsServiceClientPb.ts +1 -1
- package/dist/node/generated/web/AgentsServiceClientPb.ts +1 -1
- package/dist/node/generated/web/ApplicationsServiceClientPb.ts +11 -32
- package/dist/node/generated/web/CallsServiceClientPb.ts +1 -1
- package/dist/node/generated/web/CredentialsServiceClientPb.ts +1 -1
- package/dist/node/generated/web/DomainsServiceClientPb.ts +1 -1
- package/dist/node/generated/web/IdentityServiceClientPb.ts +1 -1
- package/dist/node/generated/web/NumbersServiceClientPb.ts +1 -1
- package/dist/node/generated/web/SecretsServiceClientPb.ts +1 -1
- package/dist/node/generated/web/TrunksServiceClientPb.ts +1 -1
- package/dist/node/generated/web/applications_pb.d.ts +185 -104
- package/dist/node/generated/web/applications_pb.js +1046 -388
- package/dist/node/tsconfig.tsbuildinfo +1 -1
- package/dist/web/fonoster.min.js +1 -1
- package/dist/web/index.esm.js +1 -1
- package/package.json +4 -4
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
// Code generated by protoc-gen-grpc-web. DO NOT EDIT.
|
|
8
8
|
// versions:
|
|
9
9
|
// protoc-gen-grpc-web v1.5.0
|
|
10
|
-
// protoc
|
|
10
|
+
// protoc v5.29.3
|
|
11
11
|
// source: applications.proto
|
|
12
12
|
|
|
13
13
|
|
|
@@ -257,45 +257,24 @@ export class ApplicationsClient {
|
|
|
257
257
|
|
|
258
258
|
methodDescriptorEvaluateIntelligence = new grpcWeb.MethodDescriptor(
|
|
259
259
|
'/fonoster.applications.v1beta2.Applications/EvaluateIntelligence',
|
|
260
|
-
grpcWeb.MethodType.
|
|
260
|
+
grpcWeb.MethodType.SERVER_STREAMING,
|
|
261
261
|
applications_pb.EvaluateIntelligenceRequest,
|
|
262
|
-
applications_pb.
|
|
262
|
+
applications_pb.EvaluateIntelligenceEvent,
|
|
263
263
|
(request: applications_pb.EvaluateIntelligenceRequest) => {
|
|
264
264
|
return request.serializeBinary();
|
|
265
265
|
},
|
|
266
|
-
applications_pb.
|
|
266
|
+
applications_pb.EvaluateIntelligenceEvent.deserializeBinary
|
|
267
267
|
);
|
|
268
268
|
|
|
269
269
|
evaluateIntelligence(
|
|
270
270
|
request: applications_pb.EvaluateIntelligenceRequest,
|
|
271
|
-
metadata?: grpcWeb.Metadata
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
evaluateIntelligence(
|
|
280
|
-
request: applications_pb.EvaluateIntelligenceRequest,
|
|
281
|
-
metadata?: grpcWeb.Metadata | null,
|
|
282
|
-
callback?: (err: grpcWeb.RpcError,
|
|
283
|
-
response: applications_pb.EvaluateIntelligenceResponse) => void) {
|
|
284
|
-
if (callback !== undefined) {
|
|
285
|
-
return this.client_.rpcCall(
|
|
286
|
-
this.hostname_ +
|
|
287
|
-
'/fonoster.applications.v1beta2.Applications/EvaluateIntelligence',
|
|
288
|
-
request,
|
|
289
|
-
metadata || {},
|
|
290
|
-
this.methodDescriptorEvaluateIntelligence,
|
|
291
|
-
callback);
|
|
292
|
-
}
|
|
293
|
-
return this.client_.unaryCall(
|
|
294
|
-
this.hostname_ +
|
|
295
|
-
'/fonoster.applications.v1beta2.Applications/EvaluateIntelligence',
|
|
296
|
-
request,
|
|
297
|
-
metadata || {},
|
|
298
|
-
this.methodDescriptorEvaluateIntelligence);
|
|
271
|
+
metadata?: grpcWeb.Metadata): grpcWeb.ClientReadableStream<applications_pb.EvaluateIntelligenceEvent> {
|
|
272
|
+
return this.client_.serverStreaming(
|
|
273
|
+
this.hostname_ +
|
|
274
|
+
'/fonoster.applications.v1beta2.Applications/EvaluateIntelligence',
|
|
275
|
+
request,
|
|
276
|
+
metadata || {},
|
|
277
|
+
this.methodDescriptorEvaluateIntelligence);
|
|
299
278
|
}
|
|
300
279
|
|
|
301
280
|
methodDescriptorCreateTestToken = new grpcWeb.MethodDescriptor(
|
|
@@ -338,145 +338,222 @@ export namespace EvaluateIntelligenceRequest {
|
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
340
|
|
|
341
|
-
export class
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
341
|
+
export class ToolEvaluationReport extends jspb.Message {
|
|
342
|
+
getExpectedTool(): string;
|
|
343
|
+
setExpectedTool(value: string): ToolEvaluationReport;
|
|
344
|
+
|
|
345
|
+
getActualTool(): string;
|
|
346
|
+
setActualTool(value: string): ToolEvaluationReport;
|
|
347
|
+
|
|
348
|
+
getPassed(): boolean;
|
|
349
|
+
setPassed(value: boolean): ToolEvaluationReport;
|
|
350
|
+
|
|
351
|
+
getExpectedParameters(): google_protobuf_struct_pb.Struct | undefined;
|
|
352
|
+
setExpectedParameters(value?: google_protobuf_struct_pb.Struct): ToolEvaluationReport;
|
|
353
|
+
hasExpectedParameters(): boolean;
|
|
354
|
+
clearExpectedParameters(): ToolEvaluationReport;
|
|
355
|
+
|
|
356
|
+
getActualParameters(): google_protobuf_struct_pb.Struct | undefined;
|
|
357
|
+
setActualParameters(value?: google_protobuf_struct_pb.Struct): ToolEvaluationReport;
|
|
358
|
+
hasActualParameters(): boolean;
|
|
359
|
+
clearActualParameters(): ToolEvaluationReport;
|
|
360
|
+
|
|
361
|
+
getErrorMessage(): string;
|
|
362
|
+
setErrorMessage(value: string): ToolEvaluationReport;
|
|
346
363
|
|
|
347
364
|
serializeBinary(): Uint8Array;
|
|
348
|
-
toObject(includeInstance?: boolean):
|
|
349
|
-
static toObject(includeInstance: boolean, msg:
|
|
350
|
-
static serializeBinaryToWriter(message:
|
|
351
|
-
static deserializeBinary(bytes: Uint8Array):
|
|
352
|
-
static deserializeBinaryFromReader(message:
|
|
365
|
+
toObject(includeInstance?: boolean): ToolEvaluationReport.AsObject;
|
|
366
|
+
static toObject(includeInstance: boolean, msg: ToolEvaluationReport): ToolEvaluationReport.AsObject;
|
|
367
|
+
static serializeBinaryToWriter(message: ToolEvaluationReport, writer: jspb.BinaryWriter): void;
|
|
368
|
+
static deserializeBinary(bytes: Uint8Array): ToolEvaluationReport;
|
|
369
|
+
static deserializeBinaryFromReader(message: ToolEvaluationReport, reader: jspb.BinaryReader): ToolEvaluationReport;
|
|
353
370
|
}
|
|
354
371
|
|
|
355
|
-
export namespace
|
|
372
|
+
export namespace ToolEvaluationReport {
|
|
356
373
|
export type AsObject = {
|
|
357
|
-
|
|
374
|
+
expectedTool: string,
|
|
375
|
+
actualTool: string,
|
|
376
|
+
passed: boolean,
|
|
377
|
+
expectedParameters?: google_protobuf_struct_pb.Struct.AsObject,
|
|
378
|
+
actualParameters?: google_protobuf_struct_pb.Struct.AsObject,
|
|
379
|
+
errorMessage: string,
|
|
358
380
|
}
|
|
381
|
+
}
|
|
359
382
|
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
383
|
+
export class StepEvaluationReport extends jspb.Message {
|
|
384
|
+
getHumanInput(): string;
|
|
385
|
+
setHumanInput(value: string): StepEvaluationReport;
|
|
363
386
|
|
|
364
|
-
|
|
365
|
-
|
|
387
|
+
getExpectedResponse(): string;
|
|
388
|
+
setExpectedResponse(value: string): StepEvaluationReport;
|
|
366
389
|
|
|
367
|
-
|
|
368
|
-
|
|
390
|
+
getAiResponse(): string;
|
|
391
|
+
setAiResponse(value: string): StepEvaluationReport;
|
|
369
392
|
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
hasExpectedParameters(): boolean;
|
|
373
|
-
clearExpectedParameters(): ToolEvaluationReport;
|
|
393
|
+
getEvaluationType(): ExpectedTextType;
|
|
394
|
+
setEvaluationType(value: ExpectedTextType): StepEvaluationReport;
|
|
374
395
|
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
hasActualParameters(): boolean;
|
|
378
|
-
clearActualParameters(): ToolEvaluationReport;
|
|
396
|
+
getPassed(): boolean;
|
|
397
|
+
setPassed(value: boolean): StepEvaluationReport;
|
|
379
398
|
|
|
380
|
-
|
|
381
|
-
|
|
399
|
+
getErrorMessage(): string;
|
|
400
|
+
setErrorMessage(value: string): StepEvaluationReport;
|
|
382
401
|
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
static deserializeBinary(bytes: Uint8Array): ToolEvaluationReport;
|
|
388
|
-
static deserializeBinaryFromReader(message: ToolEvaluationReport, reader: jspb.BinaryReader): ToolEvaluationReport;
|
|
389
|
-
}
|
|
402
|
+
getToolEvaluationsList(): Array<ToolEvaluationReport>;
|
|
403
|
+
setToolEvaluationsList(value: Array<ToolEvaluationReport>): StepEvaluationReport;
|
|
404
|
+
clearToolEvaluationsList(): StepEvaluationReport;
|
|
405
|
+
addToolEvaluations(value?: ToolEvaluationReport, index?: number): ToolEvaluationReport;
|
|
390
406
|
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
407
|
+
serializeBinary(): Uint8Array;
|
|
408
|
+
toObject(includeInstance?: boolean): StepEvaluationReport.AsObject;
|
|
409
|
+
static toObject(includeInstance: boolean, msg: StepEvaluationReport): StepEvaluationReport.AsObject;
|
|
410
|
+
static serializeBinaryToWriter(message: StepEvaluationReport, writer: jspb.BinaryWriter): void;
|
|
411
|
+
static deserializeBinary(bytes: Uint8Array): StepEvaluationReport;
|
|
412
|
+
static deserializeBinaryFromReader(message: StepEvaluationReport, reader: jspb.BinaryReader): StepEvaluationReport;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
export namespace StepEvaluationReport {
|
|
416
|
+
export type AsObject = {
|
|
417
|
+
humanInput: string,
|
|
418
|
+
expectedResponse: string,
|
|
419
|
+
aiResponse: string,
|
|
420
|
+
evaluationType: ExpectedTextType,
|
|
421
|
+
passed: boolean,
|
|
422
|
+
errorMessage: string,
|
|
423
|
+
toolEvaluationsList: Array<ToolEvaluationReport.AsObject>,
|
|
400
424
|
}
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
export class ScenarioEvaluationReport extends jspb.Message {
|
|
428
|
+
getScenarioRef(): string;
|
|
429
|
+
setScenarioRef(value: string): ScenarioEvaluationReport;
|
|
430
|
+
|
|
431
|
+
getOverallPassed(): boolean;
|
|
432
|
+
setOverallPassed(value: boolean): ScenarioEvaluationReport;
|
|
433
|
+
|
|
434
|
+
getStepsList(): Array<StepEvaluationReport>;
|
|
435
|
+
setStepsList(value: Array<StepEvaluationReport>): ScenarioEvaluationReport;
|
|
436
|
+
clearStepsList(): ScenarioEvaluationReport;
|
|
437
|
+
addSteps(value?: StepEvaluationReport, index?: number): StepEvaluationReport;
|
|
438
|
+
|
|
439
|
+
serializeBinary(): Uint8Array;
|
|
440
|
+
toObject(includeInstance?: boolean): ScenarioEvaluationReport.AsObject;
|
|
441
|
+
static toObject(includeInstance: boolean, msg: ScenarioEvaluationReport): ScenarioEvaluationReport.AsObject;
|
|
442
|
+
static serializeBinaryToWriter(message: ScenarioEvaluationReport, writer: jspb.BinaryWriter): void;
|
|
443
|
+
static deserializeBinary(bytes: Uint8Array): ScenarioEvaluationReport;
|
|
444
|
+
static deserializeBinaryFromReader(message: ScenarioEvaluationReport, reader: jspb.BinaryReader): ScenarioEvaluationReport;
|
|
445
|
+
}
|
|
401
446
|
|
|
447
|
+
export namespace ScenarioEvaluationReport {
|
|
448
|
+
export type AsObject = {
|
|
449
|
+
scenarioRef: string,
|
|
450
|
+
overallPassed: boolean,
|
|
451
|
+
stepsList: Array<StepEvaluationReport.AsObject>,
|
|
452
|
+
}
|
|
453
|
+
}
|
|
402
454
|
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
455
|
+
export class StepEvaluationResult extends jspb.Message {
|
|
456
|
+
getScenarioRef(): string;
|
|
457
|
+
setScenarioRef(value: string): StepEvaluationResult;
|
|
406
458
|
|
|
407
|
-
|
|
408
|
-
|
|
459
|
+
getReport(): StepEvaluationReport | undefined;
|
|
460
|
+
setReport(value?: StepEvaluationReport): StepEvaluationResult;
|
|
461
|
+
hasReport(): boolean;
|
|
462
|
+
clearReport(): StepEvaluationResult;
|
|
409
463
|
|
|
410
|
-
|
|
411
|
-
|
|
464
|
+
serializeBinary(): Uint8Array;
|
|
465
|
+
toObject(includeInstance?: boolean): StepEvaluationResult.AsObject;
|
|
466
|
+
static toObject(includeInstance: boolean, msg: StepEvaluationResult): StepEvaluationResult.AsObject;
|
|
467
|
+
static serializeBinaryToWriter(message: StepEvaluationResult, writer: jspb.BinaryWriter): void;
|
|
468
|
+
static deserializeBinary(bytes: Uint8Array): StepEvaluationResult;
|
|
469
|
+
static deserializeBinaryFromReader(message: StepEvaluationResult, reader: jspb.BinaryReader): StepEvaluationResult;
|
|
470
|
+
}
|
|
412
471
|
|
|
413
|
-
|
|
414
|
-
|
|
472
|
+
export namespace StepEvaluationResult {
|
|
473
|
+
export type AsObject = {
|
|
474
|
+
scenarioRef: string,
|
|
475
|
+
report?: StepEvaluationReport.AsObject,
|
|
476
|
+
}
|
|
477
|
+
}
|
|
415
478
|
|
|
416
|
-
|
|
417
|
-
|
|
479
|
+
export class ScenarioSummary extends jspb.Message {
|
|
480
|
+
getScenarioRef(): string;
|
|
481
|
+
setScenarioRef(value: string): ScenarioSummary;
|
|
418
482
|
|
|
419
|
-
|
|
420
|
-
|
|
483
|
+
getOverallPassed(): boolean;
|
|
484
|
+
setOverallPassed(value: boolean): ScenarioSummary;
|
|
421
485
|
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
486
|
+
serializeBinary(): Uint8Array;
|
|
487
|
+
toObject(includeInstance?: boolean): ScenarioSummary.AsObject;
|
|
488
|
+
static toObject(includeInstance: boolean, msg: ScenarioSummary): ScenarioSummary.AsObject;
|
|
489
|
+
static serializeBinaryToWriter(message: ScenarioSummary, writer: jspb.BinaryWriter): void;
|
|
490
|
+
static deserializeBinary(bytes: Uint8Array): ScenarioSummary;
|
|
491
|
+
static deserializeBinaryFromReader(message: ScenarioSummary, reader: jspb.BinaryReader): ScenarioSummary;
|
|
492
|
+
}
|
|
426
493
|
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
static deserializeBinary(bytes: Uint8Array): StepEvaluationReport;
|
|
432
|
-
static deserializeBinaryFromReader(message: StepEvaluationReport, reader: jspb.BinaryReader): StepEvaluationReport;
|
|
494
|
+
export namespace ScenarioSummary {
|
|
495
|
+
export type AsObject = {
|
|
496
|
+
scenarioRef: string,
|
|
497
|
+
overallPassed: boolean,
|
|
433
498
|
}
|
|
499
|
+
}
|
|
434
500
|
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
501
|
+
export class EvalError extends jspb.Message {
|
|
502
|
+
getMessage(): string;
|
|
503
|
+
setMessage(value: string): EvalError;
|
|
504
|
+
|
|
505
|
+
serializeBinary(): Uint8Array;
|
|
506
|
+
toObject(includeInstance?: boolean): EvalError.AsObject;
|
|
507
|
+
static toObject(includeInstance: boolean, msg: EvalError): EvalError.AsObject;
|
|
508
|
+
static serializeBinaryToWriter(message: EvalError, writer: jspb.BinaryWriter): void;
|
|
509
|
+
static deserializeBinary(bytes: Uint8Array): EvalError;
|
|
510
|
+
static deserializeBinaryFromReader(message: EvalError, reader: jspb.BinaryReader): EvalError;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
export namespace EvalError {
|
|
514
|
+
export type AsObject = {
|
|
515
|
+
message: string,
|
|
445
516
|
}
|
|
517
|
+
}
|
|
446
518
|
|
|
519
|
+
export class EvaluateIntelligenceEvent extends jspb.Message {
|
|
520
|
+
getStepResult(): StepEvaluationResult | undefined;
|
|
521
|
+
setStepResult(value?: StepEvaluationResult): EvaluateIntelligenceEvent;
|
|
522
|
+
hasStepResult(): boolean;
|
|
523
|
+
clearStepResult(): EvaluateIntelligenceEvent;
|
|
447
524
|
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
525
|
+
getScenarioSummary(): ScenarioSummary | undefined;
|
|
526
|
+
setScenarioSummary(value?: ScenarioSummary): EvaluateIntelligenceEvent;
|
|
527
|
+
hasScenarioSummary(): boolean;
|
|
528
|
+
clearScenarioSummary(): EvaluateIntelligenceEvent;
|
|
451
529
|
|
|
452
|
-
|
|
453
|
-
|
|
530
|
+
getEvalError(): EvalError | undefined;
|
|
531
|
+
setEvalError(value?: EvalError): EvaluateIntelligenceEvent;
|
|
532
|
+
hasEvalError(): boolean;
|
|
533
|
+
clearEvalError(): EvaluateIntelligenceEvent;
|
|
454
534
|
|
|
455
|
-
|
|
456
|
-
setStepsList(value: Array<EvaluateIntelligenceResponse.StepEvaluationReport>): ScenarioEvaluationReport;
|
|
457
|
-
clearStepsList(): ScenarioEvaluationReport;
|
|
458
|
-
addSteps(value?: EvaluateIntelligenceResponse.StepEvaluationReport, index?: number): EvaluateIntelligenceResponse.StepEvaluationReport;
|
|
535
|
+
getEventCase(): EvaluateIntelligenceEvent.EventCase;
|
|
459
536
|
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
537
|
+
serializeBinary(): Uint8Array;
|
|
538
|
+
toObject(includeInstance?: boolean): EvaluateIntelligenceEvent.AsObject;
|
|
539
|
+
static toObject(includeInstance: boolean, msg: EvaluateIntelligenceEvent): EvaluateIntelligenceEvent.AsObject;
|
|
540
|
+
static serializeBinaryToWriter(message: EvaluateIntelligenceEvent, writer: jspb.BinaryWriter): void;
|
|
541
|
+
static deserializeBinary(bytes: Uint8Array): EvaluateIntelligenceEvent;
|
|
542
|
+
static deserializeBinaryFromReader(message: EvaluateIntelligenceEvent, reader: jspb.BinaryReader): EvaluateIntelligenceEvent;
|
|
543
|
+
}
|
|
467
544
|
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
}
|
|
545
|
+
export namespace EvaluateIntelligenceEvent {
|
|
546
|
+
export type AsObject = {
|
|
547
|
+
stepResult?: StepEvaluationResult.AsObject,
|
|
548
|
+
scenarioSummary?: ScenarioSummary.AsObject,
|
|
549
|
+
evalError?: EvalError.AsObject,
|
|
474
550
|
}
|
|
475
551
|
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
552
|
+
export enum EventCase {
|
|
553
|
+
EVENT_NOT_SET = 0,
|
|
554
|
+
STEP_RESULT = 1,
|
|
555
|
+
SCENARIO_SUMMARY = 2,
|
|
556
|
+
EVAL_ERROR = 3,
|
|
480
557
|
}
|
|
481
558
|
}
|
|
482
559
|
|
|
@@ -522,3 +599,7 @@ export enum ApplicationType {
|
|
|
522
599
|
EXTERNAL = 0,
|
|
523
600
|
AUTOPILOT = 1,
|
|
524
601
|
}
|
|
602
|
+
export enum ExpectedTextType {
|
|
603
|
+
EXACT = 0,
|
|
604
|
+
SIMILAR = 1,
|
|
605
|
+
}
|