@mastra/core 0.1.26 → 0.1.27-alpha.1

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 (127) hide show
  1. package/dist/agents/agent-apis.d.ts +0 -31
  2. package/dist/agents/agent-apis.d.ts.map +1 -1
  3. package/dist/agents/file-logger.d.ts +0 -5
  4. package/dist/agents/file-logger.d.ts.map +1 -1
  5. package/dist/agents/index.d.ts +0 -49
  6. package/dist/agents/index.d.ts.map +1 -1
  7. package/dist/agents/openai/assistant.d.ts +0 -76
  8. package/dist/agents/openai/assistant.d.ts.map +1 -1
  9. package/dist/agents/utils.d.ts +0 -21
  10. package/dist/agents/utils.d.ts.map +1 -1
  11. package/dist/agents/vector-sync.d.ts +0 -46
  12. package/dist/agents/vector-sync.d.ts.map +1 -1
  13. package/dist/agents/vercel/index.d.ts +0 -43
  14. package/dist/agents/vercel/index.d.ts.map +1 -1
  15. package/dist/authenticator.d.ts +0 -62
  16. package/dist/authenticator.d.ts.map +1 -1
  17. package/dist/core.cjs.development.js +956 -7459
  18. package/dist/core.cjs.development.js.map +1 -1
  19. package/dist/core.cjs.production.min.js +1 -1
  20. package/dist/core.cjs.production.min.js.map +1 -1
  21. package/dist/core.esm.js +949 -7409
  22. package/dist/core.esm.js.map +1 -1
  23. package/dist/framework.d.ts +0 -254
  24. package/dist/framework.d.ts.map +1 -1
  25. package/dist/index.d.ts +1 -18
  26. package/dist/index.d.ts.map +1 -1
  27. package/dist/integration.d.ts +0 -98
  28. package/dist/integration.d.ts.map +1 -1
  29. package/dist/lib/index.d.ts +0 -5
  30. package/dist/lib/index.d.ts.map +1 -1
  31. package/dist/lib/utils/object.d.ts +0 -42
  32. package/dist/lib/utils/object.d.ts.map +1 -1
  33. package/dist/next/callback.d.ts +0 -3
  34. package/dist/next/callback.d.ts.map +1 -1
  35. package/dist/next/connect.d.ts +0 -3
  36. package/dist/next/connect.d.ts.map +1 -1
  37. package/dist/next/cron.d.ts +0 -12
  38. package/dist/next/cron.d.ts.map +1 -1
  39. package/dist/next/index.d.ts +0 -15
  40. package/dist/next/index.d.ts.map +1 -1
  41. package/dist/next/inngest.d.ts +0 -3
  42. package/dist/next/inngest.d.ts.map +1 -1
  43. package/dist/next/utils.d.ts +0 -9
  44. package/dist/next/utils.d.ts.map +1 -1
  45. package/dist/next/webhook.d.ts +0 -9
  46. package/dist/next/webhook.d.ts.map +1 -1
  47. package/dist/next-src/agent/index.d.ts +63 -0
  48. package/dist/next-src/agent/index.d.ts.map +1 -0
  49. package/dist/next-src/engine/index.d.ts +147 -0
  50. package/dist/next-src/engine/index.d.ts.map +1 -0
  51. package/dist/next-src/engine/schema.d.ts.map +1 -0
  52. package/dist/next-src/engine/types.d.ts +116 -0
  53. package/dist/next-src/engine/types.d.ts.map +1 -0
  54. package/dist/{lib/query-builder → next-src/engine}/utils.d.ts +2 -1
  55. package/dist/next-src/engine/utils.d.ts.map +1 -0
  56. package/dist/next-src/index.d.ts +54 -0
  57. package/dist/next-src/index.d.ts.map +1 -0
  58. package/dist/next-src/integration/index.d.ts +30 -0
  59. package/dist/next-src/integration/index.d.ts.map +1 -0
  60. package/dist/next-src/logger/index.d.ts +61 -0
  61. package/dist/next-src/logger/index.d.ts.map +1 -0
  62. package/dist/next-src/tools/index.d.ts +4 -0
  63. package/dist/next-src/tools/index.d.ts.map +1 -0
  64. package/dist/next-src/tools/types.d.ts +27 -0
  65. package/dist/next-src/tools/types.d.ts.map +1 -0
  66. package/dist/next-src/vector/index.d.ts +11 -0
  67. package/dist/next-src/vector/index.d.ts.map +1 -0
  68. package/dist/sync-factory.d.ts +0 -13
  69. package/dist/sync-factory.d.ts.map +1 -1
  70. package/dist/sync-fixtures/github.d.ts +6 -6
  71. package/dist/types.d.ts +0 -400
  72. package/dist/types.d.ts.map +1 -1
  73. package/dist/utils/errors.d.ts +0 -3
  74. package/dist/utils/errors.d.ts.map +1 -1
  75. package/dist/utils/index.d.ts +0 -14
  76. package/dist/utils/index.d.ts.map +1 -1
  77. package/dist/utils/inngest.d.ts +0 -6
  78. package/dist/utils/inngest.d.ts.map +1 -1
  79. package/dist/utils/text.d.ts +0 -1
  80. package/dist/utils/text.d.ts.map +1 -1
  81. package/dist/vector-access/index.d.ts +0 -21
  82. package/dist/vector-access/index.d.ts.map +1 -1
  83. package/dist/vector-access/types.d.ts +0 -6
  84. package/dist/vector-access/types.d.ts.map +1 -1
  85. package/dist/workflows/apis.d.ts +0 -8
  86. package/dist/workflows/apis.d.ts.map +1 -1
  87. package/dist/workflows/conditions/constants.d.ts +0 -16
  88. package/dist/workflows/conditions/constants.d.ts.map +1 -1
  89. package/dist/workflows/conditions/types.d.ts +0 -2
  90. package/dist/workflows/conditions/types.d.ts.map +1 -1
  91. package/dist/workflows/handler.d.ts +0 -63
  92. package/dist/workflows/handler.d.ts.map +1 -1
  93. package/dist/workflows/runner.d.ts +0 -51
  94. package/dist/workflows/runner.d.ts.map +1 -1
  95. package/dist/workflows/schemas.d.ts +0 -1043
  96. package/dist/workflows/schemas.d.ts.map +1 -1
  97. package/dist/workflows/types.d.ts +0 -96
  98. package/dist/workflows/types.d.ts.map +1 -1
  99. package/dist/workflows/utils.d.ts +0 -111
  100. package/dist/workflows/utils.d.ts.map +1 -1
  101. package/package.json +15 -17
  102. package/dist/data-access/index.d.ts +0 -351
  103. package/dist/data-access/index.d.ts.map +0 -1
  104. package/dist/generated-types/index.d.ts +0 -5
  105. package/dist/generated-types/index.d.ts.map +0 -1
  106. package/dist/lib/logger-utils/logger.d.ts +0 -118
  107. package/dist/lib/logger-utils/logger.d.ts.map +0 -1
  108. package/dist/lib/query-builder/constants.d.ts +0 -17
  109. package/dist/lib/query-builder/constants.d.ts.map +0 -1
  110. package/dist/lib/query-builder/filters/sql.d.ts +0 -9
  111. package/dist/lib/query-builder/filters/sql.d.ts.map +0 -1
  112. package/dist/lib/query-builder/schema.d.ts.map +0 -1
  113. package/dist/lib/query-builder/sorts/sql.d.ts +0 -8
  114. package/dist/lib/query-builder/sorts/sql.d.ts.map +0 -1
  115. package/dist/lib/query-builder/types.d.ts +0 -31
  116. package/dist/lib/query-builder/types.d.ts.map +0 -1
  117. package/dist/lib/query-builder/utils.d.ts.map +0 -1
  118. package/dist/prisma/client.d.ts +0 -3
  119. package/dist/prisma/client.d.ts.map +0 -1
  120. package/dist/prisma/client.ts +0 -31
  121. package/dist/prisma/gen.js +0 -140
  122. package/dist/prisma/schema.prisma +0 -130
  123. package/dist/service/service.property.d.ts +0 -25
  124. package/dist/service/service.property.d.ts.map +0 -1
  125. package/dist/service/service.record.d.ts +0 -25
  126. package/dist/service/service.record.d.ts.map +0 -1
  127. /package/dist/{lib/query-builder → next-src/engine}/schema.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/workflows/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASb,CAAC;AAEb,KAAK,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,GAAG;IACrD,GAAG,CAAC,EAAE,SAAS,EAAE,CAAC;IAClB,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAKhD,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM/B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;CAGvB,CAAC;AAEX,eAAO,MAAM,wBAAwB,UAAU,CAAC;AAEhD,eAAO,MAAM,mBAA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AEb,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA6B,CAAC;AAE5D,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA0B,CAAC"}
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/workflows/schemas.ts"],"names":[],"mappings":""}
@@ -1,97 +1 @@
1
- import { z } from 'zod';
2
- import { actionPayloadSchema, actionPayloadValueSchema, actionVariableSchema, actionSchema, blueprintSchema, conditionSchema, logicConditionSchema, triggerSchema, createBlueprintSchema, createRunSchema, PayloadFieldTypeEnum, updatActionSchema, updateBlueprintSchema, updateRunSchema, updateTriggerSchema } from './schemas';
3
- export declare const WorkflowStatusEnum: {
4
- readonly DRAFT: "DRAFT";
5
- readonly UNPUBLISHED: "UNPUBLISHED";
6
- readonly PUBLISHED: "PUBLISHED";
7
- };
8
- export type WorkflowStatus = (typeof WorkflowStatusEnum)[keyof typeof WorkflowStatusEnum];
9
- export declare const RunStatus: {
10
- readonly PENDING: "PENDING";
11
- readonly RUNNING: "RUNNING";
12
- readonly COMPLETED: "COMPLETED";
13
- readonly FAILED: "FAILED";
14
- };
15
- export type RunStatus = (typeof RunStatus)[keyof typeof RunStatus];
16
- export type Run = {
17
- id: string;
18
- status: RunStatus;
19
- completedAt: Date | null;
20
- failedAt: Date | null;
21
- blueprintId: string;
22
- createdAt: Date;
23
- updatedAt: Date | null;
24
- };
25
- export type CreateBlueprintDto = z.infer<typeof createBlueprintSchema>;
26
- export type CreateRunDto = z.infer<typeof createRunSchema>;
27
- export type UpdateBlueprintDto = z.infer<typeof updateBlueprintSchema>;
28
- export type UpdateRunDto = z.infer<typeof updateRunSchema>;
29
- export type WorkflowTrigger = z.infer<typeof triggerSchema>;
30
- export type UpdateTrigger = z.infer<typeof updateTriggerSchema>;
31
- export type WorkflowAction = z.infer<typeof actionSchema>;
32
- export type WorkflowParentBlock = {
33
- blockType: 'action' | 'trigger';
34
- } & (WorkflowAction | WorkflowTrigger);
35
- export type WorkflowParentBlocks = WorkflowParentBlock[];
36
- export type ActionWithParentCondition = WorkflowAction & {
37
- parentCondition?: WorkflowLogicConditionGroup;
38
- };
39
- export type Blueprint = z.infer<typeof blueprintSchema>;
40
- export type BlueprintWithRelations = Blueprint & {
41
- runs?: Run[];
42
- isLoading?: boolean;
43
- };
44
- export type UpdateAction = z.infer<typeof updatActionSchema>;
45
- export type WorkflowConditionGroup = z.infer<typeof conditionSchema> & {
46
- actionId?: string;
47
- blockId?: string;
48
- isDefault?: boolean;
49
- };
50
- export type WorkflowLogicConditionGroup = z.infer<typeof logicConditionSchema>;
51
- export type ConditionConj = 'and' | 'or';
52
- export type WorkflowCondition = Pick<WorkflowConditionGroup, 'field' | 'operator' | 'value' | 'id'> & {
53
- conj?: ConditionConj;
54
- actionId?: string;
55
- blockId?: string;
56
- isDefault?: boolean;
57
- };
58
- export type ActionPayload = z.infer<typeof actionPayloadSchema>;
59
- export type ActionVariables = z.infer<typeof actionVariableSchema>;
60
- export type ActionVariable = z.infer<typeof actionVariableSchema.valueSchema>;
61
- export type PayloadField = (typeof PayloadFieldTypeEnum)[keyof typeof PayloadFieldTypeEnum];
62
- export type ActionPayloadValue = z.infer<typeof actionPayloadValueSchema>;
63
- export type WorkflowContextBlueprintInfo = Omit<BlueprintWithRelations, 'actions' | 'trigger' | 'isLoading' | 'runs'>;
64
- export type WorkflowContextAction = UpdateAction & {
65
- id: string;
66
- parentActionId?: string;
67
- };
68
- export type WorkflowContextWorkflowActionsShape = {
69
- [key: string]: WorkflowContextAction;
70
- };
71
- export type WorkflowContextSelectedBlock = {
72
- type: 'action';
73
- block: WorkflowAction;
74
- } | {
75
- type: 'trigger';
76
- block: WorkflowTrigger;
77
- } | {
78
- type: 'path';
79
- block: WorkflowLogicConditionGroup;
80
- };
81
- export type NewActionInMiddleProps = {
82
- newAction: WorkflowContextAction;
83
- isParentATrigger?: boolean;
84
- } & ({
85
- isParentACondition?: never;
86
- conditionId?: never;
87
- } | {
88
- isParentACondition: boolean;
89
- conditionId: string;
90
- });
91
- export interface UpdateLogicCondtion {
92
- actionId: string;
93
- condition: WorkflowLogicConditionGroup;
94
- isNewCondition?: boolean;
95
- isPathFromGraph?: boolean;
96
- }
97
1
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/workflows/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,mBAAmB,EACnB,wBAAwB,EACxB,oBAAoB,EACpB,YAAY,EACZ,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,aAAa,EACb,qBAAqB,EACrB,eAAe,EACf,oBAAoB,EACpB,iBAAiB,EACjB,qBAAqB,EACrB,eAAe,EACf,mBAAmB,EACpB,MAAM,WAAW,CAAC;AAEnB,eAAO,MAAM,kBAAkB;;;;CAIrB,CAAC;AAEX,MAAM,MAAM,cAAc,GACxB,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAE/D,eAAO,MAAM,SAAS;;;;;CAKZ,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAEnE,MAAM,MAAM,GAAG,GAAG;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,SAAS,CAAC;IAClB,WAAW,EAAE,IAAI,GAAG,IAAI,CAAC;IACzB,QAAQ,EAAE,IAAI,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,YAAY,GAAG;IACjD,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAAG;IAChD,CAAC,GAAG,EAAE,MAAM,GAAG,qBAAqB,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,4BAA4B,GACpC;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,cAAc,CAAC;CACvB,GACD;IACE,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,eAAe,CAAC;CACxB,GACD;IACE,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,2BAA2B,CAAC;CACpC,CAAC;AAEN,MAAM,MAAM,sBAAsB,GAAG;IACnC,SAAS,EAAE,qBAAqB,CAAC;IACjC,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,GAAG,CACA;IAAE,kBAAkB,CAAC,EAAE,KAAK,CAAC;IAAC,WAAW,CAAC,EAAE,KAAK,CAAA;CAAE,GACnD;IAAE,kBAAkB,EAAE,OAAO,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CACvD,CAAC;AAEF,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,2BAA2B,CAAC;IACvC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/workflows/types.ts"],"names":[],"mappings":""}
@@ -1,112 +1 @@
1
- import { IntegrationContext, RefinedIntegrationApi, RefinedIntegrationEvent } from '../types';
2
- import { BlueprintWithRelations, WorkflowCondition, WorkflowConditionGroup, WorkflowParentBlock, WorkflowStatus, WorkflowTrigger, WorkflowContextWorkflowActionsShape } from './types';
3
- import { FilterOperator } from './conditions/types';
4
- export declare const workflowStatusColorMap: Record<WorkflowStatus, string>;
5
- export declare const workflowStatusTextMap: Record<WorkflowStatus, string>;
6
- export declare function extractConditions(group?: WorkflowConditionGroup): WorkflowCondition[];
7
- export declare const getAllParentBlocks: ({ actions, actionId, trigger, }: {
8
- actions: WorkflowContextWorkflowActionsShape;
9
- actionId: string;
10
- trigger: WorkflowTrigger;
11
- }) => WorkflowParentBlock[];
12
- export declare const getOutputSchema: ({ block, payload, blockType, }: {
13
- block: RefinedIntegrationApi | RefinedIntegrationEvent;
14
- payload: {
15
- value?: unknown;
16
- } | Record<string, any>;
17
- blockType: "action" | "trigger";
18
- }) => any;
19
- export declare const getOutputSchemaServer: ({ ctx, block, payload, blockType, }: {
20
- ctx: IntegrationContext;
21
- block: RefinedIntegrationApi | RefinedIntegrationEvent;
22
- payload: {
23
- value?: unknown;
24
- } | Record<string, any>;
25
- blockType: "action" | "trigger";
26
- }) => Promise<any>;
27
- export declare const getSchemaServer: ({ ctx, block, payload, blockType, }: {
28
- ctx: IntegrationContext;
29
- block: RefinedIntegrationApi | RefinedIntegrationEvent;
30
- payload: {
31
- value?: unknown;
32
- } | Record<string, any>;
33
- blockType: "action" | "trigger";
34
- }) => Promise<any>;
35
- export declare const getSchemaClient: ({ block, payload, blockType, }: {
36
- block: RefinedIntegrationApi | RefinedIntegrationEvent;
37
- payload: {
38
- value?: unknown;
39
- } | Record<string, any>;
40
- blockType: "action" | "trigger";
41
- }) => any;
42
- export declare const filterChecks: {
43
- stringCheck: ({ filterField, operator, comparator, }: {
44
- filterField: string;
45
- operator: FilterOperator;
46
- comparator: string;
47
- }) => boolean;
48
- numberCheck: ({ filterField, operator, comparator, }: {
49
- filterField: number;
50
- operator: FilterOperator;
51
- comparator: number;
52
- }) => boolean;
53
- dateCheck: ({ filterField, operator, comparator, }: {
54
- filterField: string;
55
- operator: FilterOperator;
56
- comparator: string;
57
- }) => boolean;
58
- booleanCheck: ({ filterField, operator, comparator, }: {
59
- filterField: boolean;
60
- operator: FilterOperator;
61
- comparator: unknown;
62
- }) => boolean;
63
- };
64
- export declare const constructWorkflowContextBluePrint: (blueprint: BlueprintWithRelations) => {
65
- trigger: {
66
- id: string;
67
- type: string;
68
- description?: string | undefined;
69
- payload?: {
70
- value?: unknown;
71
- } | undefined;
72
- condition?: ({
73
- id?: string | undefined;
74
- field?: string | undefined;
75
- operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
76
- value?: unknown;
77
- blockId?: string | undefined;
78
- actionId?: string | undefined;
79
- } & {
80
- and?: ({
81
- id?: string | undefined;
82
- field?: string | undefined;
83
- operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
84
- value?: unknown;
85
- blockId?: string | undefined;
86
- actionId?: string | undefined;
87
- } & any)[];
88
- or?: ({
89
- id?: string | undefined;
90
- field?: string | undefined;
91
- operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
92
- value?: unknown;
93
- blockId?: string | undefined;
94
- actionId?: string | undefined;
95
- } & any)[];
96
- }) | undefined;
97
- } | null;
98
- blueprintInfo: {
99
- id: string;
100
- status: "DRAFT" | "UNPUBLISHED" | "PUBLISHED";
101
- title: string;
102
- ownerId: string;
103
- workspaceId: string;
104
- createdAt: Date;
105
- description?: string | null | undefined;
106
- updatedAt?: Date | undefined;
107
- runs?: import("./types").Run[];
108
- isLoading?: boolean;
109
- };
110
- actions: WorkflowContextWorkflowActionsShape;
111
- };
112
1
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/workflows/utils.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,UAAU,CAAC;AAElB,OAAO,EAEL,sBAAsB,EACtB,iBAAiB,EACjB,sBAAsB,EACtB,mBAAmB,EAEnB,cAAc,EACd,eAAe,EAEf,mCAAmC,EACpC,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAIxD,CAAC;AAEX,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAIvD,CAAC;AAEX,wBAAgB,iBAAiB,CAAC,KAAK,CAAC,EAAE,sBAAsB,uBAiC/D;AAED,eAAO,MAAM,kBAAkB,oCAI5B;IACD,OAAO,EAAE,mCAAmC,CAAC;IAC7C,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,eAAe,CAAC;CAC1B,0BAkBA,CAAC;AAEF,eAAO,MAAM,eAAe,mCAIzB;IACD,KAAK,EAAE,qBAAqB,GAAG,uBAAuB,CAAC;IACvD,OAAO,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACnD,SAAS,EAAE,QAAQ,GAAG,SAAS,CAAC;CACjC,QA4BA,CAAC;AAEF,eAAO,MAAM,qBAAqB,wCAK/B;IACD,GAAG,EAAE,kBAAkB,CAAC;IACxB,KAAK,EAAE,qBAAqB,GAAG,uBAAuB,CAAC;IACvD,OAAO,EAAE;QAAE,KAAK,CAAC,EAAE,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D,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/workflows/utils.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/core",
3
- "version": "0.1.26",
3
+ "version": "0.1.27-alpha.1",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/mylib.esm.js",
@@ -8,6 +8,17 @@
8
8
  "files": [
9
9
  "dist"
10
10
  ],
