@opengeni/sdk 0.33.1 → 0.35.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.
@@ -1936,6 +1936,11 @@ var OpenGeniClient = class {
1936
1936
  });
1937
1937
  const putResponse = await this.fetchImpl(upload.putUrl, {
1938
1938
  method: "PUT",
1939
+ // Signed object-storage URLs carry their own short-lived authority.
1940
+ // Browser cookies and HTTP auth must never accompany this cross-origin
1941
+ // request: credentialed fetches are incompatible with wildcard CORS and
1942
+ // can leak ambient credentials to a caller-selected storage endpoint.
1943
+ credentials: "omit",
1939
1944
  // The backend's requiredHeaders already carry the canonical lowercase
1940
1945
  // `content-type` for every storage backend (Azure/S3/GCS). Do NOT also set
1941
1946
  // a `Content-Type` key here: WHATWG Headers treats the two casings as the
@@ -2302,6 +2307,32 @@ var OpenGeniClient = class {
2302
2307
  options
2303
2308
  );
2304
2309
  }
2310
+ /**
2311
+ * Start a first-party social OAuth flow (X / Reddit); redirect the user to
2312
+ * the returned `authorizationUrl`. The completed connection lands in
2313
+ * `listSocialConnections`.
2314
+ */
2315
+ async startSocialOAuth(workspaceId, request) {
2316
+ return await this.requestJson(
2317
+ "POST",
2318
+ `/v1/workspaces/${workspaceId}/social/oauth/start`,
2319
+ request
2320
+ );
2321
+ }
2322
+ /** Connected social accounts (X / Reddit / pushed custom providers). */
2323
+ async listSocialConnections(workspaceId) {
2324
+ return await this.requestJson(
2325
+ "GET",
2326
+ `/v1/workspaces/${workspaceId}/social/connections`
2327
+ );
2328
+ }
2329
+ /** Drop the stored social OAuth credential and disable the connection. */
2330
+ async disconnectSocialConnection(workspaceId, connectionId) {
2331
+ return await this.requestJson(
2332
+ "DELETE",
2333
+ `/v1/workspaces/${workspaceId}/social/connections/${connectionId}`
2334
+ );
2335
+ }
2305
2336
  /** Public, immutably-cached URL for a catalog item's logo, or null when the item has none. */
2306
2337
  catalogAssetUrl(logoAssetPath) {
2307
2338
  return logoAssetPath ? `${this.baseUrl}/v1/${logoAssetPath}` : null;
@@ -2968,4 +2999,4 @@ export {
2968
2999
  authorizeTranscriptionAdapter,
2969
3000
  createTranscriptionSessionRequest
2970
3001
  };
2971
- //# sourceMappingURL=chunk-YROWFD7R.js.map
3002
+ //# sourceMappingURL=chunk-UYBM64HP.js.map