@omelhorsite/sdk 0.11.0 → 0.12.1

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
@@ -10328,6 +10328,7 @@ function updateBody(input) {
10328
10328
  library_public: input.libraryPublic,
10329
10329
  library_name: input.libraryName,
10330
10330
  library_description: input.libraryDescription,
10331
+ language: input.language,
10331
10332
  share_listening: input.shareListening
10332
10333
  };
10333
10334
  }
@@ -10657,6 +10658,12 @@ class AdminOauthApplicationsNamespace extends Resource {
10657
10658
  async approve(id, options = {}) {
10658
10659
  return this.http.post(`/admin/oauth_applications/${encodeURIComponent(String(id))}/approve`, undefined, options);
10659
10660
  }
10661
+ async verify(id, options = {}) {
10662
+ return this.http.post(`/admin/oauth_applications/${encodeURIComponent(String(id))}/verify`, undefined, options);
10663
+ }
10664
+ async unverify(id, options = {}) {
10665
+ return this.http.post(`/admin/oauth_applications/${encodeURIComponent(String(id))}/unverify`, undefined, options);
10666
+ }
10660
10667
  async reject(id, input, options = {}) {
10661
10668
  return this.http.post(`/admin/oauth_applications/${encodeURIComponent(String(id))}/reject`, {
10662
10669
  reason: input.reason,
@@ -10741,6 +10748,7 @@ function adminUpdateBody(input) {
10741
10748
  set("library_public", input.libraryPublic);
10742
10749
  set("library_name", input.libraryName);
10743
10750
  set("library_description", input.libraryDescription);
10751
+ set("language", input.language);
10744
10752
  set("share_listening", input.shareListening);
10745
10753
  set("email", input.email);
10746
10754
  set("group", input.group);
@@ -28,6 +28,8 @@ export interface User extends BaseRecord {
28
28
  readonly bio?: string | null;
29
29
  /** ISO 3166-1 alpha-2, as the user set it. */
30
30
  readonly country_code?: string | null;
31
+ /** `en`, `pt` or `lv`: the language of the emails sent to this account. Own account only. */
32
+ readonly language?: string | null;
31
33
  readonly email_is_public?: boolean;
32
34
  readonly gender_is_public?: boolean;
33
35
  readonly library_public?: boolean;
@@ -90,6 +92,8 @@ export interface UpdateAccountInput {
90
92
  readonly libraryName?: string | null;
91
93
  /** `null` clears it. */
92
94
  readonly libraryDescription?: string | null;
95
+ /** `en`, `pt` or `lv`. */
96
+ readonly language?: string;
93
97
  /** Whether friends may see what you are listening to. */
94
98
  readonly shareListening?: boolean;
95
99
  }
@@ -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. */
@@ -20,6 +20,7 @@ export interface AdminUpdateUserInput {
20
20
  readonly libraryPublic?: boolean;
21
21
  readonly libraryName?: string | null;
22
22
  readonly libraryDescription?: string | null;
23
+ readonly language?: string;
23
24
  readonly shareListening?: boolean;
24
25
  readonly email?: string;
25
26
  /** Privilege group, e.g. `"administrator"`. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omelhorsite/sdk",
3
- "version": "0.11.0",
3
+ "version": "0.12.1",
4
4
  "description": "TypeScript SDK for the omelhorsite API. Isolate-safe: no node builtins, no environment access, no stdout.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",