@vouchsafe/node 0.1.3 → 0.1.5

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.
Files changed (56) hide show
  1. package/README.md +6 -0
  2. package/dist/VouchsafeClient.d.ts +5 -0
  3. package/dist/VouchsafeClient.d.ts.map +1 -1
  4. package/dist/VouchsafeClient.js +8 -0
  5. package/dist/VouchsafeClient.js.map +1 -1
  6. package/dist/openapi/apis/FlowsApi.d.ts +38 -0
  7. package/dist/openapi/apis/FlowsApi.d.ts.map +1 -0
  8. package/dist/openapi/apis/FlowsApi.js +120 -0
  9. package/dist/openapi/apis/FlowsApi.js.map +1 -0
  10. package/dist/openapi/apis/SmartLookupsApi.d.ts +2 -2
  11. package/dist/openapi/apis/SmartLookupsApi.js +2 -2
  12. package/dist/openapi/apis/TeamApi.d.ts +39 -0
  13. package/dist/openapi/apis/TeamApi.d.ts.map +1 -0
  14. package/dist/openapi/apis/TeamApi.js +120 -0
  15. package/dist/openapi/apis/TeamApi.js.map +1 -0
  16. package/dist/openapi/apis/index.d.ts +2 -0
  17. package/dist/openapi/apis/index.d.ts.map +1 -1
  18. package/dist/openapi/apis/index.js +2 -0
  19. package/dist/openapi/apis/index.js.map +1 -1
  20. package/dist/openapi/models/CreateTeamInput.d.ts +58 -0
  21. package/dist/openapi/models/CreateTeamInput.d.ts.map +1 -0
  22. package/dist/openapi/models/CreateTeamInput.js +62 -0
  23. package/dist/openapi/models/CreateTeamInput.js.map +1 -0
  24. package/dist/openapi/models/CreateTeamResponse.d.ts +58 -0
  25. package/dist/openapi/models/CreateTeamResponse.d.ts.map +1 -0
  26. package/dist/openapi/models/CreateTeamResponse.js +66 -0
  27. package/dist/openapi/models/CreateTeamResponse.js.map +1 -0
  28. package/dist/openapi/models/CreateTeamResponseCredentials.d.ts +52 -0
  29. package/dist/openapi/models/CreateTeamResponseCredentials.d.ts.map +1 -0
  30. package/dist/openapi/models/CreateTeamResponseCredentials.js +64 -0
  31. package/dist/openapi/models/CreateTeamResponseCredentials.js.map +1 -0
  32. package/dist/openapi/models/Flow.d.ts +64 -0
  33. package/dist/openapi/models/Flow.d.ts.map +1 -0
  34. package/dist/openapi/models/Flow.js +67 -0
  35. package/dist/openapi/models/Flow.js.map +1 -0
  36. package/dist/openapi/models/FlowTemplate.d.ts +28 -0
  37. package/dist/openapi/models/FlowTemplate.d.ts.map +1 -0
  38. package/dist/openapi/models/FlowTemplate.js +54 -0
  39. package/dist/openapi/models/FlowTemplate.js.map +1 -0
  40. package/dist/openapi/models/Model36EnumsEnvironment.d.ts +26 -0
  41. package/dist/openapi/models/Model36EnumsEnvironment.d.ts.map +1 -0
  42. package/dist/openapi/models/Model36EnumsEnvironment.js +52 -0
  43. package/dist/openapi/models/Model36EnumsEnvironment.js.map +1 -0
  44. package/dist/openapi/models/RequestVerificationResponse.d.ts +6 -0
  45. package/dist/openapi/models/RequestVerificationResponse.d.ts.map +1 -1
  46. package/dist/openapi/models/RequestVerificationResponse.js +2 -0
  47. package/dist/openapi/models/RequestVerificationResponse.js.map +1 -1
  48. package/dist/openapi/models/Team.d.ts +79 -0
  49. package/dist/openapi/models/Team.d.ts.map +1 -0
  50. package/dist/openapi/models/Team.js +85 -0
  51. package/dist/openapi/models/Team.js.map +1 -0
  52. package/dist/openapi/models/index.d.ts +7 -0
  53. package/dist/openapi/models/index.d.ts.map +1 -1
  54. package/dist/openapi/models/index.js +7 -0
  55. package/dist/openapi/models/index.js.map +1 -1
  56. package/package.json +1 -1
package/README.md CHANGED
@@ -51,6 +51,12 @@ const res = await client.getVerification({
51
51
  })
