lemma-sdk 0.2.4 → 0.2.6

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 (71) hide show
  1. package/README.md +59 -0
  2. package/dist/assistant-events.d.ts +7 -0
  3. package/dist/assistant-events.js +78 -0
  4. package/dist/auth.d.ts +6 -4
  5. package/dist/auth.js +42 -41
  6. package/dist/browser/lemma-client.js +71 -61
  7. package/dist/browser.d.ts +1 -1
  8. package/dist/browser.js +1 -1
  9. package/dist/index.d.ts +7 -1
  10. package/dist/index.js +4 -1
  11. package/dist/namespaces/desks.d.ts +2 -2
  12. package/dist/namespaces/desks.js +7 -7
  13. package/dist/namespaces/icons.js +4 -1
  14. package/dist/openapi_client/index.d.ts +10 -7
  15. package/dist/openapi_client/models/{AgentNode.d.ts → AgentNode_Input.d.ts} +1 -1
  16. package/dist/openapi_client/models/AgentNode_Output.d.ts +11 -0
  17. package/dist/openapi_client/models/AppDescriptorResponse.d.ts +2 -2
  18. package/dist/openapi_client/models/Body_upload_file_files__resource_type___resource_id__upload_post.d.ts +1 -1
  19. package/dist/openapi_client/models/{Body_file_upload.d.ts → DatastoreFileUploadRequest.d.ts} +2 -2
  20. package/dist/openapi_client/models/{DecisionNode.d.ts → DecisionNode_Input.d.ts} +1 -1
  21. package/dist/openapi_client/models/DecisionNode_Output.d.ts +11 -0
  22. package/dist/openapi_client/models/DeskBundleUploadRequest.d.ts +4 -0
  23. package/dist/openapi_client/models/FlowEntity.d.ts +4 -4
  24. package/dist/openapi_client/models/{FunctionNode.d.ts → FunctionNode_Input.d.ts} +1 -1
  25. package/dist/openapi_client/models/FunctionNode_Output.d.ts +11 -0
  26. package/dist/openapi_client/models/FunctionNode_Output.js +1 -0
  27. package/dist/openapi_client/models/IconUploadRequest.d.ts +3 -0
  28. package/dist/openapi_client/models/IconUploadRequest.js +1 -0
  29. package/dist/openapi_client/models/ValidationError.d.ts +2 -0
  30. package/dist/openapi_client/models/WorkflowGraphUpdateRequest.d.ts +4 -4
  31. package/dist/openapi_client/models/{Body_file_update.d.ts → update.d.ts} +2 -2
  32. package/dist/openapi_client/models/update.js +1 -0
  33. package/dist/openapi_client/services/ApplicationsService.d.ts +2 -2
  34. package/dist/openapi_client/services/ApplicationsService.js +3 -3
  35. package/dist/openapi_client/services/DesksService.d.ts +9 -9
  36. package/dist/openapi_client/services/DesksService.js +8 -8
  37. package/dist/openapi_client/services/FilesService.d.ts +4 -4
  38. package/dist/openapi_client/services/IconsService.d.ts +2 -2
  39. package/dist/openapi_client/services/PublicSdkService.d.ts +1 -1
  40. package/dist/openapi_client/services/PublicSdkService.js +1 -1
  41. package/dist/react/index.d.ts +12 -0
  42. package/dist/react/index.js +6 -0
  43. package/dist/react/useAssistantRun.d.ts +1 -1
  44. package/dist/react/useAssistantRun.js +23 -69
  45. package/dist/react/useAssistantRuntime.d.ts +13 -0
  46. package/dist/react/useAssistantRuntime.js +108 -0
  47. package/dist/react/useAssistantSession.d.ts +61 -0
  48. package/dist/react/useAssistantSession.js +278 -0
  49. package/dist/react/useFlowRunHistory.d.ts +19 -0
  50. package/dist/react/useFlowRunHistory.js +77 -0
  51. package/dist/react/useFlowSession.d.ts +39 -0
  52. package/dist/react/useFlowSession.js +195 -0
  53. package/dist/react/useFunctionSession.d.ts +32 -0
  54. package/dist/react/useFunctionSession.js +154 -0
  55. package/dist/react/useTaskSession.d.ts +35 -0
  56. package/dist/react/useTaskSession.js +207 -0
  57. package/dist/run-utils.d.ts +18 -0
  58. package/dist/run-utils.js +62 -0
  59. package/dist/task-events.d.ts +7 -0
  60. package/dist/task-events.js +78 -0
  61. package/dist/types.d.ts +3 -1
  62. package/package.json +1 -1
  63. package/dist/openapi_client/models/Body_icon_upload.d.ts +0 -3
  64. package/dist/openapi_client/models/Body_pod_desk_bundle_upload.d.ts +0 -4
  65. /package/dist/openapi_client/models/{AgentNode.js → AgentNode_Input.js} +0 -0
  66. /package/dist/openapi_client/models/{Body_file_update.js → AgentNode_Output.js} +0 -0
  67. /package/dist/openapi_client/models/{Body_file_upload.js → DatastoreFileUploadRequest.js} +0 -0
  68. /package/dist/openapi_client/models/{Body_icon_upload.js → DecisionNode_Input.js} +0 -0
  69. /package/dist/openapi_client/models/{Body_pod_desk_bundle_upload.js → DecisionNode_Output.js} +0 -0
  70. /package/dist/openapi_client/models/{DecisionNode.js → DeskBundleUploadRequest.js} +0 -0
  71. /package/dist/openapi_client/models/{FunctionNode.js → FunctionNode_Input.js} +0 -0
