@bigfootai/bigfoot-types 5.4.292 → 5.4.294

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.
Files changed (78) hide show
  1. package/dist/agent-execution.d.ts +19 -3
  2. package/dist/agent-execution.d.ts.map +1 -1
  3. package/dist/agent-execution.js +19 -0
  4. package/dist/agent-execution.js.map +1 -1
  5. package/dist/agent-persona.d.ts +33 -0
  6. package/dist/agent-persona.d.ts.map +1 -0
  7. package/dist/agent-persona.js +30 -0
  8. package/dist/agent-persona.js.map +1 -0
  9. package/dist/agent-trigger.d.ts +1 -1
  10. package/dist/agent-trigger.d.ts.map +1 -1
  11. package/dist/agent.d.ts +5 -2
  12. package/dist/agent.d.ts.map +1 -1
  13. package/dist/agent.js +3 -0
  14. package/dist/agent.js.map +1 -1
  15. package/dist/block.d.ts +12 -2
  16. package/dist/block.d.ts.map +1 -1
  17. package/dist/block.js +7 -0
  18. package/dist/block.js.map +1 -1
  19. package/dist/business-object.d.ts +2 -2
  20. package/dist/business-object.d.ts.map +1 -1
  21. package/dist/calendar.d.ts +1 -1
  22. package/dist/calendar.d.ts.map +1 -1
  23. package/dist/document.d.ts +2 -2
  24. package/dist/document.d.ts.map +1 -1
  25. package/dist/email.d.ts +1 -1
  26. package/dist/email.d.ts.map +1 -1
  27. package/dist/event.d.ts +1 -1
  28. package/dist/event.d.ts.map +1 -1
  29. package/dist/function-invocation.d.ts +1 -1
  30. package/dist/function-invocation.d.ts.map +1 -1
  31. package/dist/message.d.ts +1 -1
  32. package/dist/message.d.ts.map +1 -1
  33. package/dist/metadata-change.d.ts +6 -4
  34. package/dist/metadata-change.d.ts.map +1 -1
  35. package/dist/metadata-change.js +9 -5
  36. package/dist/metadata-change.js.map +1 -1
  37. package/dist/navigation.d.ts +4 -0
  38. package/dist/navigation.d.ts.map +1 -1
  39. package/dist/navigation.js +15 -0
  40. package/dist/navigation.js.map +1 -1
  41. package/dist/note.d.ts +1 -1
  42. package/dist/note.d.ts.map +1 -1
  43. package/dist/recommendation.d.ts +1 -1
  44. package/dist/recommendation.d.ts.map +1 -1
  45. package/dist/record.d.ts +1 -1
  46. package/dist/record.d.ts.map +1 -1
  47. package/dist/statement.d.ts +1 -1
  48. package/dist/statement.d.ts.map +1 -1
  49. package/dist/table.d.ts +2 -2
  50. package/dist/table.d.ts.map +1 -1
  51. package/dist/tag.d.ts +2 -2
  52. package/dist/tag.d.ts.map +1 -1
  53. package/dist/tag.js +1 -1
  54. package/dist/task.d.ts +1 -1
  55. package/dist/task.d.ts.map +1 -1
  56. package/dist/thread.d.ts +1 -1
  57. package/dist/thread.d.ts.map +1 -1
  58. package/dist/todo.d.ts +1 -1
  59. package/dist/todo.d.ts.map +1 -1
  60. package/dist/transcription.d.ts +1 -1
  61. package/dist/transcription.d.ts.map +1 -1
  62. package/dist/types.d.ts +5 -2
  63. package/dist/types.d.ts.map +1 -1
  64. package/dist/types.js +18 -7
  65. package/dist/types.js.map +1 -1
  66. package/dist/website.d.ts +1 -1
  67. package/dist/website.d.ts.map +1 -1
  68. package/package.json +1 -1
  69. package/src/agent-execution.ts +35 -1
  70. package/src/agent-persona.ts +64 -0
  71. package/src/agent-trigger.ts +1 -1
  72. package/src/agent.ts +5 -0
  73. package/src/block.ts +11 -0
  74. package/src/metadata-change.ts +10 -5
  75. package/src/navigation.ts +23 -0
  76. package/src/recommendation.ts +1 -1
  77. package/src/tag.ts +1 -1
  78. package/src/types.ts +26 -7
