@indiciaosint/sdk 1.2.4 → 1.2.6
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/README.md +3 -1
- package/esm/funcs/tools-analyze-crypto-address.d.ts +18 -0
- package/esm/funcs/tools-analyze-crypto-address.d.ts.map +1 -0
- package/esm/funcs/tools-analyze-crypto-address.js +84 -0
- package/esm/funcs/tools-analyze-crypto-address.js.map +1 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/models/operations/analyze-crypto-address.d.ts +79 -0
- package/esm/models/operations/analyze-crypto-address.d.ts.map +1 -0
- package/esm/models/operations/analyze-crypto-address.js +79 -0
- package/esm/models/operations/analyze-crypto-address.js.map +1 -0
- package/esm/models/operations/get-activity.d.ts +1 -0
- package/esm/models/operations/get-activity.d.ts.map +1 -1
- package/esm/models/operations/get-activity.js +1 -0
- package/esm/models/operations/get-activity.js.map +1 -1
- package/esm/models/operations/get-info.d.ts +1 -0
- package/esm/models/operations/get-info.d.ts.map +1 -1
- package/esm/models/operations/get-info.js +1 -0
- package/esm/models/operations/get-info.js.map +1 -1
- package/esm/models/operations/index.d.ts +1 -0
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +1 -0
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/list-activities.d.ts +1 -0
- package/esm/models/operations/list-activities.d.ts.map +1 -1
- package/esm/models/operations/list-activities.js +1 -0
- package/esm/models/operations/list-activities.js.map +1 -1
- package/esm/models/operations/search-tiktok.d.ts +19 -0
- package/esm/models/operations/search-tiktok.d.ts.map +1 -1
- package/esm/models/operations/search-tiktok.js +17 -0
- package/esm/models/operations/search-tiktok.js.map +1 -1
- package/esm/sdk/tools.d.ts +7 -0
- package/esm/sdk/tools.d.ts.map +1 -1
- package/esm/sdk/tools.js +10 -0
- package/esm/sdk/tools.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/tools-analyze-crypto-address.ts +173 -0
- package/src/lib/config.ts +3 -3
- package/src/models/operations/analyze-crypto-address.ts +192 -0
- package/src/models/operations/get-activity.ts +1 -0
- package/src/models/operations/get-info.ts +1 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/list-activities.ts +1 -0
- package/src/models/operations/search-tiktok.ts +40 -0
- package/src/sdk/tools.ts +18 -0
|
@@ -4,14 +4,27 @@
|
|
|
4
4
|
import * as z from "zod/v4-mini";
|
|
5
5
|
import { safeParse } from "../../lib/schemas.js";
|
|
6
6
|
import * as types from "../../types/primitives.js";
|
|
7
|
+
export const SearchTiktokType = {
|
|
8
|
+
Email: "email",
|
|
9
|
+
Phone: "phone",
|
|
10
|
+
Username: "username",
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const SearchTiktokType$outboundSchema = z.enum(SearchTiktokType);
|
|
7
14
|
/** @internal */
|
|
8
15
|
export const SearchTiktokRequest$outboundSchema = z.object({
|
|
9
16
|
query: z.string(),
|
|
17
|
+
type: z.optional(SearchTiktokType$outboundSchema),
|
|
10
18
|
});
|
|
11
19
|
export function searchTiktokRequestToJSON(searchTiktokRequest) {
|
|
12
20
|
return JSON.stringify(SearchTiktokRequest$outboundSchema.parse(searchTiktokRequest));
|
|
13
21
|
}
|
|
14
22
|
/** @internal */
|
|
23
|
+
export const SecurityInfo$inboundSchema = z.object({});
|
|
24
|
+
export function securityInfoFromJSON(jsonString) {
|
|
25
|
+
return safeParse(jsonString, (x) => SecurityInfo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SecurityInfo' from JSON`);
|
|
26
|
+
}
|
|
27
|
+
/** @internal */
|
|
15
28
|
export const SearchTiktokData$inboundSchema = z.object({
|
|
16
29
|
bio: types.optional(types.string()),
|
|
17
30
|
commerce: types.optional(types.boolean()),
|
|
@@ -27,7 +40,11 @@ export const SearchTiktokData$inboundSchema = z.object({
|
|
|
27
40
|
picture: types.optional(types.string()),
|
|
28
41
|
private: types.optional(types.boolean()),
|
|
29
42
|
region: types.optional(types.string()),
|
|
43
|
+
resolvedFrom: types.optional(types.string()),
|
|
44
|
+
secUid: types.optional(types.string()),
|
|
45
|
+
securityInfo: types.optional(z.lazy(() => SecurityInfo$inboundSchema)),
|
|
30
46
|
ttseller: types.optional(types.boolean()),
|
|
47
|
+
userId: types.optional(types.string()),
|
|
31
48
|
username: types.optional(types.string()),
|
|
32
49
|
verified: types.optional(types.boolean()),
|
|
33
50
|
videos: types.optional(types.string()),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-tiktok.js","sourceRoot":"","sources":["../../../src/models/operations/search-tiktok.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"search-tiktok.js","sourceRoot":"","sources":["../../../src/models/operations/search-tiktok.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AAGnD,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;CACZ,CAAC;AA4CX,gBAAgB;AAChB,MAAM,CAAC,MAAM,+BAA+B,GAExC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;AAQ7B,gBAAgB;AAChB,MAAM,CAAC,MAAM,kCAAkC,GAG3C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,+BAA+B,CAAC;CAClD,CAAC,CAAC;AAEH,MAAM,UAAU,yBAAyB,CACvC,mBAAwC,EA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AI,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,8BAA8B,CAAC;IAClD,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE;IACxB,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;CACtC,CAAC,CAAC;AAEH,MAAM,UAAU,4BAA4B,CAC1C,UAAkB,EACyC;IAC3D,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kCAAkC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9D,kDAAkD,CACnD,CAAC;AAAA,CACH"}
|
package/esm/sdk/tools.d.ts
CHANGED
|
@@ -8,6 +8,13 @@ export declare class Tools extends ClientSDK {
|
|
|
8
8
|
* Scrape app and developer information from the Google Play Store or Apple App Store. Pass an app/package ID (e.g. com.whatsapp) for full developer contact details, or a name to search.
|
|
9
9
|
*/
|
|
10
10
|
searchAppStore(request: operations.SearchAppStoreRequest, options?: RequestOptions): Promise<operations.SearchAppStoreResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* Crypto Address Analyzer
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Analyze a cryptocurrency address: native balance and USD value, token holdings, and recent transaction history with counterparties. Supports Bitcoin, Litecoin, Ethereum, Base, Optimism, Arbitrum, Polygon, Gnosis, Celo, Mode, Fuse, Tron, TON and Solana. The network is auto-detected from the address format if not supplied (pass a specific id to disambiguate base58 chains).
|
|
16
|
+
*/
|
|
17
|
+
analyzeCryptoAddress(request: operations.AnalyzeCryptoAddressRequest, options?: RequestOptions): Promise<operations.AnalyzeCryptoAddressResponse>;
|
|
11
18
|
/**
|
|
12
19
|
* Discord Alt Lookup
|
|
13
20
|
*
|
package/esm/sdk/tools.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/sdk/tools.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/sdk/tools.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,KAAM,SAAQ,SAAS;IAClC;;;;;OAKG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAM5C;IAED;;;;;OAKG;IACG,oBAAoB,CACxB,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,4BAA4B,CAAC,CAMlD;IAED;;;;;OAKG;IACG,gBAAgB,CACpB,OAAO,EAAE,UAAU,CAAC,uBAAuB,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,wBAAwB,CAAC,CAM9C;IAED;;;;;OAKG;IACG,mBAAmB,CACvB,OAAO,EAAE,UAAU,CAAC,0BAA0B,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,2BAA2B,CAAC,CAMjD;IAED;;;;;OAKG;IACG,kBAAkB,CACtB,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC,CAMhD;IAED;;;;;OAKG;IACG,sBAAsB,CAC1B,OAAO,EAAE,UAAU,CAAC,6BAA6B,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,8BAA8B,CAAC,CAMpD;CACF"}
|
package/esm/sdk/tools.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
|
+
import { toolsAnalyzeCryptoAddress } from "../funcs/tools-analyze-crypto-address.js";
|
|
4
5
|
import { toolsBypassDoubleCounter } from "../funcs/tools-bypass-double-counter.js";
|
|
5
6
|
import { toolsDownloadIntelxFile } from "../funcs/tools-download-intelx-file.js";
|
|
6
7
|
import { toolsDownloadVirusTotalFile } from "../funcs/tools-download-virus-total-file.js";
|
|
@@ -18,6 +19,15 @@ export class Tools extends ClientSDK {
|
|
|
18
19
|
async searchAppStore(request, options) {
|
|
19
20
|
return unwrapAsync(toolsSearchAppStore(this, request, options));
|
|
20
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Crypto Address Analyzer
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* Analyze a cryptocurrency address: native balance and USD value, token holdings, and recent transaction history with counterparties. Supports Bitcoin, Litecoin, Ethereum, Base, Optimism, Arbitrum, Polygon, Gnosis, Celo, Mode, Fuse, Tron, TON and Solana. The network is auto-detected from the address format if not supplied (pass a specific id to disambiguate base58 chains).
|
|
27
|
+
*/
|
|
28
|
+
async analyzeCryptoAddress(request, options) {
|
|
29
|
+
return unwrapAsync(toolsAnalyzeCryptoAddress(this, request, options));
|
|
30
|
+
}
|
|
21
31
|
/**
|
|
22
32
|
* Discord Alt Lookup
|
|
23
33
|
*
|
package/esm/sdk/tools.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/sdk/tools.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAE,2BAA2B,EAAE,MAAM,6CAA6C,CAAC;AAC1F,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,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;IACH,KAAK,CAAC,sBAAsB,CAC1B,OAAiD,EACjD,OAAwB,EAC4B;QACpD,OAAO,WAAW,CAAC,2BAA2B,CAC5C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;CACF"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { IndiciaCore } from "../core.js";
|
|
7
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
9
|
+
import * as M from "../lib/matchers.js";
|
|
10
|
+
import { compactMap } from "../lib/primitives.js";
|
|
11
|
+
import { safeParse } from "../lib/schemas.js";
|
|
12
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
13
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
14
|
+
import { pathToFunc } from "../lib/url.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/http-client-errors.js";
|
|
22
|
+
import * as errors from "../models/errors/index.js";
|
|
23
|
+
import { IndiciaError } from "../models/errors/indicia-error.js";
|
|
24
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
25
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
26
|
+
import * as operations from "../models/operations/index.js";
|
|
27
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
28
|
+
import { Result } from "../types/fp.js";
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Crypto Address Analyzer
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* Analyze a cryptocurrency address: native balance and USD value, token holdings, and recent transaction history with counterparties. Supports Bitcoin, Litecoin, Ethereum, Base, Optimism, Arbitrum, Polygon, Gnosis, Celo, Mode, Fuse, Tron, TON and Solana. The network is auto-detected from the address format if not supplied (pass a specific id to disambiguate base58 chains).
|
|
35
|
+
*/
|
|
36
|
+
export function toolsAnalyzeCryptoAddress(
|
|
37
|
+
client: IndiciaCore,
|
|
38
|
+
request: operations.AnalyzeCryptoAddressRequest,
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): APIPromise<
|
|
41
|
+
Result<
|
|
42
|
+
operations.AnalyzeCryptoAddressResponse,
|
|
43
|
+
| errors.FailedResponseError
|
|
44
|
+
| IndiciaError
|
|
45
|
+
| ResponseValidationError
|
|
46
|
+
| ConnectionError
|
|
47
|
+
| RequestAbortedError
|
|
48
|
+
| RequestTimeoutError
|
|
49
|
+
| InvalidRequestError
|
|
50
|
+
| UnexpectedClientError
|
|
51
|
+
| SDKValidationError
|
|
52
|
+
>
|
|
53
|
+
> {
|
|
54
|
+
return new APIPromise($do(
|
|
55
|
+
client,
|
|
56
|
+
request,
|
|
57
|
+
options,
|
|
58
|
+
));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
async function $do(
|
|
62
|
+
client: IndiciaCore,
|
|
63
|
+
request: operations.AnalyzeCryptoAddressRequest,
|
|
64
|
+
options?: RequestOptions,
|
|
65
|
+
): Promise<
|
|
66
|
+
[
|
|
67
|
+
Result<
|
|
68
|
+
operations.AnalyzeCryptoAddressResponse,
|
|
69
|
+
| errors.FailedResponseError
|
|
70
|
+
| IndiciaError
|
|
71
|
+
| ResponseValidationError
|
|
72
|
+
| ConnectionError
|
|
73
|
+
| RequestAbortedError
|
|
74
|
+
| RequestTimeoutError
|
|
75
|
+
| InvalidRequestError
|
|
76
|
+
| UnexpectedClientError
|
|
77
|
+
| SDKValidationError
|
|
78
|
+
>,
|
|
79
|
+
APICall,
|
|
80
|
+
]
|
|
81
|
+
> {
|
|
82
|
+
const parsed = safeParse(
|
|
83
|
+
request,
|
|
84
|
+
(value) =>
|
|
85
|
+
z.parse(operations.AnalyzeCryptoAddressRequest$outboundSchema, value),
|
|
86
|
+
"Input validation failed",
|
|
87
|
+
);
|
|
88
|
+
if (!parsed.ok) {
|
|
89
|
+
return [parsed, { status: "invalid" }];
|
|
90
|
+
}
|
|
91
|
+
const payload = parsed.value;
|
|
92
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
93
|
+
|
|
94
|
+
const path = pathToFunc("/v1/tools/crypto")();
|
|
95
|
+
|
|
96
|
+
const headers = new Headers(compactMap({
|
|
97
|
+
"Content-Type": "application/json",
|
|
98
|
+
Accept: "application/json",
|
|
99
|
+
}));
|
|
100
|
+
|
|
101
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
102
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
103
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
104
|
+
|
|
105
|
+
const context = {
|
|
106
|
+
options: client._options,
|
|
107
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
108
|
+
operationID: "analyzeCryptoAddress",
|
|
109
|
+
oAuth2Scopes: null,
|
|
110
|
+
|
|
111
|
+
resolvedSecurity: requestSecurity,
|
|
112
|
+
|
|
113
|
+
securitySource: client._options.apiKey,
|
|
114
|
+
retryConfig: options?.retries
|
|
115
|
+
|| client._options.retryConfig
|
|
116
|
+
|| { strategy: "none" },
|
|
117
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
const requestRes = client._createRequest(context, {
|
|
121
|
+
security: requestSecurity,
|
|
122
|
+
method: "POST",
|
|
123
|
+
baseURL: options?.serverURL,
|
|
124
|
+
path: path,
|
|
125
|
+
headers: headers,
|
|
126
|
+
body: body,
|
|
127
|
+
userAgent: client._options.userAgent,
|
|
128
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
129
|
+
}, options);
|
|
130
|
+
if (!requestRes.ok) {
|
|
131
|
+
return [requestRes, { status: "invalid" }];
|
|
132
|
+
}
|
|
133
|
+
const req = requestRes.value;
|
|
134
|
+
|
|
135
|
+
const doResult = await client._do(req, {
|
|
136
|
+
context,
|
|
137
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
138
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
139
|
+
retryConfig: context.retryConfig,
|
|
140
|
+
retryCodes: context.retryCodes,
|
|
141
|
+
});
|
|
142
|
+
if (!doResult.ok) {
|
|
143
|
+
return [doResult, { status: "request-error", request: req }];
|
|
144
|
+
}
|
|
145
|
+
const response = doResult.value;
|
|
146
|
+
|
|
147
|
+
const responseFields = {
|
|
148
|
+
HttpMeta: { Response: response, Request: req },
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
const [result] = await M.match<
|
|
152
|
+
operations.AnalyzeCryptoAddressResponse,
|
|
153
|
+
| errors.FailedResponseError
|
|
154
|
+
| IndiciaError
|
|
155
|
+
| ResponseValidationError
|
|
156
|
+
| ConnectionError
|
|
157
|
+
| RequestAbortedError
|
|
158
|
+
| RequestTimeoutError
|
|
159
|
+
| InvalidRequestError
|
|
160
|
+
| UnexpectedClientError
|
|
161
|
+
| SDKValidationError
|
|
162
|
+
>(
|
|
163
|
+
M.json(200, operations.AnalyzeCryptoAddressResponse$inboundSchema),
|
|
164
|
+
M.jsonErr(500, errors.FailedResponseError$inboundSchema),
|
|
165
|
+
M.fail("4XX"),
|
|
166
|
+
M.fail("5XX"),
|
|
167
|
+
)(response, req, { extraFields: responseFields });
|
|
168
|
+
if (!result.ok) {
|
|
169
|
+
return [result, { status: "complete", request: req, response }];
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
return [result, { status: "complete", request: req, response }];
|
|
173
|
+
}
|
package/src/lib/config.ts
CHANGED
|
@@ -58,7 +58,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
58
58
|
export const SDK_METADATA = {
|
|
59
59
|
language: "typescript",
|
|
60
60
|
openapiDocVersion: "1.0.0",
|
|
61
|
-
sdkVersion: "1.2.
|
|
62
|
-
genVersion: "2.
|
|
63
|
-
userAgent: "speakeasy-sdk/typescript 1.2.
|
|
61
|
+
sdkVersion: "1.2.6",
|
|
62
|
+
genVersion: "2.915.0",
|
|
63
|
+
userAgent: "speakeasy-sdk/typescript 1.2.6 2.915.0 1.0.0 @indiciaosint/sdk",
|
|
64
64
|
} as const;
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import * as openEnums from "../../types/enums.js";
|
|
8
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import * as types from "../../types/primitives.js";
|
|
11
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
12
|
+
|
|
13
|
+
export type AnalyzeCryptoAddressRequest = {
|
|
14
|
+
address: string;
|
|
15
|
+
network?: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export type Token = {
|
|
19
|
+
amount: string;
|
|
20
|
+
contract: string | null;
|
|
21
|
+
icon: string | null;
|
|
22
|
+
name: string | null;
|
|
23
|
+
symbol: string | null;
|
|
24
|
+
valueUsd: number | null;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export const Direction = {
|
|
28
|
+
In: "in",
|
|
29
|
+
Out: "out",
|
|
30
|
+
Self: "self",
|
|
31
|
+
} as const;
|
|
32
|
+
export type Direction = OpenEnum<typeof Direction>;
|
|
33
|
+
|
|
34
|
+
export type Transaction = {
|
|
35
|
+
amount: string | null;
|
|
36
|
+
coin: string;
|
|
37
|
+
counterparty: string | null;
|
|
38
|
+
direction: Direction | null;
|
|
39
|
+
fee: string | null;
|
|
40
|
+
hash: string;
|
|
41
|
+
status: string | null;
|
|
42
|
+
timestamp: string | null;
|
|
43
|
+
url: string | null;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export type AnalyzeCryptoAddressData = {
|
|
47
|
+
address: string;
|
|
48
|
+
balance: string;
|
|
49
|
+
balanceUsd: number | null;
|
|
50
|
+
coin: string;
|
|
51
|
+
explorerUrl: string;
|
|
52
|
+
label: string | null;
|
|
53
|
+
network: string;
|
|
54
|
+
priceUsd: number | null;
|
|
55
|
+
tokens: Array<Token>;
|
|
56
|
+
totalReceived: string | null;
|
|
57
|
+
totalSent: string | null;
|
|
58
|
+
transactions: Array<Transaction>;
|
|
59
|
+
txCount: number | null;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Analysis successful
|
|
64
|
+
*/
|
|
65
|
+
export type AnalyzeCryptoAddressResponse = {
|
|
66
|
+
success: boolean;
|
|
67
|
+
data?: AnalyzeCryptoAddressData | undefined;
|
|
68
|
+
error?: string | undefined;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
/** @internal */
|
|
72
|
+
export type AnalyzeCryptoAddressRequest$Outbound = {
|
|
73
|
+
address: string;
|
|
74
|
+
network?: string | undefined;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
/** @internal */
|
|
78
|
+
export const AnalyzeCryptoAddressRequest$outboundSchema: z.ZodMiniType<
|
|
79
|
+
AnalyzeCryptoAddressRequest$Outbound,
|
|
80
|
+
AnalyzeCryptoAddressRequest
|
|
81
|
+
> = z.object({
|
|
82
|
+
address: z.string(),
|
|
83
|
+
network: z.optional(z.string()),
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
export function analyzeCryptoAddressRequestToJSON(
|
|
87
|
+
analyzeCryptoAddressRequest: AnalyzeCryptoAddressRequest,
|
|
88
|
+
): string {
|
|
89
|
+
return JSON.stringify(
|
|
90
|
+
AnalyzeCryptoAddressRequest$outboundSchema.parse(
|
|
91
|
+
analyzeCryptoAddressRequest,
|
|
92
|
+
),
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/** @internal */
|
|
97
|
+
export const Token$inboundSchema: z.ZodMiniType<Token, unknown> = z.object({
|
|
98
|
+
amount: types.string(),
|
|
99
|
+
contract: types.nullable(types.string()),
|
|
100
|
+
icon: types.nullable(types.string()),
|
|
101
|
+
name: types.nullable(types.string()),
|
|
102
|
+
symbol: types.nullable(types.string()),
|
|
103
|
+
valueUsd: types.nullable(types.number()),
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
export function tokenFromJSON(
|
|
107
|
+
jsonString: string,
|
|
108
|
+
): SafeParseResult<Token, SDKValidationError> {
|
|
109
|
+
return safeParse(
|
|
110
|
+
jsonString,
|
|
111
|
+
(x) => Token$inboundSchema.parse(JSON.parse(x)),
|
|
112
|
+
`Failed to parse 'Token' from JSON`,
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/** @internal */
|
|
117
|
+
export const Direction$inboundSchema: z.ZodMiniType<Direction, unknown> =
|
|
118
|
+
openEnums.inboundSchema(Direction);
|
|
119
|
+
|
|
120
|
+
/** @internal */
|
|
121
|
+
export const Transaction$inboundSchema: z.ZodMiniType<Transaction, unknown> = z
|
|
122
|
+
.object({
|
|
123
|
+
amount: types.nullable(types.string()),
|
|
124
|
+
coin: types.string(),
|
|
125
|
+
counterparty: types.nullable(types.string()),
|
|
126
|
+
direction: types.nullable(Direction$inboundSchema),
|
|
127
|
+
fee: types.nullable(types.string()),
|
|
128
|
+
hash: types.string(),
|
|
129
|
+
status: types.nullable(types.string()),
|
|
130
|
+
timestamp: types.nullable(types.string()),
|
|
131
|
+
url: types.nullable(types.string()),
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
export function transactionFromJSON(
|
|
135
|
+
jsonString: string,
|
|
136
|
+
): SafeParseResult<Transaction, SDKValidationError> {
|
|
137
|
+
return safeParse(
|
|
138
|
+
jsonString,
|
|
139
|
+
(x) => Transaction$inboundSchema.parse(JSON.parse(x)),
|
|
140
|
+
`Failed to parse 'Transaction' from JSON`,
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/** @internal */
|
|
145
|
+
export const AnalyzeCryptoAddressData$inboundSchema: z.ZodMiniType<
|
|
146
|
+
AnalyzeCryptoAddressData,
|
|
147
|
+
unknown
|
|
148
|
+
> = z.object({
|
|
149
|
+
address: types.string(),
|
|
150
|
+
balance: types.string(),
|
|
151
|
+
balanceUsd: types.nullable(types.number()),
|
|
152
|
+
coin: types.string(),
|
|
153
|
+
explorerUrl: types.string(),
|
|
154
|
+
label: types.nullable(types.string()),
|
|
155
|
+
network: types.string(),
|
|
156
|
+
priceUsd: types.nullable(types.number()),
|
|
157
|
+
tokens: z.array(z.lazy(() => Token$inboundSchema)),
|
|
158
|
+
totalReceived: types.nullable(types.string()),
|
|
159
|
+
totalSent: types.nullable(types.string()),
|
|
160
|
+
transactions: z.array(z.lazy(() => Transaction$inboundSchema)),
|
|
161
|
+
txCount: types.nullable(types.number()),
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
export function analyzeCryptoAddressDataFromJSON(
|
|
165
|
+
jsonString: string,
|
|
166
|
+
): SafeParseResult<AnalyzeCryptoAddressData, SDKValidationError> {
|
|
167
|
+
return safeParse(
|
|
168
|
+
jsonString,
|
|
169
|
+
(x) => AnalyzeCryptoAddressData$inboundSchema.parse(JSON.parse(x)),
|
|
170
|
+
`Failed to parse 'AnalyzeCryptoAddressData' from JSON`,
|
|
171
|
+
);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/** @internal */
|
|
175
|
+
export const AnalyzeCryptoAddressResponse$inboundSchema: z.ZodMiniType<
|
|
176
|
+
AnalyzeCryptoAddressResponse,
|
|
177
|
+
unknown
|
|
178
|
+
> = z.object({
|
|
179
|
+
success: types.boolean(),
|
|
180
|
+
data: types.optional(z.lazy(() => AnalyzeCryptoAddressData$inboundSchema)),
|
|
181
|
+
error: types.optional(types.string()),
|
|
182
|
+
});
|
|
183
|
+
|
|
184
|
+
export function analyzeCryptoAddressResponseFromJSON(
|
|
185
|
+
jsonString: string,
|
|
186
|
+
): SafeParseResult<AnalyzeCryptoAddressResponse, SDKValidationError> {
|
|
187
|
+
return safeParse(
|
|
188
|
+
jsonString,
|
|
189
|
+
(x) => AnalyzeCryptoAddressResponse$inboundSchema.parse(JSON.parse(x)),
|
|
190
|
+
`Failed to parse 'AnalyzeCryptoAddressResponse' from JSON`,
|
|
191
|
+
);
|
|
192
|
+
}
|
|
@@ -4,14 +4,25 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
9
|
import * as types from "../../types/primitives.js";
|
|
9
10
|
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
10
11
|
|
|
12
|
+
export const SearchTiktokType = {
|
|
13
|
+
Email: "email",
|
|
14
|
+
Phone: "phone",
|
|
15
|
+
Username: "username",
|
|
16
|
+
} as const;
|
|
17
|
+
export type SearchTiktokType = ClosedEnum<typeof SearchTiktokType>;
|
|
18
|
+
|
|
11
19
|
export type SearchTiktokRequest = {
|
|
12
20
|
query: string;
|
|
21
|
+
type?: SearchTiktokType | undefined;
|
|
13
22
|
};
|
|
14
23
|
|
|
24
|
+
export type SecurityInfo = {};
|
|
25
|
+
|
|
15
26
|
export type SearchTiktokData = {
|
|
16
27
|
bio?: string | undefined;
|
|
17
28
|
commerce?: boolean | undefined;
|
|
@@ -27,7 +38,11 @@ export type SearchTiktokData = {
|
|
|
27
38
|
picture?: string | undefined;
|
|
28
39
|
private?: boolean | undefined;
|
|
29
40
|
region?: string | undefined;
|
|
41
|
+
resolvedFrom?: string | undefined;
|
|
42
|
+
secUid?: string | undefined;
|
|
43
|
+
securityInfo?: SecurityInfo | undefined;
|
|
30
44
|
ttseller?: boolean | undefined;
|
|
45
|
+
userId?: string | undefined;
|
|
31
46
|
username?: string | undefined;
|
|
32
47
|
verified?: boolean | undefined;
|
|
33
48
|
videos?: string | undefined;
|
|
@@ -42,9 +57,15 @@ export type SearchTiktokResponse = {
|
|
|
42
57
|
error?: string | undefined;
|
|
43
58
|
};
|
|
44
59
|
|
|
60
|
+
/** @internal */
|
|
61
|
+
export const SearchTiktokType$outboundSchema: z.ZodMiniEnum<
|
|
62
|
+
typeof SearchTiktokType
|
|
63
|
+
> = z.enum(SearchTiktokType);
|
|
64
|
+
|
|
45
65
|
/** @internal */
|
|
46
66
|
export type SearchTiktokRequest$Outbound = {
|
|
47
67
|
query: string;
|
|
68
|
+
type?: string | undefined;
|
|
48
69
|
};
|
|
49
70
|
|
|
50
71
|
/** @internal */
|
|
@@ -53,6 +74,7 @@ export const SearchTiktokRequest$outboundSchema: z.ZodMiniType<
|
|
|
53
74
|
SearchTiktokRequest
|
|
54
75
|
> = z.object({
|
|
55
76
|
query: z.string(),
|
|
77
|
+
type: z.optional(SearchTiktokType$outboundSchema),
|
|
56
78
|
});
|
|
57
79
|
|
|
58
80
|
export function searchTiktokRequestToJSON(
|
|
@@ -63,6 +85,20 @@ export function searchTiktokRequestToJSON(
|
|
|
63
85
|
);
|
|
64
86
|
}
|
|
65
87
|
|
|
88
|
+
/** @internal */
|
|
89
|
+
export const SecurityInfo$inboundSchema: z.ZodMiniType<SecurityInfo, unknown> =
|
|
90
|
+
z.object({});
|
|
91
|
+
|
|
92
|
+
export function securityInfoFromJSON(
|
|
93
|
+
jsonString: string,
|
|
94
|
+
): SafeParseResult<SecurityInfo, SDKValidationError> {
|
|
95
|
+
return safeParse(
|
|
96
|
+
jsonString,
|
|
97
|
+
(x) => SecurityInfo$inboundSchema.parse(JSON.parse(x)),
|
|
98
|
+
`Failed to parse 'SecurityInfo' from JSON`,
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
|
|
66
102
|
/** @internal */
|
|
67
103
|
export const SearchTiktokData$inboundSchema: z.ZodMiniType<
|
|
68
104
|
SearchTiktokData,
|
|
@@ -82,7 +118,11 @@ export const SearchTiktokData$inboundSchema: z.ZodMiniType<
|
|
|
82
118
|
picture: types.optional(types.string()),
|
|
83
119
|
private: types.optional(types.boolean()),
|
|
84
120
|
region: types.optional(types.string()),
|
|
121
|
+
resolvedFrom: types.optional(types.string()),
|
|
122
|
+
secUid: types.optional(types.string()),
|
|
123
|
+
securityInfo: types.optional(z.lazy(() => SecurityInfo$inboundSchema)),
|
|
85
124
|
ttseller: types.optional(types.boolean()),
|
|
125
|
+
userId: types.optional(types.string()),
|
|
86
126
|
username: types.optional(types.string()),
|
|
87
127
|
verified: types.optional(types.boolean()),
|
|
88
128
|
videos: types.optional(types.string()),
|
package/src/sdk/tools.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
import { toolsAnalyzeCryptoAddress } from "../funcs/tools-analyze-crypto-address.js";
|
|
5
6
|
import { toolsBypassDoubleCounter } from "../funcs/tools-bypass-double-counter.js";
|
|
6
7
|
import { toolsDownloadIntelxFile } from "../funcs/tools-download-intelx-file.js";
|
|
7
8
|
import { toolsDownloadVirusTotalFile } from "../funcs/tools-download-virus-total-file.js";
|
|
@@ -29,6 +30,23 @@ export class Tools extends ClientSDK {
|
|
|
29
30
|
));
|
|
30
31
|
}
|
|
31
32
|
|
|
33
|
+
/**
|
|
34
|
+
* Crypto Address Analyzer
|
|
35
|
+
*
|
|
36
|
+
* @remarks
|
|
37
|
+
* Analyze a cryptocurrency address: native balance and USD value, token holdings, and recent transaction history with counterparties. Supports Bitcoin, Litecoin, Ethereum, Base, Optimism, Arbitrum, Polygon, Gnosis, Celo, Mode, Fuse, Tron, TON and Solana. The network is auto-detected from the address format if not supplied (pass a specific id to disambiguate base58 chains).
|
|
38
|
+
*/
|
|
39
|
+
async analyzeCryptoAddress(
|
|
40
|
+
request: operations.AnalyzeCryptoAddressRequest,
|
|
41
|
+
options?: RequestOptions,
|
|
42
|
+
): Promise<operations.AnalyzeCryptoAddressResponse> {
|
|
43
|
+
return unwrapAsync(toolsAnalyzeCryptoAddress(
|
|
44
|
+
this,
|
|
45
|
+
request,
|
|
46
|
+
options,
|
|
47
|
+
));
|
|
48
|
+
}
|
|
49
|
+
|
|
32
50
|
/**
|
|
33
51
|
* Discord Alt Lookup
|
|
34
52
|
*
|