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.
Files changed (171) hide show
  1. package/README.md +190 -54
  2. package/dist/browser/lemma-client.js +84 -14
  3. package/dist/index.d.ts +3 -1
  4. package/dist/index.js +2 -1
  5. package/dist/namespaces/desks.d.ts +5 -2
  6. package/dist/namespaces/desks.js +5 -2
  7. package/dist/namespaces/files.d.ts +11 -0
  8. package/dist/namespaces/files.js +12 -0
  9. package/dist/namespaces/pod-surfaces.js +1 -1
  10. package/dist/namespaces/workflows.d.ts +1 -1
  11. package/dist/openapi_client/index.d.ts +50 -12
  12. package/dist/openapi_client/index.js +10 -2
  13. package/dist/openapi_client/models/AdminConsentInfoResponse.d.ts +6 -0
  14. package/dist/openapi_client/models/AssistantSurfaceResponse.d.ts +16 -1
  15. package/dist/openapi_client/models/AssistantSurfaceStatus.d.ts +5 -0
  16. package/dist/openapi_client/models/AssistantSurfaceStatus.js +10 -0
  17. package/dist/openapi_client/models/ConversationMessageResponse.d.ts +4 -0
  18. package/dist/openapi_client/models/ConversationResponse.d.ts +3 -0
  19. package/dist/openapi_client/models/ConversationType.d.ts +8 -0
  20. package/dist/openapi_client/models/ConversationType.js +13 -0
  21. package/dist/openapi_client/models/CreateSurfaceRequest.d.ts +16 -5
  22. package/dist/openapi_client/models/{DataStoreFlowStart.d.ts → DataStoreFlowStartInput.d.ts} +1 -1
  23. package/dist/openapi_client/models/DataStoreFlowStartOutput.d.ts +11 -0
  24. package/dist/openapi_client/models/DataStoreWorkflowStartInput.d.ts +11 -0
  25. package/dist/openapi_client/models/DataStoreWorkflowStartOutput.d.ts +11 -0
  26. package/dist/openapi_client/models/DeskBundleUploadRequest.d.ts +1 -1
  27. package/dist/openapi_client/models/{EventFlowStart.d.ts → EventFlowStartInput.d.ts} +1 -1
  28. package/dist/openapi_client/models/EventFlowStartOutput.d.ts +19 -0
  29. package/dist/openapi_client/models/EventWorkflowStartInput.d.ts +11 -0
  30. package/dist/openapi_client/models/EventWorkflowStartOutput.d.ts +11 -0
  31. package/dist/openapi_client/models/FlowInstallResponse.d.ts +15 -0
  32. package/dist/openapi_client/models/FlowResponse.d.ts +5 -2
  33. package/dist/openapi_client/models/GmailSurfaceConfig.d.ts +7 -0
  34. package/dist/openapi_client/models/GmailSurfaceConfig.js +1 -0
  35. package/dist/openapi_client/models/GmailSurfaceConfigInput.d.ts +4 -0
  36. package/dist/openapi_client/models/GmailSurfaceConfigInput.js +1 -0
  37. package/dist/openapi_client/models/GrantPermissionRequest.d.ts +6 -0
  38. package/dist/openapi_client/models/GrantPermissionRequest.js +1 -0
  39. package/dist/openapi_client/models/ManualWorkflowStartInput.d.ts +10 -0
  40. package/dist/openapi_client/models/ManualWorkflowStartInput.js +1 -0
  41. package/dist/openapi_client/models/ManualWorkflowStartOutput.d.ts +10 -0
  42. package/dist/openapi_client/models/ManualWorkflowStartOutput.js +1 -0
  43. package/dist/openapi_client/models/OrganizationInvitationRequest.d.ts +2 -0
  44. package/dist/openapi_client/models/OrganizationInvitationResponse.d.ts +2 -0
  45. package/dist/openapi_client/models/OutlookSurfaceConfig.d.ts +7 -0
  46. package/dist/openapi_client/models/OutlookSurfaceConfig.js +1 -0
  47. package/dist/openapi_client/models/OutlookSurfaceConfigInput.d.ts +4 -0
  48. package/dist/openapi_client/models/OutlookSurfaceConfigInput.js +1 -0
  49. package/dist/openapi_client/models/ResourcePermissionListResponse.d.ts +4 -0
  50. package/dist/openapi_client/models/ResourcePermissionListResponse.js +1 -0
  51. package/dist/openapi_client/models/ResourcePermissionResponse.d.ts +12 -0
  52. package/dist/openapi_client/models/ResourcePermissionResponse.js +1 -0
  53. package/dist/openapi_client/models/{ScheduledFlowStart.d.ts → ScheduledFlowStartInput.d.ts} +1 -1
  54. package/dist/openapi_client/models/ScheduledFlowStartInput.js +1 -0
  55. package/dist/openapi_client/models/ScheduledFlowStartOutput.d.ts +7 -0
  56. package/dist/openapi_client/models/ScheduledFlowStartOutput.js +1 -0
  57. package/dist/openapi_client/models/ScheduledWorkflowStartInput.d.ts +11 -0
  58. package/dist/openapi_client/models/ScheduledWorkflowStartInput.js +1 -0
  59. package/dist/openapi_client/models/ScheduledWorkflowStartOutput.d.ts +11 -0
  60. package/dist/openapi_client/models/ScheduledWorkflowStartOutput.js +1 -0
  61. package/dist/openapi_client/models/SetVisibilityRequest.d.ts +3 -0
  62. package/dist/openapi_client/models/SetVisibilityRequest.js +1 -0
  63. package/dist/openapi_client/models/SlackCredentialsInput.d.ts +5 -0
  64. package/dist/openapi_client/models/SlackCredentialsInput.js +1 -0
  65. package/dist/openapi_client/models/SlackSurfaceConfig.d.ts +10 -0
  66. package/dist/openapi_client/models/SlackSurfaceConfig.js +1 -0
  67. package/dist/openapi_client/models/{SlackSurfaceConfigCreate.d.ts → SlackSurfaceConfigInput.d.ts} +1 -1
  68. package/dist/openapi_client/models/SlackSurfaceConfigInput.js +1 -0
  69. package/dist/openapi_client/models/SurfaceCredentialMode.d.ts +4 -0
  70. package/dist/openapi_client/models/SurfaceCredentialMode.js +9 -0
  71. package/dist/openapi_client/models/SurfaceIntegrationSetupGuide.d.ts +13 -0
  72. package/dist/openapi_client/models/SurfaceIntegrationSetupGuide.js +1 -0
  73. package/dist/openapi_client/models/SurfacePlatform.d.ts +8 -0
  74. package/dist/openapi_client/models/SurfacePlatform.js +13 -0
  75. package/dist/openapi_client/models/SurfacePlatformSetupGuideResponse.d.ts +9 -0
  76. package/dist/openapi_client/models/SurfacePlatformSetupGuideResponse.js +1 -0
  77. package/dist/openapi_client/models/SurfaceRoutingScope.d.ts +4 -0
  78. package/dist/openapi_client/models/SurfaceRoutingScope.js +9 -0
  79. package/dist/openapi_client/models/SurfaceSetupField.d.ts +10 -0
  80. package/dist/openapi_client/models/SurfaceSetupField.js +1 -0
  81. package/dist/openapi_client/models/SurfaceSetupFieldSource.d.ts +4 -0
  82. package/dist/openapi_client/models/SurfaceSetupFieldSource.js +9 -0
  83. package/dist/openapi_client/models/SurfaceSetupMode.d.ts +5 -0
  84. package/dist/openapi_client/models/SurfaceSetupMode.js +10 -0
  85. package/dist/openapi_client/models/SurfaceSetupPhase.d.ts +6 -0
  86. package/dist/openapi_client/models/SurfaceSetupPhase.js +11 -0
  87. package/dist/openapi_client/models/SurfaceSetupStep.d.ts +6 -0
  88. package/dist/openapi_client/models/SurfaceSetupStep.js +1 -0
  89. package/dist/openapi_client/models/SurfaceWebhookMode.d.ts +4 -0
  90. package/dist/openapi_client/models/SurfaceWebhookMode.js +9 -0
  91. package/dist/openapi_client/models/TeamsCredentialsInput.d.ts +6 -0
  92. package/dist/openapi_client/models/TeamsCredentialsInput.js +1 -0
  93. package/dist/openapi_client/models/TeamsSurfaceConfig.d.ts +9 -0
  94. package/dist/openapi_client/models/TeamsSurfaceConfig.js +1 -0
  95. package/dist/openapi_client/models/{TeamsSurfaceConfigCreate.d.ts → TeamsSurfaceConfigInput.d.ts} +1 -1
  96. package/dist/openapi_client/models/TeamsSurfaceConfigInput.js +1 -0
  97. package/dist/openapi_client/models/TelegramCredentialsInput.d.ts +5 -0
  98. package/dist/openapi_client/models/TelegramCredentialsInput.js +1 -0
  99. package/dist/openapi_client/models/TelegramSurfaceConfig.d.ts +6 -0
  100. package/dist/openapi_client/models/TelegramSurfaceConfig.js +1 -0
  101. package/dist/openapi_client/models/TelegramSurfaceConfigInput.d.ts +6 -0
  102. package/dist/openapi_client/models/TelegramSurfaceConfigInput.js +1 -0
  103. package/dist/openapi_client/models/UpdateSurfaceRequest.d.ts +17 -5
  104. package/dist/openapi_client/models/WhatsAppCredentialsInput.d.ts +8 -0
  105. package/dist/openapi_client/models/WhatsAppCredentialsInput.js +1 -0
  106. package/dist/openapi_client/models/WhatsAppSurfaceConfig.d.ts +6 -0
  107. package/dist/openapi_client/models/WhatsAppSurfaceConfig.js +1 -0
  108. package/dist/openapi_client/models/WhatsAppSurfaceConfigInput.d.ts +6 -0
  109. package/dist/openapi_client/models/WhatsAppSurfaceConfigInput.js +1 -0
  110. package/dist/openapi_client/models/WorkflowCreateRequest.d.ts +5 -2
  111. package/dist/openapi_client/models/WorkflowGraphUpdateRequest.d.ts +5 -2
  112. package/dist/openapi_client/models/WorkflowUpdateRequest.d.ts +5 -2
  113. package/dist/openapi_client/services/AssistantSurfacesIngressService.d.ts +51 -0
  114. package/dist/openapi_client/services/AssistantSurfacesIngressService.js +111 -0
  115. package/dist/openapi_client/services/AssistantSurfacesService.d.ts +27 -6
  116. package/dist/openapi_client/services/AssistantSurfacesService.js +62 -7
  117. package/dist/openapi_client/services/AuthorizationService.d.ts +47 -0
  118. package/dist/openapi_client/services/AuthorizationService.js +100 -0
  119. package/dist/openapi_client/services/DesksService.d.ts +2 -2
  120. package/dist/openapi_client/services/DesksService.js +3 -3
  121. package/dist/openapi_client/services/WorkflowsService.d.ts +3 -3
  122. package/dist/openapi_client/services/WorkflowsService.js +1 -1
  123. package/dist/react/index.d.ts +16 -0
  124. package/dist/react/index.js +8 -0
  125. package/dist/react/useAddPodMember.d.ts +22 -0
  126. package/dist/react/useAddPodMember.js +51 -0
  127. package/dist/react/useAssistantController.js +82 -37
  128. package/dist/react/useAssistantRuntime.js +8 -4
  129. package/dist/react/useAssistantSession.js +44 -2
  130. package/dist/react/useConversationMessages.js +19 -2
  131. package/dist/react/useFile.d.ts +18 -0
  132. package/dist/react/useFile.js +58 -0
  133. package/dist/react/useFilePreview.d.ts +23 -0
  134. package/dist/react/useFilePreview.js +76 -0
  135. package/dist/react/useFileSearch.d.ts +26 -0
  136. package/dist/react/useFileSearch.js +64 -0
  137. package/dist/react/useFileTree.d.ts +21 -0
  138. package/dist/react/useFileTree.js +59 -0
  139. package/dist/react/useFiles.d.ts +29 -0
  140. package/dist/react/useFiles.js +90 -0
  141. package/dist/react/useRecords.js +8 -5
  142. package/dist/react/useRemovePodMember.d.ts +19 -0
  143. package/dist/react/useRemovePodMember.js +50 -0
  144. package/dist/react/useUpdatePodMemberRole.d.ts +20 -0
  145. package/dist/react/useUpdatePodMemberRole.js +50 -0
  146. package/dist/react/useWorkflowStart.d.ts +2 -2
  147. package/dist/record-display.d.ts +20 -0
  148. package/dist/record-display.js +78 -0
  149. package/dist/record-form.d.ts +4 -0
  150. package/dist/record-form.js +16 -0
  151. package/dist/types.d.ts +8 -1
  152. package/package.json +2 -1
  153. package/dist/openapi_client/models/EmailSurfaceConfigCreate.d.ts +0 -5
  154. package/dist/openapi_client/models/FlowInstallEntity.d.ts +0 -16
  155. package/dist/openapi_client/models/FlowStartType.d.ts +0 -6
  156. package/dist/openapi_client/models/FlowStartType.js +0 -11
  157. package/dist/openapi_client/models/FlowStart_Input.d.ts +0 -14
  158. package/dist/openapi_client/models/FlowStart_Output.d.ts +0 -14
  159. package/dist/openapi_client/models/WhatsAppSurfaceConfigCreate.d.ts +0 -5
  160. package/dist/openapi_client/services/PublicDesksService.d.ts +0 -10
  161. package/dist/openapi_client/services/PublicDesksService.js +0 -22
  162. /package/dist/openapi_client/models/{DataStoreFlowStart.js → AdminConsentInfoResponse.js} +0 -0
  163. /package/dist/openapi_client/models/{EmailSurfaceConfigCreate.js → DataStoreFlowStartInput.js} +0 -0
  164. /package/dist/openapi_client/models/{EventFlowStart.js → DataStoreFlowStartOutput.js} +0 -0
  165. /package/dist/openapi_client/models/{FlowInstallEntity.js → DataStoreWorkflowStartInput.js} +0 -0
  166. /package/dist/openapi_client/models/{FlowStart_Input.js → DataStoreWorkflowStartOutput.js} +0 -0
  167. /package/dist/openapi_client/models/{FlowStart_Output.js → EventFlowStartInput.js} +0 -0
  168. /package/dist/openapi_client/models/{ScheduledFlowStart.js → EventFlowStartOutput.js} +0 -0
  169. /package/dist/openapi_client/models/{SlackSurfaceConfigCreate.js → EventWorkflowStartInput.js} +0 -0
  170. /package/dist/openapi_client/models/{TeamsSurfaceConfigCreate.js → EventWorkflowStartOutput.js} +0 -0
  171. /package/dist/openapi_client/models/{WhatsAppSurfaceConfigCreate.js → FlowInstallResponse.js} +0 -0
