lemma-sdk 0.2.32 → 0.2.34
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 +190 -54
- package/dist/browser/lemma-client.js +84 -14
- package/dist/index.d.ts +3 -1
- package/dist/index.js +2 -1
- package/dist/namespaces/desks.d.ts +5 -2
- package/dist/namespaces/desks.js +5 -2
- package/dist/namespaces/files.d.ts +11 -0
- package/dist/namespaces/files.js +12 -0
- package/dist/namespaces/pod-surfaces.js +1 -1
- package/dist/namespaces/workflows.d.ts +1 -1
- package/dist/openapi_client/index.d.ts +50 -12
- package/dist/openapi_client/index.js +10 -2
- package/dist/openapi_client/models/AdminConsentInfoResponse.d.ts +6 -0
- package/dist/openapi_client/models/AssistantSurfaceResponse.d.ts +16 -1
- package/dist/openapi_client/models/AssistantSurfaceStatus.d.ts +5 -0
- package/dist/openapi_client/models/AssistantSurfaceStatus.js +10 -0
- package/dist/openapi_client/models/ConversationMessageResponse.d.ts +4 -0
- package/dist/openapi_client/models/ConversationResponse.d.ts +3 -0
- package/dist/openapi_client/models/ConversationType.d.ts +8 -0
- package/dist/openapi_client/models/ConversationType.js +13 -0
- package/dist/openapi_client/models/CreateSurfaceRequest.d.ts +16 -5
- package/dist/openapi_client/models/{DataStoreFlowStart.d.ts → DataStoreFlowStartInput.d.ts} +1 -1
- package/dist/openapi_client/models/DataStoreFlowStartOutput.d.ts +11 -0
- package/dist/openapi_client/models/DataStoreWorkflowStartInput.d.ts +11 -0
- package/dist/openapi_client/models/DataStoreWorkflowStartOutput.d.ts +11 -0
- package/dist/openapi_client/models/DeskBundleUploadRequest.d.ts +1 -1
- package/dist/openapi_client/models/{EventFlowStart.d.ts → EventFlowStartInput.d.ts} +1 -1
- package/dist/openapi_client/models/EventFlowStartOutput.d.ts +19 -0
- package/dist/openapi_client/models/EventWorkflowStartInput.d.ts +11 -0
- package/dist/openapi_client/models/EventWorkflowStartOutput.d.ts +11 -0
- package/dist/openapi_client/models/FlowInstallResponse.d.ts +15 -0
- package/dist/openapi_client/models/FlowResponse.d.ts +5 -2
- package/dist/openapi_client/models/GmailSurfaceConfig.d.ts +7 -0
- package/dist/openapi_client/models/GmailSurfaceConfig.js +1 -0
- package/dist/openapi_client/models/GmailSurfaceConfigInput.d.ts +4 -0
- package/dist/openapi_client/models/GmailSurfaceConfigInput.js +1 -0
- package/dist/openapi_client/models/GrantPermissionRequest.d.ts +6 -0
- package/dist/openapi_client/models/GrantPermissionRequest.js +1 -0
- package/dist/openapi_client/models/ManualWorkflowStartInput.d.ts +10 -0
- package/dist/openapi_client/models/ManualWorkflowStartInput.js +1 -0
- package/dist/openapi_client/models/ManualWorkflowStartOutput.d.ts +10 -0
- package/dist/openapi_client/models/ManualWorkflowStartOutput.js +1 -0
- package/dist/openapi_client/models/OrganizationInvitationRequest.d.ts +2 -0
- package/dist/openapi_client/models/OrganizationInvitationResponse.d.ts +2 -0
- package/dist/openapi_client/models/OutlookSurfaceConfig.d.ts +7 -0
- package/dist/openapi_client/models/OutlookSurfaceConfig.js +1 -0
- package/dist/openapi_client/models/OutlookSurfaceConfigInput.d.ts +4 -0
- package/dist/openapi_client/models/OutlookSurfaceConfigInput.js +1 -0
- package/dist/openapi_client/models/ResourcePermissionListResponse.d.ts +4 -0
- package/dist/openapi_client/models/ResourcePermissionListResponse.js +1 -0
- package/dist/openapi_client/models/ResourcePermissionResponse.d.ts +12 -0
- package/dist/openapi_client/models/ResourcePermissionResponse.js +1 -0
- package/dist/openapi_client/models/{ScheduledFlowStart.d.ts → ScheduledFlowStartInput.d.ts} +1 -1
- package/dist/openapi_client/models/ScheduledFlowStartInput.js +1 -0
- package/dist/openapi_client/models/ScheduledFlowStartOutput.d.ts +7 -0
- package/dist/openapi_client/models/ScheduledFlowStartOutput.js +1 -0
- package/dist/openapi_client/models/ScheduledWorkflowStartInput.d.ts +11 -0
- package/dist/openapi_client/models/ScheduledWorkflowStartInput.js +1 -0
- package/dist/openapi_client/models/ScheduledWorkflowStartOutput.d.ts +11 -0
- package/dist/openapi_client/models/ScheduledWorkflowStartOutput.js +1 -0
- package/dist/openapi_client/models/SetVisibilityRequest.d.ts +3 -0
- package/dist/openapi_client/models/SetVisibilityRequest.js +1 -0
- package/dist/openapi_client/models/SlackCredentialsInput.d.ts +5 -0
- package/dist/openapi_client/models/SlackCredentialsInput.js +1 -0
- package/dist/openapi_client/models/SlackSurfaceConfig.d.ts +10 -0
- package/dist/openapi_client/models/SlackSurfaceConfig.js +1 -0
- package/dist/openapi_client/models/{SlackSurfaceConfigCreate.d.ts → SlackSurfaceConfigInput.d.ts} +1 -1
- package/dist/openapi_client/models/SlackSurfaceConfigInput.js +1 -0
- package/dist/openapi_client/models/SurfaceCredentialMode.d.ts +4 -0
- package/dist/openapi_client/models/SurfaceCredentialMode.js +9 -0
- package/dist/openapi_client/models/SurfaceIntegrationSetupGuide.d.ts +13 -0
- package/dist/openapi_client/models/SurfaceIntegrationSetupGuide.js +1 -0
- package/dist/openapi_client/models/SurfacePlatform.d.ts +8 -0
- package/dist/openapi_client/models/SurfacePlatform.js +13 -0
- package/dist/openapi_client/models/SurfacePlatformSetupGuideResponse.d.ts +9 -0
- package/dist/openapi_client/models/SurfacePlatformSetupGuideResponse.js +1 -0
- package/dist/openapi_client/models/SurfaceRoutingScope.d.ts +4 -0
- package/dist/openapi_client/models/SurfaceRoutingScope.js +9 -0
- package/dist/openapi_client/models/SurfaceSetupField.d.ts +10 -0
- package/dist/openapi_client/models/SurfaceSetupField.js +1 -0
- package/dist/openapi_client/models/SurfaceSetupFieldSource.d.ts +4 -0
- package/dist/openapi_client/models/SurfaceSetupFieldSource.js +9 -0
- package/dist/openapi_client/models/SurfaceSetupMode.d.ts +5 -0
- package/dist/openapi_client/models/SurfaceSetupMode.js +10 -0
- package/dist/openapi_client/models/SurfaceSetupPhase.d.ts +6 -0
- package/dist/openapi_client/models/SurfaceSetupPhase.js +11 -0
- package/dist/openapi_client/models/SurfaceSetupStep.d.ts +6 -0
- package/dist/openapi_client/models/SurfaceSetupStep.js +1 -0
- package/dist/openapi_client/models/SurfaceWebhookMode.d.ts +4 -0
- package/dist/openapi_client/models/SurfaceWebhookMode.js +9 -0
- package/dist/openapi_client/models/TeamsCredentialsInput.d.ts +6 -0
- package/dist/openapi_client/models/TeamsCredentialsInput.js +1 -0
- package/dist/openapi_client/models/TeamsSurfaceConfig.d.ts +9 -0
- package/dist/openapi_client/models/TeamsSurfaceConfig.js +1 -0
- package/dist/openapi_client/models/{TeamsSurfaceConfigCreate.d.ts → TeamsSurfaceConfigInput.d.ts} +1 -1
- package/dist/openapi_client/models/TeamsSurfaceConfigInput.js +1 -0
- package/dist/openapi_client/models/TelegramCredentialsInput.d.ts +5 -0
- package/dist/openapi_client/models/TelegramCredentialsInput.js +1 -0
- package/dist/openapi_client/models/TelegramSurfaceConfig.d.ts +6 -0
- package/dist/openapi_client/models/TelegramSurfaceConfig.js +1 -0
- package/dist/openapi_client/models/TelegramSurfaceConfigInput.d.ts +6 -0
- package/dist/openapi_client/models/TelegramSurfaceConfigInput.js +1 -0
- package/dist/openapi_client/models/UpdateSurfaceRequest.d.ts +17 -5
- package/dist/openapi_client/models/WhatsAppCredentialsInput.d.ts +8 -0
- package/dist/openapi_client/models/WhatsAppCredentialsInput.js +1 -0
- package/dist/openapi_client/models/WhatsAppSurfaceConfig.d.ts +6 -0
- package/dist/openapi_client/models/WhatsAppSurfaceConfig.js +1 -0
- package/dist/openapi_client/models/WhatsAppSurfaceConfigInput.d.ts +6 -0
- package/dist/openapi_client/models/WhatsAppSurfaceConfigInput.js +1 -0
- package/dist/openapi_client/models/WorkflowCreateRequest.d.ts +5 -2
- package/dist/openapi_client/models/WorkflowGraphUpdateRequest.d.ts +5 -2
- package/dist/openapi_client/models/WorkflowUpdateRequest.d.ts +5 -2
- package/dist/openapi_client/services/AssistantSurfacesIngressService.d.ts +51 -0
- package/dist/openapi_client/services/AssistantSurfacesIngressService.js +111 -0
- package/dist/openapi_client/services/AssistantSurfacesService.d.ts +27 -6
- package/dist/openapi_client/services/AssistantSurfacesService.js +62 -7
- package/dist/openapi_client/services/AuthorizationService.d.ts +47 -0
- package/dist/openapi_client/services/AuthorizationService.js +100 -0
- package/dist/openapi_client/services/DesksService.d.ts +2 -2
- package/dist/openapi_client/services/DesksService.js +3 -3
- package/dist/openapi_client/services/WorkflowsService.d.ts +3 -3
- package/dist/openapi_client/services/WorkflowsService.js +1 -1
- package/dist/react/index.d.ts +16 -0
- package/dist/react/index.js +8 -0
- package/dist/react/useAddPodMember.d.ts +22 -0
- package/dist/react/useAddPodMember.js +51 -0
- package/dist/react/useAssistantController.js +82 -37
- package/dist/react/useAssistantRuntime.js +8 -4
- package/dist/react/useAssistantSession.js +44 -2
- package/dist/react/useConversationMessages.js +19 -2
- package/dist/react/useFile.d.ts +18 -0
- package/dist/react/useFile.js +58 -0
- package/dist/react/useFilePreview.d.ts +23 -0
- package/dist/react/useFilePreview.js +76 -0
- package/dist/react/useFileSearch.d.ts +26 -0
- package/dist/react/useFileSearch.js +64 -0
- package/dist/react/useFileTree.d.ts +21 -0
- package/dist/react/useFileTree.js +59 -0
- package/dist/react/useFiles.d.ts +29 -0
- package/dist/react/useFiles.js +90 -0
- package/dist/react/useRecords.js +8 -5
- package/dist/react/useRemovePodMember.d.ts +19 -0
- package/dist/react/useRemovePodMember.js +50 -0
- package/dist/react/useUpdatePodMemberRole.d.ts +20 -0
- package/dist/react/useUpdatePodMemberRole.js +50 -0
- package/dist/react/useWorkflowStart.d.ts +2 -2
- package/dist/record-display.d.ts +20 -0
- package/dist/record-display.js +78 -0
- package/dist/record-form.d.ts +4 -0
- package/dist/record-form.js +16 -0
- package/dist/types.d.ts +8 -1
- package/package.json +2 -1
- package/dist/openapi_client/models/EmailSurfaceConfigCreate.d.ts +0 -5
- package/dist/openapi_client/models/FlowInstallEntity.d.ts +0 -16
- package/dist/openapi_client/models/FlowStartType.d.ts +0 -6
- package/dist/openapi_client/models/FlowStartType.js +0 -11
- package/dist/openapi_client/models/FlowStart_Input.d.ts +0 -14
- package/dist/openapi_client/models/FlowStart_Output.d.ts +0 -14
- package/dist/openapi_client/models/WhatsAppSurfaceConfigCreate.d.ts +0 -5
- package/dist/openapi_client/services/PublicDesksService.d.ts +0 -10
- package/dist/openapi_client/services/PublicDesksService.js +0 -22
- /package/dist/openapi_client/models/{DataStoreFlowStart.js → AdminConsentInfoResponse.js} +0 -0
- /package/dist/openapi_client/models/{EmailSurfaceConfigCreate.js → DataStoreFlowStartInput.js} +0 -0
- /package/dist/openapi_client/models/{EventFlowStart.js → DataStoreFlowStartOutput.js} +0 -0
- /package/dist/openapi_client/models/{FlowInstallEntity.js → DataStoreWorkflowStartInput.js} +0 -0
- /package/dist/openapi_client/models/{FlowStart_Input.js → DataStoreWorkflowStartOutput.js} +0 -0
- /package/dist/openapi_client/models/{FlowStart_Output.js → EventFlowStartInput.js} +0 -0
- /package/dist/openapi_client/models/{ScheduledFlowStart.js → EventFlowStartOutput.js} +0 -0
- /package/dist/openapi_client/models/{SlackSurfaceConfigCreate.js → EventWorkflowStartInput.js} +0 -0
- /package/dist/openapi_client/models/{TeamsSurfaceConfigCreate.js → EventWorkflowStartOutput.js} +0 -0
- /package/dist/openapi_client/models/{WhatsAppSurfaceConfigCreate.js → FlowInstallResponse.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type ResourcePermissionResponse = {
|
|
2
|
+
created_at: string;
|
|
3
|
+
effective_role: string;
|
|
4
|
+
granted_by_user_id: string;
|
|
5
|
+
grantee_min_role: (string | null);
|
|
6
|
+
grantee_type: string;
|
|
7
|
+
grantee_user_id: (string | null);
|
|
8
|
+
id: string;
|
|
9
|
+
pod_id: string;
|
|
10
|
+
resource_id: string;
|
|
11
|
+
resource_type: string;
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ScheduledFlowStartType } from './ScheduledFlowStartType.js';
|
|
2
|
-
export type
|
|
2
|
+
export type ScheduledFlowStartInput = {
|
|
3
3
|
/**
|
|
4
4
|
* Time trigger mode for this workflow definition. Concrete schedule values are provided during installation.
|
|
5
5
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ScheduledFlowStartType } from './ScheduledFlowStartType.js';
|
|
2
|
+
export type ScheduledFlowStartOutput = {
|
|
3
|
+
/**
|
|
4
|
+
* Time trigger mode for this workflow definition. Concrete schedule values are provided during installation.
|
|
5
|
+
*/
|
|
6
|
+
schedule_type: ScheduledFlowStartType;
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ScheduledFlowStartInput } from './ScheduledFlowStartInput.js';
|
|
2
|
+
export type ScheduledWorkflowStartInput = {
|
|
3
|
+
/**
|
|
4
|
+
* Scheduled workflow definition payload.
|
|
5
|
+
*/
|
|
6
|
+
config: ScheduledFlowStartInput;
|
|
7
|
+
/**
|
|
8
|
+
* Scheduled workflow start.
|
|
9
|
+
*/
|
|
10
|
+
type?: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ScheduledFlowStartOutput } from './ScheduledFlowStartOutput.js';
|
|
2
|
+
export type ScheduledWorkflowStartOutput = {
|
|
3
|
+
/**
|
|
4
|
+
* Scheduled workflow definition payload.
|
|
5
|
+
*/
|
|
6
|
+
config: ScheduledFlowStartOutput;
|
|
7
|
+
/**
|
|
8
|
+
* Scheduled workflow start.
|
|
9
|
+
*/
|
|
10
|
+
type?: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export var SurfaceCredentialMode;
|
|
6
|
+
(function (SurfaceCredentialMode) {
|
|
7
|
+
SurfaceCredentialMode["NATIVE"] = "NATIVE";
|
|
8
|
+
SurfaceCredentialMode["USER_PROVIDED"] = "USER_PROVIDED";
|
|
9
|
+
})(SurfaceCredentialMode || (SurfaceCredentialMode = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { SurfaceSetupField } from './SurfaceSetupField.js';
|
|
2
|
+
import type { SurfaceSetupMode } from './SurfaceSetupMode.js';
|
|
3
|
+
import type { SurfaceSetupStep } from './SurfaceSetupStep.js';
|
|
4
|
+
export type SurfaceIntegrationSetupGuide = {
|
|
5
|
+
docs_path?: (string | null);
|
|
6
|
+
fields?: Array<SurfaceSetupField>;
|
|
7
|
+
mode: SurfaceSetupMode;
|
|
8
|
+
notes?: Array<string>;
|
|
9
|
+
steps?: Array<SurfaceSetupStep>;
|
|
10
|
+
summary: string;
|
|
11
|
+
supported?: boolean;
|
|
12
|
+
title: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export var SurfacePlatform;
|
|
6
|
+
(function (SurfacePlatform) {
|
|
7
|
+
SurfacePlatform["SLACK"] = "SLACK";
|
|
8
|
+
SurfacePlatform["TEAMS"] = "TEAMS";
|
|
9
|
+
SurfacePlatform["WHATSAPP"] = "WHATSAPP";
|
|
10
|
+
SurfacePlatform["TELEGRAM"] = "TELEGRAM";
|
|
11
|
+
SurfacePlatform["GMAIL"] = "GMAIL";
|
|
12
|
+
SurfacePlatform["OUTLOOK"] = "OUTLOOK";
|
|
13
|
+
})(SurfacePlatform || (SurfacePlatform = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { SurfaceIntegrationSetupGuide } from './SurfaceIntegrationSetupGuide.js';
|
|
2
|
+
import type { SurfacePlatform } from './SurfacePlatform.js';
|
|
3
|
+
export type SurfacePlatformSetupGuideResponse = {
|
|
4
|
+
docs_path: string;
|
|
5
|
+
integrations?: Array<SurfaceIntegrationSetupGuide>;
|
|
6
|
+
platform: SurfacePlatform;
|
|
7
|
+
summary: string;
|
|
8
|
+
title: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export var SurfaceRoutingScope;
|
|
6
|
+
(function (SurfaceRoutingScope) {
|
|
7
|
+
SurfaceRoutingScope["POD"] = "POD";
|
|
8
|
+
SurfaceRoutingScope["PERSONAL"] = "PERSONAL";
|
|
9
|
+
})(SurfaceRoutingScope || (SurfaceRoutingScope = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { SurfaceSetupFieldSource } from './SurfaceSetupFieldSource.js';
|
|
2
|
+
export type SurfaceSetupField = {
|
|
3
|
+
description: string;
|
|
4
|
+
example?: (string | null);
|
|
5
|
+
label: string;
|
|
6
|
+
name: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
secret?: boolean;
|
|
9
|
+
source: SurfaceSetupFieldSource;
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export var SurfaceSetupFieldSource;
|
|
6
|
+
(function (SurfaceSetupFieldSource) {
|
|
7
|
+
SurfaceSetupFieldSource["CREATE_REQUEST"] = "CREATE_REQUEST";
|
|
8
|
+
SurfaceSetupFieldSource["CREATE_RESPONSE"] = "CREATE_RESPONSE";
|
|
9
|
+
})(SurfaceSetupFieldSource || (SurfaceSetupFieldSource = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export var SurfaceSetupMode;
|
|
6
|
+
(function (SurfaceSetupMode) {
|
|
7
|
+
SurfaceSetupMode["NATIVE"] = "NATIVE";
|
|
8
|
+
SurfaceSetupMode["USER_PROVIDED"] = "USER_PROVIDED";
|
|
9
|
+
SurfaceSetupMode["CONNECTED_ACCOUNT"] = "CONNECTED_ACCOUNT";
|
|
10
|
+
})(SurfaceSetupMode || (SurfaceSetupMode = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export var SurfaceSetupPhase;
|
|
6
|
+
(function (SurfaceSetupPhase) {
|
|
7
|
+
SurfaceSetupPhase["PREPARE"] = "PREPARE";
|
|
8
|
+
SurfaceSetupPhase["CREATE_SURFACE"] = "CREATE_SURFACE";
|
|
9
|
+
SurfaceSetupPhase["CONFIGURE_PROVIDER"] = "CONFIGURE_PROVIDER";
|
|
10
|
+
SurfaceSetupPhase["VERIFY"] = "VERIFY";
|
|
11
|
+
})(SurfaceSetupPhase || (SurfaceSetupPhase = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export var SurfaceWebhookMode;
|
|
6
|
+
(function (SurfaceWebhookMode) {
|
|
7
|
+
SurfaceWebhookMode["PLATFORM"] = "PLATFORM";
|
|
8
|
+
SurfaceWebhookMode["SURFACE"] = "SURFACE";
|
|
9
|
+
})(SurfaceWebhookMode || (SurfaceWebhookMode = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,19 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
1
|
+
import type { GmailSurfaceConfigInput } from './GmailSurfaceConfigInput.js';
|
|
2
|
+
import type { OutlookSurfaceConfigInput } from './OutlookSurfaceConfigInput.js';
|
|
3
|
+
import type { SlackCredentialsInput } from './SlackCredentialsInput.js';
|
|
4
|
+
import type { SlackSurfaceConfigInput } from './SlackSurfaceConfigInput.js';
|
|
5
|
+
import type { SurfaceCredentialMode } from './SurfaceCredentialMode.js';
|
|
6
|
+
import type { SurfaceRoutingScope } from './SurfaceRoutingScope.js';
|
|
7
|
+
import type { TeamsCredentialsInput } from './TeamsCredentialsInput.js';
|
|
8
|
+
import type { TeamsSurfaceConfigInput } from './TeamsSurfaceConfigInput.js';
|
|
9
|
+
import type { TelegramCredentialsInput } from './TelegramCredentialsInput.js';
|
|
10
|
+
import type { TelegramSurfaceConfigInput } from './TelegramSurfaceConfigInput.js';
|
|
11
|
+
import type { WhatsAppCredentialsInput } from './WhatsAppCredentialsInput.js';
|
|
12
|
+
import type { WhatsAppSurfaceConfigInput } from './WhatsAppSurfaceConfigInput.js';
|
|
5
13
|
export type UpdateSurfaceRequest = {
|
|
6
|
-
config
|
|
14
|
+
config?: ((SlackSurfaceConfigInput | TeamsSurfaceConfigInput | WhatsAppSurfaceConfigInput | TelegramSurfaceConfigInput | GmailSurfaceConfigInput | OutlookSurfaceConfigInput) | null);
|
|
15
|
+
credential_mode?: (SurfaceCredentialMode | null);
|
|
16
|
+
credentials?: ((SlackCredentialsInput | TeamsCredentialsInput | WhatsAppCredentialsInput | TelegramCredentialsInput) | null);
|
|
17
|
+
is_active?: (boolean | null);
|
|
18
|
+
routing_scope?: (SurfaceRoutingScope | null);
|
|
7
19
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DataStoreWorkflowStartInput } from './DataStoreWorkflowStartInput.js';
|
|
2
|
+
import type { EventWorkflowStartInput } from './EventWorkflowStartInput.js';
|
|
3
|
+
import type { ManualWorkflowStartInput } from './ManualWorkflowStartInput.js';
|
|
4
|
+
import type { ScheduledWorkflowStartInput } from './ScheduledWorkflowStartInput.js';
|
|
2
5
|
import type { WorkflowInstallMode } from './WorkflowInstallMode.js';
|
|
3
6
|
export type WorkflowCreateRequest = {
|
|
4
7
|
/**
|
|
@@ -20,5 +23,5 @@ export type WorkflowCreateRequest = {
|
|
|
20
23
|
/**
|
|
21
24
|
* Start configuration. If omitted, the workflow can be started manually via `workflow.start`.
|
|
22
25
|
*/
|
|
23
|
-
start?: (
|
|
26
|
+
start?: ((ManualWorkflowStartInput | ScheduledWorkflowStartInput | EventWorkflowStartInput | DataStoreWorkflowStartInput) | null);
|
|
24
27
|
};
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import type { AgentNode } from './AgentNode.js';
|
|
2
|
+
import type { DataStoreWorkflowStartInput } from './DataStoreWorkflowStartInput.js';
|
|
2
3
|
import type { DecisionNode } from './DecisionNode.js';
|
|
3
4
|
import type { EndNode } from './EndNode.js';
|
|
4
|
-
import type {
|
|
5
|
+
import type { EventWorkflowStartInput } from './EventWorkflowStartInput.js';
|
|
5
6
|
import type { FormNode } from './FormNode.js';
|
|
6
7
|
import type { FunctionNode } from './FunctionNode.js';
|
|
7
8
|
import type { LoopNode } from './LoopNode.js';
|
|
9
|
+
import type { ManualWorkflowStartInput } from './ManualWorkflowStartInput.js';
|
|
10
|
+
import type { ScheduledWorkflowStartInput } from './ScheduledWorkflowStartInput.js';
|
|
8
11
|
import type { WaitUntilNode } from './WaitUntilNode.js';
|
|
9
12
|
import type { WorkflowEdge } from './WorkflowEdge.js';
|
|
10
13
|
/**
|
|
@@ -22,5 +25,5 @@ export type WorkflowGraphUpdateRequest = {
|
|
|
22
25
|
/**
|
|
23
26
|
* Optional replacement start configuration stored with the graph.
|
|
24
27
|
*/
|
|
25
|
-
start?: (
|
|
28
|
+
start?: ((ManualWorkflowStartInput | ScheduledWorkflowStartInput | EventWorkflowStartInput | DataStoreWorkflowStartInput) | null);
|
|
26
29
|
};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DataStoreWorkflowStartInput } from './DataStoreWorkflowStartInput.js';
|
|
2
|
+
import type { EventWorkflowStartInput } from './EventWorkflowStartInput.js';
|
|
3
|
+
import type { ManualWorkflowStartInput } from './ManualWorkflowStartInput.js';
|
|
4
|
+
import type { ScheduledWorkflowStartInput } from './ScheduledWorkflowStartInput.js';
|
|
2
5
|
import type { WorkflowInstallMode } from './WorkflowInstallMode.js';
|
|
3
6
|
export type WorkflowUpdateRequest = {
|
|
4
7
|
/**
|
|
@@ -16,5 +19,5 @@ export type WorkflowUpdateRequest = {
|
|
|
16
19
|
/**
|
|
17
20
|
* Updated start trigger configuration.
|
|
18
21
|
*/
|
|
19
|
-
start?: (
|
|
22
|
+
start?: ((ManualWorkflowStartInput | ScheduledWorkflowStartInput | EventWorkflowStartInput | DataStoreWorkflowStartInput) | null);
|
|
20
23
|
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
2
|
+
export declare class AssistantSurfacesIngressService {
|
|
3
|
+
/**
|
|
4
|
+
* Teams Admin Consent Callback
|
|
5
|
+
* @param tenant
|
|
6
|
+
* @param adminConsent
|
|
7
|
+
* @param state
|
|
8
|
+
* @param error
|
|
9
|
+
* @param errorDescription
|
|
10
|
+
* @returns any Successful Response
|
|
11
|
+
* @throws ApiError
|
|
12
|
+
*/
|
|
13
|
+
static assistantSurfaceTeamsAdminConsentCallback(tenant?: (string | null), adminConsent?: (string | null), state?: (string | null), error?: (string | null), errorDescription?: (string | null)): CancelablePromise<any>;
|
|
14
|
+
/**
|
|
15
|
+
* Handle per-surface webhook verification
|
|
16
|
+
* @param surfaceId
|
|
17
|
+
* @returns any Successful Response
|
|
18
|
+
* @throws ApiError
|
|
19
|
+
*/
|
|
20
|
+
static surfaceWebhookHandleSurfaceVerify(surfaceId: string): CancelablePromise<any>;
|
|
21
|
+
/**
|
|
22
|
+
* Handle per-surface webhook
|
|
23
|
+
* Handle webhooks directed at a specific surface.
|
|
24
|
+
*
|
|
25
|
+
* Per-surface webhooks (e.g. /surfaces/webhooks/surface/{uuid}) are used
|
|
26
|
+
* when users provide their own bot credentials (USER_PROVIDED credential mode).
|
|
27
|
+
* @param surfaceId
|
|
28
|
+
* @returns any Successful Response
|
|
29
|
+
* @throws ApiError
|
|
30
|
+
*/
|
|
31
|
+
static surfaceWebhookHandleSurface(surfaceId: string): CancelablePromise<any>;
|
|
32
|
+
/**
|
|
33
|
+
* Verify surface webhook using the platform callback URL
|
|
34
|
+
* Webhook verification endpoint for platforms that require it.
|
|
35
|
+
* @param platform
|
|
36
|
+
* @returns any Successful Response
|
|
37
|
+
* @throws ApiError
|
|
38
|
+
*/
|
|
39
|
+
static surfaceWebhookVerify(platform: string): CancelablePromise<any>;
|
|
40
|
+
/**
|
|
41
|
+
* Handle platform-level surface webhook
|
|
42
|
+
* Handle webhooks from platform-level native integration URLs.
|
|
43
|
+
*
|
|
44
|
+
* Platform webhooks (e.g. /surfaces/webhooks/slack) are used when
|
|
45
|
+
* Lemma's own app handles the integration (NATIVE credential mode).
|
|
46
|
+
* @param platform
|
|
47
|
+
* @returns any Successful Response
|
|
48
|
+
* @throws ApiError
|
|
49
|
+
*/
|
|
50
|
+
static surfaceWebhookHandlePlatform(platform: string): CancelablePromise<any>;
|
|
51
|
+
}
|