@activepieces/shared
Advanced tools
Comparing version 0.10.135 to 0.10.136
{ | ||
"name": "@activepieces/shared", | ||
"version": "0.10.135", | ||
"version": "0.10.136", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -76,4 +76,7 @@ export * from './lib/flows/actions/action'; | ||
export * from './lib/flow-run/log-serializer'; | ||
export * from './lib/project-release/project-release'; | ||
export * from './lib/project-release/project-release.request'; | ||
export * from './lib/project-release/project-state'; | ||
export * from './lib/flows/operations/paste-operations'; | ||
export * from './lib/license-keys'; | ||
export * from './lib/flow-run/execution/flow-execution'; |
@@ -79,2 +79,5 @@ "use strict"; | ||
tslib_1.__exportStar(require("./lib/flow-run/log-serializer"), exports); | ||
tslib_1.__exportStar(require("./lib/project-release/project-release"), exports); | ||
tslib_1.__exportStar(require("./lib/project-release/project-release.request"), exports); | ||
tslib_1.__exportStar(require("./lib/project-release/project-state"), exports); | ||
tslib_1.__exportStar(require("./lib/flows/operations/paste-operations"), exports); | ||
@@ -81,0 +84,0 @@ // Look at https://github.com/sinclairzx81/typebox/issues/350 |
@@ -16,5 +16,5 @@ import { Static } from '@sinclair/typebox'; | ||
id: import("@sinclair/typebox").TString; | ||
platformId: import("@sinclair/typebox").TString; | ||
created: import("@sinclair/typebox").TString; | ||
updated: import("@sinclair/typebox").TString; | ||
platformId: import("@sinclair/typebox").TString; | ||
baseUrl: import("@sinclair/typebox").TString; | ||
@@ -21,0 +21,0 @@ provider: import("@sinclair/typebox").TString; |
@@ -14,3 +14,3 @@ import { FileId } from '../file'; | ||
} | ||
export type ApErrorParams = AuthenticationParams | AuthorizationErrorParams | ConfigNotFoundErrorParams | EmailIsNotVerifiedErrorParams | EngineOperationFailureParams | EntityNotFoundErrorParams | ExecutionTimeoutErrorParams | ExistingUserErrorParams | FileNotFoundErrorParams | FlowFormNotFoundError | FlowNotFoundErrorParams | FlowIsLockedErrorParams | FlowOperationErrorParams | FlowRunNotFoundErrorParams | InvalidApiKeyParams | InvalidAppConnectionParams | InvalidBearerTokenParams | InvalidClaimParams | InvalidCloudClaimParams | InvalidCredentialsErrorParams | InvalidJwtTokenErrorParams | InvalidOtpParams | InvalidSAMLResponseParams | InvitationOnlySignUpParams | JobRemovalFailureErrorParams | OpenAiFailedErrorParams | PauseMetadataMissingErrorParams | PermissionDeniedErrorParams | PieceNotFoundErrorParams | PieceTriggerNotFoundErrorParams | QuotaExceededParams | FeatureDisabledErrorParams | SignUpDisabledParams | StepNotFoundErrorParams | SystemInvalidErrorParams | SystemPropNotDefinedErrorParams | TestTriggerFailedErrorParams | TriggerDisableErrorParams | TriggerEnableErrorParams | TriggerFailedErrorParams | ValidationErrorParams | InvitationOnlySignUpParams | UserIsInActiveErrorParams | DomainIsNotAllowedErrorParams | EmailAuthIsDisabledParams | ExistingAlertChannelErrorParams | EmailAlreadyHasActivationKey | ProviderProxyConfigNotFoundParams | AITokenLimitExceededParams | SessionExpiredParams | InvalidLicenseKeyParams | NoChatResponseParams | InvalidSmtpCredentialsErrorParams | InvalidGitCredentialsParams | ProjectExternalIdAlreadyExistsParams; | ||
export type ApErrorParams = AuthenticationParams | AuthorizationErrorParams | ConfigNotFoundErrorParams | EmailIsNotVerifiedErrorParams | EngineOperationFailureParams | EntityNotFoundErrorParams | ExecutionTimeoutErrorParams | ExistingUserErrorParams | FileNotFoundErrorParams | FlowFormNotFoundError | FlowNotFoundErrorParams | FlowIsLockedErrorParams | FlowOperationErrorParams | FlowRunNotFoundErrorParams | InvalidApiKeyParams | InvalidAppConnectionParams | InvalidBearerTokenParams | InvalidClaimParams | InvalidCloudClaimParams | InvalidCredentialsErrorParams | InvalidJwtTokenErrorParams | InvalidOtpParams | InvalidSAMLResponseParams | InvitationOnlySignUpParams | JobRemovalFailureErrorParams | OpenAiFailedErrorParams | PauseMetadataMissingErrorParams | PermissionDeniedErrorParams | PieceNotFoundErrorParams | PieceTriggerNotFoundErrorParams | QuotaExceededParams | FeatureDisabledErrorParams | SignUpDisabledParams | StepNotFoundErrorParams | SystemInvalidErrorParams | SystemPropNotDefinedErrorParams | TestTriggerFailedErrorParams | TriggerDisableErrorParams | TriggerEnableErrorParams | TriggerFailedErrorParams | ValidationErrorParams | InvitationOnlySignUpParams | UserIsInActiveErrorParams | DomainIsNotAllowedErrorParams | EmailAuthIsDisabledParams | ExistingAlertChannelErrorParams | EmailAlreadyHasActivationKey | ProviderProxyConfigNotFoundParams | AITokenLimitExceededParams | SessionExpiredParams | InvalidLicenseKeyParams | NoChatResponseParams | InvalidSmtpCredentialsErrorParams | InvalidGitCredentialsParams | InvalidReleaseTypeParams | CopilotFailedErrorParams | ProjectExternalIdAlreadyExistsParams; | ||
export type BaseErrorParams<T, V> = { | ||
@@ -186,2 +186,8 @@ code: T; | ||
}>; | ||
export type InvalidReleaseTypeParams = BaseErrorParams<ErrorCode.INVALID_RELEASE_TYPE, { | ||
message: string; | ||
}>; | ||
export type CopilotFailedErrorParams = BaseErrorParams<ErrorCode.COPILOT_FAILED, { | ||
message: string; | ||
}>; | ||
export type ProjectExternalIdAlreadyExistsParams = BaseErrorParams<ErrorCode.PROJECT_EXTERNAL_ID_ALREADY_EXISTS, { | ||
@@ -245,3 +251,5 @@ externalId: string; | ||
INVALID_SMTP_CREDENTIALS = "INVALID_SMTP_CREDENTIALS", | ||
INVALID_GIT_CREDENTIALS = "INVALID_GIT_CREDENTIALS" | ||
INVALID_GIT_CREDENTIALS = "INVALID_GIT_CREDENTIALS", | ||
INVALID_RELEASE_TYPE = "INVALID_RELEASE_TYPE", | ||
COPILOT_FAILED = "COPILOT_FAILED" | ||
} |
@@ -68,3 +68,5 @@ "use strict"; | ||
ErrorCode["INVALID_GIT_CREDENTIALS"] = "INVALID_GIT_CREDENTIALS"; | ||
ErrorCode["INVALID_RELEASE_TYPE"] = "INVALID_RELEASE_TYPE"; | ||
ErrorCode["COPILOT_FAILED"] = "COPILOT_FAILED"; | ||
})(ErrorCode || (exports.ErrorCode = ErrorCode = {})); | ||
//# sourceMappingURL=activepieces-error.js.map |
@@ -26,2 +26,3 @@ import { Static } from '@sinclair/typebox'; | ||
title: import("@sinclair/typebox").TString; | ||
textMessage: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>; | ||
}>; | ||
@@ -46,2 +47,3 @@ export type AskCopilotCodeResponse = Static<typeof AskCopilotCodeResponse>; | ||
title: import("@sinclair/typebox").TString; | ||
textMessage: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>; | ||
}>, import("@sinclair/typebox").TObject<{ | ||
@@ -48,0 +50,0 @@ headers: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>; |
@@ -29,2 +29,3 @@ "use strict"; | ||
title: typebox_1.Type.String(), | ||
textMessage: typebox_1.Type.Optional(typebox_1.Type.String()), | ||
}); | ||
@@ -31,0 +32,0 @@ exports.AskCopilotHttpRequestResponse = typebox_1.Type.Object({ |
@@ -10,3 +10,4 @@ import { Static } from '@sinclair/typebox'; | ||
SAMPLE_DATA = "SAMPLE_DATA", | ||
TRIGGER_EVENT_FILE = "TRIGGER_EVENT_FILE" | ||
TRIGGER_EVENT_FILE = "TRIGGER_EVENT_FILE", | ||
PROJECT_RELEASE = "PROJECT_RELEASE" | ||
} | ||
@@ -13,0 +14,0 @@ export declare enum FileCompression { |
@@ -14,2 +14,3 @@ "use strict"; | ||
FileType["TRIGGER_EVENT_FILE"] = "TRIGGER_EVENT_FILE"; | ||
FileType["PROJECT_RELEASE"] = "PROJECT_RELEASE"; | ||
})(FileType || (exports.FileType = FileType = {})); | ||
@@ -16,0 +17,0 @@ var FileCompression; |
@@ -20,4 +20,2 @@ import { BaseModel } from '../common/base-model'; | ||
CLOUD_AUTH_ENABLED = "CLOUD_AUTH_ENABLED", | ||
CODE_COPILOT_ENABLED = "CODE_COPILOT_ENABLED", | ||
HTTP_REQUEST_COPILOT_ENABLED = "HTTP_COPILOT_ENABLED", | ||
PROJECT_LIMITS_ENABLED = "PROJECT_LIMITS_ENABLED", | ||
@@ -24,0 +22,0 @@ CURRENT_VERSION = "CURRENT_VERSION", |
@@ -20,4 +20,2 @@ "use strict"; | ||
ApFlagId["CLOUD_AUTH_ENABLED"] = "CLOUD_AUTH_ENABLED"; | ||
ApFlagId["CODE_COPILOT_ENABLED"] = "CODE_COPILOT_ENABLED"; | ||
ApFlagId["HTTP_REQUEST_COPILOT_ENABLED"] = "HTTP_COPILOT_ENABLED"; | ||
ApFlagId["PROJECT_LIMITS_ENABLED"] = "PROJECT_LIMITS_ENABLED"; | ||
@@ -24,0 +22,0 @@ ApFlagId["CURRENT_VERSION"] = "CURRENT_VERSION"; |
@@ -20,2 +20,3 @@ import { Static } from '@sinclair/typebox'; | ||
projectId: import("@sinclair/typebox").TString; | ||
externalId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>; | ||
folderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>; | ||
@@ -36,2 +37,3 @@ status: import("@sinclair/typebox").TEnum<typeof FlowStatus>; | ||
export declare const PopulatedFlow: import("@sinclair/typebox").TObject<{ | ||
externalId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>; | ||
id: import("@sinclair/typebox").TString; | ||
@@ -38,0 +40,0 @@ created: import("@sinclair/typebox").TString; |
@@ -22,3 +22,3 @@ "use strict"; | ||
}); | ||
exports.Flow = typebox_1.Type.Object(Object.assign(Object.assign({}, base_model_1.BaseModelSchema), { projectId: typebox_1.Type.String(), folderId: (0, base_model_1.Nullable)(typebox_1.Type.String()), status: typebox_1.Type.Enum(FlowStatus), schedule: (0, base_model_1.Nullable)(exports.FlowScheduleOptions), publishedVersionId: (0, base_model_1.Nullable)(typebox_1.Type.String()) })); | ||
exports.Flow = typebox_1.Type.Object(Object.assign(Object.assign({}, base_model_1.BaseModelSchema), { projectId: typebox_1.Type.String(), externalId: (0, base_model_1.Nullable)(typebox_1.Type.String()), folderId: (0, base_model_1.Nullable)(typebox_1.Type.String()), status: typebox_1.Type.Enum(FlowStatus), schedule: (0, base_model_1.Nullable)(exports.FlowScheduleOptions), publishedVersionId: (0, base_model_1.Nullable)(typebox_1.Type.String()) })); | ||
exports.PopulatedFlow = typebox_1.Type.Composite([ | ||
@@ -25,0 +25,0 @@ exports.Flow, |
@@ -37,5 +37,5 @@ import { Static } from '@sinclair/typebox'; | ||
id: import("@sinclair/typebox").TString; | ||
platformId: import("@sinclair/typebox").TString; | ||
created: import("@sinclair/typebox").TString; | ||
updated: import("@sinclair/typebox").TString; | ||
platformId: import("@sinclair/typebox").TString; | ||
projectId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string | null>>; | ||
@@ -42,0 +42,0 @@ status: import("@sinclair/typebox").TEnum<typeof InvitationStatus>; |
@@ -24,3 +24,3 @@ import { Static } from '@sinclair/typebox'; | ||
ssoEnabled: import("@sinclair/typebox").TBoolean; | ||
gitSyncEnabled: import("@sinclair/typebox").TBoolean; | ||
environmentEnabled: import("@sinclair/typebox").TBoolean; | ||
showPoweredBy: import("@sinclair/typebox").TBoolean; | ||
@@ -27,0 +27,0 @@ embeddingEnabled: import("@sinclair/typebox").TBoolean; |
@@ -25,3 +25,3 @@ "use strict"; | ||
ssoEnabled: typebox_1.Type.Boolean(), | ||
gitSyncEnabled: typebox_1.Type.Boolean(), | ||
environmentEnabled: typebox_1.Type.Boolean(), | ||
showPoweredBy: typebox_1.Type.Boolean(), | ||
@@ -28,0 +28,0 @@ embeddingEnabled: typebox_1.Type.Boolean(), |
@@ -18,2 +18,38 @@ import { Static } from '@sinclair/typebox'; | ||
export type SMTPInformation = Static<typeof SMTPInformation>; | ||
export declare enum CopilotProviderType { | ||
OPENAI = "openai", | ||
AZURE_OPENAI = "azureOpenai" | ||
} | ||
export declare const OpenAiProvider: import("@sinclair/typebox").TObject<{ | ||
baseUrl: import("@sinclair/typebox").TString; | ||
apiKey: import("@sinclair/typebox").TString; | ||
}>; | ||
export type OpenAiProvider = Static<typeof OpenAiProvider>; | ||
export declare const AzureOpenAiProvider: import("@sinclair/typebox").TObject<{ | ||
resourceName: import("@sinclair/typebox").TString; | ||
deploymentName: import("@sinclair/typebox").TString; | ||
apiKey: import("@sinclair/typebox").TString; | ||
}>; | ||
export type AzureOpenAiProvider = Static<typeof AzureOpenAiProvider>; | ||
export declare const CopilotSettings: import("@sinclair/typebox").TObject<{ | ||
providers: import("@sinclair/typebox").TObject<{ | ||
openai: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{ | ||
baseUrl: import("@sinclair/typebox").TString; | ||
apiKey: import("@sinclair/typebox").TString; | ||
}>>; | ||
azureOpenai: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{ | ||
resourceName: import("@sinclair/typebox").TString; | ||
deploymentName: import("@sinclair/typebox").TString; | ||
apiKey: import("@sinclair/typebox").TString; | ||
}>>; | ||
}>; | ||
}>; | ||
export type CopilotSettings = Static<typeof CopilotSettings>; | ||
export declare const CopilotSettingsWithoutSensitiveData: import("@sinclair/typebox").TObject<{ | ||
providers: import("@sinclair/typebox").TObject<{ | ||
openai: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{}>>; | ||
azureOpenai: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{}>>; | ||
}>; | ||
}>; | ||
export type CopilotSettingsWithoutSensitiveData = Static<typeof CopilotSettingsWithoutSensitiveData>; | ||
export declare const Platform: import("@sinclair/typebox").TObject<{ | ||
@@ -43,3 +79,3 @@ ownerId: import("@sinclair/typebox").TString; | ||
cloudAuthEnabled: import("@sinclair/typebox").TBoolean; | ||
gitSyncEnabled: import("@sinclair/typebox").TBoolean; | ||
environmentEnabled: import("@sinclair/typebox").TBoolean; | ||
analyticsEnabled: import("@sinclair/typebox").TBoolean; | ||
@@ -81,2 +117,15 @@ showPoweredBy: import("@sinclair/typebox").TBoolean; | ||
pinnedPieces: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>; | ||
copilotSettings: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{ | ||
providers: import("@sinclair/typebox").TObject<{ | ||
openai: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{ | ||
baseUrl: import("@sinclair/typebox").TString; | ||
apiKey: import("@sinclair/typebox").TString; | ||
}>>; | ||
azureOpenai: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{ | ||
resourceName: import("@sinclair/typebox").TString; | ||
deploymentName: import("@sinclair/typebox").TString; | ||
apiKey: import("@sinclair/typebox").TString; | ||
}>>; | ||
}>; | ||
}>>; | ||
id: import("@sinclair/typebox").TString; | ||
@@ -99,3 +148,12 @@ created: import("@sinclair/typebox").TString; | ||
}>; | ||
copilotSettings: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{ | ||
providers: import("@sinclair/typebox").TObject<{ | ||
openai: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{}>>; | ||
azureOpenai: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{}>>; | ||
}>; | ||
}>>; | ||
id: import("@sinclair/typebox").TString; | ||
name: import("@sinclair/typebox").TString; | ||
created: import("@sinclair/typebox").TString; | ||
updated: import("@sinclair/typebox").TString; | ||
ownerId: import("@sinclair/typebox").TString; | ||
@@ -109,3 +167,3 @@ primaryColor: import("@sinclair/typebox").TString; | ||
cloudAuthEnabled: import("@sinclair/typebox").TBoolean; | ||
gitSyncEnabled: import("@sinclair/typebox").TBoolean; | ||
environmentEnabled: import("@sinclair/typebox").TBoolean; | ||
analyticsEnabled: import("@sinclair/typebox").TBoolean; | ||
@@ -112,0 +170,0 @@ showPoweredBy: import("@sinclair/typebox").TBoolean; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PlatformWithoutSensitiveData = exports.Platform = exports.SMTPInformation = exports.FilteredPieceBehavior = void 0; | ||
exports.PlatformWithoutSensitiveData = exports.Platform = exports.CopilotSettingsWithoutSensitiveData = exports.CopilotSettings = exports.AzureOpenAiProvider = exports.OpenAiProvider = exports.CopilotProviderType = exports.SMTPInformation = exports.FilteredPieceBehavior = void 0; | ||
const typebox_1 = require("@sinclair/typebox"); | ||
@@ -22,2 +22,28 @@ const common_1 = require("../common"); | ||
}); | ||
var CopilotProviderType; | ||
(function (CopilotProviderType) { | ||
CopilotProviderType["OPENAI"] = "openai"; | ||
CopilotProviderType["AZURE_OPENAI"] = "azureOpenai"; | ||
})(CopilotProviderType || (exports.CopilotProviderType = CopilotProviderType = {})); | ||
exports.OpenAiProvider = typebox_1.Type.Object({ | ||
baseUrl: typebox_1.Type.String(), | ||
apiKey: typebox_1.Type.String(), | ||
}); | ||
exports.AzureOpenAiProvider = typebox_1.Type.Object({ | ||
resourceName: typebox_1.Type.String(), | ||
deploymentName: typebox_1.Type.String(), | ||
apiKey: typebox_1.Type.String(), | ||
}); | ||
exports.CopilotSettings = typebox_1.Type.Object({ | ||
providers: typebox_1.Type.Object({ | ||
[CopilotProviderType.OPENAI]: typebox_1.Type.Optional(exports.OpenAiProvider), | ||
[CopilotProviderType.AZURE_OPENAI]: typebox_1.Type.Optional(exports.AzureOpenAiProvider), | ||
}), | ||
}); | ||
exports.CopilotSettingsWithoutSensitiveData = typebox_1.Type.Object({ | ||
providers: typebox_1.Type.Object({ | ||
[CopilotProviderType.OPENAI]: typebox_1.Type.Optional(typebox_1.Type.Object({})), | ||
[CopilotProviderType.AZURE_OPENAI]: typebox_1.Type.Optional(typebox_1.Type.Object({})), | ||
}), | ||
}); | ||
exports.Platform = typebox_1.Type.Object(Object.assign(Object.assign({}, base_model_1.BaseModelSchema), { ownerId: id_generator_1.ApId, name: typebox_1.Type.String(), primaryColor: typebox_1.Type.String(), logoIconUrl: typebox_1.Type.String(), fullLogoUrl: typebox_1.Type.String(), favIconUrl: typebox_1.Type.String(), | ||
@@ -31,8 +57,12 @@ /** | ||
*/ | ||
filteredPieceBehavior: typebox_1.Type.Enum(FilteredPieceBehavior), smtp: typebox_1.Type.Optional(exports.SMTPInformation), cloudAuthEnabled: typebox_1.Type.Boolean(), gitSyncEnabled: typebox_1.Type.Boolean(), analyticsEnabled: typebox_1.Type.Boolean(), showPoweredBy: typebox_1.Type.Boolean(), auditLogEnabled: typebox_1.Type.Boolean(), embeddingEnabled: typebox_1.Type.Boolean(), managePiecesEnabled: typebox_1.Type.Boolean(), manageTemplatesEnabled: typebox_1.Type.Boolean(), customAppearanceEnabled: typebox_1.Type.Boolean(), manageProjectsEnabled: typebox_1.Type.Boolean(), projectRolesEnabled: typebox_1.Type.Boolean(), customDomainsEnabled: typebox_1.Type.Boolean(), globalConnectionsEnabled: typebox_1.Type.Boolean(), customRolesEnabled: typebox_1.Type.Boolean(), apiKeysEnabled: typebox_1.Type.Boolean(), flowIssuesEnabled: typebox_1.Type.Boolean(), alertsEnabled: typebox_1.Type.Boolean(), defaultLocale: typebox_1.Type.Optional(typebox_1.Type.Enum(common_1.LocalesEnum)), ssoEnabled: typebox_1.Type.Boolean(), enforceAllowedAuthDomains: typebox_1.Type.Boolean(), allowedAuthDomains: typebox_1.Type.Array(typebox_1.Type.String()), federatedAuthProviders: federated_authn_1.FederatedAuthnProviderConfig, emailAuthEnabled: typebox_1.Type.Boolean(), licenseKey: typebox_1.Type.Optional(typebox_1.Type.String()), pinnedPieces: typebox_1.Type.Array(typebox_1.Type.String()) })); | ||
filteredPieceBehavior: typebox_1.Type.Enum(FilteredPieceBehavior), smtp: typebox_1.Type.Optional(exports.SMTPInformation), cloudAuthEnabled: typebox_1.Type.Boolean(), environmentEnabled: typebox_1.Type.Boolean(), analyticsEnabled: typebox_1.Type.Boolean(), showPoweredBy: typebox_1.Type.Boolean(), auditLogEnabled: typebox_1.Type.Boolean(), embeddingEnabled: typebox_1.Type.Boolean(), managePiecesEnabled: typebox_1.Type.Boolean(), manageTemplatesEnabled: typebox_1.Type.Boolean(), customAppearanceEnabled: typebox_1.Type.Boolean(), manageProjectsEnabled: typebox_1.Type.Boolean(), projectRolesEnabled: typebox_1.Type.Boolean(), customDomainsEnabled: typebox_1.Type.Boolean(), globalConnectionsEnabled: typebox_1.Type.Boolean(), customRolesEnabled: typebox_1.Type.Boolean(), apiKeysEnabled: typebox_1.Type.Boolean(), flowIssuesEnabled: typebox_1.Type.Boolean(), alertsEnabled: typebox_1.Type.Boolean(), defaultLocale: typebox_1.Type.Optional(typebox_1.Type.Enum(common_1.LocalesEnum)), ssoEnabled: typebox_1.Type.Boolean(), enforceAllowedAuthDomains: typebox_1.Type.Boolean(), allowedAuthDomains: typebox_1.Type.Array(typebox_1.Type.String()), federatedAuthProviders: federated_authn_1.FederatedAuthnProviderConfig, emailAuthEnabled: typebox_1.Type.Boolean(), licenseKey: typebox_1.Type.Optional(typebox_1.Type.String()), pinnedPieces: typebox_1.Type.Array(typebox_1.Type.String()), copilotSettings: typebox_1.Type.Optional(exports.CopilotSettings) })); | ||
exports.PlatformWithoutSensitiveData = typebox_1.Type.Composite([typebox_1.Type.Object({ | ||
federatedAuthProviders: federated_authn_1.FederatedAuthnProviderConfigWithoutSensitiveData, | ||
defaultLocale: (0, base_model_1.Nullable)(typebox_1.Type.String()), | ||
copilotSettings: typebox_1.Type.Optional(exports.CopilotSettingsWithoutSensitiveData), | ||
smtp: typebox_1.Type.Optional(typebox_1.Type.Object({})), | ||
}), typebox_1.Type.Pick(exports.Platform, [ | ||
'id', | ||
'created', | ||
'updated', | ||
'ownerId', | ||
@@ -50,2 +80,3 @@ 'name', | ||
'showPoweredBy', | ||
'environmentEnabled', | ||
'auditLogEnabled', | ||
@@ -52,0 +83,0 @@ 'embeddingEnabled', |
@@ -40,2 +40,15 @@ import { Static } from '@sinclair/typebox'; | ||
defaultLocale: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<typeof LocalesEnum>>; | ||
copilotSettings: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{ | ||
providers: import("@sinclair/typebox").TObject<{ | ||
openai: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{ | ||
baseUrl: import("@sinclair/typebox").TString; | ||
apiKey: import("@sinclair/typebox").TString; | ||
}>>; | ||
azureOpenai: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{ | ||
resourceName: import("@sinclair/typebox").TString; | ||
deploymentName: import("@sinclair/typebox").TString; | ||
apiKey: import("@sinclair/typebox").TString; | ||
}>>; | ||
}>; | ||
}>>; | ||
}>; | ||
@@ -42,0 +55,0 @@ export type UpdatePlatformRequestBody = Static<typeof UpdatePlatformRequestBody>; |
@@ -27,2 +27,3 @@ "use strict"; | ||
defaultLocale: typebox_1.Type.Optional(typebox_1.Type.Enum(common_1.LocalesEnum)), | ||
copilotSettings: typebox_1.Type.Optional(platform_model_1.CopilotSettings), | ||
}); | ||
@@ -29,0 +30,0 @@ exports.AdminAddPlatformRequestBody = typebox_1.Type.Object({ |
@@ -52,2 +52,3 @@ import { Static } from '@sinclair/typebox'; | ||
externalId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>; | ||
releasesEnabled: import("@sinclair/typebox").TBoolean; | ||
id: import("@sinclair/typebox").TString; | ||
@@ -61,8 +62,9 @@ created: import("@sinclair/typebox").TString; | ||
externalId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>; | ||
ownerId: import("@sinclair/typebox").TString; | ||
id: import("@sinclair/typebox").TString; | ||
platformId: import("@sinclair/typebox").TString; | ||
created: import("@sinclair/typebox").TString; | ||
updated: import("@sinclair/typebox").TString; | ||
ownerId: import("@sinclair/typebox").TString; | ||
platformId: import("@sinclair/typebox").TString; | ||
notifyStatus: import("@sinclair/typebox").TEnum<typeof NotificationStatus>; | ||
releasesEnabled: import("@sinclair/typebox").TBoolean; | ||
usage: import("@sinclair/typebox").TObject<{ | ||
@@ -69,0 +71,0 @@ tasks: import("@sinclair/typebox").TNumber; |
@@ -33,3 +33,3 @@ "use strict"; | ||
exports.ProjectPlan = typebox_1.Type.Object(Object.assign(Object.assign({}, base_model_1.BaseModelSchema), { projectId: typebox_1.Type.String(), name: typebox_1.Type.String(), minimumPollingInterval: typebox_1.Type.Number(), piecesFilterType: typebox_1.Type.Enum(PiecesFilterType), pieces: typebox_1.Type.Array(typebox_1.Type.String()), connections: typebox_1.Type.Number(), teamMembers: typebox_1.Type.Number(), tasks: typebox_1.Type.Number(), aiTokens: typebox_1.Type.Number() })); | ||
exports.Project = typebox_1.Type.Object(Object.assign(Object.assign({}, base_model_1.BaseModelSchema), { deleted: (0, base_model_1.Nullable)(typebox_1.Type.String()), ownerId: typebox_1.Type.String(), displayName: typebox_1.Type.String(), notifyStatus: typebox_1.Type.Enum(NotificationStatus), platformId: id_generator_1.ApId, externalId: typebox_1.Type.Optional(typebox_1.Type.String()) })); | ||
exports.Project = typebox_1.Type.Object(Object.assign(Object.assign({}, base_model_1.BaseModelSchema), { deleted: (0, base_model_1.Nullable)(typebox_1.Type.String()), ownerId: typebox_1.Type.String(), displayName: typebox_1.Type.String(), notifyStatus: typebox_1.Type.Enum(NotificationStatus), platformId: id_generator_1.ApId, externalId: typebox_1.Type.Optional(typebox_1.Type.String()), releasesEnabled: typebox_1.Type.Boolean() })); | ||
const projectAnalytics = typebox_1.Type.Object({ | ||
@@ -36,0 +36,0 @@ totalUsers: typebox_1.Type.Number(), |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
717617
332
10295