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.
Files changed (151) hide show
  1. package/README.md +83 -31
  2. package/dist/browser/lemma-client.js +70 -15
  3. package/dist/index.d.ts +3 -1
  4. package/dist/index.js +2 -1
  5. package/dist/namespaces/pod-surfaces.js +1 -1
  6. package/dist/namespaces/workflows.d.ts +1 -1
  7. package/dist/openapi_client/index.d.ts +50 -12
  8. package/dist/openapi_client/index.js +10 -2
  9. package/dist/openapi_client/models/AdminConsentInfoResponse.d.ts +6 -0
  10. package/dist/openapi_client/models/AssistantSurfaceResponse.d.ts +16 -1
  11. package/dist/openapi_client/models/AssistantSurfaceStatus.d.ts +5 -0
  12. package/dist/openapi_client/models/AssistantSurfaceStatus.js +10 -0
  13. package/dist/openapi_client/models/ConversationMessageResponse.d.ts +4 -0
  14. package/dist/openapi_client/models/ConversationResponse.d.ts +3 -0
  15. package/dist/openapi_client/models/ConversationType.d.ts +8 -0
  16. package/dist/openapi_client/models/ConversationType.js +13 -0
  17. package/dist/openapi_client/models/CreateSurfaceRequest.d.ts +16 -5
  18. package/dist/openapi_client/models/{DataStoreFlowStart.d.ts → DataStoreFlowStartInput.d.ts} +1 -1
  19. package/dist/openapi_client/models/DataStoreFlowStartOutput.d.ts +11 -0
  20. package/dist/openapi_client/models/DataStoreWorkflowStartInput.d.ts +11 -0
  21. package/dist/openapi_client/models/DataStoreWorkflowStartOutput.d.ts +11 -0
  22. package/dist/openapi_client/models/{EventFlowStart.d.ts → EventFlowStartInput.d.ts} +1 -1
  23. package/dist/openapi_client/models/EventFlowStartOutput.d.ts +19 -0
  24. package/dist/openapi_client/models/EventWorkflowStartInput.d.ts +11 -0
  25. package/dist/openapi_client/models/EventWorkflowStartOutput.d.ts +11 -0
  26. package/dist/openapi_client/models/FlowInstallResponse.d.ts +15 -0
  27. package/dist/openapi_client/models/FlowResponse.d.ts +5 -2
  28. package/dist/openapi_client/models/GmailSurfaceConfig.d.ts +7 -0
  29. package/dist/openapi_client/models/GmailSurfaceConfig.js +1 -0
  30. package/dist/openapi_client/models/GmailSurfaceConfigInput.d.ts +4 -0
  31. package/dist/openapi_client/models/GmailSurfaceConfigInput.js +1 -0
  32. package/dist/openapi_client/models/GrantPermissionRequest.d.ts +6 -0
  33. package/dist/openapi_client/models/GrantPermissionRequest.js +1 -0
  34. package/dist/openapi_client/models/ManualWorkflowStartInput.d.ts +10 -0
  35. package/dist/openapi_client/models/ManualWorkflowStartInput.js +1 -0
  36. package/dist/openapi_client/models/ManualWorkflowStartOutput.d.ts +10 -0
  37. package/dist/openapi_client/models/ManualWorkflowStartOutput.js +1 -0
  38. package/dist/openapi_client/models/OrganizationInvitationRequest.d.ts +2 -0
  39. package/dist/openapi_client/models/OrganizationInvitationResponse.d.ts +2 -0
  40. package/dist/openapi_client/models/OutlookSurfaceConfig.d.ts +7 -0
  41. package/dist/openapi_client/models/OutlookSurfaceConfig.js +1 -0
  42. package/dist/openapi_client/models/OutlookSurfaceConfigInput.d.ts +4 -0
  43. package/dist/openapi_client/models/OutlookSurfaceConfigInput.js +1 -0
  44. package/dist/openapi_client/models/ResourcePermissionListResponse.d.ts +4 -0
  45. package/dist/openapi_client/models/ResourcePermissionListResponse.js +1 -0
  46. package/dist/openapi_client/models/ResourcePermissionResponse.d.ts +12 -0
  47. package/dist/openapi_client/models/ResourcePermissionResponse.js +1 -0
  48. package/dist/openapi_client/models/{ScheduledFlowStart.d.ts → ScheduledFlowStartInput.d.ts} +1 -1
  49. package/dist/openapi_client/models/ScheduledFlowStartInput.js +1 -0
  50. package/dist/openapi_client/models/ScheduledFlowStartOutput.d.ts +7 -0
  51. package/dist/openapi_client/models/ScheduledFlowStartOutput.js +1 -0
  52. package/dist/openapi_client/models/ScheduledWorkflowStartInput.d.ts +11 -0
  53. package/dist/openapi_client/models/ScheduledWorkflowStartInput.js +1 -0
  54. package/dist/openapi_client/models/ScheduledWorkflowStartOutput.d.ts +11 -0
  55. package/dist/openapi_client/models/ScheduledWorkflowStartOutput.js +1 -0
  56. package/dist/openapi_client/models/SetVisibilityRequest.d.ts +3 -0
  57. package/dist/openapi_client/models/SetVisibilityRequest.js +1 -0
  58. package/dist/openapi_client/models/SlackCredentialsInput.d.ts +5 -0
  59. package/dist/openapi_client/models/SlackCredentialsInput.js +1 -0
  60. package/dist/openapi_client/models/SlackSurfaceConfig.d.ts +10 -0
  61. package/dist/openapi_client/models/SlackSurfaceConfig.js +1 -0
  62. package/dist/openapi_client/models/{SlackSurfaceConfigCreate.d.ts → SlackSurfaceConfigInput.d.ts} +1 -1
  63. package/dist/openapi_client/models/SlackSurfaceConfigInput.js +1 -0
  64. package/dist/openapi_client/models/SurfaceCredentialMode.d.ts +4 -0
  65. package/dist/openapi_client/models/SurfaceCredentialMode.js +9 -0
  66. package/dist/openapi_client/models/SurfaceIntegrationSetupGuide.d.ts +13 -0
  67. package/dist/openapi_client/models/SurfaceIntegrationSetupGuide.js +1 -0
  68. package/dist/openapi_client/models/SurfacePlatform.d.ts +8 -0
  69. package/dist/openapi_client/models/SurfacePlatform.js +13 -0
  70. package/dist/openapi_client/models/SurfacePlatformSetupGuideResponse.d.ts +9 -0
  71. package/dist/openapi_client/models/SurfacePlatformSetupGuideResponse.js +1 -0
  72. package/dist/openapi_client/models/SurfaceRoutingScope.d.ts +4 -0
  73. package/dist/openapi_client/models/SurfaceRoutingScope.js +9 -0
  74. package/dist/openapi_client/models/SurfaceSetupField.d.ts +10 -0
  75. package/dist/openapi_client/models/SurfaceSetupField.js +1 -0
  76. package/dist/openapi_client/models/SurfaceSetupFieldSource.d.ts +4 -0
  77. package/dist/openapi_client/models/SurfaceSetupFieldSource.js +9 -0
  78. package/dist/openapi_client/models/SurfaceSetupMode.d.ts +5 -0
  79. package/dist/openapi_client/models/SurfaceSetupMode.js +10 -0
  80. package/dist/openapi_client/models/SurfaceSetupPhase.d.ts +6 -0
  81. package/dist/openapi_client/models/SurfaceSetupPhase.js +11 -0
  82. package/dist/openapi_client/models/SurfaceSetupStep.d.ts +6 -0
  83. package/dist/openapi_client/models/SurfaceSetupStep.js +1 -0
  84. package/dist/openapi_client/models/SurfaceWebhookMode.d.ts +4 -0
  85. package/dist/openapi_client/models/SurfaceWebhookMode.js +9 -0
  86. package/dist/openapi_client/models/TeamsCredentialsInput.d.ts +6 -0
  87. package/dist/openapi_client/models/TeamsCredentialsInput.js +1 -0
  88. package/dist/openapi_client/models/TeamsSurfaceConfig.d.ts +9 -0
  89. package/dist/openapi_client/models/TeamsSurfaceConfig.js +1 -0
  90. package/dist/openapi_client/models/{TeamsSurfaceConfigCreate.d.ts → TeamsSurfaceConfigInput.d.ts} +1 -1
  91. package/dist/openapi_client/models/TeamsSurfaceConfigInput.js +1 -0
  92. package/dist/openapi_client/models/TelegramCredentialsInput.d.ts +5 -0
  93. package/dist/openapi_client/models/TelegramCredentialsInput.js +1 -0
  94. package/dist/openapi_client/models/TelegramSurfaceConfig.d.ts +6 -0
  95. package/dist/openapi_client/models/TelegramSurfaceConfig.js +1 -0
  96. package/dist/openapi_client/models/TelegramSurfaceConfigInput.d.ts +6 -0
  97. package/dist/openapi_client/models/TelegramSurfaceConfigInput.js +1 -0
  98. package/dist/openapi_client/models/UpdateSurfaceRequest.d.ts +17 -5
  99. package/dist/openapi_client/models/WhatsAppCredentialsInput.d.ts +8 -0
  100. package/dist/openapi_client/models/WhatsAppCredentialsInput.js +1 -0
  101. package/dist/openapi_client/models/WhatsAppSurfaceConfig.d.ts +6 -0
  102. package/dist/openapi_client/models/WhatsAppSurfaceConfig.js +1 -0
  103. package/dist/openapi_client/models/WhatsAppSurfaceConfigInput.d.ts +6 -0
  104. package/dist/openapi_client/models/WhatsAppSurfaceConfigInput.js +1 -0
  105. package/dist/openapi_client/models/WorkflowCreateRequest.d.ts +5 -2
  106. package/dist/openapi_client/models/WorkflowGraphUpdateRequest.d.ts +5 -2
  107. package/dist/openapi_client/models/WorkflowUpdateRequest.d.ts +5 -2
  108. package/dist/openapi_client/services/AssistantSurfacesIngressService.d.ts +51 -0
  109. package/dist/openapi_client/services/AssistantSurfacesIngressService.js +111 -0
  110. package/dist/openapi_client/services/AssistantSurfacesService.d.ts +27 -6
  111. package/dist/openapi_client/services/AssistantSurfacesService.js +62 -7
  112. package/dist/openapi_client/services/AuthorizationService.d.ts +47 -0
  113. package/dist/openapi_client/services/AuthorizationService.js +100 -0
  114. package/dist/openapi_client/services/DesksService.d.ts +4 -4
  115. package/dist/openapi_client/services/DesksService.js +6 -6
  116. package/dist/openapi_client/services/WorkflowsService.d.ts +3 -3
  117. package/dist/openapi_client/services/WorkflowsService.js +1 -1
  118. package/dist/react/index.d.ts +6 -0
  119. package/dist/react/index.js +3 -0
  120. package/dist/react/useAddPodMember.d.ts +22 -0
  121. package/dist/react/useAddPodMember.js +51 -0
  122. package/dist/react/useRemovePodMember.d.ts +19 -0
  123. package/dist/react/useRemovePodMember.js +50 -0
  124. package/dist/react/useUpdatePodMemberRole.d.ts +20 -0
  125. package/dist/react/useUpdatePodMemberRole.js +50 -0
  126. package/dist/react/useWorkflowStart.d.ts +2 -2
  127. package/dist/record-display.d.ts +20 -0
  128. package/dist/record-display.js +78 -0
  129. package/dist/record-form.d.ts +4 -0
  130. package/dist/record-form.js +16 -0
  131. package/dist/types.d.ts +2 -0
  132. package/package.json +1 -1
  133. package/dist/openapi_client/models/EmailSurfaceConfigCreate.d.ts +0 -5
  134. package/dist/openapi_client/models/FlowInstallEntity.d.ts +0 -16
  135. package/dist/openapi_client/models/FlowStartType.d.ts +0 -6
  136. package/dist/openapi_client/models/FlowStartType.js +0 -11
  137. package/dist/openapi_client/models/FlowStart_Input.d.ts +0 -14
  138. package/dist/openapi_client/models/FlowStart_Output.d.ts +0 -14
  139. package/dist/openapi_client/models/WhatsAppSurfaceConfigCreate.d.ts +0 -5
  140. package/dist/openapi_client/services/PublicDesksService.d.ts +0 -10
  141. package/dist/openapi_client/services/PublicDesksService.js +0 -22
  142. /package/dist/openapi_client/models/{DataStoreFlowStart.js → AdminConsentInfoResponse.js} +0 -0
  143. /package/dist/openapi_client/models/{EmailSurfaceConfigCreate.js → DataStoreFlowStartInput.js} +0 -0
  144. /package/dist/openapi_client/models/{EventFlowStart.js → DataStoreFlowStartOutput.js} +0 -0
  145. /package/dist/openapi_client/models/{FlowInstallEntity.js → DataStoreWorkflowStartInput.js} +0 -0
  146. /package/dist/openapi_client/models/{FlowStart_Input.js → DataStoreWorkflowStartOutput.js} +0 -0
  147. /package/dist/openapi_client/models/{FlowStart_Output.js → EventFlowStartInput.js} +0 -0
  148. /package/dist/openapi_client/models/{ScheduledFlowStart.js → EventFlowStartOutput.js} +0 -0
  149. /package/dist/openapi_client/models/{SlackSurfaceConfigCreate.js → EventWorkflowStartInput.js} +0 -0
  150. /package/dist/openapi_client/models/{TeamsSurfaceConfigCreate.js → EventWorkflowStartOutput.js} +0 -0
  151. /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';
