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
|
@@ -6,9 +6,11 @@ export { ApiError } from './core/ApiError.js';
|
|
|
6
6
|
export { CancelablePromise, CancelError } from './core/CancelablePromise.js';
|
|
7
7
|
export { OpenAPI } from './core/OpenAPI.js';
|
|
8
8
|
export { ApplicationMode } from './models/ApplicationMode.js';
|
|
9
|
+
export { AssistantSurfaceStatus } from './models/AssistantSurfaceStatus.js';
|
|
9
10
|
export { AvailableModels } from './models/AvailableModels.js';
|
|
10
11
|
export { BillingInterval } from './models/BillingInterval.js';
|
|
11
12
|
export { ConversationStatus } from './models/ConversationStatus.js';
|
|
13
|
+
export { ConversationType } from './models/ConversationType.js';
|
|
12
14
|
export { CredentialTypes } from './models/CredentialTypes.js';
|
|
13
15
|
export { DatastoreDataType } from './models/DatastoreDataType.js';
|
|
14
16
|
export { DatastoreOperation } from './models/DatastoreOperation.js';
|
|
@@ -17,7 +19,6 @@ export { FileInfo } from './models/FileInfo.js';
|
|
|
17
19
|
export { FileSearchScopeMode } from './models/FileSearchScopeMode.js';
|
|
18
20
|
export { FileVisibility } from './models/FileVisibility.js';
|
|
19
21
|
export { FlowRunStatus } from './models/FlowRunStatus.js';
|
|
20
|
-
export { FlowStartType } from './models/FlowStartType.js';
|
|
21
22
|
export { FunctionRunStatus } from './models/FunctionRunStatus.js';
|
|
22
23
|
export { FunctionStatus } from './models/FunctionStatus.js';
|
|
23
24
|
export { FunctionType } from './models/FunctionType.js';
|
|
@@ -30,6 +31,13 @@ export { ResourceType } from './models/ResourceType.js';
|
|
|
30
31
|
export { ScheduledFlowStartType } from './models/ScheduledFlowStartType.js';
|
|
31
32
|
export { SearchMethod } from './models/SearchMethod.js';
|
|
32
33
|
export { SubscriptionStatus } from './models/SubscriptionStatus.js';
|
|
34
|
+
export { SurfaceCredentialMode } from './models/SurfaceCredentialMode.js';
|
|
35
|
+
export { SurfacePlatform } from './models/SurfacePlatform.js';
|
|
36
|
+
export { SurfaceRoutingScope } from './models/SurfaceRoutingScope.js';
|
|
37
|
+
export { SurfaceSetupFieldSource } from './models/SurfaceSetupFieldSource.js';
|
|
38
|
+
export { SurfaceSetupMode } from './models/SurfaceSetupMode.js';
|
|
39
|
+
export { SurfaceSetupPhase } from './models/SurfaceSetupPhase.js';
|
|
40
|
+
export { SurfaceWebhookMode } from './models/SurfaceWebhookMode.js';
|
|
33
41
|
export { TableAccessMode } from './models/TableAccessMode.js';
|
|
34
42
|
export { TaskStatus } from './models/TaskStatus.js';
|
|
35
43
|
export { ToolSet } from './models/ToolSet.js';
|
|
@@ -41,6 +49,7 @@ export { AgentToolsService } from './services/AgentToolsService.js';
|
|
|
41
49
|
export { ApplicationsService } from './services/ApplicationsService.js';
|
|
42
50
|
export { AssistantsService } from './services/AssistantsService.js';
|
|
43
51
|
export { AssistantSurfacesService } from './services/AssistantSurfacesService.js';
|
|
52
|
+
export { AssistantSurfacesIngressService } from './services/AssistantSurfacesIngressService.js';
|
|
44
53
|
export { AuthService } from './services/AuthService.js';
|
|
45
54
|
export { AuthorizationService } from './services/AuthorizationService.js';
|
|
46
55
|
export { BillingSubscriptionsService } from './services/BillingSubscriptionsService.js';
|
|
@@ -57,7 +66,6 @@ export { OrganizationsService } from './services/OrganizationsService.js';
|
|
|
57
66
|
export { PodJoinRequestsService } from './services/PodJoinRequestsService.js';
|
|
58
67
|
export { PodMembersService } from './services/PodMembersService.js';
|
|
59
68
|
export { PodsService } from './services/PodsService.js';
|
|
60
|
-
export { PublicDesksService } from './services/PublicDesksService.js';
|
|
61
69
|
export { QueryService } from './services/QueryService.js';
|
|
62
70
|
export { RecordsService } from './services/RecordsService.js';
|
|
63
71
|
export { TablesService } from './services/TablesService.js';
|
|
@@ -1,9 +1,24 @@
|
|
|
1
|
+
import type { AssistantSurfaceStatus } from './AssistantSurfaceStatus.js';
|
|
2
|
+
import type { GmailSurfaceConfig } from './GmailSurfaceConfig.js';
|
|
3
|
+
import type { OutlookSurfaceConfig } from './OutlookSurfaceConfig.js';
|
|
4
|
+
import type { SlackSurfaceConfig } from './SlackSurfaceConfig.js';
|
|
5
|
+
import type { SurfaceCredentialMode } from './SurfaceCredentialMode.js';
|
|
6
|
+
import type { SurfaceRoutingScope } from './SurfaceRoutingScope.js';
|
|
7
|
+
import type { SurfaceWebhookMode } from './SurfaceWebhookMode.js';
|
|
8
|
+
import type { TeamsSurfaceConfig } from './TeamsSurfaceConfig.js';
|
|
9
|
+
import type { TelegramSurfaceConfig } from './TelegramSurfaceConfig.js';
|
|
10
|
+
import type { WhatsAppSurfaceConfig } from './WhatsAppSurfaceConfig.js';
|
|
1
11
|
export type AssistantSurfaceResponse = {
|
|
2
12
|
assistant_id: string;
|
|
3
13
|
assistant_name?: (string | null);
|
|
4
|
-
config:
|
|
14
|
+
config: (SlackSurfaceConfig | TeamsSurfaceConfig | WhatsAppSurfaceConfig | TelegramSurfaceConfig | GmailSurfaceConfig | OutlookSurfaceConfig);
|
|
15
|
+
credential_mode?: SurfaceCredentialMode;
|
|
5
16
|
id: string;
|
|
6
17
|
is_active: boolean;
|
|
7
18
|
pod_id: string;
|
|
19
|
+
routing_scope?: SurfaceRoutingScope;
|
|
20
|
+
status?: AssistantSurfaceStatus;
|
|
8
21
|
surface_type: string;
|
|
22
|
+
webhook_mode?: SurfaceWebhookMode;
|
|
23
|
+
webhook_url?: (string | null);
|
|
9
24
|
};
|
|
@@ -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 AssistantSurfaceStatus;
|
|
6
|
+
(function (AssistantSurfaceStatus) {
|
|
7
|
+
AssistantSurfaceStatus["ACTIVE"] = "ACTIVE";
|
|
8
|
+
AssistantSurfaceStatus["PENDING_ADMIN_CONSENT"] = "PENDING_ADMIN_CONSENT";
|
|
9
|
+
AssistantSurfaceStatus["INACTIVE"] = "INACTIVE";
|
|
10
|
+
})(AssistantSurfaceStatus || (AssistantSurfaceStatus = {}));
|
|
@@ -8,8 +8,12 @@ import type { ToolCallResponse } from './ToolCallResponse.js';
|
|
|
8
8
|
*/
|
|
9
9
|
export type ConversationMessageResponse = {
|
|
10
10
|
content: (NotificationContent | TextContent | ThinkingContent | ToolCallRequest | ToolCallResponse);
|
|
11
|
+
conversation_id?: (string | null);
|
|
11
12
|
created_at: string;
|
|
13
|
+
external_message_id?: (string | null);
|
|
14
|
+
external_user_id?: (string | null);
|
|
12
15
|
id: string;
|
|
13
16
|
metadata?: (Record<string, any> | null);
|
|
14
17
|
role: string;
|
|
18
|
+
user_id?: (string | null);
|
|
15
19
|
};
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { AvailableModels } from './AvailableModels.js';
|
|
2
2
|
import type { ConversationStatus } from './ConversationStatus.js';
|
|
3
|
+
import type { ConversationType } from './ConversationType.js';
|
|
3
4
|
/**
|
|
4
5
|
* Response for conversation.
|
|
5
6
|
*/
|
|
6
7
|
export type ConversationResponse = {
|
|
7
8
|
assistant_id: (string | null);
|
|
8
9
|
assistant_name?: (string | null);
|
|
10
|
+
conversation_type?: ConversationType;
|
|
9
11
|
created_at: any;
|
|
10
12
|
external_channel_id?: (string | null);
|
|
11
13
|
external_thread_id?: (string | null);
|
|
@@ -15,6 +17,7 @@ export type ConversationResponse = {
|
|
|
15
17
|
organization_id?: (string | null);
|
|
16
18
|
pod_id: (string | null);
|
|
17
19
|
status: ConversationStatus;
|
|
20
|
+
surface_installation_id?: (string | null);
|
|
18
21
|
surface_type?: (string | null);
|
|
19
22
|
title: (string | null);
|
|
20
23
|
updated_at: any;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* Conversation channel/source classification.
|
|
7
|
+
*/
|
|
8
|
+
export var ConversationType;
|
|
9
|
+
(function (ConversationType) {
|
|
10
|
+
ConversationType["INTERNAL"] = "INTERNAL";
|
|
11
|
+
ConversationType["EXTERNAL_DM"] = "EXTERNAL_DM";
|
|
12
|
+
ConversationType["EXTERNAL_GROUP"] = "EXTERNAL_GROUP";
|
|
13
|
+
})(ConversationType || (ConversationType = {}));
|
|
@@ -1,8 +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 CreateSurfaceRequest = {
|
|
6
14
|
assistant_name: string;
|
|
7
|
-
config: (
|
|
15
|
+
config: (SlackSurfaceConfigInput | TeamsSurfaceConfigInput | WhatsAppSurfaceConfigInput | TelegramSurfaceConfigInput | GmailSurfaceConfigInput | OutlookSurfaceConfigInput);
|
|
16
|
+
credential_mode?: SurfaceCredentialMode;
|
|
17
|
+
credentials?: ((SlackCredentialsInput | TeamsCredentialsInput | WhatsAppCredentialsInput | TelegramCredentialsInput) | null);
|
|
18
|
+
routing_scope?: SurfaceRoutingScope;
|
|
8
19
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DatastoreOperation } from './DatastoreOperation.js';
|
|
2
|
-
export type
|
|
2
|
+
export type DataStoreFlowStartInput = {
|
|
3
3
|
/**
|
|
4
4
|
* Datastore operations that should trigger this flow. Accepted values: INSERT, UPDATE, DELETE (aliases: WRITE, CREATE). Empty means all mutations for the selected table.
|
|
5
5
|
*/
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DatastoreOperation } from './DatastoreOperation.js';
|
|
2
|
+
export type DataStoreFlowStartOutput = {
|
|
3
|
+
/**
|
|
4
|
+
* Datastore operations that should trigger this flow. Accepted values: INSERT, UPDATE, DELETE (aliases: WRITE, CREATE). Empty means all mutations for the selected table.
|
|
5
|
+
*/
|
|
6
|
+
operations?: Array<DatastoreOperation>;
|
|
7
|
+
/**
|
|
8
|
+
* Table name inside the datastore to subscribe to.
|
|
9
|
+
*/
|
|
10
|
+
table_name: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DataStoreFlowStartInput } from './DataStoreFlowStartInput.js';
|
|
2
|
+
export type DataStoreWorkflowStartInput = {
|
|
3
|
+
/**
|
|
4
|
+
* Datastore trigger configuration for this workflow.
|
|
5
|
+
*/
|
|
6
|
+
config: DataStoreFlowStartInput;
|
|
7
|
+
/**
|
|
8
|
+
* Datastore-event workflow start.
|
|
9
|
+
*/
|
|
10
|
+
type?: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DataStoreFlowStartOutput } from './DataStoreFlowStartOutput.js';
|
|
2
|
+
export type DataStoreWorkflowStartOutput = {
|
|
3
|
+
/**
|
|
4
|
+
* Datastore trigger configuration for this workflow.
|
|
5
|
+
*/
|
|
6
|
+
config: DataStoreFlowStartOutput;
|
|
7
|
+
/**
|
|
8
|
+
* Datastore-event workflow start.
|
|
9
|
+
*/
|
|
10
|
+
type?: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type EventFlowStartOutput = {
|
|
2
|
+
/**
|
|
3
|
+
* Integration application identifier.
|
|
4
|
+
*/
|
|
5
|
+
application_id: string;
|
|
6
|
+
/**
|
|
7
|
+
* Integration trigger identifier to subscribe to.
|
|
8
|
+
*/
|
|
9
|
+
application_trigger_id: string;
|
|
10
|
+
/**
|
|
11
|
+
* Optional LLM filter instruction executed before flow continuation.
|
|
12
|
+
*/
|
|
13
|
+
filter_instruction?: (string | null);
|
|
14
|
+
/**
|
|
15
|
+
* Optional expected schema for filter output.
|
|
16
|
+
*/
|
|
17
|
+
filter_output_schema?: (Record<string, any> | null);
|
|
18
|
+
trigger_config?: Record<string, any>;
|
|
19
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { EventFlowStartInput } from './EventFlowStartInput.js';
|
|
2
|
+
export type EventWorkflowStartInput = {
|
|
3
|
+
/**
|
|
4
|
+
* Integration trigger configuration for this workflow.
|
|
5
|
+
*/
|
|
6
|
+
config: EventFlowStartInput;
|
|
7
|
+
/**
|
|
8
|
+
* Event-triggered workflow start.
|
|
9
|
+
*/
|
|
10
|
+
type?: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { EventFlowStartOutput } from './EventFlowStartOutput.js';
|
|
2
|
+
export type EventWorkflowStartOutput = {
|
|
3
|
+
/**
|
|
4
|
+
* Integration trigger configuration for this workflow.
|
|
5
|
+
*/
|
|
6
|
+
config: EventFlowStartOutput;
|
|
7
|
+
/**
|
|
8
|
+
* Event-triggered workflow start.
|
|
9
|
+
*/
|
|
10
|
+
type?: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { DataStoreWorkflowStartOutput } from './DataStoreWorkflowStartOutput.js';
|
|
2
|
+
import type { EventWorkflowStartOutput } from './EventWorkflowStartOutput.js';
|
|
3
|
+
import type { ManualWorkflowStartOutput } from './ManualWorkflowStartOutput.js';
|
|
4
|
+
import type { ScheduledWorkflowStartOutput } from './ScheduledWorkflowStartOutput.js';
|
|
5
|
+
export type FlowInstallResponse = {
|
|
6
|
+
created_at: string;
|
|
7
|
+
flow_id: string;
|
|
8
|
+
flow_start: (ManualWorkflowStartOutput | ScheduledWorkflowStartOutput | EventWorkflowStartOutput | DataStoreWorkflowStartOutput);
|
|
9
|
+
id: string;
|
|
10
|
+
is_active?: boolean;
|
|
11
|
+
pod_id: string;
|
|
12
|
+
trigger_id?: (string | null);
|
|
13
|
+
updated_at: string;
|
|
14
|
+
user_id: string;
|
|
15
|
+
};
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import type { AgentNodeResponse } from './AgentNodeResponse.js';
|
|
2
|
+
import type { DataStoreWorkflowStartOutput } from './DataStoreWorkflowStartOutput.js';
|
|
2
3
|
import type { DecisionNodeResponse } from './DecisionNodeResponse.js';
|
|
3
4
|
import type { EndNodeResponse } from './EndNodeResponse.js';
|
|
4
|
-
import type {
|
|
5
|
+
import type { EventWorkflowStartOutput } from './EventWorkflowStartOutput.js';
|
|
5
6
|
import type { FormNodeResponse } from './FormNodeResponse.js';
|
|
6
7
|
import type { FunctionNodeResponse } from './FunctionNodeResponse.js';
|
|
7
8
|
import type { LoopNodeResponse } from './LoopNodeResponse.js';
|
|
9
|
+
import type { ManualWorkflowStartOutput } from './ManualWorkflowStartOutput.js';
|
|
10
|
+
import type { ScheduledWorkflowStartOutput } from './ScheduledWorkflowStartOutput.js';
|
|
8
11
|
import type { WaitUntilNodeResponse } from './WaitUntilNodeResponse.js';
|
|
9
12
|
import type { WorkflowEdge } from './WorkflowEdge.js';
|
|
10
13
|
import type { WorkflowInstallMode } from './WorkflowInstallMode.js';
|
|
@@ -19,6 +22,6 @@ export type FlowResponse = {
|
|
|
19
22
|
name: string;
|
|
20
23
|
nodes?: Array<(FormNodeResponse | AgentNodeResponse | FunctionNodeResponse | DecisionNodeResponse | LoopNodeResponse | WaitUntilNodeResponse | EndNodeResponse)>;
|
|
21
24
|
pod_id: string;
|
|
22
|
-
start?: (
|
|
25
|
+
start?: ((ManualWorkflowStartOutput | ScheduledWorkflowStartOutput | EventWorkflowStartOutput | DataStoreWorkflowStartOutput) | null);
|
|
23
26
|
updated_at?: (string | null);
|
|
24
27
|
};
|
|
@@ -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 {};
|
|
@@ -10,6 +10,8 @@ export type OrganizationInvitationResponse = {
|
|
|
10
10
|
expires_at: string;
|
|
11
11
|
id: string;
|
|
12
12
|
organization_id: string;
|
|
13
|
+
pod_id?: (string | null);
|
|
14
|
+
pod_role?: (string | null);
|
|
13
15
|
revoked_at?: (string | null);
|
|
14
16
|
role: OrganizationRole;
|
|
15
17
|
status: OrganizationInvitationStatus;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 = {}));
|