lemma-sdk 0.2.5 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/browser/lemma-client.js +674 -1004
- package/dist/client.d.ts +0 -2
- package/dist/client.js +0 -3
- package/dist/index.d.ts +0 -1
- package/dist/namespaces/files.d.ts +8 -8
- package/dist/namespaces/files.js +16 -16
- package/dist/namespaces/records.d.ts +10 -10
- package/dist/namespaces/records.js +24 -24
- package/dist/namespaces/tables.d.ts +7 -7
- package/dist/namespaces/tables.js +13 -13
- package/dist/namespaces/workflows.d.ts +4 -4
- package/dist/openapi_client/index.d.ts +16 -15
- package/dist/openapi_client/index.js +4 -2
- package/dist/openapi_client/models/AccountCredentialsResponseSchema.d.ts +1 -1
- package/dist/openapi_client/models/AccountResponseSchema.d.ts +6 -6
- package/dist/openapi_client/models/{AgentNode_Input.d.ts → AgentNode.d.ts} +2 -2
- package/dist/openapi_client/models/{AgentNode_Output.d.ts → AgentNodeResponse.d.ts} +2 -5
- package/dist/openapi_client/models/AgentResponse.d.ts +10 -8
- package/dist/openapi_client/models/AppTriggerResponseSchema.d.ts +4 -4
- package/dist/openapi_client/models/ApplicationAccessConfig.d.ts +4 -4
- package/dist/openapi_client/models/ApplicationDetailResponseSchema.d.ts +6 -6
- package/dist/openapi_client/models/ApplicationResponseSchema.d.ts +5 -5
- package/dist/openapi_client/models/AssistantResponse.d.ts +9 -7
- package/dist/openapi_client/models/AssistantSurfaceResponse.d.ts +3 -3
- package/dist/openapi_client/models/CancelSubscriptionResponse.d.ts +3 -3
- package/dist/openapi_client/models/ColumnSchema.d.ts +22 -22
- package/dist/openapi_client/models/ConnectRequestResponseSchema.d.ts +4 -4
- package/dist/openapi_client/models/ConversationMessageResponse.d.ts +2 -2
- package/dist/openapi_client/models/ConversationResponse.d.ts +8 -8
- package/dist/openapi_client/models/CreateAgentRequest.d.ts +6 -4
- package/dist/openapi_client/models/CreateAssistantRequest.d.ts +5 -3
- package/dist/openapi_client/models/CreateConversationRequest.d.ts +3 -3
- package/dist/openapi_client/models/CreateDeskRequest.d.ts +2 -3
- package/dist/openapi_client/models/CreateFolderRequest.d.ts +6 -1
- package/dist/openapi_client/models/CreateFunctionRequest.d.ts +8 -6
- package/dist/openapi_client/models/CreateTableRequest.d.ts +8 -8
- package/dist/openapi_client/models/CreateTriggerRequest.d.ts +3 -3
- package/dist/openapi_client/models/DataStoreFlowStart.d.ts +6 -6
- package/dist/openapi_client/models/DatastoreFileUploadRequest.d.ts +3 -1
- package/dist/openapi_client/models/{DecisionNode_Input.d.ts → DecisionNode.d.ts} +2 -2
- package/dist/openapi_client/models/{DecisionNode_Output.d.ts → DecisionNodeResponse.d.ts} +2 -5
- package/dist/openapi_client/models/DeskBundleUploadRequest.d.ts +1 -1
- package/dist/openapi_client/models/DeskBundleUploadResponse.d.ts +1 -1
- package/dist/openapi_client/models/DeskResponse.d.ts +6 -7
- package/dist/openapi_client/models/EmailSurfaceConfigCreate.d.ts +1 -1
- package/dist/openapi_client/models/EndNode.d.ts +1 -1
- package/dist/openapi_client/models/EndNodeResponse.d.ts +8 -0
- package/dist/openapi_client/models/EventFlowStart.d.ts +5 -5
- package/dist/openapi_client/models/FileInfo.d.ts +3 -3
- package/dist/openapi_client/models/FileResponse.d.ts +13 -9
- package/dist/openapi_client/models/FileSearchRequest.d.ts +2 -2
- package/dist/openapi_client/models/FileSearchResponse.d.ts +1 -1
- package/dist/openapi_client/models/FileSearchResultSchema.d.ts +1 -1
- package/dist/openapi_client/models/FileUploadResponse.d.ts +2 -2
- package/dist/openapi_client/models/FileVisibility.d.ts +4 -0
- package/dist/openapi_client/models/FileVisibility.js +9 -0
- package/dist/openapi_client/models/FlowInstallEntity.d.ts +5 -5
- package/dist/openapi_client/models/FlowResponse.d.ts +23 -0
- package/dist/openapi_client/models/FlowRunEntity.d.ts +10 -10
- package/dist/openapi_client/models/FlowStart.d.ts +4 -4
- package/dist/openapi_client/models/FormNode.d.ts +1 -1
- package/dist/openapi_client/models/FormNodeResponse.d.ts +8 -0
- package/dist/openapi_client/models/{FunctionNode_Input.d.ts → FunctionNode.d.ts} +2 -2
- package/dist/openapi_client/models/{FunctionNode_Output.d.ts → FunctionNodeResponse.d.ts} +2 -5
- package/dist/openapi_client/models/FunctionResponse.d.ts +13 -11
- package/dist/openapi_client/models/FunctionRunResponse.d.ts +7 -7
- package/dist/openapi_client/models/IconUploadResponse.d.ts +1 -1
- package/dist/openapi_client/models/LoopNode.d.ts +1 -1
- package/dist/openapi_client/models/LoopNodeConfig.d.ts +4 -4
- package/dist/openapi_client/models/LoopNodeResponse.d.ts +8 -0
- package/dist/openapi_client/models/NotificationContent.d.ts +1 -1
- package/dist/openapi_client/models/OperationDetail.d.ts +1 -1
- package/dist/openapi_client/models/OperationExecutionRequest.d.ts +1 -1
- package/dist/openapi_client/models/OperationSummary.d.ts +1 -1
- package/dist/openapi_client/models/OrganizationInvitationResponse.d.ts +5 -5
- package/dist/openapi_client/models/OrganizationMemberResponse.d.ts +3 -3
- package/dist/openapi_client/models/OrganizationResponse.d.ts +1 -1
- package/dist/openapi_client/models/PlanResponse.d.ts +6 -6
- package/dist/openapi_client/models/PodAppConfigItem.d.ts +3 -3
- package/dist/openapi_client/models/PodCreateRequest.d.ts +3 -3
- package/dist/openapi_client/models/PodFlowConfigItem.d.ts +3 -3
- package/dist/openapi_client/models/PodListResponse.d.ts +1 -1
- package/dist/openapi_client/models/PodMemberListResponse.d.ts +1 -1
- package/dist/openapi_client/models/PodMemberResponse.d.ts +2 -2
- package/dist/openapi_client/models/PodPermissionsResponse.d.ts +1 -1
- package/dist/openapi_client/models/PodResponse.d.ts +6 -6
- package/dist/openapi_client/models/PodUpdateRequest.d.ts +2 -2
- package/dist/openapi_client/models/RecentUsageResponse.d.ts +1 -1
- package/dist/openapi_client/models/RecordListResponse.d.ts +1 -1
- package/dist/openapi_client/models/RecordQueryRequest.d.ts +4 -4
- package/dist/openapi_client/models/RecordSort.d.ts +4 -4
- package/dist/openapi_client/models/SearchResult.d.ts +3 -3
- package/dist/openapi_client/models/SeatInfoResponse.d.ts +2 -2
- package/dist/openapi_client/models/SlackSurfaceConfigCreate.d.ts +1 -1
- package/dist/openapi_client/models/StackFrame.d.ts +3 -3
- package/dist/openapi_client/models/StartSubscriptionRequest.d.ts +4 -4
- package/dist/openapi_client/models/StepExecution.d.ts +4 -4
- package/dist/openapi_client/models/SubscriptionStatusResponse.d.ts +1 -1
- package/dist/openapi_client/models/SubscriptionWithPlanResponse.d.ts +7 -7
- package/dist/openapi_client/models/TableAccessEntry.d.ts +5 -0
- package/dist/openapi_client/models/TableAccessMode.d.ts +7 -0
- package/dist/openapi_client/models/TableAccessMode.js +12 -0
- package/dist/openapi_client/models/TableResponse.d.ts +5 -5
- package/dist/openapi_client/models/TaskMessageResponse.d.ts +2 -2
- package/dist/openapi_client/models/TaskResponse.d.ts +5 -5
- package/dist/openapi_client/models/TeamsSurfaceConfigCreate.d.ts +1 -1
- package/dist/openapi_client/models/TextContent.d.ts +1 -1
- package/dist/openapi_client/models/ThinkingContent.d.ts +1 -1
- package/dist/openapi_client/models/ToolCallRequest.d.ts +2 -2
- package/dist/openapi_client/models/ToolCallResponse.d.ts +1 -1
- package/dist/openapi_client/models/TriggerResponse.d.ts +6 -6
- package/dist/openapi_client/models/UpdateAgentRequest.d.ts +5 -3
- package/dist/openapi_client/models/UpdateAssistantRequest.d.ts +4 -2
- package/dist/openapi_client/models/UpdateConversationRequest.d.ts +1 -1
- package/dist/openapi_client/models/UpdateDeskRequest.d.ts +1 -1
- package/dist/openapi_client/models/UpdateFunctionRequest.d.ts +6 -4
- package/dist/openapi_client/models/UsageRecordResponse.d.ts +11 -11
- package/dist/openapi_client/models/UsageSummaryResponse.d.ts +5 -5
- package/dist/openapi_client/models/UserProfileRequest.d.ts +2 -2
- package/dist/openapi_client/models/UserResponse.d.ts +6 -6
- package/dist/openapi_client/models/ValidationError.d.ts +2 -2
- package/dist/openapi_client/models/VerifyTokenResponse.d.ts +1 -1
- package/dist/openapi_client/models/WaitUntilNode.d.ts +1 -1
- package/dist/openapi_client/models/WaitUntilNodeResponse.d.ts +8 -0
- package/dist/openapi_client/models/WebSearchAgentResponse.d.ts +8 -8
- package/dist/openapi_client/models/WebSearchRequest.d.ts +4 -4
- package/dist/openapi_client/models/WebSearchResponse.d.ts +8 -8
- package/dist/openapi_client/models/WhatsAppSurfaceConfigCreate.d.ts +1 -1
- package/dist/openapi_client/models/WorkflowCreateRequest.d.ts +6 -6
- package/dist/openapi_client/models/WorkflowEdge.d.ts +1 -1
- package/dist/openapi_client/models/WorkflowGraphUpdateRequest.d.ts +7 -7
- package/dist/openapi_client/models/WorkflowListResponse.d.ts +2 -2
- package/dist/openapi_client/models/update.d.ts +3 -1
- package/dist/openapi_client/services/AgentFilesService.d.ts +46 -0
- package/dist/openapi_client/services/AgentFilesService.js +103 -0
- package/dist/openapi_client/services/AgentsService.d.ts +15 -15
- package/dist/openapi_client/services/AgentsService.js +33 -33
- package/dist/openapi_client/services/ApplicationsService.d.ts +7 -7
- package/dist/openapi_client/services/ApplicationsService.js +16 -16
- package/dist/openapi_client/services/AssistantSurfacesService.d.ts +9 -9
- package/dist/openapi_client/services/AssistantSurfacesService.js +19 -19
- package/dist/openapi_client/services/AssistantsService.d.ts +13 -13
- package/dist/openapi_client/services/AssistantsService.js +31 -31
- package/dist/openapi_client/services/BillingSubscriptionsService.d.ts +15 -15
- package/dist/openapi_client/services/BillingSubscriptionsService.js +22 -22
- package/dist/openapi_client/services/BillingUsageService.d.ts +7 -7
- package/dist/openapi_client/services/BillingUsageService.js +10 -10
- package/dist/openapi_client/services/ConversationsService.d.ts +13 -13
- package/dist/openapi_client/services/ConversationsService.js +27 -27
- package/dist/openapi_client/services/DesksService.d.ts +13 -13
- package/dist/openapi_client/services/DesksService.js +31 -31
- package/dist/openapi_client/services/FilesService.d.ts +21 -72
- package/dist/openapi_client/services/FilesService.js +39 -154
- package/dist/openapi_client/services/FunctionsService.d.ts +21 -21
- package/dist/openapi_client/services/FunctionsService.js +45 -45
- package/dist/openapi_client/services/IntegrationsService.d.ts +24 -24
- package/dist/openapi_client/services/IntegrationsService.js +47 -47
- package/dist/openapi_client/services/OrganizationsService.d.ts +46 -46
- package/dist/openapi_client/services/OrganizationsService.js +88 -88
- package/dist/openapi_client/services/PodMembersService.d.ts +13 -13
- package/dist/openapi_client/services/PodMembersService.js +29 -29
- package/dist/openapi_client/services/PodsService.d.ts +18 -18
- package/dist/openapi_client/services/PodsService.js +34 -34
- package/dist/openapi_client/services/PublicDesksService.d.ts +10 -0
- package/dist/openapi_client/services/PublicDesksService.js +22 -0
- package/dist/openapi_client/services/RecordsService.d.ts +39 -48
- package/dist/openapi_client/services/RecordsService.js +71 -89
- package/dist/openapi_client/services/TablesService.d.ts +18 -25
- package/dist/openapi_client/services/TablesService.js +39 -53
- package/dist/openapi_client/services/TasksService.d.ts +19 -19
- package/dist/openapi_client/services/TasksService.js +39 -39
- package/dist/openapi_client/services/TriggersService.d.ts +16 -16
- package/dist/openapi_client/services/TriggersService.js +35 -35
- package/dist/openapi_client/services/WebhooksService.d.ts +8 -8
- package/dist/openapi_client/services/WebhooksService.js +18 -18
- package/dist/openapi_client/services/WorkflowsService.d.ts +59 -59
- package/dist/openapi_client/services/WorkflowsService.js +115 -115
- package/dist/react/useFunctionSession.d.ts +1 -1
- package/dist/react/useFunctionSession.js +9 -2
- package/package.json +1 -1
- package/dist/namespaces/datastores.d.ts +0 -18
- package/dist/namespaces/datastores.js +0 -28
- package/dist/openapi_client/models/CreateDatastoreRequest.d.ts +0 -21
- package/dist/openapi_client/models/DatastoreListResponse.d.ts +0 -9
- package/dist/openapi_client/models/DatastoreQueryRequest.d.ts +0 -9
- package/dist/openapi_client/models/DatastoreResponse.d.ts +0 -15
- package/dist/openapi_client/models/FlowEntity.d.ts +0 -26
- package/dist/openapi_client/models/RecordQueryResponse.d.ts +0 -13
- package/dist/openapi_client/models/UpdateDatastoreRequest.d.ts +0 -17
- package/dist/openapi_client/models/UpdateDatastoreRequest.js +0 -1
- package/dist/openapi_client/services/DatastoreService.d.ts +0 -67
- package/dist/openapi_client/services/DatastoreService.js +0 -141
- package/dist/openapi_client/services/PublicSdkService.d.ts +0 -17
- package/dist/openapi_client/services/PublicSdkService.js +0 -35
- /package/dist/openapi_client/models/{AgentNode_Input.js → AgentNode.js} +0 -0
- /package/dist/openapi_client/models/{AgentNode_Output.js → AgentNodeResponse.js} +0 -0
- /package/dist/openapi_client/models/{CreateDatastoreRequest.js → DecisionNode.js} +0 -0
- /package/dist/openapi_client/models/{DatastoreListResponse.js → DecisionNodeResponse.js} +0 -0
- /package/dist/openapi_client/models/{DatastoreQueryRequest.js → EndNodeResponse.js} +0 -0
- /package/dist/openapi_client/models/{DatastoreResponse.js → FlowResponse.js} +0 -0
- /package/dist/openapi_client/models/{DecisionNode_Input.js → FormNodeResponse.js} +0 -0
- /package/dist/openapi_client/models/{DecisionNode_Output.js → FunctionNode.js} +0 -0
- /package/dist/openapi_client/models/{FlowEntity.js → FunctionNodeResponse.js} +0 -0
- /package/dist/openapi_client/models/{FunctionNode_Input.js → LoopNodeResponse.js} +0 -0
- /package/dist/openapi_client/models/{FunctionNode_Output.js → TableAccessEntry.js} +0 -0
- /package/dist/openapi_client/models/{RecordQueryResponse.js → WaitUntilNodeResponse.js} +0 -0
|
@@ -3,24 +3,22 @@ import { request as __request } from '../core/request.js';
|
|
|
3
3
|
export class FilesService {
|
|
4
4
|
/**
|
|
5
5
|
* List Files
|
|
6
|
-
* @param
|
|
7
|
-
* @param
|
|
8
|
-
* @param path
|
|
6
|
+
* @param podId
|
|
7
|
+
* @param parentId
|
|
9
8
|
* @param limit
|
|
10
9
|
* @param pageToken
|
|
11
|
-
* @returns
|
|
10
|
+
* @returns FileListResponse Successful Response
|
|
12
11
|
* @throws ApiError
|
|
13
12
|
*/
|
|
14
|
-
static
|
|
13
|
+
static fileList(podId, parentId, limit = 100, pageToken) {
|
|
15
14
|
return __request(OpenAPI, {
|
|
16
15
|
method: 'GET',
|
|
17
|
-
url: '/
|
|
16
|
+
url: '/pods/{pod_id}/datastore/files',
|
|
18
17
|
path: {
|
|
19
|
-
'
|
|
20
|
-
'resource_id': resourceId,
|
|
18
|
+
'pod_id': podId,
|
|
21
19
|
},
|
|
22
20
|
query: {
|
|
23
|
-
'
|
|
21
|
+
'parent_id': parentId,
|
|
24
22
|
'limit': limit,
|
|
25
23
|
'page_token': pageToken,
|
|
26
24
|
},
|
|
@@ -31,23 +29,17 @@ export class FilesService {
|
|
|
31
29
|
}
|
|
32
30
|
/**
|
|
33
31
|
* Upload File
|
|
34
|
-
* @param
|
|
35
|
-
* @param resourceId
|
|
32
|
+
* @param podId
|
|
36
33
|
* @param formData
|
|
37
|
-
* @
|
|
38
|
-
* @returns FileUploadResponse Successful Response
|
|
34
|
+
* @returns FileResponse Successful Response
|
|
39
35
|
* @throws ApiError
|
|
40
36
|
*/
|
|
41
|
-
static
|
|
37
|
+
static fileUpload(podId, formData) {
|
|
42
38
|
return __request(OpenAPI, {
|
|
43
39
|
method: 'POST',
|
|
44
|
-
url: '/
|
|
40
|
+
url: '/pods/{pod_id}/datastore/files',
|
|
45
41
|
path: {
|
|
46
|
-
'
|
|
47
|
-
'resource_id': resourceId,
|
|
48
|
-
},
|
|
49
|
-
query: {
|
|
50
|
-
'path': path,
|
|
42
|
+
'pod_id': podId,
|
|
51
43
|
},
|
|
52
44
|
formData: formData,
|
|
53
45
|
mediaType: 'multipart/form-data',
|
|
@@ -57,118 +49,62 @@ export class FilesService {
|
|
|
57
49
|
});
|
|
58
50
|
}
|
|
59
51
|
/**
|
|
60
|
-
*
|
|
61
|
-
* @param resourceType
|
|
62
|
-
* @param resourceId
|
|
63
|
-
* @param filePath
|
|
64
|
-
* @returns any Successful Response
|
|
65
|
-
* @throws ApiError
|
|
66
|
-
*/
|
|
67
|
-
static downloadFileFilesResourceTypeResourceIdDownloadFilePathGet(resourceType, resourceId, filePath) {
|
|
68
|
-
return __request(OpenAPI, {
|
|
69
|
-
method: 'GET',
|
|
70
|
-
url: '/files/{resource_type}/{resource_id}/download/{file_path}',
|
|
71
|
-
path: {
|
|
72
|
-
'resource_type': resourceType,
|
|
73
|
-
'resource_id': resourceId,
|
|
74
|
-
'file_path': filePath,
|
|
75
|
-
},
|
|
76
|
-
errors: {
|
|
77
|
-
422: `Validation Error`,
|
|
78
|
-
},
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Delete File
|
|
83
|
-
* @param resourceType
|
|
84
|
-
* @param resourceId
|
|
85
|
-
* @param filePath
|
|
86
|
-
* @returns any Successful Response
|
|
87
|
-
* @throws ApiError
|
|
88
|
-
*/
|
|
89
|
-
static deleteFileFilesResourceTypeResourceIdDeleteFilePathDelete(resourceType, resourceId, filePath) {
|
|
90
|
-
return __request(OpenAPI, {
|
|
91
|
-
method: 'DELETE',
|
|
92
|
-
url: '/files/{resource_type}/{resource_id}/delete/{file_path}',
|
|
93
|
-
path: {
|
|
94
|
-
'resource_type': resourceType,
|
|
95
|
-
'resource_id': resourceId,
|
|
96
|
-
'file_path': filePath,
|
|
97
|
-
},
|
|
98
|
-
errors: {
|
|
99
|
-
422: `Validation Error`,
|
|
100
|
-
},
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Upload File
|
|
52
|
+
* Create Folder
|
|
105
53
|
* @param podId
|
|
106
|
-
* @param
|
|
107
|
-
* @param formData
|
|
54
|
+
* @param requestBody
|
|
108
55
|
* @returns FileResponse Successful Response
|
|
109
56
|
* @throws ApiError
|
|
110
57
|
*/
|
|
111
|
-
static
|
|
58
|
+
static fileFolderCreate(podId, requestBody) {
|
|
112
59
|
return __request(OpenAPI, {
|
|
113
60
|
method: 'POST',
|
|
114
|
-
url: '/pods/{pod_id}/
|
|
61
|
+
url: '/pods/{pod_id}/datastore/files/folders',
|
|
115
62
|
path: {
|
|
116
63
|
'pod_id': podId,
|
|
117
|
-
'datastore_name': datastoreName,
|
|
118
64
|
},
|
|
119
|
-
|
|
120
|
-
mediaType: '
|
|
65
|
+
body: requestBody,
|
|
66
|
+
mediaType: 'application/json',
|
|
121
67
|
errors: {
|
|
122
68
|
422: `Validation Error`,
|
|
123
69
|
},
|
|
124
70
|
});
|
|
125
71
|
}
|
|
126
72
|
/**
|
|
127
|
-
*
|
|
73
|
+
* Search Files
|
|
128
74
|
* @param podId
|
|
129
|
-
* @param
|
|
130
|
-
* @
|
|
131
|
-
* @param limit
|
|
132
|
-
* @param pageToken
|
|
133
|
-
* @returns FileListResponse Successful Response
|
|
75
|
+
* @param requestBody
|
|
76
|
+
* @returns FileSearchResponse Successful Response
|
|
134
77
|
* @throws ApiError
|
|
135
78
|
*/
|
|
136
|
-
static
|
|
79
|
+
static fileSearch(podId, requestBody) {
|
|
137
80
|
return __request(OpenAPI, {
|
|
138
|
-
method: '
|
|
139
|
-
url: '/pods/{pod_id}/
|
|
81
|
+
method: 'POST',
|
|
82
|
+
url: '/pods/{pod_id}/datastore/files/search',
|
|
140
83
|
path: {
|
|
141
84
|
'pod_id': podId,
|
|
142
|
-
'datastore_name': datastoreName,
|
|
143
|
-
},
|
|
144
|
-
query: {
|
|
145
|
-
'parent_id': parentId,
|
|
146
|
-
'limit': limit,
|
|
147
|
-
'page_token': pageToken,
|
|
148
85
|
},
|
|
86
|
+
body: requestBody,
|
|
87
|
+
mediaType: 'application/json',
|
|
149
88
|
errors: {
|
|
150
89
|
422: `Validation Error`,
|
|
151
90
|
},
|
|
152
91
|
});
|
|
153
92
|
}
|
|
154
93
|
/**
|
|
155
|
-
*
|
|
94
|
+
* Delete File
|
|
156
95
|
* @param podId
|
|
157
|
-
* @param
|
|
158
|
-
* @
|
|
159
|
-
* @returns FileResponse Successful Response
|
|
96
|
+
* @param fileId
|
|
97
|
+
* @returns DatastoreMessageResponse Successful Response
|
|
160
98
|
* @throws ApiError
|
|
161
99
|
*/
|
|
162
|
-
static
|
|
100
|
+
static fileDelete(podId, fileId) {
|
|
163
101
|
return __request(OpenAPI, {
|
|
164
|
-
method: '
|
|
165
|
-
url: '/pods/{pod_id}/
|
|
102
|
+
method: 'DELETE',
|
|
103
|
+
url: '/pods/{pod_id}/datastore/files/{file_id}',
|
|
166
104
|
path: {
|
|
167
105
|
'pod_id': podId,
|
|
168
|
-
'
|
|
106
|
+
'file_id': fileId,
|
|
169
107
|
},
|
|
170
|
-
body: requestBody,
|
|
171
|
-
mediaType: 'application/json',
|
|
172
108
|
errors: {
|
|
173
109
|
422: `Validation Error`,
|
|
174
110
|
},
|
|
@@ -177,18 +113,16 @@ export class FilesService {
|
|
|
177
113
|
/**
|
|
178
114
|
* Get File
|
|
179
115
|
* @param podId
|
|
180
|
-
* @param datastoreName
|
|
181
116
|
* @param fileId
|
|
182
117
|
* @returns FileResponse Successful Response
|
|
183
118
|
* @throws ApiError
|
|
184
119
|
*/
|
|
185
|
-
static fileGet(podId,
|
|
120
|
+
static fileGet(podId, fileId) {
|
|
186
121
|
return __request(OpenAPI, {
|
|
187
122
|
method: 'GET',
|
|
188
|
-
url: '/pods/{pod_id}/
|
|
123
|
+
url: '/pods/{pod_id}/datastore/files/{file_id}',
|
|
189
124
|
path: {
|
|
190
125
|
'pod_id': podId,
|
|
191
|
-
'datastore_name': datastoreName,
|
|
192
126
|
'file_id': fileId,
|
|
193
127
|
},
|
|
194
128
|
errors: {
|
|
@@ -199,19 +133,17 @@ export class FilesService {
|
|
|
199
133
|
/**
|
|
200
134
|
* Update File
|
|
201
135
|
* @param podId
|
|
202
|
-
* @param datastoreName
|
|
203
136
|
* @param fileId
|
|
204
137
|
* @param formData
|
|
205
138
|
* @returns FileResponse Successful Response
|
|
206
139
|
* @throws ApiError
|
|
207
140
|
*/
|
|
208
|
-
static fileUpdate(podId,
|
|
141
|
+
static fileUpdate(podId, fileId, formData) {
|
|
209
142
|
return __request(OpenAPI, {
|
|
210
143
|
method: 'PATCH',
|
|
211
|
-
url: '/pods/{pod_id}/
|
|
144
|
+
url: '/pods/{pod_id}/datastore/files/{file_id}',
|
|
212
145
|
path: {
|
|
213
146
|
'pod_id': podId,
|
|
214
|
-
'datastore_name': datastoreName,
|
|
215
147
|
'file_id': fileId,
|
|
216
148
|
},
|
|
217
149
|
formData: formData,
|
|
@@ -221,43 +153,19 @@ export class FilesService {
|
|
|
221
153
|
},
|
|
222
154
|
});
|
|
223
155
|
}
|
|
224
|
-
/**
|
|
225
|
-
* Delete File
|
|
226
|
-
* @param podId
|
|
227
|
-
* @param datastoreName
|
|
228
|
-
* @param fileId
|
|
229
|
-
* @returns DatastoreMessageResponse Successful Response
|
|
230
|
-
* @throws ApiError
|
|
231
|
-
*/
|
|
232
|
-
static fileDelete(podId, datastoreName, fileId) {
|
|
233
|
-
return __request(OpenAPI, {
|
|
234
|
-
method: 'DELETE',
|
|
235
|
-
url: '/pods/{pod_id}/datastores/{datastore_name}/files/{file_id}',
|
|
236
|
-
path: {
|
|
237
|
-
'pod_id': podId,
|
|
238
|
-
'datastore_name': datastoreName,
|
|
239
|
-
'file_id': fileId,
|
|
240
|
-
},
|
|
241
|
-
errors: {
|
|
242
|
-
422: `Validation Error`,
|
|
243
|
-
},
|
|
244
|
-
});
|
|
245
|
-
}
|
|
246
156
|
/**
|
|
247
157
|
* Download File
|
|
248
158
|
* @param podId
|
|
249
|
-
* @param datastoreName
|
|
250
159
|
* @param fileId
|
|
251
160
|
* @returns any Successful Response
|
|
252
161
|
* @throws ApiError
|
|
253
162
|
*/
|
|
254
|
-
static fileDownload(podId,
|
|
163
|
+
static fileDownload(podId, fileId) {
|
|
255
164
|
return __request(OpenAPI, {
|
|
256
165
|
method: 'GET',
|
|
257
|
-
url: '/pods/{pod_id}/
|
|
166
|
+
url: '/pods/{pod_id}/datastore/files/{file_id}/download',
|
|
258
167
|
path: {
|
|
259
168
|
'pod_id': podId,
|
|
260
|
-
'datastore_name': datastoreName,
|
|
261
169
|
'file_id': fileId,
|
|
262
170
|
},
|
|
263
171
|
errors: {
|
|
@@ -265,27 +173,4 @@ export class FilesService {
|
|
|
265
173
|
},
|
|
266
174
|
});
|
|
267
175
|
}
|
|
268
|
-
/**
|
|
269
|
-
* Search Files
|
|
270
|
-
* @param podId
|
|
271
|
-
* @param datastoreName
|
|
272
|
-
* @param requestBody
|
|
273
|
-
* @returns FileSearchResponse Successful Response
|
|
274
|
-
* @throws ApiError
|
|
275
|
-
*/
|
|
276
|
-
static fileSearch(podId, datastoreName, requestBody) {
|
|
277
|
-
return __request(OpenAPI, {
|
|
278
|
-
method: 'POST',
|
|
279
|
-
url: '/pods/{pod_id}/datastores/{datastore_name}/files/search',
|
|
280
|
-
path: {
|
|
281
|
-
'pod_id': podId,
|
|
282
|
-
'datastore_name': datastoreName,
|
|
283
|
-
},
|
|
284
|
-
body: requestBody,
|
|
285
|
-
mediaType: 'application/json',
|
|
286
|
-
errors: {
|
|
287
|
-
422: `Validation Error`,
|
|
288
|
-
},
|
|
289
|
-
});
|
|
290
|
-
}
|
|
291
176
|
}
|
|
@@ -8,6 +8,16 @@ import type { FunctionRunResponse } from '../models/FunctionRunResponse.js';
|
|
|
8
8
|
import type { UpdateFunctionRequest } from '../models/UpdateFunctionRequest.js';
|
|
9
9
|
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
10
10
|
export declare class FunctionsService {
|
|
11
|
+
/**
|
|
12
|
+
* List Functions
|
|
13
|
+
* List all functions in a pod
|
|
14
|
+
* @param podId
|
|
15
|
+
* @param limit
|
|
16
|
+
* @param pageToken
|
|
17
|
+
* @returns FunctionListResponse Successful Response
|
|
18
|
+
* @throws ApiError
|
|
19
|
+
*/
|
|
20
|
+
static functionList(podId: string, limit?: number, pageToken?: (string | null)): CancelablePromise<FunctionListResponse>;
|
|
11
21
|
/**
|
|
12
22
|
* Create Function
|
|
13
23
|
* Create a new function in a pod
|
|
@@ -18,15 +28,14 @@ export declare class FunctionsService {
|
|
|
18
28
|
*/
|
|
19
29
|
static functionCreate(podId: string, requestBody: CreateFunctionRequest): CancelablePromise<FunctionResponse>;
|
|
20
30
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
31
|
+
* Delete Function
|
|
32
|
+
* Delete a function
|
|
23
33
|
* @param podId
|
|
24
|
-
* @param
|
|
25
|
-
* @
|
|
26
|
-
* @returns FunctionListResponse Successful Response
|
|
34
|
+
* @param functionName
|
|
35
|
+
* @returns FunctionMessageResponse Successful Response
|
|
27
36
|
* @throws ApiError
|
|
28
37
|
*/
|
|
29
|
-
static
|
|
38
|
+
static functionDelete(podId: string, functionName: string): CancelablePromise<FunctionMessageResponse>;
|
|
30
39
|
/**
|
|
31
40
|
* Get Function
|
|
32
41
|
* Get a function by name
|
|
@@ -47,14 +56,16 @@ export declare class FunctionsService {
|
|
|
47
56
|
*/
|
|
48
57
|
static functionUpdate(podId: string, functionName: string, requestBody: UpdateFunctionRequest): CancelablePromise<FunctionResponse>;
|
|
49
58
|
/**
|
|
50
|
-
*
|
|
51
|
-
*
|
|
59
|
+
* List Runs
|
|
60
|
+
* List runs for a function
|
|
52
61
|
* @param podId
|
|
53
62
|
* @param functionName
|
|
54
|
-
* @
|
|
63
|
+
* @param limit
|
|
64
|
+
* @param pageToken
|
|
65
|
+
* @returns FunctionRunListResponse Successful Response
|
|
55
66
|
* @throws ApiError
|
|
56
67
|
*/
|
|
57
|
-
static
|
|
68
|
+
static functionRunList(podId: string, functionName: string, limit?: number, pageToken?: (string | null)): CancelablePromise<FunctionRunListResponse>;
|
|
58
69
|
/**
|
|
59
70
|
* Execute Function
|
|
60
71
|
* Execute a function
|
|
@@ -65,17 +76,6 @@ export declare class FunctionsService {
|
|
|
65
76
|
* @throws ApiError
|
|
66
77
|
*/
|
|
67
78
|
static functionRun(podId: string, functionName: string, requestBody: ExecuteFunctionRequest): CancelablePromise<FunctionRunResponse>;
|
|
68
|
-
/**
|
|
69
|
-
* List Runs
|
|
70
|
-
* List runs for a function
|
|
71
|
-
* @param podId
|
|
72
|
-
* @param functionName
|
|
73
|
-
* @param limit
|
|
74
|
-
* @param pageToken
|
|
75
|
-
* @returns FunctionRunListResponse Successful Response
|
|
76
|
-
* @throws ApiError
|
|
77
|
-
*/
|
|
78
|
-
static functionRunList(podId: string, functionName: string, limit?: number, pageToken?: (string | null)): CancelablePromise<FunctionRunListResponse>;
|
|
79
79
|
/**
|
|
80
80
|
* Get Run
|
|
81
81
|
* Get a specific function run
|
|
@@ -1,6 +1,31 @@
|
|
|
1
1
|
import { OpenAPI } from '../core/OpenAPI.js';
|
|
2
2
|
import { request as __request } from '../core/request.js';
|
|
3
3
|
export class FunctionsService {
|
|
4
|
+
/**
|
|
5
|
+
* List Functions
|
|
6
|
+
* List all functions in a pod
|
|
7
|
+
* @param podId
|
|
8
|
+
* @param limit
|
|
9
|
+
* @param pageToken
|
|
10
|
+
* @returns FunctionListResponse Successful Response
|
|
11
|
+
* @throws ApiError
|
|
12
|
+
*/
|
|
13
|
+
static functionList(podId, limit = 100, pageToken) {
|
|
14
|
+
return __request(OpenAPI, {
|
|
15
|
+
method: 'GET',
|
|
16
|
+
url: '/pods/{pod_id}/functions',
|
|
17
|
+
path: {
|
|
18
|
+
'pod_id': podId,
|
|
19
|
+
},
|
|
20
|
+
query: {
|
|
21
|
+
'limit': limit,
|
|
22
|
+
'page_token': pageToken,
|
|
23
|
+
},
|
|
24
|
+
errors: {
|
|
25
|
+
422: `Validation Error`,
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
}
|
|
4
29
|
/**
|
|
5
30
|
* Create Function
|
|
6
31
|
* Create a new function in a pod
|
|
@@ -24,24 +49,20 @@ export class FunctionsService {
|
|
|
24
49
|
});
|
|
25
50
|
}
|
|
26
51
|
/**
|
|
27
|
-
*
|
|
28
|
-
*
|
|
52
|
+
* Delete Function
|
|
53
|
+
* Delete a function
|
|
29
54
|
* @param podId
|
|
30
|
-
* @param
|
|
31
|
-
* @
|
|
32
|
-
* @returns FunctionListResponse Successful Response
|
|
55
|
+
* @param functionName
|
|
56
|
+
* @returns FunctionMessageResponse Successful Response
|
|
33
57
|
* @throws ApiError
|
|
34
58
|
*/
|
|
35
|
-
static
|
|
59
|
+
static functionDelete(podId, functionName) {
|
|
36
60
|
return __request(OpenAPI, {
|
|
37
|
-
method: '
|
|
38
|
-
url: '/pods/{pod_id}/functions',
|
|
61
|
+
method: 'DELETE',
|
|
62
|
+
url: '/pods/{pod_id}/functions/{function_name}',
|
|
39
63
|
path: {
|
|
40
64
|
'pod_id': podId,
|
|
41
|
-
|
|
42
|
-
query: {
|
|
43
|
-
'limit': limit,
|
|
44
|
-
'page_token': pageToken,
|
|
65
|
+
'function_name': functionName,
|
|
45
66
|
},
|
|
46
67
|
errors: {
|
|
47
68
|
422: `Validation Error`,
|
|
@@ -94,21 +115,27 @@ export class FunctionsService {
|
|
|
94
115
|
});
|
|
95
116
|
}
|
|
96
117
|
/**
|
|
97
|
-
*
|
|
98
|
-
*
|
|
118
|
+
* List Runs
|
|
119
|
+
* List runs for a function
|
|
99
120
|
* @param podId
|
|
100
121
|
* @param functionName
|
|
101
|
-
* @
|
|
122
|
+
* @param limit
|
|
123
|
+
* @param pageToken
|
|
124
|
+
* @returns FunctionRunListResponse Successful Response
|
|
102
125
|
* @throws ApiError
|
|
103
126
|
*/
|
|
104
|
-
static
|
|
127
|
+
static functionRunList(podId, functionName, limit = 100, pageToken) {
|
|
105
128
|
return __request(OpenAPI, {
|
|
106
|
-
method: '
|
|
107
|
-
url: '/pods/{pod_id}/functions/{function_name}',
|
|
129
|
+
method: 'GET',
|
|
130
|
+
url: '/pods/{pod_id}/functions/{function_name}/runs',
|
|
108
131
|
path: {
|
|
109
132
|
'pod_id': podId,
|
|
110
133
|
'function_name': functionName,
|
|
111
134
|
},
|
|
135
|
+
query: {
|
|
136
|
+
'limit': limit,
|
|
137
|
+
'page_token': pageToken,
|
|
138
|
+
},
|
|
112
139
|
errors: {
|
|
113
140
|
422: `Validation Error`,
|
|
114
141
|
},
|
|
@@ -138,33 +165,6 @@ export class FunctionsService {
|
|
|
138
165
|
},
|
|
139
166
|
});
|
|
140
167
|
}
|
|
141
|
-
/**
|
|
142
|
-
* List Runs
|
|
143
|
-
* List runs for a function
|
|
144
|
-
* @param podId
|
|
145
|
-
* @param functionName
|
|
146
|
-
* @param limit
|
|
147
|
-
* @param pageToken
|
|
148
|
-
* @returns FunctionRunListResponse Successful Response
|
|
149
|
-
* @throws ApiError
|
|
150
|
-
*/
|
|
151
|
-
static functionRunList(podId, functionName, limit = 100, pageToken) {
|
|
152
|
-
return __request(OpenAPI, {
|
|
153
|
-
method: 'GET',
|
|
154
|
-
url: '/pods/{pod_id}/functions/{function_name}/runs',
|
|
155
|
-
path: {
|
|
156
|
-
'pod_id': podId,
|
|
157
|
-
'function_name': functionName,
|
|
158
|
-
},
|
|
159
|
-
query: {
|
|
160
|
-
'limit': limit,
|
|
161
|
-
'page_token': pageToken,
|
|
162
|
-
},
|
|
163
|
-
errors: {
|
|
164
|
-
422: `Validation Error`,
|
|
165
|
-
},
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
168
|
/**
|
|
169
169
|
* Get Run
|
|
170
170
|
* Get a specific function run
|
|
@@ -6,22 +6,6 @@ import type { ConnectRequestResponseSchema } from '../models/ConnectRequestRespo
|
|
|
6
6
|
import type { MessageResponseSchema } from '../models/MessageResponseSchema.js';
|
|
7
7
|
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
8
8
|
export declare class IntegrationsService {
|
|
9
|
-
/**
|
|
10
|
-
* Initiate Connect Request
|
|
11
|
-
* Initiate an OAuth connection request for an application
|
|
12
|
-
* @param requestBody
|
|
13
|
-
* @returns ConnectRequestResponseSchema Successful Response
|
|
14
|
-
* @throws ApiError
|
|
15
|
-
*/
|
|
16
|
-
static integrationConnectRequestCreate(requestBody: ConnectRequestInitiateSchema): CancelablePromise<ConnectRequestResponseSchema>;
|
|
17
|
-
/**
|
|
18
|
-
* OAuth Callback
|
|
19
|
-
* Handle OAuth callback and complete account connection. This endpoint is public and uses state parameter for security.
|
|
20
|
-
* @param error
|
|
21
|
-
* @returns AccountResponseSchema Successful Response
|
|
22
|
-
* @throws ApiError
|
|
23
|
-
*/
|
|
24
|
-
static integrationOauthCallback(error?: (string | null)): CancelablePromise<AccountResponseSchema>;
|
|
25
9
|
/**
|
|
26
10
|
* List Accounts
|
|
27
11
|
* Get all connected accounts for the current user. Optionally filter by application_id or application_name
|
|
@@ -32,14 +16,6 @@ export declare class IntegrationsService {
|
|
|
32
16
|
* @throws ApiError
|
|
33
17
|
*/
|
|
34
18
|
static integrationAccountList(applicationId?: (string | null), limit?: number, pageToken?: (string | null)): CancelablePromise<AccountListResponseSchema>;
|
|
35
|
-
/**
|
|
36
|
-
* Get Account
|
|
37
|
-
* Get a specific account by ID
|
|
38
|
-
* @param accountId
|
|
39
|
-
* @returns AccountResponseSchema Successful Response
|
|
40
|
-
* @throws ApiError
|
|
41
|
-
*/
|
|
42
|
-
static integrationAccountGet(accountId: string): CancelablePromise<AccountResponseSchema>;
|
|
43
19
|
/**
|
|
44
20
|
* Delete Account
|
|
45
21
|
* Delete a connected account and revoke the connection
|
|
@@ -48,6 +24,14 @@ export declare class IntegrationsService {
|
|
|
48
24
|
* @throws ApiError
|
|
49
25
|
*/
|
|
50
26
|
static integrationAccountDelete(accountId: string): CancelablePromise<MessageResponseSchema>;
|
|
27
|
+
/**
|
|
28
|
+
* Get Account
|
|
29
|
+
* Get a specific account by ID
|
|
30
|
+
* @param accountId
|
|
31
|
+
* @returns AccountResponseSchema Successful Response
|
|
32
|
+
* @throws ApiError
|
|
33
|
+
*/
|
|
34
|
+
static integrationAccountGet(accountId: string): CancelablePromise<AccountResponseSchema>;
|
|
51
35
|
/**
|
|
52
36
|
* Get Credentials
|
|
53
37
|
* Get the credentials for a specific account
|
|
@@ -56,4 +40,20 @@ export declare class IntegrationsService {
|
|
|
56
40
|
* @throws ApiError
|
|
57
41
|
*/
|
|
58
42
|
static integrationAccountCredentialsGet(accountId: string): CancelablePromise<AccountCredentialsResponseSchema>;
|
|
43
|
+
/**
|
|
44
|
+
* Initiate Connect Request
|
|
45
|
+
* Initiate an OAuth connection request for an application
|
|
46
|
+
* @param requestBody
|
|
47
|
+
* @returns ConnectRequestResponseSchema Successful Response
|
|
48
|
+
* @throws ApiError
|
|
49
|
+
*/
|
|
50
|
+
static integrationConnectRequestCreate(requestBody: ConnectRequestInitiateSchema): CancelablePromise<ConnectRequestResponseSchema>;
|
|
51
|
+
/**
|
|
52
|
+
* OAuth Callback
|
|
53
|
+
* Handle OAuth callback and complete account connection. This endpoint is public and uses state parameter for security.
|
|
54
|
+
* @param error
|
|
55
|
+
* @returns AccountResponseSchema Successful Response
|
|
56
|
+
* @throws ApiError
|
|
57
|
+
*/
|
|
58
|
+
static integrationOauthCallback(error?: (string | null)): CancelablePromise<AccountResponseSchema>;
|
|
59
59
|
}
|