@xpert-ai/plugin-sdk 3.15.7 → 3.15.9

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/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @xpert-ai/plugin-sdk
2
2
 
3
+ ## 3.15.9
4
+
5
+ ### Patch Changes
6
+
7
+ - 601438f: fix org membership plan
8
+ - Updated dependencies [601438f]
9
+ - @xpert-ai/contracts@3.15.9
10
+
11
+ ## 3.15.8
12
+
13
+ ### Patch Changes
14
+
15
+ - 121ced0: Final stable version
16
+ - Updated dependencies [7ab7aa1]
17
+ - Updated dependencies [121ced0]
18
+ - @xpert-ai/contracts@3.15.8
19
+
3
20
  ## 3.15.7
4
21
 
5
22
  ### Patch Changes
package/index.cjs.js CHANGED
@@ -3121,7 +3121,7 @@ exports.SSOProviderRegistry = __decorate([
3121
3121
  ], exports.SSOProviderRegistry);
3122
3122
 
3123
3123
  const ConnectorRuntimeCapability = createRuntimeCapability('platform.connector', {
3124
- description: 'Resolve workspace connector credentials for agent middleware.'
3124
+ description: 'Resolve connector credentials for agent middleware.'
3125
3125
  });
3126
3126
 
3127
3127
  const CONNECTOR_STRATEGY = 'CONNECTOR_STRATEGY';
@@ -4630,10 +4630,10 @@ ${XPERT_REMOTE_UI_CSS}
4630
4630
  ${(_options_appCss = options.appCss) != null ? _options_appCss : ''}
4631
4631
  </style>
4632
4632
  <script>
4633
- ${options.reactUmd}
4633
+ ${escapeInlineScript(options.reactUmd)}
4634
4634
  </script>
4635
4635
  <script>
4636
- ${options.reactDomUmd}
4636
+ ${escapeInlineScript(options.reactDomUmd)}
4637
4637
  </script>
4638
4638
  <script>
4639
4639
  ${XPERT_REMOTE_UI_BOOTSTRAP}
@@ -4642,17 +4642,47 @@ ${XPERT_REMOTE_UI_BOOTSTRAP}
4642
4642
  <body>
4643
4643
  <div id="root"></div>
4644
4644
  <script>
4645
- ${options.appScript}
4645
+ ${escapeInlineScript(options.appScript)}
4646
4646
  </script>
4647
4647
  </body>
4648
4648
  </html>`;
4649
4649
  }
4650
+ function renderRemoteModuleIframeHtml(options) {
4651
+ var _options_lang, _options_appCss;
4652
+ return `<!doctype html>
4653
+ <html lang="${escapeHtmlAttribute((_options_lang = options.lang) != null ? _options_lang : 'en')}">
4654
+ <head>
4655
+ <meta charset="utf-8" />
4656
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
4657
+ <title>${escapeHtml(options.title)}</title>
4658
+ <style>
4659
+ ${XPERT_REMOTE_UI_CSS}
4660
+ ${(_options_appCss = options.appCss) != null ? _options_appCss : ''}
4661
+ </style>
4662
+ <script>
4663
+ ${XPERT_REMOTE_UI_BOOTSTRAP}
4664
+ </script>
4665
+ </head>
4666
+ <body>
4667
+ <div id="root"></div>
4668
+ <script type="module">
4669
+ ${escapeInlineScript(options.appScript)}
4670
+ </script>
4671
+ </body>
4672
+ </html>`;
4673
+ }
4674
+ function renderRemoteVueIframeHtml(options) {
4675
+ return renderRemoteModuleIframeHtml(options);
4676
+ }
4650
4677
  function escapeHtml(value) {
4651
4678
  return value.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;').replace(/'/g, '&#39;');
4652
4679
  }
4653
4680
  function escapeHtmlAttribute(value) {
4654
4681
  return escapeHtml(value).replace(/`/g, '&#96;');
4655
4682
  }
4683
+ function escapeInlineScript(value) {
4684
+ return value.replace(/<\/script/gi, '<\\/script');
4685
+ }
4656
4686
 
4657
4687
  const VIEW_EXTENSION_CACHE_SERVICE_TOKEN = 'XPERT_PLUGIN_VIEW_EXTENSION_CACHE_SERVICE';
4658
4688
 
