lemma-sdk 0.2.40 → 0.2.42
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 +10 -3
- package/dist/browser/lemma-client.js +95 -68
- package/dist/index.d.ts +1 -1
- package/dist/namespaces/conversations.d.ts +6 -0
- package/dist/namespaces/conversations.js +2 -0
- package/dist/namespaces/files.js +12 -21
- package/dist/namespaces/resources.d.ts +21 -5
- package/dist/openapi_client/index.d.ts +21 -15
- package/dist/openapi_client/index.js +5 -5
- package/dist/openapi_client/models/AgentResponse.d.ts +3 -2
- package/dist/openapi_client/models/BillingHistoryResponse.d.ts +8 -0
- package/dist/openapi_client/models/BillingInvoiceResponse.d.ts +29 -0
- package/dist/openapi_client/models/BillingInvoiceStatus.d.ts +10 -0
- package/dist/openapi_client/models/BillingInvoiceStatus.js +15 -0
- package/dist/openapi_client/models/BillingScope.d.ts +7 -0
- package/dist/openapi_client/models/BillingScope.js +12 -0
- package/dist/openapi_client/models/ConversationResponse.d.ts +6 -0
- package/dist/openapi_client/models/ConversationStatus.d.ts +11 -0
- package/dist/openapi_client/models/ConversationStatus.js +16 -0
- package/dist/openapi_client/models/ConversationType.d.ts +7 -0
- package/dist/openapi_client/models/ConversationType.js +12 -0
- package/dist/openapi_client/models/CreateAgentRequest.d.ts +3 -2
- package/dist/openapi_client/models/CreateConversationRequest.d.ts +4 -0
- package/dist/openapi_client/models/CreateDeskRequest.d.ts +1 -0
- package/dist/openapi_client/models/CreateFolderRequest.d.ts +1 -2
- package/dist/openapi_client/models/CreateFunctionRequest.d.ts +9 -4
- package/dist/openapi_client/models/CreateInvoicePaymentUrlRequest.d.ts +7 -0
- package/dist/openapi_client/models/CreateInvoicePaymentUrlResponse.d.ts +8 -0
- package/dist/openapi_client/models/CreateScheduleRequest.d.ts +1 -0
- package/dist/openapi_client/models/CreateTableRequest.d.ts +1 -0
- package/dist/openapi_client/models/DatastoreFileUploadRequest.d.ts +1 -2
- package/dist/openapi_client/models/DeskResponse.d.ts +2 -0
- package/dist/openapi_client/models/FileResponse.d.ts +2 -2
- package/dist/openapi_client/models/FlowResponse.d.ts +2 -0
- package/dist/openapi_client/models/FunctionResponse.d.ts +13 -2
- package/dist/openapi_client/models/{app__modules__function__api__schemas__function_schemas__TableAccessEntry.d.ts → FunctionTableAccessEntry.d.ts} +1 -1
- package/dist/openapi_client/models/PodMemberAddRequest.d.ts +1 -0
- package/dist/openapi_client/models/PodMemberDetailResponse.d.ts +1 -0
- package/dist/openapi_client/models/PodMemberResponse.d.ts +1 -0
- package/dist/openapi_client/models/PodMemberUpdateRoleRequest.d.ts +2 -1
- package/dist/openapi_client/models/PodRoleCreateRequest.d.ts +6 -0
- package/dist/openapi_client/models/PodRoleListResponse.d.ts +7 -0
- package/dist/openapi_client/models/PodRoleResponse.d.ts +11 -0
- package/dist/openapi_client/models/ScheduleResponse.d.ts +2 -0
- package/dist/openapi_client/models/SendMessageRequest.d.ts +1 -0
- package/dist/openapi_client/models/StartSubscriptionResponse.d.ts +3 -1
- package/dist/openapi_client/models/StartTeamBillingRequest.d.ts +6 -0
- package/dist/openapi_client/models/SubscriptionResponse.d.ts +22 -0
- package/dist/openapi_client/models/SubscriptionWithPlanResponse.d.ts +4 -1
- package/dist/openapi_client/models/{app__modules__agent__domain__value_objects__TableAccessEntry.d.ts → TableAccessEntry.d.ts} +1 -1
- package/dist/openapi_client/models/TableAccessEntry.js +1 -0
- package/dist/openapi_client/models/TableResponse.d.ts +2 -0
- package/dist/openapi_client/models/UpdateAgentRequest.d.ts +3 -2
- package/dist/openapi_client/models/UpdateConversationRequest.d.ts +2 -0
- package/dist/openapi_client/models/UpdateDeskRequest.d.ts +2 -0
- package/dist/openapi_client/models/UpdateFunctionRequest.d.ts +6 -2
- package/dist/openapi_client/models/UpdateScheduleRequest.d.ts +1 -0
- package/dist/openapi_client/models/UpdateTableRequest.d.ts +2 -1
- package/dist/openapi_client/models/UsageLimitScopeResponse.d.ts +10 -0
- package/dist/openapi_client/models/UsageLimitScopeResponse.js +1 -0
- package/dist/openapi_client/models/UsageLimitsResponse.d.ts +11 -0
- package/dist/openapi_client/models/UsageLimitsResponse.js +1 -0
- package/dist/openapi_client/models/UsageListResponse.d.ts +10 -0
- package/dist/openapi_client/models/UsageListResponse.js +1 -0
- package/dist/openapi_client/models/UsageRecordResponse.d.ts +12 -4
- package/dist/openapi_client/models/UsageStatsBucketResponse.d.ts +12 -0
- package/dist/openapi_client/models/UsageStatsBucketResponse.js +1 -0
- package/dist/openapi_client/models/UsageStatsResponse.d.ts +12 -0
- package/dist/openapi_client/models/UsageStatsResponse.js +1 -0
- package/dist/openapi_client/models/UsageSummaryResponse.d.ts +3 -0
- package/dist/openapi_client/models/WorkflowCreateRequest.d.ts +1 -0
- package/dist/openapi_client/models/WorkflowUpdateRequest.d.ts +1 -0
- package/dist/openapi_client/models/update.d.ts +1 -2
- package/dist/openapi_client/services/AgentConversationsService.d.ts +5 -1
- package/dist/openapi_client/services/AgentConversationsService.js +5 -1
- package/dist/openapi_client/services/BillingSubscriptionsService.d.ts +80 -20
- package/dist/openapi_client/services/BillingSubscriptionsService.js +164 -27
- package/dist/openapi_client/services/BillingUsageService.d.ts +89 -5
- package/dist/openapi_client/services/BillingUsageService.js +186 -6
- package/dist/openapi_client/services/DesksService.d.ts +21 -4
- package/dist/openapi_client/services/DesksService.js +44 -2
- package/dist/openapi_client/services/FilesService.d.ts +11 -20
- package/dist/openapi_client/services/FilesService.js +11 -28
- package/dist/openapi_client/services/FunctionsService.d.ts +2 -2
- package/dist/openapi_client/services/FunctionsService.js +2 -2
- package/dist/openapi_client/services/PodMembersService.d.ts +10 -0
- package/dist/openapi_client/services/PodMembersService.js +24 -0
- package/dist/openapi_client/services/PodRolesService.d.ts +29 -0
- package/dist/openapi_client/services/PodRolesService.js +63 -0
- package/dist/react/AuthGuard.d.ts +0 -15
- package/dist/react/AuthGuard.js +128 -167
- package/dist/react/index.d.ts +1 -1
- package/dist/react/useAssistantController.d.ts +8 -4
- package/dist/react/useAssistantController.js +9 -6
- package/dist/react/useAssistantSession.d.ts +9 -0
- package/dist/react/useAssistantSession.js +10 -2
- package/dist/react/useConversationMessages.d.ts +2 -1
- package/dist/react/useConversationMessages.js +2 -1
- package/dist/react/useConversations.d.ts +7 -1
- package/dist/react/useConversations.js +10 -4
- package/dist/types.d.ts +2 -2
- package/package.json +1 -1
- package/dist/openapi_client/models/Body_upload_file_files__resource_type___resource_id__upload_post.d.ts +0 -3
- package/dist/openapi_client/models/FileInfo.d.ts +0 -14
- package/dist/openapi_client/models/FileInfo.js +0 -8
- package/dist/openapi_client/models/FileNamespace.d.ts +0 -4
- package/dist/openapi_client/models/FileNamespace.js +0 -9
- package/dist/openapi_client/models/FileUploadResponse.d.ts +0 -6
- package/dist/openapi_client/models/GrantPermissionRequest.d.ts +0 -6
- package/dist/openapi_client/models/PodPermissionsResponse.d.ts +0 -4
- package/dist/openapi_client/models/ResourceFileListResponse.d.ts +0 -6
- package/dist/openapi_client/models/ResourcePermissionListResponse.d.ts +0 -4
- package/dist/openapi_client/models/ResourcePermissionResponse.d.ts +0 -12
- package/dist/openapi_client/models/ResourceType.d.ts +0 -4
- package/dist/openapi_client/models/ResourceType.js +0 -9
- package/dist/openapi_client/models/SetVisibilityRequest.d.ts +0 -3
- package/dist/openapi_client/services/AgentFilesService.d.ts +0 -46
- package/dist/openapi_client/services/AgentFilesService.js +0 -103
- package/dist/openapi_client/services/AuthorizationService.d.ts +0 -58
- package/dist/openapi_client/services/AuthorizationService.js +0 -122
- /package/dist/openapi_client/models/{Body_upload_file_files__resource_type___resource_id__upload_post.js → BillingHistoryResponse.js} +0 -0
- /package/dist/openapi_client/models/{FileUploadResponse.js → BillingInvoiceResponse.js} +0 -0
- /package/dist/openapi_client/models/{GrantPermissionRequest.js → CreateInvoicePaymentUrlRequest.js} +0 -0
- /package/dist/openapi_client/models/{PodPermissionsResponse.js → CreateInvoicePaymentUrlResponse.js} +0 -0
- /package/dist/openapi_client/models/{ResourceFileListResponse.js → FunctionTableAccessEntry.js} +0 -0
- /package/dist/openapi_client/models/{ResourcePermissionListResponse.js → PodRoleCreateRequest.js} +0 -0
- /package/dist/openapi_client/models/{ResourcePermissionResponse.js → PodRoleListResponse.js} +0 -0
- /package/dist/openapi_client/models/{SetVisibilityRequest.js → PodRoleResponse.js} +0 -0
- /package/dist/openapi_client/models/{app__modules__agent__domain__value_objects__TableAccessEntry.js → StartTeamBillingRequest.js} +0 -0
- /package/dist/openapi_client/models/{app__modules__function__api__schemas__function_schemas__TableAccessEntry.js → SubscriptionResponse.js} +0 -0
|
@@ -49,6 +49,23 @@ export declare class DesksService {
|
|
|
49
49
|
* @throws ApiError
|
|
50
50
|
*/
|
|
51
51
|
static deskUpdate(podId: string, deskName: string, requestBody: UpdateDeskRequest): CancelablePromise<DeskResponse>;
|
|
52
|
+
/**
|
|
53
|
+
* Get Desk Root Asset
|
|
54
|
+
* @param podId
|
|
55
|
+
* @param deskName
|
|
56
|
+
* @returns any Successful Response
|
|
57
|
+
* @throws ApiError
|
|
58
|
+
*/
|
|
59
|
+
static deskAssetRootGet(podId: string, deskName: string): CancelablePromise<any>;
|
|
60
|
+
/**
|
|
61
|
+
* Get Desk Asset
|
|
62
|
+
* @param podId
|
|
63
|
+
* @param deskName
|
|
64
|
+
* @param assetPath
|
|
65
|
+
* @returns any Successful Response
|
|
66
|
+
* @throws ApiError
|
|
67
|
+
*/
|
|
68
|
+
static deskAssetGet(podId: string, deskName: string, assetPath: string): CancelablePromise<any>;
|
|
52
69
|
/**
|
|
53
70
|
* Upload Desk Bundle
|
|
54
71
|
* @param podId
|
|
@@ -62,16 +79,16 @@ export declare class DesksService {
|
|
|
62
79
|
* Download Desk Dist Archive
|
|
63
80
|
* @param podId
|
|
64
81
|
* @param deskName
|
|
65
|
-
* @returns
|
|
82
|
+
* @returns binary Zip archive bytes
|
|
66
83
|
* @throws ApiError
|
|
67
84
|
*/
|
|
68
|
-
static deskDistArchiveGet(podId: string, deskName: string): CancelablePromise<
|
|
85
|
+
static deskDistArchiveGet(podId: string, deskName: string): CancelablePromise<Blob>;
|
|
69
86
|
/**
|
|
70
87
|
* Download Desk Source Archive
|
|
71
88
|
* @param podId
|
|
72
89
|
* @param deskName
|
|
73
|
-
* @returns
|
|
90
|
+
* @returns binary Zip archive bytes
|
|
74
91
|
* @throws ApiError
|
|
75
92
|
*/
|
|
76
|
-
static deskSourceArchiveGet(podId: string, deskName: string): CancelablePromise<
|
|
93
|
+
static deskSourceArchiveGet(podId: string, deskName: string): CancelablePromise<Blob>;
|
|
77
94
|
}
|
|
@@ -109,6 +109,48 @@ export class DesksService {
|
|
|
109
109
|
},
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
|
+
/**
|
|
113
|
+
* Get Desk Root Asset
|
|
114
|
+
* @param podId
|
|
115
|
+
* @param deskName
|
|
116
|
+
* @returns any Successful Response
|
|
117
|
+
* @throws ApiError
|
|
118
|
+
*/
|
|
119
|
+
static deskAssetRootGet(podId, deskName) {
|
|
120
|
+
return __request(OpenAPI, {
|
|
121
|
+
method: 'GET',
|
|
122
|
+
url: '/pods/{pod_id}/desks/{desk_name}/assets',
|
|
123
|
+
path: {
|
|
124
|
+
'pod_id': podId,
|
|
125
|
+
'desk_name': deskName,
|
|
126
|
+
},
|
|
127
|
+
errors: {
|
|
128
|
+
422: `Validation Error`,
|
|
129
|
+
},
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Get Desk Asset
|
|
134
|
+
* @param podId
|
|
135
|
+
* @param deskName
|
|
136
|
+
* @param assetPath
|
|
137
|
+
* @returns any Successful Response
|
|
138
|
+
* @throws ApiError
|
|
139
|
+
*/
|
|
140
|
+
static deskAssetGet(podId, deskName, assetPath) {
|
|
141
|
+
return __request(OpenAPI, {
|
|
142
|
+
method: 'GET',
|
|
143
|
+
url: '/pods/{pod_id}/desks/{desk_name}/assets/{asset_path}',
|
|
144
|
+
path: {
|
|
145
|
+
'pod_id': podId,
|
|
146
|
+
'desk_name': deskName,
|
|
147
|
+
'asset_path': assetPath,
|
|
148
|
+
},
|
|
149
|
+
errors: {
|
|
150
|
+
422: `Validation Error`,
|
|
151
|
+
},
|
|
152
|
+
});
|
|
153
|
+
}
|
|
112
154
|
/**
|
|
113
155
|
* Upload Desk Bundle
|
|
114
156
|
* @param podId
|
|
@@ -136,7 +178,7 @@ export class DesksService {
|
|
|
136
178
|
* Download Desk Dist Archive
|
|
137
179
|
* @param podId
|
|
138
180
|
* @param deskName
|
|
139
|
-
* @returns
|
|
181
|
+
* @returns binary Zip archive bytes
|
|
140
182
|
* @throws ApiError
|
|
141
183
|
*/
|
|
142
184
|
static deskDistArchiveGet(podId, deskName) {
|
|
@@ -156,7 +198,7 @@ export class DesksService {
|
|
|
156
198
|
* Download Desk Source Archive
|
|
157
199
|
* @param podId
|
|
158
200
|
* @param deskName
|
|
159
|
-
* @returns
|
|
201
|
+
* @returns binary Zip archive bytes
|
|
160
202
|
* @throws ApiError
|
|
161
203
|
*/
|
|
162
204
|
static deskSourceArchiveGet(podId, deskName) {
|
|
@@ -4,7 +4,6 @@ import type { DatastoreFileUploadRequest } from '../models/DatastoreFileUploadRe
|
|
|
4
4
|
import type { DatastoreMessageResponse } from '../models/DatastoreMessageResponse.js';
|
|
5
5
|
import type { DirectoryTreeResponse } from '../models/DirectoryTreeResponse.js';
|
|
6
6
|
import type { FileListResponse } from '../models/FileListResponse.js';
|
|
7
|
-
import { FileNamespace } from '../models/FileNamespace.js';
|
|
8
7
|
import type { FileResponse } from '../models/FileResponse.js';
|
|
9
8
|
import type { FileSearchRequest } from '../models/FileSearchRequest.js';
|
|
10
9
|
import type { FileSearchResponse } from '../models/FileSearchResponse.js';
|
|
@@ -15,13 +14,12 @@ export declare class FilesService {
|
|
|
15
14
|
* List Files
|
|
16
15
|
* @param podId
|
|
17
16
|
* @param directoryPath
|
|
18
|
-
* @param namespace
|
|
19
17
|
* @param limit
|
|
20
18
|
* @param pageToken
|
|
21
19
|
* @returns FileListResponse Successful Response
|
|
22
20
|
* @throws ApiError
|
|
23
21
|
*/
|
|
24
|
-
static fileList(podId: string, directoryPath?: string,
|
|
22
|
+
static fileList(podId: string, directoryPath?: string, limit?: number, pageToken?: (string | null)): CancelablePromise<FileListResponse>;
|
|
25
23
|
/**
|
|
26
24
|
* Upload File
|
|
27
25
|
* @param podId
|
|
@@ -34,20 +32,18 @@ export declare class FilesService {
|
|
|
34
32
|
* Delete File Or Folder
|
|
35
33
|
* @param podId
|
|
36
34
|
* @param path
|
|
37
|
-
* @param namespace
|
|
38
35
|
* @returns DatastoreMessageResponse Successful Response
|
|
39
36
|
* @throws ApiError
|
|
40
37
|
*/
|
|
41
|
-
static fileDelete(podId: string, path: string
|
|
38
|
+
static fileDelete(podId: string, path: string): CancelablePromise<DatastoreMessageResponse>;
|
|
42
39
|
/**
|
|
43
40
|
* Get File
|
|
44
41
|
* @param podId
|
|
45
42
|
* @param path
|
|
46
|
-
* @param namespace
|
|
47
43
|
* @returns FileResponse Successful Response
|
|
48
44
|
* @throws ApiError
|
|
49
45
|
*/
|
|
50
|
-
static fileGet(podId: string, path: string
|
|
46
|
+
static fileGet(podId: string, path: string): CancelablePromise<FileResponse>;
|
|
51
47
|
/**
|
|
52
48
|
* Update File
|
|
53
49
|
* @param podId
|
|
@@ -60,39 +56,35 @@ export declare class FilesService {
|
|
|
60
56
|
* Get Converted File Metadata
|
|
61
57
|
* @param podId
|
|
62
58
|
* @param path
|
|
63
|
-
* @param namespace
|
|
64
59
|
* @returns ConvertedFileResponse Successful Response
|
|
65
60
|
* @throws ApiError
|
|
66
61
|
*/
|
|
67
|
-
static fileConvertedGet(podId: string, path: string
|
|
62
|
+
static fileConvertedGet(podId: string, path: string): CancelablePromise<ConvertedFileResponse>;
|
|
68
63
|
/**
|
|
69
64
|
* Download Converted File Artifact
|
|
70
65
|
* @param podId
|
|
71
66
|
* @param path
|
|
72
67
|
* @param artifact
|
|
73
|
-
* @
|
|
74
|
-
* @returns any Successful Response
|
|
68
|
+
* @returns binary File bytes
|
|
75
69
|
* @throws ApiError
|
|
76
70
|
*/
|
|
77
|
-
static fileConvertedDownload(podId: string, path: string, artifact?: string
|
|
71
|
+
static fileConvertedDownload(podId: string, path: string, artifact?: string): CancelablePromise<Blob>;
|
|
78
72
|
/**
|
|
79
73
|
* Render Converted File As HTML
|
|
80
74
|
* @param podId
|
|
81
75
|
* @param path
|
|
82
|
-
* @
|
|
83
|
-
* @returns any Successful Response
|
|
76
|
+
* @returns string Rendered HTML
|
|
84
77
|
* @throws ApiError
|
|
85
78
|
*/
|
|
86
|
-
static fileConvertedRender(podId: string, path: string
|
|
79
|
+
static fileConvertedRender(podId: string, path: string): CancelablePromise<string>;
|
|
87
80
|
/**
|
|
88
81
|
* Download File
|
|
89
82
|
* @param podId
|
|
90
83
|
* @param path
|
|
91
|
-
* @
|
|
92
|
-
* @returns any Successful Response
|
|
84
|
+
* @returns binary File bytes
|
|
93
85
|
* @throws ApiError
|
|
94
86
|
*/
|
|
95
|
-
static fileDownload(podId: string, path: string
|
|
87
|
+
static fileDownload(podId: string, path: string): CancelablePromise<Blob>;
|
|
96
88
|
/**
|
|
97
89
|
* Create Folder
|
|
98
90
|
* @param podId
|
|
@@ -113,10 +105,9 @@ export declare class FilesService {
|
|
|
113
105
|
* Get Directory Tree
|
|
114
106
|
* @param podId
|
|
115
107
|
* @param rootPath
|
|
116
|
-
* @param namespace
|
|
117
108
|
* @param filesPerDirectory
|
|
118
109
|
* @returns DirectoryTreeResponse Successful Response
|
|
119
110
|
* @throws ApiError
|
|
120
111
|
*/
|
|
121
|
-
static fileTree(podId: string, rootPath?: string,
|
|
112
|
+
static fileTree(podId: string, rootPath?: string, filesPerDirectory?: number): CancelablePromise<DirectoryTreeResponse>;
|
|
122
113
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { FileNamespace } from '../models/FileNamespace.js';
|
|
2
1
|
import { OpenAPI } from '../core/OpenAPI.js';
|
|
3
2
|
import { request as __request } from '../core/request.js';
|
|
4
3
|
export class FilesService {
|
|
@@ -6,13 +5,12 @@ export class FilesService {
|
|
|
6
5
|
* List Files
|
|
7
6
|
* @param podId
|
|
8
7
|
* @param directoryPath
|
|
9
|
-
* @param namespace
|
|
10
8
|
* @param limit
|
|
11
9
|
* @param pageToken
|
|
12
10
|
* @returns FileListResponse Successful Response
|
|
13
11
|
* @throws ApiError
|
|
14
12
|
*/
|
|
15
|
-
static fileList(podId, directoryPath = '/',
|
|
13
|
+
static fileList(podId, directoryPath = '/', limit = 100, pageToken) {
|
|
16
14
|
return __request(OpenAPI, {
|
|
17
15
|
method: 'GET',
|
|
18
16
|
url: '/pods/{pod_id}/datastore/files',
|
|
@@ -21,7 +19,6 @@ export class FilesService {
|
|
|
21
19
|
},
|
|
22
20
|
query: {
|
|
23
21
|
'directory_path': directoryPath,
|
|
24
|
-
'namespace': namespace,
|
|
25
22
|
'limit': limit,
|
|
26
23
|
'page_token': pageToken,
|
|
27
24
|
},
|
|
@@ -55,11 +52,10 @@ export class FilesService {
|
|
|
55
52
|
* Delete File Or Folder
|
|
56
53
|
* @param podId
|
|
57
54
|
* @param path
|
|
58
|
-
* @param namespace
|
|
59
55
|
* @returns DatastoreMessageResponse Successful Response
|
|
60
56
|
* @throws ApiError
|
|
61
57
|
*/
|
|
62
|
-
static fileDelete(podId, path
|
|
58
|
+
static fileDelete(podId, path) {
|
|
63
59
|
return __request(OpenAPI, {
|
|
64
60
|
method: 'DELETE',
|
|
65
61
|
url: '/pods/{pod_id}/datastore/files/by-path',
|
|
@@ -68,7 +64,6 @@ export class FilesService {
|
|
|
68
64
|
},
|
|
69
65
|
query: {
|
|
70
66
|
'path': path,
|
|
71
|
-
'namespace': namespace,
|
|
72
67
|
},
|
|
73
68
|
errors: {
|
|
74
69
|
422: `Validation Error`,
|
|
@@ -79,11 +74,10 @@ export class FilesService {
|
|
|
79
74
|
* Get File
|
|
80
75
|
* @param podId
|
|
81
76
|
* @param path
|
|
82
|
-
* @param namespace
|
|
83
77
|
* @returns FileResponse Successful Response
|
|
84
78
|
* @throws ApiError
|
|
85
79
|
*/
|
|
86
|
-
static fileGet(podId, path
|
|
80
|
+
static fileGet(podId, path) {
|
|
87
81
|
return __request(OpenAPI, {
|
|
88
82
|
method: 'GET',
|
|
89
83
|
url: '/pods/{pod_id}/datastore/files/by-path',
|
|
@@ -92,7 +86,6 @@ export class FilesService {
|
|
|
92
86
|
},
|
|
93
87
|
query: {
|
|
94
88
|
'path': path,
|
|
95
|
-
'namespace': namespace,
|
|
96
89
|
},
|
|
97
90
|
errors: {
|
|
98
91
|
422: `Validation Error`,
|
|
@@ -124,11 +117,10 @@ export class FilesService {
|
|
|
124
117
|
* Get Converted File Metadata
|
|
125
118
|
* @param podId
|
|
126
119
|
* @param path
|
|
127
|
-
* @param namespace
|
|
128
120
|
* @returns ConvertedFileResponse Successful Response
|
|
129
121
|
* @throws ApiError
|
|
130
122
|
*/
|
|
131
|
-
static fileConvertedGet(podId, path
|
|
123
|
+
static fileConvertedGet(podId, path) {
|
|
132
124
|
return __request(OpenAPI, {
|
|
133
125
|
method: 'GET',
|
|
134
126
|
url: '/pods/{pod_id}/datastore/files/converted/by-path',
|
|
@@ -137,7 +129,6 @@ export class FilesService {
|
|
|
137
129
|
},
|
|
138
130
|
query: {
|
|
139
131
|
'path': path,
|
|
140
|
-
'namespace': namespace,
|
|
141
132
|
},
|
|
142
133
|
errors: {
|
|
143
134
|
422: `Validation Error`,
|
|
@@ -149,11 +140,10 @@ export class FilesService {
|
|
|
149
140
|
* @param podId
|
|
150
141
|
* @param path
|
|
151
142
|
* @param artifact
|
|
152
|
-
* @
|
|
153
|
-
* @returns any Successful Response
|
|
143
|
+
* @returns binary File bytes
|
|
154
144
|
* @throws ApiError
|
|
155
145
|
*/
|
|
156
|
-
static fileConvertedDownload(podId, path, artifact = 'document.md'
|
|
146
|
+
static fileConvertedDownload(podId, path, artifact = 'document.md') {
|
|
157
147
|
return __request(OpenAPI, {
|
|
158
148
|
method: 'GET',
|
|
159
149
|
url: '/pods/{pod_id}/datastore/files/converted/download',
|
|
@@ -163,7 +153,6 @@ export class FilesService {
|
|
|
163
153
|
query: {
|
|
164
154
|
'path': path,
|
|
165
155
|
'artifact': artifact,
|
|
166
|
-
'namespace': namespace,
|
|
167
156
|
},
|
|
168
157
|
errors: {
|
|
169
158
|
422: `Validation Error`,
|
|
@@ -174,11 +163,10 @@ export class FilesService {
|
|
|
174
163
|
* Render Converted File As HTML
|
|
175
164
|
* @param podId
|
|
176
165
|
* @param path
|
|
177
|
-
* @
|
|
178
|
-
* @returns any Successful Response
|
|
166
|
+
* @returns string Rendered HTML
|
|
179
167
|
* @throws ApiError
|
|
180
168
|
*/
|
|
181
|
-
static fileConvertedRender(podId, path
|
|
169
|
+
static fileConvertedRender(podId, path) {
|
|
182
170
|
return __request(OpenAPI, {
|
|
183
171
|
method: 'GET',
|
|
184
172
|
url: '/pods/{pod_id}/datastore/files/converted/render',
|
|
@@ -187,7 +175,6 @@ export class FilesService {
|
|
|
187
175
|
},
|
|
188
176
|
query: {
|
|
189
177
|
'path': path,
|
|
190
|
-
'namespace': namespace,
|
|
191
178
|
},
|
|
192
179
|
errors: {
|
|
193
180
|
422: `Validation Error`,
|
|
@@ -198,11 +185,10 @@ export class FilesService {
|
|
|
198
185
|
* Download File
|
|
199
186
|
* @param podId
|
|
200
187
|
* @param path
|
|
201
|
-
* @
|
|
202
|
-
* @returns any Successful Response
|
|
188
|
+
* @returns binary File bytes
|
|
203
189
|
* @throws ApiError
|
|
204
190
|
*/
|
|
205
|
-
static fileDownload(podId, path
|
|
191
|
+
static fileDownload(podId, path) {
|
|
206
192
|
return __request(OpenAPI, {
|
|
207
193
|
method: 'GET',
|
|
208
194
|
url: '/pods/{pod_id}/datastore/files/download',
|
|
@@ -211,7 +197,6 @@ export class FilesService {
|
|
|
211
197
|
},
|
|
212
198
|
query: {
|
|
213
199
|
'path': path,
|
|
214
|
-
'namespace': namespace,
|
|
215
200
|
},
|
|
216
201
|
errors: {
|
|
217
202
|
422: `Validation Error`,
|
|
@@ -264,12 +249,11 @@ export class FilesService {
|
|
|
264
249
|
* Get Directory Tree
|
|
265
250
|
* @param podId
|
|
266
251
|
* @param rootPath
|
|
267
|
-
* @param namespace
|
|
268
252
|
* @param filesPerDirectory
|
|
269
253
|
* @returns DirectoryTreeResponse Successful Response
|
|
270
254
|
* @throws ApiError
|
|
271
255
|
*/
|
|
272
|
-
static fileTree(podId, rootPath = '/',
|
|
256
|
+
static fileTree(podId, rootPath = '/', filesPerDirectory = 3) {
|
|
273
257
|
return __request(OpenAPI, {
|
|
274
258
|
method: 'GET',
|
|
275
259
|
url: '/pods/{pod_id}/datastore/files/tree',
|
|
@@ -278,7 +262,6 @@ export class FilesService {
|
|
|
278
262
|
},
|
|
279
263
|
query: {
|
|
280
264
|
'root_path': rootPath,
|
|
281
|
-
'namespace': namespace,
|
|
282
265
|
'files_per_directory': filesPerDirectory,
|
|
283
266
|
},
|
|
284
267
|
errors: {
|
|
@@ -20,7 +20,7 @@ export declare class FunctionsService {
|
|
|
20
20
|
static functionList(podId: string, limit?: number, pageToken?: (string | null)): CancelablePromise<FunctionListResponse>;
|
|
21
21
|
/**
|
|
22
22
|
* Create Function
|
|
23
|
-
* Create a new function in a pod
|
|
23
|
+
* Create a new function in a pod. Do not send input_schema or output_schema; the platform derives those schemas from the function code and returns them in the response.
|
|
24
24
|
* @param podId
|
|
25
25
|
* @param requestBody
|
|
26
26
|
* @returns FunctionResponse Successful Response
|
|
@@ -47,7 +47,7 @@ export declare class FunctionsService {
|
|
|
47
47
|
static functionGet(podId: string, functionName: string): CancelablePromise<FunctionResponse>;
|
|
48
48
|
/**
|
|
49
49
|
* Update Function
|
|
50
|
-
* Update a function
|
|
50
|
+
* Update a function. When code is supplied, the platform re-derives the function input_schema and output_schema and returns the refreshed function.
|
|
51
51
|
* @param podId
|
|
52
52
|
* @param functionName
|
|
53
53
|
* @param requestBody
|
|
@@ -28,7 +28,7 @@ export class FunctionsService {
|
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
30
|
* Create Function
|
|
31
|
-
* Create a new function in a pod
|
|
31
|
+
* Create a new function in a pod. Do not send input_schema or output_schema; the platform derives those schemas from the function code and returns them in the response.
|
|
32
32
|
* @param podId
|
|
33
33
|
* @param requestBody
|
|
34
34
|
* @returns FunctionResponse Successful Response
|
|
@@ -92,7 +92,7 @@ export class FunctionsService {
|
|
|
92
92
|
}
|
|
93
93
|
/**
|
|
94
94
|
* Update Function
|
|
95
|
-
* Update a function
|
|
95
|
+
* Update a function. When code is supplied, the platform re-derives the function input_schema and output_schema and returns the refreshed function.
|
|
96
96
|
* @param podId
|
|
97
97
|
* @param functionName
|
|
98
98
|
* @param requestBody
|
|
@@ -70,4 +70,14 @@ export declare class PodMembersService {
|
|
|
70
70
|
* @throws ApiError
|
|
71
71
|
*/
|
|
72
72
|
static podMemberUpdateRole(podId: string, podMemberId: string, requestBody: PodMemberUpdateRoleRequest): CancelablePromise<PodMemberResponse>;
|
|
73
|
+
/**
|
|
74
|
+
* Update Member Roles
|
|
75
|
+
* Update a pod member's roles
|
|
76
|
+
* @param podId
|
|
77
|
+
* @param podMemberId
|
|
78
|
+
* @param requestBody
|
|
79
|
+
* @returns PodMemberResponse Successful Response
|
|
80
|
+
* @throws ApiError
|
|
81
|
+
*/
|
|
82
|
+
static podMemberUpdateRoles(podId: string, podMemberId: string, requestBody: PodMemberUpdateRoleRequest): CancelablePromise<PodMemberResponse>;
|
|
73
83
|
}
|
|
@@ -158,4 +158,28 @@ export class PodMembersService {
|
|
|
158
158
|
},
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
|
+
/**
|
|
162
|
+
* Update Member Roles
|
|
163
|
+
* Update a pod member's roles
|
|
164
|
+
* @param podId
|
|
165
|
+
* @param podMemberId
|
|
166
|
+
* @param requestBody
|
|
167
|
+
* @returns PodMemberResponse Successful Response
|
|
168
|
+
* @throws ApiError
|
|
169
|
+
*/
|
|
170
|
+
static podMemberUpdateRoles(podId, podMemberId, requestBody) {
|
|
171
|
+
return __request(OpenAPI, {
|
|
172
|
+
method: 'PATCH',
|
|
173
|
+
url: '/pods/{pod_id}/members/{pod_member_id}/roles',
|
|
174
|
+
path: {
|
|
175
|
+
'pod_id': podId,
|
|
176
|
+
'pod_member_id': podMemberId,
|
|
177
|
+
},
|
|
178
|
+
body: requestBody,
|
|
179
|
+
mediaType: 'application/json',
|
|
180
|
+
errors: {
|
|
181
|
+
422: `Validation Error`,
|
|
182
|
+
},
|
|
183
|
+
});
|
|
184
|
+
}
|
|
161
185
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { PodRoleCreateRequest } from '../models/PodRoleCreateRequest.js';
|
|
2
|
+
import type { PodRoleListResponse } from '../models/PodRoleListResponse.js';
|
|
3
|
+
import type { PodRoleResponse } from '../models/PodRoleResponse.js';
|
|
4
|
+
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
5
|
+
export declare class PodRolesService {
|
|
6
|
+
/**
|
|
7
|
+
* List Pod Roles
|
|
8
|
+
* @param podId
|
|
9
|
+
* @returns PodRoleListResponse Successful Response
|
|
10
|
+
* @throws ApiError
|
|
11
|
+
*/
|
|
12
|
+
static podRolesList(podId: string): CancelablePromise<PodRoleListResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Create Pod Role
|
|
15
|
+
* @param podId
|
|
16
|
+
* @param requestBody
|
|
17
|
+
* @returns PodRoleResponse Successful Response
|
|
18
|
+
* @throws ApiError
|
|
19
|
+
*/
|
|
20
|
+
static podRolesCreate(podId: string, requestBody: PodRoleCreateRequest): CancelablePromise<PodRoleResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Delete Pod Role
|
|
23
|
+
* @param podId
|
|
24
|
+
* @param roleName
|
|
25
|
+
* @returns void
|
|
26
|
+
* @throws ApiError
|
|
27
|
+
*/
|
|
28
|
+
static podRolesDelete(podId: string, roleName: string): CancelablePromise<void>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI.js';
|
|
2
|
+
import { request as __request } from '../core/request.js';
|
|
3
|
+
export class PodRolesService {
|
|
4
|
+
/**
|
|
5
|
+
* List Pod Roles
|
|
6
|
+
* @param podId
|
|
7
|
+
* @returns PodRoleListResponse Successful Response
|
|
8
|
+
* @throws ApiError
|
|
9
|
+
*/
|
|
10
|
+
static podRolesList(podId) {
|
|
11
|
+
return __request(OpenAPI, {
|
|
12
|
+
method: 'GET',
|
|
13
|
+
url: '/pods/{pod_id}/roles',
|
|
14
|
+
path: {
|
|
15
|
+
'pod_id': podId,
|
|
16
|
+
},
|
|
17
|
+
errors: {
|
|
18
|
+
422: `Validation Error`,
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Create Pod Role
|
|
24
|
+
* @param podId
|
|
25
|
+
* @param requestBody
|
|
26
|
+
* @returns PodRoleResponse Successful Response
|
|
27
|
+
* @throws ApiError
|
|
28
|
+
*/
|
|
29
|
+
static podRolesCreate(podId, requestBody) {
|
|
30
|
+
return __request(OpenAPI, {
|
|
31
|
+
method: 'POST',
|
|
32
|
+
url: '/pods/{pod_id}/roles',
|
|
33
|
+
path: {
|
|
34
|
+
'pod_id': podId,
|
|
35
|
+
},
|
|
36
|
+
body: requestBody,
|
|
37
|
+
mediaType: 'application/json',
|
|
38
|
+
errors: {
|
|
39
|
+
422: `Validation Error`,
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Delete Pod Role
|
|
45
|
+
* @param podId
|
|
46
|
+
* @param roleName
|
|
47
|
+
* @returns void
|
|
48
|
+
* @throws ApiError
|
|
49
|
+
*/
|
|
50
|
+
static podRolesDelete(podId, roleName) {
|
|
51
|
+
return __request(OpenAPI, {
|
|
52
|
+
method: 'DELETE',
|
|
53
|
+
url: '/pods/{pod_id}/roles/{role_name}',
|
|
54
|
+
path: {
|
|
55
|
+
'pod_id': podId,
|
|
56
|
+
'role_name': roleName,
|
|
57
|
+
},
|
|
58
|
+
errors: {
|
|
59
|
+
422: `Validation Error`,
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -3,23 +3,8 @@ import type { LemmaClient } from "../client.js";
|
|
|
3
3
|
export interface AuthGuardProps {
|
|
4
4
|
client: LemmaClient;
|
|
5
5
|
children: ReactNode;
|
|
6
|
-
/** Optional custom loading element. Defaults to a blank screen. */
|
|
7
6
|
loadingFallback?: ReactNode;
|
|
8
|
-
/** Optional custom unauthenticated element. Defaults to a centered sign-in page. */
|
|
9
7
|
unauthenticatedFallback?: ReactNode;
|
|
10
|
-
/** Optional custom element shown when user is authenticated but lacks pod membership. */
|
|
11
8
|
accessRequestFallback?: ReactNode;
|
|
12
9
|
}
|
|
13
|
-
/**
|
|
14
|
-
* AuthGuard wraps your application and handles auth state:
|
|
15
|
-
* - Loading: shows loadingFallback (blank by default)
|
|
16
|
-
* - Unauthenticated: shows sign-in page (or custom unauthenticatedFallback)
|
|
17
|
-
* - Authenticated and member: renders children
|
|
18
|
-
* - Authenticated but not pod member: shows request-access page
|
|
19
|
-
*
|
|
20
|
-
* Usage:
|
|
21
|
-
* <AuthGuard client={getClient()}>
|
|
22
|
-
* <App />
|
|
23
|
-
* </AuthGuard>
|
|
24
|
-
*/
|
|
25
10
|
export declare function AuthGuard({ client, children, loadingFallback, unauthenticatedFallback, accessRequestFallback, }: AuthGuardProps): import("react/jsx-runtime").JSX.Element;
|