@@ -9,25 +9,25 @@ export class DesksNamespace {
9
9
  this.podId = podId;
10
10
  }
11
11
  list(options = {}) {
12
- return this.client.request(() => DesksService.podDeskList(this.podId(), options.limit ?? 100, options.pageToken));
12
+ return this.client.request(() => DesksService.deskList(this.podId(), options.limit ?? 100, options.pageToken));
13
13
  }
14
14
  create(payload) {
15
- return this.client.request(() => DesksService.podDeskCreate(this.podId(), payload));
15
+ return this.client.request(() => DesksService.deskCreate(this.podId(), payload));
16
16
  }
17
17
  get(name) {
18
- return this.client.request(() => DesksService.podDeskGet(this.podId(), name));
18
+ return this.client.request(() => DesksService.deskGet(this.podId(), name));
19
19
  }
20
20
  update(name, payload) {
21
- return this.client.request(() => DesksService.podDeskUpdate(this.podId(), name, payload));
21
+ return this.client.request(() => DesksService.deskUpdate(this.podId(), name, payload));
22
22
  }
23
23
  delete(name) {
24
- return this.client.request(() => DesksService.podDeskDelete(this.podId(), name));
24
+ return this.client.request(() => DesksService.deskDelete(this.podId(), name));
25
25
  }
26
26
  html = {
27
- get: (name) => this.client.request(() => DesksService.podDeskHtmlGet(this.podId(), name)),
27
+ get: (name) => this.client.request(() => DesksService.deskHtmlGet(this.podId(), name)),
28
28
  };
29
29
  bundle = {
30
- upload: (name, payload) => this.client.request(() => DesksService.podDeskBundleUpload(this.podId(), name, payload)),
30
+ upload: (name, payload) => this.client.request(() => DesksService.deskBundleUpload(this.podId(), name, payload)),
31
31
  };
