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
|
@@ -0,0 +1,402 @@
|
|
|
1
|
+
# Sharepoint
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**integrationsGetItemInfo**](#integrationsgetiteminfo) | **GET** /integrations/sharepoint/drives/{drive_id}/items/{drive_item_id} | Get a drive item|
|
|
8
|
+
|[**integrationsGetUserInfo**](#integrationsgetuserinfo) | **GET** /integrations/sharepoint/me | Get current SharePoint user|
|
|
9
|
+
|[**integrationsIsConnected**](#integrationsisconnected) | **GET** /integrations/sharepoint/connected | Check SharePoint connection|
|
|
10
|
+
|[**integrationsListAllSites**](#integrationslistallsites) | **GET** /integrations/sharepoint/sites | List SharePoint sites|
|
|
11
|
+
|[**integrationsListChildren**](#integrationslistchildren) | **GET** /integrations/sharepoint/drives/{drive_id}/items/{drive_item_id}/children | List children of a drive item|
|
|
12
|
+
|[**integrationsListDrives**](#integrationslistdrives) | **GET** /integrations/sharepoint/sites/{site_id}/drives | List drives in a site|
|
|
13
|
+
|
|
14
|
+
# **integrationsGetItemInfo**
|
|
15
|
+
> SharepointItemModel integrationsGetItemInfo()
|
|
16
|
+
|
|
17
|
+
Get a single SharePoint drive item, annotated with imported counts.
|
|
18
|
+
|
|
19
|
+
### Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import {
|
|
23
|
+
Sharepoint,
|
|
24
|
+
Configuration
|
|
25
|
+
} from 'neuland-hub-sdk';
|
|
26
|
+
|
|
27
|
+
const configuration = new Configuration();
|
|
28
|
+
const apiInstance = new Sharepoint(configuration);
|
|
29
|
+
|
|
30
|
+
let driveId: string; //Id of the drive. (default to undefined)
|
|
31
|
+
let driveItemId: string; //Id of the drive item. (default to undefined)
|
|
32
|
+
let chatId: string; //Scope imported counts to this chat. (optional) (default to undefined)
|
|
33
|
+
let libraryId: string; //Scope imported counts to this library. (optional) (default to undefined)
|
|
34
|
+
let assistantId: string; //Scope imported counts to this assistant. (optional) (default to undefined)
|
|
35
|
+
let projectId: string; //Scope imported counts to this project. (optional) (default to undefined)
|
|
36
|
+
let cookieName: string; // (optional) (default to undefined)
|
|
37
|
+
|
|
38
|
+
const { status, data } = await apiInstance.integrationsGetItemInfo(
|
|
39
|
+
driveId,
|
|
40
|
+
driveItemId,
|
|
41
|
+
chatId,
|
|
42
|
+
libraryId,
|
|
43
|
+
assistantId,
|
|
44
|
+
projectId,
|
|
45
|
+
cookieName
|
|
46
|
+
);
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Parameters
|
|
50
|
+
|
|
51
|
+
|Name | Type | Description | Notes|
|
|
52
|
+
|------------- | ------------- | ------------- | -------------|
|
|
53
|
+
| **driveId** | [**string**] | Id of the drive. | defaults to undefined|
|
|
54
|
+
| **driveItemId** | [**string**] | Id of the drive item. | defaults to undefined|
|
|
55
|
+
| **chatId** | [**string**] | Scope imported counts to this chat. | (optional) defaults to undefined|
|
|
56
|
+
| **libraryId** | [**string**] | Scope imported counts to this library. | (optional) defaults to undefined|
|
|
57
|
+
| **assistantId** | [**string**] | Scope imported counts to this assistant. | (optional) defaults to undefined|
|
|
58
|
+
| **projectId** | [**string**] | Scope imported counts to this project. | (optional) defaults to undefined|
|
|
59
|
+
| **cookieName** | [**string**] | | (optional) defaults to undefined|
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### Return type
|
|
63
|
+
|
|
64
|
+
**SharepointItemModel**
|
|
65
|
+
|
|
66
|
+
### Authorization
|
|
67
|
+
|
|
68
|
+
[APIKeyHeader](../README.md#APIKeyHeader), [OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
|
|
69
|
+
|
|
70
|
+
### HTTP request headers
|
|
71
|
+
|
|
72
|
+
- **Content-Type**: Not defined
|
|
73
|
+
- **Accept**: application/json
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
### HTTP response details
|
|
77
|
+
| Status code | Description | Response headers |
|
|
78
|
+
|-------------|-------------|------------------|
|
|
79
|
+
|**200** | Successful Response | - |
|
|
80
|
+
|**401** | Missing or invalid authentication, or no valid connector token. | - |
|
|
81
|
+
|**403** | User has not consented to the required SharePoint scope. | - |
|
|
82
|
+
|**422** | Validation Error | - |
|
|
83
|
+
|
|
84
|
+
[[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)
|
|
85
|
+
|
|
86
|
+
# **integrationsGetUserInfo**
|
|
87
|
+
> SharepointUserModel integrationsGetUserInfo()
|
|
88
|
+
|
|
89
|
+
Return the signed-in user\'s SharePoint / Microsoft Graph profile.
|
|
90
|
+
|
|
91
|
+
### Example
|
|
92
|
+
|
|
93
|
+
```typescript
|
|
94
|
+
import {
|
|
95
|
+
Sharepoint,
|
|
96
|
+
Configuration
|
|
97
|
+
} from 'neuland-hub-sdk';
|
|
98
|
+
|
|
99
|
+
const configuration = new Configuration();
|
|
100
|
+
const apiInstance = new Sharepoint(configuration);
|
|
101
|
+
|
|
102
|
+
let cookieName: string; // (optional) (default to undefined)
|
|
103
|
+
|
|
104
|
+
const { status, data } = await apiInstance.integrationsGetUserInfo(
|
|
105
|
+
cookieName
|
|
106
|
+
);
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### Parameters
|
|
110
|
+
|
|
111
|
+
|Name | Type | Description | Notes|
|
|
112
|
+
|------------- | ------------- | ------------- | -------------|
|
|
113
|
+
| **cookieName** | [**string**] | | (optional) defaults to undefined|
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
### Return type
|
|
117
|
+
|
|
118
|
+
**SharepointUserModel**
|
|
119
|
+
|
|
120
|
+
### Authorization
|
|
121
|
+
|
|
122
|
+
[APIKeyHeader](../README.md#APIKeyHeader), [OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
|
|
123
|
+
|
|
124
|
+
### HTTP request headers
|
|
125
|
+
|
|
126
|
+
- **Content-Type**: Not defined
|
|
127
|
+
- **Accept**: application/json
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
### HTTP response details
|
|
131
|
+
| Status code | Description | Response headers |
|
|
132
|
+
|-------------|-------------|------------------|
|
|
133
|
+
|**200** | Successful Response | - |
|
|
134
|
+
|**401** | Missing or invalid authentication, or no valid connector token. | - |
|
|
135
|
+
|**403** | User has not consented to the required SharePoint scope. | - |
|
|
136
|
+
|**422** | Validation Error | - |
|
|
137
|
+
|
|
138
|
+
[[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)
|
|
139
|
+
|
|
140
|
+
# **integrationsIsConnected**
|
|
141
|
+
> boolean integrationsIsConnected()
|
|
142
|
+
|
|
143
|
+
Report whether the user has consented to the SharePoint file-read scope.
|
|
144
|
+
|
|
145
|
+
### Example
|
|
146
|
+
|
|
147
|
+
```typescript
|
|
148
|
+
import {
|
|
149
|
+
Sharepoint,
|
|
150
|
+
Configuration
|
|
151
|
+
} from 'neuland-hub-sdk';
|
|
152
|
+
|
|
153
|
+
const configuration = new Configuration();
|
|
154
|
+
const apiInstance = new Sharepoint(configuration);
|
|
155
|
+
|
|
156
|
+
let cookieName: string; // (optional) (default to undefined)
|
|
157
|
+
|
|
158
|
+
const { status, data } = await apiInstance.integrationsIsConnected(
|
|
159
|
+
cookieName
|
|
160
|
+
);
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
### Parameters
|
|
164
|
+
|
|
165
|
+
|Name | Type | Description | Notes|
|
|
166
|
+
|------------- | ------------- | ------------- | -------------|
|
|
167
|
+
| **cookieName** | [**string**] | | (optional) defaults to undefined|
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
### Return type
|
|
171
|
+
|
|
172
|
+
**boolean**
|
|
173
|
+
|
|
174
|
+
### Authorization
|
|
175
|
+
|
|
176
|
+
[APIKeyHeader](../README.md#APIKeyHeader), [OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
|
|
177
|
+
|
|
178
|
+
### HTTP request headers
|
|
179
|
+
|
|
180
|
+
- **Content-Type**: Not defined
|
|
181
|
+
- **Accept**: application/json
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
### HTTP response details
|
|
185
|
+
| Status code | Description | Response headers |
|
|
186
|
+
|-------------|-------------|------------------|
|
|
187
|
+
|**200** | Successful Response | - |
|
|
188
|
+
|**401** | Missing or invalid authentication. | - |
|
|
189
|
+
|**422** | Validation Error | - |
|
|
190
|
+
|
|
191
|
+
[[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)
|
|
192
|
+
|
|
193
|
+
# **integrationsListAllSites**
|
|
194
|
+
> Array<SharepointSiteModel> integrationsListAllSites()
|
|
195
|
+
|
|
196
|
+
List the SharePoint sites the user can access, with imported document counts.
|
|
197
|
+
|
|
198
|
+
### Example
|
|
199
|
+
|
|
200
|
+
```typescript
|
|
201
|
+
import {
|
|
202
|
+
Sharepoint,
|
|
203
|
+
Configuration
|
|
204
|
+
} from 'neuland-hub-sdk';
|
|
205
|
+
|
|
206
|
+
const configuration = new Configuration();
|
|
207
|
+
const apiInstance = new Sharepoint(configuration);
|
|
208
|
+
|
|
209
|
+
let chatId: string; //Scope imported counts to this chat. (optional) (default to undefined)
|
|
210
|
+
let libraryId: string; //Scope imported counts to this library. (optional) (default to undefined)
|
|
211
|
+
let assistantId: string; //Scope imported counts to this assistant. (optional) (default to undefined)
|
|
212
|
+
let projectId: string; //Scope imported counts to this project. (optional) (default to undefined)
|
|
213
|
+
let cookieName: string; // (optional) (default to undefined)
|
|
214
|
+
|
|
215
|
+
const { status, data } = await apiInstance.integrationsListAllSites(
|
|
216
|
+
chatId,
|
|
217
|
+
libraryId,
|
|
218
|
+
assistantId,
|
|
219
|
+
projectId,
|
|
220
|
+
cookieName
|
|
221
|
+
);
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
### Parameters
|
|
225
|
+
|
|
226
|
+
|Name | Type | Description | Notes|
|
|
227
|
+
|------------- | ------------- | ------------- | -------------|
|
|
228
|
+
| **chatId** | [**string**] | Scope imported counts to this chat. | (optional) defaults to undefined|
|
|
229
|
+
| **libraryId** | [**string**] | Scope imported counts to this library. | (optional) defaults to undefined|
|
|
230
|
+
| **assistantId** | [**string**] | Scope imported counts to this assistant. | (optional) defaults to undefined|
|
|
231
|
+
| **projectId** | [**string**] | Scope imported counts to this project. | (optional) defaults to undefined|
|
|
232
|
+
| **cookieName** | [**string**] | | (optional) defaults to undefined|
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
### Return type
|
|
236
|
+
|
|
237
|
+
**Array<SharepointSiteModel>**
|
|
238
|
+
|
|
239
|
+
### Authorization
|
|
240
|
+
|
|
241
|
+
[APIKeyHeader](../README.md#APIKeyHeader), [OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
|
|
242
|
+
|
|
243
|
+
### HTTP request headers
|
|
244
|
+
|
|
245
|
+
- **Content-Type**: Not defined
|
|
246
|
+
- **Accept**: application/json
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
### HTTP response details
|
|
250
|
+
| Status code | Description | Response headers |
|
|
251
|
+
|-------------|-------------|------------------|
|
|
252
|
+
|**200** | Successful Response | - |
|
|
253
|
+
|**401** | Missing or invalid authentication, or no valid connector token. | - |
|
|
254
|
+
|**403** | User has not consented to the required SharePoint scope. | - |
|
|
255
|
+
|**422** | Validation Error | - |
|
|
256
|
+
|
|
257
|
+
[[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)
|
|
258
|
+
|
|
259
|
+
# **integrationsListChildren**
|
|
260
|
+
> Array<SharepointItemModel> integrationsListChildren()
|
|
261
|
+
|
|
262
|
+
List files and folders under a drive item, annotated with imported counts.
|
|
263
|
+
|
|
264
|
+
### Example
|
|
265
|
+
|
|
266
|
+
```typescript
|
|
267
|
+
import {
|
|
268
|
+
Sharepoint,
|
|
269
|
+
Configuration
|
|
270
|
+
} from 'neuland-hub-sdk';
|
|
271
|
+
|
|
272
|
+
const configuration = new Configuration();
|
|
273
|
+
const apiInstance = new Sharepoint(configuration);
|
|
274
|
+
|
|
275
|
+
let driveId: string; //Id of the drive. (default to undefined)
|
|
276
|
+
let driveItemId: string; //Id of the parent item; empty or \'root\' for the drive root. (default to undefined)
|
|
277
|
+
let chatId: string; //Scope imported counts to this chat. (optional) (default to undefined)
|
|
278
|
+
let libraryId: string; //Scope imported counts to this library. (optional) (default to undefined)
|
|
279
|
+
let assistantId: string; //Scope imported counts to this assistant. (optional) (default to undefined)
|
|
280
|
+
let projectId: string; //Scope imported counts to this project. (optional) (default to undefined)
|
|
281
|
+
let recursive: boolean; //Recurse into subfolders, returning only files. (optional) (default to false)
|
|
282
|
+
let cookieName: string; // (optional) (default to undefined)
|
|
283
|
+
|
|
284
|
+
const { status, data } = await apiInstance.integrationsListChildren(
|
|
285
|
+
driveId,
|
|
286
|
+
driveItemId,
|
|
287
|
+
chatId,
|
|
288
|
+
libraryId,
|
|
289
|
+
assistantId,
|
|
290
|
+
projectId,
|
|
291
|
+
recursive,
|
|
292
|
+
cookieName
|
|
293
|
+
);
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
### Parameters
|
|
297
|
+
|
|
298
|
+
|Name | Type | Description | Notes|
|
|
299
|
+
|------------- | ------------- | ------------- | -------------|
|
|
300
|
+
| **driveId** | [**string**] | Id of the drive. | defaults to undefined|
|
|
301
|
+
| **driveItemId** | [**string**] | Id of the parent item; empty or \'root\' for the drive root. | defaults to undefined|
|
|
302
|
+
| **chatId** | [**string**] | Scope imported counts to this chat. | (optional) defaults to undefined|
|
|
303
|
+
| **libraryId** | [**string**] | Scope imported counts to this library. | (optional) defaults to undefined|
|
|
304
|
+
| **assistantId** | [**string**] | Scope imported counts to this assistant. | (optional) defaults to undefined|
|
|
305
|
+
| **projectId** | [**string**] | Scope imported counts to this project. | (optional) defaults to undefined|
|
|
306
|
+
| **recursive** | [**boolean**] | Recurse into subfolders, returning only files. | (optional) defaults to false|
|
|
307
|
+
| **cookieName** | [**string**] | | (optional) defaults to undefined|
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
### Return type
|
|
311
|
+
|
|
312
|
+
**Array<SharepointItemModel>**
|
|
313
|
+
|
|
314
|
+
### Authorization
|
|
315
|
+
|
|
316
|
+
[APIKeyHeader](../README.md#APIKeyHeader), [OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
|
|
317
|
+
|
|
318
|
+
### HTTP request headers
|
|
319
|
+
|
|
320
|
+
- **Content-Type**: Not defined
|
|
321
|
+
- **Accept**: application/json
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
### HTTP response details
|
|
325
|
+
| Status code | Description | Response headers |
|
|
326
|
+
|-------------|-------------|------------------|
|
|
327
|
+
|**200** | Successful Response | - |
|
|
328
|
+
|**401** | Missing or invalid authentication, or no valid connector token. | - |
|
|
329
|
+
|**403** | User has not consented to the required SharePoint scope. | - |
|
|
330
|
+
|**422** | Validation Error | - |
|
|
331
|
+
|
|
332
|
+
[[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)
|
|
333
|
+
|
|
334
|
+
# **integrationsListDrives**
|
|
335
|
+
> Array<SharepointDriveModel> integrationsListDrives()
|
|
336
|
+
|
|
337
|
+
List the document libraries (drives) within a SharePoint site.
|
|
338
|
+
|
|
339
|
+
### Example
|
|
340
|
+
|
|
341
|
+
```typescript
|
|
342
|
+
import {
|
|
343
|
+
Sharepoint,
|
|
344
|
+
Configuration
|
|
345
|
+
} from 'neuland-hub-sdk';
|
|
346
|
+
|
|
347
|
+
const configuration = new Configuration();
|
|
348
|
+
const apiInstance = new Sharepoint(configuration);
|
|
349
|
+
|
|
350
|
+
let siteId: string; //SharePoint site id. (default to undefined)
|
|
351
|
+
let chatId: string; //Scope imported counts to this chat. (optional) (default to undefined)
|
|
352
|
+
let libraryId: string; //Scope imported counts to this library. (optional) (default to undefined)
|
|
353
|
+
let assistantId: string; //Scope imported counts to this assistant. (optional) (default to undefined)
|
|
354
|
+
let projectId: string; //Scope imported counts to this project. (optional) (default to undefined)
|
|
355
|
+
let cookieName: string; // (optional) (default to undefined)
|
|
356
|
+
|
|
357
|
+
const { status, data } = await apiInstance.integrationsListDrives(
|
|
358
|
+
siteId,
|
|
359
|
+
chatId,
|
|
360
|
+
libraryId,
|
|
361
|
+
assistantId,
|
|
362
|
+
projectId,
|
|
363
|
+
cookieName
|
|
364
|
+
);
|
|
365
|
+
```
|
|
366
|
+
|
|
367
|
+
### Parameters
|
|
368
|
+
|
|
369
|
+
|Name | Type | Description | Notes|
|
|
370
|
+
|------------- | ------------- | ------------- | -------------|
|
|
371
|
+
| **siteId** | [**string**] | SharePoint site id. | defaults to undefined|
|
|
372
|
+
| **chatId** | [**string**] | Scope imported counts to this chat. | (optional) defaults to undefined|
|
|
373
|
+
| **libraryId** | [**string**] | Scope imported counts to this library. | (optional) defaults to undefined|
|
|
374
|
+
| **assistantId** | [**string**] | Scope imported counts to this assistant. | (optional) defaults to undefined|
|
|
375
|
+
| **projectId** | [**string**] | Scope imported counts to this project. | (optional) defaults to undefined|
|
|
376
|
+
| **cookieName** | [**string**] | | (optional) defaults to undefined|
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
### Return type
|
|
380
|
+
|
|
381
|
+
**Array<SharepointDriveModel>**
|
|
382
|
+
|
|
383
|
+
### Authorization
|
|
384
|
+
|
|
385
|
+
[APIKeyHeader](../README.md#APIKeyHeader), [OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
|
|
386
|
+
|
|
387
|
+
### HTTP request headers
|
|
388
|
+
|
|
389
|
+
- **Content-Type**: Not defined
|
|
390
|
+
- **Accept**: application/json
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
### HTTP response details
|
|
394
|
+
| Status code | Description | Response headers |
|
|
395
|
+
|-------------|-------------|------------------|
|
|
396
|
+
|**200** | Successful Response | - |
|
|
397
|
+
|**401** | Missing or invalid authentication, or no valid connector token. | - |
|
|
398
|
+
|**403** | User has not consented to the required SharePoint scope. | - |
|
|
399
|
+
|**422** | Validation Error | - |
|
|
400
|
+
|
|
401
|
+
[[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)
|
|
402
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# SharepointDriveModel
|
|
2
|
+
|
|
3
|
+
A document library (drive) within a SharePoint site.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **string** | Drive id. | [default to undefined]
|
|
10
|
+
**web_url** | **string** | URL to open the drive in SharePoint. | [default to undefined]
|
|
11
|
+
**name** | **string** | | [default to undefined]
|
|
12
|
+
**description** | **string** | | [default to undefined]
|
|
13
|
+
**root** | [**SharepointItemModel**](SharepointItemModel.md) | The drive\'s root folder item. | [default to undefined]
|
|
14
|
+
**imported_count** | **number** | Number of imported documents from this drive in the current scope. | [optional] [default to 0]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { SharepointDriveModel } from 'neuland-hub-sdk';
|
|
20
|
+
|
|
21
|
+
const instance: SharepointDriveModel = {
|
|
22
|
+
id,
|
|
23
|
+
web_url,
|
|
24
|
+
name,
|
|
25
|
+
description,
|
|
26
|
+
root,
|
|
27
|
+
imported_count,
|
|
28
|
+
};
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
[[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,21 @@
|
|
|
1
|
+
# SharepointFolderModel
|
|
2
|
+
|
|
3
|
+
Metadata specific to folder items.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**child_count** | **number** | Number of immediate children inside the folder. | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { SharepointFolderModel } from 'neuland-hub-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: SharepointFolderModel = {
|
|
17
|
+
child_count,
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
[[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,47 @@
|
|
|
1
|
+
# SharepointItemModel
|
|
2
|
+
|
|
3
|
+
A file or folder item in a SharePoint drive.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **string** | Drive item id. | [default to undefined]
|
|
10
|
+
**web_url** | **string** | URL to open the item in SharePoint. | [default to undefined]
|
|
11
|
+
**drive_id** | **string** | Id of the drive containing the item. | [default to undefined]
|
|
12
|
+
**site_id** | **string** | | [default to undefined]
|
|
13
|
+
**parent_folder_id** | **string** | Id of the parent folder, or \'root\'. | [default to undefined]
|
|
14
|
+
**parent_path** | **string** | | [default to undefined]
|
|
15
|
+
**name** | **string** | | [default to undefined]
|
|
16
|
+
**description** | **string** | | [default to undefined]
|
|
17
|
+
**size** | **number** | | [default to undefined]
|
|
18
|
+
**last_modified_date_time** | **string** | | [default to undefined]
|
|
19
|
+
**mimetype** | **string** | | [default to undefined]
|
|
20
|
+
**folder** | [**SharepointFolderModel**](SharepointFolderModel.md) | | [default to undefined]
|
|
21
|
+
**imported** | **boolean** | | [optional] [default to undefined]
|
|
22
|
+
**imported_count** | **number** | | [optional] [default to undefined]
|
|
23
|
+
|
|
24
|
+
## Example
|
|
25
|
+
|
|
26
|
+
```typescript
|
|
27
|
+
import { SharepointItemModel } from 'neuland-hub-sdk';
|
|
28
|
+
|
|
29
|
+
const instance: SharepointItemModel = {
|
|
30
|
+
id,
|
|
31
|
+
web_url,
|
|
32
|
+
drive_id,
|
|
33
|
+
site_id,
|
|
34
|
+
parent_folder_id,
|
|
35
|
+
parent_path,
|
|
36
|
+
name,
|
|
37
|
+
description,
|
|
38
|
+
size,
|
|
39
|
+
last_modified_date_time,
|
|
40
|
+
mimetype,
|
|
41
|
+
folder,
|
|
42
|
+
imported,
|
|
43
|
+
imported_count,
|
|
44
|
+
};
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
[[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,31 @@
|
|
|
1
|
+
# SharepointSiteModel
|
|
2
|
+
|
|
3
|
+
A SharePoint site.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **string** | Site id. | [default to undefined]
|
|
10
|
+
**web_url** | **string** | URL to open the site in SharePoint. | [default to undefined]
|
|
11
|
+
**name** | **string** | | [default to undefined]
|
|
12
|
+
**display_name** | **string** | | [default to undefined]
|
|
13
|
+
**description** | **string** | | [default to undefined]
|
|
14
|
+
**imported_count** | **number** | Number of imported documents from this site in the current scope. | [optional] [default to 0]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { SharepointSiteModel } from 'neuland-hub-sdk';
|
|
20
|
+
|
|
21
|
+
const instance: SharepointSiteModel = {
|
|
22
|
+
id,
|
|
23
|
+
web_url,
|
|
24
|
+
name,
|
|
25
|
+
display_name,
|
|
26
|
+
description,
|
|
27
|
+
imported_count,
|
|
28
|
+
};
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
[[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,29 @@
|
|
|
1
|
+
# SharepointUserModel
|
|
2
|
+
|
|
3
|
+
The signed-in user\'s SharePoint / Microsoft Graph profile.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**display_name** | **string** | | [default to undefined]
|
|
10
|
+
**job_title** | **string** | | [default to undefined]
|
|
11
|
+
**mail** | **string** | | [default to undefined]
|
|
12
|
+
**surname** | **string** | | [default to undefined]
|
|
13
|
+
**user_principal_name** | **string** | | [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { SharepointUserModel } from 'neuland-hub-sdk';
|
|
19
|
+
|
|
20
|
+
const instance: SharepointUserModel = {
|
|
21
|
+
display_name,
|
|
22
|
+
job_title,
|
|
23
|
+
mail,
|
|
24
|
+
surname,
|
|
25
|
+
user_principal_name,
|
|
26
|
+
};
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|