@valon-technologies/gestalt 0.0.1-alpha.33 → 0.0.1-alpha.34
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/README.md +4 -5
- package/package.json +1 -1
- package/src/agent-access.ts +7 -4
- package/src/agent-conversions.ts +0 -37
- package/src/agent.ts +14 -20
- package/src/api.ts +17 -13
- package/src/authorization.ts +619 -1436
- package/src/index.ts +45 -229
- package/src/internal/gen/v1/agent_pb.ts +55 -84
- package/src/internal/gen/v1/app_pb.ts +4 -19
- package/src/internal/gen/v1/authorization_pb.ts +407 -781
- package/src/internal/gen/v1/runtime_provider_pb.ts +1 -0
- package/src/internal/gen/v1/workflow_pb.ts +678 -737
- package/src/provider-kind.ts +6 -6
- package/src/provider.ts +1 -1
- package/src/runtime.ts +15 -23
- package/src/workflow-access.ts +340 -385
- package/src/workflow.ts +1201 -2443
package/src/index.ts
CHANGED
|
@@ -28,71 +28,6 @@
|
|
|
28
28
|
* import { parseRuntimeArgs, serve } from "@valon-technologies/gestalt/runtime";
|
|
29
29
|
* ```
|
|
30
30
|
*/
|
|
31
|
-
export {
|
|
32
|
-
Authorization,
|
|
33
|
-
AuthorizationProvider,
|
|
34
|
-
AUTHORIZATION_SUBJECT_TYPE_SUBJECT,
|
|
35
|
-
authorizationAction,
|
|
36
|
-
createAuthorizationProviderService,
|
|
37
|
-
defineAuthorizationProvider,
|
|
38
|
-
authorizationRelationship,
|
|
39
|
-
authorizationRelationshipKeyWithTarget,
|
|
40
|
-
authorizationRelationshipKey,
|
|
41
|
-
authorizationRelationshipWithTarget,
|
|
42
|
-
authorizationResource,
|
|
43
|
-
authorizationResourceTarget,
|
|
44
|
-
authorizationSubject,
|
|
45
|
-
authorizationSubjectSet,
|
|
46
|
-
authorizationSubjectSetTarget,
|
|
47
|
-
authorizationSubjectTarget,
|
|
48
|
-
isAuthorizationProvider,
|
|
49
|
-
type AuthorizationAction,
|
|
50
|
-
type AuthorizationActionSearch,
|
|
51
|
-
type AuthorizationDecision,
|
|
52
|
-
type AuthorizationEvaluateInput,
|
|
53
|
-
type AuthorizationEvaluateManyInput,
|
|
54
|
-
type AuthorizationEvaluationsResponse,
|
|
55
|
-
type AuthorizationEffectiveSearchSubjectsInput,
|
|
56
|
-
type AuthorizationEffectiveSubjectSearch,
|
|
57
|
-
type AuthorizationExpandInput,
|
|
58
|
-
type AuthorizationExpand,
|
|
59
|
-
type AuthorizationExpandNode,
|
|
60
|
-
type AuthorizationGetActiveModel,
|
|
61
|
-
type AuthorizationListModelsInput,
|
|
62
|
-
type AuthorizationListModels,
|
|
63
|
-
type AuthorizationMetadata,
|
|
64
|
-
type AuthorizationModel,
|
|
65
|
-
type AuthorizationModelAction,
|
|
66
|
-
type AuthorizationModelAllowedTarget,
|
|
67
|
-
type AuthorizationModelAllowedTargetKind,
|
|
68
|
-
type AuthorizationModelComputedUserset,
|
|
69
|
-
type AuthorizationModelRef,
|
|
70
|
-
type AuthorizationModelRelation,
|
|
71
|
-
type AuthorizationModelResourceType,
|
|
72
|
-
type AuthorizationModelRewrite,
|
|
73
|
-
type AuthorizationModelRewriteKind,
|
|
74
|
-
type AuthorizationModelRewriteThis,
|
|
75
|
-
type AuthorizationModelRewriteUnion,
|
|
76
|
-
type AuthorizationModelSubjectSetTarget,
|
|
77
|
-
type AuthorizationModelTupleToUserset,
|
|
78
|
-
type AuthorizationProviderOptions,
|
|
79
|
-
type AuthorizationReadRelationshipsInput,
|
|
80
|
-
type AuthorizationReadRelationships,
|
|
81
|
-
type AuthorizationRelationship,
|
|
82
|
-
type AuthorizationRelationshipKey,
|
|
83
|
-
type AuthorizationRelationshipTarget,
|
|
84
|
-
type AuthorizationRelationshipTargetKind,
|
|
85
|
-
type AuthorizationResource,
|
|
86
|
-
type AuthorizationSubjectSet,
|
|
87
|
-
type AuthorizationResourceSearch,
|
|
88
|
-
type AuthorizationSearchActionsInput,
|
|
89
|
-
type AuthorizationSearchResourcesInput,
|
|
90
|
-
type AuthorizationSearchSubjectsInput,
|
|
91
|
-
type AuthorizationSubject,
|
|
92
|
-
type AuthorizationSubjectSearch,
|
|
93
|
-
type AuthorizationWriteRelationshipsInput,
|
|
94
|
-
type AuthorizationWriteModelInput,
|
|
95
|
-
} from "./authorization.ts";
|
|
96
31
|
export {
|
|
97
32
|
connectionParam,
|
|
98
33
|
ok,
|
|
@@ -163,29 +98,7 @@ export {
|
|
|
163
98
|
type AgentWorkspace,
|
|
164
99
|
type AgentWorkspaceGitCheckout,
|
|
165
100
|
} from "./agent-access.ts";
|
|
166
|
-
export
|
|
167
|
-
Workflow,
|
|
168
|
-
type WorkflowCreateDefinition,
|
|
169
|
-
type WorkflowCreateTrigger,
|
|
170
|
-
type WorkflowCreateSchedule,
|
|
171
|
-
type WorkflowDeleteDefinition,
|
|
172
|
-
type WorkflowDeleteTrigger,
|
|
173
|
-
type WorkflowDeleteSchedule,
|
|
174
|
-
type WorkflowGetDefinition,
|
|
175
|
-
type WorkflowGetTrigger,
|
|
176
|
-
type WorkflowGetSchedule,
|
|
177
|
-
type WorkflowPauseTrigger,
|
|
178
|
-
type WorkflowPauseSchedule,
|
|
179
|
-
type WorkflowPublishEvent,
|
|
180
|
-
type WorkflowResumeTrigger,
|
|
181
|
-
type WorkflowResumeSchedule,
|
|
182
|
-
type WorkflowSignalOrStartRun,
|
|
183
|
-
type WorkflowSignalRun,
|
|
184
|
-
type WorkflowStartRun,
|
|
185
|
-
type WorkflowUpdateDefinition,
|
|
186
|
-
type WorkflowUpdateTrigger,
|
|
187
|
-
type WorkflowUpdateSchedule,
|
|
188
|
-
} from "./workflow-access.ts";
|
|
101
|
+
export * from "./workflow-access.ts";
|
|
189
102
|
export {
|
|
190
103
|
ENV_RUNTIME_SESSION_ID,
|
|
191
104
|
RuntimeLogHost,
|
|
@@ -196,6 +109,49 @@ export {
|
|
|
196
109
|
type RuntimeLogStreamName,
|
|
197
110
|
type RuntimeLogWriterOptions,
|
|
198
111
|
} from "./runtime-log-host.ts";
|
|
112
|
+
export {
|
|
113
|
+
AuthorizationProvider,
|
|
114
|
+
DefaultAccessPolicy,
|
|
115
|
+
RelationshipTargetType,
|
|
116
|
+
SourceLayer,
|
|
117
|
+
createAuthorizationProviderService,
|
|
118
|
+
defineAuthorizationProvider,
|
|
119
|
+
isAuthorizationProvider,
|
|
120
|
+
type AddRelationshipRequest,
|
|
121
|
+
type AddRelationshipResponse,
|
|
122
|
+
type AuthorizationAction,
|
|
123
|
+
type AuthorizationModel,
|
|
124
|
+
type AuthorizationModelRef,
|
|
125
|
+
type AuthorizationModelResourceType,
|
|
126
|
+
type AuthorizationModelResourceTypeFilter,
|
|
127
|
+
type AuthorizationProviderOptions,
|
|
128
|
+
type AuthorizationResource,
|
|
129
|
+
type AuthorizationSubject,
|
|
130
|
+
type CheckAccessManyRequest,
|
|
131
|
+
type CheckAccessManyResponse,
|
|
132
|
+
type CheckAccessRequest,
|
|
133
|
+
type CheckAccessResponse,
|
|
134
|
+
type DeleteRelationshipRequest,
|
|
135
|
+
type DeleteRelationshipResponse,
|
|
136
|
+
type GetActiveModelRefResponse,
|
|
137
|
+
type ListActiveModelResourceTypesRequest,
|
|
138
|
+
type ListActiveModelResourceTypesResponse,
|
|
139
|
+
type ListRelationshipsRequest,
|
|
140
|
+
type ListRelationshipsResponse,
|
|
141
|
+
type ModelAction,
|
|
142
|
+
type ModelAllowedTarget,
|
|
143
|
+
type ModelRelation,
|
|
144
|
+
type Relationship,
|
|
145
|
+
type RelationshipFilter,
|
|
146
|
+
type RelationshipTarget,
|
|
147
|
+
type RelationshipTuple,
|
|
148
|
+
type SetActiveModelRequest,
|
|
149
|
+
type SetActiveModelResponse,
|
|
150
|
+
type SetAuthorizationStateRequest,
|
|
151
|
+
type SetAuthorizationStateResponse,
|
|
152
|
+
type SubjectSet,
|
|
153
|
+
type SubjectSetType,
|
|
154
|
+
} from "./authorization.ts";
|
|
199
155
|
export {
|
|
200
156
|
AuthenticationProvider,
|
|
201
157
|
defineAuthenticationProvider,
|
|
@@ -390,7 +346,6 @@ export {
|
|
|
390
346
|
createAgentProviderService,
|
|
391
347
|
defineAgentProvider,
|
|
392
348
|
isAgentProvider,
|
|
393
|
-
type AgentActor,
|
|
394
349
|
type AgentHostExecuteToolInput,
|
|
395
350
|
type AgentHostListToolsInput,
|
|
396
351
|
type AgentHostResolveConnectionInput,
|
|
@@ -443,146 +398,7 @@ export {
|
|
|
443
398
|
type ResolvedAgentTool,
|
|
444
399
|
type UpdateAgentProviderSessionRequest,
|
|
445
400
|
} from "./agent.ts";
|
|
446
|
-
export
|
|
447
|
-
WorkflowProvider,
|
|
448
|
-
WorkflowRunStatus,
|
|
449
|
-
boundWorkflowDefinition,
|
|
450
|
-
boundWorkflowDefinitionFromDefinition,
|
|
451
|
-
boundWorkflowDefinitionInputFromDefinition,
|
|
452
|
-
boundWorkflowEventTrigger,
|
|
453
|
-
boundWorkflowEventTriggerFromTrigger,
|
|
454
|
-
boundWorkflowEventTriggerInputFromTrigger,
|
|
455
|
-
boundWorkflowRun,
|
|
456
|
-
boundWorkflowRunFromRun,
|
|
457
|
-
boundWorkflowRunInputFromRun,
|
|
458
|
-
boundWorkflowSchedule,
|
|
459
|
-
boundWorkflowScheduleFromSchedule,
|
|
460
|
-
boundWorkflowScheduleInputFromSchedule,
|
|
461
|
-
boundWorkflowTarget,
|
|
462
|
-
boundWorkflowTargetFromTarget,
|
|
463
|
-
boundWorkflowTargetInputFromTarget,
|
|
464
|
-
boundWorkflowTargetFromProto,
|
|
465
|
-
boundWorkflowTargetToProto,
|
|
466
|
-
createWorkflowProviderService,
|
|
467
|
-
defineWorkflowProvider,
|
|
468
|
-
isWorkflowProvider,
|
|
469
|
-
workflowActor,
|
|
470
|
-
workflowActorInputFromActor,
|
|
471
|
-
workflowEvent,
|
|
472
|
-
workflowEventFromEvent,
|
|
473
|
-
workflowEventInputFromEvent,
|
|
474
|
-
workflowEventMatch,
|
|
475
|
-
workflowEventMatchInputFromMatch,
|
|
476
|
-
workflowEventTriggerInvocation,
|
|
477
|
-
workflowAgentMessage,
|
|
478
|
-
workflowAgentMessageFromProto,
|
|
479
|
-
workflowAgentMessageInputFromMessage,
|
|
480
|
-
workflowAgentMessageToProto,
|
|
481
|
-
workflowRunTrigger,
|
|
482
|
-
workflowRunTriggerFromTrigger,
|
|
483
|
-
workflowRunTriggerInputFromTrigger,
|
|
484
|
-
workflowScheduleTrigger,
|
|
485
|
-
workflowSignal,
|
|
486
|
-
workflowSignalFromSignal,
|
|
487
|
-
workflowSignalInputFromSignal,
|
|
488
|
-
type BoundWorkflowDefinition,
|
|
489
|
-
type BoundWorkflowEventTrigger,
|
|
490
|
-
type BoundWorkflowRun,
|
|
491
|
-
type BoundWorkflowSchedule,
|
|
492
|
-
type BoundWorkflowTarget,
|
|
493
|
-
type CancelWorkflowProviderRunRequest,
|
|
494
|
-
type CreateWorkflowProviderDefinitionRequest,
|
|
495
|
-
type DeleteWorkflowProviderDefinitionRequest,
|
|
496
|
-
type DeleteWorkflowProviderEventTriggerRequest,
|
|
497
|
-
type DeleteWorkflowProviderScheduleRequest,
|
|
498
|
-
type GetWorkflowProviderDefinitionRequest,
|
|
499
|
-
type GetWorkflowProviderEventTriggerRequest,
|
|
500
|
-
type GetWorkflowProviderRunRequest,
|
|
501
|
-
type GetWorkflowProviderScheduleRequest,
|
|
502
|
-
type ListWorkflowProviderEventTriggersRequest,
|
|
503
|
-
type ListWorkflowProviderRunsRequest,
|
|
504
|
-
type ListWorkflowProviderRunsResponse,
|
|
505
|
-
type ListWorkflowProviderSchedulesRequest,
|
|
506
|
-
type WorkflowDefinition,
|
|
507
|
-
type WorkflowEventTrigger,
|
|
508
|
-
type WorkflowRun,
|
|
509
|
-
type WorkflowRunSignal,
|
|
510
|
-
type WorkflowSchedule,
|
|
511
|
-
type PauseWorkflowProviderEventTriggerRequest,
|
|
512
|
-
type PauseWorkflowProviderScheduleRequest,
|
|
513
|
-
type PublishWorkflowProviderEventRequest,
|
|
514
|
-
type ResumeWorkflowProviderEventTriggerRequest,
|
|
515
|
-
type ResumeWorkflowProviderScheduleRequest,
|
|
516
|
-
type SignalOrStartWorkflowProviderRunRequest,
|
|
517
|
-
type SignalWorkflowProviderRunRequest,
|
|
518
|
-
type SignalWorkflowRunResponse,
|
|
519
|
-
type StartWorkflowProviderRunRequest,
|
|
520
|
-
type UpdateWorkflowProviderDefinitionRequest,
|
|
521
|
-
type UpsertWorkflowProviderEventTriggerRequest,
|
|
522
|
-
type UpsertWorkflowProviderScheduleRequest,
|
|
523
|
-
type WorkflowActor,
|
|
524
|
-
type WorkflowEvent,
|
|
525
|
-
type WorkflowEventMatch,
|
|
526
|
-
type WorkflowEventTriggerInvocation,
|
|
527
|
-
workflowStep,
|
|
528
|
-
workflowStepAgentTurn,
|
|
529
|
-
workflowStepAgentTurnFromProto,
|
|
530
|
-
workflowStepAgentTurnInputFromTurn,
|
|
531
|
-
workflowStepAgentTurnToProto,
|
|
532
|
-
workflowStepFromProto,
|
|
533
|
-
workflowStepInputFromStep,
|
|
534
|
-
workflowStepOutputSource,
|
|
535
|
-
workflowStepOutputSourceFromProto,
|
|
536
|
-
workflowStepOutputSourceInputFromSource,
|
|
537
|
-
workflowStepOutputSourceToProto,
|
|
538
|
-
workflowStepAppCall,
|
|
539
|
-
workflowStepAppCallFromProto,
|
|
540
|
-
workflowStepAppCallInputFromCall,
|
|
541
|
-
workflowStepAppCallToProto,
|
|
542
|
-
workflowStepToProto,
|
|
543
|
-
workflowStepWhen,
|
|
544
|
-
workflowStepWhenFromProto,
|
|
545
|
-
workflowStepWhenInputFromWhen,
|
|
546
|
-
workflowStepWhenToProto,
|
|
547
|
-
workflowText,
|
|
548
|
-
workflowTextFromProto,
|
|
549
|
-
workflowTextInputFromText,
|
|
550
|
-
workflowTextToProto,
|
|
551
|
-
workflowValue,
|
|
552
|
-
workflowValueFromProto,
|
|
553
|
-
workflowValueInputFromValue,
|
|
554
|
-
workflowValueToProto,
|
|
555
|
-
type WorkflowAgentMessage,
|
|
556
|
-
type WorkflowProviderOptions,
|
|
557
|
-
type WorkflowRunTrigger,
|
|
558
|
-
type WorkflowScheduleTrigger,
|
|
559
|
-
type WorkflowSignal,
|
|
560
|
-
type WorkflowStep,
|
|
561
|
-
type WorkflowStepAgentTurn,
|
|
562
|
-
type WorkflowStepOutputSource,
|
|
563
|
-
type WorkflowStepAppCall,
|
|
564
|
-
type WorkflowStepWhen,
|
|
565
|
-
type WorkflowText,
|
|
566
|
-
type WorkflowValue,
|
|
567
|
-
} from "./workflow.ts";
|
|
568
|
-
export {
|
|
569
|
-
WorkflowValueError,
|
|
570
|
-
evaluateWorkflowStepInputs,
|
|
571
|
-
evaluateWorkflowValue,
|
|
572
|
-
latestWorkflowSignal,
|
|
573
|
-
mapPathValue,
|
|
574
|
-
parseWorkflowRunContext,
|
|
575
|
-
pathValue,
|
|
576
|
-
renderWorkflowTemplate,
|
|
577
|
-
workflowRunContext,
|
|
578
|
-
workflowSignalsContext,
|
|
579
|
-
type WorkflowEvalContext,
|
|
580
|
-
type WorkflowExecutionRequest,
|
|
581
|
-
type WorkflowRunContextActor,
|
|
582
|
-
type WorkflowRunContext,
|
|
583
|
-
type WorkflowRunContextSignal,
|
|
584
|
-
type WorkflowRunContextTrigger,
|
|
585
|
-
} from "./workflow.ts";
|
|
401
|
+
export * from "./workflow.ts";
|
|
586
402
|
export {
|
|
587
403
|
GENAI_OPERATION_CHAT,
|
|
588
404
|
GENAI_OPERATION_EXECUTE_TOOL,
|