@@ -4837,7 +4867,9 @@ exports.mergeCredentials = mergeCredentials;
4837
4867
  exports.mergeParentChildChunks = mergeParentChildChunks;
4838
4868
  exports.normalizeContextSize = normalizeContextSize;
4839
4869
  exports.pluginArtifactTableName = pluginArtifactTableName;
4870
+ exports.renderRemoteModuleIframeHtml = renderRemoteModuleIframeHtml;
4840
4871
  exports.renderRemoteReactIframeHtml = renderRemoteReactIframeHtml;
4872
+ exports.renderRemoteVueIframeHtml = renderRemoteVueIframeHtml;
4841
4873
  exports.resolveSandboxBackend = resolveSandboxBackend;
4842
4874
  exports.resolveSandboxExecutionOptions = resolveSandboxExecutionOptions;
4843
4875
  exports.resolveSandboxManagedServiceAdapter = resolveSandboxManagedServiceAdapter;
package/index.esm.js CHANGED
@@ -3101,7 +3101,7 @@ SSOProviderRegistry = __decorate([
3101
3101
  ], SSOProviderRegistry);
3102
3102
 
3103
3103
  const ConnectorRuntimeCapability = createRuntimeCapability('platform.connector', {
3104
- description: 'Resolve workspace connector credentials for agent middleware.'
3104
+ description: 'Resolve connector credentials for agent middleware.'
3105
3105
  });
3106
3106
 
3107
3107
  const CONNECTOR_STRATEGY = 'CONNECTOR_STRATEGY';
@@ -4610,10 +4610,10 @@ ${XPERT_REMOTE_UI_CSS}
4610
4610
  ${(_options_appCss = options.appCss) != null ? _options_appCss : ''}
4611
4611
  </style>
4612
4612
  <script>
4613
- ${options.reactUmd}
4613
+ ${escapeInlineScript(options.reactUmd)}
4614
4614
  </script>
4615
4615
  <script>
4616
- ${options.reactDomUmd}
4616
+ ${escapeInlineScript(options.reactDomUmd)}
4617
4617
  </script>
4618
4618
  <script>
4619
4619
  ${XPERT_REMOTE_UI_BOOTSTRAP}
@@ -4622,18 +4622,48 @@ ${XPERT_REMOTE_UI_BOOTSTRAP}
4622
4622
  <body>
4623
4623
  <div id="root"></div>
4624
4624
  <script>
4625
- ${options.appScript}
4625
+ ${escapeInlineScript(options.appScript)}
4626
4626
  </script>
4627
4627
  </body>
4628
4628
  </html>`;
4629
4629
  }
4630
+ function renderRemoteModuleIframeHtml(options) {
4631
+ var _options_lang, _options_appCss;
4632
+ return `<!doctype html>
4633
+ <html lang="${escapeHtmlAttribute((_options_lang = options.lang) != null ? _options_lang : 'en')}">
4634
+ <head>
4635
+ <meta charset="utf-8" />
4636
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
4637
+ <title>${escapeHtml(options.title)}</title>
4638
+ <style>
4639
+ ${XPERT_REMOTE_UI_CSS}
4640
+ ${(_options_appCss = options.appCss) != null ? _options_appCss : ''}
4641
+ </style>
4642
+ <script>
4643
+ ${XPERT_REMOTE_UI_BOOTSTRAP}
4644
+ </script>
4645
+ </head>
4646
+ <body>
4647
+ <div id="root"></div>
4648
+ <script type="module">
4649
+ ${escapeInlineScript(options.appScript)}
4650
+ </script>
4651
+ </body>
4652
+ </html>`;
4653
+ }
4654
+ function renderRemoteVueIframeHtml(options) {
4655
+ return renderRemoteModuleIframeHtml(options);
4656
+ }
4630
4657
  function escapeHtml(value) {
4631
4658
  return value.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;').replace(/'/g, '&#39;');
4632
4659
  }
4633
4660
  function escapeHtmlAttribute(value) {
4634
4661
  return escapeHtml(value).replace(/`/g, '&#96;');
4635
4662
  }
4663
+ function escapeInlineScript(value) {
4664
+ return value.replace(/<\/script/gi, '<\\/script');
4665
+ }
4636
4666
 
4637
4667
  const VIEW_EXTENSION_CACHE_SERVICE_TOKEN = 'XPERT_PLUGIN_VIEW_EXTENSION_CACHE_SERVICE';
