@omelhorsite/sdk 0.11.0 → 0.12.0
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.
package/dist/index.js
CHANGED
|
@@ -10657,6 +10657,12 @@ class AdminOauthApplicationsNamespace extends Resource {
|
|
|
10657
10657
|
async approve(id, options = {}) {
|
|
10658
10658
|
return this.http.post(`/admin/oauth_applications/${encodeURIComponent(String(id))}/approve`, undefined, options);
|
|
10659
10659
|
}
|
|
10660
|
+
async verify(id, options = {}) {
|
|
10661
|
+
return this.http.post(`/admin/oauth_applications/${encodeURIComponent(String(id))}/verify`, undefined, options);
|
|
10662
|
+
}
|
|
10663
|
+
async unverify(id, options = {}) {
|
|
10664
|
+
return this.http.post(`/admin/oauth_applications/${encodeURIComponent(String(id))}/unverify`, undefined, options);
|
|
10665
|
+
}
|
|
10660
10666
|
async reject(id, input, options = {}) {
|
|
10661
10667
|
return this.http.post(`/admin/oauth_applications/${encodeURIComponent(String(id))}/reject`, {
|
|
10662
10668
|
reason: input.reason,
|
|
@@ -241,6 +241,17 @@ export declare class AdminOauthApplicationsNamespace extends Resource {
|
|
|
241
241
|
* @throws {OmsAuthError} 403 for a non-admin.
|
|
242
242
|
*/
|
|
243
243
|
approve(id: number | string, options?: RequestOptions): Promise<OauthApplicationReview>;
|
|
244
|
+
/**
|
|
245
|
+
* `POST /admin/oauth_applications/:id/verify` - the team vouches for the
|
|
246
|
+
* client. Only an approved one; idempotent. From then on its owner's edits
|
|
247
|
+
* keep the approval instead of re-entering review.
|
|
248
|
+
*
|
|
249
|
+
* @throws {OmsApiError} 422 `not_approved`; 404 `not_found`.
|
|
250
|
+
* @throws {OmsAuthError} 403 for a non-admin.
|
|
251
|
+
*/
|
|
252
|
+
verify(id: number | string, options?: RequestOptions): Promise<OauthApplicationReview>;
|
|
253
|
+
/** `POST /admin/oauth_applications/:id/unverify` - back under the normal review rule. */
|
|
254
|
+
unverify(id: number | string, options?: RequestOptions): Promise<OauthApplicationReview>;
|
|
244
255
|
/**
|
|
245
256
|
* `POST /admin/oauth_applications/:id/reject` - refuses a registration, or
|
|
246
257
|
* pulls an approved client off the air.
|
|
@@ -77,6 +77,13 @@ export interface OauthApplicationSummary {
|
|
|
77
77
|
readonly approval_status: OauthApprovalStatus;
|
|
78
78
|
/** When it was approved, `null` while pending or rejected. */
|
|
79
79
|
readonly approved_at: Timestamp | null;
|
|
80
|
+
/**
|
|
81
|
+
* Vouched for by the site's own team. A verified client keeps its approval
|
|
82
|
+
* through renames and wider scopes, which would otherwise send it back to
|
|
83
|
+
* review; the consent screen carries the badge.
|
|
84
|
+
*/
|
|
85
|
+
readonly verified: boolean;
|
|
86
|
+
readonly verified_at: Timestamp | null;
|
|
80
87
|
/** The reason shown to the owner. `null` unless rejected. At most 500 characters. */
|
|
81
88
|
readonly rejection_reason: string | null;
|
|
82
89
|
/**
|
|
@@ -95,6 +102,8 @@ export interface OauthApplicationSummary {
|
|
|
95
102
|
* truth. Populated on {@link AdminOauthApplicationsNamespace}.
|
|
96
103
|
*/
|
|
97
104
|
readonly approved_by: OauthApplicationParty | null;
|
|
105
|
+
/** Who verified it. `null` while unverified, or when that admin's account is gone. */
|
|
106
|
+
readonly verified_by?: OauthApplicationParty | null;
|
|
98
107
|
readonly created_at: Timestamp;
|
|
99
108
|
}
|
|
100
109
|
/** The longest name the server accepts, measured after normalisation. */
|
package/package.json
CHANGED