lemma-sdk 0.2.25 → 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 +25 -1
- package/dist/browser/lemma-client.js +176 -2
- 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 +9 -1
- package/dist/openapi_client/index.js +4 -0
- 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/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/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/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/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/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/types.d.ts +2 -1
- package/package.json +1 -1
- /package/dist/openapi_client/models/{FlowStart.js → FlowStart_Input.js} +0 -0
package/README.md
CHANGED
|
@@ -85,6 +85,7 @@ Org/user-level namespaces:
|
|
|
85
85
|
- `client.icons`
|
|
86
86
|
- `client.pods`
|
|
87
87
|
- `client.podMembers`
|
|
88
|
+
- `client.podJoinRequests`
|
|
88
89
|
- `client.organizations`
|
|
89
90
|
- `client.podSurfaces`
|
|
90
91
|
|
|
@@ -139,6 +140,28 @@ await client.conversations.messages.send(conversation.id, {
|
|
|
139
140
|
});
|
|
140
141
|
```
|
|
141
142
|
|
|
143
|
+
### Pod Join Requests
|
|
144
|
+
|
|
145
|
+
```ts
|
|
146
|
+
// Current user requests access to a pod
|
|
147
|
+
await client.podJoinRequests.create("pod_123");
|
|
148
|
+
|
|
149
|
+
// Current user's pending request (or null)
|
|
150
|
+
const mine = await client.podJoinRequests.me("pod_123");
|
|
151
|
+
|
|
152
|
+
// Admin view of requests for a pod
|
|
153
|
+
const requests = await client.podJoinRequests.list("pod_123", {
|
|
154
|
+
status: "PENDING",
|
|
155
|
+
limit: 50,
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
// Admin approval (defaults: ORG_MEMBER + POD_USER)
|
|
159
|
+
await client.podJoinRequests.approve("pod_123", "join_req_abc", {
|
|
160
|
+
org_role: "ORG_MEMBER",
|
|
161
|
+
pod_role: "POD_USER",
|
|
162
|
+
});
|
|
163
|
+
```
|
|
164
|
+
|
|
142
165
|
## Streaming (SSE)
|
|
143
166
|
|
|
144
167
|
Use `readSSE` + `parseSSEJson` for incremental events.
|
|
@@ -247,6 +270,8 @@ import { AuthGuard } from "lemma-sdk/react";
|
|
|
247
270
|
</AuthGuard>;
|
|
248
271
|
```
|
|
249
272
|
|
|
273
|
+
When `client.podId` is set and the signed-in user is not a pod member, `AuthGuard` automatically renders a request-access state and can create/view pod join requests.
|
|
274
|
+
|
|
250
275
|
## Browser Bundle
|
|
251
276
|
|
|
252
277
|
The package also ships a standalone browser bundle:
|
|
@@ -267,4 +292,3 @@ Example:
|
|
|
267
292
|
});
|
|
268
293
|
</script>
|
|
269
294
|
```
|
|
270
|
-
|
|
@@ -46,6 +46,7 @@ const icons_js_1 = require("./namespaces/icons.js");
|
|
|
46
46
|
const integrations_js_1 = require("./namespaces/integrations.js");
|
|
47
47
|
const organizations_js_1 = require("./namespaces/organizations.js");
|
|
48
48
|
const pod_members_js_1 = require("./namespaces/pod-members.js");
|
|
49
|
+
const pod_join_requests_js_1 = require("./namespaces/pod-join-requests.js");
|
|
49
50
|
const pods_js_1 = require("./namespaces/pods.js");
|
|
50
51
|
const pod_surfaces_js_1 = require("./namespaces/pod-surfaces.js");
|
|
51
52
|
const records_js_1 = require("./namespaces/records.js");
|
|
@@ -84,6 +85,7 @@ class LemmaClient {
|
|
|
84
85
|
this.icons = new icons_js_1.IconsNamespace(this._generated);
|
|
85
86
|
this.pods = new pods_js_1.PodsNamespace(this._generated, this._http);
|
|
86
87
|
this.podMembers = new pod_members_js_1.PodMembersNamespace(this._generated);
|
|
88
|
+
this.podJoinRequests = new pod_join_requests_js_1.PodJoinRequestsNamespace(this._generated);
|
|
87
89
|
this.organizations = new organizations_js_1.OrganizationsNamespace(this._generated, this._http);
|
|
88
90
|
this.podSurfaces = new pod_surfaces_js_1.PodSurfacesNamespace(this._generated);
|
|
89
91
|
}
|
|
@@ -2123,7 +2125,7 @@ class FilesService {
|
|
|
2123
2125
|
});
|
|
2124
2126
|
}
|
|
2125
2127
|
/**
|
|
2126
|
-
* Delete File
|
|
2128
|
+
* Delete File Or Folder. Deleting a folder will cleanup whole subtreee
|
|
2127
2129
|
* @param podId
|
|
2128
2130
|
* @param path
|
|
2129
2131
|
* @returns DatastoreMessageResponse Successful Response
|
|
@@ -3297,6 +3299,9 @@ class PodMembersNamespace {
|
|
|
3297
3299
|
add(podId, payload) {
|
|
3298
3300
|
return this.client.request(() => PodMembersService_js_1.PodMembersService.podMemberAdd(podId, payload));
|
|
3299
3301
|
}
|
|
3302
|
+
get(podId, userId) {
|
|
3303
|
+
return this.client.request(() => PodMembersService_js_1.PodMembersService.podMemberGet(podId, userId));
|
|
3304
|
+
}
|
|
3300
3305
|
updateRole(podId, memberId, role) {
|
|
3301
3306
|
return this.client.request(() => PodMembersService_js_1.PodMembersService.podMemberUpdateRole(podId, memberId, { role }));
|
|
3302
3307
|
}
|
|
@@ -3430,6 +3435,175 @@ class PodMembersService {
|
|
|
3430
3435
|
}
|
|
3431
3436
|
exports.PodMembersService = PodMembersService;
|
|
3432
3437
|
|
|
3438
|
+
},
|
|
3439
|
+
"./namespaces/pod-join-requests.js": function (module, exports, require) {
|
|
3440
|
+
"use strict";
|
|
3441
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3442
|
+
exports.PodJoinRequestsNamespace = void 0;
|
|
3443
|
+
const OrganizationRole_js_1 = require("./openapi_client/models/OrganizationRole.js");
|
|
3444
|
+
const PodRole_js_1 = require("./openapi_client/models/PodRole.js");
|
|
3445
|
+
const PodJoinRequestsService_js_1 = require("./openapi_client/services/PodJoinRequestsService.js");
|
|
3446
|
+
class PodJoinRequestsNamespace {
|
|
3447
|
+
constructor(client) {
|
|
3448
|
+
this.client = client;
|
|
3449
|
+
}
|
|
3450
|
+
create(podId) {
|
|
3451
|
+
return this.client.request(() => PodJoinRequestsService_js_1.PodJoinRequestsService.podJoinRequestCreate(podId));
|
|
3452
|
+
}
|
|
3453
|
+
me(podId) {
|
|
3454
|
+
return this.client.request(() => PodJoinRequestsService_js_1.PodJoinRequestsService.podJoinRequestMe(podId));
|
|
3455
|
+
}
|
|
3456
|
+
list(podId, options = {}) {
|
|
3457
|
+
return this.client.request(() => PodJoinRequestsService_js_1.PodJoinRequestsService.podJoinRequestList(podId, options.status, options.limit ?? 100, options.pageToken ?? options.cursor));
|
|
3458
|
+
}
|
|
3459
|
+
approve(podId, joinRequestId, payload = {}) {
|
|
3460
|
+
return this.client.request(() => PodJoinRequestsService_js_1.PodJoinRequestsService.podJoinRequestApprove(podId, joinRequestId, {
|
|
3461
|
+
org_role: payload.org_role ?? OrganizationRole_js_1.OrganizationRole.ORG_MEMBER,
|
|
3462
|
+
pod_role: payload.pod_role ?? PodRole_js_1.PodRole.POD_USER,
|
|
3463
|
+
}));
|
|
3464
|
+
}
|
|
3465
|
+
}
|
|
3466
|
+
exports.PodJoinRequestsNamespace = PodJoinRequestsNamespace;
|
|
3467
|
+
|
|
3468
|
+
},
|
|
3469
|
+
"./openapi_client/models/OrganizationRole.js": function (module, exports, require) {
|
|
3470
|
+
"use strict";
|
|
3471
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3472
|
+
exports.OrganizationRole = void 0;
|
|
3473
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
3474
|
+
/* istanbul ignore file */
|
|
3475
|
+
/* tslint:disable */
|
|
3476
|
+
/* eslint-disable */
|
|
3477
|
+
/**
|
|
3478
|
+
* Roles for organization membership.
|
|
3479
|
+
*/
|
|
3480
|
+
var OrganizationRole;
|
|
3481
|
+
(function (OrganizationRole) {
|
|
3482
|
+
OrganizationRole["ORG_OWNER"] = "ORG_OWNER";
|
|
3483
|
+
OrganizationRole["ORG_EDITOR"] = "ORG_EDITOR";
|
|
3484
|
+
OrganizationRole["ORG_MEMBER"] = "ORG_MEMBER";
|
|
3485
|
+
})(OrganizationRole || (exports.OrganizationRole = OrganizationRole = {}));
|
|
3486
|
+
|
|
3487
|
+
},
|
|
3488
|
+
"./openapi_client/models/PodRole.js": function (module, exports, require) {
|
|
3489
|
+
"use strict";
|
|
3490
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3491
|
+
exports.PodRole = void 0;
|
|
3492
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
3493
|
+
/* istanbul ignore file */
|
|
3494
|
+
/* tslint:disable */
|
|
3495
|
+
/* eslint-disable */
|
|
3496
|
+
/**
|
|
3497
|
+
* Explicit pod role names used across authorization and pod APIs.
|
|
3498
|
+
*/
|
|
3499
|
+
var PodRole;
|
|
3500
|
+
(function (PodRole) {
|
|
3501
|
+
PodRole["POD_ADMIN"] = "POD_ADMIN";
|
|
3502
|
+
PodRole["POD_EDITOR"] = "POD_EDITOR";
|
|
3503
|
+
PodRole["POD_USER"] = "POD_USER";
|
|
3504
|
+
PodRole["POD_VIEWER"] = "POD_VIEWER";
|
|
3505
|
+
})(PodRole || (exports.PodRole = PodRole = {}));
|
|
3506
|
+
|
|
3507
|
+
},
|
|
3508
|
+
"./openapi_client/services/PodJoinRequestsService.js": function (module, exports, require) {
|
|
3509
|
+
"use strict";
|
|
3510
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3511
|
+
exports.PodJoinRequestsService = void 0;
|
|
3512
|
+
const OpenAPI_js_1 = require("./openapi_client/core/OpenAPI.js");
|
|
3513
|
+
const request_js_1 = require("./openapi_client/core/request.js");
|
|
3514
|
+
class PodJoinRequestsService {
|
|
3515
|
+
/**
|
|
3516
|
+
* List Pod Join Requests
|
|
3517
|
+
* List join requests for a pod
|
|
3518
|
+
* @param podId
|
|
3519
|
+
* @param statusFilter
|
|
3520
|
+
* @param limit
|
|
3521
|
+
* @param pageToken
|
|
3522
|
+
* @returns PodJoinRequestListResponse Successful Response
|
|
3523
|
+
* @throws ApiError
|
|
3524
|
+
*/
|
|
3525
|
+
static podJoinRequestList(podId, statusFilter, limit = 100, pageToken) {
|
|
3526
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3527
|
+
method: 'GET',
|
|
3528
|
+
url: '/pods/{pod_id}/join-requests',
|
|
3529
|
+
path: {
|
|
3530
|
+
'pod_id': podId,
|
|
3531
|
+
},
|
|
3532
|
+
query: {
|
|
3533
|
+
'status_filter': statusFilter,
|
|
3534
|
+
'limit': limit,
|
|
3535
|
+
'page_token': pageToken,
|
|
3536
|
+
},
|
|
3537
|
+
errors: {
|
|
3538
|
+
422: `Validation Error`,
|
|
3539
|
+
},
|
|
3540
|
+
});
|
|
3541
|
+
}
|
|
3542
|
+
/**
|
|
3543
|
+
* Create Pod Join Request
|
|
3544
|
+
* Create a join request for the current user to access this pod
|
|
3545
|
+
* @param podId
|
|
3546
|
+
* @returns PodJoinRequestCreateResponse Successful Response
|
|
3547
|
+
* @throws ApiError
|
|
3548
|
+
*/
|
|
3549
|
+
static podJoinRequestCreate(podId) {
|
|
3550
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3551
|
+
method: 'POST',
|
|
3552
|
+
url: '/pods/{pod_id}/join-requests',
|
|
3553
|
+
path: {
|
|
3554
|
+
'pod_id': podId,
|
|
3555
|
+
},
|
|
3556
|
+
errors: {
|
|
3557
|
+
422: `Validation Error`,
|
|
3558
|
+
},
|
|
3559
|
+
});
|
|
3560
|
+
}
|
|
3561
|
+
/**
|
|
3562
|
+
* Get My Pod Join Request
|
|
3563
|
+
* Get the current user's pending join request for this pod
|
|
3564
|
+
* @param podId
|
|
3565
|
+
* @returns any Successful Response
|
|
3566
|
+
* @throws ApiError
|
|
3567
|
+
*/
|
|
3568
|
+
static podJoinRequestMe(podId) {
|
|
3569
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3570
|
+
method: 'GET',
|
|
3571
|
+
url: '/pods/{pod_id}/join-requests/me',
|
|
3572
|
+
path: {
|
|
3573
|
+
'pod_id': podId,
|
|
3574
|
+
},
|
|
3575
|
+
errors: {
|
|
3576
|
+
422: `Validation Error`,
|
|
3577
|
+
},
|
|
3578
|
+
});
|
|
3579
|
+
}
|
|
3580
|
+
/**
|
|
3581
|
+
* Approve Pod Join Request
|
|
3582
|
+
* Approve a pending pod join request and add user to org/pod
|
|
3583
|
+
* @param podId
|
|
3584
|
+
* @param joinRequestId
|
|
3585
|
+
* @param requestBody
|
|
3586
|
+
* @returns PodJoinRequestCreateResponse Successful Response
|
|
3587
|
+
* @throws ApiError
|
|
3588
|
+
*/
|
|
3589
|
+
static podJoinRequestApprove(podId, joinRequestId, requestBody) {
|
|
3590
|
+
return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
|
|
3591
|
+
method: 'POST',
|
|
3592
|
+
url: '/pods/{pod_id}/join-requests/{join_request_id}/approve',
|
|
3593
|
+
path: {
|
|
3594
|
+
'pod_id': podId,
|
|
3595
|
+
'join_request_id': joinRequestId,
|
|
3596
|
+
},
|
|
3597
|
+
body: requestBody,
|
|
3598
|
+
mediaType: 'application/json',
|
|
3599
|
+
errors: {
|
|
3600
|
+
422: `Validation Error`,
|
|
3601
|
+
},
|
|
3602
|
+
});
|
|
3603
|
+
}
|
|
3604
|
+
}
|
|
3605
|
+
exports.PodJoinRequestsService = PodJoinRequestsService;
|
|
3606
|
+
|
|
3433
3607
|
},
|
|
3434
3608
|
"./namespaces/pods.js": function (module, exports, require) {
|
|
3435
3609
|
"use strict";
|
|
@@ -4707,7 +4881,7 @@ class WorkflowsService {
|
|
|
4707
4881
|
}
|
|
4708
4882
|
/**
|
|
4709
4883
|
* Update Workflow Metadata
|
|
4710
|
-
* Update workflow-level metadata such as description/install
|
|
4884
|
+
* Update workflow-level metadata such as description/install mode. Workflow names are immutable after creation. Use `workflow.graph.update` for nodes and edges.
|
|
4711
4885
|
* @param podId
|
|
4712
4886
|
* @param workflowName
|
|
4713
4887
|
* @param requestBody
|
package/dist/client.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { IconsNamespace } from "./namespaces/icons.js";
|
|
|
9
9
|
import { IntegrationsNamespace } from "./namespaces/integrations.js";
|
|
10
10
|
import { OrganizationsNamespace } from "./namespaces/organizations.js";
|
|
11
11
|
import { PodMembersNamespace } from "./namespaces/pod-members.js";
|
|
12
|
+
import { PodJoinRequestsNamespace } from "./namespaces/pod-join-requests.js";
|
|
12
13
|
import { PodsNamespace } from "./namespaces/pods.js";
|
|
13
14
|
import { PodSurfacesNamespace } from "./namespaces/pod-surfaces.js";
|
|
14
15
|
import { RecordsNamespace } from "./namespaces/records.js";
|
|
@@ -47,6 +48,7 @@ export declare class LemmaClient {
|
|
|
47
48
|
readonly icons: IconsNamespace;
|
|
48
49
|
readonly pods: PodsNamespace;
|
|
49
50
|
readonly podMembers: PodMembersNamespace;
|
|
51
|
+
readonly podJoinRequests: PodJoinRequestsNamespace;
|
|
50
52
|
readonly organizations: OrganizationsNamespace;
|
|
51
53
|
readonly podSurfaces: PodSurfacesNamespace;
|
|
52
54
|
constructor(overrides?: Partial<LemmaConfig>, internalOptions?: LemmaClientInternalOptions);
|
package/dist/client.js
CHANGED
|
@@ -11,6 +11,7 @@ import { IconsNamespace } from "./namespaces/icons.js";
|
|
|
11
11
|
import { IntegrationsNamespace } from "./namespaces/integrations.js";
|
|
12
12
|
import { OrganizationsNamespace } from "./namespaces/organizations.js";
|
|
13
13
|
import { PodMembersNamespace } from "./namespaces/pod-members.js";
|
|
14
|
+
import { PodJoinRequestsNamespace } from "./namespaces/pod-join-requests.js";
|
|
14
15
|
import { PodsNamespace } from "./namespaces/pods.js";
|
|
15
16
|
import { PodSurfacesNamespace } from "./namespaces/pod-surfaces.js";
|
|
16
17
|
import { RecordsNamespace } from "./namespaces/records.js";
|
|
@@ -45,6 +46,7 @@ export class LemmaClient {
|
|
|
45
46
|
icons;
|
|
46
47
|
pods;
|
|
47
48
|
podMembers;
|
|
49
|
+
podJoinRequests;
|
|
48
50
|
organizations;
|
|
49
51
|
podSurfaces;
|
|
50
52
|
constructor(overrides = {}, internalOptions = {}) {
|
|
@@ -76,6 +78,7 @@ export class LemmaClient {
|
|
|
76
78
|
this.icons = new IconsNamespace(this._generated);
|
|
77
79
|
this.pods = new PodsNamespace(this._generated, this._http);
|
|
78
80
|
this.podMembers = new PodMembersNamespace(this._generated);
|
|
81
|
+
this.podJoinRequests = new PodJoinRequestsNamespace(this._generated);
|
|
79
82
|
this.organizations = new OrganizationsNamespace(this._generated, this._http);
|
|
80
83
|
this.podSurfaces = new PodSurfacesNamespace(this._generated);
|
|
81
84
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export type { FunctionsNamespace } from "./namespaces/functions.js";
|
|
|
20
20
|
export type { IconsNamespace } from "./namespaces/icons.js";
|
|
21
21
|
export type { IntegrationsNamespace } from "./namespaces/integrations.js";
|
|
22
22
|
export type { OrganizationsNamespace } from "./namespaces/organizations.js";
|
|
23
|
+
export type { PodJoinRequestsNamespace } from "./namespaces/pod-join-requests.js";
|
|
23
24
|
export type { PodMembersNamespace } from "./namespaces/pod-members.js";
|
|
24
25
|
export type { PodsNamespace } from "./namespaces/pods.js";
|
|
25
26
|
export type { PodSurfacesNamespace } from "./namespaces/pod-surfaces.js";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { GeneratedClientAdapter } from "../generated.js";
|
|
2
|
+
import type { PodJoinRequestApproveRequest } from "../openapi_client/models/PodJoinRequestApproveRequest.js";
|
|
3
|
+
import type { PodJoinRequestStatus } from "../openapi_client/models/PodJoinRequestStatus.js";
|
|
4
|
+
export declare class PodJoinRequestsNamespace {
|
|
5
|
+
private readonly client;
|
|
6
|
+
constructor(client: GeneratedClientAdapter);
|
|
7
|
+
create(podId: string): Promise<import("../types.js").PodJoinRequestCreateResponse>;
|
|
8
|
+
me(podId: string): Promise<import("../types.js").PodJoinRequestCreateResponse | null>;
|
|
9
|
+
list(podId: string, options?: {
|
|
10
|
+
status?: PodJoinRequestStatus;
|
|
11
|
+
limit?: number;
|
|
12
|
+
pageToken?: string;
|
|
13
|
+
cursor?: string;
|
|
14
|
+
}): Promise<import("../types.js").PodJoinRequestListResponse>;
|
|
15
|
+
approve(podId: string, joinRequestId: string, payload?: PodJoinRequestApproveRequest): Promise<import("../types.js").PodJoinRequestCreateResponse>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { OrganizationRole } from "../openapi_client/models/OrganizationRole.js";
|
|
2
|
+
import { PodRole } from "../openapi_client/models/PodRole.js";
|
|
3
|
+
import { PodJoinRequestsService } from "../openapi_client/services/PodJoinRequestsService.js";
|
|
4
|
+
export class PodJoinRequestsNamespace {
|
|
5
|
+
client;
|
|
6
|
+
constructor(client) {
|
|
7
|
+
this.client = client;
|
|
8
|
+
}
|
|
9
|
+
create(podId) {
|
|
10
|
+
return this.client.request(() => PodJoinRequestsService.podJoinRequestCreate(podId));
|
|
11
|
+
}
|
|
12
|
+
me(podId) {
|
|
13
|
+
return this.client.request(() => PodJoinRequestsService.podJoinRequestMe(podId));
|
|
14
|
+
}
|
|
15
|
+
list(podId, options = {}) {
|
|
16
|
+
return this.client.request(() => PodJoinRequestsService.podJoinRequestList(podId, options.status, options.limit ?? 100, options.pageToken ?? options.cursor));
|
|
17
|
+
}
|
|
18
|
+
approve(podId, joinRequestId, payload = {}) {
|
|
19
|
+
return this.client.request(() => PodJoinRequestsService.podJoinRequestApprove(podId, joinRequestId, {
|
|
20
|
+
org_role: payload.org_role ?? OrganizationRole.ORG_MEMBER,
|
|
21
|
+
pod_role: payload.pod_role ?? PodRole.POD_USER,
|
|
22
|
+
}));
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -10,6 +10,7 @@ export declare class PodMembersNamespace {
|
|
|
10
10
|
cursor?: string;
|
|
11
11
|
}): Promise<import("../types.js").PodMemberListResponse>;
|
|
12
12
|
add(podId: string, payload: PodMemberAddRequest): Promise<import("../types.js").PodMemberResponse>;
|
|
13
|
+
get(podId: string, userId: string): Promise<import("../types.js").PodMemberDetailResponse>;
|
|
13
14
|
updateRole(podId: string, memberId: string, role: PodRole): Promise<import("../types.js").PodMemberResponse>;
|
|
14
15
|
remove(podId: string, memberId: string): Promise<void>;
|
|
15
16
|
}
|
|
@@ -10,6 +10,9 @@ export class PodMembersNamespace {
|
|
|
10
10
|
add(podId, payload) {
|
|
11
11
|
return this.client.request(() => PodMembersService.podMemberAdd(podId, payload));
|
|
12
12
|
}
|
|
13
|
+
get(podId, userId) {
|
|
14
|
+
return this.client.request(() => PodMembersService.podMemberGet(podId, userId));
|
|
15
|
+
}
|
|
13
16
|
updateRole(podId, memberId, role) {
|
|
14
17
|
return this.client.request(() => PodMembersService.podMemberUpdateRole(podId, memberId, { role }));
|
|
15
18
|
}
|
|
@@ -60,6 +60,7 @@ export { DatastoreDataType } from './models/DatastoreDataType.js';
|
|
|
60
60
|
export type { DatastoreFileUploadRequest } from './models/DatastoreFileUploadRequest.js';
|
|
61
61
|
export type { DataStoreFlowStart } from './models/DataStoreFlowStart.js';
|
|
62
62
|
export type { DatastoreMessageResponse } from './models/DatastoreMessageResponse.js';
|
|
63
|
+
export { DatastoreOperation } from './models/DatastoreOperation.js';
|
|
63
64
|
export type { DatastoreQueryRequest } from './models/DatastoreQueryRequest.js';
|
|
64
65
|
export type { DatastoreQueryResponse } from './models/DatastoreQueryResponse.js';
|
|
65
66
|
export type { DecisionNode } from './models/DecisionNode.js';
|
|
@@ -94,7 +95,8 @@ export type { FlowInstallEntity } from './models/FlowInstallEntity.js';
|
|
|
94
95
|
export type { FlowResponse } from './models/FlowResponse.js';
|
|
95
96
|
export type { FlowRunEntity } from './models/FlowRunEntity.js';
|
|
96
97
|
export { FlowRunStatus } from './models/FlowRunStatus.js';
|
|
97
|
-
export type {
|
|
98
|
+
export type { FlowStart_Input } from './models/FlowStart_Input.js';
|
|
99
|
+
export type { FlowStart_Output } from './models/FlowStart_Output.js';
|
|
98
100
|
export { FlowStartType } from './models/FlowStartType.js';
|
|
99
101
|
export type { ForeignKeySpec } from './models/ForeignKeySpec.js';
|
|
100
102
|
export type { FormNode } from './models/FormNode.js';
|
|
@@ -144,6 +146,10 @@ export { PodAppMode } from './models/PodAppMode.js';
|
|
|
144
146
|
export type { PodConfigResponse } from './models/PodConfigResponse.js';
|
|
145
147
|
export type { PodCreateRequest } from './models/PodCreateRequest.js';
|
|
146
148
|
export type { PodFlowConfigItem } from './models/PodFlowConfigItem.js';
|
|
149
|
+
export type { PodJoinRequestApproveRequest } from './models/PodJoinRequestApproveRequest.js';
|
|
150
|
+
export type { PodJoinRequestCreateResponse } from './models/PodJoinRequestCreateResponse.js';
|
|
151
|
+
export type { PodJoinRequestListResponse } from './models/PodJoinRequestListResponse.js';
|
|
152
|
+
export { PodJoinRequestStatus } from './models/PodJoinRequestStatus.js';
|
|
147
153
|
export type { PodListResponse } from './models/PodListResponse.js';
|
|
148
154
|
export type { PodMemberAddRequest } from './models/PodMemberAddRequest.js';
|
|
149
155
|
export type { PodMemberDetailResponse } from './models/PodMemberDetailResponse.js';
|
|
@@ -218,6 +224,7 @@ export type { WhatsAppSurfaceConfigCreate } from './models/WhatsAppSurfaceConfig
|
|
|
218
224
|
export type { WorkflowCreateRequest } from './models/WorkflowCreateRequest.js';
|
|
219
225
|
export type { WorkflowEdge } from './models/WorkflowEdge.js';
|
|
220
226
|
export type { WorkflowGraphUpdateRequest } from './models/WorkflowGraphUpdateRequest.js';
|
|
227
|
+
export { WorkflowInstallMode } from './models/WorkflowInstallMode.js';
|
|
221
228
|
export type { WorkflowInstallRequest } from './models/WorkflowInstallRequest.js';
|
|
222
229
|
export type { WorkflowListResponse } from './models/WorkflowListResponse.js';
|
|
223
230
|
export type { WorkflowRunListResponse } from './models/WorkflowRunListResponse.js';
|
|
@@ -241,6 +248,7 @@ export { FunctionsService } from './services/FunctionsService.js';
|
|
|
241
248
|
export { IconsService } from './services/IconsService.js';
|
|
242
249
|
export { IntegrationsService } from './services/IntegrationsService.js';
|
|
243
250
|
export { OrganizationsService } from './services/OrganizationsService.js';
|
|
251
|
+
export { PodJoinRequestsService } from './services/PodJoinRequestsService.js';
|
|
244
252
|
export { PodMembersService } from './services/PodMembersService.js';
|
|
245
253
|
export { PodsService } from './services/PodsService.js';
|
|
246
254
|
export { PublicDesksService } from './services/PublicDesksService.js';
|
|
@@ -11,6 +11,7 @@ export { BillingInterval } from './models/BillingInterval.js';
|
|
|
11
11
|
export { ConversationStatus } from './models/ConversationStatus.js';
|
|
12
12
|
export { CredentialTypes } from './models/CredentialTypes.js';
|
|
13
13
|
export { DatastoreDataType } from './models/DatastoreDataType.js';
|
|
14
|
+
export { DatastoreOperation } from './models/DatastoreOperation.js';
|
|
14
15
|
export { DeskStatus } from './models/DeskStatus.js';
|
|
15
16
|
export { FileInfo } from './models/FileInfo.js';
|
|
16
17
|
export { FileSearchScopeMode } from './models/FileSearchScopeMode.js';
|
|
@@ -23,6 +24,7 @@ export { FunctionType } from './models/FunctionType.js';
|
|
|
23
24
|
export { OrganizationInvitationStatus } from './models/OrganizationInvitationStatus.js';
|
|
24
25
|
export { OrganizationRole } from './models/OrganizationRole.js';
|
|
25
26
|
export { PodAppMode } from './models/PodAppMode.js';
|
|
27
|
+
export { PodJoinRequestStatus } from './models/PodJoinRequestStatus.js';
|
|
26
28
|
export { PodRole } from './models/PodRole.js';
|
|
27
29
|
export { ResourceType } from './models/ResourceType.js';
|
|
28
30
|
export { SearchMethod } from './models/SearchMethod.js';
|
|
@@ -31,6 +33,7 @@ export { TableAccessMode } from './models/TableAccessMode.js';
|
|
|
31
33
|
export { TaskStatus } from './models/TaskStatus.js';
|
|
32
34
|
export { ToolSet } from './models/ToolSet.js';
|
|
33
35
|
export { TriggerType } from './models/TriggerType.js';
|
|
36
|
+
export { WorkflowInstallMode } from './models/WorkflowInstallMode.js';
|
|
34
37
|
export { AgentFilesService } from './services/AgentFilesService.js';
|
|
35
38
|
export { AgentsService } from './services/AgentsService.js';
|
|
36
39
|
export { AgentToolsService } from './services/AgentToolsService.js';
|
|
@@ -50,6 +53,7 @@ export { FunctionsService } from './services/FunctionsService.js';
|
|
|
50
53
|
export { IconsService } from './services/IconsService.js';
|
|
51
54
|
export { IntegrationsService } from './services/IntegrationsService.js';
|
|
52
55
|
export { OrganizationsService } from './services/OrganizationsService.js';
|
|
56
|
+
export { PodJoinRequestsService } from './services/PodJoinRequestsService.js';
|
|
53
57
|
export { PodMembersService } from './services/PodMembersService.js';
|
|
54
58
|
export { PodsService } from './services/PodsService.js';
|
|
55
59
|
export { PublicDesksService } from './services/PublicDesksService.js';
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
+
import type { DatastoreOperation } from './DatastoreOperation.js';
|
|
1
2
|
export type DataStoreFlowStart = {
|
|
2
3
|
/**
|
|
3
|
-
* Datastore
|
|
4
|
+
* Datastore operations that should trigger this flow. Accepted values: INSERT, UPDATE, DELETE (aliases: WRITE, CREATE). Empty means all mutations for the selected table.
|
|
4
5
|
*/
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Datastore operations that should trigger this flow (for example: INSERT, UPDATE, DELETE).
|
|
8
|
-
*/
|
|
9
|
-
operations: Array<string>;
|
|
6
|
+
operations?: Array<DatastoreOperation>;
|
|
10
7
|
/**
|
|
11
8
|
* Table name inside the datastore to subscribe to.
|
|
12
9
|
*/
|
|
@@ -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 DatastoreOperation;
|
|
6
|
+
(function (DatastoreOperation) {
|
|
7
|
+
DatastoreOperation["INSERT"] = "INSERT";
|
|
8
|
+
DatastoreOperation["UPDATE"] = "UPDATE";
|
|
9
|
+
DatastoreOperation["DELETE"] = "DELETE";
|
|
10
|
+
})(DatastoreOperation || (DatastoreOperation = {}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { FlowStart_Output } from './FlowStart_Output.js';
|
|
2
2
|
/**
|
|
3
3
|
* Represents an installed flow instance.
|
|
4
4
|
* Associate a Flow definition with a specific Trigger (Schedule or Event).
|
|
@@ -6,7 +6,7 @@ import type { FlowStart } from './FlowStart.js';
|
|
|
6
6
|
export type FlowInstallEntity = {
|
|
7
7
|
created_at?: string;
|
|
8
8
|
flow_id: string;
|
|
9
|
-
flow_start:
|
|
9
|
+
flow_start: FlowStart_Output;
|
|
10
10
|
id?: string;
|
|
11
11
|
is_active?: boolean;
|
|
12
12
|
pod_id: string;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { AgentNodeResponse } from './AgentNodeResponse.js';
|
|
2
2
|
import type { DecisionNodeResponse } from './DecisionNodeResponse.js';
|
|
3
3
|
import type { EndNodeResponse } from './EndNodeResponse.js';
|
|
4
|
-
import type {
|
|
4
|
+
import type { FlowStart_Output } from './FlowStart_Output.js';
|
|
5
5
|
import type { FormNodeResponse } from './FormNodeResponse.js';
|
|
6
6
|
import type { FunctionNodeResponse } from './FunctionNodeResponse.js';
|
|
7
7
|
import type { LoopNodeResponse } from './LoopNodeResponse.js';
|
|
8
8
|
import type { WaitUntilNodeResponse } from './WaitUntilNodeResponse.js';
|
|
9
9
|
import type { WorkflowEdge } from './WorkflowEdge.js';
|
|
10
|
+
import type { WorkflowInstallMode } from './WorkflowInstallMode.js';
|
|
10
11
|
export type FlowResponse = {
|
|
11
12
|
created_at?: (string | null);
|
|
12
13
|
description?: (string | null);
|
|
@@ -14,10 +15,10 @@ export type FlowResponse = {
|
|
|
14
15
|
icon_url?: (string | null);
|
|
15
16
|
id: string;
|
|
16
17
|
is_active?: boolean;
|
|
18
|
+
mode?: WorkflowInstallMode;
|
|
17
19
|
name: string;
|
|
18
20
|
nodes?: Array<(FormNodeResponse | AgentNodeResponse | FunctionNodeResponse | DecisionNodeResponse | LoopNodeResponse | WaitUntilNodeResponse | EndNodeResponse)>;
|
|
19
21
|
pod_id: string;
|
|
20
|
-
|
|
21
|
-
start?: (FlowStart | null);
|
|
22
|
+
start?: (FlowStart_Output | null);
|
|
22
23
|
updated_at?: (string | null);
|
|
23
24
|
};
|
|
@@ -2,7 +2,7 @@ import type { DataStoreFlowStart } from './DataStoreFlowStart.js';
|
|
|
2
2
|
import type { EventFlowStart } from './EventFlowStart.js';
|
|
3
3
|
import type { FlowStartType } from './FlowStartType.js';
|
|
4
4
|
import type { ScheduledFlowStart } from './ScheduledFlowStart.js';
|
|
5
|
-
export type
|
|
5
|
+
export type FlowStart_Input = {
|
|
6
6
|
/**
|
|
7
7
|
* Start mode configuration payload. Required for non-manual start types.
|
|
8
8
|
*/
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { DataStoreFlowStart } from './DataStoreFlowStart.js';
|
|
2
|
+
import type { EventFlowStart } from './EventFlowStart.js';
|
|
3
|
+
import type { FlowStartType } from './FlowStartType.js';
|
|
4
|
+
import type { ScheduledFlowStart } from './ScheduledFlowStart.js';
|
|
5
|
+
export type FlowStart_Output = {
|
|
6
|
+
/**
|
|
7
|
+
* Start mode configuration payload. Required for non-manual start types.
|
|
8
|
+
*/
|
|
9
|
+
config?: (ScheduledFlowStart | EventFlowStart | DataStoreFlowStart | null);
|
|
10
|
+
/**
|
|
11
|
+
* Flow start mode: MANUAL, SCHEDULED, EVENT, or DATASTORE_EVENT.
|
|
12
|
+
*/
|
|
13
|
+
type: FlowStartType;
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 = {}));
|