4638
4668
 
4639
- export { ACCOUNT_BINDING_PERMISSION_SERVICE_TOKEN, AGENT_CHAT_DISPATCH_MESSAGE_TYPE, AGENT_MIDDLEWARE_STRATEGY, AIModelProviderNotFoundException, AIModelProviderRegistry, AIModelProviderStrategy, AI_MODEL_PROVIDER, ANALYTICS_PERMISSION_SERVICE_TOKEN, AdapterDataSourceStrategy, AgentMiddlewareRegistry, AgentMiddlewareStrategy, AiModelNotFoundException, AssistantTaskRuntimeCapability, BOUND_IDENTITY_LOGIN_PERMISSION_SERVICE_TOKEN, BUILTIN_GLOBAL_SCOPE, BaseHTTPQueryRunner, BaseQueryRunner, BaseSQLQueryRunner, BaseSandbox, BaseStrategyRegistry, BaseTool, BaseToolset, BuiltinToolset, CHAT_CHANNEL, CHAT_CHANNEL_TEXT_LIMITS, CONNECTION_COMMAND_ROUTER_TOKEN, CONNECTOR_STRATEGY, CancelConversationCommand, ChatChannel, ChatChannelRegistry, ChatOAICompatReasoningModel, CommonParameterRules, ConnectorRuntimeCapability, ConnectorStrategyKey, ConnectorStrategyRegistry, CreateModelClientCommand, CredentialsValidateFailedError, DATASOURCE_STRATEGY, DBCreateTableMode, DBProtocolEnum, DBSyntaxEnum, DBTableAction, DBTableDataAction, DEFAULT_EXECUTION_CONFIG, DEFAULT_SANDBOX_EXECUTION_MAX_OUTPUT_BYTES, DEFAULT_SANDBOX_FILE_OPERATION_EXECUTION_OPTIONS, DEFAULT_SANDBOX_FILE_OPERATION_TIMEOUT_MS, DEFAULT_SANDBOX_FILE_OPERATION_TIMEOUT_SEC, DEFAULT_SANDBOX_FILE_SEARCH_EXECUTION_OPTIONS, DEFAULT_SANDBOX_FILE_SEARCH_TIMEOUT_MS, DEFAULT_SANDBOX_FILE_SEARCH_TIMEOUT_SEC, DEFAULT_SANDBOX_SHELL_EXECUTION_OPTIONS, DEFAULT_SANDBOX_SHELL_TIMEOUT_MS, DEFAULT_SANDBOX_SHELL_TIMEOUT_SEC, DOCUMENT_SOURCE_STRATEGY, DOCUMENT_TRANSFORMER_STRATEGY, DataSourceStrategy, DataSourceStrategyRegistry, DefaultRuntimeCapabilityRegistry as DefaultAgentMiddlewareRuntimeCapabilityRegistry, DefaultRuntimeCapabilityRegistry, DocumentSourceRegistry, DocumentSourceStrategy, DocumentTransformerRegistry, DocumentTransformerStrategy, FILE_STORAGE_PROVIDER, FILE_UPLOAD_TARGET_STRATEGY, FileRuntimeCapability, FileStorageProvider, FileStorageProviderRegistry, FileUploadTargetRegistry, FileUploadTargetStrategy, GLOBAL_ORGANIZATION_SCOPE, HANDOFF_PERMISSION_SERVICE_TOKEN, HANDOFF_PROCESSOR_STRATEGY, HANDOFF_QUEUE_SERVICE_TOKEN, HandoffProcessorRegistry, HandoffProcessorStrategy, IMAGE_UNDERSTANDING_STRATEGY, INTEGRATION_PERMISSION_SERVICE_TOKEN, INTEGRATION_STRATEGY, ImageUnderstandingRegistry, ImageUnderstandingStrategy, IntegrationStrategyKey, IntegrationStrategyRegistry, JUMP_TO_TARGETS, JsonSchemaValidator, KNOWLEDGE_STRATEGY, KnowledgeStrategyKey, KnowledgeStrategyRegistry, KnowledgebaseDocumentsRuntimeCapability, KnowledgebaseRuntimeCapability, LLMUsage, LargeLanguageModel, MANAGED_CONNECTION_REGISTRY_TOKEN, MANAGED_QUEUE_HANDLER_REGISTRY_TOKEN, MANAGED_QUEUE_SERVICE_TOKEN, ModelProvider, ORGANIZATION_METADATA_KEY, OpenAICompatibleReranker, PERMISSION_OPERATION_METADATA_KEY, PLUGIN_CONFIG_RESOLVER_TOKEN, PLUGIN_JOB_PROCESSOR_METADATA, PLUGIN_METADATA, PLUGIN_METADATA_KEY, PLUGIN_WEBHOOK_AUTH_METADATA_KEY, PLUGIN_WEBHOOK_AUTH_SERVICE_TOKEN, PROVIDE_AI_MODEL_LLM, PROVIDE_AI_MODEL_MODERATION, PROVIDE_AI_MODEL_RERANK, PROVIDE_AI_MODEL_SPEECH2TEXT, PROVIDE_AI_MODEL_TEXT_EMBEDDING, PROVIDE_AI_MODEL_TTS, PluginJobProcessor, PluginWebhookAuth, PluginWebhookAuthGuard, RETRIEVER_STRATEGY, RequestContext, RequestContextMiddleware, RequirePermissionOperation, RerankModel, RetrieverRegistry, RetrieverStrategy, SANDBOX_PROVIDER, SANDBOX_SHELL_TIMEOUT_LIMITS_SEC, SKILL_SOURCE_PROVIDER, SPEECH_TO_TEXT_PERMISSION_SERVICE_TOKEN, SPEECH_TO_TEXT_SERVICE_TOKEN, SSOProviderRegistry, SSOProviderStrategyKey, SSO_BINDING_PERMISSION_SERVICE_TOKEN, SSO_PROVIDER, STRATEGY_META_KEY, SYSTEM_GLOBAL_SCOPE, SandboxProviderRegistry, SandboxProviderStrategy, SkillSourceProviderRegistry, SkillSourceProviderStrategy, Speech2TextChatModel, SpeechToTextModel, StrategyBus, TENANT_GLOBAL_SCOPE_PREFIX, TENANT_GLOBAL_SCOPE_SUFFIX, TEXT_SPLITTER_STRATEGY, TOOLSET_STRATEGY, TextEmbeddingModelManager, TextSplitterRegistry, TextSplitterStrategy, TextToSpeechModel, ToolsetRegistry, ToolsetStrategy, USER_PERMISSION_SERVICE_TOKEN, VECTOR_STORE_STRATEGY, VIEW_EXTENSION_CACHE_SERVICE_TOKEN, VIEW_EXTENSION_PROVIDER, VectorStoreRegistry, VectorStoreStrategy, ViewExtensionProvider, ViewExtensionProviderRegistry, WORKFLOW_NODE_STRATEGY, WORKFLOW_TRIGGER_STRATEGY, WORKSPACE_FILES_SOURCE, WorkflowNodeRegistry, WorkflowNodeStrategy, WorkflowTriggerRegistry, WorkflowTriggerStrategy, WorkspaceFilesRuntimeCapability, WrapWorkflowNodeExecutionCommand, XPERT_RUNTIME_CAPABILITIES_TOKEN, XpFileSystem, XpertServerPlugin, als, appendSandboxMessage, buildSandboxTimeoutMessage, calcTokenUsage, chunkText, countTokensSafe, createI18nInstance, createPluginLogger, createRuntimeCapability, defineAgentMessageType, defineChannelMessageType, derivePluginArtifactNamespace, downloadRemoteFile, formatSandboxTimeout, getDefaultTenantId, getErrorMessage, getModelContextSize, getPermissionOperationMetadata, getPositionList, getPositionMap, getRequestContext, getRequiredPermissionOperation, getTenantGlobalScopeKey, isRemoteFile, isSandboxBackend, isSandboxManagedServiceAdapter, isSandboxServiceProxyAdapter, isSandboxTerminalAdapter, isStructuredMessageType, isTenantGlobalScopeKey, loadYamlFile, mergeCredentials, mergeParentChildChunks, normalizeContextSize, pluginArtifactTableName, renderRemoteReactIframeHtml, resolveSandboxBackend, resolveSandboxExecutionOptions, resolveSandboxManagedServiceAdapter, resolveSandboxServiceProxyAdapter, resolveSandboxTerminalAdapter, resolveTenantGlobalScopeKey, runWithRequestContext, secondsToMilliseconds, setDefaultTenantId, sumTokenUsage };
4669
+ export { ACCOUNT_BINDING_PERMISSION_SERVICE_TOKEN, AGENT_CHAT_DISPATCH_MESSAGE_TYPE, AGENT_MIDDLEWARE_STRATEGY, AIModelProviderNotFoundException, AIModelProviderRegistry, AIModelProviderStrategy, AI_MODEL_PROVIDER, ANALYTICS_PERMISSION_SERVICE_TOKEN, AdapterDataSourceStrategy, AgentMiddlewareRegistry, AgentMiddlewareStrategy, AiModelNotFoundException, AssistantTaskRuntimeCapability, BOUND_IDENTITY_LOGIN_PERMISSION_SERVICE_TOKEN, BUILTIN_GLOBAL_SCOPE, BaseHTTPQueryRunner, BaseQueryRunner, BaseSQLQueryRunner, BaseSandbox, BaseStrategyRegistry, BaseTool, BaseToolset, BuiltinToolset, CHAT_CHANNEL, CHAT_CHANNEL_TEXT_LIMITS, CONNECTION_COMMAND_ROUTER_TOKEN, CONNECTOR_STRATEGY, CancelConversationCommand, ChatChannel, ChatChannelRegistry, ChatOAICompatReasoningModel, CommonParameterRules, ConnectorRuntimeCapability, ConnectorStrategyKey, ConnectorStrategyRegistry, CreateModelClientCommand, CredentialsValidateFailedError, DATASOURCE_STRATEGY, DBCreateTableMode, DBProtocolEnum, DBSyntaxEnum, DBTableAction, DBTableDataAction, DEFAULT_EXECUTION_CONFIG, DEFAULT_SANDBOX_EXECUTION_MAX_OUTPUT_BYTES, DEFAULT_SANDBOX_FILE_OPERATION_EXECUTION_OPTIONS, DEFAULT_SANDBOX_FILE_OPERATION_TIMEOUT_MS, DEFAULT_SANDBOX_FILE_OPERATION_TIMEOUT_SEC, DEFAULT_SANDBOX_FILE_SEARCH_EXECUTION_OPTIONS, DEFAULT_SANDBOX_FILE_SEARCH_TIMEOUT_MS, DEFAULT_SANDBOX_FILE_SEARCH_TIMEOUT_SEC, DEFAULT_SANDBOX_SHELL_EXECUTION_OPTIONS, DEFAULT_SANDBOX_SHELL_TIMEOUT_MS, DEFAULT_SANDBOX_SHELL_TIMEOUT_SEC, DOCUMENT_SOURCE_STRATEGY, DOCUMENT_TRANSFORMER_STRATEGY, DataSourceStrategy, DataSourceStrategyRegistry, DefaultRuntimeCapabilityRegistry as DefaultAgentMiddlewareRuntimeCapabilityRegistry, DefaultRuntimeCapabilityRegistry, DocumentSourceRegistry, DocumentSourceStrategy, DocumentTransformerRegistry, DocumentTransformerStrategy, FILE_STORAGE_PROVIDER, FILE_UPLOAD_TARGET_STRATEGY, FileRuntimeCapability, FileStorageProvider, FileStorageProviderRegistry, FileUploadTargetRegistry, FileUploadTargetStrategy, GLOBAL_ORGANIZATION_SCOPE, HANDOFF_PERMISSION_SERVICE_TOKEN, HANDOFF_PROCESSOR_STRATEGY, HANDOFF_QUEUE_SERVICE_TOKEN, HandoffProcessorRegistry, HandoffProcessorStrategy, IMAGE_UNDERSTANDING_STRATEGY, INTEGRATION_PERMISSION_SERVICE_TOKEN, INTEGRATION_STRATEGY, ImageUnderstandingRegistry, ImageUnderstandingStrategy, IntegrationStrategyKey, IntegrationStrategyRegistry, JUMP_TO_TARGETS, JsonSchemaValidator, KNOWLEDGE_STRATEGY, KnowledgeStrategyKey, KnowledgeStrategyRegistry, KnowledgebaseDocumentsRuntimeCapability, KnowledgebaseRuntimeCapability, LLMUsage, LargeLanguageModel, MANAGED_CONNECTION_REGISTRY_TOKEN, MANAGED_QUEUE_HANDLER_REGISTRY_TOKEN, MANAGED_QUEUE_SERVICE_TOKEN, ModelProvider, ORGANIZATION_METADATA_KEY, OpenAICompatibleReranker, PERMISSION_OPERATION_METADATA_KEY, PLUGIN_CONFIG_RESOLVER_TOKEN, PLUGIN_JOB_PROCESSOR_METADATA, PLUGIN_METADATA, PLUGIN_METADATA_KEY, PLUGIN_WEBHOOK_AUTH_METADATA_KEY, PLUGIN_WEBHOOK_AUTH_SERVICE_TOKEN, PROVIDE_AI_MODEL_LLM, PROVIDE_AI_MODEL_MODERATION, PROVIDE_AI_MODEL_RERANK, PROVIDE_AI_MODEL_SPEECH2TEXT, PROVIDE_AI_MODEL_TEXT_EMBEDDING, PROVIDE_AI_MODEL_TTS, PluginJobProcessor, PluginWebhookAuth, PluginWebhookAuthGuard, RETRIEVER_STRATEGY, RequestContext, RequestContextMiddleware, RequirePermissionOperation, RerankModel, RetrieverRegistry, RetrieverStrategy, SANDBOX_PROVIDER, SANDBOX_SHELL_TIMEOUT_LIMITS_SEC, SKILL_SOURCE_PROVIDER, SPEECH_TO_TEXT_PERMISSION_SERVICE_TOKEN, SPEECH_TO_TEXT_SERVICE_TOKEN, SSOProviderRegistry, SSOProviderStrategyKey, SSO_BINDING_PERMISSION_SERVICE_TOKEN, SSO_PROVIDER, STRATEGY_META_KEY, SYSTEM_GLOBAL_SCOPE, SandboxProviderRegistry, SandboxProviderStrategy, SkillSourceProviderRegistry, SkillSourceProviderStrategy, Speech2TextChatModel, SpeechToTextModel, StrategyBus, TENANT_GLOBAL_SCOPE_PREFIX, TENANT_GLOBAL_SCOPE_SUFFIX, TEXT_SPLITTER_STRATEGY, TOOLSET_STRATEGY, TextEmbeddingModelManager, TextSplitterRegistry, TextSplitterStrategy, TextToSpeechModel, ToolsetRegistry, ToolsetStrategy, USER_PERMISSION_SERVICE_TOKEN, VECTOR_STORE_STRATEGY, VIEW_EXTENSION_CACHE_SERVICE_TOKEN, VIEW_EXTENSION_PROVIDER, VectorStoreRegistry, VectorStoreStrategy, ViewExtensionProvider, ViewExtensionProviderRegistry, WORKFLOW_NODE_STRATEGY, WORKFLOW_TRIGGER_STRATEGY, WORKSPACE_FILES_SOURCE, WorkflowNodeRegistry, WorkflowNodeStrategy, WorkflowTriggerRegistry, WorkflowTriggerStrategy, WorkspaceFilesRuntimeCapability, WrapWorkflowNodeExecutionCommand, XPERT_RUNTIME_CAPABILITIES_TOKEN, XpFileSystem, XpertServerPlugin, als, appendSandboxMessage, buildSandboxTimeoutMessage, calcTokenUsage, chunkText, countTokensSafe, createI18nInstance, createPluginLogger, createRuntimeCapability, defineAgentMessageType, defineChannelMessageType, derivePluginArtifactNamespace, downloadRemoteFile, formatSandboxTimeout, getDefaultTenantId, getErrorMessage, getModelContextSize, getPermissionOperationMetadata, getPositionList, getPositionMap, getRequestContext, getRequiredPermissionOperation, getTenantGlobalScopeKey, isRemoteFile, isSandboxBackend, isSandboxManagedServiceAdapter, isSandboxServiceProxyAdapter, isSandboxTerminalAdapter, isStructuredMessageType, isTenantGlobalScopeKey, loadYamlFile, mergeCredentials, mergeParentChildChunks, normalizeContextSize, pluginArtifactTableName, renderRemoteModuleIframeHtml, renderRemoteReactIframeHtml, renderRemoteVueIframeHtml, resolveSandboxBackend, resolveSandboxExecutionOptions, resolveSandboxManagedServiceAdapter, resolveSandboxServiceProxyAdapter, resolveSandboxTerminalAdapter, resolveTenantGlobalScopeKey, runWithRequestContext, secondsToMilliseconds, setDefaultTenantId, sumTokenUsage };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xpert-ai/plugin-sdk",
3
- "version": "3.15.7",
3
+ "version": "3.15.9",
4
4
  "license": "AGPL-3.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "@langchain/openai": "0.6.9",
