@open-social-protocol/osp-api-index-types
Advanced tools
Comparing version 0.2.19 to 0.3.1
# @open-social-protocol/osp-api-index-types | ||
## 0.3.1 | ||
### Patch Changes | ||
- beta push | ||
## 0.2.19 | ||
@@ -4,0 +10,0 @@ |
@@ -27,2 +27,4 @@ var __defProp = Object.defineProperty; | ||
BaseMetaTypeEnum: () => BaseMetaTypeEnum, | ||
BindLinkTypeEnum: () => BindLinkTypeEnum, | ||
BindTypeEnum: () => BindTypeEnum, | ||
CategoryEnum: () => CategoryEnum, | ||
@@ -220,2 +222,17 @@ CommunityRankingEnum: () => CommunityRankingEnum, | ||
})(ThemeStatusEnum || {}); | ||
var BindTypeEnum = /* @__PURE__ */ ((BindTypeEnum2) => { | ||
BindTypeEnum2["DISCORD"] = "DISCORD"; | ||
BindTypeEnum2["TWITTER"] = "TWITTER"; | ||
BindTypeEnum2["TELEGRAM"] = "TELEGRAM"; | ||
BindTypeEnum2["WALLET"] = "WALLET"; | ||
return BindTypeEnum2; | ||
})(BindTypeEnum || {}); | ||
var BindLinkTypeEnum = /* @__PURE__ */ ((BindLinkTypeEnum2) => { | ||
BindLinkTypeEnum2["BIND_TELEGRAM"] = "BIND_TELEGRAM"; | ||
BindLinkTypeEnum2["JOIN_TELEGRAM_GROUP"] = "JOIN_TELEGRAM_GROUP"; | ||
BindLinkTypeEnum2["JOIN_DISCORD_GROUP"] = "JOIN_DISCORD_GROUP"; | ||
BindLinkTypeEnum2["BIND_TWITTER"] = "BIND_TWITTER"; | ||
BindLinkTypeEnum2["BIND_DISCORD"] = "BIND_DISCORD"; | ||
return BindLinkTypeEnum2; | ||
})(BindLinkTypeEnum || {}); | ||
var AppCategoryEnum = /* @__PURE__ */ ((AppCategoryEnum2) => { | ||
@@ -313,3 +330,3 @@ AppCategoryEnum2["PLUGIN"] = "PLUGIN"; | ||
).then(async (response) => { | ||
const r = response; | ||
const r = response.clone(); | ||
r.data = null; | ||
@@ -1641,2 +1658,87 @@ r.error = null; | ||
}; | ||
this.bind = { | ||
/** | ||
* @description bind | ||
* | ||
* @tags Bind | ||
* @name Bind | ||
* @summary /binds/{type} | ||
* @request POST:/bind/{type} | ||
* @secure | ||
*/ | ||
bind: (type, query, params = {}) => this.request({ | ||
path: `/bind/${type}`, | ||
method: "POST", | ||
query, | ||
secure: true, | ||
format: "json", | ||
...params | ||
}), | ||
/** | ||
* @description unbind | ||
* | ||
* @tags Bind | ||
* @name Unbind | ||
* @summary /binds/{type} | ||
* @request DELETE:/bind/{type} | ||
* @secure | ||
*/ | ||
unbind: (type, params = {}) => this.request({ | ||
path: `/bind/${type}`, | ||
method: "DELETE", | ||
secure: true, | ||
format: "json", | ||
...params | ||
}), | ||
/** | ||
* @description getBind | ||
* | ||
* @tags Bind | ||
* @name GetBind | ||
* @summary /binds/{type} | ||
* @request GET:/bind/{type} | ||
* @secure | ||
*/ | ||
getBind: (type, params = {}) => this.request({ | ||
path: `/bind/${type}`, | ||
method: "GET", | ||
secure: true, | ||
format: "json", | ||
...params | ||
}) | ||
}; | ||
this.binds = { | ||
/** | ||
* @description listBind | ||
* | ||
* @tags Bind | ||
* @name ListBind | ||
* @summary /binds | ||
* @request GET:/binds | ||
* @secure | ||
*/ | ||
listBind: (params = {}) => this.request({ | ||
path: `/binds`, | ||
method: "GET", | ||
secure: true, | ||
format: "json", | ||
...params | ||
}), | ||
/** | ||
* @description get bind link | ||
* | ||
* @tags Bind | ||
* @name GetBindLink | ||
* @summary /binds/{type}/link | ||
* @request GET:/binds/{type}/link | ||
* @secure | ||
*/ | ||
getBindLink: (type, params = {}) => this.request({ | ||
path: `/binds/${type}/link`, | ||
method: "GET", | ||
secure: true, | ||
format: "json", | ||
...params | ||
}) | ||
}; | ||
this.apps = { | ||
@@ -1775,2 +1877,4 @@ /** | ||
BaseMetaTypeEnum, | ||
BindLinkTypeEnum, | ||
BindTypeEnum, | ||
CategoryEnum, | ||
@@ -1777,0 +1881,0 @@ CommunityRankingEnum, |
{ | ||
"name": "@open-social-protocol/osp-api-index-types", | ||
"version": "0.2.19", | ||
"version": "0.3.1", | ||
"description": "open social protocol index server api", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
157180
5510