@leaflow/sdk 0.1.2 → 0.1.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 (197) hide show
  1. package/dist/generated/assistant/index.d.ts +1 -1
  2. package/dist/generated/assistant/index.js +1 -1
  3. package/dist/generated/assistant/models/answerInputBody.d.ts +1 -1
  4. package/dist/generated/assistant/models/bindingView.d.ts +1 -1
  5. package/dist/generated/assistant/models/channelView.d.ts +1 -1
  6. package/dist/generated/assistant/models/contextView.d.ts +3 -3
  7. package/dist/generated/assistant/models/createChannelInputBody.d.ts +2 -2
  8. package/dist/generated/assistant/models/createThreadInputBody.d.ts +1 -1
  9. package/dist/generated/assistant/models/documentView.d.ts +8 -8
  10. package/dist/generated/assistant/models/documentViewItems.d.ts +1 -1
  11. package/dist/generated/assistant/models/error.d.ts +1 -1
  12. package/dist/generated/assistant/models/index.d.ts +336 -84
  13. package/dist/generated/assistant/models/index.js +336 -84
  14. package/dist/generated/assistant/models/itemView.d.ts +11 -11
  15. package/dist/generated/assistant/models/itemViewAttachments.d.ts +1 -1
  16. package/dist/generated/assistant/models/listBindingsOutputBody.d.ts +1 -1
  17. package/dist/generated/assistant/models/listBindingsOutputBodyBindings.d.ts +1 -1
  18. package/dist/generated/assistant/models/listChannelsOutputBody.d.ts +1 -1
  19. package/dist/generated/assistant/models/listChannelsOutputBodyChannels.d.ts +1 -1
  20. package/dist/generated/assistant/models/listModelsOutputBody.d.ts +1 -1
  21. package/dist/generated/assistant/models/listModelsOutputBodyModels.d.ts +1 -1
  22. package/dist/generated/assistant/models/listPlatformsOutputBody.d.ts +1 -1
  23. package/dist/generated/assistant/models/listPlatformsOutputBodyPlatforms.d.ts +1 -1
  24. package/dist/generated/assistant/models/listRejectionsOutputBody.d.ts +1 -1
  25. package/dist/generated/assistant/models/listRejectionsOutputBodyRejections.d.ts +1 -1
  26. package/dist/generated/assistant/models/listThreadsOutputBody.d.ts +1 -1
  27. package/dist/generated/assistant/models/listThreadsOutputBodyThreads.d.ts +1 -1
  28. package/dist/generated/assistant/models/modelView.d.ts +2 -2
  29. package/dist/generated/assistant/models/question.d.ts +1 -1
  30. package/dist/generated/assistant/models/questionChoices.d.ts +1 -1
  31. package/dist/generated/assistant/models/sendMessageInputBody.d.ts +1 -1
  32. package/dist/generated/assistant/models/threadSummaryView.d.ts +2 -2
  33. package/dist/generated/assistant/models/turnView.d.ts +1 -1
  34. package/dist/generated/assistant/models/updateChannelInputBody.d.ts +1 -1
  35. package/dist/generated/assistant/models/updateThreadInputBody.d.ts +1 -1
  36. package/dist/generated/assistant/models/waitView.d.ts +3 -3
  37. package/dist/generated/assistant/models/waitViewQuestions.d.ts +1 -1
  38. package/dist/generated/compute/index.d.ts +1 -1
  39. package/dist/generated/compute/index.js +1 -1
  40. package/dist/generated/compute/models/actOnInstanceInputBody.d.ts +1 -1
  41. package/dist/generated/compute/models/createPortInputBody.d.ts +1 -1
  42. package/dist/generated/compute/models/createSecurityRuleInputBody.d.ts +4 -4
  43. package/dist/generated/compute/models/diskTypeView.d.ts +1 -1
  44. package/dist/generated/compute/models/diskTypesOutputBody.d.ts +1 -1
  45. package/dist/generated/compute/models/diskTypesOutputBodyItems.d.ts +1 -1
  46. package/dist/generated/compute/models/diskView.d.ts +3 -3
  47. package/dist/generated/compute/models/disksOutputBody.d.ts +1 -1
  48. package/dist/generated/compute/models/disksOutputBodyItems.d.ts +1 -1
  49. package/dist/generated/compute/models/error.d.ts +1 -1
  50. package/dist/generated/compute/models/floatingIPView.d.ts +5 -5
  51. package/dist/generated/compute/models/floatingIPsOutputBody.d.ts +1 -1
  52. package/dist/generated/compute/models/floatingIPsOutputBodyItems.d.ts +1 -1
  53. package/dist/generated/compute/models/imagesOutputBody.d.ts +1 -1
  54. package/dist/generated/compute/models/imagesOutputBodyItems.d.ts +1 -1
  55. package/dist/generated/compute/models/index.d.ts +468 -117
  56. package/dist/generated/compute/models/index.js +468 -117
  57. package/dist/generated/compute/models/instanceTypesOutputBody.d.ts +1 -1
  58. package/dist/generated/compute/models/instanceTypesOutputBodyItems.d.ts +1 -1
  59. package/dist/generated/compute/models/instanceView.d.ts +2 -2
  60. package/dist/generated/compute/models/instancesOutputBody.d.ts +1 -1
  61. package/dist/generated/compute/models/instancesOutputBodyItems.d.ts +1 -1
  62. package/dist/generated/compute/models/ipv6OutputBody.d.ts +1 -1
  63. package/dist/generated/compute/models/launchInstanceInputBody.d.ts +1 -1
  64. package/dist/generated/compute/models/launchInstanceOutputBody.d.ts +1 -1
  65. package/dist/generated/compute/models/portView.d.ts +4 -4
  66. package/dist/generated/compute/models/portsOutputBody.d.ts +1 -1
  67. package/dist/generated/compute/models/portsOutputBodyItems.d.ts +1 -1
  68. package/dist/generated/compute/models/privateNetworkView.d.ts +3 -3
  69. package/dist/generated/compute/models/privateNetworksOutputBody.d.ts +1 -1
  70. package/dist/generated/compute/models/privateNetworksOutputBodyItems.d.ts +1 -1
  71. package/dist/generated/compute/models/rebuildInstanceOutputBody.d.ts +1 -1
  72. package/dist/generated/compute/models/regionsOutputBody.d.ts +1 -1
  73. package/dist/generated/compute/models/regionsOutputBodyItems.d.ts +1 -1
  74. package/dist/generated/compute/models/routesOutputBody.d.ts +1 -1
  75. package/dist/generated/compute/models/routesOutputBodyItems.d.ts +1 -1
  76. package/dist/generated/compute/models/securityGroupsOutputBody.d.ts +1 -1
  77. package/dist/generated/compute/models/securityGroupsOutputBodyItems.d.ts +1 -1
  78. package/dist/generated/compute/models/securityRuleView.d.ts +6 -6
  79. package/dist/generated/compute/models/securityRulesOutputBody.d.ts +1 -1
  80. package/dist/generated/compute/models/securityRulesOutputBodyItems.d.ts +1 -1
  81. package/dist/generated/compute/models/snapshotView.d.ts +1 -1
  82. package/dist/generated/compute/models/snapshotsOutputBody.d.ts +1 -1
  83. package/dist/generated/compute/models/snapshotsOutputBodyItems.d.ts +1 -1
  84. package/dist/generated/compute/models/subnetView.d.ts +2 -2
  85. package/dist/generated/compute/models/subnetsOutputBody.d.ts +1 -1
  86. package/dist/generated/compute/models/subnetsOutputBodyItems.d.ts +1 -1
  87. package/dist/generated/compute/models/zonesOutputBody.d.ts +1 -1
  88. package/dist/generated/compute/models/zonesOutputBodyItems.d.ts +1 -1
  89. package/dist/generated/iam/index.d.ts +1 -1
  90. package/dist/generated/iam/index.js +1 -1
  91. package/dist/generated/iam/models/acceptInvitationOutputBody.d.ts +1 -1
  92. package/dist/generated/iam/models/accountView.d.ts +3 -3
  93. package/dist/generated/iam/models/createRoleInputBody.d.ts +1 -1
  94. package/dist/generated/iam/models/error.d.ts +1 -1
  95. package/dist/generated/iam/models/exchangeTokenOutputBody.d.ts +2 -2
  96. package/dist/generated/iam/models/grantView.d.ts +2 -2
  97. package/dist/generated/iam/models/identityVerificationView.d.ts +3 -3
  98. package/dist/generated/iam/models/index.d.ts +276 -69
  99. package/dist/generated/iam/models/index.js +276 -69
  100. package/dist/generated/iam/models/invitationView.d.ts +1 -1
  101. package/dist/generated/iam/models/issueInvitationInputBody.d.ts +1 -1
  102. package/dist/generated/iam/models/issueInvitationOutputBody.d.ts +1 -1
  103. package/dist/generated/iam/models/listInvitationsOutputBody.d.ts +1 -1
  104. package/dist/generated/iam/models/listInvitationsOutputBodyItems.d.ts +1 -1
  105. package/dist/generated/iam/models/listMembersOutputBody.d.ts +1 -1
  106. package/dist/generated/iam/models/listMembersOutputBodyItems.d.ts +1 -1
  107. package/dist/generated/iam/models/listMySshKeysParams.d.ts +1 -1
  108. package/dist/generated/iam/models/listPermissionsOutputBody.d.ts +1 -1
  109. package/dist/generated/iam/models/listPermissionsOutputBodyItems.d.ts +1 -1
  110. package/dist/generated/iam/models/listProjectSshKeysParams.d.ts +1 -1
  111. package/dist/generated/iam/models/listProjectsOutputBody.d.ts +1 -1
  112. package/dist/generated/iam/models/listProjectsOutputBodyItems.d.ts +1 -1
  113. package/dist/generated/iam/models/listProjectsParams.d.ts +1 -1
  114. package/dist/generated/iam/models/listRolesOutputBody.d.ts +1 -1
  115. package/dist/generated/iam/models/listRolesOutputBodyItems.d.ts +1 -1
  116. package/dist/generated/iam/models/listSSHKeysOutputBody.d.ts +1 -1
  117. package/dist/generated/iam/models/listSSHKeysOutputBodyItems.d.ts +1 -1
  118. package/dist/generated/iam/models/memberView.d.ts +1 -1
  119. package/dist/generated/iam/models/membershipView.d.ts +1 -1
  120. package/dist/generated/iam/models/projectListItem.d.ts +2 -2
  121. package/dist/generated/iam/models/projectView.d.ts +3 -3
  122. package/dist/generated/iam/models/roleView.d.ts +1 -1
  123. package/dist/generated/iam/models/sSHKeyView.d.ts +1 -1
  124. package/dist/generated/iam/models/setMemberRolesInputBody.d.ts +1 -1
  125. package/dist/generated/iam/models/transferOwnershipOutputBody.d.ts +1 -1
  126. package/dist/generated/iam/models/updateRoleInputBody.d.ts +1 -1
  127. package/dist/generated/monitoring/index.d.ts +1 -1
  128. package/dist/generated/monitoring/index.js +1 -1
  129. package/dist/generated/monitoring/models/closeIncidentInputBody.d.ts +1 -1
  130. package/dist/generated/monitoring/models/enableMonitoringInputBody.d.ts +3 -3
  131. package/dist/generated/monitoring/models/enableMonitoringInputBodyTemplateBindings.d.ts +1 -1
  132. package/dist/generated/monitoring/models/enableMonitoringOutputBody.d.ts +2 -2
  133. package/dist/generated/monitoring/models/error.d.ts +1 -1
  134. package/dist/generated/monitoring/models/getMetricOutputBody.d.ts +2 -2
  135. package/dist/generated/monitoring/models/getMetricOutputBodySeries.d.ts +1 -1
  136. package/dist/generated/monitoring/models/getMetricOutputBodyThresholds.d.ts +1 -1
  137. package/dist/generated/monitoring/models/incidentActivityView.d.ts +2 -2
  138. package/dist/generated/monitoring/models/incidentView.d.ts +9 -9
  139. package/dist/generated/monitoring/models/incidentViewFollowers.d.ts +1 -1
  140. package/dist/generated/monitoring/models/incidentViewItems.d.ts +1 -1
  141. package/dist/generated/monitoring/models/incidentViewTags.d.ts +1 -1
  142. package/dist/generated/monitoring/models/index.d.ts +524 -131
  143. package/dist/generated/monitoring/models/index.js +524 -131
  144. package/dist/generated/monitoring/models/itemView.d.ts +3 -3
  145. package/dist/generated/monitoring/models/itemViewTags.d.ts +1 -1
  146. package/dist/generated/monitoring/models/listIncidentsOutputBody.d.ts +1 -1
  147. package/dist/generated/monitoring/models/listIncidentsOutputBodyItems.d.ts +1 -1
  148. package/dist/generated/monitoring/models/listIncidentsParams.d.ts +5 -5
  149. package/dist/generated/monitoring/models/listItemsOutputBody.d.ts +1 -1
  150. package/dist/generated/monitoring/models/listItemsOutputBodyItems.d.ts +1 -1
  151. package/dist/generated/monitoring/models/listMaintenanceWindowsOutputBody.d.ts +1 -1
  152. package/dist/generated/monitoring/models/listMaintenanceWindowsOutputBodyItems.d.ts +1 -1
  153. package/dist/generated/monitoring/models/listProjectTopItemsParams.d.ts +1 -1
  154. package/dist/generated/monitoring/models/listServersOutputBody.d.ts +1 -1
  155. package/dist/generated/monitoring/models/listServersOutputBodyItems.d.ts +1 -1
  156. package/dist/generated/monitoring/models/listServersParams.d.ts +1 -1
  157. package/dist/generated/monitoring/models/listTimelineOutputBody.d.ts +1 -1
  158. package/dist/generated/monitoring/models/listTimelineOutputBodyItems.d.ts +1 -1
  159. package/dist/generated/monitoring/models/listWebChecksOutputBody.d.ts +1 -1
  160. package/dist/generated/monitoring/models/listWebChecksOutputBodyItems.d.ts +1 -1
  161. package/dist/generated/monitoring/models/maintenancePeriodInput.d.ts +1 -1
  162. package/dist/generated/monitoring/models/maintenancePeriodView.d.ts +2 -2
  163. package/dist/generated/monitoring/models/maintenanceWindowView.d.ts +3 -3
  164. package/dist/generated/monitoring/models/metricSeriesView.d.ts +1 -1
  165. package/dist/generated/monitoring/models/metricSeriesViewPoints.d.ts +1 -1
  166. package/dist/generated/monitoring/models/monitoringItemView.d.ts +1 -1
  167. package/dist/generated/monitoring/models/projectOverviewView.d.ts +2 -2
  168. package/dist/generated/monitoring/models/projectOverviewViewProblemCounts.d.ts +1 -1
  169. package/dist/generated/monitoring/models/projectOverviewViewReachabilityCounts.d.ts +1 -1
  170. package/dist/generated/monitoring/models/putMaintenanceWindowInputBody.d.ts +2 -2
  171. package/dist/generated/monitoring/models/putSLOInputBody.d.ts +3 -3
  172. package/dist/generated/monitoring/models/putSLOInputBodySchedule.d.ts +1 -1
  173. package/dist/generated/monitoring/models/putWebCheckInputBody.d.ts +1 -1
  174. package/dist/generated/monitoring/models/putWebCheckInputBodySteps.d.ts +1 -1
  175. package/dist/generated/monitoring/models/sLOView.d.ts +4 -4
  176. package/dist/generated/monitoring/models/sLOViewSchedule.d.ts +1 -1
  177. package/dist/generated/monitoring/models/serverResourcesView.d.ts +3 -3
  178. package/dist/generated/monitoring/models/serverResourcesViewInterfaces.d.ts +1 -1
  179. package/dist/generated/monitoring/models/serverResourcesViewTags.d.ts +1 -1
  180. package/dist/generated/monitoring/models/serverTemplateView.d.ts +2 -2
  181. package/dist/generated/monitoring/models/serverView.d.ts +4 -4
  182. package/dist/generated/monitoring/models/serverViewTemplates.d.ts +1 -1
  183. package/dist/generated/monitoring/models/sliReportOutputBody.d.ts +1 -1
  184. package/dist/generated/monitoring/models/sliReportOutputBodyRows.d.ts +1 -1
  185. package/dist/generated/monitoring/models/snapshotView.d.ts +3 -3
  186. package/dist/generated/monitoring/models/snapshotViewProblemCounts.d.ts +1 -1
  187. package/dist/generated/monitoring/models/templateBindingInput.d.ts +2 -2
  188. package/dist/generated/monitoring/models/topItemsOutputBody.d.ts +1 -1
  189. package/dist/generated/monitoring/models/topItemsOutputBodyItems.d.ts +1 -1
  190. package/dist/generated/monitoring/models/updateServerInputBody.d.ts +3 -3
  191. package/dist/generated/monitoring/models/webCheckView.d.ts +3 -3
  192. package/dist/generated/monitoring/models/webCheckViewSteps.d.ts +1 -1
  193. package/dist/http.d.ts +8 -8
  194. package/dist/http.js +7 -6
  195. package/dist/index.d.ts +1 -5
  196. package/dist/index.js +2 -6
  197. package/package.json +4 -4
