lemma-sdk 0.2.6 → 0.2.7
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 +1 -1
- package/dist/browser/lemma-client.js +674 -1004
- package/dist/client.d.ts +0 -2
- package/dist/client.js +0 -3
- package/dist/index.d.ts +0 -1
- package/dist/namespaces/files.d.ts +8 -8
- package/dist/namespaces/files.js +16 -16
- package/dist/namespaces/records.d.ts +10 -10
- package/dist/namespaces/records.js +24 -24
- package/dist/namespaces/tables.d.ts +7 -7
- package/dist/namespaces/tables.js +13 -13
- package/dist/namespaces/workflows.d.ts +4 -4
- package/dist/openapi_client/index.d.ts +16 -15
- package/dist/openapi_client/index.js +4 -2
- package/dist/openapi_client/models/AccountCredentialsResponseSchema.d.ts +1 -1
- package/dist/openapi_client/models/AccountResponseSchema.d.ts +6 -6
- package/dist/openapi_client/models/{AgentNode_Input.d.ts → AgentNode.d.ts} +2 -2
- package/dist/openapi_client/models/{AgentNode_Output.d.ts → AgentNodeResponse.d.ts} +2 -5
- package/dist/openapi_client/models/AgentResponse.d.ts +10 -8
- package/dist/openapi_client/models/AppTriggerResponseSchema.d.ts +4 -4
- package/dist/openapi_client/models/ApplicationAccessConfig.d.ts +4 -4
- package/dist/openapi_client/models/ApplicationDetailResponseSchema.d.ts +6 -6
- package/dist/openapi_client/models/ApplicationResponseSchema.d.ts +5 -5
- package/dist/openapi_client/models/AssistantResponse.d.ts +9 -7
- package/dist/openapi_client/models/AssistantSurfaceResponse.d.ts +3 -3
- package/dist/openapi_client/models/CancelSubscriptionResponse.d.ts +3 -3
- package/dist/openapi_client/models/ColumnSchema.d.ts +22 -22
- package/dist/openapi_client/models/ConnectRequestResponseSchema.d.ts +4 -4
- package/dist/openapi_client/models/ConversationMessageResponse.d.ts +2 -2
- package/dist/openapi_client/models/ConversationResponse.d.ts +8 -8
- package/dist/openapi_client/models/CreateAgentRequest.d.ts +6 -4
- package/dist/openapi_client/models/CreateAssistantRequest.d.ts +5 -3
- package/dist/openapi_client/models/CreateConversationRequest.d.ts +3 -3
- package/dist/openapi_client/models/CreateDeskRequest.d.ts +2 -3
- package/dist/openapi_client/models/CreateFolderRequest.d.ts +6 -1
- package/dist/openapi_client/models/CreateFunctionRequest.d.ts +8 -6
- package/dist/openapi_client/models/CreateTableRequest.d.ts +8 -8
- package/dist/openapi_client/models/CreateTriggerRequest.d.ts +3 -3
- package/dist/openapi_client/models/DataStoreFlowStart.d.ts +6 -6
- package/dist/openapi_client/models/DatastoreFileUploadRequest.d.ts +3 -1
- package/dist/openapi_client/models/{DecisionNode_Input.d.ts → DecisionNode.d.ts} +2 -2
- package/dist/openapi_client/models/{DecisionNode_Output.d.ts → DecisionNodeResponse.d.ts} +2 -5
- package/dist/openapi_client/models/DeskBundleUploadRequest.d.ts +1 -1
- package/dist/openapi_client/models/DeskBundleUploadResponse.d.ts +1 -1
- package/dist/openapi_client/models/DeskResponse.d.ts +6 -7
- package/dist/openapi_client/models/EmailSurfaceConfigCreate.d.ts +1 -1
- package/dist/openapi_client/models/EndNode.d.ts +1 -1
- package/dist/openapi_client/models/EndNodeResponse.d.ts +8 -0
- package/dist/openapi_client/models/EventFlowStart.d.ts +5 -5
- package/dist/openapi_client/models/FileInfo.d.ts +3 -3
- package/dist/openapi_client/models/FileResponse.d.ts +13 -9
- package/dist/openapi_client/models/FileSearchRequest.d.ts +2 -2
- package/dist/openapi_client/models/FileSearchResponse.d.ts +1 -1
- package/dist/openapi_client/models/FileSearchResultSchema.d.ts +1 -1
- package/dist/openapi_client/models/FileUploadResponse.d.ts +2 -2
- package/dist/openapi_client/models/FileVisibility.d.ts +4 -0
- package/dist/openapi_client/models/FileVisibility.js +9 -0
- package/dist/openapi_client/models/FlowInstallEntity.d.ts +5 -5
- package/dist/openapi_client/models/FlowResponse.d.ts +23 -0
- package/dist/openapi_client/models/FlowRunEntity.d.ts +10 -10
- package/dist/openapi_client/models/FlowStart.d.ts +4 -4
- package/dist/openapi_client/models/FormNode.d.ts +1 -1
- package/dist/openapi_client/models/FormNodeResponse.d.ts +8 -0
- package/dist/openapi_client/models/{FunctionNode_Input.d.ts → FunctionNode.d.ts} +2 -2
- package/dist/openapi_client/models/{FunctionNode_Output.d.ts → FunctionNodeResponse.d.ts} +2 -5
- package/dist/openapi_client/models/FunctionResponse.d.ts +13 -11
- package/dist/openapi_client/models/FunctionRunResponse.d.ts +7 -7
- package/dist/openapi_client/models/IconUploadResponse.d.ts +1 -1
- package/dist/openapi_client/models/LoopNode.d.ts +1 -1
- package/dist/openapi_client/models/LoopNodeConfig.d.ts +4 -4
- package/dist/openapi_client/models/LoopNodeResponse.d.ts +8 -0
- package/dist/openapi_client/models/NotificationContent.d.ts +1 -1
- package/dist/openapi_client/models/OperationDetail.d.ts +1 -1
- package/dist/openapi_client/models/OperationExecutionRequest.d.ts +1 -1
- package/dist/openapi_client/models/OperationSummary.d.ts +1 -1
- package/dist/openapi_client/models/OrganizationInvitationResponse.d.ts +5 -5
- package/dist/openapi_client/models/OrganizationMemberResponse.d.ts +3 -3
- package/dist/openapi_client/models/OrganizationResponse.d.ts +1 -1
- package/dist/openapi_client/models/PlanResponse.d.ts +6 -6
- package/dist/openapi_client/models/PodAppConfigItem.d.ts +3 -3
- package/dist/openapi_client/models/PodCreateRequest.d.ts +3 -3
- package/dist/openapi_client/models/PodFlowConfigItem.d.ts +3 -3
- package/dist/openapi_client/models/PodListResponse.d.ts +1 -1
- package/dist/openapi_client/models/PodMemberListResponse.d.ts +1 -1
- package/dist/openapi_client/models/PodMemberResponse.d.ts +2 -2
- package/dist/openapi_client/models/PodPermissionsResponse.d.ts +1 -1
- package/dist/openapi_client/models/PodResponse.d.ts +6 -6
- package/dist/openapi_client/models/PodUpdateRequest.d.ts +2 -2
- package/dist/openapi_client/models/RecentUsageResponse.d.ts +1 -1
- package/dist/openapi_client/models/RecordListResponse.d.ts +1 -1
- package/dist/openapi_client/models/RecordQueryRequest.d.ts +4 -4
- package/dist/openapi_client/models/RecordSort.d.ts +4 -4
- package/dist/openapi_client/models/SearchResult.d.ts +3 -3
- package/dist/openapi_client/models/SeatInfoResponse.d.ts +2 -2
- package/dist/openapi_client/models/SlackSurfaceConfigCreate.d.ts +1 -1
- package/dist/openapi_client/models/StackFrame.d.ts +3 -3
- package/dist/openapi_client/models/StartSubscriptionRequest.d.ts +4 -4
- package/dist/openapi_client/models/StepExecution.d.ts +4 -4
- package/dist/openapi_client/models/SubscriptionStatusResponse.d.ts +1 -1
- package/dist/openapi_client/models/SubscriptionWithPlanResponse.d.ts +7 -7
- package/dist/openapi_client/models/TableAccessEntry.d.ts +5 -0
- package/dist/openapi_client/models/TableAccessMode.d.ts +7 -0
- package/dist/openapi_client/models/TableAccessMode.js +12 -0
- package/dist/openapi_client/models/TableResponse.d.ts +5 -5
- package/dist/openapi_client/models/TaskMessageResponse.d.ts +2 -2
- package/dist/openapi_client/models/TaskResponse.d.ts +5 -5
- package/dist/openapi_client/models/TeamsSurfaceConfigCreate.d.ts +1 -1
- package/dist/openapi_client/models/TextContent.d.ts +1 -1
- package/dist/openapi_client/models/ThinkingContent.d.ts +1 -1
- package/dist/openapi_client/models/ToolCallRequest.d.ts +2 -2
- package/dist/openapi_client/models/ToolCallResponse.d.ts +1 -1
- package/dist/openapi_client/models/TriggerResponse.d.ts +6 -6
- package/dist/openapi_client/models/UpdateAgentRequest.d.ts +5 -3
- package/dist/openapi_client/models/UpdateAssistantRequest.d.ts +4 -2
- package/dist/openapi_client/models/UpdateConversationRequest.d.ts +1 -1
- package/dist/openapi_client/models/UpdateDeskRequest.d.ts +1 -1
- package/dist/openapi_client/models/UpdateFunctionRequest.d.ts +6 -4
- package/dist/openapi_client/models/UsageRecordResponse.d.ts +11 -11
- package/dist/openapi_client/models/UsageSummaryResponse.d.ts +5 -5
- package/dist/openapi_client/models/UserProfileRequest.d.ts +2 -2
- package/dist/openapi_client/models/UserResponse.d.ts +6 -6
- package/dist/openapi_client/models/ValidationError.d.ts +2 -2
- package/dist/openapi_client/models/VerifyTokenResponse.d.ts +1 -1
- package/dist/openapi_client/models/WaitUntilNode.d.ts +1 -1
- package/dist/openapi_client/models/WaitUntilNodeResponse.d.ts +8 -0
- package/dist/openapi_client/models/WebSearchAgentResponse.d.ts +8 -8
- package/dist/openapi_client/models/WebSearchRequest.d.ts +4 -4
- package/dist/openapi_client/models/WebSearchResponse.d.ts +8 -8
- package/dist/openapi_client/models/WhatsAppSurfaceConfigCreate.d.ts +1 -1
- package/dist/openapi_client/models/WorkflowCreateRequest.d.ts +6 -6
- package/dist/openapi_client/models/WorkflowEdge.d.ts +1 -1
- package/dist/openapi_client/models/WorkflowGraphUpdateRequest.d.ts +7 -7
- package/dist/openapi_client/models/WorkflowListResponse.d.ts +2 -2
- package/dist/openapi_client/models/update.d.ts +3 -1
- package/dist/openapi_client/services/AgentFilesService.d.ts +46 -0
- package/dist/openapi_client/services/AgentFilesService.js +103 -0
- package/dist/openapi_client/services/AgentsService.d.ts +15 -15
- package/dist/openapi_client/services/AgentsService.js +33 -33
- package/dist/openapi_client/services/ApplicationsService.d.ts +7 -7
- package/dist/openapi_client/services/ApplicationsService.js +16 -16
- package/dist/openapi_client/services/AssistantSurfacesService.d.ts +9 -9
- package/dist/openapi_client/services/AssistantSurfacesService.js +19 -19
- package/dist/openapi_client/services/AssistantsService.d.ts +13 -13
- package/dist/openapi_client/services/AssistantsService.js +31 -31
- package/dist/openapi_client/services/BillingSubscriptionsService.d.ts +15 -15
- package/dist/openapi_client/services/BillingSubscriptionsService.js +22 -22
- package/dist/openapi_client/services/BillingUsageService.d.ts +7 -7
- package/dist/openapi_client/services/BillingUsageService.js +10 -10
- package/dist/openapi_client/services/ConversationsService.d.ts +13 -13
- package/dist/openapi_client/services/ConversationsService.js +27 -27
- package/dist/openapi_client/services/DesksService.d.ts +13 -13
- package/dist/openapi_client/services/DesksService.js +31 -31
- package/dist/openapi_client/services/FilesService.d.ts +21 -72
- package/dist/openapi_client/services/FilesService.js +39 -154
- package/dist/openapi_client/services/FunctionsService.d.ts +21 -21
- package/dist/openapi_client/services/FunctionsService.js +45 -45
- package/dist/openapi_client/services/IntegrationsService.d.ts +24 -24
- package/dist/openapi_client/services/IntegrationsService.js +47 -47
- package/dist/openapi_client/services/OrganizationsService.d.ts +46 -46
- package/dist/openapi_client/services/OrganizationsService.js +88 -88
- package/dist/openapi_client/services/PodMembersService.d.ts +13 -13
- package/dist/openapi_client/services/PodMembersService.js +29 -29
- package/dist/openapi_client/services/PodsService.d.ts +18 -18
- package/dist/openapi_client/services/PodsService.js +34 -34
- package/dist/openapi_client/services/PublicDesksService.d.ts +10 -0
- package/dist/openapi_client/services/PublicDesksService.js +22 -0
- package/dist/openapi_client/services/RecordsService.d.ts +39 -48
- package/dist/openapi_client/services/RecordsService.js +71 -89
- package/dist/openapi_client/services/TablesService.d.ts +18 -25
- package/dist/openapi_client/services/TablesService.js +39 -53
- package/dist/openapi_client/services/TasksService.d.ts +19 -19
- package/dist/openapi_client/services/TasksService.js +39 -39
- package/dist/openapi_client/services/TriggersService.d.ts +16 -16
- package/dist/openapi_client/services/TriggersService.js +35 -35
- package/dist/openapi_client/services/WebhooksService.d.ts +8 -8
- package/dist/openapi_client/services/WebhooksService.js +18 -18
- package/dist/openapi_client/services/WorkflowsService.d.ts +59 -59
- package/dist/openapi_client/services/WorkflowsService.js +115 -115
- package/package.json +1 -1
- package/dist/namespaces/datastores.d.ts +0 -18
- package/dist/namespaces/datastores.js +0 -28
- package/dist/openapi_client/models/CreateDatastoreRequest.d.ts +0 -21
- package/dist/openapi_client/models/DatastoreListResponse.d.ts +0 -9
- package/dist/openapi_client/models/DatastoreQueryRequest.d.ts +0 -9
- package/dist/openapi_client/models/DatastoreResponse.d.ts +0 -15
- package/dist/openapi_client/models/FlowEntity.d.ts +0 -26
- package/dist/openapi_client/models/RecordQueryResponse.d.ts +0 -13
- package/dist/openapi_client/models/UpdateDatastoreRequest.d.ts +0 -17
- package/dist/openapi_client/models/UpdateDatastoreRequest.js +0 -1
- package/dist/openapi_client/services/DatastoreService.d.ts +0 -67
- package/dist/openapi_client/services/DatastoreService.js +0 -141
- package/dist/openapi_client/services/PublicSdkService.d.ts +0 -17
- package/dist/openapi_client/services/PublicSdkService.js +0 -35
- /package/dist/openapi_client/models/{AgentNode_Input.js → AgentNode.js} +0 -0
- /package/dist/openapi_client/models/{AgentNode_Output.js → AgentNodeResponse.js} +0 -0
- /package/dist/openapi_client/models/{CreateDatastoreRequest.js → DecisionNode.js} +0 -0
- /package/dist/openapi_client/models/{DatastoreListResponse.js → DecisionNodeResponse.js} +0 -0
- /package/dist/openapi_client/models/{DatastoreQueryRequest.js → EndNodeResponse.js} +0 -0
- /package/dist/openapi_client/models/{DatastoreResponse.js → FlowResponse.js} +0 -0
- /package/dist/openapi_client/models/{DecisionNode_Input.js → FormNodeResponse.js} +0 -0
- /package/dist/openapi_client/models/{DecisionNode_Output.js → FunctionNode.js} +0 -0
- /package/dist/openapi_client/models/{FlowEntity.js → FunctionNodeResponse.js} +0 -0
- /package/dist/openapi_client/models/{FunctionNode_Input.js → LoopNodeResponse.js} +0 -0
- /package/dist/openapi_client/models/{FunctionNode_Output.js → TableAccessEntry.js} +0 -0
- /package/dist/openapi_client/models/{RecordQueryResponse.js → WaitUntilNodeResponse.js} +0 -0
|
@@ -1,43 +1,6 @@
|
|
|
1
1
|
import { OpenAPI } from '../core/OpenAPI.js';
|
|
2
2
|
import { request as __request } from '../core/request.js';
|
|
3
3
|
export class IntegrationsService {
|
|
4
|
-
/**
|
|
5
|
-
* Initiate Connect Request
|
|
6
|
-
* Initiate an OAuth connection request for an application
|
|
7
|
-
* @param requestBody
|
|
8
|
-
* @returns ConnectRequestResponseSchema Successful Response
|
|
9
|
-
* @throws ApiError
|
|
10
|
-
*/
|
|
11
|
-
static integrationConnectRequestCreate(requestBody) {
|
|
12
|
-
return __request(OpenAPI, {
|
|
13
|
-
method: 'POST',
|
|
14
|
-
url: '/integrations/connect-requests',
|
|
15
|
-
body: requestBody,
|
|
16
|
-
mediaType: 'application/json',
|
|
17
|
-
errors: {
|
|
18
|
-
422: `Validation Error`,
|
|
19
|
-
},
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* OAuth Callback
|
|
24
|
-
* Handle OAuth callback and complete account connection. This endpoint is public and uses state parameter for security.
|
|
25
|
-
* @param error
|
|
26
|
-
* @returns AccountResponseSchema Successful Response
|
|
27
|
-
* @throws ApiError
|
|
28
|
-
*/
|
|
29
|
-
static integrationOauthCallback(error) {
|
|
30
|
-
return __request(OpenAPI, {
|
|
31
|
-
method: 'GET',
|
|
32
|
-
url: '/integrations/connect-requests/oauth/callback',
|
|
33
|
-
query: {
|
|
34
|
-
'error': error,
|
|
35
|
-
},
|
|
36
|
-
errors: {
|
|
37
|
-
422: `Validation Error`,
|
|
38
|
-
},
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
4
|
/**
|
|
42
5
|
* List Accounts
|
|
43
6
|
* Get all connected accounts for the current user. Optionally filter by application_id or application_name
|
|
@@ -62,15 +25,15 @@ export class IntegrationsService {
|
|
|
62
25
|
});
|
|
63
26
|
}
|
|
64
27
|
/**
|
|
65
|
-
*
|
|
66
|
-
*
|
|
28
|
+
* Delete Account
|
|
29
|
+
* Delete a connected account and revoke the connection
|
|
67
30
|
* @param accountId
|
|
68
|
-
* @returns
|
|
31
|
+
* @returns MessageResponseSchema Successful Response
|
|
69
32
|
* @throws ApiError
|
|
70
33
|
*/
|
|
71
|
-
static
|
|
34
|
+
static integrationAccountDelete(accountId) {
|
|
72
35
|
return __request(OpenAPI, {
|
|
73
|
-
method: '
|
|
36
|
+
method: 'DELETE',
|
|
74
37
|
url: '/integrations/accounts/{account_id}',
|
|
75
38
|
path: {
|
|
76
39
|
'account_id': accountId,
|
|
@@ -81,15 +44,15 @@ export class IntegrationsService {
|
|
|
81
44
|
});
|
|
82
45
|
}
|
|
83
46
|
/**
|
|
84
|
-
*
|
|
85
|
-
*
|
|
47
|
+
* Get Account
|
|
48
|
+
* Get a specific account by ID
|
|
86
49
|
* @param accountId
|
|
87
|
-
* @returns
|
|
50
|
+
* @returns AccountResponseSchema Successful Response
|
|
88
51
|
* @throws ApiError
|
|
89
52
|
*/
|
|
90
|
-
static
|
|
53
|
+
static integrationAccountGet(accountId) {
|
|
91
54
|
return __request(OpenAPI, {
|
|
92
|
-
method: '
|
|
55
|
+
method: 'GET',
|
|
93
56
|
url: '/integrations/accounts/{account_id}',
|
|
94
57
|
path: {
|
|
95
58
|
'account_id': accountId,
|
|
@@ -118,4 +81,41 @@ export class IntegrationsService {
|
|
|
118
81
|
},
|
|
119
82
|
});
|
|
120
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* Initiate Connect Request
|
|
86
|
+
* Initiate an OAuth connection request for an application
|
|
87
|
+
* @param requestBody
|
|
88
|
+
* @returns ConnectRequestResponseSchema Successful Response
|
|
89
|
+
* @throws ApiError
|
|
90
|
+
*/
|
|
91
|
+
static integrationConnectRequestCreate(requestBody) {
|
|
92
|
+
return __request(OpenAPI, {
|
|
93
|
+
method: 'POST',
|
|
94
|
+
url: '/integrations/connect-requests',
|
|
95
|
+
body: requestBody,
|
|
96
|
+
mediaType: 'application/json',
|
|
97
|
+
errors: {
|
|
98
|
+
422: `Validation Error`,
|
|
99
|
+
},
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* OAuth Callback
|
|
104
|
+
* Handle OAuth callback and complete account connection. This endpoint is public and uses state parameter for security.
|
|
105
|
+
* @param error
|
|
106
|
+
* @returns AccountResponseSchema Successful Response
|
|
107
|
+
* @throws ApiError
|
|
108
|
+
*/
|
|
109
|
+
static integrationOauthCallback(error) {
|
|
110
|
+
return __request(OpenAPI, {
|
|
111
|
+
method: 'GET',
|
|
112
|
+
url: '/integrations/connect-requests/oauth/callback',
|
|
113
|
+
query: {
|
|
114
|
+
'error': error,
|
|
115
|
+
},
|
|
116
|
+
errors: {
|
|
117
|
+
422: `Validation Error`,
|
|
118
|
+
},
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
121
|
}
|
|
@@ -11,14 +11,6 @@ import type { OrganizationResponse } from '../models/OrganizationResponse.js';
|
|
|
11
11
|
import type { UpdateMemberRoleRequest } from '../models/UpdateMemberRoleRequest.js';
|
|
12
12
|
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
13
13
|
export declare class OrganizationsService {
|
|
14
|
-
/**
|
|
15
|
-
* Create Organization
|
|
16
|
-
* Create a new organization
|
|
17
|
-
* @param requestBody
|
|
18
|
-
* @returns OrganizationResponse Successful Response
|
|
19
|
-
* @throws ApiError
|
|
20
|
-
*/
|
|
21
|
-
static orgCreate(requestBody: OrganizationCreateRequest): CancelablePromise<OrganizationResponse>;
|
|
22
14
|
/**
|
|
23
15
|
* List My Organizations
|
|
24
16
|
* Get all organizations the current user belongs to
|
|
@@ -28,6 +20,14 @@ export declare class OrganizationsService {
|
|
|
28
20
|
* @throws ApiError
|
|
29
21
|
*/
|
|
30
22
|
static orgList(limit?: number, pageToken?: (string | null)): CancelablePromise<OrganizationListResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Create Organization
|
|
25
|
+
* Create a new organization
|
|
26
|
+
* @param requestBody
|
|
27
|
+
* @returns OrganizationResponse Successful Response
|
|
28
|
+
* @throws ApiError
|
|
29
|
+
*/
|
|
30
|
+
static orgCreate(requestBody: OrganizationCreateRequest): CancelablePromise<OrganizationResponse>;
|
|
31
31
|
/**
|
|
32
32
|
* List My Invitations
|
|
33
33
|
* Get all pending invitations for the current user
|
|
@@ -38,6 +38,30 @@ export declare class OrganizationsService {
|
|
|
38
38
|
* @throws ApiError
|
|
39
39
|
*/
|
|
40
40
|
static orgInvitationListMine(status?: OrganizationInvitationStatus, limit?: number, pageToken?: (string | null)): CancelablePromise<OrganizationInvitationListResponse>;
|
|
41
|
+
/**
|
|
42
|
+
* Revoke Invitation
|
|
43
|
+
* Revoke an organization invitation
|
|
44
|
+
* @param invitationId
|
|
45
|
+
* @returns void
|
|
46
|
+
* @throws ApiError
|
|
47
|
+
*/
|
|
48
|
+
static orgInvitationRevoke(invitationId: string): CancelablePromise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* Get Organization Invitation
|
|
51
|
+
* Get an invitation by id
|
|
52
|
+
* @param invitationId
|
|
53
|
+
* @returns OrganizationInvitationResponse Successful Response
|
|
54
|
+
* @throws ApiError
|
|
55
|
+
*/
|
|
56
|
+
static orgInvitationGet(invitationId: string): CancelablePromise<OrganizationInvitationResponse>;
|
|
57
|
+
/**
|
|
58
|
+
* Accept Invitation
|
|
59
|
+
* Accept an organization invitation
|
|
60
|
+
* @param invitationId
|
|
61
|
+
* @returns OrganizationMessageResponse Successful Response
|
|
62
|
+
* @throws ApiError
|
|
63
|
+
*/
|
|
64
|
+
static orgInvitationAccept(invitationId: string): CancelablePromise<OrganizationMessageResponse>;
|
|
41
65
|
/**
|
|
42
66
|
* Get Organization
|
|
43
67
|
* Get organization details
|
|
@@ -47,15 +71,16 @@ export declare class OrganizationsService {
|
|
|
47
71
|
*/
|
|
48
72
|
static orgGet(orgId: string): CancelablePromise<OrganizationResponse>;
|
|
49
73
|
/**
|
|
50
|
-
* List Organization
|
|
51
|
-
* Get all
|
|
74
|
+
* List Organization Invitations
|
|
75
|
+
* Get all pending invitations for an organization
|
|
52
76
|
* @param orgId
|
|
77
|
+
* @param status
|
|
53
78
|
* @param limit
|
|
54
79
|
* @param pageToken
|
|
55
|
-
* @returns
|
|
80
|
+
* @returns OrganizationInvitationListResponse Successful Response
|
|
56
81
|
* @throws ApiError
|
|
57
82
|
*/
|
|
58
|
-
static
|
|
83
|
+
static orgInvitationList(orgId: string, status?: OrganizationInvitationStatus, limit?: number, pageToken?: (string | null)): CancelablePromise<OrganizationInvitationListResponse>;
|
|
59
84
|
/**
|
|
60
85
|
* Invite Member
|
|
61
86
|
* Invite a user to join the organization
|
|
@@ -66,40 +91,24 @@ export declare class OrganizationsService {
|
|
|
66
91
|
*/
|
|
67
92
|
static orgInvitationInvite(orgId: string, requestBody: OrganizationInvitationRequest): CancelablePromise<OrganizationInvitationResponse>;
|
|
68
93
|
/**
|
|
69
|
-
* List Organization
|
|
70
|
-
* Get all
|
|
94
|
+
* List Organization Members
|
|
95
|
+
* Get all members of an organization
|
|
71
96
|
* @param orgId
|
|
72
|
-
* @param status
|
|
73
97
|
* @param limit
|
|
74
98
|
* @param pageToken
|
|
75
|
-
* @returns
|
|
76
|
-
* @throws ApiError
|
|
77
|
-
*/
|
|
78
|
-
static orgInvitationList(orgId: string, status?: OrganizationInvitationStatus, limit?: number, pageToken?: (string | null)): CancelablePromise<OrganizationInvitationListResponse>;
|
|
79
|
-
/**
|
|
80
|
-
* Accept Invitation
|
|
81
|
-
* Accept an organization invitation
|
|
82
|
-
* @param invitationId
|
|
83
|
-
* @returns OrganizationMessageResponse Successful Response
|
|
84
|
-
* @throws ApiError
|
|
85
|
-
*/
|
|
86
|
-
static orgInvitationAccept(invitationId: string): CancelablePromise<OrganizationMessageResponse>;
|
|
87
|
-
/**
|
|
88
|
-
* Get Organization Invitation
|
|
89
|
-
* Get an invitation by id
|
|
90
|
-
* @param invitationId
|
|
91
|
-
* @returns OrganizationInvitationResponse Successful Response
|
|
99
|
+
* @returns OrganizationMemberListResponse Successful Response
|
|
92
100
|
* @throws ApiError
|
|
93
101
|
*/
|
|
94
|
-
static
|
|
102
|
+
static orgMemberList(orgId: string, limit?: number, pageToken?: (string | null)): CancelablePromise<OrganizationMemberListResponse>;
|
|
95
103
|
/**
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
* @param
|
|
104
|
+
* Remove Member
|
|
105
|
+
* Remove a member from the organization
|
|
106
|
+
* @param orgId
|
|
107
|
+
* @param memberId
|
|
99
108
|
* @returns void
|
|
100
109
|
* @throws ApiError
|
|
101
110
|
*/
|
|
102
|
-
static
|
|
111
|
+
static orgMemberRemove(orgId: string, memberId: string): CancelablePromise<void>;
|
|
103
112
|
/**
|
|
104
113
|
* Update Member Role
|
|
105
114
|
* Update a member's role in the organization
|
|
@@ -110,13 +119,4 @@ export declare class OrganizationsService {
|
|
|
110
119
|
* @throws ApiError
|
|
111
120
|
*/
|
|
112
121
|
static orgMemberUpdateRole(orgId: string, memberId: string, requestBody: UpdateMemberRoleRequest): CancelablePromise<OrganizationMemberResponse>;
|
|
113
|
-
/**
|
|
114
|
-
* Remove Member
|
|
115
|
-
* Remove a member from the organization
|
|
116
|
-
* @param orgId
|
|
117
|
-
* @param memberId
|
|
118
|
-
* @returns void
|
|
119
|
-
* @throws ApiError
|
|
120
|
-
*/
|
|
121
|
-
static orgMemberRemove(orgId: string, memberId: string): CancelablePromise<void>;
|
|
122
122
|
}
|
|
@@ -2,24 +2,6 @@ import { OrganizationInvitationStatus } from '../models/OrganizationInvitationSt
|
|
|
2
2
|
import { OpenAPI } from '../core/OpenAPI.js';
|
|
3
3
|
import { request as __request } from '../core/request.js';
|
|
4
4
|
export class OrganizationsService {
|
|
5
|
-
/**
|
|
6
|
-
* Create Organization
|
|
7
|
-
* Create a new organization
|
|
8
|
-
* @param requestBody
|
|
9
|
-
* @returns OrganizationResponse Successful Response
|
|
10
|
-
* @throws ApiError
|
|
11
|
-
*/
|
|
12
|
-
static orgCreate(requestBody) {
|
|
13
|
-
return __request(OpenAPI, {
|
|
14
|
-
method: 'POST',
|
|
15
|
-
url: '/organizations',
|
|
16
|
-
body: requestBody,
|
|
17
|
-
mediaType: 'application/json',
|
|
18
|
-
errors: {
|
|
19
|
-
422: `Validation Error`,
|
|
20
|
-
},
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
5
|
/**
|
|
24
6
|
* List My Organizations
|
|
25
7
|
* Get all organizations the current user belongs to
|
|
@@ -41,6 +23,24 @@ export class OrganizationsService {
|
|
|
41
23
|
},
|
|
42
24
|
});
|
|
43
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* Create Organization
|
|
28
|
+
* Create a new organization
|
|
29
|
+
* @param requestBody
|
|
30
|
+
* @returns OrganizationResponse Successful Response
|
|
31
|
+
* @throws ApiError
|
|
32
|
+
*/
|
|
33
|
+
static orgCreate(requestBody) {
|
|
34
|
+
return __request(OpenAPI, {
|
|
35
|
+
method: 'POST',
|
|
36
|
+
url: '/organizations',
|
|
37
|
+
body: requestBody,
|
|
38
|
+
mediaType: 'application/json',
|
|
39
|
+
errors: {
|
|
40
|
+
422: `Validation Error`,
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
44
|
/**
|
|
45
45
|
* List My Invitations
|
|
46
46
|
* Get all pending invitations for the current user
|
|
@@ -65,18 +65,18 @@ export class OrganizationsService {
|
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
* @param
|
|
71
|
-
* @returns
|
|
68
|
+
* Revoke Invitation
|
|
69
|
+
* Revoke an organization invitation
|
|
70
|
+
* @param invitationId
|
|
71
|
+
* @returns void
|
|
72
72
|
* @throws ApiError
|
|
73
73
|
*/
|
|
74
|
-
static
|
|
74
|
+
static orgInvitationRevoke(invitationId) {
|
|
75
75
|
return __request(OpenAPI, {
|
|
76
|
-
method: '
|
|
77
|
-
url: '/organizations/{
|
|
76
|
+
method: 'DELETE',
|
|
77
|
+
url: '/organizations/invitations/{invitation_id}',
|
|
78
78
|
path: {
|
|
79
|
-
'
|
|
79
|
+
'invitation_id': invitationId,
|
|
80
80
|
},
|
|
81
81
|
errors: {
|
|
82
82
|
422: `Validation Error`,
|
|
@@ -84,24 +84,37 @@ export class OrganizationsService {
|
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
/**
|
|
87
|
-
*
|
|
88
|
-
* Get
|
|
89
|
-
* @param
|
|
90
|
-
* @
|
|
91
|
-
* @param pageToken
|
|
92
|
-
* @returns OrganizationMemberListResponse Successful Response
|
|
87
|
+
* Get Organization Invitation
|
|
88
|
+
* Get an invitation by id
|
|
89
|
+
* @param invitationId
|
|
90
|
+
* @returns OrganizationInvitationResponse Successful Response
|
|
93
91
|
* @throws ApiError
|
|
94
92
|
*/
|
|
95
|
-
static
|
|
93
|
+
static orgInvitationGet(invitationId) {
|
|
96
94
|
return __request(OpenAPI, {
|
|
97
95
|
method: 'GET',
|
|
98
|
-
url: '/organizations/{
|
|
96
|
+
url: '/organizations/invitations/{invitation_id}',
|
|
99
97
|
path: {
|
|
100
|
-
'
|
|
98
|
+
'invitation_id': invitationId,
|
|
101
99
|
},
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
100
|
+
errors: {
|
|
101
|
+
422: `Validation Error`,
|
|
102
|
+
},
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Accept Invitation
|
|
107
|
+
* Accept an organization invitation
|
|
108
|
+
* @param invitationId
|
|
109
|
+
* @returns OrganizationMessageResponse Successful Response
|
|
110
|
+
* @throws ApiError
|
|
111
|
+
*/
|
|
112
|
+
static orgInvitationAccept(invitationId) {
|
|
113
|
+
return __request(OpenAPI, {
|
|
114
|
+
method: 'POST',
|
|
115
|
+
url: '/organizations/invitations/{invitation_id}/accept',
|
|
116
|
+
path: {
|
|
117
|
+
'invitation_id': invitationId,
|
|
105
118
|
},
|
|
106
119
|
errors: {
|
|
107
120
|
422: `Validation Error`,
|
|
@@ -109,22 +122,19 @@ export class OrganizationsService {
|
|
|
109
122
|
});
|
|
110
123
|
}
|
|
111
124
|
/**
|
|
112
|
-
*
|
|
113
|
-
*
|
|
125
|
+
* Get Organization
|
|
126
|
+
* Get organization details
|
|
114
127
|
* @param orgId
|
|
115
|
-
* @
|
|
116
|
-
* @returns OrganizationInvitationResponse Successful Response
|
|
128
|
+
* @returns OrganizationResponse Successful Response
|
|
117
129
|
* @throws ApiError
|
|
118
130
|
*/
|
|
119
|
-
static
|
|
131
|
+
static orgGet(orgId) {
|
|
120
132
|
return __request(OpenAPI, {
|
|
121
|
-
method: '
|
|
122
|
-
url: '/organizations/{org_id}
|
|
133
|
+
method: 'GET',
|
|
134
|
+
url: '/organizations/{org_id}',
|
|
123
135
|
path: {
|
|
124
136
|
'org_id': orgId,
|
|
125
137
|
},
|
|
126
|
-
body: requestBody,
|
|
127
|
-
mediaType: 'application/json',
|
|
128
138
|
errors: {
|
|
129
139
|
422: `Validation Error`,
|
|
130
140
|
},
|
|
@@ -158,37 +168,46 @@ export class OrganizationsService {
|
|
|
158
168
|
});
|
|
159
169
|
}
|
|
160
170
|
/**
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
* @param
|
|
164
|
-
* @
|
|
171
|
+
* Invite Member
|
|
172
|
+
* Invite a user to join the organization
|
|
173
|
+
* @param orgId
|
|
174
|
+
* @param requestBody
|
|
175
|
+
* @returns OrganizationInvitationResponse Successful Response
|
|
165
176
|
* @throws ApiError
|
|
166
177
|
*/
|
|
167
|
-
static
|
|
178
|
+
static orgInvitationInvite(orgId, requestBody) {
|
|
168
179
|
return __request(OpenAPI, {
|
|
169
180
|
method: 'POST',
|
|
170
|
-
url: '/organizations/
|
|
181
|
+
url: '/organizations/{org_id}/invitations',
|
|
171
182
|
path: {
|
|
172
|
-
'
|
|
183
|
+
'org_id': orgId,
|
|
173
184
|
},
|
|
185
|
+
body: requestBody,
|
|
186
|
+
mediaType: 'application/json',
|
|
174
187
|
errors: {
|
|
175
188
|
422: `Validation Error`,
|
|
176
189
|
},
|
|
177
190
|
});
|
|
178
191
|
}
|
|
179
192
|
/**
|
|
180
|
-
*
|
|
181
|
-
* Get
|
|
182
|
-
* @param
|
|
183
|
-
* @
|
|
193
|
+
* List Organization Members
|
|
194
|
+
* Get all members of an organization
|
|
195
|
+
* @param orgId
|
|
196
|
+
* @param limit
|
|
197
|
+
* @param pageToken
|
|
198
|
+
* @returns OrganizationMemberListResponse Successful Response
|
|
184
199
|
* @throws ApiError
|
|
185
200
|
*/
|
|
186
|
-
static
|
|
201
|
+
static orgMemberList(orgId, limit = 100, pageToken) {
|
|
187
202
|
return __request(OpenAPI, {
|
|
188
203
|
method: 'GET',
|
|
189
|
-
url: '/organizations/
|
|
204
|
+
url: '/organizations/{org_id}/members',
|
|
190
205
|
path: {
|
|
191
|
-
'
|
|
206
|
+
'org_id': orgId,
|
|
207
|
+
},
|
|
208
|
+
query: {
|
|
209
|
+
'limit': limit,
|
|
210
|
+
'page_token': pageToken,
|
|
192
211
|
},
|
|
193
212
|
errors: {
|
|
194
213
|
422: `Validation Error`,
|
|
@@ -196,18 +215,20 @@ export class OrganizationsService {
|
|
|
196
215
|
});
|
|
197
216
|
}
|
|
198
217
|
/**
|
|
199
|
-
*
|
|
200
|
-
*
|
|
201
|
-
* @param
|
|
218
|
+
* Remove Member
|
|
219
|
+
* Remove a member from the organization
|
|
220
|
+
* @param orgId
|
|
221
|
+
* @param memberId
|
|
202
222
|
* @returns void
|
|
203
223
|
* @throws ApiError
|
|
204
224
|
*/
|
|
205
|
-
static
|
|
225
|
+
static orgMemberRemove(orgId, memberId) {
|
|
206
226
|
return __request(OpenAPI, {
|
|
207
227
|
method: 'DELETE',
|
|
208
|
-
url: '/organizations/
|
|
228
|
+
url: '/organizations/{org_id}/members/{member_id}',
|
|
209
229
|
path: {
|
|
210
|
-
'
|
|
230
|
+
'org_id': orgId,
|
|
231
|
+
'member_id': memberId,
|
|
211
232
|
},
|
|
212
233
|
errors: {
|
|
213
234
|
422: `Validation Error`,
|
|
@@ -238,25 +259,4 @@ export class OrganizationsService {
|
|
|
238
259
|
},
|
|
239
260
|
});
|
|
240
261
|
}
|
|
241
|
-
/**
|
|
242
|
-
* Remove Member
|
|
243
|
-
* Remove a member from the organization
|
|
244
|
-
* @param orgId
|
|
245
|
-
* @param memberId
|
|
246
|
-
* @returns void
|
|
247
|
-
* @throws ApiError
|
|
248
|
-
*/
|
|
249
|
-
static orgMemberRemove(orgId, memberId) {
|
|
250
|
-
return __request(OpenAPI, {
|
|
251
|
-
method: 'DELETE',
|
|
252
|
-
url: '/organizations/{org_id}/members/{member_id}',
|
|
253
|
-
path: {
|
|
254
|
-
'org_id': orgId,
|
|
255
|
-
'member_id': memberId,
|
|
256
|
-
},
|
|
257
|
-
errors: {
|
|
258
|
-
422: `Validation Error`,
|
|
259
|
-
},
|
|
260
|
-
});
|
|
261
|
-
}
|
|
262
262
|
}
|
|
@@ -4,15 +4,6 @@ import type { PodMemberResponse } from '../models/PodMemberResponse.js';
|
|
|
4
4
|
import type { PodMemberUpdateRoleRequest } from '../models/PodMemberUpdateRoleRequest.js';
|
|
5
5
|
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
6
6
|
export declare class PodMembersService {
|
|
7
|
-
/**
|
|
8
|
-
* Add Pod Member
|
|
9
|
-
* Add a member to a pod
|
|
10
|
-
* @param podId
|
|
11
|
-
* @param requestBody
|
|
12
|
-
* @returns PodMemberResponse Successful Response
|
|
13
|
-
* @throws ApiError
|
|
14
|
-
*/
|
|
15
|
-
static podMemberAdd(podId: string, requestBody: PodMemberAddRequest): CancelablePromise<PodMemberResponse>;
|
|
16
7
|
/**
|
|
17
8
|
* List Pod Members
|
|
18
9
|
* List all members of a pod
|
|
@@ -24,15 +15,14 @@ export declare class PodMembersService {
|
|
|
24
15
|
*/
|
|
25
16
|
static podMemberList(podId: string, limit?: number, pageToken?: (string | null)): CancelablePromise<PodMemberListResponse>;
|
|
26
17
|
/**
|
|
27
|
-
*
|
|
28
|
-
*
|
|
18
|
+
* Add Pod Member
|
|
19
|
+
* Add a member to a pod
|
|
29
20
|
* @param podId
|
|
30
|
-
* @param memberId
|
|
31
21
|
* @param requestBody
|
|
32
22
|
* @returns PodMemberResponse Successful Response
|
|
33
23
|
* @throws ApiError
|
|
34
24
|
*/
|
|
35
|
-
static
|
|
25
|
+
static podMemberAdd(podId: string, requestBody: PodMemberAddRequest): CancelablePromise<PodMemberResponse>;
|
|
36
26
|
/**
|
|
37
27
|
* Remove Pod Member
|
|
38
28
|
* Remove a member from a pod
|
|
@@ -42,4 +32,14 @@ export declare class PodMembersService {
|
|
|
42
32
|
* @throws ApiError
|
|
43
33
|
*/
|
|
44
34
|
static podMemberRemove(podId: string, memberId: string): CancelablePromise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* Update Member Role
|
|
37
|
+
* Update a pod member's role
|
|
38
|
+
* @param podId
|
|
39
|
+
* @param memberId
|
|
40
|
+
* @param requestBody
|
|
41
|
+
* @returns PodMemberResponse Successful Response
|
|
42
|
+
* @throws ApiError
|
|
43
|
+
*/
|
|
44
|
+
static podMemberUpdateRole(podId: string, memberId: string, requestBody: PodMemberUpdateRoleRequest): CancelablePromise<PodMemberResponse>;
|
|
45
45
|
}
|
|
@@ -1,28 +1,6 @@
|
|
|
1
1
|
import { OpenAPI } from '../core/OpenAPI.js';
|
|
2
2
|
import { request as __request } from '../core/request.js';
|
|
3
3
|
export class PodMembersService {
|
|
4
|
-
/**
|
|
5
|
-
* Add Pod Member
|
|
6
|
-
* Add a member to a pod
|
|
7
|
-
* @param podId
|
|
8
|
-
* @param requestBody
|
|
9
|
-
* @returns PodMemberResponse Successful Response
|
|
10
|
-
* @throws ApiError
|
|
11
|
-
*/
|
|
12
|
-
static podMemberAdd(podId, requestBody) {
|
|
13
|
-
return __request(OpenAPI, {
|
|
14
|
-
method: 'POST',
|
|
15
|
-
url: '/pods/{pod_id}/members',
|
|
16
|
-
path: {
|
|
17
|
-
'pod_id': podId,
|
|
18
|
-
},
|
|
19
|
-
body: requestBody,
|
|
20
|
-
mediaType: 'application/json',
|
|
21
|
-
errors: {
|
|
22
|
-
422: `Validation Error`,
|
|
23
|
-
},
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
4
|
/**
|
|
27
5
|
* List Pod Members
|
|
28
6
|
* List all members of a pod
|
|
@@ -49,21 +27,19 @@ export class PodMembersService {
|
|
|
49
27
|
});
|
|
50
28
|
}
|
|
51
29
|
/**
|
|
52
|
-
*
|
|
53
|
-
*
|
|
30
|
+
* Add Pod Member
|
|
31
|
+
* Add a member to a pod
|
|
54
32
|
* @param podId
|
|
55
|
-
* @param memberId
|
|
56
33
|
* @param requestBody
|
|
57
34
|
* @returns PodMemberResponse Successful Response
|
|
58
35
|
* @throws ApiError
|
|
59
36
|
*/
|
|
60
|
-
static
|
|
37
|
+
static podMemberAdd(podId, requestBody) {
|
|
61
38
|
return __request(OpenAPI, {
|
|
62
|
-
method: '
|
|
63
|
-
url: '/pods/{pod_id}/members
|
|
39
|
+
method: 'POST',
|
|
40
|
+
url: '/pods/{pod_id}/members',
|
|
64
41
|
path: {
|
|
65
42
|
'pod_id': podId,
|
|
66
|
-
'member_id': memberId,
|
|
67
43
|
},
|
|
68
44
|
body: requestBody,
|
|
69
45
|
mediaType: 'application/json',
|
|
@@ -93,4 +69,28 @@ export class PodMembersService {
|
|
|
93
69
|
},
|
|
94
70
|
});
|
|
95
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* Update Member Role
|
|
74
|
+
* Update a pod member's role
|
|
75
|
+
* @param podId
|
|
76
|
+
* @param memberId
|
|
77
|
+
* @param requestBody
|
|
78
|
+
* @returns PodMemberResponse Successful Response
|
|
79
|
+
* @throws ApiError
|
|
80
|
+
*/
|
|
81
|
+
static podMemberUpdateRole(podId, memberId, requestBody) {
|
|
82
|
+
return __request(OpenAPI, {
|
|
83
|
+
method: 'PATCH',
|
|
84
|
+
url: '/pods/{pod_id}/members/{member_id}/role',
|
|
85
|
+
path: {
|
|
86
|
+
'pod_id': podId,
|
|
87
|
+
'member_id': memberId,
|
|
88
|
+
},
|
|
89
|
+
body: requestBody,
|
|
90
|
+
mediaType: 'application/json',
|
|
91
|
+
errors: {
|
|
92
|
+
422: `Validation Error`,
|
|
93
|
+
},
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
96
|
}
|