neuland-hub-sdk 1.0.3
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/.openapi-generator/FILES +314 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +27 -0
- package/LICENSE +10 -0
- package/README.md +619 -0
- package/api.ts +32704 -0
- package/base.ts +62 -0
- package/common.ts +127 -0
- package/configuration.ts +121 -0
- package/dist/api.d.ts +17739 -0
- package/dist/api.js +35085 -0
- package/dist/base.d.ts +42 -0
- package/dist/base.js +67 -0
- package/dist/common.d.ts +34 -0
- package/dist/common.js +231 -0
- package/dist/configuration.d.ts +98 -0
- package/dist/configuration.js +57 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +31 -0
- package/docs/AccessItemOut.md +31 -0
- package/docs/AccessKind.md +13 -0
- package/docs/Alert.md +416 -0
- package/docs/ApiKey.md +123 -0
- package/docs/ApiKeyCreateRequest.md +23 -0
- package/docs/ApiKeyCreateResponse.md +27 -0
- package/docs/ApiKeyInventoryRequest.md +21 -0
- package/docs/ApiKeyInventoryResponse.md +22 -0
- package/docs/ApiKeyInventoryRow.md +36 -0
- package/docs/Application.md +308 -0
- package/docs/ApplicationAccessIn.md +23 -0
- package/docs/ApplicationCatalog.md +43 -0
- package/docs/ApplicationCatalogIn.md +29 -0
- package/docs/ApplicationCatalogUpdate.md +29 -0
- package/docs/ApplicationGroupOut.md +31 -0
- package/docs/ApplicationIn.md +37 -0
- package/docs/ApplicationMarketplace.md +490 -0
- package/docs/ApplicationMemberOut.md +31 -0
- package/docs/Assistant.md +1269 -0
- package/docs/AssistantCatalog.md +53 -0
- package/docs/AssistantCatalogIn.md +38 -0
- package/docs/AssistantCatalogToolOut.md +27 -0
- package/docs/AssistantCatalogUpdate.md +38 -0
- package/docs/AssistantGroupOut.md +31 -0
- package/docs/AssistantGroupsIn.md +20 -0
- package/docs/AssistantIn.md +42 -0
- package/docs/AssistantInputTypeEnum.md +10 -0
- package/docs/AssistantLibrary.md +30 -0
- package/docs/AssistantMarketplace.md +644 -0
- package/docs/AssistantMemberGrantedViaEnum.md +10 -0
- package/docs/AssistantMemberOut.md +29 -0
- package/docs/AssistantMembersIn.md +20 -0
- package/docs/AssistantTool.md +26 -0
- package/docs/AssistantVisibilityEnum.md +10 -0
- package/docs/AssistantVisibilityUpdate.md +21 -0
- package/docs/Atlassian.md +69 -0
- package/docs/Auth.md +816 -0
- package/docs/AuthConnector.md +622 -0
- package/docs/Bcc.md +19 -0
- package/docs/BudgetAlert.md +41 -0
- package/docs/BudgetAlertRequest.md +23 -0
- package/docs/BudgetAlertUpdate.md +25 -0
- package/docs/BudgetForecast.md +35 -0
- package/docs/BudgetSummary.md +43 -0
- package/docs/BudgetTopUpOut.md +29 -0
- package/docs/BudgetTopUpRequest.md +21 -0
- package/docs/BulkResult.md +22 -0
- package/docs/CatalogIn.md +46 -0
- package/docs/CatalogUpdate.md +46 -0
- package/docs/Category.md +61 -0
- package/docs/CategoryOut.md +33 -0
- package/docs/Cc.md +19 -0
- package/docs/Chat.md +555 -0
- package/docs/ChatIn.md +34 -0
- package/docs/ChatInactiveDocumentOut.md +27 -0
- package/docs/ChatLibrary.md +30 -0
- package/docs/ClarificationAnswer.md +25 -0
- package/docs/ConnectSharedMailboxIn.md +22 -0
- package/docs/Connector.md +44 -0
- package/docs/ConnectorAuthType.md +13 -0
- package/docs/ConnectorConsentOut.md +22 -0
- package/docs/ConnectorOut.md +30 -0
- package/docs/ConnectorStatusOut.md +38 -0
- package/docs/ConnectorUpdate.md +20 -0
- package/docs/CostAudioPerMinute.md +19 -0
- package/docs/CostByModel.md +32 -0
- package/docs/CostBySource.md +30 -0
- package/docs/CostCacheCreationTokens.md +19 -0
- package/docs/CostCacheCreationTokensAboveTier.md +19 -0
- package/docs/CostCachedTokens.md +19 -0
- package/docs/CostCachedTokensAboveTier.md +19 -0
- package/docs/CostCompletionTokens.md +19 -0
- package/docs/CostCompletionTokens1.md +19 -0
- package/docs/CostCompletionTokensAboveTier.md +19 -0
- package/docs/CostPromptTokens.md +19 -0
- package/docs/CostPromptTokens1.md +19 -0
- package/docs/CostPromptTokensAboveTier.md +19 -0
- package/docs/CostTimeseriesPoint.md +26 -0
- package/docs/CreateOutlookDraftRequest.md +35 -0
- package/docs/CreateOutlookDraftResponse.md +31 -0
- package/docs/CredentialIn.md +20 -0
- package/docs/CredentialPartOut.md +26 -0
- package/docs/CredentialTemplateOut.md +30 -0
- package/docs/CustomConnector.md +231 -0
- package/docs/CustomConnectorCreate.md +27 -0
- package/docs/CustomConnectorOut.md +30 -0
- package/docs/CustomConnectorUpdate.md +22 -0
- package/docs/DataSourceCapabilities.md +25 -0
- package/docs/DataSourceDriveModel.md +31 -0
- package/docs/DataSourceFolderModel.md +21 -0
- package/docs/DataSourceItemModel.md +47 -0
- package/docs/DataSourceSiteModel.md +31 -0
- package/docs/DataSourceUserModel.md +29 -0
- package/docs/DateWindowRequest.md +23 -0
- package/docs/Default.md +240 -0
- package/docs/DirectFileUrl.md +22 -0
- package/docs/Document.md +533 -0
- package/docs/DocumentMetrics.md +26 -0
- package/docs/DocumentTextOut.md +21 -0
- package/docs/DocumentUsageRequest.md +31 -0
- package/docs/DocumentUsageResponse.md +32 -0
- package/docs/DocumentUsageRow.md +30 -0
- package/docs/Dropbox.md +458 -0
- package/docs/EmailCatalogOut.md +25 -0
- package/docs/EmailSpec.md +27 -0
- package/docs/EmailTemplateKey.md +35 -0
- package/docs/Example.md +19 -0
- package/docs/FeatureFlag.md +194 -0
- package/docs/FeatureFlagOut.md +28 -0
- package/docs/FeatureFlagSetIn.md +20 -0
- package/docs/File.md +125 -0
- package/docs/FormField.md +33 -0
- package/docs/FormFieldTypeEnum.md +20 -0
- package/docs/GoogleDrive.md +458 -0
- package/docs/GroupAppAccessIn.md +23 -0
- package/docs/GroupIn.md +27 -0
- package/docs/GroupSyncOut.md +25 -0
- package/docs/HTTPValidationError.md +20 -0
- package/docs/IdleAssistant.md +24 -0
- package/docs/Invitation.md +293 -0
- package/docs/InvitationIn.md +28 -0
- package/docs/InvitationOut.md +44 -0
- package/docs/LLMConnectionTestIn.md +43 -0
- package/docs/LLMConnectionTestOut.md +25 -0
- package/docs/LLMSettingsIn.md +68 -0
- package/docs/LLMSettingsUpdate.md +68 -0
- package/docs/Library.md +437 -0
- package/docs/LibraryIn.md +22 -0
- package/docs/LibraryMemberBulkDelete.md +20 -0
- package/docs/LibraryMemberBulkIn.md +20 -0
- package/docs/LibraryMemberIn.md +22 -0
- package/docs/LibraryMemberOut.md +29 -0
- package/docs/LibraryUpdateIn.md +22 -0
- package/docs/LicenseUtilization.md +26 -0
- package/docs/Llm.md +540 -0
- package/docs/LlmCatalog.md +188 -0
- package/docs/LlmSetting.md +331 -0
- package/docs/LocationInner.md +18 -0
- package/docs/MarketplaceCatalogStateEnum.md +11 -0
- package/docs/MarketplaceCatalogStateUpdate.md +21 -0
- package/docs/Message.md +602 -0
- package/docs/MessageDetailOut.md +57 -0
- package/docs/MessageFileOut.md +26 -0
- package/docs/MessageIn.md +50 -0
- package/docs/MessageSubmitOut.md +65 -0
- package/docs/MessageTokensResponse.md +32 -0
- package/docs/MessageTurnOut.md +22 -0
- package/docs/ModelDelta.md +26 -0
- package/docs/ModelTierEnum.md +13 -0
- package/docs/MoversResponse.md +34 -0
- package/docs/NeulandAssistantsTaggingOut.md +29 -0
- package/docs/NeulandMarketplaceAssistantSchemasTaggingOut.md +29 -0
- package/docs/Nextcloud.md +458 -0
- package/docs/OAuth2ProviderEnum.md +35 -0
- package/docs/OAuthClient.md +40 -0
- package/docs/OAuthClientUpdate.md +26 -0
- package/docs/OneDrive.md +458 -0
- package/docs/OutputFormat.md +20 -0
- package/docs/PasswordResetIn.md +22 -0
- package/docs/PasswordResetRequestIn.md +20 -0
- package/docs/PlanStatus.md +19 -0
- package/docs/Project.md +615 -0
- package/docs/ProjectIn.md +24 -0
- package/docs/ProjectLibrary.md +30 -0
- package/docs/ProjectMember.md +28 -0
- package/docs/ProjectMemberBulkDelete.md +20 -0
- package/docs/ProjectMemberBulkIn.md +20 -0
- package/docs/ProjectMemberIn.md +22 -0
- package/docs/Prompt.md +248 -0
- package/docs/PromptIn.md +26 -0
- package/docs/PromptOptimizeIn.md +22 -0
- package/docs/PromptOptimizeOut.md +20 -0
- package/docs/Query.md +123 -0
- package/docs/RateableTypeEnum.md +13 -0
- package/docs/Rating.md +129 -0
- package/docs/RatingIn.md +27 -0
- package/docs/ReasoningEffortEnum.md +13 -0
- package/docs/RephraseStyleEnum.md +12 -0
- package/docs/ResourceAccess.md +197 -0
- package/docs/ResponseAuthGetEntraGroupsValue.md +18 -0
- package/docs/ResponseDropboxListRoots.md +18 -0
- package/docs/ResponseGoogledriveListRoots.md +18 -0
- package/docs/ResponseNextcloudListRoots.md +18 -0
- package/docs/ResponseOnedriveListRoots.md +18 -0
- package/docs/ResponseSharepointv1ListRoots.md +18 -0
- package/docs/ResumeIn.md +26 -0
- package/docs/Role.md +495 -0
- package/docs/RoleIn.md +39 -0
- package/docs/RoleUpdateIn.md +36 -0
- package/docs/RunCreateOut.md +22 -0
- package/docs/SecretUpdateIn.md +20 -0
- package/docs/SendEmailRequest.md +35 -0
- package/docs/SendEmailResponse.md +27 -0
- package/docs/SetAtlassianCloudIdRequest.md +21 -0
- package/docs/Settings.md +183 -0
- package/docs/SettingsIn.md +52 -0
- package/docs/SharedMailbox.md +29 -0
- package/docs/SharedMailboxCandidateOut.md +26 -0
- package/docs/SharedMailboxListOut.md +20 -0
- package/docs/SharedMailboxSearchOut.md +20 -0
- package/docs/Sharepoint.md +402 -0
- package/docs/SharepointDriveModel.md +31 -0
- package/docs/SharepointFolderModel.md +21 -0
- package/docs/SharepointItemModel.md +47 -0
- package/docs/SharepointSiteModel.md +31 -0
- package/docs/SharepointUserModel.md +29 -0
- package/docs/SharepointV1.md +458 -0
- package/docs/SsoExchangeIn.md +22 -0
- package/docs/SsoInitOut.md +24 -0
- package/docs/SsoResolveOut.md +22 -0
- package/docs/Storage.md +66 -0
- package/docs/StreamTokenOut.md +20 -0
- package/docs/SubtenantUsageResponse.md +26 -0
- package/docs/SubtenantUsageRow.md +34 -0
- package/docs/System.md +122 -0
- package/docs/SystemSettings.md +44 -0
- package/docs/SystemSettingsUpdate.md +41 -0
- package/docs/Tag.md +187 -0
- package/docs/TagIn.md +20 -0
- package/docs/TaggableTypeEnum.md +12 -0
- package/docs/Tagging.md +32 -0
- package/docs/Tarif.md +189 -0
- package/docs/TarifIn.md +39 -0
- package/docs/TarifStatusEnum.md +11 -0
- package/docs/Template.md +243 -0
- package/docs/TemplateIn.md +31 -0
- package/docs/TemplateOut.md +35 -0
- package/docs/TemplateUpdate.md +31 -0
- package/docs/Tenant.md +1189 -0
- package/docs/TenantIn.md +68 -0
- package/docs/TenantLLM.md +33 -0
- package/docs/TenantModelBulkIn.md +22 -0
- package/docs/TenantModelIn.md +20 -0
- package/docs/TenantOAuthClientIn.md +32 -0
- package/docs/TenantOAuthClientOut.md +36 -0
- package/docs/TenantOAuthClientUpdate.md +30 -0
- package/docs/TenantOut.md +76 -0
- package/docs/TenantThemeOut.md +46 -0
- package/docs/TenantUpdateIn.md +66 -0
- package/docs/ThemeModeEnum.md +12 -0
- package/docs/TimeseriesPoint.md +23 -0
- package/docs/TimeseriesResponse.md +23 -0
- package/docs/To.md +19 -0
- package/docs/To1.md +19 -0
- package/docs/TokenOut.md +22 -0
- package/docs/TokenTimeseriesPerModel.md +23 -0
- package/docs/TokenTimeseriesPoint.md +23 -0
- package/docs/TokensPerModel.md +31 -0
- package/docs/TokensTimeseriesResponse.md +31 -0
- package/docs/Tool.md +188 -0
- package/docs/ToolAction.md +355 -0
- package/docs/ToolCallOut.md +38 -0
- package/docs/ToolCallProgressStepOut.md +24 -0
- package/docs/ToolCreate.md +27 -0
- package/docs/ToolOut.md +35 -0
- package/docs/ToolUpdate.md +27 -0
- package/docs/Transcription.md +114 -0
- package/docs/TranscriptionOut.md +27 -0
- package/docs/TranscriptionSegment.md +27 -0
- package/docs/Translation.md +20 -0
- package/docs/UsageCostRequest.md +30 -0
- package/docs/UsageCostResponse.md +40 -0
- package/docs/UsageMetrics.md +28 -0
- package/docs/UsageQueryRequest.md +41 -0
- package/docs/UsageQueryResponse.md +32 -0
- package/docs/UsageRequest.md +25 -0
- package/docs/UsageRow.md +32 -0
- package/docs/User.md +786 -0
- package/docs/UserAccessOut.md +31 -0
- package/docs/UserGrantIn.md +21 -0
- package/docs/UserGrantOut.md +27 -0
- package/docs/UserGroup.md +39 -0
- package/docs/UserGroupMember.md +29 -0
- package/docs/UserGroupSource.md +11 -0
- package/docs/UserIn.md +34 -0
- package/docs/UserMeOut.md +51 -0
- package/docs/UserOut.md +48 -0
- package/docs/UserPreferenceOut.md +28 -0
- package/docs/UserPreferenceUpdateIn.md +24 -0
- package/docs/UserUpdateIn.md +34 -0
- package/docs/UtilizationRequest.md +24 -0
- package/docs/UtilizationResponse.md +28 -0
- package/docs/ValidationError.md +28 -0
- package/docs/VariableSpec.md +27 -0
- package/docs/Workflow.md +411 -0
- package/docs/WorkflowChatIn.md +20 -0
- package/docs/WorkflowChatOut.md +26 -0
- package/docs/WorkflowIn.md +30 -0
- package/docs/WorkflowUpdateIn.md +28 -0
- package/index.ts +18 -0
- package/package.json +31 -0
- package/tsconfig.json +21 -0
package/docs/Tool.md
ADDED
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
# Tool
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**toolsCreateTool**](#toolscreatetool) | **POST** /tools/ | Create a tool|
|
|
8
|
+
|[**toolsDeleteTool**](#toolsdeletetool) | **DELETE** /tools/{tool_id} | Delete a tool|
|
|
9
|
+
|[**toolsUpdateTool**](#toolsupdatetool) | **PATCH** /tools/{tool_id} | Update a tool|
|
|
10
|
+
|
|
11
|
+
# **toolsCreateTool**
|
|
12
|
+
> ToolOut toolsCreateTool(toolCreate)
|
|
13
|
+
|
|
14
|
+
Create a new tool (superadmin only).
|
|
15
|
+
|
|
16
|
+
### Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import {
|
|
20
|
+
Tool,
|
|
21
|
+
Configuration,
|
|
22
|
+
ToolCreate
|
|
23
|
+
} from 'neuland-hub-sdk';
|
|
24
|
+
|
|
25
|
+
const configuration = new Configuration();
|
|
26
|
+
const apiInstance = new Tool(configuration);
|
|
27
|
+
|
|
28
|
+
let toolCreate: ToolCreate; //
|
|
29
|
+
let cookieName: string; // (optional) (default to undefined)
|
|
30
|
+
|
|
31
|
+
const { status, data } = await apiInstance.toolsCreateTool(
|
|
32
|
+
toolCreate,
|
|
33
|
+
cookieName
|
|
34
|
+
);
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Parameters
|
|
38
|
+
|
|
39
|
+
|Name | Type | Description | Notes|
|
|
40
|
+
|------------- | ------------- | ------------- | -------------|
|
|
41
|
+
| **toolCreate** | **ToolCreate**| | |
|
|
42
|
+
| **cookieName** | [**string**] | | (optional) defaults to undefined|
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Return type
|
|
46
|
+
|
|
47
|
+
**ToolOut**
|
|
48
|
+
|
|
49
|
+
### Authorization
|
|
50
|
+
|
|
51
|
+
[APIKeyHeader](../README.md#APIKeyHeader), [OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
|
|
52
|
+
|
|
53
|
+
### HTTP request headers
|
|
54
|
+
|
|
55
|
+
- **Content-Type**: application/json
|
|
56
|
+
- **Accept**: application/json
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### HTTP response details
|
|
60
|
+
| Status code | Description | Response headers |
|
|
61
|
+
|-------------|-------------|------------------|
|
|
62
|
+
|**201** | Successful Response | - |
|
|
63
|
+
|**401** | Missing or invalid authentication. | - |
|
|
64
|
+
|**403** | Caller is not a superadmin. | - |
|
|
65
|
+
|**422** | Invalid payload, an unknown or inactive category public_id, or a tool with the given name already exists. | - |
|
|
66
|
+
|
|
67
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
68
|
+
|
|
69
|
+
# **toolsDeleteTool**
|
|
70
|
+
> toolsDeleteTool()
|
|
71
|
+
|
|
72
|
+
Delete a tool (superadmin only).
|
|
73
|
+
|
|
74
|
+
### Example
|
|
75
|
+
|
|
76
|
+
```typescript
|
|
77
|
+
import {
|
|
78
|
+
Tool,
|
|
79
|
+
Configuration
|
|
80
|
+
} from 'neuland-hub-sdk';
|
|
81
|
+
|
|
82
|
+
const configuration = new Configuration();
|
|
83
|
+
const apiInstance = new Tool(configuration);
|
|
84
|
+
|
|
85
|
+
let toolId: string; //Public id of the tool to delete. (default to undefined)
|
|
86
|
+
let cookieName: string; // (optional) (default to undefined)
|
|
87
|
+
|
|
88
|
+
const { status, data } = await apiInstance.toolsDeleteTool(
|
|
89
|
+
toolId,
|
|
90
|
+
cookieName
|
|
91
|
+
);
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Parameters
|
|
95
|
+
|
|
96
|
+
|Name | Type | Description | Notes|
|
|
97
|
+
|------------- | ------------- | ------------- | -------------|
|
|
98
|
+
| **toolId** | [**string**] | Public id of the tool to delete. | defaults to undefined|
|
|
99
|
+
| **cookieName** | [**string**] | | (optional) defaults to undefined|
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
### Return type
|
|
103
|
+
|
|
104
|
+
void (empty response body)
|
|
105
|
+
|
|
106
|
+
### Authorization
|
|
107
|
+
|
|
108
|
+
[APIKeyHeader](../README.md#APIKeyHeader), [OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
|
|
109
|
+
|
|
110
|
+
### HTTP request headers
|
|
111
|
+
|
|
112
|
+
- **Content-Type**: Not defined
|
|
113
|
+
- **Accept**: application/json
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
### HTTP response details
|
|
117
|
+
| Status code | Description | Response headers |
|
|
118
|
+
|-------------|-------------|------------------|
|
|
119
|
+
|**204** | Successful Response | - |
|
|
120
|
+
|**401** | Missing or invalid authentication. | - |
|
|
121
|
+
|**403** | Caller is not a superadmin. | - |
|
|
122
|
+
|**404** | No tool exists with the given id. | - |
|
|
123
|
+
|**422** | Validation Error | - |
|
|
124
|
+
|
|
125
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
126
|
+
|
|
127
|
+
# **toolsUpdateTool**
|
|
128
|
+
> ToolOut toolsUpdateTool(toolUpdate)
|
|
129
|
+
|
|
130
|
+
Update a tool\'s editable fields (superadmin only).
|
|
131
|
+
|
|
132
|
+
### Example
|
|
133
|
+
|
|
134
|
+
```typescript
|
|
135
|
+
import {
|
|
136
|
+
Tool,
|
|
137
|
+
Configuration,
|
|
138
|
+
ToolUpdate
|
|
139
|
+
} from 'neuland-hub-sdk';
|
|
140
|
+
|
|
141
|
+
const configuration = new Configuration();
|
|
142
|
+
const apiInstance = new Tool(configuration);
|
|
143
|
+
|
|
144
|
+
let toolId: string; //Public id of the tool to update. (default to undefined)
|
|
145
|
+
let toolUpdate: ToolUpdate; //
|
|
146
|
+
let cookieName: string; // (optional) (default to undefined)
|
|
147
|
+
|
|
148
|
+
const { status, data } = await apiInstance.toolsUpdateTool(
|
|
149
|
+
toolId,
|
|
150
|
+
toolUpdate,
|
|
151
|
+
cookieName
|
|
152
|
+
);
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
### Parameters
|
|
156
|
+
|
|
157
|
+
|Name | Type | Description | Notes|
|
|
158
|
+
|------------- | ------------- | ------------- | -------------|
|
|
159
|
+
| **toolUpdate** | **ToolUpdate**| | |
|
|
160
|
+
| **toolId** | [**string**] | Public id of the tool to update. | defaults to undefined|
|
|
161
|
+
| **cookieName** | [**string**] | | (optional) defaults to undefined|
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
### Return type
|
|
165
|
+
|
|
166
|
+
**ToolOut**
|
|
167
|
+
|
|
168
|
+
### Authorization
|
|
169
|
+
|
|
170
|
+
[APIKeyHeader](../README.md#APIKeyHeader), [OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
|
|
171
|
+
|
|
172
|
+
### HTTP request headers
|
|
173
|
+
|
|
174
|
+
- **Content-Type**: application/json
|
|
175
|
+
- **Accept**: application/json
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
### HTTP response details
|
|
179
|
+
| Status code | Description | Response headers |
|
|
180
|
+
|-------------|-------------|------------------|
|
|
181
|
+
|**200** | Successful Response | - |
|
|
182
|
+
|**401** | Missing or invalid authentication. | - |
|
|
183
|
+
|**403** | Caller is not a superadmin. | - |
|
|
184
|
+
|**404** | No tool exists with the given id. | - |
|
|
185
|
+
|**422** | Invalid payload, or an unknown or inactive category public_id. | - |
|
|
186
|
+
|
|
187
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
188
|
+
|
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
# ToolAction
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**toolactionsConnectSharedMailbox**](#toolactionsconnectsharedmailbox) | **POST** /tool-actions/email/shared-mailboxes | Connect a shared mailbox|
|
|
8
|
+
|[**toolactionsCreateEmailDraft**](#toolactionscreateemaildraft) | **POST** /tool-actions/email/draft | Create an Outlook mailbox draft from a chat draft|
|
|
9
|
+
|[**toolactionsDisconnectSharedMailbox**](#toolactionsdisconnectsharedmailbox) | **DELETE** /tool-actions/email/shared-mailboxes/{address} | Disconnect a shared mailbox|
|
|
10
|
+
|[**toolactionsListSharedMailboxes**](#toolactionslistsharedmailboxes) | **GET** /tool-actions/email/shared-mailboxes | List connected shared mailboxes|
|
|
11
|
+
|[**toolactionsSearchSharedMailboxes**](#toolactionssearchsharedmailboxes) | **GET** /tool-actions/email/shared-mailboxes/search | Search the directory for mailboxes to connect|
|
|
12
|
+
|[**toolactionsSendEmailFromDraft**](#toolactionssendemailfromdraft) | **POST** /tool-actions/email/send | Send an email from a draft|
|
|
13
|
+
|
|
14
|
+
# **toolactionsConnectSharedMailbox**
|
|
15
|
+
> SharedMailbox toolactionsConnectSharedMailbox(connectSharedMailboxIn)
|
|
16
|
+
|
|
17
|
+
Verify the caller can open the mailbox with their own token — or, for a Microsoft 365 group address, that they are a member — then add it to their allowlist. Idempotent: re-connecting updates the display name.
|
|
18
|
+
|
|
19
|
+
### Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import {
|
|
23
|
+
ToolAction,
|
|
24
|
+
Configuration,
|
|
25
|
+
ConnectSharedMailboxIn
|
|
26
|
+
} from 'neuland-hub-sdk';
|
|
27
|
+
|
|
28
|
+
const configuration = new Configuration();
|
|
29
|
+
const apiInstance = new ToolAction(configuration);
|
|
30
|
+
|
|
31
|
+
let connectSharedMailboxIn: ConnectSharedMailboxIn; //
|
|
32
|
+
let cookieName: string; // (optional) (default to undefined)
|
|
33
|
+
|
|
34
|
+
const { status, data } = await apiInstance.toolactionsConnectSharedMailbox(
|
|
35
|
+
connectSharedMailboxIn,
|
|
36
|
+
cookieName
|
|
37
|
+
);
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Parameters
|
|
41
|
+
|
|
42
|
+
|Name | Type | Description | Notes|
|
|
43
|
+
|------------- | ------------- | ------------- | -------------|
|
|
44
|
+
| **connectSharedMailboxIn** | **ConnectSharedMailboxIn**| | |
|
|
45
|
+
| **cookieName** | [**string**] | | (optional) defaults to undefined|
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### Return type
|
|
49
|
+
|
|
50
|
+
**SharedMailbox**
|
|
51
|
+
|
|
52
|
+
### Authorization
|
|
53
|
+
|
|
54
|
+
[APIKeyHeader](../README.md#APIKeyHeader), [OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
|
|
55
|
+
|
|
56
|
+
### HTTP request headers
|
|
57
|
+
|
|
58
|
+
- **Content-Type**: application/json
|
|
59
|
+
- **Accept**: application/json
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### HTTP response details
|
|
63
|
+
| Status code | Description | Response headers |
|
|
64
|
+
|-------------|-------------|------------------|
|
|
65
|
+
|**200** | Successful Response | - |
|
|
66
|
+
|**401** | Consent for the shared-mailbox scopes is required (detail.error == \'consent_required\'). | - |
|
|
67
|
+
|**403** | Microsoft 365 denied access: the caller has no permission on this mailbox, or it does not exist. | - |
|
|
68
|
+
|**422** | Invalid address, or the caller\'s own mailbox. | - |
|
|
69
|
+
|**503** | Microsoft Graph is throttling; retry after the Retry-After header. | - |
|
|
70
|
+
|
|
71
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
72
|
+
|
|
73
|
+
# **toolactionsCreateEmailDraft**
|
|
74
|
+
> CreateOutlookDraftResponse toolactionsCreateEmailDraft(createOutlookDraftRequest)
|
|
75
|
+
|
|
76
|
+
Create (not send) a draft in the user\'s mailbox — used by the draft card\'s \"Open in Outlook\" action, which cannot pass attachments through a compose deep link. Attachment scope rules are identical to sending.
|
|
77
|
+
|
|
78
|
+
### Example
|
|
79
|
+
|
|
80
|
+
```typescript
|
|
81
|
+
import {
|
|
82
|
+
ToolAction,
|
|
83
|
+
Configuration,
|
|
84
|
+
CreateOutlookDraftRequest
|
|
85
|
+
} from 'neuland-hub-sdk';
|
|
86
|
+
|
|
87
|
+
const configuration = new Configuration();
|
|
88
|
+
const apiInstance = new ToolAction(configuration);
|
|
89
|
+
|
|
90
|
+
let createOutlookDraftRequest: CreateOutlookDraftRequest; //
|
|
91
|
+
let cookieName: string; // (optional) (default to undefined)
|
|
92
|
+
|
|
93
|
+
const { status, data } = await apiInstance.toolactionsCreateEmailDraft(
|
|
94
|
+
createOutlookDraftRequest,
|
|
95
|
+
cookieName
|
|
96
|
+
);
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Parameters
|
|
100
|
+
|
|
101
|
+
|Name | Type | Description | Notes|
|
|
102
|
+
|------------- | ------------- | ------------- | -------------|
|
|
103
|
+
| **createOutlookDraftRequest** | **CreateOutlookDraftRequest**| | |
|
|
104
|
+
| **cookieName** | [**string**] | | (optional) defaults to undefined|
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
### Return type
|
|
108
|
+
|
|
109
|
+
**CreateOutlookDraftResponse**
|
|
110
|
+
|
|
111
|
+
### Authorization
|
|
112
|
+
|
|
113
|
+
[APIKeyHeader](../README.md#APIKeyHeader), [OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
|
|
114
|
+
|
|
115
|
+
### HTTP request headers
|
|
116
|
+
|
|
117
|
+
- **Content-Type**: application/json
|
|
118
|
+
- **Accept**: application/json
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
### HTTP response details
|
|
122
|
+
| Status code | Description | Response headers |
|
|
123
|
+
|-------------|-------------|------------------|
|
|
124
|
+
|**200** | Successful Response | - |
|
|
125
|
+
|**400** | Invalid attachments/recipients or the mail provider rejected the draft. | - |
|
|
126
|
+
|**401** | Missing or invalid authentication. | - |
|
|
127
|
+
|**422** | Validation Error | - |
|
|
128
|
+
|
|
129
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
130
|
+
|
|
131
|
+
# **toolactionsDisconnectSharedMailbox**
|
|
132
|
+
> toolactionsDisconnectSharedMailbox()
|
|
133
|
+
|
|
134
|
+
Remove one shared mailbox from the caller\'s allowlist. The personal consent and any other shared mailboxes are untouched.
|
|
135
|
+
|
|
136
|
+
### Example
|
|
137
|
+
|
|
138
|
+
```typescript
|
|
139
|
+
import {
|
|
140
|
+
ToolAction,
|
|
141
|
+
Configuration
|
|
142
|
+
} from 'neuland-hub-sdk';
|
|
143
|
+
|
|
144
|
+
const configuration = new Configuration();
|
|
145
|
+
const apiInstance = new ToolAction(configuration);
|
|
146
|
+
|
|
147
|
+
let address: string; //Address of the connected shared mailbox. (default to undefined)
|
|
148
|
+
let cookieName: string; // (optional) (default to undefined)
|
|
149
|
+
|
|
150
|
+
const { status, data } = await apiInstance.toolactionsDisconnectSharedMailbox(
|
|
151
|
+
address,
|
|
152
|
+
cookieName
|
|
153
|
+
);
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### Parameters
|
|
157
|
+
|
|
158
|
+
|Name | Type | Description | Notes|
|
|
159
|
+
|------------- | ------------- | ------------- | -------------|
|
|
160
|
+
| **address** | [**string**] | Address of the connected shared mailbox. | defaults to undefined|
|
|
161
|
+
| **cookieName** | [**string**] | | (optional) defaults to undefined|
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
### Return type
|
|
165
|
+
|
|
166
|
+
void (empty response body)
|
|
167
|
+
|
|
168
|
+
### Authorization
|
|
169
|
+
|
|
170
|
+
[APIKeyHeader](../README.md#APIKeyHeader), [OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
|
|
171
|
+
|
|
172
|
+
### HTTP request headers
|
|
173
|
+
|
|
174
|
+
- **Content-Type**: Not defined
|
|
175
|
+
- **Accept**: application/json
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
### HTTP response details
|
|
179
|
+
| Status code | Description | Response headers |
|
|
180
|
+
|-------------|-------------|------------------|
|
|
181
|
+
|**204** | Successful Response | - |
|
|
182
|
+
|**404** | The mailbox is not connected for the caller. | - |
|
|
183
|
+
|**422** | Validation Error | - |
|
|
184
|
+
|
|
185
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
186
|
+
|
|
187
|
+
# **toolactionsListSharedMailboxes**
|
|
188
|
+
> SharedMailboxListOut toolactionsListSharedMailboxes()
|
|
189
|
+
|
|
190
|
+
Shared mailboxes the caller connected on top of their personal account.
|
|
191
|
+
|
|
192
|
+
### Example
|
|
193
|
+
|
|
194
|
+
```typescript
|
|
195
|
+
import {
|
|
196
|
+
ToolAction,
|
|
197
|
+
Configuration
|
|
198
|
+
} from 'neuland-hub-sdk';
|
|
199
|
+
|
|
200
|
+
const configuration = new Configuration();
|
|
201
|
+
const apiInstance = new ToolAction(configuration);
|
|
202
|
+
|
|
203
|
+
let cookieName: string; // (optional) (default to undefined)
|
|
204
|
+
|
|
205
|
+
const { status, data } = await apiInstance.toolactionsListSharedMailboxes(
|
|
206
|
+
cookieName
|
|
207
|
+
);
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
### Parameters
|
|
211
|
+
|
|
212
|
+
|Name | Type | Description | Notes|
|
|
213
|
+
|------------- | ------------- | ------------- | -------------|
|
|
214
|
+
| **cookieName** | [**string**] | | (optional) defaults to undefined|
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
### Return type
|
|
218
|
+
|
|
219
|
+
**SharedMailboxListOut**
|
|
220
|
+
|
|
221
|
+
### Authorization
|
|
222
|
+
|
|
223
|
+
[APIKeyHeader](../README.md#APIKeyHeader), [OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
|
|
224
|
+
|
|
225
|
+
### HTTP request headers
|
|
226
|
+
|
|
227
|
+
- **Content-Type**: Not defined
|
|
228
|
+
- **Accept**: application/json
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
### HTTP response details
|
|
232
|
+
| Status code | Description | Response headers |
|
|
233
|
+
|-------------|-------------|------------------|
|
|
234
|
+
|**200** | Successful Response | - |
|
|
235
|
+
|**404** | The caller has not connected Outlook Mail. | - |
|
|
236
|
+
|**422** | Validation Error | - |
|
|
237
|
+
|
|
238
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
239
|
+
|
|
240
|
+
# **toolactionsSearchSharedMailboxes**
|
|
241
|
+
> SharedMailboxSearchOut toolactionsSearchSharedMailboxes()
|
|
242
|
+
|
|
243
|
+
Mailboxes the caller can open, found via the People API. Graph has no \"shared mailbox\" flag and no list of mailboxes a user has been granted, so candidates come from People (the query, or the caller\'s most relevant contacts for an empty query) and each one is probed with the caller\'s token exactly like connecting does. Regular colleagues fail the probe and drop out; what remains are mailboxes the caller holds Full Access on. Already-connected ones are reported with ``connected``. Only the already-granted read/people caps are required here, so browsing never trips re-consent — adding a mailbox does that, deliberately.
|
|
244
|
+
|
|
245
|
+
### Example
|
|
246
|
+
|
|
247
|
+
```typescript
|
|
248
|
+
import {
|
|
249
|
+
ToolAction,
|
|
250
|
+
Configuration
|
|
251
|
+
} from 'neuland-hub-sdk';
|
|
252
|
+
|
|
253
|
+
const configuration = new Configuration();
|
|
254
|
+
const apiInstance = new ToolAction(configuration);
|
|
255
|
+
|
|
256
|
+
let q: string; //Name or address fragment; empty returns suggestions. (optional) (default to '')
|
|
257
|
+
let cookieName: string; // (optional) (default to undefined)
|
|
258
|
+
|
|
259
|
+
const { status, data } = await apiInstance.toolactionsSearchSharedMailboxes(
|
|
260
|
+
q,
|
|
261
|
+
cookieName
|
|
262
|
+
);
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
### Parameters
|
|
266
|
+
|
|
267
|
+
|Name | Type | Description | Notes|
|
|
268
|
+
|------------- | ------------- | ------------- | -------------|
|
|
269
|
+
| **q** | [**string**] | Name or address fragment; empty returns suggestions. | (optional) defaults to ''|
|
|
270
|
+
| **cookieName** | [**string**] | | (optional) defaults to undefined|
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
### Return type
|
|
274
|
+
|
|
275
|
+
**SharedMailboxSearchOut**
|
|
276
|
+
|
|
277
|
+
### Authorization
|
|
278
|
+
|
|
279
|
+
[APIKeyHeader](../README.md#APIKeyHeader), [OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
|
|
280
|
+
|
|
281
|
+
### HTTP request headers
|
|
282
|
+
|
|
283
|
+
- **Content-Type**: Not defined
|
|
284
|
+
- **Accept**: application/json
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
### HTTP response details
|
|
288
|
+
| Status code | Description | Response headers |
|
|
289
|
+
|-------------|-------------|------------------|
|
|
290
|
+
|**200** | Successful Response | - |
|
|
291
|
+
|**401** | Consent for the shared-mailbox scopes is required (detail.error == \'consent_required\'). | - |
|
|
292
|
+
|**502** | Microsoft Graph failed. | - |
|
|
293
|
+
|**503** | Microsoft Graph is throttling; retry after the Retry-After header. | - |
|
|
294
|
+
|**422** | Validation Error | - |
|
|
295
|
+
|
|
296
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
297
|
+
|
|
298
|
+
# **toolactionsSendEmailFromDraft**
|
|
299
|
+
> SendEmailResponse toolactionsSendEmailFromDraft(sendEmailRequest)
|
|
300
|
+
|
|
301
|
+
Send an email from a user-approved, tool-generated draft via Microsoft Graph.
|
|
302
|
+
|
|
303
|
+
### Example
|
|
304
|
+
|
|
305
|
+
```typescript
|
|
306
|
+
import {
|
|
307
|
+
ToolAction,
|
|
308
|
+
Configuration,
|
|
309
|
+
SendEmailRequest
|
|
310
|
+
} from 'neuland-hub-sdk';
|
|
311
|
+
|
|
312
|
+
const configuration = new Configuration();
|
|
313
|
+
const apiInstance = new ToolAction(configuration);
|
|
314
|
+
|
|
315
|
+
let sendEmailRequest: SendEmailRequest; //
|
|
316
|
+
let cookieName: string; // (optional) (default to undefined)
|
|
317
|
+
|
|
318
|
+
const { status, data } = await apiInstance.toolactionsSendEmailFromDraft(
|
|
319
|
+
sendEmailRequest,
|
|
320
|
+
cookieName
|
|
321
|
+
);
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
### Parameters
|
|
325
|
+
|
|
326
|
+
|Name | Type | Description | Notes|
|
|
327
|
+
|------------- | ------------- | ------------- | -------------|
|
|
328
|
+
| **sendEmailRequest** | **SendEmailRequest**| | |
|
|
329
|
+
| **cookieName** | [**string**] | | (optional) defaults to undefined|
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
### Return type
|
|
333
|
+
|
|
334
|
+
**SendEmailResponse**
|
|
335
|
+
|
|
336
|
+
### Authorization
|
|
337
|
+
|
|
338
|
+
[APIKeyHeader](../README.md#APIKeyHeader), [OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
|
|
339
|
+
|
|
340
|
+
### HTTP request headers
|
|
341
|
+
|
|
342
|
+
- **Content-Type**: application/json
|
|
343
|
+
- **Accept**: application/json
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
### HTTP response details
|
|
347
|
+
| Status code | Description | Response headers |
|
|
348
|
+
|-------------|-------------|------------------|
|
|
349
|
+
|**200** | Successful Response | - |
|
|
350
|
+
|**400** | No recipient provided or the mail provider rejected the send. | - |
|
|
351
|
+
|**401** | Missing or invalid authentication. | - |
|
|
352
|
+
|**422** | Validation Error | - |
|
|
353
|
+
|
|
354
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
355
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# ToolCallOut
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **number** | ID of the tool call. | [default to undefined]
|
|
9
|
+
**call_id** | **string** | Provider-assigned identifier for the tool call. | [default to undefined]
|
|
10
|
+
**tool_name** | **string** | Name of the invoked tool. | [default to undefined]
|
|
11
|
+
**call_group** | **number** | Group index for tool calls issued together. | [default to undefined]
|
|
12
|
+
**call_index** | **number** | Order of the call within its group. | [default to undefined]
|
|
13
|
+
**state** | **string** | | [default to undefined]
|
|
14
|
+
**is_error** | **boolean** | | [default to undefined]
|
|
15
|
+
**description** | **string** | | [default to undefined]
|
|
16
|
+
**parent_tool_call_id** | **number** | | [optional] [default to undefined]
|
|
17
|
+
**progress_steps** | [**Array<ToolCallProgressStepOut>**](ToolCallProgressStepOut.md) | Ordered progress steps emitted during the call. | [default to undefined]
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { ToolCallOut } from 'neuland-hub-sdk';
|
|
23
|
+
|
|
24
|
+
const instance: ToolCallOut = {
|
|
25
|
+
id,
|
|
26
|
+
call_id,
|
|
27
|
+
tool_name,
|
|
28
|
+
call_group,
|
|
29
|
+
call_index,
|
|
30
|
+
state,
|
|
31
|
+
is_error,
|
|
32
|
+
description,
|
|
33
|
+
parent_tool_call_id,
|
|
34
|
+
progress_steps,
|
|
35
|
+
};
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# ToolCallProgressStepOut
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | Name of the progress step. | [default to undefined]
|
|
9
|
+
**message** | **string** | Human-readable progress message. | [default to undefined]
|
|
10
|
+
**step_index** | **number** | Zero-based order of the step within the tool call. | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { ToolCallProgressStepOut } from 'neuland-hub-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: ToolCallProgressStepOut = {
|
|
18
|
+
name,
|
|
19
|
+
message,
|
|
20
|
+
step_index,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# ToolCreate
|
|
2
|
+
|
|
3
|
+
Fields required to create a tool.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**name** | **string** | Human-readable name of the tool. | [default to undefined]
|
|
10
|
+
**description** | **string** | Short description of what the tool does. | [default to undefined]
|
|
11
|
+
**prompt** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**category_public_id** | **string** | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { ToolCreate } from 'neuland-hub-sdk';
|
|
18
|
+
|
|
19
|
+
const instance: ToolCreate = {
|
|
20
|
+
name,
|
|
21
|
+
description,
|
|
22
|
+
prompt,
|
|
23
|
+
category_public_id,
|
|
24
|
+
};
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/ToolOut.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# ToolOut
|
|
2
|
+
|
|
3
|
+
A tool as returned by the API.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **number** | Unique identifier of the tool. | [default to undefined]
|
|
10
|
+
**public_id** | **string** | Public, non-enumerable external identifier of the tool. | [default to undefined]
|
|
11
|
+
**name** | **string** | Human-readable name of the tool. | [default to undefined]
|
|
12
|
+
**description** | **string** | | [default to undefined]
|
|
13
|
+
**prompt** | **string** | | [default to undefined]
|
|
14
|
+
**created_at** | **string** | UTC timestamp when the tool was created. | [default to undefined]
|
|
15
|
+
**updated_at** | **string** | | [default to undefined]
|
|
16
|
+
**category** | [**CategoryOut**](CategoryOut.md) | | [optional] [default to undefined]
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { ToolOut } from 'neuland-hub-sdk';
|
|
22
|
+
|
|
23
|
+
const instance: ToolOut = {
|
|
24
|
+
id,
|
|
25
|
+
public_id,
|
|
26
|
+
name,
|
|
27
|
+
description,
|
|
28
|
+
prompt,
|
|
29
|
+
created_at,
|
|
30
|
+
updated_at,
|
|
31
|
+
category,
|
|
32
|
+
};
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# ToolUpdate
|
|
2
|
+
|
|
3
|
+
Editable fields of a tool; only provided fields are updated.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**prompt** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**category_public_id** | **string** | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { ToolUpdate } from 'neuland-hub-sdk';
|
|
18
|
+
|
|
19
|
+
const instance: ToolUpdate = {
|
|
20
|
+
name,
|
|
21
|
+
description,
|
|
22
|
+
prompt,
|
|
23
|
+
category_public_id,
|
|
24
|
+
};
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|