ankka 0.7.1 → 0.9.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/_proto/ankka/protocol/v1/agent_pb.d.ts +95 -0
- package/dist/_proto/ankka/protocol/v1/agent_pb.js +16 -1
- package/dist/_proto/ankka/protocol/v1/discovery_pb.d.ts +235 -1
- package/dist/_proto/ankka/protocol/v1/discovery_pb.js +45 -5
- package/dist/_proto/ankka/protocol/v1/endpoint_pb.d.ts +63 -0
- package/dist/_proto/ankka/protocol/v1/endpoint_pb.js +15 -5
- package/dist/_proto/ankka/protocol/v1/wasm_pb.d.ts +307 -0
- package/dist/_proto/ankka/protocol/v1/wasm_pb.js +72 -0
- package/dist/autonomous.d.ts +154 -0
- package/dist/autonomous.js +199 -0
- package/dist/client.d.ts +13 -0
- package/dist/client.js +49 -0
- package/dist/context.d.ts +15 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +2 -1
- package/dist/kinds.d.ts +1 -1
- package/dist/kinds.js +1 -0
- package/dist/routes.d.ts +41 -5
- package/dist/routes.js +24 -1
- package/dist/server/agent.d.ts +8 -2
- package/dist/server/agent.js +59 -2
- package/dist/server/http.js +13 -0
- package/dist/service.d.ts +11 -1
- package/dist/service.js +46 -5
- package/dist/spec.d.ts +6 -3
- package/dist/spec.js +62 -6
- package/dist/testkit/integration.js +5 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -319,6 +319,91 @@ export type GuardrailResult = Message<"ankka.protocol.v1.GuardrailResult"> & {
|
|
|
319
319
|
* Use `create(GuardrailResultSchema)` to create a new message.
|
|
320
320
|
*/
|
|
321
321
|
export declare const GuardrailResultSchema: GenMessage<GuardrailResult>;
|
|
322
|
+
/**
|
|
323
|
+
* An autonomous agent's result, as the model sent it to complete_task (protocol 1.2). The process
|
|
324
|
+
* decodes it as the task type's result and runs the type's rules in order: `malformed` when it does
|
|
325
|
+
* not decode (the model is told, as a tool error), `reject` naming the first rule that refuses it.
|
|
326
|
+
* A rule that throws is answered as a gRPC error, which the sidecar treats as a failed iteration and
|
|
327
|
+
* tries again — never as a rejection, since nothing was decided.
|
|
328
|
+
*
|
|
329
|
+
* @generated from message ankka.protocol.v1.TaskResultRequest
|
|
330
|
+
*/
|
|
331
|
+
export type TaskResultRequest = Message<"ankka.protocol.v1.TaskResultRequest"> & {
|
|
332
|
+
/**
|
|
333
|
+
* @generated from field: string component_id = 1;
|
|
334
|
+
*/
|
|
335
|
+
componentId: string;
|
|
336
|
+
/**
|
|
337
|
+
* @generated from field: string task_id = 2;
|
|
338
|
+
*/
|
|
339
|
+
taskId: string;
|
|
340
|
+
/**
|
|
341
|
+
* @generated from field: string task_type = 3;
|
|
342
|
+
*/
|
|
343
|
+
taskType: string;
|
|
344
|
+
/**
|
|
345
|
+
* @generated from field: string result_json = 4;
|
|
346
|
+
*/
|
|
347
|
+
resultJson: string;
|
|
348
|
+
};
|
|
349
|
+
/**
|
|
350
|
+
* Describes the message ankka.protocol.v1.TaskResultRequest.
|
|
351
|
+
* Use `create(TaskResultRequestSchema)` to create a new message.
|
|
352
|
+
*/
|
|
353
|
+
export declare const TaskResultRequestSchema: GenMessage<TaskResultRequest>;
|
|
354
|
+
/**
|
|
355
|
+
* @generated from message ankka.protocol.v1.TaskResultVerdict
|
|
356
|
+
*/
|
|
357
|
+
export type TaskResultVerdict = Message<"ankka.protocol.v1.TaskResultVerdict"> & {
|
|
358
|
+
/**
|
|
359
|
+
* @generated from oneof ankka.protocol.v1.TaskResultVerdict.verdict
|
|
360
|
+
*/
|
|
361
|
+
verdict: {
|
|
362
|
+
/**
|
|
363
|
+
* @generated from field: ankka.protocol.v1.Empty accept = 1;
|
|
364
|
+
*/
|
|
365
|
+
value: Empty;
|
|
366
|
+
case: "accept";
|
|
367
|
+
} | {
|
|
368
|
+
/**
|
|
369
|
+
* @generated from field: string malformed = 2;
|
|
370
|
+
*/
|
|
371
|
+
value: string;
|
|
372
|
+
case: "malformed";
|
|
373
|
+
} | {
|
|
374
|
+
/**
|
|
375
|
+
* @generated from field: ankka.protocol.v1.TaskResultVerdict.Rejection reject = 3;
|
|
376
|
+
*/
|
|
377
|
+
value: TaskResultVerdict_Rejection;
|
|
378
|
+
case: "reject";
|
|
379
|
+
} | {
|
|
380
|
+
case: undefined;
|
|
381
|
+
value?: undefined;
|
|
382
|
+
};
|
|
383
|
+
};
|
|
384
|
+
/**
|
|
385
|
+
* Describes the message ankka.protocol.v1.TaskResultVerdict.
|
|
386
|
+
* Use `create(TaskResultVerdictSchema)` to create a new message.
|
|
387
|
+
*/
|
|
388
|
+
export declare const TaskResultVerdictSchema: GenMessage<TaskResultVerdict>;
|
|
389
|
+
/**
|
|
390
|
+
* @generated from message ankka.protocol.v1.TaskResultVerdict.Rejection
|
|
391
|
+
*/
|
|
392
|
+
export type TaskResultVerdict_Rejection = Message<"ankka.protocol.v1.TaskResultVerdict.Rejection"> & {
|
|
393
|
+
/**
|
|
394
|
+
* @generated from field: string rule = 1;
|
|
395
|
+
*/
|
|
396
|
+
rule: string;
|
|
397
|
+
/**
|
|
398
|
+
* @generated from field: string reason = 2;
|
|
399
|
+
*/
|
|
400
|
+
reason: string;
|
|
401
|
+
};
|
|
402
|
+
/**
|
|
403
|
+
* Describes the message ankka.protocol.v1.TaskResultVerdict.Rejection.
|
|
404
|
+
* Use `create(TaskResultVerdict_RejectionSchema)` to create a new message.
|
|
405
|
+
*/
|
|
406
|
+
export declare const TaskResultVerdict_RejectionSchema: GenMessage<TaskResultVerdict_Rejection>;
|
|
322
407
|
/**
|
|
323
408
|
* @generated from service ankka.protocol.v1.Agent
|
|
324
409
|
*/
|
|
@@ -347,4 +432,14 @@ export declare const Agent: GenService<{
|
|
|
347
432
|
input: typeof GuardrailRequestSchema;
|
|
348
433
|
output: typeof GuardrailResultSchema;
|
|
349
434
|
};
|
|
435
|
+
/**
|
|
436
|
+
* protocol 1.2
|
|
437
|
+
*
|
|
438
|
+
* @generated from rpc ankka.protocol.v1.Agent.CheckTaskResult
|
|
439
|
+
*/
|
|
440
|
+
checkTaskResult: {
|
|
441
|
+
methodKind: "unary";
|
|
442
|
+
input: typeof TaskResultRequestSchema;
|
|
443
|
+
output: typeof TaskResultVerdictSchema;
|
|
444
|
+
};
|
|
350
445
|
}>;
|
|
@@ -4,7 +4,7 @@ import { file_ankka_protocol_v1_payload } from "./payload_pb.js";
|
|
|
4
4
|
/**
|
|
5
5
|
* Describes the file ankka/protocol/v1/agent.proto.
|
|
6
6
|
*/
|
|
7
|
-
export const file_ankka_protocol_v1_agent = /*@__PURE__*/ fileDesc("
|
|
7
|
+
export const file_ankka_protocol_v1_agent = /*@__PURE__*/ fileDesc("Ch1hbmtrYS9wcm90b2NvbC92MS9hZ2VudC5wcm90bxIRYW5ra2EucHJvdG9jb2wudjEioQEKC1BsYW5SZXF1ZXN0EhQKDGNvbXBvbmVudF9pZBgBIAEoCRISCgpzZXNzaW9uX2lkGAIgASgJEgwKBG5hbWUYAyABKAkSKwoHcGF5bG9hZBgEIAEoCzIaLmFua2thLnByb3RvY29sLnYxLlBheWxvYWQSLQoIbWV0YWRhdGEYBSABKAsyGy5hbmtrYS5wcm90b2NvbC52MS5NZXRhZGF0YSJzCglQbGFuUmVwbHkSLAoEcGxhbhgBIAEoCzIcLmFua2thLnByb3RvY29sLnYxLkFnZW50UGxhbkgAEi0KB2ZhaWx1cmUYAiABKAsyGi5hbmtrYS5wcm90b2NvbC52MS5GYWlsdXJlSABCCQoHbWVzc2FnZSKSBAoJQWdlbnRQbGFuEhIKBW1vZGVsGAEgASgJSACIAQESEwoGc3lzdGVtGAIgASgJSAGIAQESEQoEdXNlchgDIAEoCUgCiAEBEg8KB2NvbnRleHQYBCADKAkSMwoGbWVtb3J5GAUgASgOMiMuYW5ra2EucHJvdG9jb2wudjEuQWdlbnRQbGFuLk1lbW9yeRINCgV0b29scxgGIAMoCRJCCg5yZXNwb25zZV9zaGFwZRgHIAEoCzIqLmFua2th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Fza19pZBgCIAEoCRIRCgl0YXNrX3R5cGUYAyABKAkSEwoLcmVzdWx0X2pzb24YBCABKAkizAEKEVRhc2tSZXN1bHRWZXJkaWN0EioKBmFjY2VwdBgBIAEoCzIYLmFua2thLnByb3RvY29sLnYxLkVtcHR5SAASEwoJbWFsZm9ybWVkGAIgASgJSAASQAoGcmVqZWN0GAMgASgLMi4uYW5ra2EucHJvdG9jb2wudjEuVGFza1Jlc3VsdFZlcmRpY3QuUmVqZWN0aW9uSAAaKQoJUmVqZWN0aW9uEgwKBHJ1bGUYASABKAkSDgoGcmVhc29uGAIgASgJQgkKB3ZlcmRpY3Qy1AIKBUFnZW50EkQKBFBsYW4SHi5hbmtrYS5wcm90b2NvbC52MS5QbGFuUmVxdWVzdBocLmFua2thLnByb3RvY29sLnYxLlBsYW5SZXBseRJLCgpJbnZva2VUb29sEh4uYW5ra2EucHJvdG9jb2wudjEuVG9vbFJlcXVlc3QaHS5hbmtrYS5wcm90b2NvbC52MS5Ub29sUmVzdWx0ElkKDkNoZWNrR3VhcmRyYWlsEiMuYW5ra2EucHJvdG9jb2wudjEuR3VhcmRyYWlsUmVxdWVzdBoiLmFua2thLnByb3RvY29sLnYxLkd1YXJkcmFpbFJlc3VsdBJdCg9DaGVja1Rhc2tSZXN1bHQSJC5hbmtrYS5wcm90b2NvbC52MS5UYXNrUmVzdWx0UmVxdWVzdBokLmFua2thLnByb3RvY29sLnYxLlRhc2tSZXN1bHRWZXJkaWN0YgZwcm90bzM", [file_ankka_protocol_v1_payload]);
|
|
8
8
|
/**
|
|
9
9
|
* Describes the message ankka.protocol.v1.PlanRequest.
|
|
10
10
|
* Use `create(PlanRequestSchema)` to create a new message.
|
|
@@ -84,6 +84,21 @@ export const GuardrailRequest_StageSchema = /*@__PURE__*/ enumDesc(file_ankka_pr
|
|
|
84
84
|
* Use `create(GuardrailResultSchema)` to create a new message.
|
|
85
85
|
*/
|
|
86
86
|
export const GuardrailResultSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_agent, 6);
|
|
87
|
+
/**
|
|
88
|
+
* Describes the message ankka.protocol.v1.TaskResultRequest.
|
|
89
|
+
* Use `create(TaskResultRequestSchema)` to create a new message.
|
|
90
|
+
*/
|
|
91
|
+
export const TaskResultRequestSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_agent, 7);
|
|
92
|
+
/**
|
|
93
|
+
* Describes the message ankka.protocol.v1.TaskResultVerdict.
|
|
94
|
+
* Use `create(TaskResultVerdictSchema)` to create a new message.
|
|
95
|
+
*/
|
|
96
|
+
export const TaskResultVerdictSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_agent, 8);
|
|
97
|
+
/**
|
|
98
|
+
* Describes the message ankka.protocol.v1.TaskResultVerdict.Rejection.
|
|
99
|
+
* Use `create(TaskResultVerdict_RejectionSchema)` to create a new message.
|
|
100
|
+
*/
|
|
101
|
+
export const TaskResultVerdict_RejectionSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_agent, 8, 0);
|
|
87
102
|
/**
|
|
88
103
|
* @generated from service ankka.protocol.v1.Agent
|
|
89
104
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
-
import type { EmptySchema } from "./payload_pb.ts";
|
|
2
|
+
import type { Empty, EmptySchema } from "./payload_pb.ts";
|
|
3
3
|
import type { Message, UnknownEnum } from "@bufbuild/protobuf";
|
|
4
4
|
/**
|
|
5
5
|
* Describes the file ankka/protocol/v1/discovery.proto.
|
|
@@ -130,6 +130,14 @@ export type Component = Message<"ankka.protocol.v1.Component"> & {
|
|
|
130
130
|
*/
|
|
131
131
|
value: AgentDetail;
|
|
132
132
|
case: "agent";
|
|
133
|
+
} | {
|
|
134
|
+
/**
|
|
135
|
+
* protocol 1.2
|
|
136
|
+
*
|
|
137
|
+
* @generated from field: ankka.protocol.v1.AutonomousAgentDetail autonomous_agent = 17;
|
|
138
|
+
*/
|
|
139
|
+
value: AutonomousAgentDetail;
|
|
140
|
+
case: "autonomousAgent";
|
|
133
141
|
} | {
|
|
134
142
|
case: undefined;
|
|
135
143
|
value?: undefined;
|
|
@@ -417,6 +425,149 @@ export type Tool = Message<"ankka.protocol.v1.Tool"> & {
|
|
|
417
425
|
* Use `create(ToolSchema)` to create a new message.
|
|
418
426
|
*/
|
|
419
427
|
export declare const ToolSchema: GenMessage<Tool>;
|
|
428
|
+
/**
|
|
429
|
+
* An autonomous agent's whole definition (protocol 1.2). There is nothing to plan per task: the
|
|
430
|
+
* sidecar runs the loop from this and asks the process only to run a tool (Agent.InvokeTool), check
|
|
431
|
+
* a guardrail (Agent.CheckGuardrail) and check a task rule (Agent.CheckTaskRule), each with the
|
|
432
|
+
* session id "task:<task id>".
|
|
433
|
+
*
|
|
434
|
+
* @generated from message ankka.protocol.v1.AutonomousAgentDetail
|
|
435
|
+
*/
|
|
436
|
+
export type AutonomousAgentDetail = Message<"ankka.protocol.v1.AutonomousAgentDetail"> & {
|
|
437
|
+
/**
|
|
438
|
+
* required
|
|
439
|
+
*
|
|
440
|
+
* @generated from field: string description = 1;
|
|
441
|
+
*/
|
|
442
|
+
description: string;
|
|
443
|
+
/**
|
|
444
|
+
* @generated from field: optional string instructions = 2;
|
|
445
|
+
*/
|
|
446
|
+
instructions?: string | undefined;
|
|
447
|
+
/**
|
|
448
|
+
* never complete_task or fail_task, which are the sidecar's
|
|
449
|
+
*
|
|
450
|
+
* @generated from field: repeated ankka.protocol.v1.Tool tools = 3;
|
|
451
|
+
*/
|
|
452
|
+
tools: Tool[];
|
|
453
|
+
/**
|
|
454
|
+
* @generated from field: repeated string guardrails = 4;
|
|
455
|
+
*/
|
|
456
|
+
guardrails: string[];
|
|
457
|
+
/**
|
|
458
|
+
* every type this agent accepts, declared once
|
|
459
|
+
*
|
|
460
|
+
* @generated from field: repeated ankka.protocol.v1.AutonomousAgentDetail.TaskType task_types = 5;
|
|
461
|
+
*/
|
|
462
|
+
taskTypes: AutonomousAgentDetail_TaskType[];
|
|
463
|
+
/**
|
|
464
|
+
* @generated from field: repeated ankka.protocol.v1.AutonomousAgentDetail.TaskAcceptance accepts = 6;
|
|
465
|
+
*/
|
|
466
|
+
accepts: AutonomousAgentDetail_TaskAcceptance[];
|
|
467
|
+
/**
|
|
468
|
+
* @generated from field: optional ankka.protocol.v1.AutonomousAgentDetail.AutonomousSettings settings = 7;
|
|
469
|
+
*/
|
|
470
|
+
settings?: AutonomousAgentDetail_AutonomousSettings | undefined;
|
|
471
|
+
/**
|
|
472
|
+
* a name in the sidecar's configuration; absent: its default
|
|
473
|
+
*
|
|
474
|
+
* @generated from field: optional string model = 8;
|
|
475
|
+
*/
|
|
476
|
+
model?: string | undefined;
|
|
477
|
+
};
|
|
478
|
+
/**
|
|
479
|
+
* Describes the message ankka.protocol.v1.AutonomousAgentDetail.
|
|
480
|
+
* Use `create(AutonomousAgentDetailSchema)` to create a new message.
|
|
481
|
+
*/
|
|
482
|
+
export declare const AutonomousAgentDetailSchema: GenMessage<AutonomousAgentDetail>;
|
|
483
|
+
/**
|
|
484
|
+
* @generated from message ankka.protocol.v1.AutonomousAgentDetail.TaskType
|
|
485
|
+
*/
|
|
486
|
+
export type AutonomousAgentDetail_TaskType = Message<"ankka.protocol.v1.AutonomousAgentDetail.TaskType"> & {
|
|
487
|
+
/**
|
|
488
|
+
* the wire name, written into every task of this type
|
|
489
|
+
*
|
|
490
|
+
* @generated from field: string name = 1;
|
|
491
|
+
*/
|
|
492
|
+
name: string;
|
|
493
|
+
/**
|
|
494
|
+
* @generated from field: string description = 2;
|
|
495
|
+
*/
|
|
496
|
+
description: string;
|
|
497
|
+
/**
|
|
498
|
+
* absent: the result is text
|
|
499
|
+
*
|
|
500
|
+
* @generated from field: optional string result_schema_json = 3;
|
|
501
|
+
*/
|
|
502
|
+
resultSchemaJson?: string | undefined;
|
|
503
|
+
/**
|
|
504
|
+
* names, checked in order
|
|
505
|
+
*
|
|
506
|
+
* @generated from field: repeated string rules = 4;
|
|
507
|
+
*/
|
|
508
|
+
rules: string[];
|
|
509
|
+
};
|
|
510
|
+
/**
|
|
511
|
+
* Describes the message ankka.protocol.v1.AutonomousAgentDetail.TaskType.
|
|
512
|
+
* Use `create(AutonomousAgentDetail_TaskTypeSchema)` to create a new message.
|
|
513
|
+
*/
|
|
514
|
+
export declare const AutonomousAgentDetail_TaskTypeSchema: GenMessage<AutonomousAgentDetail_TaskType>;
|
|
515
|
+
/**
|
|
516
|
+
* @generated from message ankka.protocol.v1.AutonomousAgentDetail.TaskAcceptance
|
|
517
|
+
*/
|
|
518
|
+
export type AutonomousAgentDetail_TaskAcceptance = Message<"ankka.protocol.v1.AutonomousAgentDetail.TaskAcceptance"> & {
|
|
519
|
+
/**
|
|
520
|
+
* a name in task_types
|
|
521
|
+
*
|
|
522
|
+
* @generated from field: string task_type = 1;
|
|
523
|
+
*/
|
|
524
|
+
taskType: string;
|
|
525
|
+
/**
|
|
526
|
+
* at least 1
|
|
527
|
+
*
|
|
528
|
+
* @generated from field: int32 max_iterations = 2;
|
|
529
|
+
*/
|
|
530
|
+
maxIterations: number;
|
|
531
|
+
};
|
|
532
|
+
/**
|
|
533
|
+
* Describes the message ankka.protocol.v1.AutonomousAgentDetail.TaskAcceptance.
|
|
534
|
+
* Use `create(AutonomousAgentDetail_TaskAcceptanceSchema)` to create a new message.
|
|
535
|
+
*/
|
|
536
|
+
export declare const AutonomousAgentDetail_TaskAcceptanceSchema: GenMessage<AutonomousAgentDetail_TaskAcceptance>;
|
|
537
|
+
/**
|
|
538
|
+
* @generated from message ankka.protocol.v1.AutonomousAgentDetail.AutonomousSettings
|
|
539
|
+
*/
|
|
540
|
+
export type AutonomousAgentDetail_AutonomousSettings = Message<"ankka.protocol.v1.AutonomousAgentDetail.AutonomousSettings"> & {
|
|
541
|
+
/**
|
|
542
|
+
* 0.8
|
|
543
|
+
*
|
|
544
|
+
* @generated from field: optional double approaching_budget_at = 1;
|
|
545
|
+
*/
|
|
546
|
+
approachingBudgetAt?: number | undefined;
|
|
547
|
+
/**
|
|
548
|
+
* 3
|
|
549
|
+
*
|
|
550
|
+
* @generated from field: optional int32 repeated_failure_at = 2;
|
|
551
|
+
*/
|
|
552
|
+
repeatedFailureAt?: number | undefined;
|
|
553
|
+
/**
|
|
554
|
+
* 5
|
|
555
|
+
*
|
|
556
|
+
* @generated from field: optional int32 max_consecutive_failures = 3;
|
|
557
|
+
*/
|
|
558
|
+
maxConsecutiveFailures?: number | undefined;
|
|
559
|
+
/**
|
|
560
|
+
* 300000
|
|
561
|
+
*
|
|
562
|
+
* @generated from field: optional int64 dependency_stuck_after_millis = 4;
|
|
563
|
+
*/
|
|
564
|
+
dependencyStuckAfterMillis?: bigint | undefined;
|
|
565
|
+
};
|
|
566
|
+
/**
|
|
567
|
+
* Describes the message ankka.protocol.v1.AutonomousAgentDetail.AutonomousSettings.
|
|
568
|
+
* Use `create(AutonomousAgentDetail_AutonomousSettingsSchema)` to create a new message.
|
|
569
|
+
*/
|
|
570
|
+
export declare const AutonomousAgentDetail_AutonomousSettingsSchema: GenMessage<AutonomousAgentDetail_AutonomousSettings>;
|
|
420
571
|
/**
|
|
421
572
|
* @generated from message ankka.protocol.v1.Endpoint
|
|
422
573
|
*/
|
|
@@ -441,6 +592,12 @@ export type Endpoint = Message<"ankka.protocol.v1.Endpoint"> & {
|
|
|
441
592
|
* @generated from field: repeated ankka.protocol.v1.Route routes = 4;
|
|
442
593
|
*/
|
|
443
594
|
routes: Route[];
|
|
595
|
+
/**
|
|
596
|
+
* Read only when `acl` is CALLERS: the callers admitted, any one of which suffices (protocol 1.1).
|
|
597
|
+
*
|
|
598
|
+
* @generated from field: repeated ankka.protocol.v1.CallerMatcher allow_callers = 5;
|
|
599
|
+
*/
|
|
600
|
+
allowCallers: CallerMatcher[];
|
|
444
601
|
};
|
|
445
602
|
/**
|
|
446
603
|
* Describes the message ankka.protocol.v1.Endpoint.
|
|
@@ -463,6 +620,10 @@ export declare const Endpoint_Acl: {
|
|
|
463
620
|
* @generated from enum value: AUTHENTICATED = 2;
|
|
464
621
|
*/
|
|
465
622
|
readonly AUTHENTICATED: 2;
|
|
623
|
+
/**
|
|
624
|
+
* @generated from enum value: CALLERS = 3;
|
|
625
|
+
*/
|
|
626
|
+
readonly CALLERS: 3;
|
|
466
627
|
};
|
|
467
628
|
/**
|
|
468
629
|
* @generated from enum ankka.protocol.v1.Endpoint.Acl
|
|
@@ -472,6 +633,67 @@ export type Endpoint_Acl = (typeof Endpoint_Acl)[keyof typeof Endpoint_Acl] | Un
|
|
|
472
633
|
* Describes the enum ankka.protocol.v1.Endpoint.Acl.
|
|
473
634
|
*/
|
|
474
635
|
export declare const Endpoint_AclSchema: GenEnum<Endpoint_Acl>;
|
|
636
|
+
/**
|
|
637
|
+
* One kind of caller a CALLERS acl admits. A named service with no project means this service's own.
|
|
638
|
+
*
|
|
639
|
+
* @generated from message ankka.protocol.v1.CallerMatcher
|
|
640
|
+
*/
|
|
641
|
+
export type CallerMatcher = Message<"ankka.protocol.v1.CallerMatcher"> & {
|
|
642
|
+
/**
|
|
643
|
+
* @generated from oneof ankka.protocol.v1.CallerMatcher.kind
|
|
644
|
+
*/
|
|
645
|
+
kind: {
|
|
646
|
+
/**
|
|
647
|
+
* @generated from field: ankka.protocol.v1.Empty internet = 1;
|
|
648
|
+
*/
|
|
649
|
+
value: Empty;
|
|
650
|
+
case: "internet";
|
|
651
|
+
} | {
|
|
652
|
+
/**
|
|
653
|
+
* @generated from field: ankka.protocol.v1.NamedService service = 2;
|
|
654
|
+
*/
|
|
655
|
+
value: NamedService;
|
|
656
|
+
case: "service";
|
|
657
|
+
} | {
|
|
658
|
+
/**
|
|
659
|
+
* @generated from field: ankka.protocol.v1.Empty any_in_project = 3;
|
|
660
|
+
*/
|
|
661
|
+
value: Empty;
|
|
662
|
+
case: "anyInProject";
|
|
663
|
+
} | {
|
|
664
|
+
/**
|
|
665
|
+
* @generated from field: ankka.protocol.v1.Empty self = 4;
|
|
666
|
+
*/
|
|
667
|
+
value: Empty;
|
|
668
|
+
case: "self";
|
|
669
|
+
} | {
|
|
670
|
+
case: undefined;
|
|
671
|
+
value?: undefined;
|
|
672
|
+
};
|
|
673
|
+
};
|
|
674
|
+
/**
|
|
675
|
+
* Describes the message ankka.protocol.v1.CallerMatcher.
|
|
676
|
+
* Use `create(CallerMatcherSchema)` to create a new message.
|
|
677
|
+
*/
|
|
678
|
+
export declare const CallerMatcherSchema: GenMessage<CallerMatcher>;
|
|
679
|
+
/**
|
|
680
|
+
* @generated from message ankka.protocol.v1.NamedService
|
|
681
|
+
*/
|
|
682
|
+
export type NamedService = Message<"ankka.protocol.v1.NamedService"> & {
|
|
683
|
+
/**
|
|
684
|
+
* @generated from field: optional string project = 1;
|
|
685
|
+
*/
|
|
686
|
+
project?: string | undefined;
|
|
687
|
+
/**
|
|
688
|
+
* @generated from field: string name = 2;
|
|
689
|
+
*/
|
|
690
|
+
name: string;
|
|
691
|
+
};
|
|
692
|
+
/**
|
|
693
|
+
* Describes the message ankka.protocol.v1.NamedService.
|
|
694
|
+
* Use `create(NamedServiceSchema)` to create a new message.
|
|
695
|
+
*/
|
|
696
|
+
export declare const NamedServiceSchema: GenMessage<NamedService>;
|
|
475
697
|
/**
|
|
476
698
|
* @generated from message ankka.protocol.v1.Route
|
|
477
699
|
*/
|
|
@@ -512,6 +734,12 @@ export type Route = Message<"ankka.protocol.v1.Route"> & {
|
|
|
512
734
|
* @generated from field: optional ankka.protocol.v1.Endpoint.Acl acl = 6;
|
|
513
735
|
*/
|
|
514
736
|
acl?: Endpoint_Acl | undefined;
|
|
737
|
+
/**
|
|
738
|
+
* The route's own callers, read only when its `acl` is CALLERS.
|
|
739
|
+
*
|
|
740
|
+
* @generated from field: repeated ankka.protocol.v1.CallerMatcher allow_callers = 7;
|
|
741
|
+
*/
|
|
742
|
+
allowCallers: CallerMatcher[];
|
|
515
743
|
};
|
|
516
744
|
/**
|
|
517
745
|
* Describes the message ankka.protocol.v1.Route.
|
|
@@ -564,6 +792,12 @@ export declare const Kind: {
|
|
|
564
792
|
* @generated from enum value: AGENT = 6;
|
|
565
793
|
*/
|
|
566
794
|
readonly AGENT: 6;
|
|
795
|
+
/**
|
|
796
|
+
* protocol 1.2
|
|
797
|
+
*
|
|
798
|
+
* @generated from enum value: AUTONOMOUS_AGENT = 7;
|
|
799
|
+
*/
|
|
800
|
+
readonly AUTONOMOUS_AGENT: 7;
|
|
567
801
|
};
|
|
568
802
|
/**
|
|
569
803
|
* @generated from enum ankka.protocol.v1.Kind
|
|
@@ -5,7 +5,7 @@ import { file_ankka_protocol_v1_payload } from "./payload_pb.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* Describes the file ankka/protocol/v1/discovery.proto.
|
|
7
7
|
*/
|
|
8
|
-
export const file_ankka_protocol_v1_discovery = /*@__PURE__*/ fileDesc("
|
|
8
|
+
export const file_ankka_protocol_v1_discovery = /*@__PURE__*/ fileDesc("CiFhbmtrYS9wcm90b2NvbC92MS9kaXNjb3ZlcnkucHJvdG8SEWFua2thLnByb3RvY29sLnYxIkAKC1NpZGVjYXJJbmZvEhgKEHByb3RvY29sX3ZlcnNpb24YASABKAkSFwoPcnVudGltZV92ZXJzaW9uGAIgASgJIqsBCgRTcGVjEhgKEHByb3RvY29sX3ZlcnNpb24YASABKAkSJwoDc2RrGAIgASgLMhouYW5ra2EucHJvdG9jb2wudjEuU2RrSW5mbxIwCgpjb21wb25lbnRzGAMgAygLMhwuYW5ra2EucHJvdG9jb2wudjEuQ29tcG9uZW50Ei4KCWVuZHBvaW50cxgEIAMoCzIbLmFua2thLnByb3RvY29sLnYxLkVuZHBvaW50IigKB1Nka0luZm8SDAoEbmFtZRgBIAEoCRIPCgd2ZXJzaW9uGAIgASgJIsAECglDb21wb25lbnQSJQoEa2luZBgBIAEoDjIXLmFua2thLnByb3RvY29sLnYxLktpbmQSCgoCaWQYAiABKAkSLAoIaGFuZGxlcnMYAyADKAsyGi5hbmtrYS5wcm90b2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USCgoCaWQYASABKAkSDgoGbWV0aG9kGAIgASgJEhAKCHRlbXBsYXRlGAMgASgJEhAKCGhhc19ib2R5GAQgASgIEhEKCXN0cmVhbWluZxgFIAEoCBIxCgNhY2wYBiABKA4yHy5hbmtrYS5wcm90b2NvbC52MS5FbmRwb2ludC5BY2xIAIgBARI3Cg1hbGxvd19jYWxsZXJzGAcgAygLMiAuYW5ra2EucHJvdG9jb2wudjEuQ2FsbGVyTWF0Y2hlckIGCgRfYWNsIhoKB1Byb2JsZW0SDwoHbWVzc2FnZRgBIAEoCSqPAQoES2luZBIYChRFVkVOVF9TT1VSQ0VEX0VOVElUWRAAEhQKEEtFWV9WQUxVRV9FTlRJVFkQARIMCghXT1JLRkxPVxACEggKBFZJRVcQAxIMCghDT05TVU1FUhAEEhAKDFRJTUVEX0FDVElPThAFEgkKBUFHRU5UEAYSFAoQQVVUT05PTU9VU19BR0VOVBAHMpUBCglEaXNjb3ZlcnkSQwoIRGlzY292ZXISHi5hbmtrYS5wcm90b2NvbC52MS5TaWRlY2FySW5mbxoXLmFua2thLnByb3RvY29sLnYxLlNwZWMSQwoLUmVwb3J0RXJyb3ISGi5hbmtrYS5wcm90b2NvbC52MS5Qcm9ibGVtGhguYW5ra2EucHJvdG9jb2wudjEuRW1wdHliBnByb3RvMw", [file_ankka_protocol_v1_payload]);
|
|
9
9
|
/**
|
|
10
10
|
* Describes the message ankka.protocol.v1.SidecarInfo.
|
|
11
11
|
* Use `create(SidecarInfoSchema)` to create a new message.
|
|
@@ -96,11 +96,31 @@ export const AgentDetailSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v
|
|
|
96
96
|
* Use `create(ToolSchema)` to create a new message.
|
|
97
97
|
*/
|
|
98
98
|
export const ToolSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 13);
|
|
99
|
+
/**
|
|
100
|
+
* Describes the message ankka.protocol.v1.AutonomousAgentDetail.
|
|
101
|
+
* Use `create(AutonomousAgentDetailSchema)` to create a new message.
|
|
102
|
+
*/
|
|
103
|
+
export const AutonomousAgentDetailSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 14);
|
|
104
|
+
/**
|
|
105
|
+
* Describes the message ankka.protocol.v1.AutonomousAgentDetail.TaskType.
|
|
106
|
+
* Use `create(AutonomousAgentDetail_TaskTypeSchema)` to create a new message.
|
|
107
|
+
*/
|
|
108
|
+
export const AutonomousAgentDetail_TaskTypeSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 14, 0);
|
|
109
|
+
/**
|
|
110
|
+
* Describes the message ankka.protocol.v1.AutonomousAgentDetail.TaskAcceptance.
|
|
111
|
+
* Use `create(AutonomousAgentDetail_TaskAcceptanceSchema)` to create a new message.
|
|
112
|
+
*/
|
|
113
|
+
export const AutonomousAgentDetail_TaskAcceptanceSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 14, 1);
|
|
114
|
+
/**
|
|
115
|
+
* Describes the message ankka.protocol.v1.AutonomousAgentDetail.AutonomousSettings.
|
|
116
|
+
* Use `create(AutonomousAgentDetail_AutonomousSettingsSchema)` to create a new message.
|
|
117
|
+
*/
|
|
118
|
+
export const AutonomousAgentDetail_AutonomousSettingsSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 14, 2);
|
|
99
119
|
/**
|
|
100
120
|
* Describes the message ankka.protocol.v1.Endpoint.
|
|
101
121
|
* Use `create(EndpointSchema)` to create a new message.
|
|
102
122
|
*/
|
|
103
|
-
export const EndpointSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery,
|
|
123
|
+
export const EndpointSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 15);
|
|
104
124
|
/**
|
|
105
125
|
* @generated from enum ankka.protocol.v1.Endpoint.Acl
|
|
106
126
|
*/
|
|
@@ -117,21 +137,35 @@ export const Endpoint_Acl = {
|
|
|
117
137
|
* @generated from enum value: AUTHENTICATED = 2;
|
|
118
138
|
*/
|
|
119
139
|
AUTHENTICATED: 2,
|
|
140
|
+
/**
|
|
141
|
+
* @generated from enum value: CALLERS = 3;
|
|
142
|
+
*/
|
|
143
|
+
CALLERS: 3,
|
|
120
144
|
};
|
|
121
145
|
/**
|
|
122
146
|
* Describes the enum ankka.protocol.v1.Endpoint.Acl.
|
|
123
147
|
*/
|
|
124
|
-
export const Endpoint_AclSchema = /*@__PURE__*/ enumDesc(file_ankka_protocol_v1_discovery,
|
|
148
|
+
export const Endpoint_AclSchema = /*@__PURE__*/ enumDesc(file_ankka_protocol_v1_discovery, 15, 0);
|
|
149
|
+
/**
|
|
150
|
+
* Describes the message ankka.protocol.v1.CallerMatcher.
|
|
151
|
+
* Use `create(CallerMatcherSchema)` to create a new message.
|
|
152
|
+
*/
|
|
153
|
+
export const CallerMatcherSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 16);
|
|
154
|
+
/**
|
|
155
|
+
* Describes the message ankka.protocol.v1.NamedService.
|
|
156
|
+
* Use `create(NamedServiceSchema)` to create a new message.
|
|
157
|
+
*/
|
|
158
|
+
export const NamedServiceSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 17);
|
|
125
159
|
/**
|
|
126
160
|
* Describes the message ankka.protocol.v1.Route.
|
|
127
161
|
* Use `create(RouteSchema)` to create a new message.
|
|
128
162
|
*/
|
|
129
|
-
export const RouteSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery,
|
|
163
|
+
export const RouteSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 18);
|
|
130
164
|
/**
|
|
131
165
|
* Describes the message ankka.protocol.v1.Problem.
|
|
132
166
|
* Use `create(ProblemSchema)` to create a new message.
|
|
133
167
|
*/
|
|
134
|
-
export const ProblemSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery,
|
|
168
|
+
export const ProblemSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_discovery, 19);
|
|
135
169
|
/**
|
|
136
170
|
* @generated from enum ankka.protocol.v1.Kind
|
|
137
171
|
*/
|
|
@@ -164,6 +198,12 @@ export const Kind = {
|
|
|
164
198
|
* @generated from enum value: AGENT = 6;
|
|
165
199
|
*/
|
|
166
200
|
AGENT: 6,
|
|
201
|
+
/**
|
|
202
|
+
* protocol 1.2
|
|
203
|
+
*
|
|
204
|
+
* @generated from enum value: AUTONOMOUS_AGENT = 7;
|
|
205
|
+
*/
|
|
206
|
+
AUTONOMOUS_AGENT: 7,
|
|
167
207
|
};
|
|
168
208
|
/**
|
|
169
209
|
* Describes the enum ankka.protocol.v1.Kind.
|
|
@@ -57,6 +57,13 @@ export type HttpRequest = Message<"ankka.protocol.v1.HttpRequest"> & {
|
|
|
57
57
|
* @generated from field: ankka.protocol.v1.Metadata metadata = 9;
|
|
58
58
|
*/
|
|
59
59
|
metadata?: Metadata | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Which workload sent the request, as the platform established it from the client certificate
|
|
62
|
+
* (protocol 1.1). Absent from a sidecar that predates it, which a process reads as local.
|
|
63
|
+
*
|
|
64
|
+
* @generated from field: optional ankka.protocol.v1.Caller caller = 10;
|
|
65
|
+
*/
|
|
66
|
+
caller?: Caller | undefined;
|
|
60
67
|
};
|
|
61
68
|
/**
|
|
62
69
|
* Describes the message ankka.protocol.v1.HttpRequest.
|
|
@@ -81,6 +88,62 @@ export type HttpRequest_Pair = Message<"ankka.protocol.v1.HttpRequest.Pair"> & {
|
|
|
81
88
|
* Use `create(HttpRequest_PairSchema)` to create a new message.
|
|
82
89
|
*/
|
|
83
90
|
export declare const HttpRequest_PairSchema: GenMessage<HttpRequest_Pair>;
|
|
91
|
+
/**
|
|
92
|
+
* The gateway (the internet), a named service of this installation, or — outside a cluster — the
|
|
93
|
+
* local machine. Never taken from anything the request says about itself.
|
|
94
|
+
*
|
|
95
|
+
* @generated from message ankka.protocol.v1.Caller
|
|
96
|
+
*/
|
|
97
|
+
export type Caller = Message<"ankka.protocol.v1.Caller"> & {
|
|
98
|
+
/**
|
|
99
|
+
* @generated from oneof ankka.protocol.v1.Caller.kind
|
|
100
|
+
*/
|
|
101
|
+
kind: {
|
|
102
|
+
/**
|
|
103
|
+
* @generated from field: ankka.protocol.v1.Empty gateway = 1;
|
|
104
|
+
*/
|
|
105
|
+
value: Empty;
|
|
106
|
+
case: "gateway";
|
|
107
|
+
} | {
|
|
108
|
+
/**
|
|
109
|
+
* @generated from field: ankka.protocol.v1.ServiceCaller service = 2;
|
|
110
|
+
*/
|
|
111
|
+
value: ServiceCaller;
|
|
112
|
+
case: "service";
|
|
113
|
+
} | {
|
|
114
|
+
/**
|
|
115
|
+
* @generated from field: ankka.protocol.v1.Empty local = 3;
|
|
116
|
+
*/
|
|
117
|
+
value: Empty;
|
|
118
|
+
case: "local";
|
|
119
|
+
} | {
|
|
120
|
+
case: undefined;
|
|
121
|
+
value?: undefined;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* Describes the message ankka.protocol.v1.Caller.
|
|
126
|
+
* Use `create(CallerSchema)` to create a new message.
|
|
127
|
+
*/
|
|
128
|
+
export declare const CallerSchema: GenMessage<Caller>;
|
|
129
|
+
/**
|
|
130
|
+
* @generated from message ankka.protocol.v1.ServiceCaller
|
|
131
|
+
*/
|
|
132
|
+
export type ServiceCaller = Message<"ankka.protocol.v1.ServiceCaller"> & {
|
|
133
|
+
/**
|
|
134
|
+
* @generated from field: string project = 1;
|
|
135
|
+
*/
|
|
136
|
+
project: string;
|
|
137
|
+
/**
|
|
138
|
+
* @generated from field: string name = 2;
|
|
139
|
+
*/
|
|
140
|
+
name: string;
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* Describes the message ankka.protocol.v1.ServiceCaller.
|
|
144
|
+
* Use `create(ServiceCallerSchema)` to create a new message.
|
|
145
|
+
*/
|
|
146
|
+
export declare const ServiceCallerSchema: GenMessage<ServiceCaller>;
|
|
84
147
|
/**
|
|
85
148
|
* @generated from message ankka.protocol.v1.Principal
|
|
86
149
|
*/
|
|
@@ -7,7 +7,7 @@ import { file_ankka_protocol_v1_payload } from "./payload_pb.js";
|
|
|
7
7
|
/**
|
|
8
8
|
* Describes the file ankka/protocol/v1/endpoint.proto.
|
|
9
9
|
*/
|
|
10
|
-
export const file_ankka_protocol_v1_endpoint = /*@__PURE__*/ fileDesc("
|
|
10
|
+
export const file_ankka_protocol_v1_endpoint = /*@__PURE__*/ fileDesc("CiBhbmtrYS9wcm90b2NvbC92MS9lbmRwb2ludC5wcm90bxIRYW5ra2EucHJvdG9jb2wudjEiqAMKC0h0dHBSZXF1ZXN0EhMKC2VuZHBvaW50X2lkGAEgASgJEhAKCHJvdXRlX2lkGAIgASgJEhEKCXBhdGhfYXJncxgDIAMoCRIyCgVxdWVyeRgEIAMoCzIjLmFua2thLnByb3RvY29sLnYxLkh0dHBSZXF1ZXN0LlBhaXISNAoHaGVhZGVycxgFIAMoCzIjLmFua2thLnByb3RvY29sLnYxLkh0dHBSZXF1ZXN0LlBhaXISFAoMY29udGVudF90eXBlGAYgASgJEgwKBGJvZHkYByABKAwSNAoJcHJpbmNpcGFsGAggASgLMhwuYW5ra2EucHJvdG9jb2wudjEuUHJpbmNpcGFsSACIAQESLQoIbWV0YWRhdGEYCSABKAsyGy5hbmtrYS5wcm90b2NvbC52MS5NZXRhZGF0YRIuCgZjYWxsZXIYCiABKAsyGS5hbmtrYS5wcm90b2NvbC52MS5DYWxsZXJIAYgBARojCgRQYWlyEgwKBG5hbWUYASABKAkSDQoFdmFsdWUYAiABKAlCDAoKX3ByaW5jaXBhbEIJCgdfY2FsbGVyIp0BCgZDYWxsZXISKwoHZ2F0ZXdheRgBIAEoCzIYLmFua2thLnByb3RvY29sLnYxLkVtcHR5SAASMwoHc2VydmljZRgCIAEoCzIgLmFua2thLnByb3RvY29sLnYxLlNlcnZpY2VDYWxsZXJIABIpCgVsb2NhbBgDIAEoCzIYLmFua2thLnByb3RvY29sLnYxLkVtcHR5SABCBgoEa2luZCIuCg1TZXJ2aWNlQ2FsbGVyEg8KB3Byb2plY3QYASABKAkSDAoEbmFtZRgCIAEoCSJ9CglQcmluY2lwYWwSDwoHc3ViamVjdBgBIAEoCRIRCgRuYW1lGAIgASgJSACIAQESEgoFZW1haWwYAyABKAlIAYgBARIWCg5lbWFpbF92ZXJpZmllZBgEIAEoCBINCgVyb2xlcxgFIAMoCUIHCgVfbmFtZUIICgZfZW1haWwiegoJSHR0cFJlcGx5EjMKCHJlc3BvbnNlGAEgASgLMh8uYW5ra2EucHJvdG9jb2wudjEuSHR0cFJlc3BvbnNlSAASLQoHZmFpbHVyZRgCIAEoCzIaLmFua2thLnByb3RvY29sLnYxLkZhaWx1cmVIAEIJCgdtZXNzYWdlIngKDEh0dHBSZXNwb25zZRIOCgZzdGF0dXMYASABKAUSFAoMY29udGVudF90eXBlGAIgASgJEgwKBGJvZHkYAyABKAwSNAoHaGVhZGVycxgEIAMoCzIjLmFua2thLnByb3RvY29sLnYxLkh0dHBSZXF1ZXN0LlBhaXIigQEKC1N0cmVhbUZyYW1lEg4KBHRleHQYASABKAlIABItCgljb21wbGV0ZWQYAiABKAsyGC5hbmtrYS5wcm90b2NvbC52MS5FbXB0eUgAEioKBmZhaWxlZBgDIAEoCzIYLmFua2thLnByb3RvY29sLnYxLkVycm9ySABCBwoFZnJhbWUyoAEKBEh0dHASRgoGSGFuZGxlEh4uYW5ra2EucHJvdG9jb2wudjEuSHR0cFJlcXVlc3QaHC5hbmtrYS5wcm90b2NvbC52MS5IdHRwUmVwbHkSUAoMSGFuZGxlU3RyZWFtEh4uYW5ra2EucHJvdG9jb2wudjEuSHR0cFJlcXVlc3QaHi5hbmtrYS5wcm90b2NvbC52MS5TdHJlYW1GcmFtZTABYgZwcm90bzM", [file_ankka_protocol_v1_payload]);
|
|
11
11
|
/**
|
|
12
12
|
* Describes the message ankka.protocol.v1.HttpRequest.
|
|
13
13
|
* Use `create(HttpRequestSchema)` to create a new message.
|
|
@@ -18,26 +18,36 @@ export const HttpRequestSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v
|
|
|
18
18
|
* Use `create(HttpRequest_PairSchema)` to create a new message.
|
|
19
19
|
*/
|
|
20
20
|
export const HttpRequest_PairSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_endpoint, 0, 0);
|
|
21
|
+
/**
|
|
22
|
+
* Describes the message ankka.protocol.v1.Caller.
|
|
23
|
+
* Use `create(CallerSchema)` to create a new message.
|
|
24
|
+
*/
|
|
25
|
+
export const CallerSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_endpoint, 1);
|
|
26
|
+
/**
|
|
27
|
+
* Describes the message ankka.protocol.v1.ServiceCaller.
|
|
28
|
+
* Use `create(ServiceCallerSchema)` to create a new message.
|
|
29
|
+
*/
|
|
30
|
+
export const ServiceCallerSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_endpoint, 2);
|
|
21
31
|
/**
|
|
22
32
|
* Describes the message ankka.protocol.v1.Principal.
|
|
23
33
|
* Use `create(PrincipalSchema)` to create a new message.
|
|
24
34
|
*/
|
|
25
|
-
export const PrincipalSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_endpoint,
|
|
35
|
+
export const PrincipalSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_endpoint, 3);
|
|
26
36
|
/**
|
|
27
37
|
* Describes the message ankka.protocol.v1.HttpReply.
|
|
28
38
|
* Use `create(HttpReplySchema)` to create a new message.
|
|
29
39
|
*/
|
|
30
|
-
export const HttpReplySchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_endpoint,
|
|
40
|
+
export const HttpReplySchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_endpoint, 4);
|
|
31
41
|
/**
|
|
32
42
|
* Describes the message ankka.protocol.v1.HttpResponse.
|
|
33
43
|
* Use `create(HttpResponseSchema)` to create a new message.
|
|
34
44
|
*/
|
|
35
|
-
export const HttpResponseSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_endpoint,
|
|
45
|
+
export const HttpResponseSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_endpoint, 5);
|
|
36
46
|
/**
|
|
37
47
|
* Describes the message ankka.protocol.v1.StreamFrame.
|
|
38
48
|
* Use `create(StreamFrameSchema)` to create a new message.
|
|
39
49
|
*/
|
|
40
|
-
export const StreamFrameSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_endpoint,
|
|
50
|
+
export const StreamFrameSchema = /*@__PURE__*/ messageDesc(file_ankka_protocol_v1_endpoint, 6);
|
|
41
51
|
/**
|
|
42
52
|
* @generated from service ankka.protocol.v1.Http
|
|
43
53
|
*/
|