@@ -0,0 +1,4 @@
1
+ import type { ResourcePermissionResponse } from './ResourcePermissionResponse.js';
2
+ export type ResourcePermissionListResponse = {
3
+ items: Array<ResourcePermissionResponse>;
4
+ };
@@ -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
+ };
@@ -1,5 +1,5 @@
1
1
  import type { ScheduledFlowStartType } from './ScheduledFlowStartType.js';
2
- export type ScheduledFlowStart = {
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,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,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,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,3 @@
1
+ export type SetVisibilityRequest = {
2
+ visibility: string;
3
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export type SlackCredentialsInput = {
2
+ bot_token: string;
3
+ signing_secret?: (string | null);
4
+ type?: string;
5
+ };
@@ -0,0 +1,10 @@
1
+ export type SlackSurfaceConfig = {
2
+ account_id?: (string | null);
3
+ allow_dm?: boolean;
4
+ allowed_channel_ids?: Array<string>;
5
+ bot_user_id?: (string | null);
6
+ created_at?: string;
7
+ id?: string;
8
+ type?: string;
9
+ updated_at?: string;
10
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,4 @@
1
- export type SlackSurfaceConfigCreate = {
1
+ export type SlackSurfaceConfigInput = {
2
2
  account_id?: (string | null);
3
3
  allow_dm?: boolean;
4
4
  allowed_channel_ids?: Array<string>;
@@ -0,0 +1,4 @@
1
+ export declare enum SurfaceCredentialMode {
2
+ NATIVE = "NATIVE",
3
+ USER_PROVIDED = "USER_PROVIDED"
4
+ }
@@ -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,8 @@
1
+ export declare enum SurfacePlatform {
2
+ SLACK = "SLACK",
3
+ TEAMS = "TEAMS",
4
+ WHATSAPP = "WHATSAPP",
5
+ TELEGRAM = "TELEGRAM",
6
+ GMAIL = "GMAIL",
7
+ OUTLOOK = "OUTLOOK"
8
+ }
@@ -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,4 @@
1
+ export declare enum SurfaceRoutingScope {
2
+ POD = "POD",
3
+ PERSONAL = "PERSONAL"
4
+ }
@@ -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,4 @@
1
+ export declare enum SurfaceSetupFieldSource {
2
+ CREATE_REQUEST = "CREATE_REQUEST",
3
+ CREATE_RESPONSE = "CREATE_RESPONSE"
4
+ }
@@ -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,5 @@
1
+ export declare enum SurfaceSetupMode {
2
+ NATIVE = "NATIVE",
3
+ USER_PROVIDED = "USER_PROVIDED",
4
+ CONNECTED_ACCOUNT = "CONNECTED_ACCOUNT"
5
+ }
@@ -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,6 @@
1
+ export declare enum SurfaceSetupPhase {
2
+ PREPARE = "PREPARE",
3
+ CREATE_SURFACE = "CREATE_SURFACE",
4
+ CONFIGURE_PROVIDER = "CONFIGURE_PROVIDER",
5
+ VERIFY = "VERIFY"
6
+ }
@@ -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,6 @@
1
+ import type { SurfaceSetupPhase } from './SurfaceSetupPhase.js';
2
+ export type SurfaceSetupStep = {
3
+ description: string;
4
+ phase: SurfaceSetupPhase;
5
+ title: string;
6
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare enum SurfaceWebhookMode {
2
+ PLATFORM = "PLATFORM",
3
+ SURFACE = "SURFACE"
4
+ }
@@ -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,6 @@
1
+ export type TeamsCredentialsInput = {
2
+ bot_app_id: string;
3
+ bot_app_secret: string;
4
+ tenant_id?: (string | null);
5
+ type?: string;
6
+ };
@@ -0,0 +1,9 @@
1
+ export type TeamsSurfaceConfig = {
2
+ account_id?: (string | null);
3
+ allow_dm?: boolean;
4
+ allowed_channel_ids?: Array<string>;
5
+ created_at?: string;
6
+ id?: string;
7
+ type?: string;
8
+ updated_at?: string;
9
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,4 @@
1
- export type TeamsSurfaceConfigCreate = {
1
+ export type TeamsSurfaceConfigInput = {
2
2
  account_id?: (string | null);
3
3
  allow_dm?: boolean;
4
4
  allowed_channel_ids?: Array<string>;
@@ -0,0 +1,5 @@
1
+ export type TelegramCredentialsInput = {
2
+ bot_token: string;
3
+ type?: string;
4
+ webhook_secret?: (string | null);
5
+ };
@@ -0,0 +1,6 @@
1
+ export type TelegramSurfaceConfig = {
2
+ created_at?: string;
3
+ id?: string;
4
+ type?: string;
5
+ updated_at?: string;
6
+ };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Telegram config. No OAuth accounts for Telegram; credentials go in the credentials field.
3
+ */
4
+ export type TelegramSurfaceConfigInput = {
5
+ type?: string;
6
+ };
@@ -1,7 +1,19 @@
1
- import type { EmailSurfaceConfigCreate } from './EmailSurfaceConfigCreate.js';
2
- import type { SlackSurfaceConfigCreate } from './SlackSurfaceConfigCreate.js';
3
- import type { TeamsSurfaceConfigCreate } from './TeamsSurfaceConfigCreate.js';
4
- import type { WhatsAppSurfaceConfigCreate } from './WhatsAppSurfaceConfigCreate.js';
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: (SlackSurfaceConfigCreate | TeamsSurfaceConfigCreate | WhatsAppSurfaceConfigCreate | EmailSurfaceConfigCreate);
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,8 @@
1
+ export type WhatsAppCredentialsInput = {
2
+ access_token: string;
3
+ app_secret?: (string | null);
4
+ phone_number_id?: (string | null);
5
+ type?: string;
6
+ verify_token?: (string | null);
7
+ waba_id?: (string | null);
8
+ };
@@ -0,0 +1,6 @@
1
+ export type WhatsAppSurfaceConfig = {
2
+ created_at?: string;
3
+ id?: string;
4
+ type?: string;
5
+ updated_at?: string;
6
+ };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * WhatsApp config. No OAuth accounts for WhatsApp; credentials go in the credentials field.
3
+ */
4
+ export type WhatsAppSurfaceConfigInput = {
5
+ type?: string;
6
+ };
@@ -1,4 +1,7 @@
1
- import type { FlowStart_Input } from './FlowStart_Input.js';
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?: (FlowStart_Input | null);
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 { FlowStart_Input } from './FlowStart_Input.js';
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?: (FlowStart_Input | null);
28
+ start?: ((ManualWorkflowStartInput | ScheduledWorkflowStartInput | EventWorkflowStartInput | DataStoreWorkflowStartInput) | null);
26
29
  };
@@ -1,4 +1,7 @@
1
- import type { FlowStart_Input } from './FlowStart_Input.js';
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?: (FlowStart_Input | null);
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
+ }