52
52
  ```
53
53
 
54
+ ### List verification flows
55
+
56
+ ```ts
57
+ const res = await client.listFlows()
58
+ ```
59
+
54
60
  ### Sandbox mode
55
61
 
56
62
  Use a sandbox rather than a live client secret to activate [sandbox mode](https://help.vouchsafe.id/en/articles/11979598-how-does-sandbox-mode-work) on methods that support it.
@@ -16,6 +16,7 @@ export declare class VouchsafeClient {
16
16
  private authenticationApi;
17
17
  private verificationsApi;
18
18
  private smartLookupsApi;
19
+ private flowsApi;
19
20
  constructor(options: VouchsafeClientOptions);
20
21
  /**
21
22
  * PRIVATE METHODS
@@ -40,6 +41,10 @@ export declare class VouchsafeClient {
40
41
  searchPostcode({ postcode }: {
41
42
  postcode: string;
42
43
  }): Promise<import("./openapi").PostcodeResponse>;
44
+ listFlows(): Promise<import("./openapi").Flow[]>;
45
+ getFlow({ id }: {
46
+ id: string;
47
+ }): Promise<import("./openapi").Flow>;
43
48
  }
44
49
  export {};
45
50
  //# sourceMappingURL=VouchsafeClient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"VouchsafeClient.d.ts","sourceRoot":"","sources":["../src/VouchsafeClient.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,wBAAwB,EACxB,gBAAgB,EAChB,MAAM,EACP,MAAM,kBAAkB,CAAA;AAGzB,UAAU,sBAAsB;IAC9B,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,MAAM,CAAA;CACtB;AAED,qBAAa,iBAAkB,SAAQ,KAAK;IAEjC,UAAU,EAAE,MAAM;IAClB,YAAY,EAAE,OAAO;gBADrB,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,OAAO,EAC5B,OAAO,CAAC,EAAE,MAAM;CAKnB;AAED,qBAAa,eAAe;IASd,OAAO,CAAC,OAAO;IAR3B,OAAO,CAAC,KAAK,CAAC,CAAQ;IACtB,OAAO,CAAC,WAAW,CAAC,CAAM;IAC1B,OAAO,CAAC,MAAM,CAAe;IAE7B,OAAO,CAAC,iBAAiB,CAAmB;IAC5C,OAAO,CAAC,gBAAgB,CAAkB;IAC1C,OAAO,CAAC,eAAe,CAAiB;gBAEpB,OAAO,EAAE,sBAAsB;IAanD;;;;OAIG;IAGH,OAAO,CAAC,cAAc,CAyBrB;IAGD,OAAO,CAAC,iBAAiB,CAqBxB;IAED;;;;OAIG;IAEG,eAAe,CAAC,EAAE,EAAE,EAAE,EAAE;QAAE,E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,EAAE,GAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAO;IAMtD,mBAAmB,CAAC,KAAK,EAAE,wBAAwB;IAQnD,kBAAkB,CAAC,KAAK,EAAE,gBAAgB;IAQ1C,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE;IAMjD,SAAS;IAMT,OAAO,CAAC,EAAE,EAAE,EAAE,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE;CAOrC"}
@@ -5,6 +5,7 @@ const openapi_1 = require("./openapi");
5
5
  const AuthenticationApi_1 = require("./openapi/apis/AuthenticationApi");
6
6
  const VerificationsApi_1 = require("./openapi/apis/VerificationsApi");
7
7
  const SmartLookupsApi_1 = require("./openapi/apis/SmartLookupsApi");
8
+ const FlowsApi_1 = require("./openapi/apis/FlowsApi");
8
9
  class VouchsafeApiError extends Error {
9
10
  constructor(statusCode, responseBody, message) {
10
11
  super(message);
@@ -71,6 +72,7 @@ class VouchsafeClient {
71
72
  this.authenticationApi = new AuthenticationApi_1.AuthenticationApi(this.config);
72
73
  this.verificationsApi = new VerificationsApi_1.VerificationsApi(this.config);
73
74
  this.smartLookupsApi = new SmartLookupsApi_1.SmartLookupsApi(this.config);
75
+ this.flowsApi = new FlowsApi_1.FlowsApi(this.config);
74
76
  }
75
77
  /**
76
78
  * PUBLIC METHODS
@@ -96,6 +98,12 @@ class VouchsafeClient {
96
98
  async searchPostcode({ postcode }) {
97
99
  return this.withErrorHandling(() => this.smartLookupsApi.searchPostcode({ postcode }));
98
100
  }
101
+ async listFlows() {
102
+ return this.withErrorHandling(() => this.withErrorHandling(() => this.flowsApi.listFlows()));
103
+ }
104
+ async getFlow({ id }) {
105
+ return this.withErrorHandling(() => this.withErrorHandling(() => this.flowsApi.getFlow({ id })));
106
+ }
99
107
  }
100
108
  exports.VouchsafeClient = VouchsafeClient;
101
109
  //# sourceMappingURL=VouchsafeClient.js.map
@@ -1 +1 @@
1
-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iB,CAAC,GAAG,EAAE,CACjC,IAAI,CAAC,iBAAiB,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,CAAC,CACxD,CAAA;IACH,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,EAAE,EAAE,EAAkB;QAClC,OAAO,IAAI,CAAC,iBAAiB,CAAC,GAAG,EAAE,CACjC,IAAI,CAAC,iBAAiB,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAC5D,CAAA;IACH,CAAC;CAGF;AAvID,0CAuIC"}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Vouchsafe API docs
3
+ * Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics, as well as [SDKs and libraries](https://help.vouchsafe.id/en/articles/12026847-vouchsafe-sdks-and-libraries) for popular languages.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ * Contact: help@vouchsafe.id
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 { Flow } from '../models/index';
14
+ export interface GetFlowRequest {
15
+ id: string;
16
+ }
17
+ /**
18
+ *
19
+ */
20
+ export declare class FlowsApi extends runtime.BaseAPI {
21
+ /**
22
+ * Get a specific verification flow. Use an ID from one of these flows to request verifications with the [`POST /verifications` endpoint](https://localhost:3000/docs/operations/RequestVerification). > This endpoint supports sandbox mode. [See how sandbox mode works](https://help.vouchsafe.id/en/articles/11979598-how-does-sandbox-mode-work).
23
+ */
24
+ getFlowRaw(requestParameters: GetFlowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Flow>>;
25
+ /**
26
+ * Get a specific verification flow. Use an ID from one of these flows to request verifications with the [`POST /verifications` endpoint](https://localhost:3000/docs/operations/RequestVerification). > This endpoint supports sandbox mode. [See how sandbox mode works](https://help.vouchsafe.id/en/articles/11979598-how-does-sandbox-mode-work).
27
+ */
28
+ getFlow(requestParameters: GetFlowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Flow>;
29
+ /**
30
+ * Get a list of all the currently published verification flows. Use an ID from one of these flows to request verifications with the [`POST /verifications` endpoint](https://localhost:3000/docs/operations/RequestVerification). Referee-specific verification flows cannot be started independently, so are not returned by this endpoint. > This endpoint supports sandbox mode. [See how sandbox mode works](https://help.vouchsafe.id/en/articles/11979598-how-does-sandbox-mode-work).
31
+ */
32
+ listFlowsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Flow>>>;
33
+ /**
34
+ * Get a list of all the currently published verification flows. Use an ID from one of these flows to request verifications with the [`POST /verifications` endpoint](https://localhost:3000/docs/operations/RequestVerification). Referee-specific verification flows cannot be started independently, so are not returned by this endpoint. > This endpoint supports sandbox mode. [See how sandbox mode works](https://help.vouchsafe.id/en/articles/11979598-how-does-sandbox-mode-work).
35
+ */
36
+ listFlows(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Flow>>;
37
+ }
38
+ //# sourceMappingURL=FlowsApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FlowsApi.d.ts","sourceRoot":"","sources":["../../../src/openapi/apis/FlowsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAEV,IAAI,EACL,MAAM,iBAAiB,CAAC;AAQzB,MAAM,WAAW,cAAc;IAC3B,EAAE,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,qBAAa,QAAS,SAAQ,OAAO,CAAC,OAAO;IAEzC;;OAEG;IACG,UAAU,CAAC,iBAAiB,EAAE,cAAc,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAkCnJ;;OAEG;IACG,OAAO,CAAC,iBAAiB,EAAE,cAAc,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC;IAK3H;;OAEG;IACG,YAAY,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;IA0BzH;;OAEG;IACG,SAAS,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;CAKpG"}
@@ -0,0 +1,120 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Vouchsafe API docs
6
+ * Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics, as well as [SDKs and libraries](https://help.vouchsafe.id/en/articles/12026847-vouchsafe-sdks-and-libraries) for popular languages.
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ * Contact: help@vouchsafe.id
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
27
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
28
+ }) : function(o, v) {
29
+ o["default"] = v;
30
+ });
31
+ var __importStar = (this && this.__importStar) || (function () {
32
+ var ownKeys = function(o) {
33
+ ownKeys = Object.getOwnPropertyNames || function (o) {
34
+ var ar = [];
35
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
36
+ return ar;
37
+ };
38
+ return ownKeys(o);
39
+ };
40
+ return function (mod) {
41
+ if (mod && mod.__esModule) return mod;
42
+ var result = {};
43
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
44
+ __setModuleDefault(result, mod);
45
+ return result;
46
+ };
47
+ })();
48
+ Object.defineProperty(exports, "__esModule", { value: true });
49
+ exports.FlowsApi = void 0;
50
+ const runtime = __importStar(require("../runtime"));
51
+ const index_1 = require("../models/index");
52
+ /**
53
+ *
54
+ */
55
+ class FlowsApi extends runtime.BaseAPI {
56
+ /**
57
+ * Get a specific verification flow. Use an ID from one of these flows to request verifications with the [`POST /verifications` endpoint](https://localhost:3000/docs/operations/RequestVerification). > This endpoint supports sandbox mode. [See how sandbox mode works](https://help.vouchsafe.id/en/articles/11979598-how-does-sandbox-mode-work).
58
+ */
59
+ async getFlowRaw(requestParameters, initOverrides) {
60
+ if (requestParameters['id'] == null) {
61
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getFlow().');
62
+ }
63
+ const queryParameters = {};
64
+ const headerParameters = {};
65
+ if (this.configuration && this.configuration.accessToken) {
66
+ const token = this.configuration.accessToken;
67
+ const tokenString = await token("bearerAuth", []);
68
+ if (tokenString) {
69
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
70
+ }
71
+ }
72
+ let urlPath = `/flows/{id}`;
73
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
74
+ const response = await this.request({
75
+ path: urlPath,
76
+ method: 'GET',
77
+ headers: headerParameters,
78
+ query: queryParameters,
79
+ }, initOverrides);
80
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.FlowFromJSON)(jsonValue));
81
+ }
82
+ /**
83
+ * Get a specific verification flow. Use an ID from one of these flows to request verifications with the [`POST /verifications` endpoint](https://localhost:3000/docs/operations/RequestVerification). > This endpoint supports sandbox mode. [See how sandbox mode works](https://help.vouchsafe.id/en/articles/11979598-how-does-sandbox-mode-work).
84
+ */
85
+ async getFlow(requestParameters, initOverrides) {
86
+ const response = await this.getFlowRaw(requestParameters, initOverrides);
87
+ return await response.value();
88
+ }
89
+ /**
90
+ * Get a list of all the currently published verification flows. Use an ID from one of these flows to request verifications with the [`POST /verifications` endpoint](https://localhost:3000/docs/operations/RequestVerification). Referee-specific verification flows cannot be started independently, so are not returned by this endpoint. > This endpoint supports sandbox mode. [See how sandbox mode works](https://help.vouchsafe.id/en/articles/11979598-how-does-sandbox-mode-work).
91
+ */
92
+ async listFlowsRaw(initOverrides) {
93
+ const queryParameters = {};
94
+ const headerParameters = {};
95
+ if (this.configuration && this.configuration.accessToken) {
96
+ const token = this.configuration.accessToken;
97
+ const tokenString = await token("bearerAuth", []);
98
+ if (tokenString) {
99
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
100
+ }
101
+ }
102
+ let urlPath = `/flows`;
103
+ const response = await this.request({
104
+ path: urlPath,
105
+ method: 'GET',
106
+ headers: headerParameters,
107
+ query: queryParameters,
108
+ }, initOverrides);
109
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.FlowFromJSON));
110
+ }
111
+ /**
112
+ * Get a list of all the currently published verification flows. Use an ID from one of these flows to request verifications with the [`POST /verifications` endpoint](https://localhost:3000/docs/operations/RequestVerification). Referee-specific verification flows cannot be started independently, so are not returned by this endpoint. > This endpoint supports sandbox mode. [See how sandbox mode works](https://help.vouchsafe.id/en/articles/11979598-how-does-sandbox-mode-work).
113
+ */
114
+ async listFlows(initOverrides) {
115
+ const response = await this.listFlowsRaw(initOverrides);
116
+ return await response.value();
117
+ }
118
+ }
119
+ exports.FlowsApi = FlowsApi;
120
+ //# sourceMappingURL=FlowsApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FlowsApi.js","sourceRoot":"","sources":["../../../src/openapi/apis/FlowsApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,oDAAsC;AAKtC,2CAKyB;AAMzB;;GAEG;AACH,MAAa,QAAS,SAAQ,OAAO,CAAC,OAAO;IAEzC;;OAEG;IACH,KAAK,CAAC,UAAU,CAAC,iBAAiC,EAAE,aAA0D;QAC1G,IAAI,iBAAiB,CAAC,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC;YAClC,MAAM,IAAI,OAAO,CAAC,aAAa,CAC3B,IAAI,EACJ,uEAAuE,CAC1E,CAAC;QACN,CAAC;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,CAAC;YACvD,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC;YAC7C,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;YAElD,IAAI,WAAW,EAAE,CAA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C;YAChE,CAAC;QACL,CAAC;QAED,IAAI,OAAO,GAAG,QAAQ,CAAC;QAEvB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,oBAAY,CAAC,CAAC,CAAC;IAC7F,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,SAAS,CAAC,aAA0D;QACtE,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;QACxD,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AApFD,4BAoFC"}
@@ -22,11 +22,11 @@ export interface SearchPostcodeRequest {
22
22
  */
23
23
  export declare class SmartLookupsApi extends runtime.BaseAPI {
24
24
  /**
25
- * > This feature is currently experimental, so the only supported check is `Address` via the electoral roll. Other checks coming soon. Run quick [background checks](https://help.vouchsafe.id/en/articles/11075009-how-background-checks-work) on a user\'s details. Provide the user\'s details and the check or checks to run and receive the report. First line of address should be taken from the results returned by the [`GET /postcode` endpoint](https://localhost:3000/docs/operations/SearchPostcode).
25
+ * > This feature is currently experimental, so the only supported check is `Address` via the electoral roll. Other checks coming soon. Run quick [background checks](https://help.vouchsafe.id/en/articles/11075009-how-background-checks-work) on a user\'s details. Provide the user\'s details and the check or checks to run and receive the report. First line of address should be taken from the results returned by the [`GET /postcode` endpoint](https://localhost:3000/docs/operations/SearchPostcode). > This endpoint supports sandbox mode. [See how sandbox mode works](https://help.vouchsafe.id/en/articles/11979598-how-does-sandbox-mode-work).
26
26
  */
27
27
  performSmartLookupRaw(requestParameters: PerformSmartLookupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSmartLookupResponse>>;
28
28
  /**
29
- * > This feature is currently experimental, so the only supported check is `Address` via the electoral roll. Other checks coming soon. Run quick [background checks](https://help.vouchsafe.id/en/articles/11075009-how-background-checks-work) on a user\'s details. Provide the user\'s details and the check or checks to run and receive the report. First line of address should be taken from the results returned by the [`GET /postcode` endpoint](https://localhost:3000/docs/operations/SearchPostcode).
29
+ * > This feature is currently experimental, so the only supported check is `Address` via the electoral roll. Other checks coming soon. Run quick [background checks](https://help.vouchsafe.id/en/articles/11075009-how-background-checks-work) on a user\'s details. Provide the user\'s details and the check or checks to run and receive the report. First line of address should be taken from the results returned by the [`GET /postcode` endpoint](https://localhost:3000/docs/operations/SearchPostcode). > This endpoint supports sandbox mode. [See how sandbox mode works](https://help.vouchsafe.id/en/articles/11979598-how-does-sandbox-mode-work).
30
30
  */
31
31
  performSmartLookup(requestParameters: PerformSmartLookupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSmartLookupResponse>;
32
32
  /**
@@ -54,7 +54,7 @@ const index_1 = require("../models/index");
54
54
  */
55
55
  class SmartLookupsApi extends runtime.BaseAPI {
56
56
  /**
57
- * > This feature is currently experimental, so the only supported check is `Address` via the electoral roll. Other checks coming soon. Run quick [background checks](https://help.vouchsafe.id/en/articles/11075009-how-background-checks-work) on a user\'s details. Provide the user\'s details and the check or checks to run and receive the report. First line of address should be taken from the results returned by the [`GET /postcode` endpoint](https://localhost:3000/docs/operations/SearchPostcode).
57
+ * > This feature is currently experimental, so the only supported check is `Address` via the electoral roll. Other checks coming soon. Run quick [background checks](https://help.vouchsafe.id/en/articles/11075009-how-background-checks-work) on a user\'s details. Provide the user\'s details and the check or checks to run and receive the report. First line of address should be taken from the results returned by the [`GET /postcode` endpoint](https://localhost:3000/docs/operations/SearchPostcode). > This endpoint supports sandbox mode. [See how sandbox mode works](https://help.vouchsafe.id/en/articles/11979598-how-does-sandbox-mode-work).
58
58
  */
59
59
  async performSmartLookupRaw(requestParameters, initOverrides) {
60
60
  if (requestParameters['smartLookupInput'] == null) {
@@ -81,7 +81,7 @@ class SmartLookupsApi extends runtime.BaseAPI {
81
81
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetSmartLookupResponseFromJSON)(jsonValue));
82
82
  }
83
83
  /**
84
- * > This feature is currently experimental, so the only supported check is `Address` via the electoral roll. Other checks coming soon. Run quick [background checks](https://help.vouchsafe.id/en/articles/11075009-how-background-checks-work) on a user\'s details. Provide the user\'s details and the check or checks to run and receive the report. First line of address should be taken from the results returned by the [`GET /postcode` endpoint](https://localhost:3000/docs/operations/SearchPostcode).
84
+ * > This feature is currently experimental, so the only supported check is `Address` via the electoral roll. Other checks coming soon. Run quick [background checks](https://help.vouchsafe.id/en/articles/11075009-how-background-checks-work) on a user\'s details. Provide the user\'s details and the check or checks to run and receive the report. First line of address should be taken from the results returned by the [`GET /postcode` endpoint](https://localhost:3000/docs/operations/SearchPostcode). > This endpoint supports sandbox mode. [See how sandbox mode works](https://help.vouchsafe.id/en/articles/11979598-how-does-sandbox-mode-work).
85
85
  */
86
86
  async performSmartLookup(requestParameters, initOverrides) {
87
87
  const response = await this.performSmartLookupRaw(requestParameters, initOverrides);
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Vouchsafe API docs
3
+ * Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics, as well as [SDKs and libraries](https://help.vouchsafe.id/en/articles/12026847-vouchsafe-sdks-and-libraries) for popular languages.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ * Contact: help@vouchsafe.id
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 { CreateTeamInput, CreateTeamResponse, Team } from '../models/index';
14
+ export interface CreateTeamRequest {
15
+ xPartnerToken: string;
16
+ createTeamInput: CreateTeamInput;
17
+ }
18
+ /**
19
+ *
20
+ */
21
+ export declare class TeamApi extends runtime.BaseAPI {
22
+ /**
23
+ * Create a new team (Partners only). Creates a new team with the specified configuration and admin users. Vouchsafe will respond with: - a unique team ID for tracking - the team name and public-facing name - client credentials to authenticate team API requests - creation timestamp (ISO 8601 format) The provided admin emails will be granted administrative access to manage the team\'s settings and workflows. **Note:** This endpoint requires a valid partner token in the `X-Partner-Token` header.
24
+ */
25
+ createTeamRaw(requestParameters: CreateTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateTeamResponse>>;
26
+ /**
27
+ * Create a new team (Partners only). Creates a new team with the specified configuration and admin users. Vouchsafe will respond with: - a unique team ID for tracking - the team name and public-facing name - client credentials to authenticate team API requests - creation timestamp (ISO 8601 format) The provided admin emails will be granted administrative access to manage the team\'s settings and workflows. **Note:** This endpoint requires a valid partner token in the `X-Partner-Token` header.
28
+ */
29
+ createTeam(requestParameters: CreateTeamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateTeamResponse>;
30
+ /**
31
+ * Get the currently authenticated team. Helpful for testing, especially when managing multiple client IDs and secrets. > This endpoint supports sandbox mode. [See how sandbox mode works](https://help.vouchsafe.id/en/articles/11979598-how-does-sandbox-mode-work).
32
+ */
33
+ getTeamRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Team>>;
34
+ /**
35
+ * Get the currently authenticated team. Helpful for testing, especially when managing multiple client IDs and secrets. > This endpoint supports sandbox mode. [See how sandbox mode works](https://help.vouchsafe.id/en/articles/11979598-how-does-sandbox-mode-work).
36
+ */
37
+ getTeam(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Team>;
38
+ }
39
+ //# sourceMappingURL=TeamApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TeamApi.d.ts","sourceRoot":"","sources":["../../../src/openapi/apis/TeamApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAEV,eAAe,EACf,kBAAkB,EAClB,IAAI,EACL,MAAM,iBAAiB,CAAC;AAYzB,MAAM,WAAW,iBAAiB;IAC9B,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,eAAe,CAAC;CACpC;AAED;;GAEG;AACH,qBAAa,OAAQ,SAAQ,OAAO,CAAC,OAAO;IAExC;;OAEG;IACG,aAAa,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;IAuCvK;;OAEG;IACG,UAAU,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAK/I;;OAEG;IACG,UAAU,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IA0BhH;;OAEG;IACG,OAAO,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC;CAK3F"}
@@ -0,0 +1,120 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Vouchsafe API docs
6
+ * Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics, as well as [SDKs and libraries](https://help.vouchsafe.id/en/articles/12026847-vouchsafe-sdks-and-libraries) for popular languages.
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ * Contact: help@vouchsafe.id
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
27
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
28
+ }) : function(o, v) {
29
+ o["default"] = v;
30
+ });
31
+ var __importStar = (this && this.__importStar) || (function () {
32
+ var ownKeys = function(o) {
33
+ ownKeys = Object.getOwnPropertyNames || function (o) {
34
+ var ar = [];
35
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
36
+ return ar;
37
+ };
38
+ return ownKeys(o);
39
+ };
40
+ return function (mod) {
41
+ if (mod && mod.__esModule) return mod;
42
+ var result = {};
43
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
44
+ __setModuleDefault(result, mod);
45
+ return result;
46
+ };
47
+ })();
48
+ Object.defineProperty(exports, "__esModule", { value: true });
49
+ exports.TeamApi = void 0;
50
+ const runtime = __importStar(require("../runtime"));
51
+ const index_1 = require("../models/index");
52
+ /**
53
+ *
54
+ */
55
+ class TeamApi extends runtime.BaseAPI {
56
+ /**
57
+ * Create a new team (Partners only). Creates a new team with the specified configuration and admin users. Vouchsafe will respond with: - a unique team ID for tracking - the team name and public-facing name - client credentials to authenticate team API requests - creation timestamp (ISO 8601 format) The provided admin emails will be granted administrative access to manage the team\'s settings and workflows. **Note:** This endpoint requires a valid partner token in the `X-Partner-Token` header.
58
+ */
59
+ async createTeamRaw(requestParameters, initOverrides) {
60
+ if (requestParameters['xPartnerToken'] == null) {
61
+ throw new runtime.RequiredError('xPartnerToken', 'Required parameter "xPartnerToken" was null or undefined when calling createTeam().');
62
+ }
63
+ if (requestParameters['createTeamInput'] == null) {
64
+ throw new runtime.RequiredError('createTeamInput', 'Required parameter "createTeamInput" was null or undefined when calling createTeam().');
65
+ }
66
+ const queryParameters = {};
67
+ const headerParameters = {};
68
+ headerParameters['Content-Type'] = 'application/json';
69
+ if (requestParameters['xPartnerToken'] != null) {
70
+ headerParameters['X-Partner-Token'] = String(requestParameters['xPartnerToken']);
71
+ }
72
+ let urlPath = `/team`;
73
+ const response = await this.request({
74
+ path: urlPath,
75
+ method: 'POST',
76
+ headers: headerParameters,
77
+ query: queryParameters,
78
+ body: (0, index_1.CreateTeamInputToJSON)(requestParameters['createTeamInput']),
79
+ }, initOverrides);
80
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateTeamResponseFromJSON)(jsonValue));
81
+ }
82
+ /**
83
+ * Create a new team (Partners only). Creates a new team with the specified configuration and admin users. Vouchsafe will respond with: - a unique team ID for tracking - the team name and public-facing name - client credentials to authenticate team API requests - creation timestamp (ISO 8601 format) The provided admin emails will be granted administrative access to manage the team\'s settings and workflows. **Note:** This endpoint requires a valid partner token in the `X-Partner-Token` header.
84
+ */
85
+ async createTeam(requestParameters, initOverrides) {
86
+ const response = await this.createTeamRaw(requestParameters, initOverrides);
87
+ return await response.value();
88
+ }
89
+ /**
90
+ * Get the currently authenticated team. Helpful for testing, especially when managing multiple client IDs and secrets. > This endpoint supports sandbox mode. [See how sandbox mode works](https://help.vouchsafe.id/en/articles/11979598-how-does-sandbox-mode-work).
91
+ */
92
+ async getTeamRaw(initOverrides) {
93
+ const queryParameters = {};
94
+ const headerParameters = {};
95
+ if (this.configuration && this.configuration.accessToken) {
96
+ const token = this.configuration.accessToken;
97
+ const tokenString = await token("bearerAuth", []);
98
+ if (tokenString) {
99
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
100
+ }
101
+ }
102
+ let urlPath = `/team`;
103
+ const response = await this.request({
104
+ path: urlPath,
105
+ method: 'GET',
106
+ headers: headerParameters,
107
+ query: queryParameters,
108
+ }, initOverrides);
109
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TeamFromJSON)(jsonValue));
110
+ }
111
+ /**
112
+ * Get the currently authenticated team. Helpful for testing, especially when managing multiple client IDs and secrets. > This endpoint supports sandbox mode. [See how sandbox mode works](https://help.vouchsafe.id/en/articles/11979598-how-does-sandbox-mode-work).
113
+ */
114
+ async getTeam(initOverrides) {
115
+ const response = await this.getTeamRaw(initOverrides);
116
+ return await response.value();
117
+ }
118
+ }
119
+ exports.TeamApi = TeamApi;
120
+ //# sourceMappingURL=TeamApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TeamApi.js","sourceRoot":"","sources":["../../../src/openapi/apis/TeamApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,oDAAsC;AAOtC,2CASyB;AAOzB;;GAEG;AACH,MAAa,OAAQ,SAAQ,OAAO,CAAC,OAAO;IAExC;;OAEG;IACH,KAAK,CAAC,aAAa,CAAC,iBAAoC,EAAE,aAA0D;QAChH,IAAI,iBAAiB,CAAC,eAAe,CAAC,IAAI,IAAI,EAAE,CAAC;YAC7C,MAAM,IAAI,OAAO,CAAC,aAAa,CAC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C;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,CAAC;YACvD,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC;YAC7C,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;YAElD,IAAI,WAAW,EAAE,CAAC;gBACd,gBAAgB,CAAC,eAAe,CAAC,GAAG,UAAU,WAAW,EAAE,CAAC;YAChE,CAAC;QACL,CAAC;QAED,IAAI,OAAO,GAAG,OAAO,CAAC;QAEtB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,oBAAY,EAAC,SAAS,CAAC,CAAC,CAAC;IACzF,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAAO,CAAC,aAA0D;QACpE,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;QACtD,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAzFD,0BAyFC"}
@@ -1,4 +1,6 @@
1
1
  export * from './AuthenticationApi';
2
+ export * from './FlowsApi';
2
3
  export * from './SmartLookupsApi';
4
+ export * from './TeamApi';
3
5
  export * from './VerificationsApi';
4
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/openapi/apis/index.ts"],"names":[],"mappings":"AAEA,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/openapi/apis/index.ts"],"names":[],"mappings":"AAEA,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC"}
@@ -17,6 +17,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
19
  __exportStar(require("./AuthenticationApi"), exports);
20
+ __exportStar(require("./FlowsApi"), exports);
20
21
  __exportStar(require("./SmartLookupsApi"), exports);
22
+ __exportStar(require("./TeamApi"), exports);
21
23
  __exportStar(require("./VerificationsApi"), exports);
22
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/openapi/apis/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,sDAAoC;AACpC,oDAAkC;AAClC,qDAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/openapi/apis/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,sDAAoC;AACpC,6CAA2B;AAC3B,oDAAkC;AAClC,4CAA0B;AAC1B,qDAAmC"}
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Vouchsafe API docs
3
+ * Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics, as well as [SDKs and libraries](https://help.vouchsafe.id/en/articles/12026847-vouchsafe-sdks-and-libraries) for popular languages.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ * Contact: help@vouchsafe.id
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 type { FlowTemplate } from './FlowTemplate';
13
+ /**
14
+ * Input for creating a new team
15
+ * @export
16
+ * @interface CreateTeamInput
17
+ */
18
+ export interface CreateTeamInput {
19
+ /**
20
+ * The name of the team.
21
+ * @type {string}
22
+ * @memberof CreateTeamInput
23
+ */
24
+ name: string;
25
+ /**
26
+ * The public name of the team, shown in end-user facing screens and communications. If set, overrides the name.
27
+ * @type {string}
28
+ * @memberof CreateTeamInput
29
+ */
30
+ public_name?: string;
31
+ /**
32
+ * Path to the team's logo image.
33
+ * @type {string}
34
+ * @memberof CreateTeamInput
35
+ */
36
+ logo_url?: string;
37
+ /**
38
+ * Email addresses of users to add as team administrators.
39
+ * @type {Array<string>}
40
+ * @memberof CreateTeamInput
41
+ */
42
+ team_admin_emails: Array<string>;
43
+ /**
44
+ *
45
+ * @type {FlowTemplate}
46
+ * @memberof CreateTeamInput
47
+ */
48
+ flow_template?: FlowTemplate;
49
+ }
50
+ /**
51
+ * Check if a given object implements the CreateTeamInput interface.
52
+ */
53
+ export declare function instanceOfCreateTeamInput(value: object): value is CreateTeamInput;
54
+ export declare function CreateTeamInputFromJSON(json: any): CreateTeamInput;
55
+ export declare function CreateTeamInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateTeamInput;
56
+ export declare function CreateTeamInputToJSON(json: any): CreateTeamInput;
57
+ export declare function CreateTeamInputToJSONTyped(value?: CreateTeamInput | null, ignoreDiscriminator?: boolean): any;
58
+ //# sourceMappingURL=CreateTeamInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateTeamInput.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/CreateTeamInput.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAQnD;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC;;;;OAIG;IACH,aAAa,CAAC,EAAE,YAAY,CAAC;CAChC;AAID;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAIjF;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAElE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CAYrG;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAEhE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAapH"}
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Vouchsafe API docs
6
+ * Vouchsafe offers a REST API to conduct operations programmatically. You can request and manage verifications, as well as perform smart lookups. To use the API, you need a client ID and secret from the Vouchsafe dashboard. [Sign up here](https://app.vouchsafe.id/) if you haven\'t already. We also have a [video guide](https://www.youtube.com/playlist?list=PLx6V6SSTMuF_ZNWBPnysvwmdIwboLViE8) showing the basics, as well as [SDKs and libraries](https://help.vouchsafe.id/en/articles/12026847-vouchsafe-sdks-and-libraries) for popular languages.
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ * Contact: help@vouchsafe.id
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfCreateTeamInput = instanceOfCreateTeamInput;
17
+ exports.CreateTeamInputFromJSON = CreateTeamInputFromJSON;
18
+ exports.CreateTeamInputFromJSONTyped = CreateTeamInputFromJSONTyped;
19
+ exports.CreateTeamInputToJSON = CreateTeamInputToJSON;
20
+ exports.CreateTeamInputToJSONTyped = CreateTeamInputToJSONTyped;
21
+ const FlowTemplate_1 = require("./FlowTemplate");
22
+ /**
23
+ * Check if a given object implements the CreateTeamInput interface.
24
+ */
25
+ function instanceOfCreateTeamInput(value) {
26
+ if (!('name' in value) || value['name'] === undefined)
27
+ return false;
28
+ if (!('team_admin_emails' in value) || value['team_admin_emails'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function CreateTeamInputFromJSON(json) {
33
+ return CreateTeamInputFromJSONTyped(json, false);
34
+ }
35
+ function CreateTeamInputFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'name': json['name'],
41
+ 'public_name': json['public_name'] == null ? undefined : json['public_name'],
42
+ 'logo_url': json['logo_url'] == null ? undefined : json['logo_url'],
43
+ 'team_admin_emails': json['team_admin_emails'],
44
+ 'flow_template': json['flow_template'] == null ? undefined : (0, FlowTemplate_1.FlowTemplateFromJSON)(json['flow_template']),
45
+ };
46
+ }
47
+ function CreateTeamInputToJSON(json) {
48
+ return CreateTeamInputToJSONTyped(json, false);
49
+ }
50
+ function CreateTeamInputToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'name': value['name'],
56
+ 'public_name': value['public_name'],
57
+ 'logo_url': value['logo_url'],
58
+ 'team_admin_emails': value['team_admin_emails'],
59
+ 'flow_template': (0, FlowTemplate_1.FlowTemplateToJSON)(value['flow_template']),
60
+ };
61
+ }
62
+ //# sourceMappingURL=CreateTeamInput.js.map