@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,130 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Relentless Identity API
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.ProbeApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
class ProbeApi extends runtime.BaseAPI {
|
|
31
|
+
/**
|
|
32
|
+
* Creates request options for probeBatch without sending the request
|
|
33
|
+
*/
|
|
34
|
+
probeBatchRequestOpts(requestParameters) {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
if (requestParameters['probeBatchRequest'] == null) {
|
|
37
|
+
throw new runtime.RequiredError('probeBatchRequest', 'Required parameter "probeBatchRequest" was null or undefined when calling probeBatch().');
|
|
38
|
+
}
|
|
39
|
+
const queryParameters = {};
|
|
40
|
+
const headerParameters = {};
|
|
41
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
42
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
43
|
+
const token = this.configuration.accessToken;
|
|
44
|
+
const tokenString = yield token("bearerAuth", []);
|
|
45
|
+
if (tokenString) {
|
|
46
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
let urlPath = `/client/probe/batch`;
|
|
50
|
+
return {
|
|
51
|
+
path: urlPath,
|
|
52
|
+
method: 'POST',
|
|
53
|
+
headers: headerParameters,
|
|
54
|
+
query: queryParameters,
|
|
55
|
+
body: requestParameters['probeBatchRequest'],
|
|
56
|
+
};
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Send many known email addresses and receive compact per-item identity results plus a batch summary.
|
|
61
|
+
* Verify many email addresses
|
|
62
|
+
*/
|
|
63
|
+
probeBatchRaw(requestParameters, initOverrides) {
|
|
64
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
65
|
+
const requestOptions = yield this.probeBatchRequestOpts(requestParameters);
|
|
66
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
67
|
+
return new runtime.JSONApiResponse(response);
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Send many known email addresses and receive compact per-item identity results plus a batch summary.
|
|
72
|
+
* Verify many email addresses
|
|
73
|
+
*/
|
|
74
|
+
probeBatch(requestParameters, initOverrides) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
const response = yield this.probeBatchRaw(requestParameters, initOverrides);
|
|
77
|
+
return yield response.value();
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Creates request options for probeEmail without sending the request
|
|
82
|
+
*/
|
|
83
|
+
probeEmailRequestOpts(requestParameters) {
|
|
84
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
85
|
+
if (requestParameters['probeRequest'] == null) {
|
|
86
|
+
throw new runtime.RequiredError('probeRequest', 'Required parameter "probeRequest" was null or undefined when calling probeEmail().');
|
|
87
|
+
}
|
|
88
|
+
const queryParameters = {};
|
|
89
|
+
const headerParameters = {};
|
|
90
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
91
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
92
|
+
const token = this.configuration.accessToken;
|
|
93
|
+
const tokenString = yield token("bearerAuth", []);
|
|
94
|
+
if (tokenString) {
|
|
95
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
let urlPath = `/client/probe`;
|
|
99
|
+
return {
|
|
100
|
+
path: urlPath,
|
|
101
|
+
method: 'POST',
|
|
102
|
+
headers: headerParameters,
|
|
103
|
+
query: queryParameters,
|
|
104
|
+
body: requestParameters['probeRequest'],
|
|
105
|
+
};
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Send a single email address to verify it directly.
|
|
110
|
+
* Verify an email address
|
|
111
|
+
*/
|
|
112
|
+
probeEmailRaw(requestParameters, initOverrides) {
|
|
113
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
114
|
+
const requestOptions = yield this.probeEmailRequestOpts(requestParameters);
|
|
115
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
116
|
+
return new runtime.JSONApiResponse(response);
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Send a single email address to verify it directly.
|
|
121
|
+
* Verify an email address
|
|
122
|
+
*/
|
|
123
|
+
probeEmail(requestParameters, initOverrides) {
|
|
124
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
125
|
+
const response = yield this.probeEmailRaw(requestParameters, initOverrides);
|
|
126
|
+
return yield response.value();
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
exports.ProbeApi = ProbeApi;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/* tslint:disable */
|
|
18
|
+
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./AccountApi"), exports);
|
|
20
|
+
__exportStar(require("./FinderApi"), exports);
|
|
21
|
+
__exportStar(require("./JobsApi"), exports);
|
|
22
|
+
__exportStar(require("./ProbeApi"), exports);
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Relentless Identity API
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { ClientRequestHistoryPageResponse, ClientTokenStatusResponse, ClientUsageResponse } from '../models/index';
|
|
14
|
+
export interface GetRequestHistoryRequest {
|
|
15
|
+
page?: number;
|
|
16
|
+
pageSize?: number;
|
|
17
|
+
requestType?: GetRequestHistoryRequestTypeEnum;
|
|
18
|
+
state?: GetRequestHistoryStateEnum;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export declare class AccountApi extends runtime.BaseAPI {
|
|
24
|
+
/**
|
|
25
|
+
* Creates request options for getRequestHistory without sending the request
|
|
26
|
+
*/
|
|
27
|
+
getRequestHistoryRequestOpts(requestParameters: GetRequestHistoryRequest): Promise<runtime.RequestOpts>;
|
|
28
|
+
/**
|
|
29
|
+
* Return the authenticated user\'s latest request history with pagination and optional filters.
|
|
30
|
+
* Get paginated request history
|
|
31
|
+
*/
|
|
32
|
+
getRequestHistoryRaw(requestParameters: GetRequestHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ClientRequestHistoryPageResponse>>;
|
|
33
|
+
/**
|
|
34
|
+
* Return the authenticated user\'s latest request history with pagination and optional filters.
|
|
35
|
+
* Get paginated request history
|
|
36
|
+
*/
|
|
37
|
+
getRequestHistory(requestParameters?: GetRequestHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ClientRequestHistoryPageResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* Creates request options for getTokenStatus without sending the request
|
|
40
|
+
*/
|
|
41
|
+
getTokenStatusRequestOpts(): Promise<runtime.RequestOpts>;
|
|
42
|
+
/**
|
|
43
|
+
* Validate the current bearer token and return its active claims.
|
|
44
|
+
* Inspect the current bearer token
|
|
45
|
+
*/
|
|
46
|
+
getTokenStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ClientTokenStatusResponse>>;
|
|
47
|
+
/**
|
|
48
|
+
* Validate the current bearer token and return its active claims.
|
|
49
|
+
* Inspect the current bearer token
|
|
50
|
+
*/
|
|
51
|
+
getTokenStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ClientTokenStatusResponse>;
|
|
52
|
+
/**
|
|
53
|
+
* Creates request options for getUsage without sending the request
|
|
54
|
+
*/
|
|
55
|
+
getUsageRequestOpts(): Promise<runtime.RequestOpts>;
|
|
56
|
+
/**
|
|
57
|
+
* Return the current account usage, free-tier limits, and paid capacity details for the authenticated user.
|
|
58
|
+
* Get current usage and limits
|
|
59
|
+
*/
|
|
60
|
+
getUsageRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ClientUsageResponse>>;
|
|
61
|
+
/**
|
|
62
|
+
* Return the current account usage, free-tier limits, and paid capacity details for the authenticated user.
|
|
63
|
+
* Get current usage and limits
|
|
64
|
+
*/
|
|
65
|
+
getUsage(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ClientUsageResponse>;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export declare const GetRequestHistoryRequestTypeEnum: {
|
|
71
|
+
readonly Finder: "finder";
|
|
72
|
+
readonly Probe: "probe";
|
|
73
|
+
};
|
|
74
|
+
export type GetRequestHistoryRequestTypeEnum = typeof GetRequestHistoryRequestTypeEnum[keyof typeof GetRequestHistoryRequestTypeEnum];
|
|
75
|
+
/**
|
|
76
|
+
* @export
|
|
77
|
+
*/
|
|
78
|
+
export declare const GetRequestHistoryStateEnum: {
|
|
79
|
+
readonly Deliverable: "deliverable";
|
|
80
|
+
readonly Undeliverable: "undeliverable";
|
|
81
|
+
};
|
|
82
|
+
export type GetRequestHistoryStateEnum = typeof GetRequestHistoryStateEnum[keyof typeof GetRequestHistoryStateEnum];
|
|
@@ -0,0 +1,186 @@
|
|
|
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 AccountApi extends runtime.BaseAPI {
|
|
28
|
+
/**
|
|
29
|
+
* Creates request options for getRequestHistory without sending the request
|
|
30
|
+
*/
|
|
31
|
+
getRequestHistoryRequestOpts(requestParameters) {
|
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
const queryParameters = {};
|
|
34
|
+
if (requestParameters['page'] != null) {
|
|
35
|
+
queryParameters['page'] = requestParameters['page'];
|
|
36
|
+
}
|
|
37
|
+
if (requestParameters['pageSize'] != null) {
|
|
38
|
+
queryParameters['page_size'] = requestParameters['pageSize'];
|
|
39
|
+
}
|
|
40
|
+
if (requestParameters['requestType'] != null) {
|
|
41
|
+
queryParameters['request_type'] = requestParameters['requestType'];
|
|
42
|
+
}
|
|
43
|
+
if (requestParameters['state'] != null) {
|
|
44
|
+
queryParameters['state'] = requestParameters['state'];
|
|
45
|
+
}
|
|
46
|
+
const headerParameters = {};
|
|
47
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
48
|
+
const token = this.configuration.accessToken;
|
|
49
|
+
const tokenString = yield token("bearerAuth", []);
|
|
50
|
+
if (tokenString) {
|
|
51
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
let urlPath = `/client/history`;
|
|
55
|
+
return {
|
|
56
|
+
path: urlPath,
|
|
57
|
+
method: 'GET',
|
|
58
|
+
headers: headerParameters,
|
|
59
|
+
query: queryParameters,
|
|
60
|
+
};
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Return the authenticated user\'s latest request history with pagination and optional filters.
|
|
65
|
+
* Get paginated request history
|
|
66
|
+
*/
|
|
67
|
+
getRequestHistoryRaw(requestParameters, initOverrides) {
|
|
68
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
69
|
+
const requestOptions = yield this.getRequestHistoryRequestOpts(requestParameters);
|
|
70
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
71
|
+
return new runtime.JSONApiResponse(response);
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Return the authenticated user\'s latest request history with pagination and optional filters.
|
|
76
|
+
* Get paginated request history
|
|
77
|
+
*/
|
|
78
|
+
getRequestHistory() {
|
|
79
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
80
|
+
const response = yield this.getRequestHistoryRaw(requestParameters, initOverrides);
|
|
81
|
+
return yield response.value();
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Creates request options for getTokenStatus without sending the request
|
|
86
|
+
*/
|
|
87
|
+
getTokenStatusRequestOpts() {
|
|
88
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
89
|
+
const queryParameters = {};
|
|
90
|
+
const headerParameters = {};
|
|
91
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
92
|
+
const token = this.configuration.accessToken;
|
|
93
|
+
const tokenString = yield token("bearerAuth", []);
|
|
94
|
+
if (tokenString) {
|
|
95
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
let urlPath = `/client/token`;
|
|
99
|
+
return {
|
|
100
|
+
path: urlPath,
|
|
101
|
+
method: 'GET',
|
|
102
|
+
headers: headerParameters,
|
|
103
|
+
query: queryParameters,
|
|
104
|
+
};
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Validate the current bearer token and return its active claims.
|
|
109
|
+
* Inspect the current bearer token
|
|
110
|
+
*/
|
|
111
|
+
getTokenStatusRaw(initOverrides) {
|
|
112
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
113
|
+
const requestOptions = yield this.getTokenStatusRequestOpts();
|
|
114
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
115
|
+
return new runtime.JSONApiResponse(response);
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Validate the current bearer token and return its active claims.
|
|
120
|
+
* Inspect the current bearer token
|
|
121
|
+
*/
|
|
122
|
+
getTokenStatus(initOverrides) {
|
|
123
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
124
|
+
const response = yield this.getTokenStatusRaw(initOverrides);
|
|
125
|
+
return yield response.value();
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Creates request options for getUsage without sending the request
|
|
130
|
+
*/
|
|
131
|
+
getUsageRequestOpts() {
|
|
132
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
133
|
+
const queryParameters = {};
|
|
134
|
+
const headerParameters = {};
|
|
135
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
136
|
+
const token = this.configuration.accessToken;
|
|
137
|
+
const tokenString = yield token("bearerAuth", []);
|
|
138
|
+
if (tokenString) {
|
|
139
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
let urlPath = `/client/usage`;
|
|
143
|
+
return {
|
|
144
|
+
path: urlPath,
|
|
145
|
+
method: 'GET',
|
|
146
|
+
headers: headerParameters,
|
|
147
|
+
query: queryParameters,
|
|
148
|
+
};
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Return the current account usage, free-tier limits, and paid capacity details for the authenticated user.
|
|
153
|
+
* Get current usage and limits
|
|
154
|
+
*/
|
|
155
|
+
getUsageRaw(initOverrides) {
|
|
156
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
157
|
+
const requestOptions = yield this.getUsageRequestOpts();
|
|
158
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
159
|
+
return new runtime.JSONApiResponse(response);
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Return the current account usage, free-tier limits, and paid capacity details for the authenticated user.
|
|
164
|
+
* Get current usage and limits
|
|
165
|
+
*/
|
|
166
|
+
getUsage(initOverrides) {
|
|
167
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
168
|
+
const response = yield this.getUsageRaw(initOverrides);
|
|
169
|
+
return yield response.value();
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* @export
|
|
175
|
+
*/
|
|
176
|
+
export const GetRequestHistoryRequestTypeEnum = {
|
|
177
|
+
Finder: 'finder',
|
|
178
|
+
Probe: 'probe'
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* @export
|
|
182
|
+
*/
|
|
183
|
+
export const GetRequestHistoryStateEnum = {
|
|
184
|
+
Deliverable: 'deliverable',
|
|
185
|
+
Undeliverable: 'undeliverable'
|
|
186
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Relentless Identity API
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { ClientFinderResponse, FinderRequest } from '../models/index';
|
|
14
|
+
export interface FinderAttemptRequest {
|
|
15
|
+
finderRequest: FinderRequest;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export declare class FinderApi extends runtime.BaseAPI {
|
|
21
|
+
/**
|
|
22
|
+
* Creates request options for finderAttempt without sending the request
|
|
23
|
+
*/
|
|
24
|
+
finderAttemptRequestOpts(requestParameters: FinderAttemptRequest): Promise<runtime.RequestOpts>;
|
|
25
|
+
/**
|
|
26
|
+
* Send a full name and company domain to resolve the most likely verified work email.
|
|
27
|
+
* Find a work email
|
|
28
|
+
*/
|
|
29
|
+
finderAttemptRaw(requestParameters: FinderAttemptRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ClientFinderResponse>>;
|
|
30
|
+
/**
|
|
31
|
+
* Send a full name and company domain to resolve the most likely verified work email.
|
|
32
|
+
* Find a work email
|
|
33
|
+
*/
|
|
34
|
+
finderAttempt(requestParameters: FinderAttemptRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ClientFinderResponse>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
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 FinderApi extends runtime.BaseAPI {
|
|
28
|
+
/**
|
|
29
|
+
* Creates request options for finderAttempt without sending the request
|
|
30
|
+
*/
|
|
31
|
+
finderAttemptRequestOpts(requestParameters) {
|
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
if (requestParameters['finderRequest'] == null) {
|
|
34
|
+
throw new runtime.RequiredError('finderRequest', 'Required parameter "finderRequest" was null or undefined when calling finderAttempt().');
|
|
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/attempt`;
|
|
47
|
+
return {
|
|
48
|
+
path: urlPath,
|
|
49
|
+
method: 'POST',
|
|
50
|
+
headers: headerParameters,
|
|
51
|
+
query: queryParameters,
|
|
52
|
+
body: requestParameters['finderRequest'],
|
|
53
|
+
};
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Send a full name and company domain to resolve the most likely verified work email.
|
|
58
|
+
* Find a work email
|
|
59
|
+
*/
|
|
60
|
+
finderAttemptRaw(requestParameters, initOverrides) {
|
|
61
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
+
const requestOptions = yield this.finderAttemptRequestOpts(requestParameters);
|
|
63
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
64
|
+
return new runtime.JSONApiResponse(response);
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Send a full name and company domain to resolve the most likely verified work email.
|
|
69
|
+
* Find a work email
|
|
70
|
+
*/
|
|
71
|
+
finderAttempt(requestParameters, initOverrides) {
|
|
72
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
+
const response = yield this.finderAttemptRaw(requestParameters, initOverrides);
|
|
74
|
+
return yield response.value();
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}
|