@constructive-sdk/cli 0.25.9 → 0.25.11
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/admin/cli/commands/app-admin-grant.js +3 -1
- package/admin/cli/commands/app-grant.js +3 -1
- package/admin/cli/commands/app-invite.js +44 -0
- package/admin/cli/commands/app-owner-grant.js +3 -1
- package/admin/cli/commands/app-permission-default-grant.d.ts +8 -0
- package/admin/cli/commands/app-permission-default-grant.js +286 -0
- package/admin/cli/commands/app-permission-default-permission.d.ts +8 -0
- package/admin/cli/commands/app-permission-default-permission.js +242 -0
- package/admin/cli/commands/org-admin-grant.js +3 -1
- package/admin/cli/commands/org-grant.js +3 -1
- package/admin/cli/commands/org-invite.js +44 -0
- package/admin/cli/commands/org-owner-grant.js +3 -1
- package/admin/cli/commands/org-permission-default-grant.d.ts +8 -0
- package/admin/cli/commands/org-permission-default-grant.js +306 -0
- package/admin/cli/commands/org-permission-default-permission.d.ts +8 -0
- package/admin/cli/commands/org-permission-default-permission.js +262 -0
- package/admin/cli/commands.js +11 -3
- package/admin/cli/executor.d.ts +5 -1
- package/admin/orm/index.d.ts +10 -2
- package/admin/orm/index.js +10 -2
- package/admin/orm/input-types.d.ts +1611 -230
- package/admin/orm/input-types.js +9 -1
- package/admin/orm/models/appPermissionDefaultGrant.d.ts +54 -0
- package/admin/orm/models/appPermissionDefaultGrant.js +104 -0
- package/admin/orm/models/appPermissionDefaultPermission.d.ts +54 -0
- package/admin/orm/models/appPermissionDefaultPermission.js +104 -0
- package/admin/orm/models/index.d.ts +5 -1
- package/admin/orm/models/index.js +11 -3
- package/admin/orm/models/orgPermissionDefaultGrant.d.ts +54 -0
- package/admin/orm/models/orgPermissionDefaultGrant.js +104 -0
- package/admin/orm/models/orgPermissionDefaultPermission.d.ts +54 -0
- package/admin/orm/models/orgPermissionDefaultPermission.js +104 -0
- package/agent/cli/commands/agent-message.js +34 -12
- package/agent/cli/commands/agent-task.js +12 -12
- package/agent/cli/embedder.d.ts +5 -0
- package/agent/cli/embedder.js +46 -9
- package/agent/orm/input-types.d.ts +289 -47
- package/agent/orm/input-types.js +1 -0
- package/api/cli/commands/check-constraint.js +0 -22
- package/api/cli/commands/composite-type.d.ts +8 -0
- package/api/cli/commands/composite-type.js +424 -0
- package/api/cli/commands/enum.js +0 -22
- package/api/cli/commands/field.js +0 -22
- package/api/cli/commands/foreign-key-constraint.js +0 -22
- package/api/cli/commands/index.js +0 -22
- package/api/cli/commands/policy.js +0 -22
- package/api/cli/commands/primary-key-constraint.js +0 -22
- package/api/cli/commands/schema.js +0 -22
- package/api/cli/commands/spatial-relation.js +0 -22
- package/api/cli/commands/table.js +6 -28
- package/api/cli/commands/trigger.js +0 -22
- package/api/cli/commands/unique-constraint.js +0 -22
- package/api/cli/commands/view-table.js +22 -0
- package/api/cli/commands/view.js +0 -22
- package/api/cli/commands.js +3 -1
- package/api/cli/executor.d.ts +1 -0
- package/api/orm/index.d.ts +2 -0
- package/api/orm/index.js +2 -0
- package/api/orm/input-types.d.ts +1064 -125
- package/api/orm/input-types.js +3 -0
- package/api/orm/models/compositeType.d.ts +54 -0
- package/api/orm/models/compositeType.js +104 -0
- package/api/orm/models/index.d.ts +1 -0
- package/api/orm/models/index.js +3 -1
- package/auth/cli/commands/link-identity.d.ts +8 -0
- package/auth/cli/commands/link-identity.js +36 -0
- package/auth/cli/commands/sign-in-sms-otp.d.ts +8 -0
- package/auth/cli/commands/sign-in-sms-otp.js +36 -0
- package/auth/cli/commands/sign-up-sms.d.ts +8 -0
- package/auth/cli/commands/sign-up-sms.js +36 -0
- package/auth/cli/commands.js +7 -1
- package/auth/cli/executor.d.ts +15 -0
- package/auth/orm/index.d.ts +15 -0
- package/auth/orm/input-types.d.ts +197 -1
- package/auth/orm/mutation/index.d.ts +25 -1
- package/auth/orm/mutation/index.js +36 -0
- package/esm/admin/cli/commands/app-admin-grant.js +3 -1
- package/esm/admin/cli/commands/app-grant.js +3 -1
- package/esm/admin/cli/commands/app-invite.js +44 -0
- package/esm/admin/cli/commands/app-owner-grant.js +3 -1
- package/esm/admin/cli/commands/app-permission-default-grant.d.ts +8 -0
- package/esm/admin/cli/commands/app-permission-default-grant.js +284 -0
- package/esm/admin/cli/commands/app-permission-default-permission.d.ts +8 -0
- package/esm/admin/cli/commands/app-permission-default-permission.js +240 -0
- package/esm/admin/cli/commands/org-admin-grant.js +3 -1
- package/esm/admin/cli/commands/org-grant.js +3 -1
- package/esm/admin/cli/commands/org-invite.js +44 -0
- package/esm/admin/cli/commands/org-owner-grant.js +3 -1
- package/esm/admin/cli/commands/org-permission-default-grant.d.ts +8 -0
- package/esm/admin/cli/commands/org-permission-default-grant.js +304 -0
- package/esm/admin/cli/commands/org-permission-default-permission.d.ts +8 -0
- package/esm/admin/cli/commands/org-permission-default-permission.js +260 -0
- package/esm/admin/cli/commands.js +11 -3
- package/esm/admin/cli/executor.d.ts +5 -1
- package/esm/admin/orm/index.d.ts +10 -2
- package/esm/admin/orm/index.js +10 -2
- package/esm/admin/orm/input-types.d.ts +1611 -230
- package/esm/admin/orm/input-types.js +9 -1
- package/esm/admin/orm/models/appPermissionDefaultGrant.d.ts +54 -0
- package/esm/admin/orm/models/appPermissionDefaultGrant.js +100 -0
- package/esm/admin/orm/models/appPermissionDefaultPermission.d.ts +54 -0
- package/esm/admin/orm/models/appPermissionDefaultPermission.js +100 -0
- package/esm/admin/orm/models/index.d.ts +5 -1
- package/esm/admin/orm/models/index.js +5 -1
- package/esm/admin/orm/models/orgPermissionDefaultGrant.d.ts +54 -0
- package/esm/admin/orm/models/orgPermissionDefaultGrant.js +100 -0
- package/esm/admin/orm/models/orgPermissionDefaultPermission.d.ts +54 -0
- package/esm/admin/orm/models/orgPermissionDefaultPermission.js +100 -0
- package/esm/agent/cli/commands/agent-message.js +34 -12
- package/esm/agent/cli/commands/agent-task.js +12 -12
- package/esm/agent/cli/embedder.d.ts +5 -0
- package/esm/agent/cli/embedder.js +10 -2
- package/esm/agent/orm/input-types.d.ts +289 -47
- package/esm/agent/orm/input-types.js +1 -0
- package/esm/api/cli/commands/check-constraint.js +0 -22
- package/esm/api/cli/commands/composite-type.d.ts +8 -0
- package/esm/api/cli/commands/composite-type.js +422 -0
- package/esm/api/cli/commands/enum.js +0 -22
- package/esm/api/cli/commands/field.js +0 -22
- package/esm/api/cli/commands/foreign-key-constraint.js +0 -22
- package/esm/api/cli/commands/index.js +0 -22
- package/esm/api/cli/commands/policy.js +0 -22
- package/esm/api/cli/commands/primary-key-constraint.js +0 -22
- package/esm/api/cli/commands/schema.js +0 -22
- package/esm/api/cli/commands/spatial-relation.js +0 -22
- package/esm/api/cli/commands/table.js +6 -28
- package/esm/api/cli/commands/trigger.js +0 -22
- package/esm/api/cli/commands/unique-constraint.js +0 -22
- package/esm/api/cli/commands/view-table.js +22 -0
- package/esm/api/cli/commands/view.js +0 -22
- package/esm/api/cli/commands.js +3 -1
- package/esm/api/cli/executor.d.ts +1 -0
- package/esm/api/orm/index.d.ts +2 -0
- package/esm/api/orm/index.js +2 -0
- package/esm/api/orm/input-types.d.ts +1064 -125
- package/esm/api/orm/input-types.js +3 -0
- package/esm/api/orm/models/compositeType.d.ts +54 -0
- package/esm/api/orm/models/compositeType.js +100 -0
- package/esm/api/orm/models/index.d.ts +1 -0
- package/esm/api/orm/models/index.js +1 -0
- package/esm/auth/cli/commands/link-identity.d.ts +8 -0
- package/esm/auth/cli/commands/link-identity.js +34 -0
- package/esm/auth/cli/commands/sign-in-sms-otp.d.ts +8 -0
- package/esm/auth/cli/commands/sign-in-sms-otp.js +34 -0
- package/esm/auth/cli/commands/sign-up-sms.d.ts +8 -0
- package/esm/auth/cli/commands/sign-up-sms.js +34 -0
- package/esm/auth/cli/commands.js +7 -1
- package/esm/auth/cli/executor.d.ts +15 -0
- package/esm/auth/orm/index.d.ts +15 -0
- package/esm/auth/orm/input-types.d.ts +197 -1
- package/esm/auth/orm/mutation/index.d.ts +25 -1
- package/esm/auth/orm/mutation/index.js +36 -0
- package/esm/modules/cli/commands/agent-module.js +88 -0
- package/esm/modules/cli/commands/billing-module.js +66 -0
- package/esm/modules/cli/commands/compute-log-module.js +44 -0
- package/esm/modules/cli/commands/config-secrets-module.js +44 -0
- package/esm/modules/cli/commands/db-usage-module.js +66 -0
- package/esm/modules/cli/commands/entity-type-provision.js +0 -44
- package/esm/modules/cli/commands/events-module.js +66 -0
- package/esm/modules/cli/commands/function-invocation-module.d.ts +8 -0
- package/esm/modules/cli/commands/function-invocation-module.js +580 -0
- package/esm/modules/cli/commands/function-module.js +22 -198
- package/esm/modules/cli/commands/graph-module.js +22 -0
- package/esm/modules/cli/commands/hierarchy-module.js +22 -0
- package/esm/modules/cli/commands/identity-providers-module.js +44 -0
- package/esm/modules/cli/commands/inference-log-module.js +44 -0
- package/esm/modules/cli/commands/invites-module.js +44 -0
- package/esm/modules/cli/commands/limits-module.js +44 -0
- package/esm/modules/cli/commands/memberships-module.js +88 -0
- package/esm/modules/cli/commands/merkle-store-module.js +22 -0
- package/esm/modules/cli/commands/namespace-module.js +22 -0
- package/esm/modules/cli/commands/notifications-module.js +88 -0
- package/esm/modules/cli/commands/permissions-module.js +44 -0
- package/esm/modules/cli/commands/plans-module.js +44 -0
- package/esm/modules/cli/commands/profiles-module.js +44 -0
- package/esm/modules/cli/commands/rate-limit-meters-module.js +66 -0
- package/esm/modules/cli/commands/storage-log-module.js +44 -0
- package/esm/modules/cli/commands/storage-module.js +66 -0
- package/esm/modules/cli/commands/transfer-log-module.js +44 -0
- package/esm/modules/cli/commands.js +29 -27
- package/esm/modules/cli/executor.d.ts +14 -13
- package/esm/modules/orm/index.d.ts +28 -26
- package/esm/modules/orm/index.js +28 -26
- package/esm/modules/orm/input-types.d.ts +4485 -2514
- package/esm/modules/orm/models/functionInvocationModule.d.ts +54 -0
- package/esm/modules/orm/models/functionInvocationModule.js +100 -0
- package/esm/modules/orm/models/index.d.ts +14 -13
- package/esm/modules/orm/models/index.js +14 -13
- package/esm/objects/orm/input-types.d.ts +62 -0
- package/esm/usage/orm/input-types.d.ts +314 -19
- package/modules/cli/commands/agent-module.js +88 -0
- package/modules/cli/commands/billing-module.js +66 -0
- package/modules/cli/commands/compute-log-module.js +44 -0
- package/modules/cli/commands/config-secrets-module.js +44 -0
- package/modules/cli/commands/db-usage-module.js +66 -0
- package/modules/cli/commands/entity-type-provision.js +0 -44
- package/modules/cli/commands/events-module.js +66 -0
- package/modules/cli/commands/function-invocation-module.d.ts +8 -0
- package/modules/cli/commands/function-invocation-module.js +582 -0
- package/modules/cli/commands/function-module.js +22 -198
- package/modules/cli/commands/graph-module.js +22 -0
- package/modules/cli/commands/hierarchy-module.js +22 -0
- package/modules/cli/commands/identity-providers-module.js +44 -0
- package/modules/cli/commands/inference-log-module.js +44 -0
- package/modules/cli/commands/invites-module.js +44 -0
- package/modules/cli/commands/limits-module.js +44 -0
- package/modules/cli/commands/memberships-module.js +88 -0
- package/modules/cli/commands/merkle-store-module.js +22 -0
- package/modules/cli/commands/namespace-module.js +22 -0
- package/modules/cli/commands/notifications-module.js +88 -0
- package/modules/cli/commands/permissions-module.js +44 -0
- package/modules/cli/commands/plans-module.js +44 -0
- package/modules/cli/commands/profiles-module.js +44 -0
- package/modules/cli/commands/rate-limit-meters-module.js +66 -0
- package/modules/cli/commands/storage-log-module.js +44 -0
- package/modules/cli/commands/storage-module.js +66 -0
- package/modules/cli/commands/transfer-log-module.js +44 -0
- package/modules/cli/commands.js +29 -27
- package/modules/cli/executor.d.ts +14 -13
- package/modules/orm/index.d.ts +28 -26
- package/modules/orm/index.js +28 -26
- package/modules/orm/input-types.d.ts +4485 -2514
- package/modules/orm/models/functionInvocationModule.d.ts +54 -0
- package/modules/orm/models/functionInvocationModule.js +104 -0
- package/modules/orm/models/index.d.ts +14 -13
- package/modules/orm/models/index.js +30 -28
- package/objects/orm/input-types.d.ts +62 -0
- package/package.json +4 -4
- package/usage/orm/input-types.d.ts +314 -19
|
@@ -302,8 +302,8 @@ export interface AgentMessage {
|
|
|
302
302
|
id: string;
|
|
303
303
|
createdAt?: string | null;
|
|
304
304
|
updatedAt?: string | null;
|
|
305
|
-
/** User who
|
|
306
|
-
|
|
305
|
+
/** User who authored this message */
|
|
306
|
+
actorId?: string | null;
|
|
307
307
|
/** Message content: TextPart and ToolPart array */
|
|
308
308
|
parts?: Record<string, unknown> | null;
|
|
309
309
|
/** Foreign key to agent_thread */
|
|
@@ -312,14 +312,16 @@ export interface AgentMessage {
|
|
|
312
312
|
authorRole?: string | null;
|
|
313
313
|
/** LLM model that generated this response */
|
|
314
314
|
model?: string | null;
|
|
315
|
+
/** Agent that authored this message (NULL for human messages) */
|
|
316
|
+
agentId?: string | null;
|
|
315
317
|
}
|
|
316
318
|
/** Task within a plan, with ordering and optional approval gates */
|
|
317
319
|
export interface AgentTask {
|
|
318
320
|
id: string;
|
|
319
321
|
createdAt?: string | null;
|
|
320
322
|
updatedAt?: string | null;
|
|
321
|
-
/** User who
|
|
322
|
-
|
|
323
|
+
/** User who authored this task */
|
|
324
|
+
actorId?: string | null;
|
|
323
325
|
/** Current status of this task */
|
|
324
326
|
status?: string | null;
|
|
325
327
|
/** Foreign key to agent_plan */
|
|
@@ -372,7 +374,7 @@ export interface AgentResourceChunk {
|
|
|
372
374
|
updatedAt?: string | null;
|
|
373
375
|
/** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */
|
|
374
376
|
embeddingVectorDistance?: number | null;
|
|
375
|
-
/** Composite search relevance score (0..1, higher = more relevant). Computed
|
|
377
|
+
/** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */
|
|
376
378
|
searchScore?: number | null;
|
|
377
379
|
}
|
|
378
380
|
/** Agent persona templates (role, system prompt, default skills/knowledge) */
|
|
@@ -439,7 +441,7 @@ export interface AgentResource {
|
|
|
439
441
|
descriptionTrgmSimilarity?: number | null;
|
|
440
442
|
/** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */
|
|
441
443
|
bodyTrgmSimilarity?: number | null;
|
|
442
|
-
/** Composite search relevance score (0..1, higher = more relevant). Computed
|
|
444
|
+
/** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */
|
|
443
445
|
searchScore?: number | null;
|
|
444
446
|
}
|
|
445
447
|
export interface ConnectionResult<T> {
|
|
@@ -461,6 +463,7 @@ export interface AgentRelations {
|
|
|
461
463
|
parent?: Agent | null;
|
|
462
464
|
persona?: AgentPersona | null;
|
|
463
465
|
agentThreads?: ConnectionResult<AgentThread>;
|
|
466
|
+
agentMessages?: ConnectionResult<AgentMessage>;
|
|
464
467
|
childAgents?: ConnectionResult<Agent>;
|
|
465
468
|
}
|
|
466
469
|
export interface AgentThreadRelations {
|
|
@@ -472,6 +475,7 @@ export interface AgentThreadRelations {
|
|
|
472
475
|
agentPlansByThreadId?: ConnectionResult<AgentPlan>;
|
|
473
476
|
}
|
|
474
477
|
export interface AgentMessageRelations {
|
|
478
|
+
agent?: Agent | null;
|
|
475
479
|
thread?: AgentThread | null;
|
|
476
480
|
}
|
|
477
481
|
export interface AgentTaskRelations {
|
|
@@ -540,6 +544,12 @@ export type AgentSelect = {
|
|
|
540
544
|
filter?: AgentThreadFilter;
|
|
541
545
|
orderBy?: AgentThreadOrderBy[];
|
|
542
546
|
};
|
|
547
|
+
agentMessages?: {
|
|
548
|
+
select: AgentMessageSelect;
|
|
549
|
+
first?: number;
|
|
550
|
+
filter?: AgentMessageFilter;
|
|
551
|
+
orderBy?: AgentMessageOrderBy[];
|
|
552
|
+
};
|
|
543
553
|
childAgents?: {
|
|
544
554
|
select: AgentSelect;
|
|
545
555
|
first?: number;
|
|
@@ -595,11 +605,15 @@ export type AgentMessageSelect = {
|
|
|
595
605
|
id?: boolean;
|
|
596
606
|
createdAt?: boolean;
|
|
597
607
|
updatedAt?: boolean;
|
|
598
|
-
|
|
608
|
+
actorId?: boolean;
|
|
599
609
|
parts?: boolean;
|
|
600
610
|
threadId?: boolean;
|
|
601
611
|
authorRole?: boolean;
|
|
602
612
|
model?: boolean;
|
|
613
|
+
agentId?: boolean;
|
|
614
|
+
agent?: {
|
|
615
|
+
select: AgentSelect;
|
|
616
|
+
};
|
|
603
617
|
thread?: {
|
|
604
618
|
select: AgentThreadSelect;
|
|
605
619
|
};
|
|
@@ -608,7 +622,7 @@ export type AgentTaskSelect = {
|
|
|
608
622
|
id?: boolean;
|
|
609
623
|
createdAt?: boolean;
|
|
610
624
|
updatedAt?: boolean;
|
|
611
|
-
|
|
625
|
+
actorId?: boolean;
|
|
612
626
|
status?: boolean;
|
|
613
627
|
planId?: boolean;
|
|
614
628
|
description?: boolean;
|
|
@@ -775,6 +789,10 @@ export interface AgentFilter {
|
|
|
775
789
|
agentThreads?: AgentToManyAgentThreadFilter;
|
|
776
790
|
/** `agentThreads` exist. */
|
|
777
791
|
agentThreadsExist?: boolean;
|
|
792
|
+
/** Filter by the object’s `agentMessages` relation. */
|
|
793
|
+
agentMessages?: AgentToManyAgentMessageFilter;
|
|
794
|
+
/** `agentMessages` exist. */
|
|
795
|
+
agentMessagesExist?: boolean;
|
|
778
796
|
/** Filter by the object’s `childAgents` relation. */
|
|
779
797
|
childAgents?: AgentToManyAgentFilter;
|
|
780
798
|
/** `childAgents` exist. */
|
|
@@ -849,8 +867,8 @@ export interface AgentMessageFilter {
|
|
|
849
867
|
createdAt?: DatetimeFilter;
|
|
850
868
|
/** Filter by the object’s `updatedAt` field. */
|
|
851
869
|
updatedAt?: DatetimeFilter;
|
|
852
|
-
/** Filter by the object’s `
|
|
853
|
-
|
|
870
|
+
/** Filter by the object’s `actorId` field. */
|
|
871
|
+
actorId?: UUIDFilter;
|
|
854
872
|
/** Filter by the object’s `parts` field. */
|
|
855
873
|
parts?: JSONFilter;
|
|
856
874
|
/** Filter by the object’s `threadId` field. */
|
|
@@ -859,12 +877,18 @@ export interface AgentMessageFilter {
|
|
|
859
877
|
authorRole?: StringFilter;
|
|
860
878
|
/** Filter by the object’s `model` field. */
|
|
861
879
|
model?: StringFilter;
|
|
880
|
+
/** Filter by the object’s `agentId` field. */
|
|
881
|
+
agentId?: UUIDFilter;
|
|
862
882
|
/** Checks for all expressions in this list. */
|
|
863
883
|
and?: AgentMessageFilter[];
|
|
864
884
|
/** Checks for any expressions in this list. */
|
|
865
885
|
or?: AgentMessageFilter[];
|
|
866
886
|
/** Negates the expression. */
|
|
867
887
|
not?: AgentMessageFilter;
|
|
888
|
+
/** Filter by the object’s `agent` relation. */
|
|
889
|
+
agent?: AgentFilter;
|
|
890
|
+
/** A related `agent` exists. */
|
|
891
|
+
agentExists?: boolean;
|
|
868
892
|
/** Filter by the object’s `thread` relation. */
|
|
869
893
|
thread?: AgentThreadFilter;
|
|
870
894
|
}
|
|
@@ -875,8 +899,8 @@ export interface AgentTaskFilter {
|
|
|
875
899
|
createdAt?: DatetimeFilter;
|
|
876
900
|
/** Filter by the object’s `updatedAt` field. */
|
|
877
901
|
updatedAt?: DatetimeFilter;
|
|
878
|
-
/** Filter by the object’s `
|
|
879
|
-
|
|
902
|
+
/** Filter by the object’s `actorId` field. */
|
|
903
|
+
actorId?: UUIDFilter;
|
|
880
904
|
/** Filter by the object’s `status` field. */
|
|
881
905
|
status?: StringFilter;
|
|
882
906
|
/** Filter by the object’s `planId` field. */
|
|
@@ -1070,8 +1094,8 @@ export interface AgentResourceFilter {
|
|
|
1070
1094
|
export type AgentPlanOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'THREAD_ID_ASC' | 'THREAD_ID_DESC' | 'TITLE_ASC' | 'TITLE_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'STATUS_ASC' | 'STATUS_DESC';
|
|
1071
1095
|
export type AgentOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'PERSONA_ID_ASC' | 'PERSONA_ID_DESC' | 'PARENT_ID_ASC' | 'PARENT_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'SYSTEM_PROMPT_ASC' | 'SYSTEM_PROMPT_DESC' | 'CONFIG_ASC' | 'CONFIG_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'IS_EPHEMERAL_ASC' | 'IS_EPHEMERAL_DESC';
|
|
1072
1096
|
export type AgentThreadOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'IS_ARCHIVED_ASC' | 'IS_ARCHIVED_DESC' | 'ARCHIVED_AT_ASC' | 'ARCHIVED_AT_DESC' | 'TITLE_ASC' | 'TITLE_DESC' | 'MODE_ASC' | 'MODE_DESC' | 'MODEL_ASC' | 'MODEL_DESC' | 'SYSTEM_PROMPT_ASC' | 'SYSTEM_PROMPT_DESC' | 'TAGS_ASC' | 'TAGS_DESC' | 'PROMPT_TEMPLATE_ID_ASC' | 'PROMPT_TEMPLATE_ID_DESC' | 'AGENT_ID_ASC' | 'AGENT_ID_DESC' | 'PARENT_THREAD_ID_ASC' | 'PARENT_THREAD_ID_DESC';
|
|
1073
|
-
export type AgentMessageOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | '
|
|
1074
|
-
export type AgentTaskOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | '
|
|
1097
|
+
export type AgentMessageOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'PARTS_ASC' | 'PARTS_DESC' | 'THREAD_ID_ASC' | 'THREAD_ID_DESC' | 'AUTHOR_ROLE_ASC' | 'AUTHOR_ROLE_DESC' | 'MODEL_ASC' | 'MODEL_DESC' | 'AGENT_ID_ASC' | 'AGENT_ID_DESC';
|
|
1098
|
+
export type AgentTaskOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'PLAN_ID_ASC' | 'PLAN_ID_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'SOURCE_ASC' | 'SOURCE_DESC' | 'ERROR_ASC' | 'ERROR_DESC' | 'ORDER_INDEX_ASC' | 'ORDER_INDEX_DESC' | 'REQUIRES_APPROVAL_ASC' | 'REQUIRES_APPROVAL_DESC' | 'APPROVAL_STATUS_ASC' | 'APPROVAL_STATUS_DESC' | 'APPROVED_BY_ASC' | 'APPROVED_BY_DESC' | 'APPROVED_AT_ASC' | 'APPROVED_AT_DESC' | 'APPROVAL_FEEDBACK_ASC' | 'APPROVAL_FEEDBACK_DESC';
|
|
1075
1099
|
export type AgentPromptOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'CONTENT_ASC' | 'CONTENT_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'IS_DEFAULT_ASC' | 'IS_DEFAULT_DESC' | 'METADATA_ASC' | 'METADATA_DESC';
|
|
1076
1100
|
export type AgentResourceChunkOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'AGENT_RESOURCE_ID_ASC' | 'AGENT_RESOURCE_ID_DESC' | 'BODY_ASC' | 'BODY_DESC' | 'CHUNK_INDEX_ASC' | 'CHUNK_INDEX_DESC' | 'EMBEDDING_ASC' | 'EMBEDDING_DESC' | 'METADATA_ASC' | 'METADATA_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'EMBEDDING_VECTOR_DISTANCE_ASC' | 'EMBEDDING_VECTOR_DISTANCE_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC';
|
|
1077
1101
|
export type AgentPersonaOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' | 'SLUG_ASC' | 'SLUG_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'SYSTEM_PROMPT_ASC' | 'SYSTEM_PROMPT_DESC' | 'RESOURCES_ASC' | 'RESOURCES_DESC' | 'CONFIG_ASC' | 'CONFIG_DESC' | 'IS_ACTIVE_ASC' | 'IS_ACTIVE_DESC';
|
|
@@ -1177,19 +1201,21 @@ export interface DeleteAgentThreadInput {
|
|
|
1177
1201
|
export interface CreateAgentMessageInput {
|
|
1178
1202
|
clientMutationId?: string;
|
|
1179
1203
|
agentMessage: {
|
|
1180
|
-
|
|
1204
|
+
actorId?: string;
|
|
1181
1205
|
parts?: Record<string, unknown>;
|
|
1182
1206
|
threadId: string;
|
|
1183
1207
|
authorRole: string;
|
|
1184
1208
|
model?: string;
|
|
1209
|
+
agentId?: string;
|
|
1185
1210
|
};
|
|
1186
1211
|
}
|
|
1187
1212
|
export interface AgentMessagePatch {
|
|
1188
|
-
|
|
1213
|
+
actorId?: string | null;
|
|
1189
1214
|
parts?: Record<string, unknown> | null;
|
|
1190
1215
|
threadId?: string | null;
|
|
1191
1216
|
authorRole?: string | null;
|
|
1192
1217
|
model?: string | null;
|
|
1218
|
+
agentId?: string | null;
|
|
1193
1219
|
}
|
|
1194
1220
|
export interface UpdateAgentMessageInput {
|
|
1195
1221
|
clientMutationId?: string;
|
|
@@ -1203,7 +1229,7 @@ export interface DeleteAgentMessageInput {
|
|
|
1203
1229
|
export interface CreateAgentTaskInput {
|
|
1204
1230
|
clientMutationId?: string;
|
|
1205
1231
|
agentTask: {
|
|
1206
|
-
|
|
1232
|
+
actorId?: string;
|
|
1207
1233
|
status?: string;
|
|
1208
1234
|
planId: string;
|
|
1209
1235
|
description: string;
|
|
@@ -1218,7 +1244,7 @@ export interface CreateAgentTaskInput {
|
|
|
1218
1244
|
};
|
|
1219
1245
|
}
|
|
1220
1246
|
export interface AgentTaskPatch {
|
|
1221
|
-
|
|
1247
|
+
actorId?: string | null;
|
|
1222
1248
|
status?: string | null;
|
|
1223
1249
|
planId?: string | null;
|
|
1224
1250
|
description?: string | null;
|
|
@@ -1402,6 +1428,15 @@ export interface AgentToManyAgentThreadFilter {
|
|
|
1402
1428
|
/** Filters to entities where no related entity matches. */
|
|
1403
1429
|
none?: AgentThreadFilter;
|
|
1404
1430
|
}
|
|
1431
|
+
/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */
|
|
1432
|
+
export interface AgentToManyAgentMessageFilter {
|
|
1433
|
+
/** Filters to entities where at least one related entity matches. */
|
|
1434
|
+
some?: AgentMessageFilter;
|
|
1435
|
+
/** Filters to entities where every related entity matches. */
|
|
1436
|
+
every?: AgentMessageFilter;
|
|
1437
|
+
/** Filters to entities where no related entity matches. */
|
|
1438
|
+
none?: AgentMessageFilter;
|
|
1439
|
+
}
|
|
1405
1440
|
/** A filter to be used against many `Agent` object types. All fields are combined with a logical ‘and.’ */
|
|
1406
1441
|
export interface AgentToManyAgentFilter {
|
|
1407
1442
|
/** Filters to entities where at least one related entity matches. */
|
|
@@ -1555,6 +1590,203 @@ export interface TrgmSearchInput {
|
|
|
1555
1590
|
/** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */
|
|
1556
1591
|
threshold?: number;
|
|
1557
1592
|
}
|
|
1593
|
+
/** An input for mutations affecting `AgentPlan` */
|
|
1594
|
+
export interface AgentPlanInput {
|
|
1595
|
+
id?: string;
|
|
1596
|
+
createdAt?: string;
|
|
1597
|
+
updatedAt?: string;
|
|
1598
|
+
/** User who owns this plan */
|
|
1599
|
+
ownerId?: string;
|
|
1600
|
+
/** Foreign key to agent_thread */
|
|
1601
|
+
threadId: string;
|
|
1602
|
+
/** Human-readable plan name */
|
|
1603
|
+
title: string;
|
|
1604
|
+
/** Overall goal or context for this plan */
|
|
1605
|
+
description?: string;
|
|
1606
|
+
/** Plan lifecycle: draft, active, completed, failed, cancelled */
|
|
1607
|
+
status?: string;
|
|
1608
|
+
}
|
|
1609
|
+
/** An input for mutations affecting `Agent` */
|
|
1610
|
+
export interface AgentInput {
|
|
1611
|
+
id?: string;
|
|
1612
|
+
createdAt?: string;
|
|
1613
|
+
updatedAt?: string;
|
|
1614
|
+
/** Human who owns/manages this agent */
|
|
1615
|
+
ownerId?: string;
|
|
1616
|
+
/** Persona template this agent was created from */
|
|
1617
|
+
personaId?: string;
|
|
1618
|
+
/** Parent agent (for sub-agent delegation hierarchy) */
|
|
1619
|
+
parentId?: string;
|
|
1620
|
+
/** Display name for this agent instance */
|
|
1621
|
+
name: string;
|
|
1622
|
+
/** System prompt override (NULL = inherit from persona) */
|
|
1623
|
+
systemPrompt?: string;
|
|
1624
|
+
/** Per-instance config overrides (model, temperature, tools) */
|
|
1625
|
+
config?: Record<string, unknown>;
|
|
1626
|
+
/** Agent lifecycle status: active, paused, terminated */
|
|
1627
|
+
status?: string;
|
|
1628
|
+
/** If true, agent is deleted when its spawning thread is deleted */
|
|
1629
|
+
isEphemeral?: boolean;
|
|
1630
|
+
}
|
|
1631
|
+
/** An input for mutations affecting `AgentThread` */
|
|
1632
|
+
export interface AgentThreadInput {
|
|
1633
|
+
id?: string;
|
|
1634
|
+
createdAt?: string;
|
|
1635
|
+
updatedAt?: string;
|
|
1636
|
+
/** User who owns this thread */
|
|
1637
|
+
ownerId?: string;
|
|
1638
|
+
/** Current status of this thread */
|
|
1639
|
+
status?: string;
|
|
1640
|
+
/** Whether this record has been archived by the user */
|
|
1641
|
+
isArchived?: boolean;
|
|
1642
|
+
/** Timestamp when this record was archived, NULL if active */
|
|
1643
|
+
archivedAt?: string;
|
|
1644
|
+
/** Human-readable conversation title */
|
|
1645
|
+
title?: string;
|
|
1646
|
+
/** Conversation mode: ask (plain Q&A) or agent (tool-enabled) */
|
|
1647
|
+
mode?: string;
|
|
1648
|
+
/** LLM model id this thread is bound to */
|
|
1649
|
+
model?: string;
|
|
1650
|
+
/** System prompt active for this thread */
|
|
1651
|
+
systemPrompt?: string;
|
|
1652
|
+
/** User-defined labels for organizing and filtering threads */
|
|
1653
|
+
tags?: string[];
|
|
1654
|
+
/** Optional FK to a shared prompt template */
|
|
1655
|
+
promptTemplateId?: string;
|
|
1656
|
+
/** Agent instance assigned to this thread */
|
|
1657
|
+
agentId?: string;
|
|
1658
|
+
/** Parent thread that spawned this sub-conversation */
|
|
1659
|
+
parentThreadId?: string;
|
|
1660
|
+
}
|
|
1661
|
+
/** An input for mutations affecting `AgentMessage` */
|
|
1662
|
+
export interface AgentMessageInput {
|
|
1663
|
+
id?: string;
|
|
1664
|
+
createdAt?: string;
|
|
1665
|
+
updatedAt?: string;
|
|
1666
|
+
/** User who authored this message */
|
|
1667
|
+
actorId?: string;
|
|
1668
|
+
/** Message content: TextPart and ToolPart array */
|
|
1669
|
+
parts?: Record<string, unknown>;
|
|
1670
|
+
/** Foreign key to agent_thread */
|
|
1671
|
+
threadId: string;
|
|
1672
|
+
/** Who authored this message: user or assistant */
|
|
1673
|
+
authorRole: string;
|
|
1674
|
+
/** LLM model that generated this response */
|
|
1675
|
+
model?: string;
|
|
1676
|
+
/** Agent that authored this message (NULL for human messages) */
|
|
1677
|
+
agentId?: string;
|
|
1678
|
+
}
|
|
1679
|
+
/** An input for mutations affecting `AgentTask` */
|
|
1680
|
+
export interface AgentTaskInput {
|
|
1681
|
+
id?: string;
|
|
1682
|
+
createdAt?: string;
|
|
1683
|
+
updatedAt?: string;
|
|
1684
|
+
/** User who authored this task */
|
|
1685
|
+
actorId?: string;
|
|
1686
|
+
/** Current status of this task */
|
|
1687
|
+
status?: string;
|
|
1688
|
+
/** Foreign key to agent_plan */
|
|
1689
|
+
planId: string;
|
|
1690
|
+
/** Natural-language description of the work to do */
|
|
1691
|
+
description: string;
|
|
1692
|
+
/** Who created the task: agent or user */
|
|
1693
|
+
source?: string;
|
|
1694
|
+
/** Error message captured when the task failed */
|
|
1695
|
+
error?: string;
|
|
1696
|
+
/** Position within the plan (for ordered task lists) */
|
|
1697
|
+
orderIndex?: number;
|
|
1698
|
+
/** Whether this task is an approval gate requiring human decision */
|
|
1699
|
+
requiresApproval?: boolean;
|
|
1700
|
+
/** Approval decision: pending, approved, rejected (NULL if not an approval task) */
|
|
1701
|
+
approvalStatus?: string;
|
|
1702
|
+
/** User who approved or rejected this task */
|
|
1703
|
+
approvedBy?: string;
|
|
1704
|
+
/** Timestamp of the approval or rejection decision */
|
|
1705
|
+
approvedAt?: string;
|
|
1706
|
+
/** Reviewer feedback or reason for the decision */
|
|
1707
|
+
approvalFeedback?: string;
|
|
1708
|
+
}
|
|
1709
|
+
/** An input for mutations affecting `AgentPrompt` */
|
|
1710
|
+
export interface AgentPromptInput {
|
|
1711
|
+
id?: string;
|
|
1712
|
+
createdAt?: string;
|
|
1713
|
+
updatedAt?: string;
|
|
1714
|
+
createdBy?: string;
|
|
1715
|
+
updatedBy?: string;
|
|
1716
|
+
/** Unique name for lookup (e.g. default, code-review, sales-assistant) */
|
|
1717
|
+
name: string;
|
|
1718
|
+
/** The system prompt template content */
|
|
1719
|
+
content: string;
|
|
1720
|
+
/** What this prompt template is for */
|
|
1721
|
+
description?: string;
|
|
1722
|
+
/** Whether this is the default prompt for the entity/app */
|
|
1723
|
+
isDefault?: boolean;
|
|
1724
|
+
/** Variables, tags, category metadata */
|
|
1725
|
+
metadata?: Record<string, unknown>;
|
|
1726
|
+
}
|
|
1727
|
+
/** An input for mutations affecting `AgentResourceChunk` */
|
|
1728
|
+
export interface AgentResourceChunkInput {
|
|
1729
|
+
id?: string;
|
|
1730
|
+
agentResourceId: string;
|
|
1731
|
+
body: string;
|
|
1732
|
+
chunkIndex?: number;
|
|
1733
|
+
embedding?: number[];
|
|
1734
|
+
metadata?: Record<string, unknown>;
|
|
1735
|
+
createdAt?: string;
|
|
1736
|
+
updatedAt?: string;
|
|
1737
|
+
}
|
|
1738
|
+
/** An input for mutations affecting `AgentPersona` */
|
|
1739
|
+
export interface AgentPersonaInput {
|
|
1740
|
+
id?: string;
|
|
1741
|
+
createdAt?: string;
|
|
1742
|
+
updatedAt?: string;
|
|
1743
|
+
createdBy?: string;
|
|
1744
|
+
updatedBy?: string;
|
|
1745
|
+
/** Unique human-readable identifier for this persona */
|
|
1746
|
+
slug: string;
|
|
1747
|
+
/** Display name for this persona */
|
|
1748
|
+
name: string;
|
|
1749
|
+
/** Brief description of this persona role */
|
|
1750
|
+
description?: string;
|
|
1751
|
+
/** Default system prompt for agents using this persona */
|
|
1752
|
+
systemPrompt?: string;
|
|
1753
|
+
/** Slugs of agent_resource entries to link when spawning */
|
|
1754
|
+
resources?: string[];
|
|
1755
|
+
/** Model preferences, temperature, tool access, constraints */
|
|
1756
|
+
config?: Record<string, unknown>;
|
|
1757
|
+
/** Whether this persona is available for use */
|
|
1758
|
+
isActive?: boolean;
|
|
1759
|
+
}
|
|
1760
|
+
/** An input for mutations affecting `AgentResource` */
|
|
1761
|
+
export interface AgentResourceInput {
|
|
1762
|
+
id?: string;
|
|
1763
|
+
createdAt?: string;
|
|
1764
|
+
updatedAt?: string;
|
|
1765
|
+
createdBy?: string;
|
|
1766
|
+
updatedBy?: string;
|
|
1767
|
+
/** Unique human-readable identifier for portable references */
|
|
1768
|
+
slug: string;
|
|
1769
|
+
/** Resource type: skill, knowledge, or convention */
|
|
1770
|
+
kind?: string;
|
|
1771
|
+
/** Resource name or title */
|
|
1772
|
+
title: string;
|
|
1773
|
+
/** Brief description of this resource */
|
|
1774
|
+
description?: string;
|
|
1775
|
+
/** Full content (instructions for skills, reference text for knowledge) */
|
|
1776
|
+
body: string;
|
|
1777
|
+
/** Keywords for deterministic retrieval routing */
|
|
1778
|
+
keywords?: string[];
|
|
1779
|
+
/** Whether this resource is active and retrievable */
|
|
1780
|
+
isActive?: boolean;
|
|
1781
|
+
/** Structured metadata: category, version, author, custom attributes */
|
|
1782
|
+
metadata?: Record<string, unknown>;
|
|
1783
|
+
/** Whether this record has been archived by the user */
|
|
1784
|
+
isArchived?: boolean;
|
|
1785
|
+
/** Timestamp when this record was archived, NULL if active */
|
|
1786
|
+
archivedAt?: string;
|
|
1787
|
+
embedding?: number[];
|
|
1788
|
+
embeddingUpdatedAt?: string;
|
|
1789
|
+
}
|
|
1558
1790
|
/** A filter to be used against `AgentTask` object types. All fields are combined with a logical ‘and.’ */
|
|
1559
1791
|
export interface AgentTaskFilter {
|
|
1560
1792
|
/** Filter by the object’s `id` field. */
|
|
@@ -1563,8 +1795,8 @@ export interface AgentTaskFilter {
|
|
|
1563
1795
|
createdAt?: DatetimeFilter;
|
|
1564
1796
|
/** Filter by the object’s `updatedAt` field. */
|
|
1565
1797
|
updatedAt?: DatetimeFilter;
|
|
1566
|
-
/** Filter by the object’s `
|
|
1567
|
-
|
|
1798
|
+
/** Filter by the object’s `actorId` field. */
|
|
1799
|
+
actorId?: UUIDFilter;
|
|
1568
1800
|
/** Filter by the object’s `status` field. */
|
|
1569
1801
|
status?: StringFilter;
|
|
1570
1802
|
/** Filter by the object’s `planId` field. */
|
|
@@ -1659,6 +1891,39 @@ export interface AgentThreadFilter {
|
|
|
1659
1891
|
/** `agentPlansByThreadId` exist. */
|
|
1660
1892
|
agentPlansByThreadIdExist?: boolean;
|
|
1661
1893
|
}
|
|
1894
|
+
/** A filter to be used against `AgentMessage` object types. All fields are combined with a logical ‘and.’ */
|
|
1895
|
+
export interface AgentMessageFilter {
|
|
1896
|
+
/** Filter by the object’s `id` field. */
|
|
1897
|
+
id?: UUIDFilter;
|
|
1898
|
+
/** Filter by the object’s `createdAt` field. */
|
|
1899
|
+
createdAt?: DatetimeFilter;
|
|
1900
|
+
/** Filter by the object’s `updatedAt` field. */
|
|
1901
|
+
updatedAt?: DatetimeFilter;
|
|
1902
|
+
/** Filter by the object’s `actorId` field. */
|
|
1903
|
+
actorId?: UUIDFilter;
|
|
1904
|
+
/** Filter by the object’s `parts` field. */
|
|
1905
|
+
parts?: JSONFilter;
|
|
1906
|
+
/** Filter by the object’s `threadId` field. */
|
|
1907
|
+
threadId?: UUIDFilter;
|
|
1908
|
+
/** Filter by the object’s `authorRole` field. */
|
|
1909
|
+
authorRole?: StringFilter;
|
|
1910
|
+
/** Filter by the object’s `model` field. */
|
|
1911
|
+
model?: StringFilter;
|
|
1912
|
+
/** Filter by the object’s `agentId` field. */
|
|
1913
|
+
agentId?: UUIDFilter;
|
|
1914
|
+
/** Checks for all expressions in this list. */
|
|
1915
|
+
and?: AgentMessageFilter[];
|
|
1916
|
+
/** Checks for any expressions in this list. */
|
|
1917
|
+
or?: AgentMessageFilter[];
|
|
1918
|
+
/** Negates the expression. */
|
|
1919
|
+
not?: AgentMessageFilter;
|
|
1920
|
+
/** Filter by the object’s `agent` relation. */
|
|
1921
|
+
agent?: AgentFilter;
|
|
1922
|
+
/** A related `agent` exists. */
|
|
1923
|
+
agentExists?: boolean;
|
|
1924
|
+
/** Filter by the object’s `thread` relation. */
|
|
1925
|
+
thread?: AgentThreadFilter;
|
|
1926
|
+
}
|
|
1662
1927
|
/** A filter to be used against `Agent` object types. All fields are combined with a logical ‘and.’ */
|
|
1663
1928
|
export interface AgentFilter {
|
|
1664
1929
|
/** Filter by the object’s `id` field. */
|
|
@@ -1701,38 +1966,15 @@ export interface AgentFilter {
|
|
|
1701
1966
|
agentThreads?: AgentToManyAgentThreadFilter;
|
|
1702
1967
|
/** `agentThreads` exist. */
|
|
1703
1968
|
agentThreadsExist?: boolean;
|
|
1969
|
+
/** Filter by the object’s `agentMessages` relation. */
|
|
1970
|
+
agentMessages?: AgentToManyAgentMessageFilter;
|
|
1971
|
+
/** `agentMessages` exist. */
|
|
1972
|
+
agentMessagesExist?: boolean;
|
|
1704
1973
|
/** Filter by the object’s `childAgents` relation. */
|
|
1705
1974
|
childAgents?: AgentToManyAgentFilter;
|
|
1706
1975
|
/** `childAgents` exist. */
|
|
1707
1976
|
childAgentsExist?: boolean;
|
|
1708
1977
|
}
|
|
1709
|
-
/** A filter to be used against `AgentMessage` object types. All fields are combined with a logical ‘and.’ */
|
|
1710
|
-
export interface AgentMessageFilter {
|
|
1711
|
-
/** Filter by the object’s `id` field. */
|
|
1712
|
-
id?: UUIDFilter;
|
|
1713
|
-
/** Filter by the object’s `createdAt` field. */
|
|
1714
|
-
createdAt?: DatetimeFilter;
|
|
1715
|
-
/** Filter by the object’s `updatedAt` field. */
|
|
1716
|
-
updatedAt?: DatetimeFilter;
|
|
1717
|
-
/** Filter by the object’s `ownerId` field. */
|
|
1718
|
-
ownerId?: UUIDFilter;
|
|
1719
|
-
/** Filter by the object’s `parts` field. */
|
|
1720
|
-
parts?: JSONFilter;
|
|
1721
|
-
/** Filter by the object’s `threadId` field. */
|
|
1722
|
-
threadId?: UUIDFilter;
|
|
1723
|
-
/** Filter by the object’s `authorRole` field. */
|
|
1724
|
-
authorRole?: StringFilter;
|
|
1725
|
-
/** Filter by the object’s `model` field. */
|
|
1726
|
-
model?: StringFilter;
|
|
1727
|
-
/** Checks for all expressions in this list. */
|
|
1728
|
-
and?: AgentMessageFilter[];
|
|
1729
|
-
/** Checks for any expressions in this list. */
|
|
1730
|
-
or?: AgentMessageFilter[];
|
|
1731
|
-
/** Negates the expression. */
|
|
1732
|
-
not?: AgentMessageFilter;
|
|
1733
|
-
/** Filter by the object’s `thread` relation. */
|
|
1734
|
-
thread?: AgentThreadFilter;
|
|
1735
|
-
}
|
|
1736
1978
|
/** A filter to be used against `AgentPlan` object types. All fields are combined with a logical ‘and.’ */
|
|
1737
1979
|
export interface AgentPlanFilter {
|
|
1738
1980
|
/** Filter by the object’s `id` field. */
|
|
@@ -16,7 +16,6 @@ const fieldSchema = {
|
|
|
16
16
|
expr: 'json',
|
|
17
17
|
smartTags: 'json',
|
|
18
18
|
category: 'string',
|
|
19
|
-
module: 'string',
|
|
20
19
|
scope: 'int',
|
|
21
20
|
tags: 'string',
|
|
22
21
|
createdAt: 'string',
|
|
@@ -73,7 +72,6 @@ async function handleList(argv, _prompter) {
|
|
|
73
72
|
expr: true,
|
|
74
73
|
smartTags: true,
|
|
75
74
|
category: true,
|
|
76
|
-
module: true,
|
|
77
75
|
scope: true,
|
|
78
76
|
tags: true,
|
|
79
77
|
createdAt: true,
|
|
@@ -104,7 +102,6 @@ async function handleFindFirst(argv, _prompter) {
|
|
|
104
102
|
expr: true,
|
|
105
103
|
smartTags: true,
|
|
106
104
|
category: true,
|
|
107
|
-
module: true,
|
|
108
105
|
scope: true,
|
|
109
106
|
tags: true,
|
|
110
107
|
createdAt: true,
|
|
@@ -147,7 +144,6 @@ async function handleGet(argv, prompter) {
|
|
|
147
144
|
expr: true,
|
|
148
145
|
smartTags: true,
|
|
149
146
|
category: true,
|
|
150
|
-
module: true,
|
|
151
147
|
scope: true,
|
|
152
148
|
tags: true,
|
|
153
149
|
createdAt: true,
|
|
@@ -222,13 +218,6 @@ async function handleCreate(argv, prompter) {
|
|
|
222
218
|
required: false,
|
|
223
219
|
skipPrompt: true,
|
|
224
220
|
},
|
|
225
|
-
{
|
|
226
|
-
type: 'text',
|
|
227
|
-
name: 'module',
|
|
228
|
-
message: 'module',
|
|
229
|
-
required: false,
|
|
230
|
-
skipPrompt: true,
|
|
231
|
-
},
|
|
232
221
|
{
|
|
233
222
|
type: 'text',
|
|
234
223
|
name: 'scope',
|
|
@@ -258,7 +247,6 @@ async function handleCreate(argv, prompter) {
|
|
|
258
247
|
expr: cleanedData.expr,
|
|
259
248
|
smartTags: cleanedData.smartTags,
|
|
260
249
|
category: cleanedData.category,
|
|
261
|
-
module: cleanedData.module,
|
|
262
250
|
scope: cleanedData.scope,
|
|
263
251
|
tags: cleanedData.tags,
|
|
264
252
|
},
|
|
@@ -272,7 +260,6 @@ async function handleCreate(argv, prompter) {
|
|
|
272
260
|
expr: true,
|
|
273
261
|
smartTags: true,
|
|
274
262
|
category: true,
|
|
275
|
-
module: true,
|
|
276
263
|
scope: true,
|
|
277
264
|
tags: true,
|
|
278
265
|
createdAt: true,
|
|
@@ -353,13 +340,6 @@ async function handleUpdate(argv, prompter) {
|
|
|
353
340
|
required: false,
|
|
354
341
|
skipPrompt: true,
|
|
355
342
|
},
|
|
356
|
-
{
|
|
357
|
-
type: 'text',
|
|
358
|
-
name: 'module',
|
|
359
|
-
message: 'module',
|
|
360
|
-
required: false,
|
|
361
|
-
skipPrompt: true,
|
|
362
|
-
},
|
|
363
343
|
{
|
|
364
344
|
type: 'text',
|
|
365
345
|
name: 'scope',
|
|
@@ -392,7 +372,6 @@ async function handleUpdate(argv, prompter) {
|
|
|
392
372
|
expr: cleanedData.expr,
|
|
393
373
|
smartTags: cleanedData.smartTags,
|
|
394
374
|
category: cleanedData.category,
|
|
395
|
-
module: cleanedData.module,
|
|
396
375
|
scope: cleanedData.scope,
|
|
397
376
|
tags: cleanedData.tags,
|
|
398
377
|
},
|
|
@@ -406,7 +385,6 @@ async function handleUpdate(argv, prompter) {
|
|
|
406
385
|
expr: true,
|
|
407
386
|
smartTags: true,
|
|
408
387
|
category: true,
|
|
409
|
-
module: true,
|
|
410
388
|
scope: true,
|
|
411
389
|
tags: true,
|
|
412
390
|
createdAt: true,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI commands for CompositeType
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { CLIOptions, Inquirerer } from 'inquirerer';
|
|
7
|
+
declare const _default: (argv: Partial<Record<string, unknown>>, prompter: Inquirerer, _options: CLIOptions) => Promise<void>;
|
|
8
|
+
export default _default;
|