32
32
  source = {
33
33
  download: (name) => this.http.requestBytes("GET", `/pods/${this.podId()}/desks/${name}/source/archive`),
@@ -5,7 +5,10 @@ export class IconsNamespace {
5
5
  this.client = client;
6
6
  }
7
7
  upload(file) {
8
- return this.client.request(() => IconsService.iconUpload({ file }));
8
+ const payload = {
9
+ file: file,
10
+ };
11
+ return this.client.request(() => IconsService.iconUpload(payload));
9
12
  }
10
13
  getPublic(iconPath) {
11
14
  return this.client.request(() => IconsService.iconPublicGet(iconPath));
@@ -9,7 +9,8 @@ export type { AddColumnRequest } from './models/AddColumnRequest.js';
9
9
  export type { AddMessageRequest } from './models/AddMessageRequest.js';
10
10
  export type { AgentListResponse } from './models/AgentListResponse.js';
11
11
  export type { AgentMessageResponse } from './models/AgentMessageResponse.js';
12
- export type { AgentNode } from './models/AgentNode.js';
12
+ export type { AgentNode_Input } from './models/AgentNode_Input.js';
13
+ export type { AgentNode_Output } from './models/AgentNode_Output.js';
13
14
  export type { AgentNodeConfig } from './models/AgentNodeConfig.js';
14
15
  export type { AgentResponse } from './models/AgentResponse.js';
15
16
  export type { ApiKeyCredentialsResponseSchema } from './models/ApiKeyCredentialsResponseSchema.js';
@@ -27,10 +28,6 @@ export type { AssistantSurfaceListResponse } from './models/AssistantSurfaceList
27
28
  export type { AssistantSurfaceResponse } from './models/AssistantSurfaceResponse.js';
28
29
  export { AvailableModels } from './models/AvailableModels.js';
29
30
  export { BillingInterval } from './models/BillingInterval.js';
30
- export type { Body_file_update } from './models/Body_file_update.js';
31
- export type { Body_file_upload } from './models/Body_file_upload.js';
32
- export type { Body_icon_upload } from './models/Body_icon_upload.js';
33
- export type { Body_pod_desk_bundle_upload } from './models/Body_pod_desk_bundle_upload.js';
34
31
  export type { Body_upload_file_files__resource_type___resource_id__upload_post } from './models/Body_upload_file_files__resource_type___resource_id__upload_post.js';
35
32
  export type { BulkCreateRecordsRequest } from './models/BulkCreateRecordsRequest.js';
36
33
  export type { BulkDeleteRecordsRequest } from './models/BulkDeleteRecordsRequest.js';
@@ -59,14 +56,17 @@ export type { CreateTaskRequest } from './models/CreateTaskRequest.js';
59
56
  export type { CreateTriggerRequest } from './models/CreateTriggerRequest.js';
60
57
  export { CredentialTypes } from './models/CredentialTypes.js';
61
58
  export { DatastoreDataType } from './models/DatastoreDataType.js';
59
+ export type { DatastoreFileUploadRequest } from './models/DatastoreFileUploadRequest.js';
62
60
  export type { DataStoreFlowStart } from './models/DataStoreFlowStart.js';
63
61
  export type { DatastoreListResponse } from './models/DatastoreListResponse.js';
64
62
  export type { DatastoreMessageResponse } from './models/DatastoreMessageResponse.js';
65
63
  export type { DatastoreQueryRequest } from './models/DatastoreQueryRequest.js';
66
64
  export type { DatastoreResponse } from './models/DatastoreResponse.js';
67
- export type { DecisionNode } from './models/DecisionNode.js';
65
+ export type { DecisionNode_Input } from './models/DecisionNode_Input.js';
66
+ export type { DecisionNode_Output } from './models/DecisionNode_Output.js';
68
67
  export type { DecisionNodeConfig } from './models/DecisionNodeConfig.js';
69
68
  export type { DecisionRule } from './models/DecisionRule.js';
69
+ export type { DeskBundleUploadRequest } from './models/DeskBundleUploadRequest.js';
70
70
  export type { DeskBundleUploadResponse } from './models/DeskBundleUploadResponse.js';
71
71
  export type { DeskListResponse } from './models/DeskListResponse.js';
72
72
  export type { DeskMessageResponse } from './models/DeskMessageResponse.js';
@@ -96,7 +96,8 @@ export type { FormNode } from './models/FormNode.js';
96
96
  export type { FormNodeConfig } from './models/FormNodeConfig.js';
97
97
  export type { FunctionListResponse } from './models/FunctionListResponse.js';
98
98
  export type { FunctionMessageResponse } from './models/FunctionMessageResponse.js';
99
- export type { FunctionNode } from './models/FunctionNode.js';
99
+ export type { FunctionNode_Input } from './models/FunctionNode_Input.js';
100
+ export type { FunctionNode_Output } from './models/FunctionNode_Output.js';
100
101
  export type { FunctionNodeConfig } from './models/FunctionNodeConfig.js';
101
102
  export type { FunctionResponse } from './models/FunctionResponse.js';
102
103
  export type { FunctionRunListResponse } from './models/FunctionRunListResponse.js';
@@ -104,6 +105,7 @@ export type { FunctionRunResponse } from './models/FunctionRunResponse.js';
104
105
  export { FunctionRunStatus } from './models/FunctionRunStatus.js';
105
106
  export { FunctionStatus } from './models/FunctionStatus.js';
106
107
  export type { HTTPValidationError } from './models/HTTPValidationError.js';
108
+ export type { IconUploadRequest } from './models/IconUploadRequest.js';
107
109
  export type { IconUploadResponse } from './models/IconUploadResponse.js';
108
110
  export type { LiteralInputBinding } from './models/LiteralInputBinding.js';
109
111
  export type { LoopNode } from './models/LoopNode.js';
@@ -185,6 +187,7 @@ export { ToolSet } from './models/ToolSet.js';
185
187
  export type { TriggerListResponse } from './models/TriggerListResponse.js';
186
188
  export type { TriggerResponse } from './models/TriggerResponse.js';
187
189
  export { TriggerType } from './models/TriggerType.js';
190
+ export type { update } from './models/update.js';
188
191
  export type { UpdateAgentRequest } from './models/UpdateAgentRequest.js';
189
192
  export type { UpdateAssistantRequest } from './models/UpdateAssistantRequest.js';
190
193
  export type { UpdateConversationRequest } from './models/UpdateConversationRequest.js';
@@ -2,7 +2,7 @@ import type { AgentNodeConfig } from './AgentNodeConfig.js';
2
2
  /**
3
3
  * Agent node.
4
4
  */
5
- export type AgentNode = {
5
+ export type AgentNode_Input = {
6
6
  id: string;
7
7
  label?: (string | null);
8
8
  position?: (Record<string, number> | null);
@@ -0,0 +1,11 @@
1
+ import type { AgentNodeConfig } from './AgentNodeConfig.js';
2
+ /**
3
+ * Agent node.
4
+ */
5
+ export type AgentNode_Output = {
6
+ id: string;
7
+ label?: (string | null);
8
+ position?: (Record<string, number> | null);
9
+ type?: string;
10
+ config: AgentNodeConfig;
11
+ };
@@ -1,5 +1,5 @@
1
- import type { OperationSummary } from './OperationSummary.js';
2
1
  export type AppDescriptorResponse = {
3
2
  app_name: string;
4
- operations: Record<string, OperationSummary>;
3
+ description: string;
4
+ operation_count: number;
5
5
  };
@@ -1,3 +1,3 @@
1
1
  export type Body_upload_file_files__resource_type___resource_id__upload_post = {
2
- file: Blob;
2
+ file: string;
3
3
  };
@@ -1,5 +1,5 @@
1
- export type Body_file_upload = {
2
- data: Blob;
1
+ export type DatastoreFileUploadRequest = {
2
+ data: string;
3
3
  name?: (string | null);
4
4
  description?: (string | null);
5
5
  parent_id?: (string | null);
@@ -2,7 +2,7 @@ import type { DecisionNodeConfig } from './DecisionNodeConfig.js';
2
2
  /**
3
3
  * Decision node.
4
4
  */
5
- export type DecisionNode = {
5
+ export type DecisionNode_Input = {
6
6
  id: string;
7
7
  label?: (string | null);
8
8
  position?: (Record<string, number> | null);
@@ -0,0 +1,11 @@
1
+ import type { DecisionNodeConfig } from './DecisionNodeConfig.js';
2
+ /**
3
+ * Decision node.
4
+ */
5
+ export type DecisionNode_Output = {
6
+ id: string;
7
+ label?: (string | null);
8
+ position?: (Record<string, number> | null);
9
+ type?: string;
10
+ config: DecisionNodeConfig;
11
+ };
@@ -0,0 +1,4 @@
1
+ export type DeskBundleUploadRequest = {
2
+ source_archive?: (string | null);
3
+ html?: (string | null);
4
+ };
@@ -1,9 +1,9 @@
1
- import type { AgentNode } from './AgentNode.js';
2
- import type { DecisionNode } from './DecisionNode.js';
1
+ import type { AgentNode_Output } from './AgentNode_Output.js';
2
+ import type { DecisionNode_Output } from './DecisionNode_Output.js';
3
3
  import type { EndNode } from './EndNode.js';
4
4
  import type { FlowStart } from './FlowStart.js';
5
5
  import type { FormNode } from './FormNode.js';
6
- import type { FunctionNode } from './FunctionNode.js';
6
+ import type { FunctionNode_Output } from './FunctionNode_Output.js';
7
7
  import type { LoopNode } from './LoopNode.js';
8
8
  import type { WaitUntilNode } from './WaitUntilNode.js';
9
9
  import type { WorkflowEdge } from './WorkflowEdge.js';
@@ -18,7 +18,7 @@ export type FlowEntity = {
18
18
  description?: (string | null);
19
19
  icon_url?: (string | null);
20
20
  pod_id: string;
21
- nodes?: Array<(FormNode | AgentNode | FunctionNode | DecisionNode | LoopNode | WaitUntilNode | EndNode)>;
21
+ nodes?: Array<(FormNode | AgentNode_Output | FunctionNode_Output | DecisionNode_Output | LoopNode | WaitUntilNode | EndNode)>;
22
22
  edges?: Array<WorkflowEdge>;
23
23
  start?: (FlowStart | null);
24
24
  is_active?: boolean;
@@ -2,7 +2,7 @@ import type { FunctionNodeConfig } from './FunctionNodeConfig.js';
2
2
  /**
3
3
  * Function node.
4
4
  */
5
- export type FunctionNode = {
5
+ export type FunctionNode_Input = {
6
6
  id: string;
7
7
  label?: (string | null);
8
8
  position?: (Record<string, number> | null);
@@ -0,0 +1,11 @@
1
+ import type { FunctionNodeConfig } from './FunctionNodeConfig.js';
2
+ /**
3
+ * Function node.
4
+ */
5
+ export type FunctionNode_Output = {
6
+ id: string;
7
+ label?: (string | null);
8
+ position?: (Record<string, number> | null);
9
+ type?: string;
10
+ config: FunctionNodeConfig;
11
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ export type IconUploadRequest = {
2
+ file: string;
3
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -2,4 +2,6 @@ export type ValidationError = {
2
2
  loc: Array<(string | number)>;
3
3
  msg: string;
4
4
  type: string;
5
+ input?: any;
6
+ ctx?: Record<string, any>;
5
7
  };
@@ -1,9 +1,9 @@
1
- import type { AgentNode } from './AgentNode.js';
2
- import type { DecisionNode } from './DecisionNode.js';
1
+ import type { AgentNode_Input } from './AgentNode_Input.js';
2
+ import type { DecisionNode_Input } from './DecisionNode_Input.js';
3
3
  import type { EndNode } from './EndNode.js';
4
4
  import type { FlowStart } from './FlowStart.js';
5
5
  import type { FormNode } from './FormNode.js';
6
- import type { FunctionNode } from './FunctionNode.js';
6
+ import type { FunctionNode_Input } from './FunctionNode_Input.js';
7
7
  import type { LoopNode } from './LoopNode.js';
8
8
  import type { WaitUntilNode } from './WaitUntilNode.js';
9
9
  import type { WorkflowEdge } from './WorkflowEdge.js';
@@ -14,7 +14,7 @@ export type WorkflowGraphUpdateRequest = {
14
14
  /**
15
15
  * Complete node list for the workflow graph. Agent/function `input_mapping` entries must use explicit typed bindings like `{"type": "expression", "value": "start.payload.issue.key"}` or `{"type": "literal", "value": "finance"}`.
16
16
  */
17
- nodes: Array<(FormNode | AgentNode | FunctionNode | DecisionNode | LoopNode | WaitUntilNode | EndNode)>;
17
+ nodes: Array<(FormNode | AgentNode_Input | FunctionNode_Input | DecisionNode_Input | LoopNode | WaitUntilNode | EndNode)>;
18
18
  /**
19
19
  * Complete edge list connecting the provided nodes.
20
20
  */
@@ -1,5 +1,5 @@
1
- export type Body_file_update = {
2
- data?: (Blob | null);
1
+ export type update = {
2
+ data?: (string | null);
3
3
  name?: (string | null);
4
4
  description?: (string | null);
5
5
  parent_id?: (string | null);
@@ -0,0 +1 @@
1
+ export {};
@@ -55,13 +55,13 @@ export declare class ApplicationsService {
55
55
  /**
56
56
  * List Application Operations
57
57
  * @param applicationId
58
- * @param search
58
+ * @param query
59
59
  * @param limit
60
60
  * @param pageToken
61
61
  * @returns OperationListResponse Successful Response
62
62
  * @throws ApiError
63
63
  */
64
- static applicationOperationList(applicationId: string, search?: (string | null), limit?: number, pageToken?: (string | null)): CancelablePromise<OperationListResponse>;
64
+ static applicationOperationList(applicationId: string, query?: (string | null), limit?: number, pageToken?: (string | null)): CancelablePromise<OperationListResponse>;
65
65
  /**
66
66
  * Get Application Operation Details
67
67
  * @param applicationId
@@ -106,13 +106,13 @@ export class ApplicationsService {
106
106
  /**
107
107
  * List Application Operations
108
108
  * @param applicationId
109
- * @param search
109
+ * @param query
110
110
  * @param limit
111
111
  * @param pageToken
112
112
  * @returns OperationListResponse Successful Response
113
113
  * @throws ApiError
114
114
  */
115
- static applicationOperationList(applicationId, search, limit = 100, pageToken) {
115
+ static applicationOperationList(applicationId, query, limit = 100, pageToken) {
116
116
  return __request(OpenAPI, {
117
117
  method: 'GET',
118
118
  url: '/integrations/applications/{application_id}/operations',
@@ -120,7 +120,7 @@ export class ApplicationsService {
120
120
  'application_id': applicationId,
121
121
  },
122
122
  query: {
123
- 'search': search,
123
+ 'query': query,
124
124
  'limit': limit,
125
125
  'page_token': pageToken,
126
126
  },
@@ -1,5 +1,5 @@
1
- import type { Body_pod_desk_bundle_upload } from '../models/Body_pod_desk_bundle_upload.js';
2
1
  import type { CreateDeskRequest } from '../models/CreateDeskRequest.js';
2
+ import type { DeskBundleUploadRequest } from '../models/DeskBundleUploadRequest.js';
3
3
  import type { DeskBundleUploadResponse } from '../models/DeskBundleUploadResponse.js';
4
4
  import type { DeskListResponse } from '../models/DeskListResponse.js';
5
5
  import type { DeskMessageResponse } from '../models/DeskMessageResponse.js';
@@ -14,7 +14,7 @@ export declare class DesksService {
14
14
  * @returns DeskResponse Successful Response
15
15
  * @throws ApiError
16
16
  */
17
- static podDeskCreate(podId: string, requestBody: CreateDeskRequest): CancelablePromise<DeskResponse>;
17
+ static deskCreate(podId: string, requestBody: CreateDeskRequest): CancelablePromise<DeskResponse>;
18
18
  /**
19
19
  * List Desks
20
20
  * @param podId
@@ -23,7 +23,7 @@ export declare class DesksService {
23
23
  * @returns DeskListResponse Successful Response
24
24
  * @throws ApiError
25
25
  */
26
- static podDeskList(podId: string, limit?: number, pageToken?: (string | null)): CancelablePromise<DeskListResponse>;
26
+ static deskList(podId: string, limit?: number, pageToken?: (string | null)): CancelablePromise<DeskListResponse>;
27
27
  /**
28
28
  * Get Desk
29
29
  * @param podId
@@ -31,7 +31,7 @@ export declare class DesksService {
31
31
  * @returns DeskResponse Successful Response
32
32
  * @throws ApiError
33
33
  */
34
- static podDeskGet(podId: string, deskName: string): CancelablePromise<DeskResponse>;
34
+ static deskGet(podId: string, deskName: string): CancelablePromise<DeskResponse>;
35
35
  /**
36
36
  * Update Desk
37
37
  * @param podId
@@ -40,7 +40,7 @@ export declare class DesksService {
40
40
  * @returns DeskResponse Successful Response
41
41
  * @throws ApiError
42
42
  */
43
- static podDeskUpdate(podId: string, deskName: string, requestBody: UpdateDeskRequest): CancelablePromise<DeskResponse>;
43
+ static deskUpdate(podId: string, deskName: string, requestBody: UpdateDeskRequest): CancelablePromise<DeskResponse>;
44
44
  /**
45
45
  * Delete Desk
46
46
  * @param podId
@@ -48,7 +48,7 @@ export declare class DesksService {
48
48
  * @returns DeskMessageResponse Successful Response
49
49
  * @throws ApiError
50
50
  */
51
- static podDeskDelete(podId: string, deskName: string): CancelablePromise<DeskMessageResponse>;
51
+ static deskDelete(podId: string, deskName: string): CancelablePromise<DeskMessageResponse>;
52
52
  /**
53
53
  * Upload Desk Bundle
54
54
  * @param podId
@@ -57,7 +57,7 @@ export declare class DesksService {
57
57
  * @returns DeskBundleUploadResponse Successful Response
58
58
  * @throws ApiError
59
59
  */
60
- static podDeskBundleUpload(podId: string, deskName: string, formData?: Body_pod_desk_bundle_upload): CancelablePromise<DeskBundleUploadResponse>;
60
+ static deskBundleUpload(podId: string, deskName: string, formData?: DeskBundleUploadRequest): CancelablePromise<DeskBundleUploadResponse>;
61
61
  /**
62
62
  * Get Desk HTML
63
63
  * @param podId
@@ -65,7 +65,7 @@ export declare class DesksService {
65
65
  * @returns any Successful Response
66
66
  * @throws ApiError
67
67
  */
68
- static podDeskHtmlGet(podId: string, deskName: string): CancelablePromise<any>;
68
+ static deskHtmlGet(podId: string, deskName: string): CancelablePromise<any>;
69
69
  /**
70
70
  * Download Desk Source Archive
71
71
  * @param podId
@@ -73,5 +73,5 @@ export declare class DesksService {
73
73
  * @returns any Successful Response
74
74
  * @throws ApiError
75
75
  */
76
- static podDeskSourceArchiveGet(podId: string, deskName: string): CancelablePromise<any>;
76
+ static deskSourceArchiveGet(podId: string, deskName: string): CancelablePromise<any>;
77
77
  }
@@ -8,7 +8,7 @@ export class DesksService {
8
8
  * @returns DeskResponse Successful Response
9
9
  * @throws ApiError
10
10
  */
11
- static podDeskCreate(podId, requestBody) {
11
+ static deskCreate(podId, requestBody) {
12
12
  return __request(OpenAPI, {
13
13
  method: 'POST',
14
14
  url: '/pods/{pod_id}/desks',
@@ -30,7 +30,7 @@ export class DesksService {
30
30
  * @returns DeskListResponse Successful Response
31
31
  * @throws ApiError
32
32
  */
33
- static podDeskList(podId, limit = 100, pageToken) {
33
+ static deskList(podId, limit = 100, pageToken) {
34
34
  return __request(OpenAPI, {
35
35
  method: 'GET',
36
36
  url: '/pods/{pod_id}/desks',
@@ -53,7 +53,7 @@ export class DesksService {
53
53
  * @returns DeskResponse Successful Response
54
54
  * @throws ApiError
55
55
  */
56
- static podDeskGet(podId, deskName) {
56
+ static deskGet(podId, deskName) {
57
57
  return __request(OpenAPI, {
58
58
  method: 'GET',
59
59
  url: '/pods/{pod_id}/desks/{desk_name}',
@@ -74,7 +74,7 @@ export class DesksService {
74
74
  * @returns DeskResponse Successful Response
75
75
  * @throws ApiError
76
76
  */
77
- static podDeskUpdate(podId, deskName, requestBody) {
77
+ static deskUpdate(podId, deskName, requestBody) {
78
78
  return __request(OpenAPI, {
79
79
  method: 'PATCH',
80
80
  url: '/pods/{pod_id}/desks/{desk_name}',
@@ -96,7 +96,7 @@ export class DesksService {
96
96
  * @returns DeskMessageResponse Successful Response
97
97
  * @throws ApiError
98
98
  */
99
- static podDeskDelete(podId, deskName) {
99
+ static deskDelete(podId, deskName) {
100
100
  return __request(OpenAPI, {
101
101
  method: 'DELETE',
102
102
  url: '/pods/{pod_id}/desks/{desk_name}',
@@ -117,7 +117,7 @@ export class DesksService {
117
117
  * @returns DeskBundleUploadResponse Successful Response
118
118
  * @throws ApiError
119
119
  */
120
- static podDeskBundleUpload(podId, deskName, formData) {
120
+ static deskBundleUpload(podId, deskName, formData) {
121
121
  return __request(OpenAPI, {
122
122
  method: 'POST',
123
123
  url: '/pods/{pod_id}/desks/{desk_name}/bundle',
@@ -139,7 +139,7 @@ export class DesksService {
139
139
  * @returns any Successful Response
140
140
  * @throws ApiError
141
141
  */
142
- static podDeskHtmlGet(podId, deskName) {
142
+ static deskHtmlGet(podId, deskName) {
143
143
  return __request(OpenAPI, {
144
144
  method: 'GET',
145
145
  url: '/pods/{pod_id}/desks/{desk_name}/html',
@@ -159,7 +159,7 @@ export class DesksService {
159
159
  * @returns any Successful Response
160
160
  * @throws ApiError
161
161
  */
162
- static podDeskSourceArchiveGet(podId, deskName) {
162
+ static deskSourceArchiveGet(podId, deskName) {
163
163
  return __request(OpenAPI, {
164
164
  method: 'GET',
165
165
  url: '/pods/{pod_id}/desks/{desk_name}/source/archive',
@@ -1,7 +1,6 @@
1
- import type { Body_file_update } from '../models/Body_file_update.js';
2
- import type { Body_file_upload } from '../models/Body_file_upload.js';
3
1
  import type { Body_upload_file_files__resource_type___resource_id__upload_post } from '../models/Body_upload_file_files__resource_type___resource_id__upload_post.js';
4
2
  import type { CreateFolderRequest } from '../models/CreateFolderRequest.js';
3
+ import type { DatastoreFileUploadRequest } from '../models/DatastoreFileUploadRequest.js';
5
4
  import type { DatastoreMessageResponse } from '../models/DatastoreMessageResponse.js';
6
5
  import type { FileListResponse } from '../models/FileListResponse.js';
7
6
  import type { FileResponse } from '../models/FileResponse.js';
@@ -10,6 +9,7 @@ import type { FileSearchResponse } from '../models/FileSearchResponse.js';
10
9
  import type { FileUploadResponse } from '../models/FileUploadResponse.js';
11
10
  import type { ResourceFileListResponse } from '../models/ResourceFileListResponse.js';
12
11
  import type { ResourceType } from '../models/ResourceType.js';
12
+ import type { update } from '../models/update.js';
13
13
  import type { CancelablePromise } from '../core/CancelablePromise.js';
14
14
  export declare class FilesService {
15
15
  /**
@@ -59,7 +59,7 @@ export declare class FilesService {
59
59
  * @returns FileResponse Successful Response
60
60
  * @throws ApiError
61
61
  */
62
- static fileUpload(podId: string, datastoreName: string, formData: Body_file_upload): CancelablePromise<FileResponse>;
62
+ static fileUpload(podId: string, datastoreName: string, formData: DatastoreFileUploadRequest): CancelablePromise<FileResponse>;
63
63
  /**
64
64
  * List Files
65
65
  * @param podId
@@ -98,7 +98,7 @@ export declare class FilesService {
98
98
  * @returns FileResponse Successful Response
99
99
  * @throws ApiError
100
100
  */
101
- static fileUpdate(podId: string, datastoreName: string, fileId: string, formData?: Body_file_update): CancelablePromise<FileResponse>;
101
+ static fileUpdate(podId: string, datastoreName: string, fileId: string, formData?: update): CancelablePromise<FileResponse>;
102
102
  /**
103
103
  * Delete File
104
104
  * @param podId
@@ -1,4 +1,4 @@
1
- import type { Body_icon_upload } from '../models/Body_icon_upload.js';
1
+ import type { IconUploadRequest } from '../models/IconUploadRequest.js';
2
2
  import type { IconUploadResponse } from '../models/IconUploadResponse.js';
3
3
  import type { CancelablePromise } from '../core/CancelablePromise.js';
4
4
  export declare class IconsService {
@@ -9,7 +9,7 @@ export declare class IconsService {
9
9
  * @returns IconUploadResponse Successful Response
10
10
  * @throws ApiError
11
11
  */
12
- static iconUpload(formData: Body_icon_upload): CancelablePromise<IconUploadResponse>;
12
+ static iconUpload(formData: IconUploadRequest): CancelablePromise<IconUploadResponse>;
13
13
  /**
14
14
  * Get Public Icon
15
15
  * Fetch a previously uploaded public icon asset.
@@ -13,5 +13,5 @@ export declare class PublicSdkService {
13
13
  * @returns any Successful Response
14
14
  * @throws ApiError
15
15
  */
16
- static podDeskHtmlPublicGet(podId: string, deskName: string): CancelablePromise<any>;
16
+ static deskHtmlPublicGet(podId: string, deskName: string): CancelablePromise<any>;
17
17
  }
@@ -19,7 +19,7 @@ export class PublicSdkService {
19
19
  * @returns any Successful Response
20
20
  * @throws ApiError
21
21
  */
22
- static podDeskHtmlPublicGet(podId, deskName) {
22
+ static deskHtmlPublicGet(podId, deskName) {
23
23
  return __request(OpenAPI, {
24
24
  method: 'GET',
25
25
  url: '/public/desks/{pod_id}/{desk_name}/html',
@@ -6,3 +6,15 @@ export { useAgentRunStream } from "./useAgentRun.js";
6
6
  export type { UseAgentRunStreamOptions, UseAgentRunStreamResult } from "./useAgentRun.js";
7
7
  export { useAssistantRun } from "./useAssistantRun.js";
8
8
  export type { UseAssistantRunOptions, UseAssistantRunResult } from "./useAssistantRun.js";
9
+ export { useAssistantSession } from "./useAssistantSession.js";
10
+ export type { CreateConversationInput, SendAssistantMessageOptions, UseAssistantSessionOptions, UseAssistantSessionResult, } from "./useAssistantSession.js";
11
+ export { useAssistantRuntime } from "./useAssistantRuntime.js";
12
+ export type { UseAssistantRuntimeOptions, UseAssistantRuntimeResult, } from "./useAssistantRuntime.js";
13
+ export { useTaskSession } from "./useTaskSession.js";
14
+ export type { CreateTaskInput, UseTaskSessionOptions, UseTaskSessionResult, } from "./useTaskSession.js";
15
+ export { useFunctionSession } from "./useFunctionSession.js";
16
+ export type { UseFunctionSessionOptions, UseFunctionSessionResult, } from "./useFunctionSession.js";
17
+ export { useFlowSession } from "./useFlowSession.js";
18
+ export type { UseFlowSessionOptions, UseFlowSessionResult, } from "./useFlowSession.js";
19
+ export { useFlowRunHistory } from "./useFlowRunHistory.js";
20
+ export type { UseFlowRunHistoryOptions, UseFlowRunHistoryResult, } from "./useFlowRunHistory.js";
@@ -2,3 +2,9 @@ export { AuthGuard } from "./AuthGuard.js";
2
2
  export { useAuth } from "./useAuth.js";
3
3
  export { useAgentRunStream } from "./useAgentRun.js";
4
4
  export { useAssistantRun } from "./useAssistantRun.js";
5
+ export { useAssistantSession } from "./useAssistantSession.js";
6
+ export { useAssistantRuntime } from "./useAssistantRuntime.js";
7
+ export { useTaskSession } from "./useTaskSession.js";
8
+ export { useFunctionSession } from "./useFunctionSession.js";
9
+ export { useFlowSession } from "./useFlowSession.js";
10
+ export { useFlowRunHistory } from "./useFlowRunHistory.js";
@@ -1,5 +1,5 @@
1
1
  import type { LemmaClient } from "../client.js";
2
- import { type SseRawEvent } from "../streams.js";
2
+ import type { SseRawEvent } from "../streams.js";
3
3
  export interface UseAssistantRunOptions {
4
4
  client: LemmaClient;
5
5
  podId?: string;