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.
Files changed (311) hide show
  1. package/.openapi-generator/FILES +314 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +27 -0
  4. package/LICENSE +10 -0
  5. package/README.md +619 -0
  6. package/api.ts +32704 -0
  7. package/base.ts +62 -0
  8. package/common.ts +127 -0
  9. package/configuration.ts +121 -0
  10. package/dist/api.d.ts +17739 -0
  11. package/dist/api.js +35085 -0
  12. package/dist/base.d.ts +42 -0
  13. package/dist/base.js +67 -0
  14. package/dist/common.d.ts +34 -0
  15. package/dist/common.js +231 -0
  16. package/dist/configuration.d.ts +98 -0
  17. package/dist/configuration.js +57 -0
  18. package/dist/index.d.ts +13 -0
  19. package/dist/index.js +31 -0
  20. package/docs/AccessItemOut.md +31 -0
  21. package/docs/AccessKind.md +13 -0
  22. package/docs/Alert.md +416 -0
  23. package/docs/ApiKey.md +123 -0
  24. package/docs/ApiKeyCreateRequest.md +23 -0
  25. package/docs/ApiKeyCreateResponse.md +27 -0
  26. package/docs/ApiKeyInventoryRequest.md +21 -0
  27. package/docs/ApiKeyInventoryResponse.md +22 -0
  28. package/docs/ApiKeyInventoryRow.md +36 -0
  29. package/docs/Application.md +308 -0
  30. package/docs/ApplicationAccessIn.md +23 -0
  31. package/docs/ApplicationCatalog.md +43 -0
  32. package/docs/ApplicationCatalogIn.md +29 -0
  33. package/docs/ApplicationCatalogUpdate.md +29 -0
  34. package/docs/ApplicationGroupOut.md +31 -0
  35. package/docs/ApplicationIn.md +37 -0
  36. package/docs/ApplicationMarketplace.md +490 -0
  37. package/docs/ApplicationMemberOut.md +31 -0
  38. package/docs/Assistant.md +1269 -0
  39. package/docs/AssistantCatalog.md +53 -0
  40. package/docs/AssistantCatalogIn.md +38 -0
  41. package/docs/AssistantCatalogToolOut.md +27 -0
  42. package/docs/AssistantCatalogUpdate.md +38 -0
  43. package/docs/AssistantGroupOut.md +31 -0
  44. package/docs/AssistantGroupsIn.md +20 -0
  45. package/docs/AssistantIn.md +42 -0
  46. package/docs/AssistantInputTypeEnum.md +10 -0
  47. package/docs/AssistantLibrary.md +30 -0
  48. package/docs/AssistantMarketplace.md +644 -0
  49. package/docs/AssistantMemberGrantedViaEnum.md +10 -0
  50. package/docs/AssistantMemberOut.md +29 -0
  51. package/docs/AssistantMembersIn.md +20 -0
  52. package/docs/AssistantTool.md +26 -0
  53. package/docs/AssistantVisibilityEnum.md +10 -0
  54. package/docs/AssistantVisibilityUpdate.md +21 -0
  55. package/docs/Atlassian.md +69 -0
  56. package/docs/Auth.md +816 -0
  57. package/docs/AuthConnector.md +622 -0
  58. package/docs/Bcc.md +19 -0
  59. package/docs/BudgetAlert.md +41 -0
  60. package/docs/BudgetAlertRequest.md +23 -0
  61. package/docs/BudgetAlertUpdate.md +25 -0
  62. package/docs/BudgetForecast.md +35 -0
  63. package/docs/BudgetSummary.md +43 -0
  64. package/docs/BudgetTopUpOut.md +29 -0
  65. package/docs/BudgetTopUpRequest.md +21 -0
  66. package/docs/BulkResult.md +22 -0
  67. package/docs/CatalogIn.md +46 -0
  68. package/docs/CatalogUpdate.md +46 -0
  69. package/docs/Category.md +61 -0
  70. package/docs/CategoryOut.md +33 -0
  71. package/docs/Cc.md +19 -0
  72. package/docs/Chat.md +555 -0
  73. package/docs/ChatIn.md +34 -0
  74. package/docs/ChatInactiveDocumentOut.md +27 -0
  75. package/docs/ChatLibrary.md +30 -0
  76. package/docs/ClarificationAnswer.md +25 -0
  77. package/docs/ConnectSharedMailboxIn.md +22 -0
  78. package/docs/Connector.md +44 -0
  79. package/docs/ConnectorAuthType.md +13 -0
  80. package/docs/ConnectorConsentOut.md +22 -0
  81. package/docs/ConnectorOut.md +30 -0
  82. package/docs/ConnectorStatusOut.md +38 -0
  83. package/docs/ConnectorUpdate.md +20 -0
  84. package/docs/CostAudioPerMinute.md +19 -0
  85. package/docs/CostByModel.md +32 -0
  86. package/docs/CostBySource.md +30 -0
  87. package/docs/CostCacheCreationTokens.md +19 -0
  88. package/docs/CostCacheCreationTokensAboveTier.md +19 -0
  89. package/docs/CostCachedTokens.md +19 -0
  90. package/docs/CostCachedTokensAboveTier.md +19 -0
  91. package/docs/CostCompletionTokens.md +19 -0
  92. package/docs/CostCompletionTokens1.md +19 -0
  93. package/docs/CostCompletionTokensAboveTier.md +19 -0
  94. package/docs/CostPromptTokens.md +19 -0
  95. package/docs/CostPromptTokens1.md +19 -0
  96. package/docs/CostPromptTokensAboveTier.md +19 -0
  97. package/docs/CostTimeseriesPoint.md +26 -0
  98. package/docs/CreateOutlookDraftRequest.md +35 -0
  99. package/docs/CreateOutlookDraftResponse.md +31 -0
  100. package/docs/CredentialIn.md +20 -0
  101. package/docs/CredentialPartOut.md +26 -0
  102. package/docs/CredentialTemplateOut.md +30 -0
  103. package/docs/CustomConnector.md +231 -0
  104. package/docs/CustomConnectorCreate.md +27 -0
  105. package/docs/CustomConnectorOut.md +30 -0
  106. package/docs/CustomConnectorUpdate.md +22 -0
  107. package/docs/DataSourceCapabilities.md +25 -0
  108. package/docs/DataSourceDriveModel.md +31 -0
  109. package/docs/DataSourceFolderModel.md +21 -0
  110. package/docs/DataSourceItemModel.md +47 -0
  111. package/docs/DataSourceSiteModel.md +31 -0
  112. package/docs/DataSourceUserModel.md +29 -0
  113. package/docs/DateWindowRequest.md +23 -0
  114. package/docs/Default.md +240 -0
  115. package/docs/DirectFileUrl.md +22 -0
  116. package/docs/Document.md +533 -0
  117. package/docs/DocumentMetrics.md +26 -0
  118. package/docs/DocumentTextOut.md +21 -0
  119. package/docs/DocumentUsageRequest.md +31 -0
  120. package/docs/DocumentUsageResponse.md +32 -0
  121. package/docs/DocumentUsageRow.md +30 -0
  122. package/docs/Dropbox.md +458 -0
  123. package/docs/EmailCatalogOut.md +25 -0
  124. package/docs/EmailSpec.md +27 -0
  125. package/docs/EmailTemplateKey.md +35 -0
  126. package/docs/Example.md +19 -0
  127. package/docs/FeatureFlag.md +194 -0
  128. package/docs/FeatureFlagOut.md +28 -0
  129. package/docs/FeatureFlagSetIn.md +20 -0
  130. package/docs/File.md +125 -0
  131. package/docs/FormField.md +33 -0
  132. package/docs/FormFieldTypeEnum.md +20 -0
  133. package/docs/GoogleDrive.md +458 -0
  134. package/docs/GroupAppAccessIn.md +23 -0
  135. package/docs/GroupIn.md +27 -0
  136. package/docs/GroupSyncOut.md +25 -0
  137. package/docs/HTTPValidationError.md +20 -0
  138. package/docs/IdleAssistant.md +24 -0
  139. package/docs/Invitation.md +293 -0
  140. package/docs/InvitationIn.md +28 -0
  141. package/docs/InvitationOut.md +44 -0
  142. package/docs/LLMConnectionTestIn.md +43 -0
  143. package/docs/LLMConnectionTestOut.md +25 -0
  144. package/docs/LLMSettingsIn.md +68 -0
  145. package/docs/LLMSettingsUpdate.md +68 -0
  146. package/docs/Library.md +437 -0
  147. package/docs/LibraryIn.md +22 -0
  148. package/docs/LibraryMemberBulkDelete.md +20 -0
  149. package/docs/LibraryMemberBulkIn.md +20 -0
  150. package/docs/LibraryMemberIn.md +22 -0
  151. package/docs/LibraryMemberOut.md +29 -0
  152. package/docs/LibraryUpdateIn.md +22 -0
  153. package/docs/LicenseUtilization.md +26 -0
  154. package/docs/Llm.md +540 -0
  155. package/docs/LlmCatalog.md +188 -0
  156. package/docs/LlmSetting.md +331 -0
  157. package/docs/LocationInner.md +18 -0
  158. package/docs/MarketplaceCatalogStateEnum.md +11 -0
  159. package/docs/MarketplaceCatalogStateUpdate.md +21 -0
  160. package/docs/Message.md +602 -0
  161. package/docs/MessageDetailOut.md +57 -0
  162. package/docs/MessageFileOut.md +26 -0
  163. package/docs/MessageIn.md +50 -0
  164. package/docs/MessageSubmitOut.md +65 -0
  165. package/docs/MessageTokensResponse.md +32 -0
  166. package/docs/MessageTurnOut.md +22 -0
  167. package/docs/ModelDelta.md +26 -0
  168. package/docs/ModelTierEnum.md +13 -0
  169. package/docs/MoversResponse.md +34 -0
  170. package/docs/NeulandAssistantsTaggingOut.md +29 -0
  171. package/docs/NeulandMarketplaceAssistantSchemasTaggingOut.md +29 -0
  172. package/docs/Nextcloud.md +458 -0
  173. package/docs/OAuth2ProviderEnum.md +35 -0
  174. package/docs/OAuthClient.md +40 -0
  175. package/docs/OAuthClientUpdate.md +26 -0
  176. package/docs/OneDrive.md +458 -0
  177. package/docs/OutputFormat.md +20 -0
  178. package/docs/PasswordResetIn.md +22 -0
  179. package/docs/PasswordResetRequestIn.md +20 -0
  180. package/docs/PlanStatus.md +19 -0
  181. package/docs/Project.md +615 -0
  182. package/docs/ProjectIn.md +24 -0
  183. package/docs/ProjectLibrary.md +30 -0
  184. package/docs/ProjectMember.md +28 -0
  185. package/docs/ProjectMemberBulkDelete.md +20 -0
  186. package/docs/ProjectMemberBulkIn.md +20 -0
  187. package/docs/ProjectMemberIn.md +22 -0
  188. package/docs/Prompt.md +248 -0
  189. package/docs/PromptIn.md +26 -0
  190. package/docs/PromptOptimizeIn.md +22 -0
  191. package/docs/PromptOptimizeOut.md +20 -0
  192. package/docs/Query.md +123 -0
  193. package/docs/RateableTypeEnum.md +13 -0
  194. package/docs/Rating.md +129 -0
  195. package/docs/RatingIn.md +27 -0
  196. package/docs/ReasoningEffortEnum.md +13 -0
  197. package/docs/RephraseStyleEnum.md +12 -0
  198. package/docs/ResourceAccess.md +197 -0
  199. package/docs/ResponseAuthGetEntraGroupsValue.md +18 -0
  200. package/docs/ResponseDropboxListRoots.md +18 -0
  201. package/docs/ResponseGoogledriveListRoots.md +18 -0
  202. package/docs/ResponseNextcloudListRoots.md +18 -0
  203. package/docs/ResponseOnedriveListRoots.md +18 -0
  204. package/docs/ResponseSharepointv1ListRoots.md +18 -0
  205. package/docs/ResumeIn.md +26 -0
  206. package/docs/Role.md +495 -0
  207. package/docs/RoleIn.md +39 -0
  208. package/docs/RoleUpdateIn.md +36 -0
  209. package/docs/RunCreateOut.md +22 -0
  210. package/docs/SecretUpdateIn.md +20 -0
  211. package/docs/SendEmailRequest.md +35 -0
  212. package/docs/SendEmailResponse.md +27 -0
  213. package/docs/SetAtlassianCloudIdRequest.md +21 -0
  214. package/docs/Settings.md +183 -0
  215. package/docs/SettingsIn.md +52 -0
  216. package/docs/SharedMailbox.md +29 -0
  217. package/docs/SharedMailboxCandidateOut.md +26 -0
  218. package/docs/SharedMailboxListOut.md +20 -0
  219. package/docs/SharedMailboxSearchOut.md +20 -0
  220. package/docs/Sharepoint.md +402 -0
  221. package/docs/SharepointDriveModel.md +31 -0
  222. package/docs/SharepointFolderModel.md +21 -0
  223. package/docs/SharepointItemModel.md +47 -0
  224. package/docs/SharepointSiteModel.md +31 -0
  225. package/docs/SharepointUserModel.md +29 -0
  226. package/docs/SharepointV1.md +458 -0
  227. package/docs/SsoExchangeIn.md +22 -0
  228. package/docs/SsoInitOut.md +24 -0
  229. package/docs/SsoResolveOut.md +22 -0
  230. package/docs/Storage.md +66 -0
  231. package/docs/StreamTokenOut.md +20 -0
  232. package/docs/SubtenantUsageResponse.md +26 -0
  233. package/docs/SubtenantUsageRow.md +34 -0
  234. package/docs/System.md +122 -0
  235. package/docs/SystemSettings.md +44 -0
  236. package/docs/SystemSettingsUpdate.md +41 -0
  237. package/docs/Tag.md +187 -0
  238. package/docs/TagIn.md +20 -0
  239. package/docs/TaggableTypeEnum.md +12 -0
  240. package/docs/Tagging.md +32 -0
  241. package/docs/Tarif.md +189 -0
  242. package/docs/TarifIn.md +39 -0
  243. package/docs/TarifStatusEnum.md +11 -0
  244. package/docs/Template.md +243 -0
  245. package/docs/TemplateIn.md +31 -0
  246. package/docs/TemplateOut.md +35 -0
  247. package/docs/TemplateUpdate.md +31 -0
  248. package/docs/Tenant.md +1189 -0
  249. package/docs/TenantIn.md +68 -0
  250. package/docs/TenantLLM.md +33 -0
  251. package/docs/TenantModelBulkIn.md +22 -0
  252. package/docs/TenantModelIn.md +20 -0
  253. package/docs/TenantOAuthClientIn.md +32 -0
  254. package/docs/TenantOAuthClientOut.md +36 -0
  255. package/docs/TenantOAuthClientUpdate.md +30 -0
  256. package/docs/TenantOut.md +76 -0
  257. package/docs/TenantThemeOut.md +46 -0
  258. package/docs/TenantUpdateIn.md +66 -0
  259. package/docs/ThemeModeEnum.md +12 -0
  260. package/docs/TimeseriesPoint.md +23 -0
  261. package/docs/TimeseriesResponse.md +23 -0
  262. package/docs/To.md +19 -0
  263. package/docs/To1.md +19 -0
  264. package/docs/TokenOut.md +22 -0
  265. package/docs/TokenTimeseriesPerModel.md +23 -0
  266. package/docs/TokenTimeseriesPoint.md +23 -0
  267. package/docs/TokensPerModel.md +31 -0
  268. package/docs/TokensTimeseriesResponse.md +31 -0
  269. package/docs/Tool.md +188 -0
  270. package/docs/ToolAction.md +355 -0
  271. package/docs/ToolCallOut.md +38 -0
  272. package/docs/ToolCallProgressStepOut.md +24 -0
  273. package/docs/ToolCreate.md +27 -0
  274. package/docs/ToolOut.md +35 -0
  275. package/docs/ToolUpdate.md +27 -0
  276. package/docs/Transcription.md +114 -0
  277. package/docs/TranscriptionOut.md +27 -0
  278. package/docs/TranscriptionSegment.md +27 -0
  279. package/docs/Translation.md +20 -0
  280. package/docs/UsageCostRequest.md +30 -0
  281. package/docs/UsageCostResponse.md +40 -0
  282. package/docs/UsageMetrics.md +28 -0
  283. package/docs/UsageQueryRequest.md +41 -0
  284. package/docs/UsageQueryResponse.md +32 -0
  285. package/docs/UsageRequest.md +25 -0
  286. package/docs/UsageRow.md +32 -0
  287. package/docs/User.md +786 -0
  288. package/docs/UserAccessOut.md +31 -0
  289. package/docs/UserGrantIn.md +21 -0
  290. package/docs/UserGrantOut.md +27 -0
  291. package/docs/UserGroup.md +39 -0
  292. package/docs/UserGroupMember.md +29 -0
  293. package/docs/UserGroupSource.md +11 -0
  294. package/docs/UserIn.md +34 -0
  295. package/docs/UserMeOut.md +51 -0
  296. package/docs/UserOut.md +48 -0
  297. package/docs/UserPreferenceOut.md +28 -0
  298. package/docs/UserPreferenceUpdateIn.md +24 -0
  299. package/docs/UserUpdateIn.md +34 -0
  300. package/docs/UtilizationRequest.md +24 -0
  301. package/docs/UtilizationResponse.md +28 -0
  302. package/docs/ValidationError.md +28 -0
  303. package/docs/VariableSpec.md +27 -0
  304. package/docs/Workflow.md +411 -0
  305. package/docs/WorkflowChatIn.md +20 -0
  306. package/docs/WorkflowChatOut.md +26 -0
  307. package/docs/WorkflowIn.md +30 -0
  308. package/docs/WorkflowUpdateIn.md +28 -0
  309. package/index.ts +18 -0
  310. package/package.json +31 -0
  311. package/tsconfig.json +21 -0