package/src/agent.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import type { AgentPersonaConfig } from './agent-persona.js';
1
2
  import type { AgentOutput, AgentTrigger } from './agent-trigger.js';
2
3
  import { SharedPrimitive, SharedPrimitiveFields } from './shared-primitive.js';
3
4
  import type { SharingTag } from './sharing-tag.js';
@@ -20,6 +21,7 @@ type Agent {
20
21
  executionState: AgentExecutionState!
21
22
  name: String!
22
23
  outputs: [AgentOutput!]!
24
+ persona: AgentPersonaConfig
23
25
  threadInstructions: String
24
26
  trigger: AgentTrigger!
25
27
  }
@@ -40,6 +42,7 @@ export class Agent extends SharedPrimitive {
40
42
  executionState: AgentExecutionState = 'IDLE';
41
43
  name: string;
42
44
  outputs: AgentOutput[];
45
+ persona?: AgentPersonaConfig;
43
46
  threadInstructions?: string;
44
47
  trigger: AgentTrigger;
45
48
 
@@ -56,6 +59,7 @@ input UpsertAgentInput {
56
59
  name: String
57
60
  outputs: [AgentOutputInput!]
58
61
  sharingTags: [SharingTagInput!]
62
+ templateId: String
59
63
  threadInstructions: String
60
64
  trigger: AgentTriggerInput
61
65
  }`;
@@ -66,6 +70,7 @@ export interface UpsertAgentInput {
66
70
  name?: string;
67
71
  outputs?: AgentOutput[];
68
72
  sharingTags?: SharingTag[];
73
+ templateId?: string;
69
74
  threadInstructions?: string;
70
75
  trigger?: AgentTrigger;
71
76
  }
package/src/block.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import type { AccessType } from './access-type.js';
2
+ import type { Agent } from './agent.ts';
2
3
  import type { BlockCreator } from './block-creator.js';
3
4
  import type { BlockDirection } from './block-direction.js';
4
5
  import type { BlockFeedbackState } from './block-feedback-state.js';
@@ -16,8 +17,16 @@ import {
16
17
  type TenantRef,
17
18
  } from './shared-primitive.js';
18
19
  import type { SharingTag } from './sharing-tag.js';
20
+ import type { Tag } from './tag.ts';
19
21
  import type { TaskStatus } from './task-status.js';
20
22
 
23
+ export const PersonaContextQL = `
24
+ type PersonaContext {
25
+ agent: Agent!
26
+ tag: Tag!
27
+ }`;
28
+ export type PersonaContext = { agent?: Agent; agentId: string; tag?: Tag; tagId: string };
29
+
21
30
  export const BlockFields = `${SharedPrimitiveFields}
22
31
  access: String!
23
32
  activities(size: Int): [BlockActivity]
@@ -41,6 +50,7 @@ export const BlockFields = `${SharedPrimitiveFields}
41
50
  rangeId: String
42
51
  parentReferenceBlock: ReferenceBlock
43
52
  originReferenceBlock: ReferenceBlock
53
+ personaContext: PersonaContext
44
54
  generatedReferenceBlock: ReferenceBlock
45
55
  templateReferenceBlock: ReferenceBlock
46
56
  reactions: [Reaction]
@@ -109,6 +119,7 @@ export class Block extends SharedPrimitive {
109
119
  // Relationship information about the block
110
120
  parentReferenceBlock?: ReferenceBlock;
111
121
  originReferenceBlock?: ReferenceBlock;
122
+ personaContext?: PersonaContext;
112
123
  generatedReferenceBlock?: ReferenceBlock;
113
124
  templateReferenceBlock?: ReferenceBlock;
114
125
  // A search field to help with relevancy
@@ -8,20 +8,22 @@ import type { Tag } from './tag.js';
8
8
 
9
9
  export const MetadataChangeTypeQL = `
10
10
  enum MetadataChangeType {
11
- DELETE_RECORD_TYPE
12
- DELETE_TABLE
13
11
  DELETE_FIELD
14
12
  DELETE_FOLDER
15
- UPDATE_FOLDER_TAGS
13
+ DELETE_NOTE
14
+ DELETE_RECORD_TYPE
15
+ DELETE_TABLE
16
16
  UNINSTALL_FUNCTION
17
17
  UNINSTALL_QUERY
18
+ UPDATE_FOLDER_TAGS
18
19
  }`;
19
20
  export enum MetadataChangeType {
20
- DeleteRecordType = 'delete_record_type',
21
- DeleteTable = 'delete_table',
21
+ DeleteNote = 'delete_note',
22
22
  DeleteField = 'delete_field',
23
23
  DeleteFolder = 'delete_folder',
24
24
  UpdateFolderTags = 'update_folder_tags',
25
+ DeleteRecordType = 'delete_record_type',
26
+ DeleteTable = 'delete_table',
25
27
  UninstallFunction = 'uninstall_function',
26
28
  UninstallQuery = 'uninstall_query',
27
29
  }
@@ -42,6 +44,7 @@ export interface AssessMetadataChangeInput {
42
44
  fieldName?: string;
43
45
  folderId?: string;
44
46
  functionId?: string;
47
+ noteId?: string;
45
48
  queryId?: string;
46
49
  recordTypeId?: string;
47
50
  tableId?: string;
@@ -166,6 +169,7 @@ export const MetadataChangeQL = `
166
169
  fieldName: String
167
170
  folderId: String
168
171
  functionId: String
172
+ noteId: String
169
173
  queryId: String
170
174
  recordTypeId: String
171
175
  tableId: String
@@ -177,6 +181,7 @@ export const MetadataChangeQL = `
177
181
  fieldName: String
178
182
  folderId: String
179
183
  functionId: String
184
+ noteId: String
180
185
  queryId: String
181
186
  recordTypeId: String
182
187
  tableId: String
package/src/navigation.ts CHANGED
@@ -59,14 +59,37 @@ union NavigationEntry = NavigationTagEntry | NavigationFolderEntry
59
59
  `;
60
60
 
61
61
  export interface NavigationTagEntry {
62
+ __typename: 'NavigationTagEntry';
62
63
  order: number;
63
64
  tag: Tag;
64
65
  }
65
66
 
67
+ export function createNavigationTagEntry(tag: Tag, order: number): NavigationTagEntry {
68
+ return {
69
+ __typename: 'NavigationTagEntry',
70
+ order,
71
+ tag,
72
+ };
73
+ }
74
+
66
75
  export interface NavigationFolderEntry {
76
+ __typename: 'NavigationFolderEntry';
67
77
  children: NavigationTagEntry[];
68
78
  folder: Folder;
69
79
  order: number;
70
80
  }
71
81
 
82
+ export function createNavigationFolderEntry(
83
+ children: NavigationTagEntry[],
84
+ folder: Folder,
85
+ order: number,
86
+ ): NavigationFolderEntry {
87
+ return {
88
+ __typename: 'NavigationFolderEntry',
89
+ children,
90
+ folder,
91
+ order,
92
+ };
93
+ }
94
+
72
95
  export type NavigationEntry = NavigationFolderEntry | NavigationTagEntry;
@@ -181,7 +181,7 @@ export interface MetadataChangeRecommendation {
181
181
  status: PendingMetadataChangeStatus;
182
182
  targetId: string;
183
183
  targetName: string;
184
- targetType: 'folder' | 'function' | 'query' | 'record_type' | 'table' | null;
184
+ targetType: 'folder' | 'function' | 'note' | 'query' | 'record_type' | 'table' | null;
185
185
  }
186
186
 
187
187
  export const FunctionRecommendationQL = `
package/src/tag.ts CHANGED
@@ -12,7 +12,7 @@ import { TagType } from './tag-type.js';
12
12
  export const TagFieldsWithoutSharing = `${PrimitiveFields}
13
13
  alias: String!
14
14
  friendlyName: String
15
- tagType: String!
15
+ tagType: TagType!
16
16
  tagSubType: String
17
17
  metadataType: String
18
18
  url: String
package/src/types.ts CHANGED
@@ -1,5 +1,12 @@
1
1
  import { AgentExecutionStateQL, AgentQL, UpsertAgentInputQL } from './agent.js';
2
- import { AgentExecutionQL, ExecutionOutputQL, FindAgentExecutionsInputQL } from './agent-execution.js';
2
+ import { AgentExecutionQL, ExecutionGateQL, ExecutionOutputQL, FindAgentExecutionsInputQL } from './agent-execution.js';
3
+ import {
4
+ AgentPersonaConfigQL,
5
+ EvaluatePersonaGoalInputQL,
6
+ EvaluatePersonaGoalOutputQL,
7
+ ValidatePersonaGoalInputQL,
8
+ ValidatePersonaGoalOutputQL,
9
+ } from './agent-persona.js';
3
10
  import {
4
11
  AgentOutputInputQL,
5
12
  AgentOutputQL,
@@ -14,7 +21,7 @@ import {
14
21
  } from './agent-trigger.js';
15
22
  import { AiTraceCostMonthQL, AiTraceCostTenantQL, FindAiTraceCostsInputQL } from './ai-trace.js';
16
23
  import { AttachmentInputQL, AttachmentQL } from './attachment.js';
17
- import { type Block, BlockFieldsForUpsert, BlockQL } from './block.js';
24
+ import { type Block, BlockFieldsForUpsert, BlockQL, PersonaContextQL } from './block.js';
18
25
  import {
19
26
  BlockActivityActorTypeQL,
20
27
  BlockActivityAssignedDetailQL,
@@ -1865,21 +1872,25 @@ input ArchiveBlockInput {
1865
1872
  _id: String!
1866
1873
  blockType: String
1867
1874
  archive: Boolean
1875
+ confirmed: Boolean
1868
1876
  }`;
1869
1877
  export interface ArchiveBlockInput {
1870
1878
  _id: string;
1871
1879
  blockType?: BlockType;
1872
1880
  archive?: boolean;
1881
+ confirmed?: boolean;
1873
1882
  }
1874
1883
 
1875
1884
  export const ArchiveBlockOutputQL = `
1876
1885
  type ArchiveBlockOutput {
1877
1886
  _id: String!
1878
1887
  archived: Boolean!
1888
+ metadataChange: MetadataChangeMutationResult
1879
1889
  }`;
1880
1890
  export interface ArchiveBlockOutput {
1881
1891
  _id: string;
1882
1892
  archived: boolean;
1893
+ metadataChange?: MetadataChangeMutationResult | null;
1883
1894
  }
1884
1895
 
1885
1896
  export const UpdateRecommendationInputQL = `
@@ -3468,6 +3479,7 @@ export interface DismissBlockTagRecommendationOutput {
3468
3479
  export * from './access-type.js';
3469
3480
  export * from './agent.js';
3470
3481
  export * from './agent-execution.js';
3482
+ export * from './agent-persona.js';
3471
3483
  export * from './agent-trigger.js';
3472
3484
  export * from './ai-trace.js';
3473
3485
  export * from './attachment.js';
@@ -3782,6 +3794,7 @@ ${ReferenceBlockQL}
3782
3794
  ${DomainQL}
3783
3795
  ${TenantQL}
3784
3796
  ${BlockQL}
3797
+ ${PersonaContextQL}
3785
3798
  ${BlockTemplateQL}
3786
3799
  ${BlockTemplateInputQL}
3787
3800
  ${BusinessObjectQL}
@@ -3987,9 +4000,10 @@ ${DismissBlockTagRecommendationOutputQL}
3987
4000
  ${RemoveBlockTagRecommendationInputQL}
3988
4001
  ${RemoveBlockTagRecommendationOutputQL}
3989
4002
  ${BlockTagRecommendationQL}
3990
- ${AgentExecutionStateQL}
3991
- ${AgentQL}
3992
- ${AgentOutputInputQL}
4003
+ ${AgentExecutionStateQL}
4004
+ ${AgentQL}
4005
+ ${AgentPersonaConfigQL}
4006
+ ${AgentOutputInputQL}
3993
4007
  ${AgentOutputQL}
3994
4008
  ${AgentTriggerScopeFieldQL}
3995
4009
  ${AgentTriggerScopeFieldInputQL}
@@ -3998,8 +4012,13 @@ ${AgentTriggerScopeQL}
3998
4012
  ${AgentTriggerInputQL}
3999
4013
  ${AgentTriggerQL}
4000
4014
  ${ArchiveAgentInputQL}
4001
- ${ArchiveAgentOutputQL}
4002
- ${UpsertAgentInputQL}
4015
+ ${ArchiveAgentOutputQL}
4016
+ ${UpsertAgentInputQL}
4017
+ ${EvaluatePersonaGoalInputQL}
4018
+ ${EvaluatePersonaGoalOutputQL}
4019
+ ${ValidatePersonaGoalInputQL}
4020
+ ${ValidatePersonaGoalOutputQL}
4021
+ ${ExecutionGateQL}
4003
4022
  ${ExecutionOutputQL}
4004
4023
  ${AgentExecutionQL}
4005
4024
  ${FindAgentExecutionsInputQL}