@polyguard/sdk 1.4.2 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/LICENSE +200 -0
  2. package/README.md +328 -0
  3. package/dist/sdk.esm.js +16 -4
  4. package/dist/sdk.js +16 -4
  5. package/dist/server.esm.js +83 -0
  6. package/package.json +14 -3
  7. package/dist/sdk.global.js +0 -11256
  8. package/scripts/regenerate-client.sh +0 -59
  9. package/src/PolyguardClient.js +0 -25
  10. package/src/PolyguardWebsocketClientImpl.js +0 -183
  11. package/src/__tests__/PolyguardClient.test.js +0 -65
  12. package/src/__tests__/PolyguardWebsocketClientImpl.test.js +0 -574
  13. package/src/__tests__/helpers/fixtures.js +0 -27
  14. package/src/__tests__/helpers/mockWebSocket.js +0 -66
  15. package/src/__tests__/sidebar.test.js +0 -289
  16. package/src/browser.js +0 -9
  17. package/src/generated/.babelrc +0 -33
  18. package/src/generated/.openapi-generator/FILES +0 -63
  19. package/src/generated/.openapi-generator/VERSION +0 -1
  20. package/src/generated/.openapi-generator-ignore +0 -23
  21. package/src/generated/.travis.yml +0 -5
  22. package/src/generated/README.md +0 -211
  23. package/src/generated/docs/ApiControllersPslStirCallRequest.md +0 -18
  24. package/src/generated/docs/ApiModelsApiCallModelsCallRequest.md +0 -12
  25. package/src/generated/docs/AppId.md +0 -8
  26. package/src/generated/docs/AppleApi.md +0 -88
  27. package/src/generated/docs/AuthApi.md +0 -1464
  28. package/src/generated/docs/BlockingApi.md +0 -208
  29. package/src/generated/docs/CallsApi.md +0 -140
  30. package/src/generated/docs/Certainty.md +0 -8
  31. package/src/generated/docs/CreateLinkRequest.md +0 -12
  32. package/src/generated/docs/DefaultApi.md +0 -128
  33. package/src/generated/docs/HTTPValidationError.md +0 -9
  34. package/src/generated/docs/InviteRequestModel.md +0 -10
  35. package/src/generated/docs/JWTRequest.md +0 -11
  36. package/src/generated/docs/LinksApi.md +0 -162
  37. package/src/generated/docs/NumberVerification.md +0 -10
  38. package/src/generated/docs/SdkApi.md +0 -54
  39. package/src/generated/docs/SecureLinksApi.md +0 -614
  40. package/src/generated/docs/StartAttestationRequest.md +0 -9
  41. package/src/generated/docs/StartMeetingRequest.md +0 -9
  42. package/src/generated/docs/StirApi.md +0 -52
  43. package/src/generated/docs/TwilioApi.md +0 -138
  44. package/src/generated/docs/UsersApi.md +0 -362
  45. package/src/generated/docs/ValidationError.md +0 -11
  46. package/src/generated/docs/ValidationErrorLocInner.md +0 -8
  47. package/src/generated/docs/VeriffApi.md +0 -188
  48. package/src/generated/docs/VeriffSessionRequest.md +0 -10
  49. package/src/generated/docs/VerifyRequest.md +0 -10
  50. package/src/generated/docs/WellKnownApi.md +0 -128
  51. package/src/generated/docs/ZoomApi.md +0 -848
  52. package/src/generated/git_push.sh +0 -57
  53. package/src/generated/mocha.opts +0 -1
  54. package/src/generated/package.json +0 -46
  55. package/src/generated/src/ApiClient.js +0 -677
  56. package/src/generated/src/api/AppleApi.js +0 -109
  57. package/src/generated/src/api/AuthApi.js +0 -1512
  58. package/src/generated/src/api/BlockingApi.js +0 -217
  59. package/src/generated/src/api/CallsApi.js +0 -164
  60. package/src/generated/src/api/DefaultApi.js +0 -145
  61. package/src/generated/src/api/LinksApi.js +0 -195
  62. package/src/generated/src/api/SdkApi.js +0 -81
  63. package/src/generated/src/api/SecureLinksApi.js +0 -670
  64. package/src/generated/src/api/StirApi.js +0 -80
  65. package/src/generated/src/api/TwilioApi.js +0 -158
  66. package/src/generated/src/api/UsersApi.js +0 -375
  67. package/src/generated/src/api/VeriffApi.js +0 -209
  68. package/src/generated/src/api/WellKnownApi.js +0 -145
  69. package/src/generated/src/api/ZoomApi.js +0 -823
  70. package/src/generated/src/index.js +0 -244
  71. package/src/generated/src/model/ApiControllersPslStirCallRequest.js +0 -211
  72. package/src/generated/src/model/ApiModelsApiCallModelsCallRequest.js +0 -119
  73. package/src/generated/src/model/CreateLinkRequest.js +0 -131
  74. package/src/generated/src/model/HTTPValidationError.js +0 -94
  75. package/src/generated/src/model/InviteRequestModel.js +0 -109
  76. package/src/generated/src/model/JWTRequest.js +0 -113
  77. package/src/generated/src/model/NumberVerification.js +0 -107
  78. package/src/generated/src/model/StartAttestationRequest.js +0 -95
  79. package/src/generated/src/model/StartMeetingRequest.js +0 -95
  80. package/src/generated/src/model/ValidationError.js +0 -130
  81. package/src/generated/src/model/VeriffSessionRequest.js +0 -107
  82. package/src/generated/src/model/VerifyRequest.js +0 -109
  83. package/src/generated/test/api/AppleApi.spec.js +0 -73
  84. package/src/generated/test/api/AuthApi.spec.js +0 -353
  85. package/src/generated/test/api/BlockingApi.spec.js +0 -103
  86. package/src/generated/test/api/CallsApi.spec.js +0 -83
  87. package/src/generated/test/api/DefaultApi.spec.js +0 -73
  88. package/src/generated/test/api/LinksApi.spec.js +0 -83
  89. package/src/generated/test/api/SdkApi.spec.js +0 -63
  90. package/src/generated/test/api/SecureLinksApi.spec.js +0 -143
  91. package/src/generated/test/api/StirApi.spec.js +0 -63
  92. package/src/generated/test/api/TwilioApi.spec.js +0 -83
  93. package/src/generated/test/api/UsersApi.spec.js +0 -133
  94. package/src/generated/test/api/VeriffApi.spec.js +0 -93
  95. package/src/generated/test/api/WellKnownApi.spec.js +0 -83
  96. package/src/generated/test/api/ZoomApi.spec.js +0 -213
  97. package/src/generated/test/model/ApiControllersPslStirCallRequest.spec.js +0 -119
  98. package/src/generated/test/model/ApiModelsApiCallModelsCallRequest.spec.js +0 -83
  99. package/src/generated/test/model/AppId.spec.js +0 -59
  100. package/src/generated/test/model/Certainty.spec.js +0 -59
  101. package/src/generated/test/model/CreateLinkRequest.spec.js +0 -83
  102. package/src/generated/test/model/HTTPValidationError.spec.js +0 -65
  103. package/src/generated/test/model/InviteRequestModel.spec.js +0 -71
  104. package/src/generated/test/model/JWTRequest.spec.js +0 -77
  105. package/src/generated/test/model/NumberVerification.spec.js +0 -71
  106. package/src/generated/test/model/StartAttestationRequest.spec.js +0 -65
  107. package/src/generated/test/model/StartMeetingRequest.spec.js +0 -65
  108. package/src/generated/test/model/ValidationError.spec.js +0 -77
  109. package/src/generated/test/model/ValidationErrorLocInner.spec.js +0 -59
  110. package/src/generated/test/model/VeriffSessionRequest.spec.js +0 -71
  111. package/src/generated/test/model/VerifyRequest.spec.js +0 -71
  112. package/src/index.js +0 -16
  113. package/src/messageHandler.js +0 -121
  114. package/src/ticketService.js +0 -24
  115. package/src/ui.js +0 -88
  116. package/vitest.config.js +0 -10
