@relentless-identity/sdk 1.0.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/README.md +163 -0
- package/dist/apis/AccountApi.d.ts +82 -0
- package/dist/apis/AccountApi.js +190 -0
- package/dist/apis/FinderApi.d.ts +35 -0
- package/dist/apis/FinderApi.js +81 -0
- package/dist/apis/JobsApi.d.ts +167 -0
- package/dist/apis/JobsApi.js +434 -0
- package/dist/apis/ProbeApi.d.ts +52 -0
- package/dist/apis/ProbeApi.js +130 -0
- package/dist/apis/index.d.ts +4 -0
- package/dist/apis/index.js +22 -0
- package/dist/esm/apis/AccountApi.d.ts +82 -0
- package/dist/esm/apis/AccountApi.js +186 -0
- package/dist/esm/apis/FinderApi.d.ts +35 -0
- package/dist/esm/apis/FinderApi.js +77 -0
- package/dist/esm/apis/JobsApi.d.ts +167 -0
- package/dist/esm/apis/JobsApi.js +430 -0
- package/dist/esm/apis/ProbeApi.d.ts +52 -0
- package/dist/esm/apis/ProbeApi.js +126 -0
- package/dist/esm/apis/index.d.ts +4 -0
- package/dist/esm/apis/index.js +6 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/index.d.ts +1265 -0
- package/dist/esm/models/index.js +110 -0
- package/dist/esm/runtime.d.ts +181 -0
- package/dist/esm/runtime.js +342 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/index.d.ts +1265 -0
- package/dist/models/index.js +113 -0
- package/dist/runtime.d.ts +181 -0
- package/dist/runtime.js +357 -0
- package/package.json +18 -0
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Relentless Identity API
|
|
5
|
+
* Public client API for Finder and Probe workflows. This spec is generated from the FastAPI app, then narrowed to the supported bearer-authenticated routes used by SDKs and the API reference.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export class ProbeApi extends runtime.BaseAPI {
|
|
28
|
+
/**
|
|
29
|
+
* Creates request options for probeBatch without sending the request
|
|
30
|
+
*/
|
|
31
|
+
probeBatchRequestOpts(requestParameters) {
|
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
if (requestParameters['probeBatchRequest'] == null) {
|
|
34
|
+
throw new runtime.RequiredError('probeBatchRequest', 'Required parameter "probeBatchRequest" was null or undefined when calling probeBatch().');
|
|
35
|
+
}
|
|
36
|
+
const queryParameters = {};
|
|
37
|
+
const headerParameters = {};
|
|
38
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
39
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
40
|
+
const token = this.configuration.accessToken;
|
|
41
|
+
const tokenString = yield token("bearerAuth", []);
|
|
42
|
+
if (tokenString) {
|
|
43
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
let urlPath = `/client/probe/batch`;
|
|
47
|
+
return {
|
|
48
|
+
path: urlPath,
|
|
49
|
+
method: 'POST',
|
|
50
|
+
headers: headerParameters,
|
|
51
|
+
query: queryParameters,
|
|
52
|
+
body: requestParameters['probeBatchRequest'],
|
|
53
|
+
};
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Send many known email addresses and receive compact per-item identity results plus a batch summary.
|
|
58
|
+
* Verify many email addresses
|
|
59
|
+
*/
|
|
60
|
+
probeBatchRaw(requestParameters, initOverrides) {
|
|
61
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
+
const requestOptions = yield this.probeBatchRequestOpts(requestParameters);
|
|
63
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
64
|
+
return new runtime.JSONApiResponse(response);
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Send many known email addresses and receive compact per-item identity results plus a batch summary.
|
|
69
|
+
* Verify many email addresses
|
|
70
|
+
*/
|
|
71
|
+
probeBatch(requestParameters, initOverrides) {
|
|
72
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
+
const response = yield this.probeBatchRaw(requestParameters, initOverrides);
|
|
74
|
+
return yield response.value();
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Creates request options for probeEmail without sending the request
|
|
79
|
+
*/
|
|
80
|
+
probeEmailRequestOpts(requestParameters) {
|
|
81
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
if (requestParameters['probeRequest'] == null) {
|
|
83
|
+
throw new runtime.RequiredError('probeRequest', 'Required parameter "probeRequest" was null or undefined when calling probeEmail().');
|
|
84
|
+
}
|
|
85
|
+
const queryParameters = {};
|
|
86
|
+
const headerParameters = {};
|
|
87
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
88
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
89
|
+
const token = this.configuration.accessToken;
|
|
90
|
+
const tokenString = yield token("bearerAuth", []);
|
|
91
|
+
if (tokenString) {
|
|
92
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
let urlPath = `/client/probe`;
|
|
96
|
+
return {
|
|
97
|
+
path: urlPath,
|
|
98
|
+
method: 'POST',
|
|
99
|
+
headers: headerParameters,
|
|
100
|
+
query: queryParameters,
|
|
101
|
+
body: requestParameters['probeRequest'],
|
|
102
|
+
};
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Send a single email address to verify it directly.
|
|
107
|
+
* Verify an email address
|
|
108
|
+
*/
|
|
109
|
+
probeEmailRaw(requestParameters, initOverrides) {
|
|
110
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
111
|
+
const requestOptions = yield this.probeEmailRequestOpts(requestParameters);
|
|
112
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
113
|
+
return new runtime.JSONApiResponse(response);
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Send a single email address to verify it directly.
|
|
118
|
+
* Verify an email address
|
|
119
|
+
*/
|
|
120
|
+
probeEmail(requestParameters, initOverrides) {
|
|
121
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
122
|
+
const response = yield this.probeEmailRaw(requestParameters, initOverrides);
|
|
123
|
+
return yield response.value();
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
}
|