20
- "@xpert-ai/contracts": "3.15.7",
20
+ "@xpert-ai/contracts": "3.15.9",
21
21
  "express": "^4.22.1",
22
22
  "js-tiktoken": "^1.0.21"
23
23
  },
@@ -20,28 +20,12 @@ export type ConnectorAppCredentialField = {
20
20
  secret?: boolean;
21
21
  };
22
22
  export type ConnectorAppCredentialsConfig = {
23
- integrationLabel?: RuntimeI18nText;
24
- noIntegrationLabel?: RuntimeI18nText;
25
- noIntegrationDescription?: RuntimeI18nText;
26
23
  fields?: ConnectorAppCredentialField[];
27
24
  help?: {
28
25
  label: RuntimeI18nText;
29
26
  url: string;
30
27
  };
31
28
  defaultValues?: Record<string, string | number | boolean | null>;
32
- integrationName?: RuntimeI18nText;
33
- };
34
- export type ConnectorAppIntegration = {
35
- id?: string;
36
- provider: string;
37
- name?: string;
38
- description?: string | null;
39
- options?: unknown;
40
- };
41
- export type ConnectorAppIntegrationSelectOption = {
42
- value: string;
43
- label: string;
44
- description?: string | null;
45
29
  };
46
30
  export type ConnectorPermissionDeclaration = {
47
31
  key: string;
@@ -60,8 +44,6 @@ export type ConnectorDefinition = {
60
44
  icon?: RuntimeCapabilityIcon;
61
45
  auth: ConnectorOAuthConfig;
62
46
  permissions?: ConnectorPermissionDeclaration[];
63
- appIntegrationProvider?: string;
64
- appIntegrationOptional?: boolean;
65
47
  appCredentials?: ConnectorAppCredentialsConfig;
66
48
  };
67
49
  export type ConnectorProfile = {
@@ -78,7 +60,6 @@ export type ConnectorInstance = {
78
60
  workspaceId: string;
79
61
  provider: string;
80
62
  status: ConnectorStatus;
81
- appIntegrationId?: string | null;
82
63
  profile?: ConnectorProfile | null;
83
64
  scopes?: string[];
84
65
  expiresAt?: string | null;
@@ -92,7 +73,6 @@ export type ConnectorInstance = {
92
73
  updatedAt?: string;
93
74
  };
94
75
  export type ConnectorOAuthStartRequest = {
95
- appIntegrationId?: string;
96
76
  app?: ConnectorAppCredentialPayload;
97
77
  };
98
78
  export type ConnectorOAuthStartResponse = {
@@ -199,7 +179,6 @@ export type ConnectorAuthorizationPollResult = {
199
179
  };
200
180
  export interface ConnectorStrategy {
201
181
  definition: ConnectorDefinition;
202
- isSelectableAppIntegration?(integration: ConnectorAppIntegration): boolean | Promise<boolean>;
203
182
  buildAuthorizationUrl(input: ConnectorAuthorizationUrlInput): Promise<ConnectorAuthorizationUrlResult>;
204
183
  exchangeOAuthCode(input: ConnectorOAuthCodeInput): Promise<ConnectorOAuthCredential>;
205
184
  refreshCredential?(input: ConnectorRefreshInput): Promise<ConnectorOAuthCredential>;
@@ -6,4 +6,14 @@ export interface RenderRemoteReactIframeHtmlOptions {
6
6
  appCss?: string;
7
7
  lang?: string;
8
8
  }
9
+ export interface RenderRemoteModuleIframeHtmlOptions {
10
+ title: string;
11
+ appScript: string;
12
+ appCss?: string;
13
+ lang?: string;
14
+ }
15
+ export interface RenderRemoteVueIframeHtmlOptions extends RenderRemoteModuleIframeHtmlOptions {
16
+ }
9
17
  export declare function renderRemoteReactIframeHtml(options: RenderRemoteReactIframeHtmlOptions): string;
18
+ export declare function renderRemoteModuleIframeHtml(options: RenderRemoteModuleIframeHtmlOptions): string;
19
+ export declare function renderRemoteVueIframeHtml(options: RenderRemoteVueIframeHtmlOptions): string;