lemma-sdk 0.2.24 → 0.2.27
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 +175 -506
- package/dist/browser/lemma-client.js +207 -12
- package/dist/client.d.ts +2 -0
- package/dist/client.js +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/namespaces/pod-join-requests.d.ts +16 -0
- package/dist/namespaces/pod-join-requests.js +24 -0
- package/dist/namespaces/pod-members.d.ts +1 -0
- package/dist/namespaces/pod-members.js +3 -0
- package/dist/openapi_client/index.d.ts +10 -3
- package/dist/openapi_client/index.js +4 -2
- package/dist/openapi_client/models/ColumnSchema.d.ts +4 -0
- package/dist/openapi_client/models/CreateTableRequest.d.ts +1 -1
- package/dist/openapi_client/models/DataStoreFlowStart.d.ts +3 -6
- package/dist/openapi_client/models/DatastoreOperation.d.ts +5 -0
- package/dist/openapi_client/models/DatastoreOperation.js +10 -0
- package/dist/openapi_client/models/DatastoreQueryRequest.d.ts +1 -1
- package/dist/openapi_client/models/FlowInstallEntity.d.ts +2 -2
- package/dist/openapi_client/models/FlowResponse.d.ts +4 -3
- package/dist/openapi_client/models/{FlowStart.d.ts → FlowStart_Input.d.ts} +1 -1
- package/dist/openapi_client/models/FlowStart_Output.d.ts +14 -0
- package/dist/openapi_client/models/FlowStart_Output.js +1 -0
- package/dist/openapi_client/models/PodCreateRequest.d.ts +0 -4
- package/dist/openapi_client/models/PodJoinRequestApproveRequest.d.ts +6 -0
- package/dist/openapi_client/models/PodJoinRequestApproveRequest.js +1 -0
- package/dist/openapi_client/models/PodJoinRequestCreateResponse.d.ts +17 -0
- package/dist/openapi_client/models/PodJoinRequestCreateResponse.js +1 -0
- package/dist/openapi_client/models/PodJoinRequestListResponse.d.ts +7 -0
- package/dist/openapi_client/models/PodJoinRequestListResponse.js +1 -0
- package/dist/openapi_client/models/PodJoinRequestStatus.d.ts +5 -0
- package/dist/openapi_client/models/PodJoinRequestStatus.js +10 -0
- package/dist/openapi_client/models/PodMemberDetailResponse.d.ts +14 -0
- package/dist/openapi_client/models/PodMemberDetailResponse.js +1 -0
- package/dist/openapi_client/models/PodMemberResponse.d.ts +3 -3
- package/dist/openapi_client/models/PodResponse.d.ts +0 -5
- package/dist/openapi_client/models/PodUpdateRequest.d.ts +0 -4
- package/dist/openapi_client/models/WorkflowCreateRequest.d.ts +7 -6
- package/dist/openapi_client/models/WorkflowGraphUpdateRequest.d.ts +2 -2
- package/dist/openapi_client/models/WorkflowInstallMode.d.ts +7 -0
- package/dist/openapi_client/models/WorkflowInstallMode.js +12 -0
- package/dist/openapi_client/models/WorkflowUpdateRequest.d.ts +5 -4
- package/dist/openapi_client/services/FilesService.d.ts +1 -1
- package/dist/openapi_client/services/FilesService.js +1 -1
- package/dist/openapi_client/services/PodJoinRequestsService.d.ts +44 -0
- package/dist/openapi_client/services/PodJoinRequestsService.js +93 -0
- package/dist/openapi_client/services/PodMembersService.d.ts +14 -4
- package/dist/openapi_client/services/PodMembersService.js +29 -8
- package/dist/openapi_client/services/RecordsService.d.ts +2 -2
- package/dist/openapi_client/services/RecordsService.js +2 -2
- package/dist/openapi_client/services/WorkflowsService.d.ts +1 -1
- package/dist/openapi_client/services/WorkflowsService.js +1 -1
- package/dist/react/AuthGuard.d.ts +5 -2
- package/dist/react/AuthGuard.js +126 -3
- package/dist/react/components/AssistantChrome.js +1 -1
- package/dist/react/components/AssistantExperience.d.ts +7 -2
- package/dist/react/components/AssistantExperience.js +272 -32
- package/dist/react/components/assistant-types.d.ts +1 -0
- package/dist/react/index.d.ts +0 -2
- package/dist/react/index.js +0 -1
- package/dist/react/styles.css +594 -224
- package/dist/react/useAssistantController.js +2 -1
- package/dist/react/useAssistantRuntime.d.ts +2 -1
- package/dist/react/useAssistantRuntime.js +7 -3
- package/dist/react/useTaskSession.js +145 -73
- package/dist/task-events.d.ts +2 -1
- package/dist/task-events.js +38 -1
- package/dist/types.d.ts +2 -1
- package/package.json +1 -1
- package/dist/openapi_client/models/PodStatus.d.ts +0 -4
- package/dist/openapi_client/models/PodStatus.js +0 -9
- package/dist/openapi_client/models/PodType.d.ts +0 -6
- package/dist/openapi_client/models/PodType.js +0 -11
- package/dist/react/useAgentRun.d.ts +0 -17
- package/dist/react/useAgentRun.js +0 -66
- /package/dist/openapi_client/models/{FlowStart.js → FlowStart_Input.js} +0 -0
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import type { PodStatus } from './PodStatus.js';
|
|
2
|
-
import type { PodType } from './PodType.js';
|
|
3
1
|
/**
|
|
4
2
|
* Pod creation request schema.
|
|
5
3
|
*/
|
|
@@ -8,6 +6,4 @@ export type PodCreateRequest = {
|
|
|
8
6
|
icon_url?: (string | null);
|
|
9
7
|
name: string;
|
|
10
8
|
organization_id: string;
|
|
11
|
-
status?: PodStatus;
|
|
12
|
-
type?: PodType;
|
|
13
9
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { OrganizationRole } from './OrganizationRole.js';
|
|
2
|
+
import type { PodJoinRequestStatus } from './PodJoinRequestStatus.js';
|
|
3
|
+
import type { PodRole } from './PodRole.js';
|
|
4
|
+
export type PodJoinRequestCreateResponse = {
|
|
5
|
+
approved_at?: (string | null);
|
|
6
|
+
approved_by_user_id?: (string | null);
|
|
7
|
+
created_at: string;
|
|
8
|
+
id: string;
|
|
9
|
+
org_role?: (OrganizationRole | null);
|
|
10
|
+
organization_id: string;
|
|
11
|
+
pod_id: string;
|
|
12
|
+
pod_role?: (PodRole | null);
|
|
13
|
+
requested_at: string;
|
|
14
|
+
status: PodJoinRequestStatus;
|
|
15
|
+
updated_at: string;
|
|
16
|
+
user_id: string;
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export var PodJoinRequestStatus;
|
|
6
|
+
(function (PodJoinRequestStatus) {
|
|
7
|
+
PodJoinRequestStatus["PENDING"] = "PENDING";
|
|
8
|
+
PodJoinRequestStatus["APPROVED"] = "APPROVED";
|
|
9
|
+
PodJoinRequestStatus["REJECTED"] = "REJECTED";
|
|
10
|
+
})(PodJoinRequestStatus || (PodJoinRequestStatus = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { PodRole } from './PodRole.js';
|
|
2
|
+
import type { UserResponse } from './UserResponse.js';
|
|
3
|
+
/**
|
|
4
|
+
* Pod member detail response schema.
|
|
5
|
+
*/
|
|
6
|
+
export type PodMemberDetailResponse = {
|
|
7
|
+
created_at: string;
|
|
8
|
+
role: PodRole;
|
|
9
|
+
updated_at: string;
|
|
10
|
+
user?: (UserResponse | null);
|
|
11
|
+
user_email: string;
|
|
12
|
+
user_id: string;
|
|
13
|
+
user_name?: (string | null);
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -4,9 +4,9 @@ import type { PodRole } from './PodRole.js';
|
|
|
4
4
|
*/
|
|
5
5
|
export type PodMemberResponse = {
|
|
6
6
|
created_at: string;
|
|
7
|
-
id: string;
|
|
8
|
-
organization_member_id: string;
|
|
9
|
-
pod_id: string;
|
|
10
7
|
role: PodRole;
|
|
11
8
|
updated_at: string;
|
|
9
|
+
user_email: string;
|
|
10
|
+
user_id: string;
|
|
11
|
+
user_name?: (string | null);
|
|
12
12
|
};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import type { PodStatus } from './PodStatus.js';
|
|
2
|
-
import type { PodType } from './PodType.js';
|
|
3
1
|
/**
|
|
4
2
|
* Pod response schema.
|
|
5
3
|
*/
|
|
@@ -10,9 +8,6 @@ export type PodResponse = {
|
|
|
10
8
|
id: string;
|
|
11
9
|
name: string;
|
|
12
10
|
organization_id: string;
|
|
13
|
-
slug: string;
|
|
14
|
-
status: PodStatus;
|
|
15
|
-
type: PodType;
|
|
16
11
|
updated_at: string;
|
|
17
12
|
user_id: string;
|
|
18
13
|
};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import type { PodStatus } from './PodStatus.js';
|
|
2
|
-
import type { PodType } from './PodType.js';
|
|
3
1
|
/**
|
|
4
2
|
* Pod update request schema.
|
|
5
3
|
*/
|
|
@@ -7,6 +5,4 @@ export type PodUpdateRequest = {
|
|
|
7
5
|
description?: (string | null);
|
|
8
6
|
icon_url?: (string | null);
|
|
9
7
|
name?: (string | null);
|
|
10
|
-
status?: (PodStatus | null);
|
|
11
|
-
type?: (PodType | null);
|
|
12
8
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { FlowStart_Input } from './FlowStart_Input.js';
|
|
2
|
+
import type { WorkflowInstallMode } from './WorkflowInstallMode.js';
|
|
2
3
|
export type WorkflowCreateRequest = {
|
|
3
4
|
/**
|
|
4
5
|
* Optional workflow description.
|
|
@@ -9,15 +10,15 @@ export type WorkflowCreateRequest = {
|
|
|
9
10
|
*/
|
|
10
11
|
icon_url?: (string | null);
|
|
11
12
|
/**
|
|
12
|
-
* Workflow
|
|
13
|
+
* Workflow installation scope for non-manual starts. `GLOBAL` means one pod-level installation, `USER` means each user installs their own.
|
|
13
14
|
*/
|
|
14
|
-
|
|
15
|
+
mode?: WorkflowInstallMode;
|
|
15
16
|
/**
|
|
16
|
-
*
|
|
17
|
+
* Workflow name.
|
|
17
18
|
*/
|
|
18
|
-
|
|
19
|
+
name: string;
|
|
19
20
|
/**
|
|
20
21
|
* Start configuration. If omitted, the workflow can be started manually via `workflow.start`.
|
|
21
22
|
*/
|
|
22
|
-
start?: (
|
|
23
|
+
start?: (FlowStart_Input | null);
|
|
23
24
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AgentNode } from './AgentNode.js';
|
|
2
2
|
import type { DecisionNode } from './DecisionNode.js';
|
|
3
3
|
import type { EndNode } from './EndNode.js';
|
|
4
|
-
import type {
|
|
4
|
+
import type { FlowStart_Input } from './FlowStart_Input.js';
|
|
5
5
|
import type { FormNode } from './FormNode.js';
|
|
6
6
|
import type { FunctionNode } from './FunctionNode.js';
|
|
7
7
|
import type { LoopNode } from './LoopNode.js';
|
|
@@ -22,5 +22,5 @@ export type WorkflowGraphUpdateRequest = {
|
|
|
22
22
|
/**
|
|
23
23
|
* Optional replacement start configuration stored with the graph.
|
|
24
24
|
*/
|
|
25
|
-
start?: (
|
|
25
|
+
start?: (FlowStart_Input | null);
|
|
26
26
|
};
|
|
@@ -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
|
+
* Workflow install scope for non-manual starts.
|
|
7
|
+
*/
|
|
8
|
+
export var WorkflowInstallMode;
|
|
9
|
+
(function (WorkflowInstallMode) {
|
|
10
|
+
WorkflowInstallMode["GLOBAL"] = "GLOBAL";
|
|
11
|
+
WorkflowInstallMode["USER"] = "USER";
|
|
12
|
+
})(WorkflowInstallMode || (WorkflowInstallMode = {}));
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { FlowStart_Input } from './FlowStart_Input.js';
|
|
2
|
+
import type { WorkflowInstallMode } from './WorkflowInstallMode.js';
|
|
2
3
|
export type WorkflowUpdateRequest = {
|
|
3
4
|
/**
|
|
4
5
|
* Updated workflow description.
|
|
@@ -9,11 +10,11 @@ export type WorkflowUpdateRequest = {
|
|
|
9
10
|
*/
|
|
10
11
|
icon_url?: (string | null);
|
|
11
12
|
/**
|
|
12
|
-
* Updated
|
|
13
|
+
* Updated workflow installation scope.
|
|
13
14
|
*/
|
|
14
|
-
|
|
15
|
+
mode?: (WorkflowInstallMode | null);
|
|
15
16
|
/**
|
|
16
17
|
* Updated start trigger configuration.
|
|
17
18
|
*/
|
|
18
|
-
start?: (
|
|
19
|
+
start?: (FlowStart_Input | null);
|
|
19
20
|
};
|
|
@@ -28,7 +28,7 @@ export declare class FilesService {
|
|
|
28
28
|
*/
|
|
29
29
|
static fileUpload(podId: string, formData: DatastoreFileUploadRequest): CancelablePromise<FileResponse>;
|
|
30
30
|
/**
|
|
31
|
-
* Delete File
|
|
31
|
+
* Delete File Or Folder. Deleting a folder will cleanup whole subtreee
|
|
32
32
|
* @param podId
|
|
33
33
|
* @param path
|
|
34
34
|
* @returns DatastoreMessageResponse Successful Response
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { PodJoinRequestApproveRequest } from '../models/PodJoinRequestApproveRequest.js';
|
|
2
|
+
import type { PodJoinRequestCreateResponse } from '../models/PodJoinRequestCreateResponse.js';
|
|
3
|
+
import type { PodJoinRequestListResponse } from '../models/PodJoinRequestListResponse.js';
|
|
4
|
+
import type { PodJoinRequestStatus } from '../models/PodJoinRequestStatus.js';
|
|
5
|
+
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
6
|
+
export declare class PodJoinRequestsService {
|
|
7
|
+
/**
|
|
8
|
+
* List Pod Join Requests
|
|
9
|
+
* List join requests for a pod
|
|
10
|
+
* @param podId
|
|
11
|
+
* @param statusFilter
|
|
12
|
+
* @param limit
|
|
13
|
+
* @param pageToken
|
|
14
|
+
* @returns PodJoinRequestListResponse Successful Response
|
|
15
|
+
* @throws ApiError
|
|
16
|
+
*/
|
|
17
|
+
static podJoinRequestList(podId: string, statusFilter?: (PodJoinRequestStatus | null), limit?: number, pageToken?: (string | null)): CancelablePromise<PodJoinRequestListResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Create Pod Join Request
|
|
20
|
+
* Create a join request for the current user to access this pod
|
|
21
|
+
* @param podId
|
|
22
|
+
* @returns PodJoinRequestCreateResponse Successful Response
|
|
23
|
+
* @throws ApiError
|
|
24
|
+
*/
|
|
25
|
+
static podJoinRequestCreate(podId: string): CancelablePromise<PodJoinRequestCreateResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* Get My Pod Join Request
|
|
28
|
+
* Get the current user's pending join request for this pod
|
|
29
|
+
* @param podId
|
|
30
|
+
* @returns any Successful Response
|
|
31
|
+
* @throws ApiError
|
|
32
|
+
*/
|
|
33
|
+
static podJoinRequestMe(podId: string): CancelablePromise<(PodJoinRequestCreateResponse | null)>;
|
|
34
|
+
/**
|
|
35
|
+
* Approve Pod Join Request
|
|
36
|
+
* Approve a pending pod join request and add user to org/pod
|
|
37
|
+
* @param podId
|
|
38
|
+
* @param joinRequestId
|
|
39
|
+
* @param requestBody
|
|
40
|
+
* @returns PodJoinRequestCreateResponse Successful Response
|
|
41
|
+
* @throws ApiError
|
|
42
|
+
*/
|
|
43
|
+
static podJoinRequestApprove(podId: string, joinRequestId: string, requestBody: PodJoinRequestApproveRequest): CancelablePromise<PodJoinRequestCreateResponse>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI.js';
|
|
2
|
+
import { request as __request } from '../core/request.js';
|
|
3
|
+
export class PodJoinRequestsService {
|
|
4
|
+
/**
|
|
5
|
+
* List Pod Join Requests
|
|
6
|
+
* List join requests for a pod
|
|
7
|
+
* @param podId
|
|
8
|
+
* @param statusFilter
|
|
9
|
+
* @param limit
|
|
10
|
+
* @param pageToken
|
|
11
|
+
* @returns PodJoinRequestListResponse Successful Response
|
|
12
|
+
* @throws ApiError
|
|
13
|
+
*/
|
|
14
|
+
static podJoinRequestList(podId, statusFilter, limit = 100, pageToken) {
|
|
15
|
+
return __request(OpenAPI, {
|
|
16
|
+
method: 'GET',
|
|
17
|
+
url: '/pods/{pod_id}/join-requests',
|
|
18
|
+
path: {
|
|
19
|
+
'pod_id': podId,
|
|
20
|
+
},
|
|
21
|
+
query: {
|
|
22
|
+
'status_filter': statusFilter,
|
|
23
|
+
'limit': limit,
|
|
24
|
+
'page_token': pageToken,
|
|
25
|
+
},
|
|
26
|
+
errors: {
|
|
27
|
+
422: `Validation Error`,
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Create Pod Join Request
|
|
33
|
+
* Create a join request for the current user to access this pod
|
|
34
|
+
* @param podId
|
|
35
|
+
* @returns PodJoinRequestCreateResponse Successful Response
|
|
36
|
+
* @throws ApiError
|
|
37
|
+
*/
|
|
38
|
+
static podJoinRequestCreate(podId) {
|
|
39
|
+
return __request(OpenAPI, {
|
|
40
|
+
method: 'POST',
|
|
41
|
+
url: '/pods/{pod_id}/join-requests',
|
|
42
|
+
path: {
|
|
43
|
+
'pod_id': podId,
|
|
44
|
+
},
|
|
45
|
+
errors: {
|
|
46
|
+
422: `Validation Error`,
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Get My Pod Join Request
|
|
52
|
+
* Get the current user's pending join request for this pod
|
|
53
|
+
* @param podId
|
|
54
|
+
* @returns any Successful Response
|
|
55
|
+
* @throws ApiError
|
|
56
|
+
*/
|
|
57
|
+
static podJoinRequestMe(podId) {
|
|
58
|
+
return __request(OpenAPI, {
|
|
59
|
+
method: 'GET',
|
|
60
|
+
url: '/pods/{pod_id}/join-requests/me',
|
|
61
|
+
path: {
|
|
62
|
+
'pod_id': podId,
|
|
63
|
+
},
|
|
64
|
+
errors: {
|
|
65
|
+
422: `Validation Error`,
|
|
66
|
+
},
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Approve Pod Join Request
|
|
71
|
+
* Approve a pending pod join request and add user to org/pod
|
|
72
|
+
* @param podId
|
|
73
|
+
* @param joinRequestId
|
|
74
|
+
* @param requestBody
|
|
75
|
+
* @returns PodJoinRequestCreateResponse Successful Response
|
|
76
|
+
* @throws ApiError
|
|
77
|
+
*/
|
|
78
|
+
static podJoinRequestApprove(podId, joinRequestId, requestBody) {
|
|
79
|
+
return __request(OpenAPI, {
|
|
80
|
+
method: 'POST',
|
|
81
|
+
url: '/pods/{pod_id}/join-requests/{join_request_id}/approve',
|
|
82
|
+
path: {
|
|
83
|
+
'pod_id': podId,
|
|
84
|
+
'join_request_id': joinRequestId,
|
|
85
|
+
},
|
|
86
|
+
body: requestBody,
|
|
87
|
+
mediaType: 'application/json',
|
|
88
|
+
errors: {
|
|
89
|
+
422: `Validation Error`,
|
|
90
|
+
},
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { PodMemberAddRequest } from '../models/PodMemberAddRequest.js';
|
|
2
|
+
import type { PodMemberDetailResponse } from '../models/PodMemberDetailResponse.js';
|
|
2
3
|
import type { PodMemberListResponse } from '../models/PodMemberListResponse.js';
|
|
3
4
|
import type { PodMemberResponse } from '../models/PodMemberResponse.js';
|
|
4
5
|
import type { PodMemberUpdateRoleRequest } from '../models/PodMemberUpdateRoleRequest.js';
|
|
@@ -27,19 +28,28 @@ export declare class PodMembersService {
|
|
|
27
28
|
* Remove Pod Member
|
|
28
29
|
* Remove a member from a pod
|
|
29
30
|
* @param podId
|
|
30
|
-
* @param
|
|
31
|
+
* @param userId
|
|
31
32
|
* @returns void
|
|
32
33
|
* @throws ApiError
|
|
33
34
|
*/
|
|
34
|
-
static podMemberRemove(podId: string,
|
|
35
|
+
static podMemberRemove(podId: string, userId: string): CancelablePromise<void>;
|
|
36
|
+
/**
|
|
37
|
+
* Get Pod Member
|
|
38
|
+
* Get a pod member by user id
|
|
39
|
+
* @param podId
|
|
40
|
+
* @param userId
|
|
41
|
+
* @returns PodMemberDetailResponse Successful Response
|
|
42
|
+
* @throws ApiError
|
|
43
|
+
*/
|
|
44
|
+
static podMemberGet(podId: string, userId: string): CancelablePromise<PodMemberDetailResponse>;
|
|
35
45
|
/**
|
|
36
46
|
* Update Member Role
|
|
37
47
|
* Update a pod member's role
|
|
38
48
|
* @param podId
|
|
39
|
-
* @param
|
|
49
|
+
* @param userId
|
|
40
50
|
* @param requestBody
|
|
41
51
|
* @returns PodMemberResponse Successful Response
|
|
42
52
|
* @throws ApiError
|
|
43
53
|
*/
|
|
44
|
-
static podMemberUpdateRole(podId: string,
|
|
54
|
+
static podMemberUpdateRole(podId: string, userId: string, requestBody: PodMemberUpdateRoleRequest): CancelablePromise<PodMemberResponse>;
|
|
45
55
|
}
|
|
@@ -52,17 +52,38 @@ export class PodMembersService {
|
|
|
52
52
|
* Remove Pod Member
|
|
53
53
|
* Remove a member from a pod
|
|
54
54
|
* @param podId
|
|
55
|
-
* @param
|
|
55
|
+
* @param userId
|
|
56
56
|
* @returns void
|
|
57
57
|
* @throws ApiError
|
|
58
58
|
*/
|
|
59
|
-
static podMemberRemove(podId,
|
|
59
|
+
static podMemberRemove(podId, userId) {
|
|
60
60
|
return __request(OpenAPI, {
|
|
61
61
|
method: 'DELETE',
|
|
62
|
-
url: '/pods/{pod_id}/members/{
|
|
62
|
+
url: '/pods/{pod_id}/members/{user_id}',
|
|
63
63
|
path: {
|
|
64
64
|
'pod_id': podId,
|
|
65
|
-
'
|
|
65
|
+
'user_id': userId,
|
|
66
|
+
},
|
|
67
|
+
errors: {
|
|
68
|
+
422: `Validation Error`,
|
|
69
|
+
},
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Get Pod Member
|
|
74
|
+
* Get a pod member by user id
|
|
75
|
+
* @param podId
|
|
76
|
+
* @param userId
|
|
77
|
+
* @returns PodMemberDetailResponse Successful Response
|
|
78
|
+
* @throws ApiError
|
|
79
|
+
*/
|
|
80
|
+
static podMemberGet(podId, userId) {
|
|
81
|
+
return __request(OpenAPI, {
|
|
82
|
+
method: 'GET',
|
|
83
|
+
url: '/pods/{pod_id}/members/{user_id}',
|
|
84
|
+
path: {
|
|
85
|
+
'pod_id': podId,
|
|
86
|
+
'user_id': userId,
|
|
66
87
|
},
|
|
67
88
|
errors: {
|
|
68
89
|
422: `Validation Error`,
|
|
@@ -73,18 +94,18 @@ export class PodMembersService {
|
|
|
73
94
|
* Update Member Role
|
|
74
95
|
* Update a pod member's role
|
|
75
96
|
* @param podId
|
|
76
|
-
* @param
|
|
97
|
+
* @param userId
|
|
77
98
|
* @param requestBody
|
|
78
99
|
* @returns PodMemberResponse Successful Response
|
|
79
100
|
* @throws ApiError
|
|
80
101
|
*/
|
|
81
|
-
static podMemberUpdateRole(podId,
|
|
102
|
+
static podMemberUpdateRole(podId, userId, requestBody) {
|
|
82
103
|
return __request(OpenAPI, {
|
|
83
104
|
method: 'PATCH',
|
|
84
|
-
url: '/pods/{pod_id}/members/{
|
|
105
|
+
url: '/pods/{pod_id}/members/{user_id}/role',
|
|
85
106
|
path: {
|
|
86
107
|
'pod_id': podId,
|
|
87
|
-
'
|
|
108
|
+
'user_id': userId,
|
|
88
109
|
},
|
|
89
110
|
body: requestBody,
|
|
90
111
|
mediaType: 'application/json',
|
|
@@ -17,8 +17,8 @@ export declare class RecordsService {
|
|
|
17
17
|
* @param offset Row offset for direct pagination.
|
|
18
18
|
* @param sortBy Optional column name to sort by.
|
|
19
19
|
* @param order Sort direction for `sort_by`: `asc` or `desc`.
|
|
20
|
-
* @param filter Optional repeated JSON filters for advanced comparisons.
|
|
21
|
-
* @param sort Optional repeated JSON sort clauses. Example: `sort={"field":"created_at","direction":"desc"}
|
|
20
|
+
* @param filter Optional repeated JSON filters for advanced comparisons. Each `filter` value must be a JSON object with shape `{"field":"<column_name>","op":"<operator>","value":<comparison_value>}`. Allowed operators are: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`, `like`, `ilike`. Repeat the query parameter to combine multiple filters with AND semantics. Examples: `filter={"field":"amount","op":"gt","value":100}` and `filter={"field":"status","op":"eq","value":"OPEN"}`.
|
|
21
|
+
* @param sort Optional repeated JSON sort clauses. Each `sort` value must be a JSON object with shape `{"field":"<column_name>","direction":"<direction>"}`. Allowed directions are: `asc`, `desc`. Repeat the query parameter to provide multi-column sorting in priority order. Example: `sort={"field":"created_at","direction":"desc"}`.
|
|
22
22
|
* @param pageToken Opaque token from a previous response page.
|
|
23
23
|
* @returns RecordListResponse Successful Response
|
|
24
24
|
* @throws ApiError
|
|
@@ -10,8 +10,8 @@ export class RecordsService {
|
|
|
10
10
|
* @param offset Row offset for direct pagination.
|
|
11
11
|
* @param sortBy Optional column name to sort by.
|
|
12
12
|
* @param order Sort direction for `sort_by`: `asc` or `desc`.
|
|
13
|
-
* @param filter Optional repeated JSON filters for advanced comparisons.
|
|
14
|
-
* @param sort Optional repeated JSON sort clauses. Example: `sort={"field":"created_at","direction":"desc"}
|
|
13
|
+
* @param filter Optional repeated JSON filters for advanced comparisons. Each `filter` value must be a JSON object with shape `{"field":"<column_name>","op":"<operator>","value":<comparison_value>}`. Allowed operators are: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`, `like`, `ilike`. Repeat the query parameter to combine multiple filters with AND semantics. Examples: `filter={"field":"amount","op":"gt","value":100}` and `filter={"field":"status","op":"eq","value":"OPEN"}`.
|
|
14
|
+
* @param sort Optional repeated JSON sort clauses. Each `sort` value must be a JSON object with shape `{"field":"<column_name>","direction":"<direction>"}`. Allowed directions are: `asc`, `desc`. Repeat the query parameter to provide multi-column sorting in priority order. Example: `sort={"field":"created_at","direction":"desc"}`.
|
|
15
15
|
* @param pageToken Opaque token from a previous response page.
|
|
16
16
|
* @returns RecordListResponse Successful Response
|
|
17
17
|
* @throws ApiError
|
|
@@ -87,7 +87,7 @@ export declare class WorkflowsService {
|
|
|
87
87
|
static workflowGet(podId: string, workflowName: string): CancelablePromise<FlowResponse>;
|
|
88
88
|
/**
|
|
89
89
|
* Update Workflow Metadata
|
|
90
|
-
* Update workflow-level metadata such as description/install
|
|
90
|
+
* Update workflow-level metadata such as description/install mode. Workflow names are immutable after creation. Use `workflow.graph.update` for nodes and edges.
|
|
91
91
|
* @param podId
|
|
92
92
|
* @param workflowName
|
|
93
93
|
* @param requestBody
|
|
@@ -185,7 +185,7 @@ export class WorkflowsService {
|
|
|
185
185
|
}
|
|
186
186
|
/**
|
|
187
187
|
* Update Workflow Metadata
|
|
188
|
-
* Update workflow-level metadata such as description/install
|
|
188
|
+
* Update workflow-level metadata such as description/install mode. Workflow names are immutable after creation. Use `workflow.graph.update` for nodes and edges.
|
|
189
189
|
* @param podId
|
|
190
190
|
* @param workflowName
|
|
191
191
|
* @param requestBody
|
|
@@ -7,16 +7,19 @@ export interface AuthGuardProps {
|
|
|
7
7
|
loadingFallback?: ReactNode;
|
|
8
8
|
/** Optional custom unauthenticated element. Defaults to a centered sign-in page. */
|
|
9
9
|
unauthenticatedFallback?: ReactNode;
|
|
10
|
+
/** Optional custom element shown when user is authenticated but lacks pod membership. */
|
|
11
|
+
accessRequestFallback?: ReactNode;
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
12
14
|
* AuthGuard wraps your application and handles auth state:
|
|
13
15
|
* - Loading: shows loadingFallback (blank by default)
|
|
14
16
|
* - Unauthenticated: shows sign-in page (or custom unauthenticatedFallback)
|
|
15
|
-
* - Authenticated: renders children
|
|
17
|
+
* - Authenticated and member: renders children
|
|
18
|
+
* - Authenticated but not pod member: shows request-access page
|
|
16
19
|
*
|
|
17
20
|
* Usage:
|
|
18
21
|
* <AuthGuard client={getClient()}>
|
|
19
22
|
* <App />
|
|
20
23
|
* </AuthGuard>
|
|
21
24
|
*/
|
|
22
|
-
export declare function AuthGuard({ client, children, loadingFallback, unauthenticatedFallback, }: AuthGuardProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare function AuthGuard({ client, children, loadingFallback, unauthenticatedFallback, accessRequestFallback, }: AuthGuardProps): import("react/jsx-runtime").JSX.Element;
|