@@ -0,0 +1,114 @@
1
+ # Transcription
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**transcriptionsCreateTranscription**](#transcriptionscreatetranscription) | **POST** /transcriptions/ | Transcribe an audio file|
8
+ |[**transcriptionsTranscriptionCallback**](#transcriptionstranscriptioncallback) | **POST** /transcriptions/callback | Receive an async transcription callback|
9
+
10
+ # **transcriptionsCreateTranscription**
11
+ > TranscriptionOut transcriptionsCreateTranscription()
12
+
13
+ Transcribe an uploaded audio file and return the transcript synchronously.
14
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ Transcription,
20
+ Configuration
21
+ } from 'neuland-hub-sdk';
22
+
23
+ const configuration = new Configuration();
24
+ const apiInstance = new Transcription(configuration);
25
+
26
+ let file: File; // (default to undefined)
27
+ let cookieName: string; // (optional) (default to undefined)
28
+
29
+ const { status, data } = await apiInstance.transcriptionsCreateTranscription(
30
+ file,
31
+ cookieName
32
+ );
33
+ ```
34
+
35
+ ### Parameters
36
+
37
+ |Name | Type | Description | Notes|
38
+ |------------- | ------------- | ------------- | -------------|
39
+ | **file** | [**File**] | | defaults to undefined|
40
+ | **cookieName** | [**string**] | | (optional) defaults to undefined|
41
+
42
+
43
+ ### Return type
44
+
45
+ **TranscriptionOut**
46
+
47
+ ### Authorization
48
+
49
+ [APIKeyHeader](../README.md#APIKeyHeader), [OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
50
+
51
+ ### HTTP request headers
52
+
53
+ - **Content-Type**: multipart/form-data
54
+ - **Accept**: application/json
55
+
56
+
57
+ ### HTTP response details
58
+ | Status code | Description | Response headers |
59
+ |-------------|-------------|------------------|
60
+ |**200** | Successful Response | - |
61
+ |**401** | Missing or invalid authentication. | - |
62
+ |**413** | Audio file exceeds the 25 MB limit. | - |
63
+ |**415** | Unsupported audio content type. | - |
64
+ |**502** | The transcription provider failed or returned an error. | - |
65
+ |**503** | Transcription is not configured or unavailable. | - |
66
+ |**422** | Validation Error | - |
67
+
68
+ [[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)
69
+
70
+ # **transcriptionsTranscriptionCallback**
71
+ > { [key: string]: any; } transcriptionsTranscriptionCallback()
72
+
73
+ Accept a signed transcription result pushed back by the Whisper service.
74
+
75
+ ### Example
76
+
77
+ ```typescript
78
+ import {
79
+ Transcription,
80
+ Configuration
81
+ } from 'neuland-hub-sdk';
82
+
83
+ const configuration = new Configuration();
84
+ const apiInstance = new Transcription(configuration);
85
+
86
+ const { status, data } = await apiInstance.transcriptionsTranscriptionCallback();
87
+ ```
88
+
89
+ ### Parameters
90
+ This endpoint does not have any parameters.
91
+
92
+
93
+ ### Return type
94
+
95
+ **{ [key: string]: any; }**
96
+
97
+ ### Authorization
98
+
99
+ No authorization required
100
+
101
+ ### HTTP request headers
102
+
103
+ - **Content-Type**: Not defined
104
+ - **Accept**: application/json
105
+
106
+
107
+ ### HTTP response details
108
+ | Status code | Description | Response headers |
109
+ |-------------|-------------|------------------|
110
+ |**202** | Successful Response | - |
111
+ |**401** | Missing or invalid HMAC signature on the callback body. | - |
112
+
113
+ [[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)
114
+
@@ -0,0 +1,27 @@
1
+ # TranscriptionOut
2
+
3
+ The response format from the transcription endpoint
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **text** | **string** | Full transcribed text of the audio. | [default to undefined]
10
+ **language** | **string** | | [default to undefined]
11
+ **duration_seconds** | **number** | Duration of the transcribed audio in seconds. | [default to undefined]
12
+ **segments** | [**Array<TranscriptionSegment>**](TranscriptionSegment.md) | Time-aligned, optionally diarized transcript segments. | [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { TranscriptionOut } from 'neuland-hub-sdk';
18
+
19
+ const instance: TranscriptionOut = {
20
+ text,
21
+ language,
22
+ duration_seconds,
23
+ segments,
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)
@@ -0,0 +1,27 @@
1
+ # TranscriptionSegment
2
+
3
+ A single time-aligned segment of a transcript.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **start** | **number** | | [default to undefined]
10
+ **end** | **number** | | [default to undefined]
11
+ **speaker** | **string** | | [default to undefined]
12
+ **text** | **string** | Transcribed text for this segment. | [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { TranscriptionSegment } from 'neuland-hub-sdk';
18
+
19
+ const instance: TranscriptionSegment = {
20
+ start,
21
+ end,
22
+ speaker,
23
+ text,
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)
@@ -0,0 +1,20 @@
1
+ # Translation
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **content** | **string** | The translated or rephrased text. | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { Translation } from 'neuland-hub-sdk';
14
+
15
+ const instance: Translation = {
16
+ content,
17
+ };
18
+ ```
19
+
20
+ [[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,30 @@
1
+ # UsageCostRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **granularity** | **string** | Aggregation window; \'custom\' requires date_start and date_end. | [optional] [default to GranularityEnum_monthly]
9
+ **date_start** | **string** | | [optional] [default to undefined]
10
+ **date_end** | **string** | | [optional] [default to undefined]
11
+ **source** | **string** | | [optional] [default to undefined]
12
+ **model** | **string** | | [optional] [default to undefined]
13
+ **provider** | **string** | | [optional] [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { UsageCostRequest } from 'neuland-hub-sdk';
19
+
20
+ const instance: UsageCostRequest = {
21
+ granularity,
22
+ date_start,
23
+ date_end,
24
+ source,
25
+ model,
26
+ provider,
27
+ };
28
+ ```
29
+
30
+ [[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,40 @@
1
+ # UsageCostResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **start_date** | **string** | Start of the aggregation window. | [default to undefined]
9
+ **end_date** | **string** | End of the aggregation window. | [default to undefined]
10
+ **total_cost** | **number** | Total cost across the window. | [default to undefined]
11
+ **total_tokens** | **number** | Total tokens across the window. | [default to undefined]
12
+ **total_prompt_tokens** | **number** | Total prompt tokens across the window. | [default to undefined]
13
+ **total_completion_tokens** | **number** | Total completion tokens across the window. | [default to undefined]
14
+ **total_cached_tokens** | **number** | Total cached prompt tokens across the window. | [default to undefined]
15
+ **record_count** | **number** | Total number of usage records. | [default to undefined]
16
+ **by_source** | [**Array<CostBySource>**](CostBySource.md) | Cost breakdown grouped by source. | [default to undefined]
17
+ **by_model** | [**Array<CostByModel>**](CostByModel.md) | Cost breakdown grouped by provider and model. | [default to undefined]
18
+ **timeseries** | [**Array<CostTimeseriesPoint>**](CostTimeseriesPoint.md) | Daily cost timeseries across the window. | [default to undefined]
19
+
20
+ ## Example
21
+
22
+ ```typescript
23
+ import { UsageCostResponse } from 'neuland-hub-sdk';
24
+
25
+ const instance: UsageCostResponse = {
26
+ start_date,
27
+ end_date,
28
+ total_cost,
29
+ total_tokens,
30
+ total_prompt_tokens,
31
+ total_completion_tokens,
32
+ total_cached_tokens,
33
+ record_count,
34
+ by_source,
35
+ by_model,
36
+ timeseries,
37
+ };
38
+ ```
39
+
40
+ [[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,28 @@
1
+ # UsageMetrics
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **cost** | **number** | Total cost. | [default to undefined]
9
+ **total_tokens** | **number** | Total tokens. | [default to undefined]
10
+ **prompt_tokens** | **number** | Prompt tokens. | [default to undefined]
11
+ **completion_tokens** | **number** | Completion tokens. | [default to undefined]
12
+ **requests** | **number** | Number of usage records. | [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { UsageMetrics } from 'neuland-hub-sdk';
18
+
19
+ const instance: UsageMetrics = {
20
+ cost,
21
+ total_tokens,
22
+ prompt_tokens,
23
+ completion_tokens,
24
+ requests,
25
+ };
26
+ ```
27
+
28
+ [[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,41 @@
1
+ # UsageQueryRequest
2
+
3
+ Request for the unified usage aggregation.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **date_start** | **string** | Inclusive start of the window. | [default to undefined]
10
+ **date_end** | **string** | Inclusive end of the window. | [default to undefined]
11
+ **bucket** | **string** | | [optional] [default to undefined]
12
+ **group_by** | **Array<string>** | Categorical dimensions to break the totals down by. \'user\' and \'group\' require the tenant\'s user-level-analytics opt-in. | [optional] [default to undefined]
13
+ **source** | **string** | | [optional] [default to undefined]
14
+ **model** | **string** | | [optional] [default to undefined]
15
+ **provider** | **string** | | [optional] [default to undefined]
16
+ **assistant_id** | **number** | | [optional] [default to undefined]
17
+ **project_id** | **number** | | [optional] [default to undefined]
18
+ **limit** | **number** | | [optional] [default to undefined]
19
+ **offset** | **number** | Row offset, for paginating rankings. | [optional] [default to 0]
20
+
21
+ ## Example
22
+
23
+ ```typescript
24
+ import { UsageQueryRequest } from 'neuland-hub-sdk';
25
+
26
+ const instance: UsageQueryRequest = {
27
+ date_start,
28
+ date_end,
29
+ bucket,
30
+ group_by,
31
+ source,
32
+ model,
33
+ provider,
34
+ assistant_id,
35
+ project_id,
36
+ limit,
37
+ offset,
38
+ };
39
+ ```
40
+
41
+ [[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,32 @@
1
+ # UsageQueryResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **start_date** | **string** | Start of the window. | [default to undefined]
9
+ **end_date** | **string** | End of the window. | [default to undefined]
10
+ **bucket** | **string** | | [default to undefined]
11
+ **group_by** | **Array<string>** | Dimensions the rows are grouped by. | [default to undefined]
12
+ **totals** | [**UsageMetrics**](UsageMetrics.md) | Window totals, counted once per record (no group fan-out). | [default to undefined]
13
+ **rows** | [**Array<UsageRow>**](UsageRow.md) | One entry per group (and time bucket). | [default to undefined]
14
+ **truncated** | **boolean** | True when more rows matched than were returned (capped at MAX_USAGE_ROWS) — narrow the window or dimensions for a complete set. | [optional] [default to false]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { UsageQueryResponse } from 'neuland-hub-sdk';
20
+
21
+ const instance: UsageQueryResponse = {
22
+ start_date,
23
+ end_date,
24
+ bucket,
25
+ group_by,
26
+ totals,
27
+ rows,
28
+ truncated,
29
+ };
30
+ ```
31
+
32
+ [[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,25 @@
1
+ # UsageRequest
2
+
3
+ Generic usage request model for both token and cost queries.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **granularity** | **string** | Aggregation window; \'custom\' requires date_start and date_end. | [default to undefined]
10
+ **date_start** | **string** | | [optional] [default to undefined]
11
+ **date_end** | **string** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { UsageRequest } from 'neuland-hub-sdk';
17
+
18
+ const instance: UsageRequest = {
19
+ granularity,
20
+ date_start,
21
+ date_end,
22
+ };
23
+ ```
24
+
25
+ [[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,32 @@
1
+ # UsageRow
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **cost** | **number** | Total cost. | [default to undefined]
9
+ **total_tokens** | **number** | Total tokens. | [default to undefined]
10
+ **prompt_tokens** | **number** | Prompt tokens. | [default to undefined]
11
+ **completion_tokens** | **number** | Completion tokens. | [default to undefined]
12
+ **requests** | **number** | Number of usage records. | [default to undefined]
13
+ **group** | [**{ [key: string]: ResponseAuthGetEntraGroupsValue; }**](ResponseAuthGetEntraGroupsValue.md) | Dimension values for this group, keyed by dimension name. A null value means the dimension was unattributed for these rows. | [default to undefined]
14
+ **bucket** | **string** | | [optional] [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { UsageRow } from 'neuland-hub-sdk';
20
+
21
+ const instance: UsageRow = {
22
+ cost,
23
+ total_tokens,
24
+ prompt_tokens,
25
+ completion_tokens,
26
+ requests,
27
+ group,
28
+ bucket,
29
+ };
30
+ ```
31
+
32
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)