@blues-inc/notehub-js 6.7.0 → 7.0.0-beta.2

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 (196) hide show
  1. package/README.md +154 -150
  2. package/dist/ApiClient.js +3 -3
  3. package/dist/api/AlertApi.js +13 -8
  4. package/dist/api/AuthorizationApi.js +12 -51
  5. package/dist/api/DescriptionApi.js +50 -34
  6. package/dist/api/DeviceApi.js +278 -135
  7. package/dist/api/EventApi.js +68 -201
  8. package/dist/api/ExternalDevicesApi.js +20 -14
  9. package/dist/api/JobsApi.js +58 -40
  10. package/dist/api/MonitorApi.js +28 -18
  11. package/dist/api/OrganizationApi.js +26 -20
  12. package/dist/api/ProjectApi.js +260 -166
  13. package/dist/api/RouteApi.js +55 -40
  14. package/dist/api/SkillsApi.js +279 -0
  15. package/dist/api/UsageApi.js +74 -64
  16. package/dist/api/WebhookApi.js +68 -46
  17. package/dist/index.js +91 -63
  18. package/dist/model/AWSRoleConfig.js +2 -2
  19. package/dist/model/AddDeviceToFleetsRequest.js +4 -4
  20. package/dist/model/Alert.js +15 -10
  21. package/dist/model/AlertDataInner.js +10 -5
  22. package/dist/model/AlertNotificationsInner.js +15 -5
  23. package/dist/model/ArchiveStats.js +2 -2
  24. package/dist/model/AwsRoute.js +2 -2
  25. package/dist/model/AzureRoute.js +2 -2
  26. package/dist/model/BatchJobNoteRequest.js +2 -2
  27. package/dist/model/BatchJobRequests.js +6 -6
  28. package/dist/model/BillingAccount.js +2 -2
  29. package/dist/model/BillingAccountRole.js +1 -1
  30. package/dist/model/BlynkRoute.js +2 -2
  31. package/dist/model/Body.js +3 -2
  32. package/dist/model/CancelJobRun200Response.js +2 -2
  33. package/dist/model/CellularPlan.js +4 -3
  34. package/dist/model/CloneProjectRequest.js +8 -8
  35. package/dist/model/Contact.js +2 -2
  36. package/dist/model/CreateFleetRequest.js +5 -4
  37. package/dist/model/CreateJob201Response.js +2 -2
  38. package/dist/model/CreateMonitor.js +38 -26
  39. package/dist/model/CreateProductRequest.js +8 -7
  40. package/dist/model/CreateProjectRequest.js +6 -6
  41. package/dist/model/CreateProjectSecretRequest.js +6 -6
  42. package/dist/model/CreateUpdateRepository.js +4 -2
  43. package/dist/model/CreatedRepository.js +6 -6
  44. package/dist/model/CurrentFirmware.js +2 -2
  45. package/dist/model/DFUEnv.js +2 -2
  46. package/dist/model/DFUState.js +2 -2
  47. package/dist/model/DataField.js +2 -2
  48. package/dist/model/DataSet.js +5 -5
  49. package/dist/model/DataSetField.js +3 -3
  50. package/dist/model/DataUsage.js +2 -2
  51. package/dist/model/DatacakeRoute.js +2 -2
  52. package/dist/model/DatasetReloadProgress.js +2 -2
  53. package/dist/model/DeleteDeviceFromFleetsRequest.js +4 -4
  54. package/dist/model/DeleteJob200Response.js +2 -2
  55. package/dist/model/DeleteNotefilesRequest.js +3 -3
  56. package/dist/model/DescriptionRecord.js +7 -7
  57. package/dist/model/DescriptionRecordList.js +2 -2
  58. package/dist/model/Device.js +37 -9
  59. package/dist/model/DeviceDfuHistory.js +13 -3
  60. package/dist/model/DeviceDfuHistoryCurrent.js +3 -3
  61. package/dist/model/DeviceDfuHistoryPage.js +15 -2
  62. package/dist/model/DeviceDfuStateMachine.js +3 -2
  63. package/dist/model/DeviceDfuStateMachineNode.js +3 -3
  64. package/dist/model/DeviceDfuStatus.js +13 -4
  65. package/dist/model/DeviceDfuStatusPage.js +15 -2
  66. package/dist/model/DeviceSensor.js +2 -2
  67. package/dist/model/DeviceSession.js +6 -6
  68. package/dist/model/DeviceTowerInfo.js +7 -2
  69. package/dist/model/DeviceUsage.js +2 -2
  70. package/dist/model/DfuActionRequest.js +3 -3
  71. package/dist/model/EmailNotification.js +30 -7
  72. package/dist/model/EnvTreeJsonNode.js +2 -2
  73. package/dist/model/EnvVar.js +2 -2
  74. package/dist/model/EnvironmentVariables.js +2 -2
  75. package/dist/model/Error.js +2 -2
  76. package/dist/model/Event.js +17 -8
  77. package/dist/model/Filter.js +2 -2
  78. package/dist/model/Firmware.js +2 -2
  79. package/dist/model/FirmwareInfo.js +7 -7
  80. package/dist/model/Fleet.js +12 -11
  81. package/dist/model/FleetConnectivityAssurance.js +2 -2
  82. package/dist/model/GetAlerts200Response.js +15 -2
  83. package/dist/model/GetApiUsage200Response.js +3 -3
  84. package/dist/model/GetDataUsage200Response.js +3 -3
  85. package/dist/model/GetDataUsage200ResponseDataInner.js +4 -4
  86. package/dist/model/GetDbNote200Response.js +2 -2
  87. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +2 -2
  88. package/dist/model/GetDeviceFleets200Response.js +2 -2
  89. package/dist/model/GetDeviceHealthLog200Response.js +2 -2
  90. package/dist/model/GetDeviceJourney200Response.js +2 -2
  91. package/dist/model/GetDeviceJourney200ResponseJourney.js +2 -2
  92. package/dist/model/GetDeviceJourneys200Response.js +2 -2
  93. package/dist/model/GetDeviceJourneys200ResponseJourneysInner.js +2 -2
  94. package/dist/model/GetDeviceLatestEvents200Response.js +3 -3
  95. package/dist/model/GetDevicePlans200Response.js +3 -2
  96. package/dist/model/GetDevicePublicKey200Response.js +6 -4
  97. package/dist/model/GetDevicePublicKeys200Response.js +15 -2
  98. package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +13 -2
  99. package/dist/model/GetDeviceSessions200Response.js +15 -2
  100. package/dist/model/GetDevices200Response.js +15 -2
  101. package/dist/model/GetEvents200Response.js +15 -2
  102. package/dist/model/GetJobRuns200Response.js +2 -2
  103. package/dist/model/GetJobs200Response.js +2 -2
  104. package/dist/model/GetNotefile200Response.js +2 -2
  105. package/dist/model/{GetBillingAccount200Response.js → GetOrganization200Response.js} +29 -29
  106. package/dist/model/{GetBillingAccount200ResponsePlan.js → GetOrganization200ResponsePlan.js} +25 -25
  107. package/dist/model/{GetBillingAccountBalanceHistory200Response.js → GetOrganizationBalanceHistory200Response.js} +23 -23
  108. package/dist/model/{GetBillingAccountBalanceHistory200ResponseDataInner.js → GetOrganizationBalanceHistory200ResponseDataInner.js} +23 -23
  109. package/dist/model/GetOrganizations200Response.js +2 -2
  110. package/dist/model/GetProducts200Response.js +2 -2
  111. package/dist/model/GetProjectMembers200Response.js +2 -2
  112. package/dist/model/GetProjectSecretsResponse.js +2 -2
  113. package/dist/model/GetProjects200Response.js +2 -2
  114. package/dist/model/GetRouteLogsUsage200Response.js +3 -3
  115. package/dist/model/GetSessionsUsage200Response.js +4 -4
  116. package/dist/model/GetWebhooks200Response.js +2 -2
  117. package/dist/model/GoogleRoute.js +2 -2
  118. package/dist/model/HealthLog.js +8 -5
  119. package/dist/model/HttpRoute.js +2 -2
  120. package/dist/model/Job.js +2 -2
  121. package/dist/model/JobDefinition.js +3 -3
  122. package/dist/model/JobDefinitionReportOptions.js +2 -2
  123. package/dist/model/JobDefinitionSelect.js +4 -4
  124. package/dist/model/JobDetail.js +2 -2
  125. package/dist/model/JobDetailAllOf.js +2 -2
  126. package/dist/model/JobRun.js +2 -2
  127. package/dist/model/Location.js +14 -8
  128. package/dist/model/Monitor.js +19 -13
  129. package/dist/model/MonitorAlertRoutesInner.js +61 -15
  130. package/dist/model/MqttRoute.js +2 -2
  131. package/dist/model/Note.js +3 -3
  132. package/dist/model/NoteInput.js +2 -2
  133. package/dist/model/Notefile.js +3 -2
  134. package/dist/model/NotefileSchema.js +6 -4
  135. package/dist/model/NotehubRoute.js +8 -4
  136. package/dist/model/NotehubRouteSummary.js +7 -2
  137. package/dist/model/OAuth2Error.js +2 -2
  138. package/dist/model/OAuth2TokenResponse.js +2 -2
  139. package/dist/model/Organization.js +6 -4
  140. package/dist/model/OrganizationRole.js +1 -1
  141. package/dist/model/Product.js +9 -5
  142. package/dist/model/Project.js +8 -5
  143. package/dist/model/ProjectMember.js +6 -5
  144. package/dist/model/ProjectSecret.js +8 -8
  145. package/dist/model/ProvisionDeviceRequest.js +6 -6
  146. package/dist/model/ProxyRoute.js +2 -2
  147. package/dist/model/QubitroRoute.js +2 -2
  148. package/dist/model/RadRoute.js +2 -2
  149. package/dist/model/Repository.js +4 -4
  150. package/dist/model/RepositoryListResponse.js +2 -2
  151. package/dist/model/RepositoryRecord.js +119 -0
  152. package/dist/model/RepositoryTokenRequest.js +2 -2
  153. package/dist/model/RepositoryTokenResponse.js +2 -2
  154. package/dist/model/Role.js +1 -1
  155. package/dist/model/RouteLog.js +10 -10
  156. package/dist/model/RouteTransformSettings.js +2 -2
  157. package/dist/model/RunJob200Response.js +2 -2
  158. package/dist/model/S3ArchiveRoute.js +2 -2
  159. package/dist/model/SatelliteDataUsage.js +2 -2
  160. package/dist/model/SatellitePlan.js +2 -2
  161. package/dist/model/SchemaProperty.js +7 -5
  162. package/dist/model/SignalDevice200Response.js +3 -3
  163. package/dist/model/SimUsage.js +2 -2
  164. package/dist/model/Skill.js +207 -0
  165. package/dist/model/{GetBillingAccounts200Response.js → SkillLinks.js} +60 -41
  166. package/dist/model/{GetEventsByCursor200Response.js → SkillSet.js} +76 -52
  167. package/dist/model/SkillSummary.js +205 -0
  168. package/dist/model/SkillWrite.js +128 -0
  169. package/dist/model/SkillWriteResult.js +153 -0
  170. package/dist/model/SlackBearerNotification.js +32 -9
  171. package/dist/model/SlackRoute.js +2 -2
  172. package/dist/model/SlackWebHookNotification.js +32 -9
  173. package/dist/model/SnowflakeRoute.js +2 -2
  174. package/dist/model/SnowpipeStreamingRoute.js +2 -2
  175. package/dist/model/ThingworxRoute.js +2 -2
  176. package/dist/model/TowerLocation.js +2 -2
  177. package/dist/model/TwilioNotification.js +167 -0
  178. package/dist/model/TwilioRoute.js +2 -2
  179. package/dist/model/UpdateFleetRequest.js +8 -7
  180. package/dist/model/UpdateHostFirmwareRequest.js +5 -5
  181. package/dist/model/UpdateProjectSecretRequest.js +4 -4
  182. package/dist/model/UploadMetadata.js +2 -2
  183. package/dist/model/UsageApiData.js +2 -2
  184. package/dist/model/UsageData.js +2 -2
  185. package/dist/model/UsageEventsData.js +2 -2
  186. package/dist/model/UsageEventsResponse.js +3 -3
  187. package/dist/model/UsageRouteLogsData.js +3 -3
  188. package/dist/model/UsageSessionsData.js +2 -2
  189. package/dist/model/UserDfuStateMachine.js +2 -2
  190. package/dist/model/UserDfuStateMachineStatus.js +2 -2
  191. package/dist/model/UserFirmwareInfo.js +2 -2
  192. package/dist/model/WebhookSettings.js +5 -5
  193. package/package.json +1 -1
  194. package/dist/api/BillingAccountApi.js +0 -167
  195. package/dist/model/Login200Response.js +0 -91
  196. package/dist/model/LoginRequest.js +0 -103
