lemma-sdk 0.2.33 → 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 +83 -31
- package/dist/browser/lemma-client.js +70 -15
- package/dist/index.d.ts +3 -1
- package/dist/index.js +2 -1
- 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/{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 +4 -4
- package/dist/openapi_client/services/DesksService.js +6 -6
- 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 +6 -0
- package/dist/react/index.js +3 -0
- package/dist/react/useAddPodMember.d.ts +22 -0
- package/dist/react/useAddPodMember.js +51 -0
- 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 +2 -0
- package/package.json +1 -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,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
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI.js';
|
|
2
|
+
import { request as __request } from '../core/request.js';
|
|
3
|
+
export class AssistantSurfacesIngressService {
|
|
4
|
+
/**
|
|
5
|
+
* Teams Admin Consent Callback
|
|
6
|
+
* @param tenant
|
|
7
|
+
* @param adminConsent
|
|
8
|
+
* @param state
|
|
9
|
+
* @param error
|
|
10
|
+
* @param errorDescription
|
|
11
|
+
* @returns any Successful Response
|
|
12
|
+
* @throws ApiError
|
|
13
|
+
*/
|
|
14
|
+
static assistantSurfaceTeamsAdminConsentCallback(tenant, adminConsent, state, error, errorDescription) {
|
|
15
|
+
return __request(OpenAPI, {
|
|
16
|
+
method: 'GET',
|
|
17
|
+
url: '/surfaces/teams/admin-consent/callback',
|
|
18
|
+
query: {
|
|
19
|
+
'tenant': tenant,
|
|
20
|
+
'admin_consent': adminConsent,
|
|
21
|
+
'state': state,
|
|
22
|
+
'error': error,
|
|
23
|
+
'error_description': errorDescription,
|
|
24
|
+
},
|
|
25
|
+
errors: {
|
|
26
|
+
422: `Validation Error`,
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Handle per-surface webhook verification
|
|
32
|
+
* @param surfaceId
|
|
33
|
+
* @returns any Successful Response
|
|
34
|
+
* @throws ApiError
|
|
35
|
+
*/
|
|
36
|
+
static surfaceWebhookHandleSurfaceVerify(surfaceId) {
|
|
37
|
+
return __request(OpenAPI, {
|
|
38
|
+
method: 'GET',
|
|
39
|
+
url: '/surfaces/webhooks/surface/{surface_id}',
|
|
40
|
+
path: {
|
|
41
|
+
'surface_id': surfaceId,
|
|
42
|
+
},
|
|
43
|
+
errors: {
|
|
44
|
+
422: `Validation Error`,
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Handle per-surface webhook
|
|
50
|
+
* Handle webhooks directed at a specific surface.
|
|
51
|
+
*
|
|
52
|
+
* Per-surface webhooks (e.g. /surfaces/webhooks/surface/{uuid}) are used
|
|
53
|
+
* when users provide their own bot credentials (USER_PROVIDED credential mode).
|
|
54
|
+
* @param surfaceId
|
|
55
|
+
* @returns any Successful Response
|
|
56
|
+
* @throws ApiError
|
|
57
|
+
*/
|
|
58
|
+
static surfaceWebhookHandleSurface(surfaceId) {
|
|
59
|
+
return __request(OpenAPI, {
|
|
60
|
+
method: 'POST',
|
|
61
|
+
url: '/surfaces/webhooks/surface/{surface_id}',
|
|
62
|
+
path: {
|
|
63
|
+
'surface_id': surfaceId,
|
|
64
|
+
},
|
|
65
|
+
errors: {
|
|
66
|
+
422: `Validation Error`,
|
|
67
|
+
},
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Verify surface webhook using the platform callback URL
|
|
72
|
+
* Webhook verification endpoint for platforms that require it.
|
|
73
|
+
* @param platform
|
|
74
|
+
* @returns any Successful Response
|
|
75
|
+
* @throws ApiError
|
|
76
|
+
*/
|
|
77
|
+
static surfaceWebhookVerify(platform) {
|
|
78
|
+
return __request(OpenAPI, {
|
|
79
|
+
method: 'GET',
|
|
80
|
+
url: '/surfaces/webhooks/{platform}',
|
|
81
|
+
path: {
|
|
82
|
+
'platform': platform,
|
|
83
|
+
},
|
|
84
|
+
errors: {
|
|
85
|
+
422: `Validation Error`,
|
|
86
|
+
},
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Handle platform-level surface webhook
|
|
91
|
+
* Handle webhooks from platform-level native integration URLs.
|
|
92
|
+
*
|
|
93
|
+
* Platform webhooks (e.g. /surfaces/webhooks/slack) are used when
|
|
94
|
+
* Lemma's own app handles the integration (NATIVE credential mode).
|
|
95
|
+
* @param platform
|
|
96
|
+
* @returns any Successful Response
|
|
97
|
+
* @throws ApiError
|
|
98
|
+
*/
|
|
99
|
+
static surfaceWebhookHandlePlatform(platform) {
|
|
100
|
+
return __request(OpenAPI, {
|
|
101
|
+
method: 'POST',
|
|
102
|
+
url: '/surfaces/webhooks/{platform}',
|
|
103
|
+
path: {
|
|
104
|
+
'platform': platform,
|
|
105
|
+
},
|
|
106
|
+
errors: {
|
|
107
|
+
422: `Validation Error`,
|
|
108
|
+
},
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import type { AdminConsentInfoResponse } from '../models/AdminConsentInfoResponse.js';
|
|
1
2
|
import type { AssistantSurfaceListResponse } from '../models/AssistantSurfaceListResponse.js';
|
|
2
3
|
import type { CreateSurfaceRequest } from '../models/CreateSurfaceRequest.js';
|
|
4
|
+
import type { SurfacePlatformSetupGuideResponse } from '../models/SurfacePlatformSetupGuideResponse.js';
|
|
3
5
|
import type { ToggleSurfaceRequest } from '../models/ToggleSurfaceRequest.js';
|
|
4
6
|
import type { UpdateSurfaceRequest } from '../models/UpdateSurfaceRequest.js';
|
|
5
7
|
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
6
8
|
export declare class AssistantSurfacesService {
|
|
7
9
|
/**
|
|
8
10
|
* List Surfaces
|
|
9
|
-
* List configured surfaces in a pod.
|
|
10
11
|
* @param podId
|
|
11
12
|
* @param limit
|
|
12
13
|
* @param pageToken
|
|
@@ -16,16 +17,22 @@ export declare class AssistantSurfacesService {
|
|
|
16
17
|
static assistantSurfaceList(podId: string, limit?: number, pageToken?: (string | null)): CancelablePromise<AssistantSurfaceListResponse>;
|
|
17
18
|
/**
|
|
18
19
|
* Create Surface
|
|
19
|
-
* Create a new surface for an assistant.
|
|
20
20
|
* @param podId
|
|
21
21
|
* @param requestBody
|
|
22
22
|
* @returns any Successful Response
|
|
23
23
|
* @throws ApiError
|
|
24
24
|
*/
|
|
25
25
|
static assistantSurfaceCreate(podId: string, requestBody: CreateSurfaceRequest): CancelablePromise<any>;
|
|
26
|
+
/**
|
|
27
|
+
* Get Surface Platform Checklist
|
|
28
|
+
* @param podId
|
|
29
|
+
* @param platform
|
|
30
|
+
* @returns SurfacePlatformSetupGuideResponse Successful Response
|
|
31
|
+
* @throws ApiError
|
|
32
|
+
*/
|
|
33
|
+
static assistantSurfacePlatformChecklist(podId: string, platform: string): CancelablePromise<SurfacePlatformSetupGuideResponse>;
|
|
26
34
|
/**
|
|
27
35
|
* Get Surface
|
|
28
|
-
* Get a specific surface configuration.
|
|
29
36
|
* @param podId
|
|
30
37
|
* @param surfaceId
|
|
31
38
|
* @returns any Successful Response
|
|
@@ -34,17 +41,23 @@ export declare class AssistantSurfacesService {
|
|
|
34
41
|
static assistantSurfaceGet(podId: string, surfaceId: string): CancelablePromise<any>;
|
|
35
42
|
/**
|
|
36
43
|
* Update Surface
|
|
37
|
-
* Update a surface configuration.
|
|
38
44
|
* @param podId
|
|
39
45
|
* @param surfaceId
|
|
40
46
|
* @param requestBody
|
|
41
47
|
* @returns any Successful Response
|
|
42
48
|
* @throws ApiError
|
|
43
49
|
*/
|
|
44
|
-
static
|
|
50
|
+
static assistantSurfaceUpdate(podId: string, surfaceId: string, requestBody: UpdateSurfaceRequest): CancelablePromise<any>;
|
|
51
|
+
/**
|
|
52
|
+
* Get Admin Consent Info
|
|
53
|
+
* @param podId
|
|
54
|
+
* @param surfaceId
|
|
55
|
+
* @returns AdminConsentInfoResponse Successful Response
|
|
56
|
+
* @throws ApiError
|
|
57
|
+
*/
|
|
58
|
+
static assistantSurfaceAdminConsentInfo(podId: string, surfaceId: string): CancelablePromise<AdminConsentInfoResponse>;
|
|
45
59
|
/**
|
|
46
60
|
* Toggle Surface
|
|
47
|
-
* Toggle a surface active state.
|
|
48
61
|
* @param podId
|
|
49
62
|
* @param surfaceId
|
|
50
63
|
* @param requestBody
|
|
@@ -52,4 +65,12 @@ export declare class AssistantSurfacesService {
|
|
|
52
65
|
* @throws ApiError
|
|
53
66
|
*/
|
|
54
67
|
static assistantSurfaceToggle(podId: string, surfaceId: string, requestBody: ToggleSurfaceRequest): CancelablePromise<any>;
|
|
68
|
+
/**
|
|
69
|
+
* Get Webhook Url
|
|
70
|
+
* @param podId
|
|
71
|
+
* @param surfaceId
|
|
72
|
+
* @returns any Successful Response
|
|
73
|
+
* @throws ApiError
|
|
74
|
+
*/
|
|
75
|
+
static assistantSurfaceWebhookUrl(podId: string, surfaceId: string): CancelablePromise<any>;
|
|
55
76
|
}
|