@@ -1,289 +0,0 @@
1
- import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
2
- import { buildFakeJwt, DEFAULT_PARAMS, mockTicketResponse } from './helpers/fixtures.js';
3
- import { MockReconnectingWebSocket } from './helpers/mockWebSocket.js';
4
-
5
- // ---- Module mocks ----
6
-
7
- const { MockApiClient, generatedMock, mockQRCode } = vi.hoisted(() => {
8
- class MockApiClient {
9
- constructor() {
10
- this.basePath = '';
11
- this.authentications = { bearerAuth: { apiKey: null } };
12
- }
13
- }
14
-
15
- const generatedMock = { ApiClient: MockApiClient };
16
- const apiClassNames = [
17
- 'BlockingApi', 'CallsApi', 'DefaultApi', 'LinksApi', 'SdkApi',
18
- 'SecureLinksApi', 'StirApi', 'TwilioApi', 'UsersApi', 'VeriffApi',
19
- 'WellKnownApi', 'ZoomApi',
20
- ];
21
- for (const name of apiClassNames) {
22
- generatedMock[name] = class {
23
- constructor(apiClient) { this._apiClient = apiClient; }
24
- };
25
- }
26
-
27
- const mockQRCode = {
28
- toString: null,
29
- };
30
-
31
- return { MockApiClient, generatedMock, mockQRCode };
32
- });
33
-
34
- vi.mock('../generated/src', () => generatedMock);
35
-
36
- vi.mock('reconnecting-websocket', async () => {
37
- const { MockReconnectingWebSocket } = await import('./helpers/mockWebSocket.js');
38
- return { default: MockReconnectingWebSocket };
39
- });
40
-
41
- vi.mock('qrcode', () => ({
42
- default: mockQRCode,
43
- }));
44
-
45
- const { PolyguardWebsocketClientImpl } = await import('../PolyguardWebsocketClientImpl.js');
46
-
47
- // ---- Helpers ----
48
-
49
- async function flushMicrotasks() {
50
- await new Promise(resolve => setTimeout(resolve, 0));
51
- }
52
-
53
- function stubFetch(ticket = 'test-ticket-123', ok = true) {
54
- const mock = vi.fn().mockResolvedValue(mockTicketResponse(ticket, ok));
55
- vi.stubGlobal('fetch', mock);
56
- return mock;
57
- }
58
-
59
- function setProtocol(protocol) {
60
- Object.defineProperty(window, 'location', {
61
- value: { protocol, assign: vi.fn(), href: '' },
62
- writable: true,
63
- configurable: true,
64
- });
65
- }
66
-
67
- function setUserAgent(ua) {
68
- Object.defineProperty(navigator, 'userAgent', {
69
- value: ua,
70
- writable: true,
71
- configurable: true,
72
- });
73
- }
74
-
75
- async function startVerifyAndGetWs(client, target = null, rawJwt = false) {
76
- const promise = client.verify(target, rawJwt);
77
- await flushMicrotasks();
78
- const ws = MockReconnectingWebSocket.latest();
79
- return { promise, ws };
80
- }
81
-
82
- function setCookie(name, value) {
83
- Object.defineProperty(document, 'cookie', {
84
- value: `${name}=${value}; other=stuff`,
85
- writable: true,
86
- configurable: true,
87
- });
88
- }
89
-
90
- function clearCookies() {
91
- Object.defineProperty(document, 'cookie', {
92
- value: '',
93
- writable: true,
94
- configurable: true,
95
- });
96
- }
97
-
98
- // ---- Tests ----
99
-
100
- describe('sidebarUrl feature', () => {
101
- beforeEach(() => {
102
- vi.clearAllMocks();
103
- MockReconnectingWebSocket.reset();
104
- setProtocol('https:');
105
- setUserAgent('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)');
106
- stubFetch();
107
- mockQRCode.toString = vi.fn((data, opts, cb) => cb(null, '<svg>mock-qr</svg>'));
108
- clearCookies();
109
- });
110
-
111
- afterEach(() => {
112
- vi.restoreAllMocks();
113
- document.body.innerHTML = '';
114
- });
115
-
116
- describe('constructor', () => {
117
- it('stores sidebarUrl when provided', () => {
118
- const client = new PolyguardWebsocketClientImpl({
119
- ...DEFAULT_PARAMS,
120
- sidebarUrl: 'https://teams.polyguard.ai/ms-teams/sidebar-standalone',
121
- });
122
- expect(client.sidebarUrl).toBe('https://teams.polyguard.ai/ms-teams/sidebar-standalone');
123
- });
124
-
125
- it('sidebarUrl is undefined when not provided', () => {
126
- const client = new PolyguardWebsocketClientImpl(DEFAULT_PARAMS);
127
- expect(client.sidebarUrl).toBeUndefined();
128
- });
129
- });
130
-
131
- describe('without sidebarUrl - existing behavior unchanged', () => {
132
- it('jwt with redirect_url resolves normally', async () => {
133
- const client = new PolyguardWebsocketClientImpl(DEFAULT_PARAMS);
134
- const fakeJwt = buildFakeJwt({ redirect_url: 'https://teams.microsoft.com/meet/123' });
135
- const { promise, ws } = await startVerifyAndGetWs(client);
136
- ws.simulateMessage({ jwt: fakeJwt });
137
- const result = await promise;
138
- expect(result).toBe(fakeJwt);
139
- });
140
-
141
- it('does not call window.open', async () => {
142
- const openSpy = vi.fn();
143
- vi.stubGlobal('open', openSpy);
144
- const client = new PolyguardWebsocketClientImpl(DEFAULT_PARAMS);
145
- const fakeJwt = buildFakeJwt({ redirect_url: 'https://teams.microsoft.com/meet/123' });
146
- const { promise, ws } = await startVerifyAndGetWs(client);
147
- ws.simulateMessage({ jwt: fakeJwt });
148
- await promise;
149
- expect(openSpy).not.toHaveBeenCalled();
150
- });
151
- });
152
-
153
- describe('with sidebarUrl and pg_msft_session cookie (authenticated user)', () => {
154
- it('auto-redirects without showing a button', async () => {
155
- setCookie('pg_msft_session', '1');
156
- const client = new PolyguardWebsocketClientImpl({
157
- ...DEFAULT_PARAMS,
158
- sidebarUrl: 'https://teams.polyguard.ai/ms-teams/sidebar-standalone',
159
- link_uuid: 'link-abc',
160
- });
161
- document.body.innerHTML = '<div id="test-target"></div>';
162
- const jwtClaims = { redirect_url: 'https://teams.microsoft.com/meet/123' };
163
- const { promise, ws } = await startVerifyAndGetWs(client, 'test-target');
164
- ws.simulateMessage({ jwt: jwtClaims });
165
- await promise;
166
- expect(window.location.assign).toHaveBeenCalledWith('https://teams.microsoft.com/meet/123');
167
- });
168
-
169
- it('does not render a join button', async () => {
170
- setCookie('pg_msft_session', '1');
171
- const client = new PolyguardWebsocketClientImpl({
172
- ...DEFAULT_PARAMS,
173
- sidebarUrl: 'https://teams.polyguard.ai/ms-teams/sidebar-standalone',
174
- link_uuid: 'link-abc',
175
- });
176
- document.body.innerHTML = '<div id="test-target"></div>';
177
- const jwtClaims = { redirect_url: 'https://teams.microsoft.com/meet/123' };
178
- const { promise, ws } = await startVerifyAndGetWs(client, 'test-target');
179
- ws.simulateMessage({ jwt: jwtClaims });
180
- await promise;
181
- expect(document.querySelector('#polyguard-join-meeting')).toBeNull();
182
- });
183
- });
184
-
185
- describe('with sidebarUrl and NO cookie (anonymous user)', () => {
186
- it('renders a join button instead of auto-redirecting', async () => {
187
- clearCookies();
188
- const client = new PolyguardWebsocketClientImpl({
189
- ...DEFAULT_PARAMS,
190
- sidebarUrl: 'https://teams.polyguard.ai/ms-teams/sidebar-standalone',
191
- link_uuid: 'link-abc',
192
- });
193
- document.body.innerHTML = '<div id="test-target"></div>';
194
- const jwtClaims = { redirect_url: 'https://teams.microsoft.com/meet/123' };
195
- const { promise, ws } = await startVerifyAndGetWs(client, 'test-target');
196
- ws.simulateMessage({ jwt: jwtClaims });
197
- // Should not have redirected yet
198
- expect(window.location.assign).not.toHaveBeenCalled();
199
- // Should show join button
200
- const btn = document.querySelector('#polyguard-join-meeting');
201
- expect(btn).not.toBeNull();
202
- // Resolve by clicking the button
203
- btn.click();
204
- await promise;
205
- });
206
-
207
- it('clicking join button opens sidebar popup', async () => {
208
- clearCookies();
209
- const openSpy = vi.fn().mockReturnValue({});
210
- vi.stubGlobal('open', openSpy);
211
- const client = new PolyguardWebsocketClientImpl({
212
- ...DEFAULT_PARAMS,
213
- sidebarUrl: 'https://teams.polyguard.ai/ms-teams/sidebar-standalone',
214
- link_uuid: 'link-abc',
215
- });
216
- document.body.innerHTML = '<div id="test-target"></div>';
217
- const jwtClaims = { redirect_url: 'https://teams.microsoft.com/meet/123' };
218
- const { promise, ws } = await startVerifyAndGetWs(client, 'test-target');
219
- ws.simulateMessage({ jwt: jwtClaims });
220
- const btn = document.querySelector('#polyguard-join-meeting');
221
- btn.click();
222
- await promise;
223
- expect(openSpy).toHaveBeenCalledWith(
224
- 'https://teams.polyguard.ai/ms-teams/sidebar-standalone?linkUuid=link-abc',
225
- 'polyguard-sidebar',
226
- expect.stringContaining('width=320')
227
- );
228
- });
229
-
230
- it('clicking join button redirects to meeting', async () => {
231
- clearCookies();
232
- vi.stubGlobal('open', vi.fn().mockReturnValue({}));
233
- const client = new PolyguardWebsocketClientImpl({
234
- ...DEFAULT_PARAMS,
235
- sidebarUrl: 'https://teams.polyguard.ai/ms-teams/sidebar-standalone',
236
- link_uuid: 'link-abc',
237
- });
238
- document.body.innerHTML = '<div id="test-target"></div>';
239
- const jwtClaims = { redirect_url: 'https://teams.microsoft.com/meet/123' };
240
- const { promise, ws } = await startVerifyAndGetWs(client, 'test-target');
241
- ws.simulateMessage({ jwt: jwtClaims });
242
- document.querySelector('#polyguard-join-meeting').click();
243
- await promise;
244
- expect(window.location.assign).toHaveBeenCalledWith('https://teams.microsoft.com/meet/123');
245
- });
246
-
247
- it('button survives a late WebSocket close event (race regression)', async () => {
248
- // Real browsers dispatch the 'close' event asynchronously after ws.close(),
249
- // so it lands after the synchronous button append. If the close listener's
250
- // cleanup() runs in that window, it wipes the qrDiv — and the button with it.
251
- // markClosed() in the message handler must defuse the close listener.
252
- clearCookies();
253
- vi.stubGlobal('open', vi.fn().mockReturnValue({}));
254
- const client = new PolyguardWebsocketClientImpl({
255
- ...DEFAULT_PARAMS,
256
- sidebarUrl: 'https://teams.polyguard.ai/ms-teams/sidebar-standalone',
257
- link_uuid: 'link-abc',
258
- });
259
- document.body.innerHTML = '<div id="test-target"></div>';
260
- const jwtClaims = { redirect_url: 'https://teams.microsoft.com/meet/123' };
261
- const { promise, ws } = await startVerifyAndGetWs(client, 'test-target');
262
- ws.simulateMessage({ jwt: jwtClaims });
263
- expect(document.querySelector('#polyguard-join-meeting')).not.toBeNull();
264
- // Mimic a real browser dispatching close on the next tick (after the message handler returned).
265
- ws.simulateClose();
266
- expect(document.querySelector('#polyguard-join-meeting')).not.toBeNull();
267
- document.querySelector('#polyguard-join-meeting').click();
268
- await promise;
269
- });
270
- });
271
-
272
- describe('with sidebarUrl but no redirect_url in JWT (non-meeting links)', () => {
273
- it('resolves normally without button or redirect', async () => {
274
- clearCookies();
275
- const client = new PolyguardWebsocketClientImpl({
276
- ...DEFAULT_PARAMS,
277
- sidebarUrl: 'https://teams.polyguard.ai/ms-teams/sidebar-standalone',
278
- link_uuid: 'link-abc',
279
- });
280
- const jwtClaims = { confirmation_code: 'ABC123' };
281
- const { promise, ws } = await startVerifyAndGetWs(client);
282
- // No redirect_url in the JWT claims
283
- ws.simulateMessage({ jwt: jwtClaims });
284
- const result = await promise;
285
- expect(result).toEqual(jwtClaims);
286
- expect(window.location.assign).not.toHaveBeenCalled();
287
- });
288
- });
289
- });
package/src/browser.js DELETED
@@ -1,9 +0,0 @@
1
- /**
2
- * Browser/script-tag entry point. Exposes a single global (Polyguard) when built as IIFE.
3
- * Use this build via: <script src="https://cdn.polyguard.ai/sdk/latest/sdk.js"></script>
4
- * Named exports become window.Polyguard.Client, window.Polyguard.AuthApi, etc.
5
- */
6
- import { PolyguardClient } from './PolyguardClient.js';
7
-
8
- export { PolyguardClient as Client };
9
- export * from './generated/src/index.js';
@@ -1,33 +0,0 @@
1
- {
2
- "presets": [
3
- "@babel/preset-env"
4
- ],
5
- "plugins": [
6
- "@babel/plugin-syntax-dynamic-import",
7
- "@babel/plugin-syntax-import-meta",
8
- "@babel/plugin-proposal-class-properties",
9
- "@babel/plugin-proposal-json-strings",
10
- [
11
- "@babel/plugin-proposal-decorators",
12
- {
13
- "legacy": true
14
- }
15
- ],
16
- "@babel/plugin-proposal-function-sent",
17
- "@babel/plugin-proposal-export-namespace-from",
18
- "@babel/plugin-proposal-numeric-separator",
19
- "@babel/plugin-proposal-throw-expressions",
20
- "@babel/plugin-proposal-export-default-from",
21
- "@babel/plugin-proposal-logical-assignment-operators",
22
- "@babel/plugin-proposal-optional-chaining",
23
- [
24
- "@babel/plugin-proposal-pipeline-operator",
25
- {
26
- "proposal": "minimal"
27
- }
28
- ],
29
- "@babel/plugin-proposal-nullish-coalescing-operator",
30
- "@babel/plugin-proposal-do-expressions",
31
- "@babel/plugin-proposal-function-bind"
32
- ]
33
- }
@@ -1,63 +0,0 @@
1
- .babelrc
2
- .gitignore
3
- .travis.yml
4
- README.md
5
- docs/ApiControllersPslStirCallRequest.md
6
- docs/ApiModelsApiCallModelsCallRequest.md
7
- docs/AppId.md
8
- docs/BlockingApi.md
9
- docs/CallsApi.md
10
- docs/Certainty.md
11
- docs/CreateLinkRequest.md
12
- docs/DefaultApi.md
13
- docs/HTTPValidationError.md
14
- docs/InviteRequestModel.md
15
- docs/JWTRequest.md
16
- docs/LinksApi.md
17
- docs/NumberVerification.md
18
- docs/SdkApi.md
19
- docs/SecureLinksApi.md
20
- docs/StartAttestationRequest.md
21
- docs/StartMeetingRequest.md
22
- docs/StirApi.md
23
- docs/TwilioApi.md
24
- docs/UsersApi.md
25
- docs/ValidationError.md
26
- docs/ValidationErrorLocInner.md
27
- docs/VeriffApi.md
28
- docs/VeriffSessionRequest.md
29
- docs/VerifyRequest.md
30
- docs/WellKnownApi.md
31
- docs/ZoomApi.md
32
- git_push.sh
33
- mocha.opts
34
- package.json
35
- src/ApiClient.js
36
- src/api/BlockingApi.js
37
- src/api/CallsApi.js
38
- src/api/DefaultApi.js
39
- src/api/LinksApi.js
40
- src/api/SdkApi.js
41
- src/api/SecureLinksApi.js
42
- src/api/StirApi.js
43
- src/api/TwilioApi.js
44
- src/api/UsersApi.js
45
- src/api/VeriffApi.js
46
- src/api/WellKnownApi.js
47
- src/api/ZoomApi.js
48
- src/index.js
49
- src/model/ApiControllersPslStirCallRequest.js
50
- src/model/ApiModelsApiCallModelsCallRequest.js
51
- src/model/AppId.js
52
- src/model/Certainty.js
53
- src/model/CreateLinkRequest.js
54
- src/model/HTTPValidationError.js
55
- src/model/InviteRequestModel.js
56
- src/model/JWTRequest.js
57
- src/model/NumberVerification.js
58
- src/model/StartAttestationRequest.js
59
- src/model/StartMeetingRequest.js
60
- src/model/ValidationError.js
61
- src/model/ValidationErrorLocInner.js
62
- src/model/VeriffSessionRequest.js
63
- src/model/VerifyRequest.js
@@ -1 +0,0 @@
1
- 7.14.0-SNAPSHOT
@@ -1,23 +0,0 @@
1
- # OpenAPI Generator Ignore
2
- # Generated by openapi-generator https://github.com/openapitools/openapi-generator
3
-
4
- # Use this file to prevent files from being overwritten by the generator.
5
- # The patterns follow closely to .gitignore or .dockerignore.
6
-
7
- # As an example, the C# client generator defines ApiClient.cs.
8
- # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9
- #ApiClient.cs
10
-
11
- # You can match any string of characters against a directory, file or extension with a single asterisk (*):
12
- #foo/*/qux
13
- # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14
-
15
- # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16
- #foo/**/qux
17
- # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18
-
19
- # You can also negate patterns with an exclamation (!).
20
- # For example, you can ignore all files in a docs folder with the file extension .md:
21
- #docs/*.md
22
- # Then explicitly reverse the ignore rule for a single file:
23
- #!docs/README.md
@@ -1,5 +0,0 @@
1
- language: node_js
2
- cache: npm
3
- node_js:
4
- - "6"
5
- - "6.1"
@@ -1,211 +0,0 @@
1
- # fast_api
2
-
3
- FastApi - JavaScript client for fast_api
4
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
- This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
6
-
7
- - API version: 0.1.0
8
- - Package version: 0.1.0
9
- - Generator version: 7.14.0-SNAPSHOT
10
- - Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
11
-
12
- ## Installation
13
-
14
- ### For [Node.js](https://nodejs.org/)
15
-
16
- #### npm
17
-
18
- To publish the library as a [npm](https://www.npmjs.com/), please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.com/getting-started/publishing-npm-packages).
19
-
20
- Then install it via:
21
-
22
- ```shell
23
- npm install fast_api --save
24
- ```
25
-
26
- Finally, you need to build the module:
27
-
28
- ```shell
29
- npm run build
30
- ```
31
-
32
- ##### Local development
33
-
34
- To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing `package.json` (and this README). Let's call this `JAVASCRIPT_CLIENT_DIR`. Then run:
35
-
36
- ```shell
37
- npm install
38
- ```
39
-
40
- Next, [link](https://docs.npmjs.com/cli/link) it globally in npm with the following, also from `JAVASCRIPT_CLIENT_DIR`:
41
-
42
- ```shell
43
- npm link
44
- ```
45
-
46
- To use the link you just defined in your project, switch to the directory you want to use your fast_api from, and run:
47
-
48
- ```shell
49
- npm link /path/to/<JAVASCRIPT_CLIENT_DIR>
50
- ```
51
-
52
- Finally, you need to build the module:
53
-
54
- ```shell
55
- npm run build
56
- ```
57
-
58
- #### git
59
-
60
- If the library is hosted at a git repository, e.g.https://github.com/GIT_USER_ID/GIT_REPO_ID
61
- then install it via:
62
-
63
- ```shell
64
- npm install GIT_USER_ID/GIT_REPO_ID --save
65
- ```
66
-
67
- ### For browser
68
-
69
- The library also works in the browser environment via npm and [browserify](http://browserify.org/). After following
70
- the above steps with Node.js and installing browserify with `npm install -g browserify`,
71
- perform the following (assuming *main.js* is your entry file):
72
-
73
- ```shell
74
- browserify main.js > bundle.js
75
- ```
76
-
77
- Then include *bundle.js* in the HTML pages.
78
-
79
- ### Webpack Configuration
80
-
81
- Using Webpack you may encounter the following error: "Module not found: Error:
82
- Cannot resolve module", most certainly you should disable AMD loader. Add/merge
83
- the following section to your webpack config:
84
-
85
- ```javascript
86
- module: {
87
- rules: [
88
- {
89
- parser: {
90
- amd: false
91
- }
92
- }
93
- ]
94
- }
95
- ```
96
-
97
- ## Getting Started
98
-
99
- Please follow the [installation](#installation) instruction and execute the following JS code:
100
-
101
- ```javascript
102
- var FastApi = require('fast_api');
103
-
104
-
105
- var api = new FastApi.BlockingApi()
106
- var callback = function(error, data, response) {
107
- if (error) {
108
- console.error(error);
109
- } else {
110
- console.log('API called successfully. Returned data: ' + data);
111
- }
112
- };
113
- api.ftcDeleteBlockingFtcDelete(callback);
114
-
115
- ```
116
-
117
- ## Documentation for API Endpoints
118
-
119
- All URIs are relative to *http://localhost*
120
-
121
- Class | Method | HTTP request | Description
122
- ------------ | ------------- | ------------- | -------------
123
- *FastApi.BlockingApi* | [**ftcDeleteBlockingFtcDelete**](docs/BlockingApi.md#ftcDeleteBlockingFtcDelete) | **DELETE** /blocking/ftc | Ftc Delete
124
- *FastApi.BlockingApi* | [**ftcPullBlockingFtcpullPost**](docs/BlockingApi.md#ftcPullBlockingFtcpullPost) | **POST** /blocking/ftcpull | Ftc Pull
125
- *FastApi.BlockingApi* | [**fullReportBlockingFullreportGet**](docs/BlockingApi.md#fullReportBlockingFullreportGet) | **GET** /blocking/fullreport | Full Report
126
- *FastApi.BlockingApi* | [**fullReportBlockingFullreportPost**](docs/BlockingApi.md#fullReportBlockingFullreportPost) | **POST** /blocking/fullreport | Full Report
127
- *FastApi.BlockingApi* | [**fullReportHeadBlockingFullreportHead**](docs/BlockingApi.md#fullReportHeadBlockingFullreportHead) | **HEAD** /blocking/fullreport | Full Report Head
128
- *FastApi.CallsApi* | [**cancelCallCancelCallCallIdPost**](docs/CallsApi.md#cancelCallCancelCallCallIdPost) | **POST** /cancel_call/{call_id} | Cancel Call
129
- *FastApi.CallsApi* | [**joinCallJoinCallCallIdPost**](docs/CallsApi.md#joinCallJoinCallCallIdPost) | **POST** /join_call/{call_id} | Join Call
130
- *FastApi.CallsApi* | [**startCallStartCallPost**](docs/CallsApi.md#startCallStartCallPost) | **POST** /start_call/ | Start Call
131
- *FastApi.DefaultApi* | [**getApplicationsApplicationsGet**](docs/DefaultApi.md#getApplicationsApplicationsGet) | **GET** /applications | Get Applications
132
- *FastApi.DefaultApi* | [**rootGet**](docs/DefaultApi.md#rootGet) | **GET** / | Root
133
- *FastApi.DefaultApi* | [**rootHealthGet**](docs/DefaultApi.md#rootHealthGet) | **GET** /health | Root
134
- *FastApi.LinksApi* | [**pgCreateLinkV2AppIdPut**](docs/LinksApi.md#pgCreateLinkV2AppIdPut) | **PUT** /v2/{app_id} | Pg Create Link
135
- *FastApi.LinksApi* | [**pgDeleteLinkV2AppIdLinkUuidDelete**](docs/LinksApi.md#pgDeleteLinkV2AppIdLinkUuidDelete) | **DELETE** /v2/{app_id}/{link_uuid} | Pg Delete Link
136
- *FastApi.LinksApi* | [**pgListMeetingLinksV2ListlinksAccountIdGet**](docs/LinksApi.md#pgListMeetingLinksV2ListlinksAccountIdGet) | **GET** /v2/listlinks/{account_id} | Pg List Meeting Links
137
- *FastApi.SdkApi* | [**createTicketV2TicketAppIdPost**](docs/SdkApi.md#createTicketV2TicketAppIdPost) | **POST** /v2/ticket/{app_id} | Create Ticket
138
- *FastApi.SecureLinksApi* | [**getRedirectInfoV2PreviewAppIdLinkUuidGet**](docs/SecureLinksApi.md#getRedirectInfoV2PreviewAppIdLinkUuidGet) | **GET** /v2/preview/{app_id}/{link_uuid} | Get Redirect Info
139
- *FastApi.SecureLinksApi* | [**getRedirectInfoV2PreviewFormatTypeAppIdLinkUuidGet**](docs/SecureLinksApi.md#getRedirectInfoV2PreviewFormatTypeAppIdLinkUuidGet) | **GET** /v2/preview/{format_type}/{app_id}/{link_uuid} | Get Redirect Info
140
- *FastApi.SecureLinksApi* | [**getRedirectInfoV2PreviewLinkUuidGet**](docs/SecureLinksApi.md#getRedirectInfoV2PreviewLinkUuidGet) | **GET** /v2/preview/{link_uuid} | Get Redirect Info
141
- *FastApi.SecureLinksApi* | [**getSvgResponseV2ScanAppIdLinkUuidGet**](docs/SecureLinksApi.md#getSvgResponseV2ScanAppIdLinkUuidGet) | **GET** /v2/scan/{app_id}/{link_uuid} | Get Svg Response
142
- *FastApi.SecureLinksApi* | [**getSvgResponseV2ScanFormatTypeAppIdLinkUuidGet**](docs/SecureLinksApi.md#getSvgResponseV2ScanFormatTypeAppIdLinkUuidGet) | **GET** /v2/scan/{format_type}/{app_id}/{link_uuid} | Get Svg Response
143
- *FastApi.SecureLinksApi* | [**pgCompleteRedirectV2RedirectAppIdLinkUuidPost**](docs/SecureLinksApi.md#pgCompleteRedirectV2RedirectAppIdLinkUuidPost) | **POST** /v2/redirect/{app_id}/{link_uuid} | Pg Complete Redirect
144
- *FastApi.SecureLinksApi* | [**pgCompleteRedirectV2RedirectFormatTypeAppIdLinkUuidPost**](docs/SecureLinksApi.md#pgCompleteRedirectV2RedirectFormatTypeAppIdLinkUuidPost) | **POST** /v2/redirect/{format_type}/{app_id}/{link_uuid} | Pg Complete Redirect
145
- *FastApi.SecureLinksApi* | [**pgCompleteRedirectV2RedirectLinkUuidPost**](docs/SecureLinksApi.md#pgCompleteRedirectV2RedirectLinkUuidPost) | **POST** /v2/redirect/{link_uuid} | Pg Complete Redirect
146
- *FastApi.SecureLinksApi* | [**pgLoginV2AppIdLinkUuidGet**](docs/SecureLinksApi.md#pgLoginV2AppIdLinkUuidGet) | **GET** /v2/{app_id}/{link_uuid} | Pg Login
147
- *FastApi.SecureLinksApi* | [**pgLoginV2FormatTypeAppIdLinkUuidGet**](docs/SecureLinksApi.md#pgLoginV2FormatTypeAppIdLinkUuidGet) | **GET** /v2/{format_type}/{app_id}/{link_uuid} | Pg Login
148
- *FastApi.SecureLinksApi* | [**pgLoginV2LinkUuidGet**](docs/SecureLinksApi.md#pgLoginV2LinkUuidGet) | **GET** /v2/{link_uuid} | Pg Login
149
- *FastApi.SecureLinksApi* | [**pgPollV2PollPcreGet**](docs/SecureLinksApi.md#pgPollV2PollPcreGet) | **GET** /v2/poll/{pcre} | Pg Poll
150
- *FastApi.StirApi* | [**callInitiationStirCallInitiationPost**](docs/StirApi.md#callInitiationStirCallInitiationPost) | **POST** /stir/call_initiation | Call Initiation
151
- *FastApi.TwilioApi* | [**twilioCheckTwilioCheckPost**](docs/TwilioApi.md#twilioCheckTwilioCheckPost) | **POST** /twilio/check | Twilio Check
152
- *FastApi.TwilioApi* | [**twilioStartTwilioStartPost**](docs/TwilioApi.md#twilioStartTwilioStartPost) | **POST** /twilio/start | Twilio Start
153
- *FastApi.TwilioApi* | [**twilioWebhookTwilioWebhookPost**](docs/TwilioApi.md#twilioWebhookTwilioWebhookPost) | **POST** /twilio/webhook | Twilio Webhook
154
- *FastApi.UsersApi* | [**beginAppAttestBeginAppAttestPost**](docs/UsersApi.md#beginAppAttestBeginAppAttestPost) | **POST** /begin_app_attest/ | Begin App Attest
155
- *FastApi.UsersApi* | [**checkUpdateNeededCheckUpdateNeededPost**](docs/UsersApi.md#checkUpdateNeededCheckUpdateNeededPost) | **POST** /check_update_needed/ | Check Update Needed
156
- *FastApi.UsersApi* | [**deleteUserDeleteUserPost**](docs/UsersApi.md#deleteUserDeleteUserPost) | **POST** /delete_user/ | Delete User
157
- *FastApi.UsersApi* | [**fetchRegisteredUsersFetchRegisteredUsersPost**](docs/UsersApi.md#fetchRegisteredUsersFetchRegisteredUsersPost) | **POST** /fetch_registered_users/ | Fetch Registered Users
158
- *FastApi.UsersApi* | [**inviteUserInviteUserPost**](docs/UsersApi.md#inviteUserInviteUserPost) | **POST** /invite_user/ | Invite User
159
- *FastApi.UsersApi* | [**registerUserRegisterUserPost**](docs/UsersApi.md#registerUserRegisterUserPost) | **POST** /register_user/ | Register User
160
- *FastApi.UsersApi* | [**updateUserUpdateUserPut**](docs/UsersApi.md#updateUserUpdateUserPut) | **PUT** /update_user/ | Update User
161
- *FastApi.UsersApi* | [**verifyAppAttestVerifyAppPost**](docs/UsersApi.md#verifyAppAttestVerifyAppPost) | **POST** /verify_app/ | Verify App Attest
162
- *FastApi.VeriffApi* | [**createVeriffSessionVeriffSessionPost**](docs/VeriffApi.md#createVeriffSessionVeriffSessionPost) | **POST** /veriff/session/ | Create Veriff Session
163
- *FastApi.VeriffApi* | [**pollVeriffSessionVeriffPollSessionSessionIdPatch**](docs/VeriffApi.md#pollVeriffSessionVeriffPollSessionSessionIdPatch) | **PATCH** /veriff/poll-session/{session_id} | Poll Veriff Session
164
- *FastApi.VeriffApi* | [**uploadVeriffMediaVeriffUploadMediaSessionIdPost**](docs/VeriffApi.md#uploadVeriffMediaVeriffUploadMediaSessionIdPost) | **POST** /veriff/upload-media/{session_id} | Upload Veriff Media
165
- *FastApi.VeriffApi* | [**veriffWebhookVeriffWebhookPost**](docs/VeriffApi.md#veriffWebhookVeriffWebhookPost) | **POST** /veriff/webhook | Veriff Webhook
166
- *FastApi.WellKnownApi* | [**appleAppSiteAssociationAppleAppSiteAssociationGet**](docs/WellKnownApi.md#appleAppSiteAssociationAppleAppSiteAssociationGet) | **GET** /apple-app-site-association | Apple App Site Association
167
- *FastApi.WellKnownApi* | [**appleAppSiteAssociationWellKnownAppleAppSiteAssociationGet**](docs/WellKnownApi.md#appleAppSiteAssociationWellKnownAppleAppSiteAssociationGet) | **GET** /.well-known/apple-app-site-association | Apple App Site Association
168
- *FastApi.WellKnownApi* | [**jwksWellKnownJwksJsonGet**](docs/WellKnownApi.md#jwksWellKnownJwksJsonGet) | **GET** /.well-known/jwks.json | Jwks
169
- *FastApi.ZoomApi* | [**cookietestCookietestGet**](docs/ZoomApi.md#cookietestCookietestGet) | **GET** /cookietest | Cookietest
170
- *FastApi.ZoomApi* | [**generateMeetingReportZoomPhoneReportsMeetingPost**](docs/ZoomApi.md#generateMeetingReportZoomPhoneReportsMeetingPost) | **POST** /zoom-phone/reports/meeting | Generate Meeting Report
171
- *FastApi.ZoomApi* | [**getMeetingDetailsZoomPhoneLogsMeetingDetailsPost**](docs/ZoomApi.md#getMeetingDetailsZoomPhoneLogsMeetingDetailsPost) | **POST** /zoom-phone/logs/meeting/details | Get Meeting Details
172
- *FastApi.ZoomApi* | [**getTicketZoomPhoneTicketAccountIdPost**](docs/ZoomApi.md#getTicketZoomPhoneTicketAccountIdPost) | **POST** /zoom-phone/ticket/{account_id} | Get Ticket
173
- *FastApi.ZoomApi* | [**getUserLogsZoomPhoneLogsPolyUserIdGet**](docs/ZoomApi.md#getUserLogsZoomPhoneLogsPolyUserIdGet) | **GET** /zoom-phone/logs/{poly_user_id} | Get User Logs
174
- *FastApi.ZoomApi* | [**meetingJwtMeetingjwtPost**](docs/ZoomApi.md#meetingJwtMeetingjwtPost) | **POST** /meetingjwt | Meeting Jwt
175
- *FastApi.ZoomApi* | [**pgGetMeetingDetailsV2ZoomMeetingMeetingUuidGet**](docs/ZoomApi.md#pgGetMeetingDetailsV2ZoomMeetingMeetingUuidGet) | **GET** /v2/zoom/meeting/{meeting_uuid} | Pg Get Meeting Details
176
- *FastApi.ZoomApi* | [**pgStartZoomMeetingV2ZoomStartAppIdLinkUuidPost**](docs/ZoomApi.md#pgStartZoomMeetingV2ZoomStartAppIdLinkUuidPost) | **POST** /v2/zoom/start/{app_id}/{link_uuid} | Pg Start Zoom Meeting
177
- *FastApi.ZoomApi* | [**redirectToAppStoreZoomPhoneAppStoreGet**](docs/ZoomApi.md#redirectToAppStoreZoomPhoneAppStoreGet) | **GET** /zoom-phone/app-store | Redirect To App Store
178
- *FastApi.ZoomApi* | [**redirectToMeetingReportZoomPhoneReportsMeetingEncodedS3UrlGet**](docs/ZoomApi.md#redirectToMeetingReportZoomPhoneReportsMeetingEncodedS3UrlGet) | **GET** /zoom-phone/reports/meeting/{encoded_s3_url} | Redirect To Meeting Report
179
- *FastApi.ZoomApi* | [**testWebsocketDisconnectZoomPhoneTestDisconnectPost**](docs/ZoomApi.md#testWebsocketDisconnectZoomPhoneTestDisconnectPost) | **POST** /zoom-phone/test-disconnect | Test Websocket Disconnect
180
- *FastApi.ZoomApi* | [**webhookWebhookPost**](docs/ZoomApi.md#webhookWebhookPost) | **POST** /webhook | Webhook
181
- *FastApi.ZoomApi* | [**zoomCallbackZoomCallbackPost**](docs/ZoomApi.md#zoomCallbackZoomCallbackPost) | **POST** /zoom_callback | Zoom Callback
182
- *FastApi.ZoomApi* | [**zoomInstallInstallGet**](docs/ZoomApi.md#zoomInstallInstallGet) | **GET** /install | Zoom Install
183
- *FastApi.ZoomApi* | [**zoomInstallInstallPost**](docs/ZoomApi.md#zoomInstallInstallPost) | **POST** /install | Zoom Install
184
- *FastApi.ZoomApi* | [**zoomPhoneInstallZoomPhoneInstallGet**](docs/ZoomApi.md#zoomPhoneInstallZoomPhoneInstallGet) | **GET** /zoom-phone/install | Zoom Phone Install
185
- *FastApi.ZoomApi* | [**zoomPhoneInstallZoomPhoneInstallPost**](docs/ZoomApi.md#zoomPhoneInstallZoomPhoneInstallPost) | **POST** /zoom-phone/install | Zoom Phone Install
186
- *FastApi.ZoomApi* | [**zoomWebhookZoomPhoneWebhookPost**](docs/ZoomApi.md#zoomWebhookZoomPhoneWebhookPost) | **POST** /zoom-phone/webhook | Zoom Webhook
187
-
188
-
189
- ## Documentation for Models
190
-
191
- - [FastApi.ApiControllersPslStirCallRequest](docs/ApiControllersPslStirCallRequest.md)
192
- - [FastApi.ApiModelsApiCallModelsCallRequest](docs/ApiModelsApiCallModelsCallRequest.md)
193
- - [FastApi.AppId](docs/AppId.md)
194
- - [FastApi.Certainty](docs/Certainty.md)
195
- - [FastApi.CreateLinkRequest](docs/CreateLinkRequest.md)
196
- - [FastApi.HTTPValidationError](docs/HTTPValidationError.md)
197
- - [FastApi.InviteRequestModel](docs/InviteRequestModel.md)
198
- - [FastApi.JWTRequest](docs/JWTRequest.md)
199
- - [FastApi.NumberVerification](docs/NumberVerification.md)
200
- - [FastApi.StartAttestationRequest](docs/StartAttestationRequest.md)
201
- - [FastApi.StartMeetingRequest](docs/StartMeetingRequest.md)
202
- - [FastApi.ValidationError](docs/ValidationError.md)
203
- - [FastApi.ValidationErrorLocInner](docs/ValidationErrorLocInner.md)
204
- - [FastApi.VeriffSessionRequest](docs/VeriffSessionRequest.md)
205
- - [FastApi.VerifyRequest](docs/VerifyRequest.md)
206
-
207
-
208
- ## Documentation for Authorization
209
-
210
- Endpoints do not require authorization.
211
-
@@ -1,18 +0,0 @@
1
- # FastApi.ApiControllersPslStirCallRequest
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **callerName** | **String** | |
8
- **callerNumber** | **String** | |
9
- **recipientNumber** | **String** | |
10
- **certainty** | [**Certainty**](Certainty.md) | |
11
- **e2eeStatus** | **String** | | [optional]
12
- **verifiedVia** | **String** | | [optional]
13
- **verificationTime** | **String** | | [optional]
14
- **lastCall** | **String** | | [optional]
15
- **securityGrade** | **String** | | [optional]
16
- **securityScore** | **String** | | [optional]
17
-
18
-