twenty-sdk 2.2.0 → 2.3.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.
- package/README.md +3 -3
- package/dist/billing/index.cjs.map +1 -1
- package/dist/billing/index.mjs +9 -9
- package/dist/billing/index.mjs.map +1 -1
- package/dist/cli/commands/add.d.ts +1 -0
- package/dist/cli/operations/deploy.d.ts +2 -0
- package/dist/cli/types.d.ts +1 -0
- package/dist/cli/utilities/build/manifest/manifest-build.d.ts +1 -0
- package/dist/cli/utilities/build/manifest/manifest-extract-config.d.ts +7 -2
- package/dist/cli/utilities/dev/orchestrator/dev-mode-orchestrator-state.d.ts +3 -0
- package/dist/cli/utilities/dev/ui/components/dev-ui-version-row.d.ts +5 -0
- package/dist/cli/utilities/entity/entity-command-menu-item-template.d.ts +3 -0
- package/dist/cli/utilities/entity/entity-connection-provider-template.d.ts +4 -0
- package/dist/cli/utilities/file/append-server-variables.util.d.ts +22 -0
- package/dist/cli/utilities/server/docker-container.d.ts +1 -0
- package/dist/cli/utilities/version/check-server-version-compatibility.d.ts +1 -0
- package/dist/cli/utilities/version/compare-semver.d.ts +2 -0
- package/dist/cli/utilities/version/get-local-server-version.d.ts +1 -0
- package/dist/cli/utilities/version/get-published-server-versions.d.ts +2 -0
- package/dist/cli/utilities/version/get-version-info.d.ts +2 -0
- package/dist/cli/utilities/version/parse-semver.d.ts +2 -0
- package/dist/cli/utilities/version/published-server-version.d.ts +4 -0
- package/dist/cli/utilities/version/semver-tuple.d.ts +1 -0
- package/dist/cli/utilities/version/version-info.d.ts +7 -0
- package/dist/cli.cjs +125 -83
- package/dist/cli.mjs +3231 -3016
- package/dist/define/index.cjs +12 -12
- package/dist/define/index.cjs.map +1 -1
- package/dist/define/index.d.ts +86 -22
- package/dist/define/index.mjs +900 -893
- package/dist/define/index.mjs.map +1 -1
- package/dist/front-component/index.cjs +13 -13
- package/dist/front-component/index.cjs.map +1 -1
- package/dist/front-component/index.d.ts +12 -1
- package/dist/front-component/index.mjs +866 -896
- package/dist/front-component/index.mjs.map +1 -1
- package/dist/{get-function-input-schema-BZ7_XyUh-YHOkHl_i.mjs → get-function-input-schema-BZ7_XyUh-BLUL3vy8.mjs} +1 -1
- package/dist/{get-function-input-schema-BZ7_XyUh-DI4AlRRA.js → get-function-input-schema-BZ7_XyUh-BdGyao4P.js} +1 -1
- package/dist/logic-function/index.cjs +1 -1
- package/dist/logic-function/index.cjs.map +1 -1
- package/dist/logic-function/index.d.ts +92 -6
- package/dist/logic-function/index.mjs +52 -1
- package/dist/logic-function/index.mjs.map +1 -1
- package/dist/operations.cjs +1 -1
- package/dist/operations.mjs +2 -2
- package/dist/ui/index.cjs +15 -2233
- package/dist/ui/index.mjs +246 -3350
- package/dist/{uninstall-DXr3k3Da.mjs → uninstall-CWhPoI1i.mjs} +3594 -3349
- package/dist/uninstall-x1qK0SyR.js +253 -0
- package/package.json +2 -2
- package/dist/uninstall-D3my_KZK.js +0 -250
package/dist/define/index.d.ts
CHANGED
|
@@ -14,11 +14,16 @@ type AgentManifest = SyncableEntityOptions$1 & {
|
|
|
14
14
|
modelId?: string;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
type
|
|
17
|
+
type SecretApplicationVariable = SyncableEntityOptions$1 & {
|
|
18
|
+
description?: string;
|
|
19
|
+
isSecret: true;
|
|
20
|
+
};
|
|
21
|
+
type NonSecretApplicationVariable = SyncableEntityOptions$1 & {
|
|
18
22
|
value?: string;
|
|
19
23
|
description?: string;
|
|
20
|
-
isSecret?:
|
|
24
|
+
isSecret?: false;
|
|
21
25
|
};
|
|
26
|
+
type ApplicationVariable = SecretApplicationVariable | NonSecretApplicationVariable;
|
|
22
27
|
type ApplicationVariables = Record<string, ApplicationVariable>;
|
|
23
28
|
|
|
24
29
|
type ServerVariableSchema = {
|
|
@@ -59,6 +64,27 @@ type ApplicationManifest = SyncableEntityOptions$1 & {
|
|
|
59
64
|
yarnLockChecksum: string | null;
|
|
60
65
|
};
|
|
61
66
|
|
|
67
|
+
type OAuthProviderTokenRequestContentType = 'json' | 'form-urlencoded';
|
|
68
|
+
|
|
69
|
+
type OAuthConnectionProviderConfig = {
|
|
70
|
+
authorizationEndpoint: string;
|
|
71
|
+
tokenEndpoint: string;
|
|
72
|
+
revokeEndpoint?: string;
|
|
73
|
+
scopes: string[];
|
|
74
|
+
clientIdVariable: string;
|
|
75
|
+
clientSecretVariable: string;
|
|
76
|
+
authorizationParams?: Record<string, string>;
|
|
77
|
+
tokenRequestContentType?: OAuthProviderTokenRequestContentType;
|
|
78
|
+
usePkce?: boolean;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
type ConnectionProviderManifest = SyncableEntityOptions$1 & {
|
|
82
|
+
name: string;
|
|
83
|
+
displayName: string;
|
|
84
|
+
type: 'oauth';
|
|
85
|
+
oauth: OAuthConnectionProviderConfig;
|
|
86
|
+
};
|
|
87
|
+
|
|
62
88
|
declare const ALLOWED_ADDRESS_SUBFIELDS: readonly ["addressStreet1", "addressStreet2", "addressCity", "addressState", "addressPostcode", "addressCountry", "addressLat", "addressLng"];
|
|
63
89
|
type AllowedAddressSubField = (typeof ALLOWED_ADDRESS_SUBFIELDS)[number];
|
|
64
90
|
|
|
@@ -130,7 +156,9 @@ declare enum ConnectedAccountProvider {
|
|
|
130
156
|
MICROSOFT = "microsoft",
|
|
131
157
|
IMAP_SMTP_CALDAV = "imap_smtp_caldav",
|
|
132
158
|
OIDC = "oidc",
|
|
133
|
-
SAML = "saml"
|
|
159
|
+
SAML = "saml",
|
|
160
|
+
EMAIL_GROUP = "email_group",
|
|
161
|
+
APP = "app"
|
|
134
162
|
}
|
|
135
163
|
|
|
136
164
|
declare enum FieldActorSource {
|
|
@@ -406,6 +434,7 @@ type LogicFunctionEvent<TBody = object> = {
|
|
|
406
434
|
path: string;
|
|
407
435
|
};
|
|
408
436
|
};
|
|
437
|
+
userWorkspaceId: string | null;
|
|
409
438
|
};
|
|
410
439
|
|
|
411
440
|
declare enum NavigationMenuItemType {
|
|
@@ -708,7 +737,6 @@ type CommandMenuItemManifest = SyncableEntityOptions$1 & {
|
|
|
708
737
|
frontComponentUniversalIdentifier: string;
|
|
709
738
|
conditionalAvailabilityExpression?: string;
|
|
710
739
|
};
|
|
711
|
-
type FrontComponentCommandManifest = Omit<CommandMenuItemManifest, 'frontComponentUniversalIdentifier'>;
|
|
712
740
|
type FrontComponentManifest = {
|
|
713
741
|
universalIdentifier: string;
|
|
714
742
|
name?: string;
|
|
@@ -719,7 +747,6 @@ type FrontComponentManifest = {
|
|
|
719
747
|
componentName: string;
|
|
720
748
|
isHeadless?: boolean;
|
|
721
749
|
usesSdkClient?: boolean;
|
|
722
|
-
command?: FrontComponentCommandManifest;
|
|
723
750
|
};
|
|
724
751
|
|
|
725
752
|
type InputJsonSchema = {
|
|
@@ -732,6 +759,34 @@ type InputJsonSchema = {
|
|
|
732
759
|
additionalProperties?: boolean | InputJsonSchema;
|
|
733
760
|
minimum?: number;
|
|
734
761
|
maximum?: number;
|
|
762
|
+
multiline?: boolean;
|
|
763
|
+
};
|
|
764
|
+
|
|
765
|
+
type ToolTriggerSettings = {
|
|
766
|
+
inputSchema?: InputJsonSchema;
|
|
767
|
+
};
|
|
768
|
+
|
|
769
|
+
type LeafType = 'string' | 'number' | 'boolean' | 'array' | 'unknown';
|
|
770
|
+
type NodeType = 'object' | 'unknown';
|
|
771
|
+
|
|
772
|
+
type InputSchemaPropertyType = LeafType | NodeType | FieldMetadataType;
|
|
773
|
+
type InputSchemaProperty = {
|
|
774
|
+
type: InputSchemaPropertyType;
|
|
775
|
+
enum?: string[];
|
|
776
|
+
items?: InputSchemaProperty;
|
|
777
|
+
properties?: Properties$1;
|
|
778
|
+
multiline?: boolean;
|
|
779
|
+
};
|
|
780
|
+
type Properties$1 = {
|
|
781
|
+
[name: string]: InputSchemaProperty;
|
|
782
|
+
};
|
|
783
|
+
type InputSchema = InputSchemaProperty[];
|
|
784
|
+
|
|
785
|
+
type WorkflowActionTriggerSettings = {
|
|
786
|
+
inputSchema?: InputSchema;
|
|
787
|
+
outputSchema?: InputSchema;
|
|
788
|
+
icon?: string;
|
|
789
|
+
label?: string;
|
|
735
790
|
};
|
|
736
791
|
|
|
737
792
|
type LogicFunctionManifest = SyncableEntityOptions$1 & {
|
|
@@ -741,12 +796,12 @@ type LogicFunctionManifest = SyncableEntityOptions$1 & {
|
|
|
741
796
|
cronTriggerSettings?: CronTriggerSettings;
|
|
742
797
|
databaseEventTriggerSettings?: DatabaseEventTriggerSettings;
|
|
743
798
|
httpRouteTriggerSettings?: HttpRouteTriggerSettings;
|
|
799
|
+
toolTriggerSettings?: ToolTriggerSettings;
|
|
800
|
+
workflowActionTriggerSettings?: WorkflowActionTriggerSettings;
|
|
744
801
|
sourceHandlerPath: string;
|
|
745
802
|
builtHandlerPath: string;
|
|
746
803
|
builtHandlerChecksum: string;
|
|
747
804
|
handlerName: string;
|
|
748
|
-
toolInputSchema: InputJsonSchema;
|
|
749
|
-
isTool?: boolean;
|
|
750
805
|
};
|
|
751
806
|
type CronTriggerSettings = {
|
|
752
807
|
pattern: string;
|
|
@@ -943,21 +998,25 @@ type ViewManifest = SyncableEntityOptions$1 & {
|
|
|
943
998
|
sorts?: ViewSortManifest[];
|
|
944
999
|
};
|
|
945
1000
|
|
|
946
|
-
type ApplicationConfig = Omit<ApplicationManifest, 'packageJsonChecksum' | 'yarnLockChecksum' | 'postInstallLogicFunction' | 'preInstallLogicFunction'
|
|
1001
|
+
type ApplicationConfig = Omit<ApplicationManifest, 'packageJsonChecksum' | 'yarnLockChecksum' | 'postInstallLogicFunction' | 'preInstallLogicFunction' | 'defaultRoleUniversalIdentifier'> & {
|
|
1002
|
+
/**
|
|
1003
|
+
* @deprecated Use `defineApplicationRole()` in your role file instead.
|
|
1004
|
+
*/
|
|
1005
|
+
defaultRoleUniversalIdentifier?: string;
|
|
1006
|
+
};
|
|
947
1007
|
|
|
948
|
-
type
|
|
949
|
-
type FrontComponentCommandConfig = Omit<FrontComponentCommandManifest, 'conditionalAvailabilityExpression'> & {
|
|
1008
|
+
type CommandMenuItemConfig = Omit<CommandMenuItemManifest, 'conditionalAvailabilityExpression'> & {
|
|
950
1009
|
conditionalAvailabilityExpression?: boolean | string;
|
|
951
1010
|
};
|
|
952
|
-
|
|
1011
|
+
|
|
1012
|
+
type FrontComponentType = React.ComponentType<any>;
|
|
1013
|
+
type FrontComponentConfig = Omit<FrontComponentManifest, 'sourceComponentPath' | 'builtComponentPath' | 'builtComponentChecksum' | 'componentName' | 'usesSdkClient'> & {
|
|
953
1014
|
component: FrontComponentType;
|
|
954
|
-
command?: FrontComponentCommandConfig;
|
|
955
1015
|
};
|
|
956
1016
|
|
|
957
1017
|
type LogicFunctionHandler = (...args: any[]) => any | Promise<any>;
|
|
958
|
-
type LogicFunctionConfig = Omit<LogicFunctionManifest, 'sourceHandlerPath' | 'builtHandlerPath' | 'builtHandlerChecksum' | 'handlerName'
|
|
1018
|
+
type LogicFunctionConfig = Omit<LogicFunctionManifest, 'sourceHandlerPath' | 'builtHandlerPath' | 'builtHandlerChecksum' | 'handlerName'> & {
|
|
959
1019
|
handler: LogicFunctionHandler;
|
|
960
|
-
toolInputSchema?: InputJsonSchema;
|
|
961
1020
|
};
|
|
962
1021
|
|
|
963
1022
|
type ObjectConfig = Omit<ObjectManifest, 'labelIdentifierFieldMetadataUniversalIdentifier'> & {
|
|
@@ -978,7 +1037,7 @@ type InstallPayload = {
|
|
|
978
1037
|
};
|
|
979
1038
|
type InstallHandler = (payload: InstallPayload) => any | Promise<any>;
|
|
980
1039
|
|
|
981
|
-
type PreInstallLogicFunctionConfig = Omit<LogicFunctionConfig, 'cronTriggerSettings' | 'databaseEventTriggerSettings' | 'httpRouteTriggerSettings' | '
|
|
1040
|
+
type PreInstallLogicFunctionConfig = Omit<LogicFunctionConfig, 'cronTriggerSettings' | 'databaseEventTriggerSettings' | 'httpRouteTriggerSettings' | 'toolTriggerSettings' | 'workflowActionTriggerSettings' | 'handler'> & {
|
|
982
1041
|
handler: InstallHandler;
|
|
983
1042
|
shouldRunOnVersionUpgrade?: boolean;
|
|
984
1043
|
};
|
|
@@ -997,8 +1056,9 @@ type ValidationResult<T> = {
|
|
|
997
1056
|
success: boolean;
|
|
998
1057
|
config: T;
|
|
999
1058
|
errors: string[];
|
|
1059
|
+
warnings?: string[];
|
|
1000
1060
|
};
|
|
1001
|
-
type DefinableEntity = ApplicationConfig | ObjectConfig | FieldManifest | FrontComponentConfig | LogicFunctionConfig | PostInstallLogicFunctionConfig | PreInstallLogicFunctionConfig | AgentManifest | RoleConfig | SkillManifest | ViewConfig | NavigationMenuItemManifest | PageLayoutConfig | PageLayoutTabConfig;
|
|
1061
|
+
type DefinableEntity = ApplicationConfig | ObjectConfig | FieldManifest | FrontComponentConfig | LogicFunctionConfig | PostInstallLogicFunctionConfig | PreInstallLogicFunctionConfig | AgentManifest | ConnectionProviderManifest | RoleConfig | SkillManifest | ViewConfig | NavigationMenuItemManifest | PageLayoutConfig | PageLayoutTabConfig | CommandMenuItemConfig;
|
|
1002
1062
|
type DefineEntity<T extends DefinableEntity = DefinableEntity> = (config: T) => ValidationResult<T>;
|
|
1003
1063
|
|
|
1004
1064
|
declare const defineAgent: DefineEntity<AgentManifest>;
|
|
@@ -1009,15 +1069,18 @@ type SyncableEntityOptions = {
|
|
|
1009
1069
|
universalIdentifier: string;
|
|
1010
1070
|
};
|
|
1011
1071
|
|
|
1012
|
-
declare const createValidationResult: <T>({ config, errors, }: {
|
|
1072
|
+
declare const createValidationResult: <T>({ config, errors, warnings, }: {
|
|
1013
1073
|
config: T;
|
|
1014
1074
|
errors: string[];
|
|
1075
|
+
warnings?: string[];
|
|
1015
1076
|
}) => ValidationResult<T>;
|
|
1016
1077
|
|
|
1017
1078
|
declare const defineField: DefineEntity<FieldManifest>;
|
|
1018
1079
|
|
|
1019
1080
|
declare const validateFields: (fields: ObjectFieldManifest[] | undefined) => string[];
|
|
1020
1081
|
|
|
1082
|
+
declare const defineCommandMenuItem: DefineEntity<CommandMenuItemConfig>;
|
|
1083
|
+
|
|
1021
1084
|
declare const defineFrontComponent: DefineEntity<FrontComponentConfig>;
|
|
1022
1085
|
|
|
1023
1086
|
declare const defineLogicFunction: DefineEntity<LogicFunctionConfig>;
|
|
@@ -1147,6 +1210,8 @@ type WorkspaceEventBatch<WorkspaceEvent> = {
|
|
|
1147
1210
|
};
|
|
1148
1211
|
type DatabaseEventPayload<T = ObjectRecordEvent> = Omit<WorkspaceEventBatch<T>, 'events'> & T;
|
|
1149
1212
|
|
|
1213
|
+
declare const defineConnectionProvider: DefineEntity<ConnectionProviderManifest>;
|
|
1214
|
+
|
|
1150
1215
|
declare const defineNavigationMenuItem: DefineEntity<NavigationMenuItemManifest>;
|
|
1151
1216
|
|
|
1152
1217
|
declare const defineObject: DefineEntity<ObjectConfig>;
|
|
@@ -2862,9 +2927,6 @@ declare const STANDARD_OBJECTS: {
|
|
|
2862
2927
|
readonly messageThread: {
|
|
2863
2928
|
readonly universalIdentifier: "20202020-30f2-4ccd-9f5c-e41bb9d26214";
|
|
2864
2929
|
};
|
|
2865
|
-
readonly direction: {
|
|
2866
|
-
readonly universalIdentifier: "20202020-0203-4118-8e2a-05b9bdae6dab";
|
|
2867
|
-
};
|
|
2868
2930
|
readonly subject: {
|
|
2869
2931
|
readonly universalIdentifier: "20202020-52d1-4036-b9ae-84bd722bb37a";
|
|
2870
2932
|
};
|
|
@@ -4553,6 +4615,8 @@ declare const definePageLayout: DefineEntity<PageLayoutConfig>;
|
|
|
4553
4615
|
|
|
4554
4616
|
declare const definePageLayoutTab: DefineEntity<PageLayoutTabConfig>;
|
|
4555
4617
|
|
|
4618
|
+
declare const defineApplicationRole: DefineEntity<RoleConfig>;
|
|
4619
|
+
|
|
4556
4620
|
declare const defineRole: DefineEntity<RoleConfig>;
|
|
4557
4621
|
|
|
4558
4622
|
declare const defineSkill: DefineEntity<SkillManifest>;
|
|
@@ -4561,5 +4625,5 @@ declare const defineView: DefineEntity<ViewConfig>;
|
|
|
4561
4625
|
|
|
4562
4626
|
declare const getPublicAssetUrl: (path: string) => string;
|
|
4563
4627
|
|
|
4564
|
-
export { AggregateOperations, DateDisplayFormat, FieldMetadataSettingsOnClickAction, FieldMetadataType as FieldType, HTTPMethod, NavigationMenuItemType, NumberDataType, ObjectRecordBaseEvent, ObjectRecordCreateEvent, ObjectRecordDeleteEvent, ObjectRecordDestroyEvent, ObjectRecordGroupByDateGranularity, ObjectRecordRestoreEvent, ObjectRecordUpdateEvent, ObjectRecordUpsertEvent, RelationOnDeleteAction as OnDeleteAction, PageLayoutTabLayoutMode, PermissionFlagType as PermissionFlag, RelationType, STANDARD_OBJECTS as STANDARD_OBJECT, STANDARD_OBJECTS as STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS, ViewCalendarLayout, ViewFilterGroupLogicalOperator, ViewFilterOperand, ViewKey, ViewOpenRecordIn, ViewSortDirection, ViewType, ViewVisibility, createValidationResult, defineAgent, defineApplication, defineField, defineFrontComponent, defineLogicFunction, defineNavigationMenuItem, defineObject, definePageLayout, definePageLayoutTab, definePostInstallLogicFunction, definePreInstallLogicFunction, defineRole, defineSkill, defineView, generateDefaultFieldUniversalIdentifier, getPublicAssetUrl, validateFields };
|
|
4565
|
-
export type { ActorMetadata as ActorField, AddressMetadata as AddressField, ApplicationConfig, CronPayload, CurrencyMetadata as CurrencyField, DatabaseEventPayload, DefinableEntity, DefineEntity, EmailsMetadata as EmailsField,
|
|
4628
|
+
export { AggregateOperations, DateDisplayFormat, FieldMetadataSettingsOnClickAction, FieldMetadataType as FieldType, HTTPMethod, NavigationMenuItemType, NumberDataType, ObjectRecordBaseEvent, ObjectRecordCreateEvent, ObjectRecordDeleteEvent, ObjectRecordDestroyEvent, ObjectRecordGroupByDateGranularity, ObjectRecordRestoreEvent, ObjectRecordUpdateEvent, ObjectRecordUpsertEvent, RelationOnDeleteAction as OnDeleteAction, PageLayoutTabLayoutMode, PermissionFlagType as PermissionFlag, RelationType, STANDARD_OBJECTS as STANDARD_OBJECT, STANDARD_OBJECTS as STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS, ViewCalendarLayout, ViewFilterGroupLogicalOperator, ViewFilterOperand, ViewKey, ViewOpenRecordIn, ViewSortDirection, ViewType, ViewVisibility, createValidationResult, defineAgent, defineApplication, defineApplicationRole, defineCommandMenuItem, defineConnectionProvider, defineField, defineFrontComponent, defineLogicFunction, defineNavigationMenuItem, defineObject, definePageLayout, definePageLayoutTab, definePostInstallLogicFunction, definePreInstallLogicFunction, defineRole, defineSkill, defineView, generateDefaultFieldUniversalIdentifier, getPublicAssetUrl, validateFields };
|
|
4629
|
+
export type { ActorMetadata as ActorField, AddressMetadata as AddressField, ApplicationConfig, CommandMenuItemConfig, CommandMenuItemManifest, CronPayload, CurrencyMetadata as CurrencyField, DatabaseEventPayload, DefinableEntity, DefineEntity, EmailsMetadata as EmailsField, FrontComponentConfig, FrontComponentType, FullNameMetadata as FullNameField, GridPosition, InputJsonSchema, InstallHandler, InstallPayload, LinksMetadata as LinksField, LogicFunctionConfig, LogicFunctionHandler, ObjectRecordEvent, PageLayoutConfig, PageLayoutManifest, PageLayoutTabConfig, PageLayoutTabManifest, PageLayoutWidgetConditionalDisplay, PageLayoutWidgetManifest, PageLayoutWidgetUniversalConfiguration, PhonesMetadata as PhonesField, RichTextMetadata as RichTextField, LogicFunctionEvent as RoutePayload, SyncableEntityOptions, ValidationResult, ViewConfig, ViewFieldGroupManifest, ViewFieldManifest, ViewFilterGroupManifest, ViewFilterManifest, ViewGroupManifest, ViewManifestFilterValue, ViewSortManifest };
|