@indiciaosint/sdk 1.2.0 → 1.2.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/esm/funcs/socials-search-github.d.ts +3 -2
- package/esm/funcs/socials-search-github.d.ts.map +1 -1
- package/esm/funcs/socials-search-github.js +11 -3
- package/esm/funcs/socials-search-github.js.map +1 -1
- package/esm/funcs/socials-search-username.d.ts +3 -2
- package/esm/funcs/socials-search-username.d.ts.map +1 -1
- package/esm/funcs/socials-search-username.js +11 -3
- package/esm/funcs/socials-search-username.js.map +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/operations/search-face.d.ts +4 -4
- package/esm/models/operations/search-face.d.ts.map +1 -1
- package/esm/models/operations/search-face.js +4 -5
- package/esm/models/operations/search-face.js.map +1 -1
- package/esm/models/operations/search-github.d.ts +69 -7
- package/esm/models/operations/search-github.d.ts.map +1 -1
- package/esm/models/operations/search-github.js +83 -9
- package/esm/models/operations/search-github.js.map +1 -1
- package/esm/models/operations/search-username.d.ts +429 -13
- package/esm/models/operations/search-username.d.ts.map +1 -1
- package/esm/models/operations/search-username.js +725 -13
- package/esm/models/operations/search-username.js.map +1 -1
- package/esm/sdk/socials.d.ts +5 -4
- package/esm/sdk/socials.d.ts.map +1 -1
- package/esm/sdk/socials.js +2 -2
- package/esm/sdk/socials.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/socials-search-github.ts +21 -6
- package/src/funcs/socials-search-username.ts +23 -6
- package/src/lib/config.ts +2 -2
- package/src/models/operations/search-face.ts +15 -13
- package/src/models/operations/search-github.ts +225 -41
- package/src/models/operations/search-username.ts +1667 -77
- package/src/sdk/socials.ts +5 -4
package/src/sdk/socials.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { socialsSearchGithub } from "../funcs/socials-search-github.js";
|
|
|
7
7
|
import { socialsSearchRoblox } from "../funcs/socials-search-roblox.js";
|
|
8
8
|
import { socialsSearchTiktok } from "../funcs/socials-search-tiktok.js";
|
|
9
9
|
import { socialsSearchUsername } from "../funcs/socials-search-username.js";
|
|
10
|
+
import { EventStream } from "../lib/event-streams.js";
|
|
10
11
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
11
12
|
import * as operations from "../models/operations/index.js";
|
|
12
13
|
import { unwrapAsync } from "../types/fp.js";
|
|
@@ -33,12 +34,12 @@ export class Socials extends ClientSDK {
|
|
|
33
34
|
* GitHub Search
|
|
34
35
|
*
|
|
35
36
|
* @remarks
|
|
36
|
-
* Search GitHub profiles, info, and commit emails
|
|
37
|
+
* Search GitHub profiles, info, and commit emails. Streams progress updates via Server-Sent Events.
|
|
37
38
|
*/
|
|
38
39
|
async searchGithub(
|
|
39
40
|
request: operations.SearchGithubRequest,
|
|
40
41
|
options?: RequestOptions,
|
|
41
|
-
): Promise<operations.
|
|
42
|
+
): Promise<EventStream<operations.GithubSearchEvent>> {
|
|
42
43
|
return unwrapAsync(socialsSearchGithub(
|
|
43
44
|
this,
|
|
44
45
|
request,
|
|
@@ -84,12 +85,12 @@ export class Socials extends ClientSDK {
|
|
|
84
85
|
* Username Search V2
|
|
85
86
|
*
|
|
86
87
|
* @remarks
|
|
87
|
-
* Search various sites for a specific username
|
|
88
|
+
* Search various sites for a specific username. Streams progress updates via Server-Sent Events.
|
|
88
89
|
*/
|
|
89
90
|
async searchUsername(
|
|
90
91
|
request: operations.SearchUsernameRequest,
|
|
91
92
|
options?: RequestOptions,
|
|
92
|
-
): Promise<operations.
|
|
93
|
+
): Promise<EventStream<operations.UsernameSearchEvent>> {
|
|
93
94
|
return unwrapAsync(socialsSearchUsername(
|
|
94
95
|
this,
|
|
95
96
|
request,
|