lemma-sdk 0.2.40 → 0.2.41
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 +5 -1
- package/dist/browser/lemma-client.js +80 -14
- package/dist/index.d.ts +1 -1
- package/dist/namespaces/resources.d.ts +21 -5
- package/dist/openapi_client/index.d.ts +19 -14
- package/dist/openapi_client/index.js +3 -4
- 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 +1 -0
- package/dist/openapi_client/models/CreateAgentRequest.d.ts +3 -2
- package/dist/openapi_client/models/CreateConversationRequest.d.ts +1 -0
- package/dist/openapi_client/models/CreateDeskRequest.d.ts +1 -0
- package/dist/openapi_client/models/CreateFolderRequest.d.ts +2 -0
- 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 -0
- package/dist/openapi_client/models/DeskResponse.d.ts +2 -0
- package/dist/openapi_client/models/FileResponse.d.ts +2 -0
- 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 +1 -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 +2 -0
- 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 +10 -10
- package/dist/openapi_client/services/FilesService.js +10 -10
- 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/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 +3 -0
- package/dist/react/useAssistantSession.js +6 -2
- package/dist/react/useConversationMessages.d.ts +2 -1
- package/dist/react/useConversationMessages.js +2 -1
- 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/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
package/README.md
CHANGED
|
@@ -187,12 +187,16 @@ function AgentButton({ client }: { client: LemmaClient }) {
|
|
|
187
187
|
void (async () => {
|
|
188
188
|
const thread = await conversation.createConversation({
|
|
189
189
|
title: "Triage ticket ticket_123",
|
|
190
|
+
instructions: "Triage the ticket, propose the next owner, and explain the confidence level.",
|
|
190
191
|
setActive: true,
|
|
191
192
|
});
|
|
192
193
|
await conversation.sendMessage(JSON.stringify({
|
|
193
194
|
ticket_id: "ticket_123",
|
|
194
195
|
prompt: "Triage this ticket.",
|
|
195
|
-
}), {
|
|
196
|
+
}), {
|
|
197
|
+
conversationId: thread.id,
|
|
198
|
+
metadata: { source: "support_queue", ticket_id: "ticket_123" },
|
|
199
|
+
});
|
|
196
200
|
})();
|
|
197
201
|
}}
|
|
198
202
|
>
|
|
@@ -1912,6 +1912,48 @@ class DesksService {
|
|
|
1912
1912
|
},
|
|
1913
1913
|
});
|
|
1914
1914
|
}
|
|
1915
|
+
/**
|
|
1916
|
+
* Get Desk Root Asset
|
|
1917
|
+
* @param podId
|
|
1918
|
+
* @param deskName
|
|
1919
|
+
* @returns any Successful Response
|
|
1920
|
+
* @throws ApiError
|
|
1921
|
+
*/
|
|
1922
|
+
static deskAssetRootGet(podId, deskName) {
|
|
1923
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
1924
|
+
method: 'GET',
|
|
1925
|
+
url: '/pods/{pod_id}/desks/{desk_name}/assets',
|
|
1926
|
+
path: {
|
|
1927
|
+
'pod_id': podId,
|
|
1928
|
+
'desk_name': deskName,
|
|
1929
|
+
},
|
|
1930
|
+
errors: {
|
|
1931
|
+
422: `Validation Error`,
|
|
1932
|
+
},
|
|
1933
|
+
});
|
|
1934
|
+
}
|
|
1935
|
+
/**
|
|
1936
|
+
* Get Desk Asset
|
|
1937
|
+
* @param podId
|
|
1938
|
+
* @param deskName
|
|
1939
|
+
* @param assetPath
|
|
1940
|
+
* @returns any Successful Response
|
|
1941
|
+
* @throws ApiError
|
|
1942
|
+
*/
|
|
1943
|
+
static deskAssetGet(podId, deskName, assetPath) {
|
|
1944
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
1945
|
+
method: 'GET',
|
|
1946
|
+
url: '/pods/{pod_id}/desks/{desk_name}/assets/{asset_path}',
|
|
1947
|
+
path: {
|
|
1948
|
+
'pod_id': podId,
|
|
1949
|
+
'desk_name': deskName,
|
|
1950
|
+
'asset_path': assetPath,
|
|
1951
|
+
},
|
|
1952
|
+
errors: {
|
|
1953
|
+
422: `Validation Error`,
|
|
1954
|
+
},
|
|
1955
|
+
});
|
|
1956
|
+
}
|
|
1915
1957
|
/**
|
|
1916
1958
|
* Upload Desk Bundle
|
|
1917
1959
|
* @param podId
|
|
@@ -1939,7 +1981,7 @@ class DesksService {
|
|
|
1939
1981
|
* Download Desk Dist Archive
|
|
1940
1982
|
* @param podId
|
|
1941
1983
|
* @param deskName
|
|
1942
|
-
* @returns
|
|
1984
|
+
* @returns binary Zip archive bytes
|
|
1943
1985
|
* @throws ApiError
|
|
1944
1986
|
*/
|
|
1945
1987
|
static deskDistArchiveGet(podId, deskName) {
|
|
@@ -1959,7 +2001,7 @@ class DesksService {
|
|
|
1959
2001
|
* Download Desk Source Archive
|
|
1960
2002
|
* @param podId
|
|
1961
2003
|
* @param deskName
|
|
1962
|
-
* @returns
|
|
2004
|
+
* @returns binary Zip archive bytes
|
|
1963
2005
|
* @throws ApiError
|
|
1964
2006
|
*/
|
|
1965
2007
|
static deskSourceArchiveGet(podId, deskName) {
|
|
@@ -2156,7 +2198,7 @@ class FilesService {
|
|
|
2156
2198
|
* @returns FileListResponse Successful Response
|
|
2157
2199
|
* @throws ApiError
|
|
2158
2200
|
*/
|
|
2159
|
-
static fileList(podId, directoryPath = '/', namespace
|
|
2201
|
+
static fileList(podId, directoryPath = '/', namespace, limit = 100, pageToken) {
|
|
2160
2202
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
2161
2203
|
method: 'GET',
|
|
2162
2204
|
url: '/pods/{pod_id}/datastore/files',
|
|
@@ -2203,7 +2245,7 @@ class FilesService {
|
|
|
2203
2245
|
* @returns DatastoreMessageResponse Successful Response
|
|
2204
2246
|
* @throws ApiError
|
|
2205
2247
|
*/
|
|
2206
|
-
static fileDelete(podId, path, namespace
|
|
2248
|
+
static fileDelete(podId, path, namespace) {
|
|
2207
2249
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
2208
2250
|
method: 'DELETE',
|
|
2209
2251
|
url: '/pods/{pod_id}/datastore/files/by-path',
|
|
@@ -2227,7 +2269,7 @@ class FilesService {
|
|
|
2227
2269
|
* @returns FileResponse Successful Response
|
|
2228
2270
|
* @throws ApiError
|
|
2229
2271
|
*/
|
|
2230
|
-
static fileGet(podId, path, namespace
|
|
2272
|
+
static fileGet(podId, path, namespace) {
|
|
2231
2273
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
2232
2274
|
method: 'GET',
|
|
2233
2275
|
url: '/pods/{pod_id}/datastore/files/by-path',
|
|
@@ -2272,7 +2314,7 @@ class FilesService {
|
|
|
2272
2314
|
* @returns ConvertedFileResponse Successful Response
|
|
2273
2315
|
* @throws ApiError
|
|
2274
2316
|
*/
|
|
2275
|
-
static fileConvertedGet(podId, path, namespace
|
|
2317
|
+
static fileConvertedGet(podId, path, namespace) {
|
|
2276
2318
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
2277
2319
|
method: 'GET',
|
|
2278
2320
|
url: '/pods/{pod_id}/datastore/files/converted/by-path',
|
|
@@ -2294,10 +2336,10 @@ class FilesService {
|
|
|
2294
2336
|
* @param path
|
|
2295
2337
|
* @param artifact
|
|
2296
2338
|
* @param namespace
|
|
2297
|
-
* @returns
|
|
2339
|
+
* @returns binary File bytes
|
|
2298
2340
|
* @throws ApiError
|
|
2299
2341
|
*/
|
|
2300
|
-
static fileConvertedDownload(podId, path, artifact = 'document.md', namespace
|
|
2342
|
+
static fileConvertedDownload(podId, path, artifact = 'document.md', namespace) {
|
|
2301
2343
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
2302
2344
|
method: 'GET',
|
|
2303
2345
|
url: '/pods/{pod_id}/datastore/files/converted/download',
|
|
@@ -2319,10 +2361,10 @@ class FilesService {
|
|
|
2319
2361
|
* @param podId
|
|
2320
2362
|
* @param path
|
|
2321
2363
|
* @param namespace
|
|
2322
|
-
* @returns
|
|
2364
|
+
* @returns string Rendered HTML
|
|
2323
2365
|
* @throws ApiError
|
|
2324
2366
|
*/
|
|
2325
|
-
static fileConvertedRender(podId, path, namespace
|
|
2367
|
+
static fileConvertedRender(podId, path, namespace) {
|
|
2326
2368
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
2327
2369
|
method: 'GET',
|
|
2328
2370
|
url: '/pods/{pod_id}/datastore/files/converted/render',
|
|
@@ -2343,10 +2385,10 @@ class FilesService {
|
|
|
2343
2385
|
* @param podId
|
|
2344
2386
|
* @param path
|
|
2345
2387
|
* @param namespace
|
|
2346
|
-
* @returns
|
|
2388
|
+
* @returns binary File bytes
|
|
2347
2389
|
* @throws ApiError
|
|
2348
2390
|
*/
|
|
2349
|
-
static fileDownload(podId, path, namespace
|
|
2391
|
+
static fileDownload(podId, path, namespace) {
|
|
2350
2392
|
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
2351
2393
|
method: 'GET',
|
|
2352
2394
|
url: '/pods/{pod_id}/datastore/files/download',
|
|
@@ -2505,7 +2547,7 @@ class FunctionsService {
|
|
|
2505
2547
|
}
|
|
2506
2548
|
/**
|
|
2507
2549
|
* Create Function
|
|
2508
|
-
* Create a new function in a pod
|
|
2550
|
+
* 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.
|
|
2509
2551
|
* @param podId
|
|
2510
2552
|
* @param requestBody
|
|
2511
2553
|
* @returns FunctionResponse Successful Response
|
|
@@ -2569,7 +2611,7 @@ class FunctionsService {
|
|
|
2569
2611
|
}
|
|
2570
2612
|
/**
|
|
2571
2613
|
* Update Function
|
|
2572
|
-
* Update a function
|
|
2614
|
+
* Update a function. When code is supplied, the platform re-derives the function input_schema and output_schema and returns the refreshed function.
|
|
2573
2615
|
* @param podId
|
|
2574
2616
|
* @param functionName
|
|
2575
2617
|
* @param requestBody
|
|
@@ -3776,6 +3818,30 @@ class PodMembersService {
|
|
|
3776
3818
|
},
|
|
3777
3819
|
});
|
|
3778
3820
|
}
|
|
3821
|
+
/**
|
|
3822
|
+
* Update Member Roles
|
|
3823
|
+
* Update a pod member's roles
|
|
3824
|
+
* @param podId
|
|
3825
|
+
* @param podMemberId
|
|
3826
|
+
* @param requestBody
|
|
3827
|
+
* @returns PodMemberResponse Successful Response
|
|
3828
|
+
* @throws ApiError
|
|
3829
|
+
*/
|
|
3830
|
+
static podMemberUpdateRoles(podId, podMemberId, requestBody) {
|
|
3831
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3832
|
+
method: 'PATCH',
|
|
3833
|
+
url: '/pods/{pod_id}/members/{pod_member_id}/roles',
|
|
3834
|
+
path: {
|
|
3835
|
+
'pod_id': podId,
|
|
3836
|
+
'pod_member_id': podMemberId,
|
|
3837
|
+
},
|
|
3838
|
+
body: requestBody,
|
|
3839
|
+
mediaType: 'application/json',
|
|
3840
|
+
errors: {
|
|
3841
|
+
422: `Validation Error`,
|
|
3842
|
+
},
|
|
3843
|
+
});
|
|
3844
|
+
}
|
|
3779
3845
|
}
|
|
3780
3846
|
exports.PodMembersService = PodMembersService;
|
|
3781
3847
|
|
package/dist/index.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export type { PodMembersNamespace } from "./namespaces/pod-members.js";
|
|
|
32
32
|
export type { PodsNamespace } from "./namespaces/pods.js";
|
|
33
33
|
export type { PodSurfacesNamespace } from "./namespaces/pod-surfaces.js";
|
|
34
34
|
export type { RecordsNamespace } from "./namespaces/records.js";
|
|
35
|
-
export type { ResourceType, ResourcesNamespace } from "./namespaces/resources.js";
|
|
35
|
+
export type { ResourceFileInfo, ResourceFileListResponse, ResourceFileUploadResponse, ResourceType, ResourcesNamespace, } from "./namespaces/resources.js";
|
|
36
36
|
export type { ScheduleListOptions, SchedulesNamespace } from "./namespaces/schedules.js";
|
|
37
37
|
export type { TablesNamespace } from "./namespaces/tables.js";
|
|
38
38
|
export type { UsersNamespace } from "./namespaces/users.js";
|
|
@@ -1,8 +1,24 @@
|
|
|
1
1
|
import type { HttpClient } from "../http.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
export type ResourceType = "pod" | "conversation" | (string & {});
|
|
3
|
+
export interface ResourceFileInfo {
|
|
4
|
+
created?: string | null;
|
|
5
|
+
last_modified?: string | null;
|
|
6
|
+
name: string;
|
|
7
|
+
path: string;
|
|
8
|
+
size?: number | null;
|
|
9
|
+
type: "file" | "directory" | (string & {});
|
|
10
|
+
}
|
|
11
|
+
export interface ResourceFileListResponse {
|
|
12
|
+
items: ResourceFileInfo[];
|
|
13
|
+
limit: number;
|
|
14
|
+
next_page_token?: string | null;
|
|
15
|
+
}
|
|
16
|
+
export interface ResourceFileUploadResponse {
|
|
17
|
+
file_name: string;
|
|
18
|
+
message: string;
|
|
19
|
+
path: string;
|
|
20
|
+
success: boolean;
|
|
21
|
+
}
|
|
6
22
|
export declare class ResourcesNamespace {
|
|
7
23
|
private readonly http;
|
|
8
24
|
constructor(http: HttpClient);
|
|
@@ -14,7 +30,7 @@ export declare class ResourcesNamespace {
|
|
|
14
30
|
upload(resourceType: ResourceType, resourceId: string, file: Blob, options?: {
|
|
15
31
|
path?: string;
|
|
16
32
|
name?: string;
|
|
17
|
-
}): Promise<
|
|
33
|
+
}): Promise<ResourceFileUploadResponse>;
|
|
18
34
|
delete(resourceType: ResourceType, resourceId: string, filePath: string): Promise<Record<string, unknown>>;
|
|
19
35
|
download(resourceType: ResourceType, resourceId: string, filePath: string): Promise<Blob>;
|
|
20
36
|
}
|
|
@@ -19,8 +19,6 @@ export type { AgentSurfaceResponse } from './models/AgentSurfaceResponse.js';
|
|
|
19
19
|
export { AgentSurfaceStatus } from './models/AgentSurfaceStatus.js';
|
|
20
20
|
export { AgentToolset } from './models/AgentToolset.js';
|
|
21
21
|
export type { ApiKeyCredentialsResponseSchema } from './models/ApiKeyCredentialsResponseSchema.js';
|
|
22
|
-
export type { app__modules__agent__domain__value_objects__TableAccessEntry } from './models/app__modules__agent__domain__value_objects__TableAccessEntry.js';
|
|
23
|
-
export type { app__modules__function__api__schemas__function_schemas__TableAccessEntry } from './models/app__modules__function__api__schemas__function_schemas__TableAccessEntry.js';
|
|
24
22
|
export type { ApplicationAccessConfig } from './models/ApplicationAccessConfig.js';
|
|
25
23
|
export type { ApplicationDetailResponseSchema } from './models/ApplicationDetailResponseSchema.js';
|
|
26
24
|
export type { ApplicationListResponseSchema } from './models/ApplicationListResponseSchema.js';
|
|
@@ -28,8 +26,11 @@ export { ApplicationMode } from './models/ApplicationMode.js';
|
|
|
28
26
|
export type { ApplicationResponseSchema } from './models/ApplicationResponseSchema.js';
|
|
29
27
|
export type { AppTriggerListResponseSchema } from './models/AppTriggerListResponseSchema.js';
|
|
30
28
|
export type { AppTriggerResponseSchema } from './models/AppTriggerResponseSchema.js';
|
|
29
|
+
export type { BillingHistoryResponse } from './models/BillingHistoryResponse.js';
|
|
31
30
|
export { BillingInterval } from './models/BillingInterval.js';
|
|
32
|
-
export type {
|
|
31
|
+
export type { BillingInvoiceResponse } from './models/BillingInvoiceResponse.js';
|
|
32
|
+
export { BillingInvoiceStatus } from './models/BillingInvoiceStatus.js';
|
|
33
|
+
export { BillingScope } from './models/BillingScope.js';
|
|
33
34
|
export type { BulkCreateRecordsRequest } from './models/BulkCreateRecordsRequest.js';
|
|
34
35
|
export type { BulkDeleteRecordsRequest } from './models/BulkDeleteRecordsRequest.js';
|
|
35
36
|
export type { BulkUpdateRecordsRequest } from './models/BulkUpdateRecordsRequest.js';
|
|
@@ -46,6 +47,8 @@ export type { CreateConversationRequest } from './models/CreateConversationReque
|
|
|
46
47
|
export type { CreateDeskRequest } from './models/CreateDeskRequest.js';
|
|
47
48
|
export type { CreateFolderRequest } from './models/CreateFolderRequest.js';
|
|
48
49
|
export type { CreateFunctionRequest } from './models/CreateFunctionRequest.js';
|
|
50
|
+
export type { CreateInvoicePaymentUrlRequest } from './models/CreateInvoicePaymentUrlRequest.js';
|
|
51
|
+
export type { CreateInvoicePaymentUrlResponse } from './models/CreateInvoicePaymentUrlResponse.js';
|
|
49
52
|
export type { CreateRecordRequest } from './models/CreateRecordRequest.js';
|
|
50
53
|
export type { CreateScheduleRequest } from './models/CreateScheduleRequest.js';
|
|
51
54
|
export type { CreateSurfaceRequest } from './models/CreateSurfaceRequest.js';
|
|
@@ -83,7 +86,6 @@ export type { EventWorkflowStartOutput } from './models/EventWorkflowStartOutput
|
|
|
83
86
|
export type { ExecuteFunctionRequest } from './models/ExecuteFunctionRequest.js';
|
|
84
87
|
export type { ExpressionInputBinding } from './models/ExpressionInputBinding.js';
|
|
85
88
|
export { FeedbackCategory } from './models/FeedbackCategory.js';
|
|
86
|
-
export { FileInfo } from './models/FileInfo.js';
|
|
87
89
|
export type { FileListResponse } from './models/FileListResponse.js';
|
|
88
90
|
export { FileNamespace } from './models/FileNamespace.js';
|
|
89
91
|
export type { FileResponse } from './models/FileResponse.js';
|
|
@@ -91,7 +93,6 @@ export type { FileSearchRequest } from './models/FileSearchRequest.js';
|
|
|
91
93
|
export type { FileSearchResponse } from './models/FileSearchResponse.js';
|
|
92
94
|
export type { FileSearchResultSchema } from './models/FileSearchResultSchema.js';
|
|
93
95
|
export { FileSearchScopeMode } from './models/FileSearchScopeMode.js';
|
|
94
|
-
export type { FileUploadResponse } from './models/FileUploadResponse.js';
|
|
95
96
|
export type { FlowResponse } from './models/FlowResponse.js';
|
|
96
97
|
export type { FlowRunEntity } from './models/FlowRunEntity.js';
|
|
97
98
|
export { FlowRunStatus } from './models/FlowRunStatus.js';
|
|
@@ -109,10 +110,10 @@ export type { FunctionRunListResponse } from './models/FunctionRunListResponse.j
|
|
|
109
110
|
export type { FunctionRunResponse } from './models/FunctionRunResponse.js';
|
|
110
111
|
export { FunctionRunStatus } from './models/FunctionRunStatus.js';
|
|
111
112
|
export { FunctionStatus } from './models/FunctionStatus.js';
|
|
113
|
+
export type { FunctionTableAccessEntry } from './models/FunctionTableAccessEntry.js';
|
|
112
114
|
export { FunctionType } from './models/FunctionType.js';
|
|
113
115
|
export type { GmailSurfaceConfig } from './models/GmailSurfaceConfig.js';
|
|
114
116
|
export type { GmailSurfaceConfigInput } from './models/GmailSurfaceConfigInput.js';
|
|
115
|
-
export type { GrantPermissionRequest } from './models/GrantPermissionRequest.js';
|
|
116
117
|
export { HarnessKind } from './models/HarnessKind.js';
|
|
117
118
|
export type { HTTPValidationError } from './models/HTTPValidationError.js';
|
|
118
119
|
export type { IconUploadRequest } from './models/IconUploadRequest.js';
|
|
@@ -167,19 +168,17 @@ export type { PodMemberDetailResponse } from './models/PodMemberDetailResponse.j
|
|
|
167
168
|
export type { PodMemberListResponse } from './models/PodMemberListResponse.js';
|
|
168
169
|
export type { PodMemberResponse } from './models/PodMemberResponse.js';
|
|
169
170
|
export type { PodMemberUpdateRoleRequest } from './models/PodMemberUpdateRoleRequest.js';
|
|
170
|
-
export type { PodPermissionsResponse } from './models/PodPermissionsResponse.js';
|
|
171
171
|
export type { PodResponse } from './models/PodResponse.js';
|
|
172
172
|
export { PodRole } from './models/PodRole.js';
|
|
173
|
+
export type { PodRoleCreateRequest } from './models/PodRoleCreateRequest.js';
|
|
174
|
+
export type { PodRoleListResponse } from './models/PodRoleListResponse.js';
|
|
175
|
+
export type { PodRoleResponse } from './models/PodRoleResponse.js';
|
|
173
176
|
export type { PodUpdateRequest } from './models/PodUpdateRequest.js';
|
|
174
177
|
export type { RecentUsageResponse } from './models/RecentUsageResponse.js';
|
|
175
178
|
export type { RecordListResponse } from './models/RecordListResponse.js';
|
|
176
179
|
export type { RecordResponse } from './models/RecordResponse.js';
|
|
177
180
|
export type { ReportFeedbackRequest } from './models/ReportFeedbackRequest.js';
|
|
178
181
|
export type { ReportFeedbackResponse } from './models/ReportFeedbackResponse.js';
|
|
179
|
-
export type { ResourceFileListResponse } from './models/ResourceFileListResponse.js';
|
|
180
|
-
export type { ResourcePermissionListResponse } from './models/ResourcePermissionListResponse.js';
|
|
181
|
-
export type { ResourcePermissionResponse } from './models/ResourcePermissionResponse.js';
|
|
182
|
-
export { ResourceType } from './models/ResourceType.js';
|
|
183
182
|
export type { ScheduledFlowStartInput } from './models/ScheduledFlowStartInput.js';
|
|
184
183
|
export type { ScheduledFlowStartOutput } from './models/ScheduledFlowStartOutput.js';
|
|
185
184
|
export { ScheduledFlowStartType } from './models/ScheduledFlowStartType.js';
|
|
@@ -192,14 +191,15 @@ export { SearchMethod } from './models/SearchMethod.js';
|
|
|
192
191
|
export type { SearchResult } from './models/SearchResult.js';
|
|
193
192
|
export type { SeatInfoResponse } from './models/SeatInfoResponse.js';
|
|
194
193
|
export type { SendMessageRequest } from './models/SendMessageRequest.js';
|
|
195
|
-
export type { SetVisibilityRequest } from './models/SetVisibilityRequest.js';
|
|
196
194
|
export type { SlackCredentialsInput } from './models/SlackCredentialsInput.js';
|
|
197
195
|
export type { SlackSurfaceConfig } from './models/SlackSurfaceConfig.js';
|
|
198
196
|
export type { SlackSurfaceConfigInput } from './models/SlackSurfaceConfigInput.js';
|
|
199
197
|
export type { StackFrame } from './models/StackFrame.js';
|
|
200
198
|
export type { StartSubscriptionRequest } from './models/StartSubscriptionRequest.js';
|
|
201
199
|
export type { StartSubscriptionResponse } from './models/StartSubscriptionResponse.js';
|
|
200
|
+
export type { StartTeamBillingRequest } from './models/StartTeamBillingRequest.js';
|
|
202
201
|
export type { StepExecution } from './models/StepExecution.js';
|
|
202
|
+
export type { SubscriptionResponse } from './models/SubscriptionResponse.js';
|
|
203
203
|
export { SubscriptionStatus } from './models/SubscriptionStatus.js';
|
|
204
204
|
export type { SubscriptionStatusResponse } from './models/SubscriptionStatusResponse.js';
|
|
205
205
|
export type { SubscriptionWithPlanResponse } from './models/SubscriptionWithPlanResponse.js';
|
|
@@ -214,6 +214,7 @@ export { SurfaceSetupMode } from './models/SurfaceSetupMode.js';
|
|
|
214
214
|
export { SurfaceSetupPhase } from './models/SurfaceSetupPhase.js';
|
|
215
215
|
export type { SurfaceSetupStep } from './models/SurfaceSetupStep.js';
|
|
216
216
|
export { SurfaceWebhookMode } from './models/SurfaceWebhookMode.js';
|
|
217
|
+
export type { TableAccessEntry } from './models/TableAccessEntry.js';
|
|
217
218
|
export { TableAccessMode } from './models/TableAccessMode.js';
|
|
218
219
|
export type { TableListResponse } from './models/TableListResponse.js';
|
|
219
220
|
export type { TableResponse } from './models/TableResponse.js';
|
|
@@ -238,7 +239,12 @@ export type { UpdateRecordRequest } from './models/UpdateRecordRequest.js';
|
|
|
238
239
|
export type { UpdateScheduleRequest } from './models/UpdateScheduleRequest.js';
|
|
239
240
|
export type { UpdateSurfaceRequest } from './models/UpdateSurfaceRequest.js';
|
|
240
241
|
export type { UpdateTableRequest } from './models/UpdateTableRequest.js';
|
|
242
|
+
export type { UsageLimitScopeResponse } from './models/UsageLimitScopeResponse.js';
|
|
243
|
+
export type { UsageLimitsResponse } from './models/UsageLimitsResponse.js';
|
|
244
|
+
export type { UsageListResponse } from './models/UsageListResponse.js';
|
|
241
245
|
export type { UsageRecordResponse } from './models/UsageRecordResponse.js';
|
|
246
|
+
export type { UsageStatsBucketResponse } from './models/UsageStatsBucketResponse.js';
|
|
247
|
+
export type { UsageStatsResponse } from './models/UsageStatsResponse.js';
|
|
242
248
|
export type { UsageSummaryResponse } from './models/UsageSummaryResponse.js';
|
|
243
249
|
export type { UserProfileRequest } from './models/UserProfileRequest.js';
|
|
244
250
|
export type { UserResponse } from './models/UserResponse.js';
|
|
@@ -267,14 +273,12 @@ export { WorkflowRunWaitStatus } from './models/WorkflowRunWaitStatus.js';
|
|
|
267
273
|
export { WorkflowRunWaitType } from './models/WorkflowRunWaitType.js';
|
|
268
274
|
export type { WorkflowUpdateRequest } from './models/WorkflowUpdateRequest.js';
|
|
269
275
|
export { AgentConversationsService } from './services/AgentConversationsService.js';
|
|
270
|
-
export { AgentFilesService } from './services/AgentFilesService.js';
|
|
271
276
|
export { AgentsService } from './services/AgentsService.js';
|
|
272
277
|
export { AgentSurfacesService } from './services/AgentSurfacesService.js';
|
|
273
278
|
export { AgentSurfacesIngressService } from './services/AgentSurfacesIngressService.js';
|
|
274
279
|
export { AgentToolsService } from './services/AgentToolsService.js';
|
|
275
280
|
export { ApplicationsService } from './services/ApplicationsService.js';
|
|
276
281
|
export { AuthService } from './services/AuthService.js';
|
|
277
|
-
export { AuthorizationService } from './services/AuthorizationService.js';
|
|
278
282
|
export { BillingSubscriptionsService } from './services/BillingSubscriptionsService.js';
|
|
279
283
|
export { BillingUsageService } from './services/BillingUsageService.js';
|
|
280
284
|
export { BillingWebhooksService } from './services/BillingWebhooksService.js';
|
|
@@ -287,6 +291,7 @@ export { IntegrationsService } from './services/IntegrationsService.js';
|
|
|
287
291
|
export { OrganizationsService } from './services/OrganizationsService.js';
|
|
288
292
|
export { PodJoinRequestsService } from './services/PodJoinRequestsService.js';
|
|
289
293
|
export { PodMembersService } from './services/PodMembersService.js';
|
|
294
|
+
export { PodRolesService } from './services/PodRolesService.js';
|
|
290
295
|
export { PodsService } from './services/PodsService.js';
|
|
291
296
|
export { QueryService } from './services/QueryService.js';
|
|
292
297
|
export { RecordsService } from './services/RecordsService.js';
|
|
@@ -10,12 +10,13 @@ export { AgentSurfaceStatus } from './models/AgentSurfaceStatus.js';
|
|
|
10
10
|
export { AgentToolset } from './models/AgentToolset.js';
|
|
11
11
|
export { ApplicationMode } from './models/ApplicationMode.js';
|
|
12
12
|
export { BillingInterval } from './models/BillingInterval.js';
|
|
13
|
+
export { BillingInvoiceStatus } from './models/BillingInvoiceStatus.js';
|
|
14
|
+
export { BillingScope } from './models/BillingScope.js';
|
|
13
15
|
export { CredentialTypes } from './models/CredentialTypes.js';
|
|
14
16
|
export { DatastoreDataType } from './models/DatastoreDataType.js';
|
|
15
17
|
export { DatastoreOperation } from './models/DatastoreOperation.js';
|
|
16
18
|
export { DeskStatus } from './models/DeskStatus.js';
|
|
17
19
|
export { FeedbackCategory } from './models/FeedbackCategory.js';
|
|
18
|
-
export { FileInfo } from './models/FileInfo.js';
|
|
19
20
|
export { FileNamespace } from './models/FileNamespace.js';
|
|
20
21
|
export { FileSearchScopeMode } from './models/FileSearchScopeMode.js';
|
|
21
22
|
export { FlowRunStatus } from './models/FlowRunStatus.js';
|
|
@@ -28,7 +29,6 @@ export { OrganizationRole } from './models/OrganizationRole.js';
|
|
|
28
29
|
export { PodAppMode } from './models/PodAppMode.js';
|
|
29
30
|
export { PodJoinRequestStatus } from './models/PodJoinRequestStatus.js';
|
|
30
31
|
export { PodRole } from './models/PodRole.js';
|
|
31
|
-
export { ResourceType } from './models/ResourceType.js';
|
|
32
32
|
export { ScheduledFlowStartType } from './models/ScheduledFlowStartType.js';
|
|
33
33
|
export { ScheduleType } from './models/ScheduleType.js';
|
|
34
34
|
export { SearchMethod } from './models/SearchMethod.js';
|
|
@@ -45,14 +45,12 @@ export { WorkflowMode } from './models/WorkflowMode.js';
|
|
|
45
45
|
export { WorkflowRunWaitStatus } from './models/WorkflowRunWaitStatus.js';
|
|
46
46
|
export { WorkflowRunWaitType } from './models/WorkflowRunWaitType.js';
|
|
47
47
|
export { AgentConversationsService } from './services/AgentConversationsService.js';
|
|
48
|
-
export { AgentFilesService } from './services/AgentFilesService.js';
|
|
49
48
|
export { AgentsService } from './services/AgentsService.js';
|
|
50
49
|
export { AgentSurfacesService } from './services/AgentSurfacesService.js';
|
|
51
50
|
export { AgentSurfacesIngressService } from './services/AgentSurfacesIngressService.js';
|
|
52
51
|
export { AgentToolsService } from './services/AgentToolsService.js';
|
|
53
52
|
export { ApplicationsService } from './services/ApplicationsService.js';
|
|
54
53
|
export { AuthService } from './services/AuthService.js';
|
|
55
|
-
export { AuthorizationService } from './services/AuthorizationService.js';
|
|
56
54
|
export { BillingSubscriptionsService } from './services/BillingSubscriptionsService.js';
|
|
57
55
|
export { BillingUsageService } from './services/BillingUsageService.js';
|
|
58
56
|
export { BillingWebhooksService } from './services/BillingWebhooksService.js';
|
|
@@ -65,6 +63,7 @@ export { IntegrationsService } from './services/IntegrationsService.js';
|
|
|
65
63
|
export { OrganizationsService } from './services/OrganizationsService.js';
|
|
66
64
|
export { PodJoinRequestsService } from './services/PodJoinRequestsService.js';
|
|
67
65
|
export { PodMembersService } from './services/PodMembersService.js';
|
|
66
|
+
export { PodRolesService } from './services/PodRolesService.js';
|
|
68
67
|
export { PodsService } from './services/PodsService.js';
|
|
69
68
|
export { QueryService } from './services/QueryService.js';
|
|
70
69
|
export { RecordsService } from './services/RecordsService.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { AgentModelName } from './AgentModelName.js';
|
|
2
2
|
import type { AgentToolset } from './AgentToolset.js';
|
|
3
|
-
import type { app__modules__agent__domain__value_objects__TableAccessEntry } from './app__modules__agent__domain__value_objects__TableAccessEntry.js';
|
|
4
3
|
import type { ApplicationAccessConfig } from './ApplicationAccessConfig.js';
|
|
5
4
|
import type { HarnessKind } from './HarnessKind.js';
|
|
5
|
+
import type { TableAccessEntry } from './TableAccessEntry.js';
|
|
6
6
|
export type AgentResponse = {
|
|
7
7
|
accessible_applications?: Array<ApplicationAccessConfig>;
|
|
8
8
|
accessible_folders?: Array<string>;
|
|
9
|
-
accessible_tables?: Array<
|
|
9
|
+
accessible_tables?: Array<TableAccessEntry>;
|
|
10
10
|
agent_names?: Array<string>;
|
|
11
11
|
created_at: string;
|
|
12
12
|
description?: (string | null);
|
|
@@ -25,4 +25,5 @@ export type AgentResponse = {
|
|
|
25
25
|
updated_at: string;
|
|
26
26
|
user_id: string;
|
|
27
27
|
visibility?: string;
|
|
28
|
+
visibility_roles?: Array<string>;
|
|
28
29
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { BillingInvoiceStatus } from './BillingInvoiceStatus.js';
|
|
2
|
+
import type { BillingScope } from './BillingScope.js';
|
|
3
|
+
/**
|
|
4
|
+
* Response schema for a billing invoice.
|
|
5
|
+
*/
|
|
6
|
+
export type BillingInvoiceResponse = {
|
|
7
|
+
amount_cents: number;
|
|
8
|
+
billing_scope: BillingScope;
|
|
9
|
+
checkout_url: (string | null);
|
|
10
|
+
created_at: string;
|
|
11
|
+
currency: string;
|
|
12
|
+
dodo_payment_id: (string | null);
|
|
13
|
+
due_at: (string | null);
|
|
14
|
+
id: string;
|
|
15
|
+
llm_credit_cents: number;
|
|
16
|
+
llm_overage_cents: number;
|
|
17
|
+
metadata: Record<string, any>;
|
|
18
|
+
organization_id: (string | null);
|
|
19
|
+
paid_at: (string | null);
|
|
20
|
+
period_end: string;
|
|
21
|
+
period_start: string;
|
|
22
|
+
plan_id: string;
|
|
23
|
+
seat_count: number;
|
|
24
|
+
status: BillingInvoiceStatus;
|
|
25
|
+
subscription_id: (string | null);
|
|
26
|
+
total_cents: number;
|
|
27
|
+
updated_at: string;
|
|
28
|
+
user_id: (string | null);
|
|
29
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* Billing invoice status enum.
|
|
7
|
+
*/
|
|
8
|
+
export var BillingInvoiceStatus;
|
|
9
|
+
(function (BillingInvoiceStatus) {
|
|
10
|
+
BillingInvoiceStatus["DRAFT"] = "draft";
|
|
11
|
+
BillingInvoiceStatus["UNPAID"] = "unpaid";
|
|
12
|
+
BillingInvoiceStatus["PAID"] = "paid";
|
|
13
|
+
BillingInvoiceStatus["FAILED"] = "failed";
|
|
14
|
+
BillingInvoiceStatus["VOID"] = "void";
|
|
15
|
+
})(BillingInvoiceStatus || (BillingInvoiceStatus = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* Billing owner scope enum.
|
|
7
|
+
*/
|
|
8
|
+
export var BillingScope;
|
|
9
|
+
(function (BillingScope) {
|
|
10
|
+
BillingScope["PERSONAL"] = "personal";
|
|
11
|
+
BillingScope["ORGANIZATION"] = "organization";
|
|
12
|
+
})(BillingScope || (BillingScope = {}));
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { AgentModelName } from './AgentModelName.js';
|
|
2
2
|
import type { AgentToolset } from './AgentToolset.js';
|
|
3
|
-
import type { app__modules__agent__domain__value_objects__TableAccessEntry } from './app__modules__agent__domain__value_objects__TableAccessEntry.js';
|
|
4
3
|
import type { ApplicationAccessConfig } from './ApplicationAccessConfig.js';
|
|
5
4
|
import type { HarnessKind } from './HarnessKind.js';
|
|
5
|
+
import type { TableAccessEntry } from './TableAccessEntry.js';
|
|
6
6
|
export type CreateAgentRequest = {
|
|
7
7
|
accessible_applications?: Array<ApplicationAccessConfig>;
|
|
8
8
|
accessible_folders?: Array<string>;
|
|
9
|
-
accessible_tables?: Array<
|
|
9
|
+
accessible_tables?: Array<TableAccessEntry>;
|
|
10
10
|
agent_names?: Array<string>;
|
|
11
11
|
description?: (string | null);
|
|
12
12
|
function_names?: Array<string>;
|
|
@@ -19,4 +19,5 @@ export type CreateAgentRequest = {
|
|
|
19
19
|
name: string;
|
|
20
20
|
output_schema?: (Record<string, any> | null);
|
|
21
21
|
toolsets?: Array<AgentToolset>;
|
|
22
|
+
visibility_roles?: (Array<string> | null);
|
|
22
23
|
};
|
|
@@ -1,20 +1,25 @@
|
|
|
1
|
-
import type { app__modules__function__api__schemas__function_schemas__TableAccessEntry } from './app__modules__function__api__schemas__function_schemas__TableAccessEntry.js';
|
|
2
1
|
import type { ApplicationAccessConfig } from './ApplicationAccessConfig.js';
|
|
2
|
+
import type { FunctionTableAccessEntry } from './FunctionTableAccessEntry.js';
|
|
3
3
|
import type { FunctionType } from './FunctionType.js';
|
|
4
4
|
/**
|
|
5
5
|
* Request to create a function.
|
|
6
|
+
*
|
|
7
|
+
* Input and output schemas are derived from the submitted code and returned
|
|
8
|
+
* on the function response. They are not accepted in create requests.
|
|
6
9
|
*/
|
|
7
10
|
export type CreateFunctionRequest = {
|
|
8
11
|
accessible_applications?: Array<ApplicationAccessConfig>;
|
|
9
12
|
accessible_folders?: Array<string>;
|
|
10
|
-
accessible_tables?: Array<
|
|
13
|
+
accessible_tables?: Array<FunctionTableAccessEntry>;
|
|
14
|
+
/**
|
|
15
|
+
* Python source for the function. When provided, the platform analyzes the code and populates input_schema, output_schema, and config_schema on the returned function.
|
|
16
|
+
*/
|
|
11
17
|
code?: (string | null);
|
|
12
18
|
config?: (Record<string, any> | null);
|
|
13
19
|
config_schema?: (Record<string, any> | null);
|
|
14
20
|
description?: (string | null);
|
|
15
21
|
icon_url?: (string | null);
|
|
16
|
-
input_schema?: Record<string, any>;
|
|
17
22
|
name: string;
|
|
18
|
-
output_schema?: Record<string, any>;
|
|
19
23
|
type?: FunctionType;
|
|
24
|
+
visibility_roles?: (Array<string> | null);
|
|
20
25
|
};
|