glitch-javascript-sdk 2.7.4 → 2.7.5

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.
@@ -35,5 +35,12 @@ declare class AccessKeys {
35
35
  * @returns promise
36
36
  */
37
37
  static delete<T>(key_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
38
+ /**
39
+ * Emails the assigned key to the influencer.
40
+ *
41
+ * @param key_id The UUID of the access key.
42
+ * @returns promise
43
+ */
44
+ static sendEmail<T>(key_id: string): AxiosPromise<Response<T>>;
38
45
  }
39
46
  export default AccessKeys;
package/dist/esm/index.js CHANGED
@@ -5933,6 +5933,7 @@ var AccessKeysRoute = /** @class */ (function () {
5933
5933
  list: { url: '/titles/{title_id}/keys', method: HTTP_METHODS.GET },
5934
5934
  store: { url: '/titles/{title_id}/keys', method: HTTP_METHODS.POST },
5935
5935
  delete: { url: '/keys/{key_id}', method: HTTP_METHODS.DELETE },
5936
+ sendEmail: { url: '/keys/{key_id}/send-email', method: HTTP_METHODS.POST },
5936
5937
  };
5937
5938
  return AccessKeysRoute;
5938
5939
  }());
@@ -5977,6 +5978,15 @@ var AccessKeys = /** @class */ (function () {
5977
5978
  AccessKeys.delete = function (key_id, params) {
5978
5979
  return Requests.processRoute(AccessKeysRoute.routes.delete, {}, { key_id: key_id }, params);
5979
5980
  };
5981
+ /**
5982
+ * Emails the assigned key to the influencer.
5983
+ *
5984
+ * @param key_id The UUID of the access key.
5985
+ * @returns promise
5986
+ */
5987
+ AccessKeys.sendEmail = function (key_id) {
5988
+ return Requests.processRoute(AccessKeysRoute.routes.sendEmail, {}, { key_id: key_id });
5989
+ };
5980
5990
  return AccessKeys;
5981
5991
  }());
5982
5992