scrapebadger 0.72.0 → 0.73.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.d.cts CHANGED
@@ -20163,13 +20163,15 @@ declare class GeminiClient {
20163
20163
  }
20164
20164
 
20165
20165
  /**
20166
- * Github API client. // --- BEGIN generated by sdk/codegen/facade — do not edit ---
20166
+ * Public GitHub compatibility adapter with repository detail.
20167
20167
  */
20168
20168
 
20169
- /** Client for all Github API operations. (Generated from the OpenAPI spec.) */
20169
+ /** Public profile operations and repository detail. */
20170
20170
  declare class GithubClient {
20171
20171
  private readonly client;
20172
20172
  constructor(client: BaseClient);
20173
+ /** Get public default-branch repository detail without query options. */
20174
+ getRepository(owner: string, repo: string): Promise<Record<string, unknown>>;
20173
20175
  /** Get profile. Generated from the OpenAPI spec; returns the raw response object. */
20174
20176
  getProfile(username: string, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
20175
20177
  }
@@ -20214,6 +20216,13 @@ declare class GithubClient {
20214
20216
  */
20215
20217
  declare class ScrapeBadger {
20216
20218
  private readonly baseClient;
20219
+ /** Live endpoint discovery. Hidden endpoints are omitted; statuses update without an SDK release. */
20220
+ endpoints(): Promise<Array<{
20221
+ method: string;
20222
+ path: string;
20223
+ api: string;
20224
+ status: "active" | "temporarily_unavailable" | "deprecated";
20225
+ }>>;
20217
20226
  /** Twitter API client */
20218
20227
  readonly twitter: TwitterClient;
20219
20228
  /** Web scraping API client */
package/dist/index.d.ts CHANGED
@@ -20163,13 +20163,15 @@ declare class GeminiClient {
20163
20163
  }
20164
20164
 
20165
20165
  /**
20166
- * Github API client. // --- BEGIN generated by sdk/codegen/facade — do not edit ---
20166
+ * Public GitHub compatibility adapter with repository detail.
20167
20167
  */
20168
20168
 
20169
- /** Client for all Github API operations. (Generated from the OpenAPI spec.) */
20169
+ /** Public profile operations and repository detail. */
20170
20170
  declare class GithubClient {
20171
20171
  private readonly client;
20172
20172
  constructor(client: BaseClient);
20173
+ /** Get public default-branch repository detail without query options. */
20174
+ getRepository(owner: string, repo: string): Promise<Record<string, unknown>>;
20173
20175
  /** Get profile. Generated from the OpenAPI spec; returns the raw response object. */
20174
20176
  getProfile(username: string, params?: Record<string, string | number | boolean | undefined>): Promise<Record<string, unknown>>;
20175
20177
  }
@@ -20214,6 +20216,13 @@ declare class GithubClient {
20214
20216
  */
20215
20217
  declare class ScrapeBadger {
20216
20218
  private readonly baseClient;
20219
+ /** Live endpoint discovery. Hidden endpoints are omitted; statuses update without an SDK release. */
20220
+ endpoints(): Promise<Array<{
20221
+ method: string;
20222
+ path: string;
20223
+ api: string;
20224
+ status: "active" | "temporarily_unavailable" | "deprecated";
20225
+ }>>;
20217
20226
  /** Twitter API client */
20218
20227
  readonly twitter: TwitterClient;
20219
20228
  /** Web scraping API client */
package/dist/index.mjs CHANGED
@@ -3,7 +3,7 @@ import { EventEmitter } from 'events';
3
3
  import WebSocket from 'ws';
4
4
 
5
5
  // src/internal/version.ts
6
- var SDK_VERSION = "0.72.0";
6
+ var SDK_VERSION = "0.73.0";
7
7
 
8
8
  // src/internal/exceptions.ts
9
9
  var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
@@ -10683,6 +10683,15 @@ var GithubClient = class {
10683
10683
  constructor(client) {
10684
10684
  this.client = client;
10685
10685
  }
10686
+ /** Get public default-branch repository detail without query options. */
10687
+ async getRepository(owner, repo) {
10688
+ if ([owner, repo].some((value) => value === "." || value === "..")) {
10689
+ throw new TypeError("owner and repo must not be dot path segments");
10690
+ }
10691
+ return this.client.request(
10692
+ `/v1/github/repositories/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}`
10693
+ );
10694
+ }
10686
10695
  /** Get profile. Generated from the OpenAPI spec; returns the raw response object. */
10687
10696
  async getProfile(username, params = {}) {
10688
10697
  return this.client.request(`/v1/github/profiles/${username}`, { params });
@@ -10692,6 +10701,11 @@ var GithubClient = class {
10692
10701
  // src/client.ts
10693
10702
  var ScrapeBadger = class {
10694
10703
  baseClient;
10704
+ /** Live endpoint discovery. Hidden endpoints are omitted; statuses update without an SDK release. */
10705
+ async endpoints() {
10706
+ const result = await this.baseClient.request("/api/public/endpoint-catalog");
10707
+ return result.endpoints;
10708
+ }
10695
10709
  /** Twitter API client */
10696
10710
  twitter;
10697
10711
  /** Web scraping API client */