@@ -13,7 +13,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
13
13
  function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
14
14
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
15
15
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
16
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
16
+ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
17
17
  * Notehub API
18
18
  * The OpenAPI definition for the Notehub.io API.
19
19
  *
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  /**
29
29
  * Alert service.
30
30
  * @module api/AlertApi
31
- * @version 6.7.0
31
+ * @version 7.0.0-beta.2
32
32
  */
33
33
  var AlertApi = exports["default"] = /*#__PURE__*/function () {
34
34
  /**
@@ -44,12 +44,14 @@ var AlertApi = exports["default"] = /*#__PURE__*/function () {
44
44
  }
45
45
 
46
46
  /**
47
- * Get list of defined Alerts
47
+ * List alerts
48
+ * List the alerts a project's monitors have raised, with each one's value, device and the notifications sent. Set `monitorUID` for one monitor's alerts. Paginated.
48
49
  * @param {String} projectOrProductUID
49
50
  * @param {Object} opts Optional parameters
50
- * @param {Number} opts.pageSize (default to 50)
51
+ * @param {Number} opts.pageSize (default to 1000)
51
52
  * @param {Number} opts.pageNum (default to 1)
52
- * @param {String} opts.monitorUID
53
+ * @param {String} opts.cursor If supplied, results are returned in ascending order of modification time. A cursor is a timestamp: Unix epoch microseconds (UTC), optionally followed by `.N`. To start at a time, pass the bare microsecond value (inclusive; e.g. now minus 30 days); 0 starts from the beginning. To resume, pass next_cursor (or X-Next-Cursor) back unchanged; `.N` is the serial of the last row read at that microsecond, so nothing repeats or is skipped.
54
+ * @param {String} opts.monitorUID Return only this monitor's alerts.
53
55
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetAlerts200Response} and HTTP response
54
56
  */
55
57
  return _createClass(AlertApi, [{
@@ -67,6 +69,7 @@ var AlertApi = exports["default"] = /*#__PURE__*/function () {
67
69
  var queryParams = {
68
70
  pageSize: opts["pageSize"],
69
71
  pageNum: opts["pageNum"],
72
+ cursor: opts["cursor"],
70
73
  monitorUID: opts["monitorUID"]
71
74
  };
72
75
  var headerParams = {};
@@ -79,12 +82,14 @@ var AlertApi = exports["default"] = /*#__PURE__*/function () {
79
82
  }
80
83
 
81
84
  /**
82
- * Get list of defined Alerts
85
+ * List alerts
86
+ * List the alerts a project's monitors have raised, with each one's value, device and the notifications sent. Set `monitorUID` for one monitor's alerts. Paginated.
83
87
  * @param {String} projectOrProductUID
84
88
  * @param {Object} opts Optional parameters
85
- * @param {Number} opts.pageSize (default to 50)
89
+ * @param {Number} opts.pageSize (default to 1000)
86
90
  * @param {Number} opts.pageNum (default to 1)
87
- * @param {String} opts.monitorUID
91
+ * @param {String} opts.cursor If supplied, results are returned in ascending order of modification time. A cursor is a timestamp: Unix epoch microseconds (UTC), optionally followed by `.N`. To start at a time, pass the bare microsecond value (inclusive; e.g. now minus 30 days); 0 starts from the beginning. To resume, pass next_cursor (or X-Next-Cursor) back unchanged; `.N` is the serial of the last row read at that microsecond, so nothing repeats or is skipped.
92
+ * @param {String} opts.monitorUID Return only this monitor's alerts.
88
93
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetAlerts200Response}
89
94
  */
90
95
  }, {
@@ -5,8 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
- var _Login200Response = _interopRequireDefault(require("../model/Login200Response"));
9
- var _LoginRequest = _interopRequireDefault(require("../model/LoginRequest"));
10
8
  var _OAuth2Error = _interopRequireDefault(require("../model/OAuth2Error"));
11
9
  var _OAuth2TokenResponse = _interopRequireDefault(require("../model/OAuth2TokenResponse"));
12
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
@@ -15,7 +13,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
15
13
  function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
16
14
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
17
15
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
16
+ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
19
17
  * Notehub API
20
18
  * The OpenAPI definition for the Notehub.io API.
21
19
  *
@@ -30,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
28
  /**
31
29
  * Authorization service.
32
30
  * @module api/AuthorizationApi
33
- * @version 6.7.0
31
+ * @version 7.0.0-beta.2
34
32
  */
35
33
  var AuthorizationApi = exports["default"] = /*#__PURE__*/function () {
36
34
  /**
@@ -46,53 +44,16 @@ var AuthorizationApi = exports["default"] = /*#__PURE__*/function () {
46
44
  }
47
45
 
48
46
  /**
49
- * Gets an API key from username and password
50
- * @param {module:model/LoginRequest} loginRequest
51
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Login200Response} and HTTP response
47
+ * Get an access token with OAuth client credentials
48
+ * Exchange an OAuth client's ID and secret for a bearer access token, using the OAuth 2.0 client credentials grant. Send the parameters form-encoded, not as JSON. Returns 401 for a bad client ID or secret, and 403 for a scope the client can't have.
49
+ * @param {String} clientId
50
+ * @param {String} clientSecret
51
+ * @param {module:model/String} grantType
52
+ * @param {Object} opts Optional parameters
53
+ * @param {String} opts.scope Space-delimited scopes.
54
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OAuth2TokenResponse} and HTTP response
52
55
  */
53
56
  return _createClass(AuthorizationApi, [{
54
- key: "loginWithHttpInfo",
55
- value: function loginWithHttpInfo(loginRequest) {
56
- var postBody = loginRequest;
57
- // verify the required parameter 'loginRequest' is set
58
- if (loginRequest === undefined || loginRequest === null) {
59
- throw new Error("Missing the required parameter 'loginRequest' when calling login");
60
- }
61
- var pathParams = {};
62
- var queryParams = {};
63
- var headerParams = {};
64
- var formParams = {};
65
- var authNames = [];
66
- var contentTypes = ["application/json"];
67
- var accepts = ["application/json"];
68
- var returnType = _Login200Response["default"];
69
- return this.apiClient.callApi("/auth/login", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
70
- }
71
-
72
- /**
73
- * Gets an API key from username and password
74
- * @param {module:model/LoginRequest} loginRequest
75
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Login200Response}
76
- */
77
- }, {
78
- key: "login",
79
- value: function login(loginRequest) {
80
- return this.loginWithHttpInfo(loginRequest).then(function (response_and_data) {
81
- return response_and_data.data;
82
- });
83
- }
84
-
85
- /**
86
- * Issue an OAuth 2.0 access token (Client Credentials)
87
- * Exchanges client credentials for an access token. Parameters must be sent as application/x-www-form-urlencoded.
88
- * @param {String} clientId
89
- * @param {String} clientSecret
90
- * @param {module:model/String} grantType
91
- * @param {Object} opts Optional parameters
92
- * @param {String} opts.scope Space-delimited scopes.
93
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OAuth2TokenResponse} and HTTP response
94
- */
95
- }, {
96
57
  key: "oAuth2ClientCredentialsWithHttpInfo",
97
58
  value: function oAuth2ClientCredentialsWithHttpInfo(clientId, clientSecret, grantType, opts) {
98
59
  opts = opts || {};
@@ -126,8 +87,8 @@ var AuthorizationApi = exports["default"] = /*#__PURE__*/function () {
126
87
  }
127
88
 
128
89
  /**
129
- * Issue an OAuth 2.0 access token (Client Credentials)
130
- * Exchanges client credentials for an access token. Parameters must be sent as application/x-www-form-urlencoded.
90
+ * Get an access token with OAuth client credentials
91
+ * Exchange an OAuth client's ID and secret for a bearer access token, using the OAuth 2.0 client credentials grant. Send the parameters form-encoded, not as JSON. Returns 401 for a bad client ID or secret, and 403 for a scope the client can't have.
131
92
  * @param {String} clientId
132
93
  * @param {String} clientSecret
133
94
  * @param {module:model/String} grantType
@@ -14,7 +14,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
14
14
  function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
15
15
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
17
+ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
18
18
  * Notehub API
19
19
  * The OpenAPI definition for the Notehub.io API.
20
20
  *
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * Description service.
31
31
  * @module api/DescriptionApi
32
- * @version 6.7.0
32
+ * @version 7.0.0-beta.2
33
33
  */
34
34
  var DescriptionApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**
@@ -45,8 +45,9 @@ var DescriptionApi = exports["default"] = /*#__PURE__*/function () {
45
45
  }
46
46
 
47
47
  /**
48
- * Delete a global description record by name (Blues staff only).
49
- * @param {String} descriptionName
48
+ * Delete a global description record
49
+ * Delete one platform-wide description record. Blues staff only; returns 403 for anyone else. Returns 404 if the record doesn't exist.
50
+ * @param {String} descriptionName Record name, 1-128 letters, digits, `.`, `_` or `-`, e.g. `_health.qo`.
50
51
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
51
52
  */
52
53
  return _createClass(DescriptionApi, [{
@@ -71,8 +72,9 @@ var DescriptionApi = exports["default"] = /*#__PURE__*/function () {
71
72
  }
72
73
 
73
74
  /**
74
- * Delete a global description record by name (Blues staff only).
75
- * @param {String} descriptionName
75
+ * Delete a global description record
76
+ * Delete one platform-wide description record. Blues staff only; returns 403 for anyone else. Returns 404 if the record doesn't exist.
77
+ * @param {String} descriptionName Record name, 1-128 letters, digits, `.`, `_` or `-`, e.g. `_health.qo`.
76
78
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
77
79
  */
78
80
  }, {
@@ -84,9 +86,10 @@ var DescriptionApi = exports["default"] = /*#__PURE__*/function () {
84
86
  }
85
87
 
86
88
  /**
87
- * Delete a project description record by name.
89
+ * Delete a project description record
90
+ * Delete one of a project's description records. Requires the Owner or Developer role. Returns 404 if the record doesn't exist.
88
91
  * @param {String} projectOrProductUID
89
- * @param {String} descriptionName
92
+ * @param {String} descriptionName Record name, 1-128 letters, digits, `.`, `_` or `-`, e.g. `_health.qo`.
90
93
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
91
94
  */
92
95
  }, {
@@ -116,9 +119,10 @@ var DescriptionApi = exports["default"] = /*#__PURE__*/function () {
116
119
  }
117
120
 
118
121
  /**
119
- * Delete a project description record by name.
122
+ * Delete a project description record
123
+ * Delete one of a project's description records. Requires the Owner or Developer role. Returns 404 if the record doesn't exist.
120
124
  * @param {String} projectOrProductUID
121
- * @param {String} descriptionName
125
+ * @param {String} descriptionName Record name, 1-128 letters, digits, `.`, `_` or `-`, e.g. `_health.qo`.
122
126
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
123
127
  */
124
128
  }, {
@@ -130,8 +134,9 @@ var DescriptionApi = exports["default"] = /*#__PURE__*/function () {
130
134
  }
131
135
 
132
136
  /**
133
- * Get a global description record. Returns the raw content with its stored Content-Type.
134
- * @param {String} descriptionName
137
+ * Get a global description record
138
+ * Get the content of one platform-wide description record, served with the Content-Type it was stored with. Any signed-in user can read it. Returns 404 if the record doesn't exist.
139
+ * @param {String} descriptionName Record name, 1-128 letters, digits, `.`, `_` or `-`, e.g. `_health.qo`.
135
140
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link File} and HTTP response
136
141
  */
137
142
  }, {
@@ -156,8 +161,9 @@ var DescriptionApi = exports["default"] = /*#__PURE__*/function () {
156
161
  }
157
162
 
158
163
  /**
159
- * Get a global description record. Returns the raw content with its stored Content-Type.
160
- * @param {String} descriptionName
164
+ * Get a global description record
165
+ * Get the content of one platform-wide description record, served with the Content-Type it was stored with. Any signed-in user can read it. Returns 404 if the record doesn't exist.
166
+ * @param {String} descriptionName Record name, 1-128 letters, digits, `.`, `_` or `-`, e.g. `_health.qo`.
161
167
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link File}
162
168
  */
163
169
  }, {
@@ -169,9 +175,10 @@ var DescriptionApi = exports["default"] = /*#__PURE__*/function () {
169
175
  }
170
176
 
171
177
  /**
172
- * Get a project description record. Returns the raw content with its stored Content-Type.
178
+ * Get a project description record
179
+ * Get the content of one of a project's description records, served with the Content-Type it was stored with. For the metadata of every record, use `ListProjectDescriptions`. Returns 404 if the record doesn't exist.
173
180
  * @param {String} projectOrProductUID
174
- * @param {String} descriptionName
181
+ * @param {String} descriptionName Record name, 1-128 letters, digits, `.`, `_` or `-`, e.g. `_health.qo`.
175
182
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link File} and HTTP response
176
183
  */
177
184
  }, {
@@ -201,9 +208,10 @@ var DescriptionApi = exports["default"] = /*#__PURE__*/function () {
201
208
  }
202
209
 
203
210
  /**
204
- * Get a project description record. Returns the raw content with its stored Content-Type.
211
+ * Get a project description record
212
+ * Get the content of one of a project's description records, served with the Content-Type it was stored with. For the metadata of every record, use `ListProjectDescriptions`. Returns 404 if the record doesn't exist.
205
213
  * @param {String} projectOrProductUID
206
- * @param {String} descriptionName
214
+ * @param {String} descriptionName Record name, 1-128 letters, digits, `.`, `_` or `-`, e.g. `_health.qo`.
207
215
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link File}
208
216
  */
209
217
  }, {
@@ -215,7 +223,8 @@ var DescriptionApi = exports["default"] = /*#__PURE__*/function () {
215
223
  }
216
224
 
217
225
  /**
218
- * List metadata for all global description records.
226
+ * List global description records
227
+ * List the platform-wide description records that Blues publishes, without their content. Any signed-in user can read them. For a project's own records, use `ListProjectDescriptions`.
219
228
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DescriptionRecordList} and HTTP response
220
229
  */
221
230
  }, {
@@ -234,7 +243,8 @@ var DescriptionApi = exports["default"] = /*#__PURE__*/function () {
234
243
  }
235
244
 
236
245
  /**
237
- * List metadata for all global description records.
246
+ * List global description records
247
+ * List the platform-wide description records that Blues publishes, without their content. Any signed-in user can read them. For a project's own records, use `ListProjectDescriptions`.
238
248
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DescriptionRecordList}
239
249
  */
240
250
  }, {
@@ -246,7 +256,8 @@ var DescriptionApi = exports["default"] = /*#__PURE__*/function () {
246
256
  }
247
257
 
248
258
  /**
249
- * List metadata for all description records in a project.
259
+ * List a project's description records
260
+ * List a project's description records by name, with each one's content type, size and change history but not its content. A description record is a named document, such as Markdown, JSON or plain text, that explains the project's data. For Blues' platform-wide records, use `ListGlobalDescriptions`.
250
261
  * @param {String} projectOrProductUID
251
262
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DescriptionRecordList} and HTTP response
252
263
  */
@@ -272,7 +283,8 @@ var DescriptionApi = exports["default"] = /*#__PURE__*/function () {
272
283
  }
273
284
 
274
285
  /**
275
- * List metadata for all description records in a project.
286
+ * List a project's description records
287
+ * List a project's description records by name, with each one's content type, size and change history but not its content. A description record is a named document, such as Markdown, JSON or plain text, that explains the project's data. For Blues' platform-wide records, use `ListGlobalDescriptions`.
276
288
  * @param {String} projectOrProductUID
277
289
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DescriptionRecordList}
278
290
  */
@@ -285,9 +297,10 @@ var DescriptionApi = exports["default"] = /*#__PURE__*/function () {
285
297
  }
286
298
 
287
299
  /**
288
- * Create or replace a global description record, Blues staff only (up to 10MB). The request Content-Type is stored and returned on GET; when omitted it is detected (JSON or text).
289
- * @param {String} descriptionName
290
- * @param {File} body The description content (up to 10MB). The request Content-Type is stored and returned on GET; when omitted it is detected (JSON or text).
300
+ * Create or replace a global description record
301
+ * Store a platform-wide named document that every signed-in user can read, replacing any record with that name. The Content-Type is handled as in `SetProjectDescription`. Blues staff only; returns 403 for anyone else. Returns 400 if the content is over 10 MB or the name isn't valid.
302
+ * @param {String} descriptionName Record name, 1-128 letters, digits, `.`, `_` or `-`, e.g. `_health.qo`.
303
+ * @param {File} body The document to store, up to 10 MB. Send its Content-Type, such as `text/markdown`; Markdown isn't detected.
291
304
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DescriptionRecord} and HTTP response
292
305
  */
293
306
  }, {
@@ -316,9 +329,10 @@ var DescriptionApi = exports["default"] = /*#__PURE__*/function () {
316
329
  }
317
330
 
318
331
  /**
319
- * Create or replace a global description record, Blues staff only (up to 10MB). The request Content-Type is stored and returned on GET; when omitted it is detected (JSON or text).
320
- * @param {String} descriptionName
321
- * @param {File} body The description content (up to 10MB). The request Content-Type is stored and returned on GET; when omitted it is detected (JSON or text).
332
+ * Create or replace a global description record
333
+ * Store a platform-wide named document that every signed-in user can read, replacing any record with that name. The Content-Type is handled as in `SetProjectDescription`. Blues staff only; returns 403 for anyone else. Returns 400 if the content is over 10 MB or the name isn't valid.
334
+ * @param {String} descriptionName Record name, 1-128 letters, digits, `.`, `_` or `-`, e.g. `_health.qo`.
335
+ * @param {File} body The document to store, up to 10 MB. Send its Content-Type, such as `text/markdown`; Markdown isn't detected.
322
336
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DescriptionRecord}
323
337
  */
324
338
  }, {
@@ -330,10 +344,11 @@ var DescriptionApi = exports["default"] = /*#__PURE__*/function () {
330
344
  }
331
345
 
332
346
  /**
333
- * Create or replace a project description record (up to 10MB). The request Content-Type is stored and returned on GET; when omitted it is detected (JSON or text).
347
+ * Create or replace a project description record
348
+ * Store a named document in a project, replacing any record with that name. The request's Content-Type is stored and served back by `GetProjectDescription`; if it's missing or `application/octet-stream`, the type is detected from the content. Requires the Owner or Developer role. Returns 400 if the content is over 10 MB or the name isn't valid.
334
349
  * @param {String} projectOrProductUID
335
- * @param {String} descriptionName
336
- * @param {File} body The description content (up to 10MB). The request Content-Type is stored and returned on GET; when omitted it is detected (JSON or text).
350
+ * @param {String} descriptionName Record name, 1-128 letters, digits, `.`, `_` or `-`, e.g. `_health.qo`.
351
+ * @param {File} body The document to store, up to 10 MB. Send its Content-Type, such as `text/markdown`; Markdown isn't detected.
337
352
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DescriptionRecord} and HTTP response
338
353
  */
339
354
  }, {
@@ -367,10 +382,11 @@ var DescriptionApi = exports["default"] = /*#__PURE__*/function () {
367
382
  }
368
383
 
369
384
  /**
370
- * Create or replace a project description record (up to 10MB). The request Content-Type is stored and returned on GET; when omitted it is detected (JSON or text).
385
+ * Create or replace a project description record
386
+ * Store a named document in a project, replacing any record with that name. The request's Content-Type is stored and served back by `GetProjectDescription`; if it's missing or `application/octet-stream`, the type is detected from the content. Requires the Owner or Developer role. Returns 400 if the content is over 10 MB or the name isn't valid.
371
387
  * @param {String} projectOrProductUID
372
- * @param {String} descriptionName
373
- * @param {File} body The description content (up to 10MB). The request Content-Type is stored and returned on GET; when omitted it is detected (JSON or text).
388
+ * @param {String} descriptionName Record name, 1-128 letters, digits, `.`, `_` or `-`, e.g. `_health.qo`.
389
+ * @param {File} body The document to store, up to 10 MB. Send its Content-Type, such as `text/markdown`; Markdown isn't detected.
374
390
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DescriptionRecord}
375
391
  */
376
392
  }, {