11
+ "scripts": {
12
+ "check": "tsc --noEmit",
13
+ "analyze": "size-limit --why",
14
+ "build": "dts build",
15
+ "build:dev": "dts watch",
16
+ "lint": "dts lint",
17
+ "size": "size-limit",
18
+ "start": "dts watch",
19
+ "test": "jest",
20
+ "clean": "rm -rf dist && rm -rf node_modules"
21
+ },
11
22
  "husky": {
12
23
  "hooks": {
13
24
  "pre-commit": "dts lint"
@@ -66,22 +77,9 @@
66
77
  "jest": "^29.7.0",
67
78
  "size-limit": "^11.1.4",
68
79
  "ts-jest": "^29.2.4",
80
+ "ts-node": "^10.9.2",
69
81
  "tslib": "^2.6.3",
82
+ "xstate": "^5.19.0",
70
83
  "typescript": "^5.5.4"
71
- },
72
- "scripts": {
73
- "check": "tsc --noEmit",
74
- "analyze": "size-limit --why",
75
- "build": "pnpm generate:schema && dts build && cp -r ./src/prisma/* ./dist/prisma",
76
- "build:dev": "dts watch",
77
- "lint": "dts lint",
78
- "size": "size-limit",
79
- "start": "dts watch",
80
- "test": "jest",
81
- "clean": "rm -rf dist && rm -rf node_modules",
82
- "generate:schema": "node ./src/prisma/gen.js",
83
- "generate": "npx prisma generate --schema=./dist/prisma/schema.prisma",
84
- "postinstall": "npx prisma generate --schema=./dist/prisma/schema.prisma",
85
- "synchronize": "npx prisma db push --schema=./src/prisma/schema.prisma --force-reset"
86
84
  }
87
- }
85
+ }
@@ -1,351 +0,0 @@
1
- import { Prisma, PrismaClient, Credential } from '@prisma-app/client';
2
- import { FilterObject } from '../lib/query-builder/types';
3
- import { prisma } from '../prisma/client';
4
- import { RecordService } from '../service/service.record';
5
- import { CredentialValue } from '../types';
6
- export declare class DataLayer {
7
- db: PrismaClient;
8
- recordService: RecordService<typeof prisma>;
9
- constructor({ url }: {
10
- url: string;
11
- provider: string;
12
- });
13
- createConnection({ connection, credential, }: {
14
- connection: Prisma.ConnectionUncheckedCreateInput;
15
- credential: Omit<Prisma.CredentialUncheckedCreateInput, 'k_id'>;
16
- }): Promise<{
17
- id: string;
18
- name: string;
19
- createdAt: Date;
20
- updatedAt: Date | null;
21
- issues: string[];
22
- syncConfig: Prisma.JsonValue | null;
23
- connectionId: string;
24
- lastSyncAt: Date | null;
25
- subscriptionId: string | null;
26
- } & {
27
- credential: Credential;
28
- }>;
29
- deleteConnection({ connectionId }: {
30
- connectionId: string;
31
- }): Promise<{
32
- id: string;
33
- name: string;
34
- createdAt: Date;
35
- updatedAt: Date | null;
36
- issues: string[];
37
- syncConfig: Prisma.JsonValue | null;
38
- connectionId: string;
39
- lastSyncAt: Date | null;
40
- subscriptionId: string | null;
41
- }>;
42
- getConnection({ connectionId, name, }: {
43
- name: string;
44
- connectionId: string;
45
- }): Promise<{
46
- id: string;
47
- name: string;
48
- createdAt: Date;
49
- updatedAt: Date | null;
50
- issues: string[];
51
- syncConfig: Prisma.JsonValue | null;
52
- connectionId: string;
53
- lastSyncAt: Date | null;
54
- subscriptionId: string | null;
55
- } | null>;
56
- getConnectionsByIntegrationName({ name }: {
57
- name: string;
58
- }): Promise<{
59
- id: string;
60
- name: string;
61
- createdAt: Date;
62
- updatedAt: Date | null;
63
- issues: string[];
64
- syncConfig: Prisma.JsonValue | null;
65
- connectionId: string;
66
- lastSyncAt: Date | null;
67
- subscriptionId: string | null;
68
- }[]>;
69
- getAllConnections(): Promise<{
70
- name: string;
71
- connectionId: string;
72
- }[]>;
73
- getConnectionById({ k_id }: {
74
- k_id: string;
75
- }): Promise<{
76
- id: string;
77
- name: string;
78
- createdAt: Date;
79
- updatedAt: Date | null;
80
- issues: string[];
81
- syncConfig: Prisma.JsonValue | null;
82
- connectionId: string;
83
- lastSyncAt: Date | null;
84
- subscriptionId: string | null;
85
- } | null>;
86
- getCredentialsByConnection(k_id: string): Promise<{
87
- connection: {
88
- id: string;
89
- name: string;
90
- createdAt: Date;
91
- updatedAt: Date | null;
92
- issues: string[];
93
- syncConfig: Prisma.JsonValue | null;
94
- connectionId: string;
95
- lastSyncAt: Date | null;
96
- subscriptionId: string | null;
97
- };
98
- } & {
99
- id: string;
100
- type: string;
101
- k_id: string;
102
- value: Prisma.JsonValue;
103
- scope: string[];
104
- }>;
105
- updateConnectionCredential({ k_id, token, }: {
106
- k_id: string;
107
- token: CredentialValue;
108
- }): Promise<{
109
- id: string;
110
- type: string;
111
- k_id: string;
112
- value: Prisma.JsonValue;
113
- scope: string[];
114
- }>;
115
- createEntity({ connectionId, type, k_id, }: {
116
- k_id: string;
117
- type: string;
118
- connectionId: string;
119
- }): Promise<{
120
- id: string;
121
- type: string;
122
- createdAt: Date;
123
- updatedAt: Date | null;
124
- createdBy: string;
125
- k_id: string;
126
- lastSyncId: string | null;
127
- }>;
128
- getEntityById(entityId: string): Promise<{
129
- id: string;
130
- type: string;
131
- createdAt: Date;
132
- updatedAt: Date | null;
133
- createdBy: string;
134
- k_id: string;
135
- lastSyncId: string | null;
136
- }>;
137
- addPropertiesToEntity({ entityId, properties, }: {
138
- entityId: string;
139
- properties: Prisma.PropertyCreateInput[];
140
- }): Promise<{
141
- id: string;
142
- type: string;
143
- createdAt: Date;
144
- updatedAt: Date | null;
145
- createdBy: string;
146
- k_id: string;
147
- lastSyncId: string | null;
148
- }>;
149
- getEntityRecordsByConnectionAndType({ k_id, type, }: {
150
- k_id: string;
151
- type: string;
152
- }): Promise<({
153
- properties: {
154
- id: string;
155
- name: string;
156
- displayName: string;
157
- visible: boolean;
158
- config: Prisma.JsonValue | null;
159
- description: string | null;
160
- type: import("@prisma-app/client").$Enums.PropertyType;
161
- order: number;
162
- modifiable: boolean;
163
- parentId: string | null;
164
- entityId: string | null;
165
- }[];
166
- records: {
167
- id: string;
168
- entityId: string | null;
169
- createdAt: Date;
170
- updatedAt: Date | null;
171
- entityType: string;
172
- externalId: string | null;
173
- data: Prisma.JsonValue;
174
- source: string;
175
- status: import("@prisma-app/client").$Enums.RecordStatus;
176
- enrichmentStatus: import("@prisma-app/client").$Enums.RecordEnrichmentStatus;
177
- deletedAt: Date | null;
178
- }[];
179
- } & {
180
- id: string;
181
- type: string;
182
- createdAt: Date;
183
- updatedAt: Date | null;
184
- createdBy: string;
185
- k_id: string;
186
- lastSyncId: string | null;
187
- }) | null>;
188
- getEntityByConnectionAndType({ k_id, type, }: {
189
- k_id: string;
190
- type: string;
191
- }): Promise<{
192
- id: string;
193
- type: string;
194
- createdAt: Date;
195
- updatedAt: Date | null;
196
- createdBy: string;
197
- k_id: string;
198
- lastSyncId: string | null;
199
- } | null>;
200
- updateEntityLastSyncId({ entityId, syncId, }: {
201
- entityId: string;
202
- syncId: string;
203
- }): Promise<{
204
- id: string;
205
- type: string;
206
- createdAt: Date;
207
- updatedAt: Date | null;
208
- createdBy: string;
209
- k_id: string;
210
- lastSyncId: string | null;
211
- }>;
212
- deleteEntityById(entityId: string): Promise<{
213
- id: string;
214
- type: string;
215
- createdAt: Date;
216
- updatedAt: Date | null;
217
- createdBy: string;
218
- k_id: string;
219
- lastSyncId: string | null;
220
- }>;
221
- /**
222
- * Creates new records for a entity, or updates existing record 'data' if it already exists
223
- * @param entityId
224
- * @param records
225
- */
226
- mergeExternalRecordsForEntity({ entityId, records, }: {
227
- entityId: string;
228
- records: {
229
- externalId: string;
230
- data: Record<string, any>;
231
- entityType?: string;
232
- }[];
233
- }): Promise<[Prisma.BatchPayload | undefined, number | undefined] | undefined>;
234
- updateConnectionCredentials({ k_id, ...update }: Prisma.CredentialUpdateInput & {
235
- k_id: string;
236
- }): Promise<{
237
- id: string;
238
- type: string;
239
- k_id: string;
240
- value: Prisma.JsonValue;
241
- scope: string[];
242
- }>;
243
- getRecords<T extends string | number | symbol>({ entityType, k_id, filters, sort, }: {
244
- entityType: string;
245
- k_id: string;
246
- filters?: FilterObject<T>;
247
- sort?: string[];
248
- }): Promise<any>;
249
- getRecordByPropertyNameAndValues({ propertyName, propertValues, type, connectionId, }: {
250
- propertyName: string;
251
- propertValues: string[];
252
- type?: string;
253
- connectionId: string;
254
- }): Promise<{
255
- id: string;
256
- entityId: string | null;
257
- createdAt: Date;
258
- updatedAt: Date | null;
259
- entityType: string;
260
- externalId: string | null;
261
- data: Prisma.JsonValue;
262
- source: string;
263
- status: import("@prisma-app/client").$Enums.RecordStatus;
264
- enrichmentStatus: import("@prisma-app/client").$Enums.RecordEnrichmentStatus;
265
- deletedAt: Date | null;
266
- }[]>;
267
- getRecordByPropertyNameAndValue({ propertyName, propertyValue, type, connectionId, }: {
268
- propertyName: string;
269
- propertyValue: string;
270
- type: string;
271
- connectionId: string;
272
- }): Promise<{
273
- id: string;
274
- entityId: string | null;
275
- createdAt: Date;
276
- updatedAt: Date | null;
277
- entityType: string;
278
- externalId: string | null;
279
- data: Prisma.JsonValue;
280
- source: string;
281
- status: import("@prisma-app/client").$Enums.RecordStatus;
282
- enrichmentStatus: import("@prisma-app/client").$Enums.RecordEnrichmentStatus;
283
- deletedAt: Date | null;
284
- } | null>;
285
- getRecordsByPropertyName({ propertyName, connectionId, }: {
286
- propertyName: string;
287
- connectionId: string;
288
- }): Promise<{
289
- id: string;
290
- entityId: string | null;
291
- createdAt: Date;
292
- updatedAt: Date | null;
293
- entityType: string;
294
- externalId: string | null;
295
- data: Prisma.JsonValue;
296
- source: string;
297
- status: import("@prisma-app/client").$Enums.RecordStatus;
298
- enrichmentStatus: import("@prisma-app/client").$Enums.RecordEnrichmentStatus;
299
- deletedAt: Date | null;
300
- }[]>;
301
- setConnectionError({ k_id, error }: {
302
- k_id: string;
303
- error: string;
304
- }): Promise<{
305
- id: string;
306
- name: string;
307
- createdAt: Date;
308
- updatedAt: Date | null;
309
- issues: string[];
310
- syncConfig: Prisma.JsonValue | null;
311
- connectionId: string;
312
- lastSyncAt: Date | null;
313
- subscriptionId: string | null;
314
- }>;
315
- setConnectionSubscriptionId({ k_id, subscriptionId, }: {
316
- k_id: string;
317
- subscriptionId: string;
318
- }): Promise<{
319
- id: string;
320
- name: string;
321
- createdAt: Date;
322
- updatedAt: Date | null;
323
- issues: string[];
324
- syncConfig: Prisma.JsonValue | null;
325
- connectionId: string;
326
- lastSyncAt: Date | null;
327
- subscriptionId: string | null;
328
- }>;
329
- syncData({ connectionId, name, data, type, properties, lastSyncId, }: {
330
- name: string;
331
- properties: Prisma.PropertyCreateInput[];
332
- connectionId: string;
333
- data: any;
334
- type: string;
335
- lastSyncId?: string;
336
- }): Promise<void>;
337
- getConnectionsBySubscriptionId({ subscriptionId, }: {
338
- subscriptionId: string;
339
- }): Promise<{
340
- id: string;
341
- name: string;
342
- createdAt: Date;
343
- updatedAt: Date | null;
344
- issues: string[];
345
- syncConfig: Prisma.JsonValue | null;
346
- connectionId: string;
347
- lastSyncAt: Date | null;
348
- subscriptionId: string | null;
349
- }[]>;
350
- }
351
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/data-access/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,YAAY,EAEZ,UAAU,EAEX,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C,qBAAa,SAAS;IACpB,EAAE,EAAE,YAAY,CAAC;IACjB,aAAa,EAAE,aAAa,CAAC,OAAO,MAAM,CAAC,CAAC;gBAEhC,EAAE,GAAG,EAAE,EAAE;QAAE,G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Q,CAAC,EACb,YAAY,EACZ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,UAAU,EACV,UAAU,GACX,EAAE;QACD,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,MAAM,CAAC,mBAAmB,EAAE,CAAC;QACzC,YAAY,EAAE,MAAM,CAAC;QACrB,IAAI,EAAE,GAAG,CAAC;QACV,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;IAyCK,8BAA8B,CAAC,EACnC,cAAc,GACf,EAAE;QACD,cAAc,EAAE,MAAM,CAAC;KACxB;;;;;;oBAQw8zI,OAAQ,SAAS;;;;;CAD39zI"}
@@ -1,5 +0,0 @@
1
- import type { Integration } from '../integration';
2
- export interface IntegrationMap {
3
- [s: string]: Integration;
4
- }
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generated-types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,MAAM,WAAW,cAAc;IAC7B,CAAC,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;CAC1B"}