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.
Files changed (75) hide show
  1. package/README.md +175 -506
  2. package/dist/browser/lemma-client.js +207 -12
  3. package/dist/client.d.ts +2 -0
  4. package/dist/client.js +3 -0
  5. package/dist/index.d.ts +1 -0
  6. package/dist/namespaces/pod-join-requests.d.ts +16 -0
  7. package/dist/namespaces/pod-join-requests.js +24 -0
  8. package/dist/namespaces/pod-members.d.ts +1 -0
  9. package/dist/namespaces/pod-members.js +3 -0
  10. package/dist/openapi_client/index.d.ts +10 -3
  11. package/dist/openapi_client/index.js +4 -2
  12. package/dist/openapi_client/models/ColumnSchema.d.ts +4 -0
  13. package/dist/openapi_client/models/CreateTableRequest.d.ts +1 -1
  14. package/dist/openapi_client/models/DataStoreFlowStart.d.ts +3 -6
  15. package/dist/openapi_client/models/DatastoreOperation.d.ts +5 -0
  16. package/dist/openapi_client/models/DatastoreOperation.js +10 -0
  17. package/dist/openapi_client/models/DatastoreQueryRequest.d.ts +1 -1
  18. package/dist/openapi_client/models/FlowInstallEntity.d.ts +2 -2
  19. package/dist/openapi_client/models/FlowResponse.d.ts +4 -3
  20. package/dist/openapi_client/models/{FlowStart.d.ts → FlowStart_Input.d.ts} +1 -1
  21. package/dist/openapi_client/models/FlowStart_Output.d.ts +14 -0
  22. package/dist/openapi_client/models/FlowStart_Output.js +1 -0
  23. package/dist/openapi_client/models/PodCreateRequest.d.ts +0 -4
  24. package/dist/openapi_client/models/PodJoinRequestApproveRequest.d.ts +6 -0
  25. package/dist/openapi_client/models/PodJoinRequestApproveRequest.js +1 -0
  26. package/dist/openapi_client/models/PodJoinRequestCreateResponse.d.ts +17 -0
  27. package/dist/openapi_client/models/PodJoinRequestCreateResponse.js +1 -0
  28. package/dist/openapi_client/models/PodJoinRequestListResponse.d.ts +7 -0
  29. package/dist/openapi_client/models/PodJoinRequestListResponse.js +1 -0
  30. package/dist/openapi_client/models/PodJoinRequestStatus.d.ts +5 -0
  31. package/dist/openapi_client/models/PodJoinRequestStatus.js +10 -0
  32. package/dist/openapi_client/models/PodMemberDetailResponse.d.ts +14 -0
  33. package/dist/openapi_client/models/PodMemberDetailResponse.js +1 -0
  34. package/dist/openapi_client/models/PodMemberResponse.d.ts +3 -3
  35. package/dist/openapi_client/models/PodResponse.d.ts +0 -5
  36. package/dist/openapi_client/models/PodUpdateRequest.d.ts +0 -4
  37. package/dist/openapi_client/models/WorkflowCreateRequest.d.ts +7 -6
  38. package/dist/openapi_client/models/WorkflowGraphUpdateRequest.d.ts +2 -2
  39. package/dist/openapi_client/models/WorkflowInstallMode.d.ts +7 -0
  40. package/dist/openapi_client/models/WorkflowInstallMode.js +12 -0
  41. package/dist/openapi_client/models/WorkflowUpdateRequest.d.ts +5 -4
  42. package/dist/openapi_client/services/FilesService.d.ts +1 -1
  43. package/dist/openapi_client/services/FilesService.js +1 -1
  44. package/dist/openapi_client/services/PodJoinRequestsService.d.ts +44 -0
  45. package/dist/openapi_client/services/PodJoinRequestsService.js +93 -0
  46. package/dist/openapi_client/services/PodMembersService.d.ts +14 -4
  47. package/dist/openapi_client/services/PodMembersService.js +29 -8
  48. package/dist/openapi_client/services/RecordsService.d.ts +2 -2
  49. package/dist/openapi_client/services/RecordsService.js +2 -2
  50. package/dist/openapi_client/services/WorkflowsService.d.ts +1 -1
  51. package/dist/openapi_client/services/WorkflowsService.js +1 -1
  52. package/dist/react/AuthGuard.d.ts +5 -2
  53. package/dist/react/AuthGuard.js +126 -3
  54. package/dist/react/components/AssistantChrome.js +1 -1
  55. package/dist/react/components/AssistantExperience.d.ts +7 -2
  56. package/dist/react/components/AssistantExperience.js +272 -32
  57. package/dist/react/components/assistant-types.d.ts +1 -0
  58. package/dist/react/index.d.ts +0 -2
  59. package/dist/react/index.js +0 -1
  60. package/dist/react/styles.css +594 -224
  61. package/dist/react/useAssistantController.js +2 -1
  62. package/dist/react/useAssistantRuntime.d.ts +2 -1
  63. package/dist/react/useAssistantRuntime.js +7 -3
  64. package/dist/react/useTaskSession.js +145 -73
  65. package/dist/task-events.d.ts +2 -1
  66. package/dist/task-events.js +38 -1
  67. package/dist/types.d.ts +2 -1
  68. package/package.json +1 -1
  69. package/dist/openapi_client/models/PodStatus.d.ts +0 -4
  70. package/dist/openapi_client/models/PodStatus.js +0 -9
  71. package/dist/openapi_client/models/PodType.d.ts +0 -6
  72. package/dist/openapi_client/models/PodType.js +0 -11
  73. package/dist/react/useAgentRun.d.ts +0 -17
  74. package/dist/react/useAgentRun.js +0 -66
  75. /package/dist/openapi_client/models/{FlowStart.js → FlowStart_Input.js} +0 -0