@@ -0,0 +1,6 @@
1
+ import type { AssistantSurfaceStatus } from './AssistantSurfaceStatus.js';
2
+ export type AdminConsentInfoResponse = {
3
+ consent_url?: (string | null);
4
+ status: AssistantSurfaceStatus;
5
+ surface_id: string;
6
+ };
@@ -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: Record<string, any>;
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,5 @@
1
+ export declare enum AssistantSurfaceStatus {
2
+ ACTIVE = "ACTIVE",
3
+ PENDING_ADMIN_CONSENT = "PENDING_ADMIN_CONSENT",
4
+ INACTIVE = "INACTIVE"
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 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,8 @@
1
+ /**
2
+ * Conversation channel/source classification.
3
+ */
4
+ export declare enum ConversationType {
5
+ INTERNAL = "INTERNAL",
6
+ EXTERNAL_DM = "EXTERNAL_DM",
7
+ EXTERNAL_GROUP = "EXTERNAL_GROUP"
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
+ /**
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 { 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 CreateSurfaceRequest = {
6
14
  assistant_name: string;
7
- config: (SlackSurfaceConfigCreate | TeamsSurfaceConfigCreate | WhatsAppSurfaceConfigCreate | EmailSurfaceConfigCreate);
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 DataStoreFlowStart = {
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
+ };
@@ -1,4 +1,4 @@
1
- export type EventFlowStart = {
1
+ export type EventFlowStartInput = {
2
2
  /**
3
3
  * Integration application identifier.
4
4
  */
@@ -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 { FlowStart_Output } from './FlowStart_Output.js';
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?: (FlowStart_Output | null);
25
+ start?: ((ManualWorkflowStartOutput | ScheduledWorkflowStartOutput | EventWorkflowStartOutput | DataStoreWorkflowStartOutput) | null);
23
26
  updated_at?: (string | null);
24
27
  };
@@ -0,0 +1,7 @@
1
+ export type GmailSurfaceConfig = {
2
+ account_id: string;
3
+ created_at?: string;
4
+ id?: string;
5
+ type?: string;
6
+ updated_at?: string;
7
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ export type GmailSurfaceConfigInput = {
2
+ account_id: string;
3
+ type?: string;
4
+ };
@@ -0,0 +1,6 @@
1
+ export type GrantPermissionRequest = {
2
+ effective_role: string;
3
+ grantee_min_role?: (string | null);
4
+ grantee_type: string;
5
+ grantee_user_id?: (string | null);
6
+ };
@@ -0,0 +1,10 @@
1
+ export type ManualWorkflowStartInput = {
2
+ /**
3
+ * Always `null` for manual workflow starts.
4
+ */
5
+ config?: null;
6
+ /**
7
+ * Manual workflow start with no configuration payload.
8
+ */
9
+ type?: string;
10
+ };
@@ -0,0 +1,10 @@
1
+ export type ManualWorkflowStartOutput = {
2
+ /**
3
+ * Always `null` for manual workflow starts.
4
+ */
5
+ config?: null;
6
+ /**
7
+ * Manual workflow start with no configuration payload.
8
+ */
9
+ type?: string;
10
+ };
@@ -4,5 +4,7 @@ import type { OrganizationRole } from './OrganizationRole.js';
4
4
  */
5
5
  export type OrganizationInvitationRequest = {
6
6
  email: string;
7
+ pod_id?: (string | null);
8
+ pod_role?: (string | null);
7
9
  role: OrganizationRole;
8
10
  };
@@ -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,7 @@
1
+ export type OutlookSurfaceConfig = {
2
+ account_id: string;
3
+ created_at?: string;
4
+ id?: string;
5
+ type?: string;
6
+ updated_at?: string;
7
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ export type OutlookSurfaceConfigInput = {
2
+ account_id: string;
3
+ type?: string;
4
+ };
@@ -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 = {}));