@@ -22,9 +22,9 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { ItemViewLastCollectedAt } from './itemViewLastCollectedAt';
26
- import type { ItemViewTags } from './itemViewTags';
27
- import type { ItemViewValueType } from './itemViewValueType';
25
+ import type { ItemViewLastCollectedAt } from './itemViewLastCollectedAt.js';
26
+ import type { ItemViewTags } from './itemViewTags.js';
27
+ import type { ItemViewValueType } from './itemViewValueType.js';
28
28
  export interface ItemView {
29
29
  item_id: string;
30
30
  key: string;
@@ -22,5 +22,5 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { TagView } from './tagView';
25
+ import type { TagView } from './tagView.js';
26
26
  export type ItemViewTags = TagView[] | null;
@@ -22,7 +22,7 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { ListIncidentsOutputBodyItems } from './listIncidentsOutputBodyItems';
25
+ import type { ListIncidentsOutputBodyItems } from './listIncidentsOutputBodyItems.js';
26
26
  export interface ListIncidentsOutputBody {
27
27
  items: ListIncidentsOutputBodyItems;
28
28
  total: number;
@@ -22,5 +22,5 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { IncidentView } from './incidentView';
25
+ import type { IncidentView } from './incidentView.js';
26
26
  export type ListIncidentsOutputBodyItems = IncidentView[] | null;
@@ -22,11 +22,11 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { ListIncidentsIncidentStatus } from './listIncidentsIncidentStatus';
26
- import type { ListIncidentsMinSeverity } from './listIncidentsMinSeverity';
27
- import type { ListIncidentsClosed } from './listIncidentsClosed';
28
- import type { ListIncidentsAcknowledged } from './listIncidentsAcknowledged';
29
- import type { ListIncidentsUnassigned } from './listIncidentsUnassigned';
25
+ import type { ListIncidentsIncidentStatus } from './listIncidentsIncidentStatus.js';
26
+ import type { ListIncidentsMinSeverity } from './listIncidentsMinSeverity.js';
27
+ import type { ListIncidentsClosed } from './listIncidentsClosed.js';
28
+ import type { ListIncidentsAcknowledged } from './listIncidentsAcknowledged.js';
29
+ import type { ListIncidentsUnassigned } from './listIncidentsUnassigned.js';
30
30
  export type ListIncidentsParams = {
31
31
  /**
32
32
  * 这一页最多返回多少条,0 表示用默认值
@@ -22,7 +22,7 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { ListItemsOutputBodyItems } from './listItemsOutputBodyItems';
25
+ import type { ListItemsOutputBodyItems } from './listItemsOutputBodyItems.js';
26
26
  export interface ListItemsOutputBody {
27
27
  items: ListItemsOutputBodyItems;
28
28
  }
@@ -22,5 +22,5 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { ItemView } from './itemView';
25
+ import type { ItemView } from './itemView.js';
26
26
  export type ListItemsOutputBodyItems = ItemView[] | null;
@@ -22,7 +22,7 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { ListMaintenanceWindowsOutputBodyItems } from './listMaintenanceWindowsOutputBodyItems';
25
+ import type { ListMaintenanceWindowsOutputBodyItems } from './listMaintenanceWindowsOutputBodyItems.js';
26
26
  export interface ListMaintenanceWindowsOutputBody {
27
27
  items: ListMaintenanceWindowsOutputBodyItems;
28
28
  }
@@ -22,5 +22,5 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { MaintenanceWindowView } from './maintenanceWindowView';
25
+ import type { MaintenanceWindowView } from './maintenanceWindowView.js';
26
26
  export type ListMaintenanceWindowsOutputBodyItems = MaintenanceWindowView[] | null;
@@ -22,7 +22,7 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { ListProjectTopItemsKind } from './listProjectTopItemsKind';
25
+ import type { ListProjectTopItemsKind } from './listProjectTopItemsKind.js';
26
26
  export type ListProjectTopItemsParams = {
27
27
  kind: ListProjectTopItemsKind;
28
28
  /**
@@ -22,7 +22,7 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { ListServersOutputBodyItems } from './listServersOutputBodyItems';
25
+ import type { ListServersOutputBodyItems } from './listServersOutputBodyItems.js';
26
26
  export interface ListServersOutputBody {
27
27
  items: ListServersOutputBodyItems;
28
28
  total: number;
@@ -22,5 +22,5 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { ServerView } from './serverView';
25
+ import type { ServerView } from './serverView.js';
26
26
  export type ListServersOutputBodyItems = ServerView[] | null;
@@ -22,7 +22,7 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { ListServersMonitoringStatus } from './listServersMonitoringStatus';
25
+ import type { ListServersMonitoringStatus } from './listServersMonitoringStatus.js';
26
26
  export type ListServersParams = {
27
27
  /**
28
28
  * 这一页最多返回多少条,0 表示用默认值
@@ -22,7 +22,7 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { ListTimelineOutputBodyItems } from './listTimelineOutputBodyItems';
25
+ import type { ListTimelineOutputBodyItems } from './listTimelineOutputBodyItems.js';
26
26
  export interface ListTimelineOutputBody {
27
27
  items: ListTimelineOutputBodyItems;
28
28
  next_cursor: string;
@@ -22,5 +22,5 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { IncidentActivityView } from './incidentActivityView';
25
+ import type { IncidentActivityView } from './incidentActivityView.js';
26
26
  export type ListTimelineOutputBodyItems = IncidentActivityView[] | null;
@@ -22,7 +22,7 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { ListWebChecksOutputBodyItems } from './listWebChecksOutputBodyItems';
25
+ import type { ListWebChecksOutputBodyItems } from './listWebChecksOutputBodyItems.js';
26
26
  export interface ListWebChecksOutputBody {
27
27
  items: ListWebChecksOutputBodyItems;
28
28
  }
@@ -22,5 +22,5 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { WebCheckView } from './webCheckView';
25
+ import type { WebCheckView } from './webCheckView.js';
26
26
  export type ListWebChecksOutputBodyItems = WebCheckView[] | null;
@@ -22,7 +22,7 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { MaintenancePeriodInputKind } from './maintenancePeriodInputKind';
25
+ import type { MaintenancePeriodInputKind } from './maintenancePeriodInputKind.js';
26
26
  export interface MaintenancePeriodInput {
27
27
  /** @minimum 0 */
28
28
  duration_seconds?: number;
@@ -22,8 +22,8 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { MaintenancePeriodViewKind } from './maintenancePeriodViewKind';
26
- import type { MaintenancePeriodViewStartsAt } from './maintenancePeriodViewStartsAt';
25
+ import type { MaintenancePeriodViewKind } from './maintenancePeriodViewKind.js';
26
+ import type { MaintenancePeriodViewStartsAt } from './maintenancePeriodViewStartsAt.js';
27
27
  export interface MaintenancePeriodView {
28
28
  duration_seconds: number;
29
29
  /** DAILY / WEEKLY:每 N 天 / 每 N 周 */
@@ -22,9 +22,9 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { MaintenancePeriodView } from './maintenancePeriodView';
26
- import type { MaintenanceWindowViewServerIds } from './maintenanceWindowViewServerIds';
27
- import type { MaintenanceWindowViewSyncStatus } from './maintenanceWindowViewSyncStatus';
25
+ import type { MaintenancePeriodView } from './maintenancePeriodView.js';
26
+ import type { MaintenanceWindowViewServerIds } from './maintenanceWindowViewServerIds.js';
27
+ import type { MaintenanceWindowViewSyncStatus } from './maintenanceWindowViewSyncStatus.js';
28
28
  export interface MaintenanceWindowView {
29
29
  active_since: string;
30
30
  active_till: string;
@@ -22,7 +22,7 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { MetricSeriesViewPoints } from './metricSeriesViewPoints';
25
+ import type { MetricSeriesViewPoints } from './metricSeriesViewPoints.js';
26
26
  export interface MetricSeriesView {
27
27
  item_id: string;
28
28
  item_key: string;
@@ -22,5 +22,5 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { MetricPointView } from './metricPointView';
25
+ import type { MetricPointView } from './metricPointView.js';
26
26
  export type MetricSeriesViewPoints = MetricPointView[] | null;
@@ -22,7 +22,7 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { MonitoringItemViewThreshold } from './monitoringItemViewThreshold';
25
+ import type { MonitoringItemViewThreshold } from './monitoringItemViewThreshold.js';
26
26
  export interface MonitoringItemView {
27
27
  /** last / avg / min / max 之类 */
28
28
  aggregation_function: string;
@@ -22,8 +22,8 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { ProjectOverviewViewProblemCounts } from './projectOverviewViewProblemCounts';
26
- import type { ProjectOverviewViewReachabilityCounts } from './projectOverviewViewReachabilityCounts';
25
+ import type { ProjectOverviewViewProblemCounts } from './projectOverviewViewProblemCounts.js';
26
+ import type { ProjectOverviewViewReachabilityCounts } from './projectOverviewViewReachabilityCounts.js';
27
27
  export interface ProjectOverviewView {
28
28
  monitored_servers: number;
29
29
  problem_counts: ProjectOverviewViewProblemCounts;
@@ -22,5 +22,5 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { CountView } from './countView';
25
+ import type { CountView } from './countView.js';
26
26
  export type ProjectOverviewViewProblemCounts = CountView[] | null;
@@ -22,5 +22,5 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { CountView } from './countView';
25
+ import type { CountView } from './countView.js';
26
26
  export type ProjectOverviewViewReachabilityCounts = CountView[] | null;
@@ -22,8 +22,8 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { MaintenancePeriodInput } from './maintenancePeriodInput';
26
- import type { PutMaintenanceWindowInputBodyServerIds } from './putMaintenanceWindowInputBodyServerIds';
25
+ import type { MaintenancePeriodInput } from './maintenancePeriodInput.js';
26
+ import type { PutMaintenanceWindowInputBodyServerIds } from './putMaintenanceWindowInputBodyServerIds.js';
27
27
  export interface PutMaintenanceWindowInputBody {
28
28
  /** 整条规则的生效区间起点 */
29
29
  active_since: string;
@@ -22,9 +22,9 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { PutSLOInputBodyMinSeverity } from './putSLOInputBodyMinSeverity';
26
- import type { PutSLOInputBodyPeriod } from './putSLOInputBodyPeriod';
27
- import type { PutSLOInputBodySchedule } from './putSLOInputBodySchedule';
25
+ import type { PutSLOInputBodyMinSeverity } from './putSLOInputBodyMinSeverity.js';
26
+ import type { PutSLOInputBodyPeriod } from './putSLOInputBodyPeriod.js';
27
+ import type { PutSLOInputBodySchedule } from './putSLOInputBodySchedule.js';
28
28
  export interface PutSLOInputBody {
29
29
  effective_from?: string;
30
30
  min_severity: PutSLOInputBodyMinSeverity;
@@ -22,5 +22,5 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { ScheduleWindowInput } from './scheduleWindowInput';
25
+ import type { ScheduleWindowInput } from './scheduleWindowInput.js';
26
26
  export type PutSLOInputBodySchedule = ScheduleWindowInput[] | null;
@@ -22,7 +22,7 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { PutWebCheckInputBodySteps } from './putWebCheckInputBodySteps';
25
+ import type { PutWebCheckInputBodySteps } from './putWebCheckInputBodySteps.js';
26
26
  export interface PutWebCheckInputBody {
27
27
  /**
28
28
  * 0 表示用默认
@@ -22,7 +22,7 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { WebCheckStepInput } from './webCheckStepInput';
25
+ import type { WebCheckStepInput } from './webCheckStepInput.js';
26
26
  /**
27
27
  * @minItems 1
28
28
  */
@@ -22,10 +22,10 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { SLOViewMinSeverity } from './sLOViewMinSeverity';
26
- import type { SLOViewPeriod } from './sLOViewPeriod';
27
- import type { SLOViewSchedule } from './sLOViewSchedule';
28
- import type { SLOViewSyncStatus } from './sLOViewSyncStatus';
25
+ import type { SLOViewMinSeverity } from './sLOViewMinSeverity.js';
26
+ import type { SLOViewPeriod } from './sLOViewPeriod.js';
27
+ import type { SLOViewSchedule } from './sLOViewSchedule.js';
28
+ import type { SLOViewSyncStatus } from './sLOViewSyncStatus.js';
29
29
  export interface SLOView {
30
30
  effective_from: string;
31
31
  last_error: string;
@@ -22,7 +22,7 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { ScheduleWindowView } from './scheduleWindowView';
25
+ import type { ScheduleWindowView } from './scheduleWindowView.js';
26
26
  /**
27
27
  * 空表示 7×24 全天候承诺
28
28
  */
@@ -22,9 +22,9 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { ServerResourcesViewInterfaces } from './serverResourcesViewInterfaces';
26
- import type { ServerResourcesViewInventory } from './serverResourcesViewInventory';
27
- import type { ServerResourcesViewTags } from './serverResourcesViewTags';
25
+ import type { ServerResourcesViewInterfaces } from './serverResourcesViewInterfaces.js';
26
+ import type { ServerResourcesViewInventory } from './serverResourcesViewInventory.js';
27
+ import type { ServerResourcesViewTags } from './serverResourcesViewTags.js';
28
28
  export interface ServerResourcesView {
29
29
  interfaces: ServerResourcesViewInterfaces;
30
30
  /** 自动采集的硬件与系统清单:CPU、内存、操作系统等 */
@@ -22,5 +22,5 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { HostInterfaceView } from './hostInterfaceView';
25
+ import type { HostInterfaceView } from './hostInterfaceView.js';
26
26
  export type ServerResourcesViewInterfaces = HostInterfaceView[] | null;
@@ -22,5 +22,5 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { TagView } from './tagView';
25
+ import type { TagView } from './tagView.js';
26
26
  export type ServerResourcesViewTags = TagView[] | null;
@@ -22,8 +22,8 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { ServerTemplateViewConfiguredSecretParameters } from './serverTemplateViewConfiguredSecretParameters';
26
- import type { ServerTemplateViewParameters } from './serverTemplateViewParameters';
25
+ import type { ServerTemplateViewConfiguredSecretParameters } from './serverTemplateViewConfiguredSecretParameters.js';
26
+ import type { ServerTemplateViewParameters } from './serverTemplateViewParameters.js';
27
27
  export interface ServerTemplateView {
28
28
  configured_secret_parameters: ServerTemplateViewConfiguredSecretParameters;
29
29
  parameters: ServerTemplateViewParameters;
@@ -22,10 +22,10 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { ServerViewAddressKind } from './serverViewAddressKind';
26
- import type { ServerViewAgentMode } from './serverViewAgentMode';
27
- import type { ServerViewMonitoringStatus } from './serverViewMonitoringStatus';
28
- import type { ServerViewTemplates } from './serverViewTemplates';
25
+ import type { ServerViewAddressKind } from './serverViewAddressKind.js';
26
+ import type { ServerViewAgentMode } from './serverViewAgentMode.js';
27
+ import type { ServerViewMonitoringStatus } from './serverViewMonitoringStatus.js';
28
+ import type { ServerViewTemplates } from './serverViewTemplates.js';
29
29
  export interface ServerView {
30
30
  address: string;
31
31
  address_kind: ServerViewAddressKind;
@@ -22,5 +22,5 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { ServerTemplateView } from './serverTemplateView';
25
+ import type { ServerTemplateView } from './serverTemplateView.js';
26
26
  export type ServerViewTemplates = ServerTemplateView[] | null;
@@ -22,7 +22,7 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { SliReportOutputBodyRows } from './sliReportOutputBodyRows';
25
+ import type { SliReportOutputBodyRows } from './sliReportOutputBodyRows.js';
26
26
  export interface SliReportOutputBody {
27
27
  rows: SliReportOutputBodyRows;
28
28
  }
@@ -22,5 +22,5 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { SLIReportRowView } from './sLIReportRowView';
25
+ import type { SLIReportRowView } from './sLIReportRowView.js';
26
26
  export type SliReportOutputBodyRows = SLIReportRowView[] | null;
@@ -22,9 +22,9 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { SnapshotViewAgentReachability } from './snapshotViewAgentReachability';
26
- import type { SnapshotViewLastCollectedAt } from './snapshotViewLastCollectedAt';
27
- import type { SnapshotViewProblemCounts } from './snapshotViewProblemCounts';
25
+ import type { SnapshotViewAgentReachability } from './snapshotViewAgentReachability.js';
26
+ import type { SnapshotViewLastCollectedAt } from './snapshotViewLastCollectedAt.js';
27
+ import type { SnapshotViewProblemCounts } from './snapshotViewProblemCounts.js';
28
28
  export interface SnapshotView {
29
29
  agent_error: string;
30
30
  /** AGENT_DOWN 是 agent 不通但机器还活着;UNREACHABLE 是连这一点都说不上 */
@@ -22,5 +22,5 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { CountView } from './countView';
25
+ import type { CountView } from './countView.js';
26
26
  export type SnapshotViewProblemCounts = CountView[] | null;
@@ -22,8 +22,8 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { TemplateBindingInputParameters } from './templateBindingInputParameters';
26
- import type { TemplateBindingInputTemplateKey } from './templateBindingInputTemplateKey';
25
+ import type { TemplateBindingInputParameters } from './templateBindingInputParameters.js';
26
+ import type { TemplateBindingInputTemplateKey } from './templateBindingInputTemplateKey.js';
27
27
  export interface TemplateBindingInput {
28
28
  /** 模板自己声明的参数,密钥参数写明文,返回时只报名字 */
29
29
  parameters?: TemplateBindingInputParameters;
@@ -22,7 +22,7 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { TopItemsOutputBodyItems } from './topItemsOutputBodyItems';
25
+ import type { TopItemsOutputBodyItems } from './topItemsOutputBodyItems.js';
26
26
  export interface TopItemsOutputBody {
27
27
  items: TopItemsOutputBodyItems;
28
28
  }
@@ -22,5 +22,5 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { TopItemView } from './topItemView';
25
+ import type { TopItemView } from './topItemView.js';
26
26
  export type TopItemsOutputBodyItems = TopItemView[] | null;
@@ -22,9 +22,9 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { UpdateServerInputBodyAddressKind } from './updateServerInputBodyAddressKind';
26
- import type { UpdateServerInputBodyAgentMode } from './updateServerInputBodyAgentMode';
27
- import type { TemplateBindingInput } from './templateBindingInput';
25
+ import type { UpdateServerInputBodyAddressKind } from './updateServerInputBodyAddressKind.js';
26
+ import type { UpdateServerInputBodyAgentMode } from './updateServerInputBodyAgentMode.js';
27
+ import type { TemplateBindingInput } from './templateBindingInput.js';
28
28
  export interface UpdateServerInputBody {
29
29
  /** @maxLength 255 */
30
30
  address?: string;
@@ -22,9 +22,9 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { WebCheckResultView } from './webCheckResultView';
26
- import type { WebCheckViewSteps } from './webCheckViewSteps';
27
- import type { WebCheckViewSyncStatus } from './webCheckViewSyncStatus';
25
+ import type { WebCheckResultView } from './webCheckResultView.js';
26
+ import type { WebCheckViewSteps } from './webCheckViewSteps.js';
27
+ import type { WebCheckViewSyncStatus } from './webCheckViewSyncStatus.js';
28
28
  export interface WebCheckView {
29
29
  check_id: string;
30
30
  interval_seconds: number;
@@ -22,5 +22,5 @@
22
22
  接入和轮换的响应中包含 `tls_psk`,其他任何接口都不会再返回它,请及时保存。遗失后可再轮换一次,代价是被监控的机器需要同步更新一次 agent 配置。
23
23
  * OpenAPI spec version: 1.0.0
24
24
  */
25
- import type { WebCheckStepView } from './webCheckStepView';
25
+ import type { WebCheckStepView } from './webCheckStepView.js';
26
26
  export type WebCheckViewSteps = WebCheckStepView[] | null;
package/dist/http.d.ts CHANGED
@@ -1,20 +1,20 @@
1
1
  import { type AxiosRequestConfig } from 'axios';
2
- /** TokenProvider 返回当前使用的项目令牌;返回空字符串表示本次请求不携带令牌。 */
2
+ /** TokenProvider returns the current project token; an empty string sends no token. */
3
3
  export type TokenProvider = () => string | Promise<string>;
4
4
  export interface ClientOptions {
5
- /** baseURL API 地址,例如 https://api.leaflow.net */
5
+ /** baseURL is the API address, for example https://api.leaflow.net. */
6
6
  baseURL: string;
7
7
  /**
8
- * getToken 在每次请求前调用。
8
+ * getToken is called before every request.
9
9
  *
10
- * 每次都调用而非初始化时取一次:项目令牌有有效期,切换项目时也会更换。缓存旧值会导致
11
- * 切换项目后请求仍携带上一个项目的令牌。
10
+ * Called each time rather than read once at setup: the project token expires and
11
+ * is replaced when the active project changes.
12
12
  */
13
13
  getToken?: TokenProvider;
14
- /** timeout 单位毫秒。 */
14
+ /** timeout in milliseconds. */
15
15
  timeout?: number;
16
16
  }
17
- /** configure 初始化 SDK,使用前必须调用一次。 */
17
+ /** configure initialises the SDK. Call it once before use. */
18
18
  export declare function configure(options: ClientOptions): void;
19
- /** request 是生成代码统一使用的请求入口。 */
19
+ /** request is the entry point used by the generated code. */
20
20
  export declare function request<T>(config: AxiosRequestConfig): Promise<T>;
package/dist/http.js CHANGED
@@ -1,11 +1,12 @@
1
- // 生成的客户端统一经由此处发起请求。
1
+ // Every generated client issues its requests through this module.
2
2
  //
3
- // 集中处理凭据:项目令牌有有效期,且切换项目时会更换。若由各调用点自行设置 Authorization
4
- // 头,令牌更新逻辑将分散在各处,遗漏之处会表现为间歇性的 401。
3
+ // Credentials are handled in one place: the project token expires and changes when
4
+ // the active project changes, so setting the Authorization header at each call site
5
+ // would scatter the refresh logic and surface as intermittent 401s.
5
6
  import axios from 'axios';
6
7
  let instance;
7
8
  let provider;
8
- /** configure 初始化 SDK,使用前必须调用一次。 */
9
+ /** configure initialises the SDK. Call it once before use. */
9
10
  export function configure(options) {
10
11
  provider = options.getToken;
11
12
  instance = axios.create({
@@ -13,10 +14,10 @@ export function configure(options) {
13
14
  timeout: options.timeout ?? 30_000,
14
15
  });
15
16
  }
16
- /** request 是生成代码统一使用的请求入口。 */
17
+ /** request is the entry point used by the generated code. */
17
18
  export async function request(config) {
18
19
  if (!instance) {
19
- throw new Error('SDK 未初始化:请先调用 configure({ baseURL })');
20
+ throw new Error('SDK not initialised: call configure({ baseURL }) first');
20
21
  }
21
22
  const token = provider ? await provider() : '';
22
23
  const response = await instance.request({
package/dist/index.d.ts CHANGED
@@ -4,9 +4,5 @@ export * as assistant from './generated/assistant/index.js';
4
4
  export * as compute from './generated/compute/index.js';
5
5
  export * as iam from './generated/iam/index.js';
6
6
  export * as monitoring from './generated/monitoring/index.js';
7
- /** SERVICE_VERSIONS 记着每份文档来自服务的哪个 tag。
8
- *
9
- * 排查“SDK 说有这个字段而服务端没有”时第一个要看的就是它——只看生成出来的代码
10
- * 答不出这份 SDK 是照着服务的哪一版生成的。
11
- */
7
+ /** Service versions the bundled specs were generated from. */
12
8
  export declare const SERVICE_VERSIONS: Record<string, string>;