@@ -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
  }
@@ -3365,17 +3370,38 @@ class PodMembersService {
3365
3370
  * Remove Pod Member
3366
3371
  * Remove a member from a pod
3367
3372
  * @param podId
3368
- * @param memberId
3373
+ * @param userId
3369
3374
  * @returns void
3370
3375
  * @throws ApiError
3371
3376
  */
3372
- static podMemberRemove(podId, memberId) {
3377
+ static podMemberRemove(podId, userId) {
3373
3378
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
3374
3379
  method: 'DELETE',
3375
- url: '/pods/{pod_id}/members/{member_id}',
3380
+ url: '/pods/{pod_id}/members/{user_id}',
3376
3381
  path: {
3377
3382
  'pod_id': podId,
3378
- 'member_id': memberId,
3383
+ 'user_id': userId,
3384
+ },
3385
+ errors: {
3386
+ 422: `Validation Error`,
3387
+ },
3388
+ });
3389
+ }
3390
+ /**
3391
+ * Get Pod Member
3392
+ * Get a pod member by user id
3393
+ * @param podId
3394
+ * @param userId
3395
+ * @returns PodMemberDetailResponse Successful Response
3396
+ * @throws ApiError
3397
+ */
3398
+ static podMemberGet(podId, userId) {
3399
+ return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
3400
+ method: 'GET',
3401
+ url: '/pods/{pod_id}/members/{user_id}',
3402
+ path: {
3403
+ 'pod_id': podId,
3404
+ 'user_id': userId,
3379
3405
  },
3380
3406
  errors: {
3381
3407
  422: `Validation Error`,
@@ -3386,18 +3412,18 @@ class PodMembersService {
3386
3412
  * Update Member Role
3387
3413
  * Update a pod member's role
3388
3414
  * @param podId
3389
- * @param memberId
3415
+ * @param userId
3390
3416
  * @param requestBody
3391
3417
  * @returns PodMemberResponse Successful Response
3392
3418
  * @throws ApiError
3393
3419
  */
3394
- static podMemberUpdateRole(podId, memberId, requestBody) {
3420
+ static podMemberUpdateRole(podId, userId, requestBody) {
3395
3421
  return (0, request_js_1.request)(OpenAPI_js_1.OpenAPI, {
3396
3422
  method: 'PATCH',
3397
- url: '/pods/{pod_id}/members/{member_id}/role',
3423
+ url: '/pods/{pod_id}/members/{user_id}/role',
3398
3424
  path: {
3399
3425
  'pod_id': podId,
3400
- 'member_id': memberId,
3426
+ 'user_id': userId,
3401
3427
  },
3402
3428
  body: requestBody,
3403
3429
  mediaType: 'application/json',
@@ -3409,6 +3435,175 @@ class PodMembersService {
3409
3435
  }
3410
3436
  exports.PodMembersService = PodMembersService;
3411
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
+
3412
3607
  },
3413
3608
  "./namespaces/pods.js": function (module, exports, require) {
3414
3609
  "use strict";
@@ -3847,8 +4042,8 @@ class RecordsService {
3847
4042
  * @param offset Row offset for direct pagination.
3848
4043
  * @param sortBy Optional column name to sort by.
3849
4044
  * @param order Sort direction for `sort_by`: `asc` or `desc`.
3850
- * @param filter Optional repeated JSON filters for advanced comparisons. Example: `filter={"field":"amount","op":"gt","value":100}`
3851
- * @param sort Optional repeated JSON sort clauses. Example: `sort={"field":"created_at","direction":"desc"}`
4045
+ * @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"}`.
4046
+ * @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"}`.
3852
4047
  * @param pageToken Opaque token from a previous response page.
3853
4048
  * @returns RecordListResponse Successful Response
3854
4049
  * @throws ApiError
@@ -4686,7 +4881,7 @@ class WorkflowsService {
4686
4881
  }
4687
4882
  /**
4688
4883
  * Update Workflow Metadata
4689
- * Update workflow-level metadata such as description/install requirements. Workflow names are immutable after creation. Use `workflow.graph.update` for nodes and edges.
4884
+ * Update workflow-level metadata such as description/install mode. Workflow names are immutable after creation. Use `workflow.graph.update` for nodes and edges.
4690
4885
  * @param podId
4691
4886
  * @param workflowName
4692
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 { FlowStart } from './models/FlowStart.js';
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,16 +146,19 @@ 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';
155
+ export type { PodMemberDetailResponse } from './models/PodMemberDetailResponse.js';
149
156
  export type { PodMemberListResponse } from './models/PodMemberListResponse.js';
150
157
  export type { PodMemberResponse } from './models/PodMemberResponse.js';
151
158
  export type { PodMemberUpdateRoleRequest } from './models/PodMemberUpdateRoleRequest.js';
152
159
  export type { PodPermissionsResponse } from './models/PodPermissionsResponse.js';
153
160
  export type { PodResponse } from './models/PodResponse.js';
154
161
  export { PodRole } from './models/PodRole.js';
155
- export { PodStatus } from './models/PodStatus.js';
156
- export { PodType } from './models/PodType.js';
157
162
  export type { PodUpdateRequest } from './models/PodUpdateRequest.js';
158
163
  export type { RecentUsageResponse } from './models/RecentUsageResponse.js';
159
164
  export type { RecordListResponse } from './models/RecordListResponse.js';
@@ -219,6 +224,7 @@ export type { WhatsAppSurfaceConfigCreate } from './models/WhatsAppSurfaceConfig
219
224
  export type { WorkflowCreateRequest } from './models/WorkflowCreateRequest.js';
220
225
  export type { WorkflowEdge } from './models/WorkflowEdge.js';
221
226
  export type { WorkflowGraphUpdateRequest } from './models/WorkflowGraphUpdateRequest.js';
227
+ export { WorkflowInstallMode } from './models/WorkflowInstallMode.js';
222
228
  export type { WorkflowInstallRequest } from './models/WorkflowInstallRequest.js';
223
229
  export type { WorkflowListResponse } from './models/WorkflowListResponse.js';
224
230
  export type { WorkflowRunListResponse } from './models/WorkflowRunListResponse.js';
@@ -242,6 +248,7 @@ export { FunctionsService } from './services/FunctionsService.js';
242
248
  export { IconsService } from './services/IconsService.js';
243
249
  export { IntegrationsService } from './services/IntegrationsService.js';
244
250
  export { OrganizationsService } from './services/OrganizationsService.js';
251
+ export { PodJoinRequestsService } from './services/PodJoinRequestsService.js';
245
252
  export { PodMembersService } from './services/PodMembersService.js';
246
253
  export { PodsService } from './services/PodsService.js';
247
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,9 +24,8 @@ 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
- export { PodStatus } from './models/PodStatus.js';
28
- export { PodType } from './models/PodType.js';
29
29
  export { ResourceType } from './models/ResourceType.js';
30
30
  export { SearchMethod } from './models/SearchMethod.js';
31
31
  export { SubscriptionStatus } from './models/SubscriptionStatus.js';
@@ -33,6 +33,7 @@ export { TableAccessMode } from './models/TableAccessMode.js';
33
33
  export { TaskStatus } from './models/TaskStatus.js';
34
34
  export { ToolSet } from './models/ToolSet.js';
35
35
  export { TriggerType } from './models/TriggerType.js';
36
+ export { WorkflowInstallMode } from './models/WorkflowInstallMode.js';
36
37
  export { AgentFilesService } from './services/AgentFilesService.js';
37
38
  export { AgentsService } from './services/AgentsService.js';
38
39
  export { AgentToolsService } from './services/AgentToolsService.js';
@@ -52,6 +53,7 @@ export { FunctionsService } from './services/FunctionsService.js';
52
53
  export { IconsService } from './services/IconsService.js';
53
54
  export { IntegrationsService } from './services/IntegrationsService.js';
54
55
  export { OrganizationsService } from './services/OrganizationsService.js';
56
+ export { PodJoinRequestsService } from './services/PodJoinRequestsService.js';
55
57
  export { PodMembersService } from './services/PodMembersService.js';
56
58
  export { PodsService } from './services/PodsService.js';
57
59
  export { PublicDesksService } from './services/PublicDesksService.js';
@@ -44,6 +44,10 @@ export type ColumnSchema = {
44
44
  * Whether the column is required (NOT NULL)
45
45
  */
46
46
  required?: boolean;
47
+ /**
48
+ * Whether the column is system-managed by the backend.
49
+ */
50
+ system?: boolean;
47
51
  /**
48
52
  * Column data type
49
53
  */
@@ -4,7 +4,7 @@ import type { ColumnSchema } from './ColumnSchema.js';
4
4
  */
5
5
  export type CreateTableRequest = {
6
6
  /**
7
- * Table column definitions. Each column name must be unique. Use `type`, `required`, `default`, `foreign_key`, and `computed` as needed.
7
+ * Table column definitions. Each column name must be unique. Use `type`, `required`, `default`, `foreign_key`, and `computed` as needed. The backend also materializes physical system columns so table metadata reflects the real schema: `id` when omitted as the primary key, `created_at`, `updated_at`, and `user_id` when RLS is enabled.
8
8
  */
9
9
  columns: Array<ColumnSchema>;
10
10
  /**
@@ -1,12 +1,9 @@
1
+ import type { DatastoreOperation } from './DatastoreOperation.js';
1
2
  export type DataStoreFlowStart = {
2
3
  /**
3
- * Datastore namespace name to watch for change events.
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
- datastore_name: string;
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,5 @@
1
+ export declare enum DatastoreOperation {
2
+ INSERT = "INSERT",
3
+ UPDATE = "UPDATE",
4
+ DELETE = "DELETE"
5
+ }
@@ -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 = {}));
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export type DatastoreQueryRequest = {
5
5
  /**
6
- * Read-only SQL query executed inside this datastore schema. Only SELECT-style queries are allowed; mutating statements are blocked. Write queries such as INSERT, UPDATE, DELETE, ALTER, DROP, CREATE, and TRUNCATE are rejected. Example: `SELECT id, amount FROM expenses WHERE amount > 100 ORDER BY created_at DESC LIMIT 20`.
6
+ * Read-only SQL query executed inside this datastore schema. Only SELECT-style queries are allowed; mutating statements are blocked. Queries against RLS-enabled tables are rejected; use table-scoped record APIs instead. Write queries such as INSERT, UPDATE, DELETE, ALTER, DROP, CREATE, and TRUNCATE are rejected. Example: `SELECT id, amount FROM expenses WHERE amount > 100 ORDER BY created_at DESC LIMIT 20`.
7
7
  */
8
8
  query: string;
9
9
  };
@@ -1,4 +1,4 @@
1
- import type { FlowStart } from './FlowStart.js';
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: FlowStart;
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 { FlowStart } from './FlowStart.js';
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
- require_user_install?: boolean;
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 FlowStart = {
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 {};