@integrahub/vergefy-client 0.4.0 → 0.5.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.
Files changed (44) hide show
  1. package/README.md +2 -2
  2. package/dist/apis/APPPBKABookingAvailabilityRequestApi.d.ts +153 -0
  3. package/dist/apis/APPPBKABookingAvailabilityRequestApi.js +432 -0
  4. package/dist/apis/PUBLICPBKABookingAvailabilityApi.d.ts +54 -0
  5. package/dist/apis/PUBLICPBKABookingAvailabilityApi.js +135 -0
  6. package/dist/apis/index.d.ts +2 -0
  7. package/dist/apis/index.js +2 -0
  8. package/dist/esm/apis/APPPBKABookingAvailabilityRequestApi.js +428 -0
  9. package/dist/esm/apis/PUBLICPBKABookingAvailabilityApi.js +131 -0
  10. package/dist/esm/apis/index.js +2 -0
  11. package/dist/esm/ext/telemetry.js +1 -1
  12. package/dist/esm/models/BookingAvailabilityConfirmDTO.js +47 -0
  13. package/dist/esm/models/BookingAvailabilityRequestCreateDTO.js +55 -0
  14. package/dist/esm/models/BookingAvailabilityRequestDTO.js +115 -0
  15. package/dist/esm/models/BookingAvailabilityRequestSearchDTO.js +63 -0
  16. package/dist/esm/models/BookingAvailabilitySubmitDTO.js +48 -0
  17. package/dist/esm/models/BookingAvailabilityWindowDTO.js +84 -0
  18. package/dist/esm/models/PageBookingAvailabilityRequestDTO.js +64 -0
  19. package/dist/esm/models/PublicBookingAvailabilityDTO.js +66 -0
  20. package/dist/esm/models/Window.js +51 -0
  21. package/dist/esm/models/index.js +9 -0
  22. package/dist/ext/telemetry.d.ts +1 -1
  23. package/dist/ext/telemetry.js +1 -1
  24. package/dist/models/BookingAvailabilityConfirmDTO.d.ts +44 -0
  25. package/dist/models/BookingAvailabilityConfirmDTO.js +54 -0
  26. package/dist/models/BookingAvailabilityRequestCreateDTO.d.ts +62 -0
  27. package/dist/models/BookingAvailabilityRequestCreateDTO.js +62 -0
  28. package/dist/models/BookingAvailabilityRequestDTO.d.ts +212 -0
  29. package/dist/models/BookingAvailabilityRequestDTO.js +123 -0
  30. package/dist/models/BookingAvailabilityRequestSearchDTO.d.ts +79 -0
  31. package/dist/models/BookingAvailabilityRequestSearchDTO.js +71 -0
  32. package/dist/models/BookingAvailabilitySubmitDTO.d.ts +39 -0
  33. package/dist/models/BookingAvailabilitySubmitDTO.js +55 -0
  34. package/dist/models/BookingAvailabilityWindowDTO.d.ts +140 -0
  35. package/dist/models/BookingAvailabilityWindowDTO.js +92 -0
  36. package/dist/models/PageBookingAvailabilityRequestDTO.d.ts +95 -0
  37. package/dist/models/PageBookingAvailabilityRequestDTO.js +71 -0
  38. package/dist/models/PublicBookingAvailabilityDTO.d.ts +86 -0
  39. package/dist/models/PublicBookingAvailabilityDTO.js +74 -0
  40. package/dist/models/Window.d.ts +44 -0
  41. package/dist/models/Window.js +58 -0
  42. package/dist/models/index.d.ts +9 -0
  43. package/dist/models/index.js +9 -0
  44. package/package.json +1 -1
@@ -0,0 +1,135 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Vergefy API
6
+ * <h1>AI Agent Management</h1><p>Create, configure, and orchestrate AI agents with multi-provider support.</p><h2>Modules</h2><ul><li><b>Agent (IAG):</b> Agent creation, configuration, lifecycle, insight and analytics (IAG001-057, IAG500-505, IAG700-701)</li><li><b>Template (IAT):</b> Agent template management — /ai/agents-templates</li><li><b>Template Advanced (IATEMP):</b> Versions, analytics, recommendations, diffs — /ai/agents-templates (IATEMP001-008)</li><li><b>Agent Upgrade (IAGENT):</b> Upgrade, rollback, version management — /ai/agents/{id}/upgrade|rollback (IAGENT001-005)</li><li><b>Hierarchy (IAH):</b> Supervisor-worker relationships, delegation — /ai/agents/hierarchies</li><li><b>Goal (IAGG):</b> Autonomous goals, success criteria — /ai/agents/goals</li><li><b>Pool (IAGP):</b> Agent pool management, allocation, coordination (queries IAGP001-023, commands IAGP101-109) — /ai/agents/pools</li><li><b>Execution (IAGE):</b> Execution tracking, history — /ai/agents/executions</li><li><b>Health (IAGH):</b> Health checks, recovery — /ai/agents/health</li><li><b>Communication (IAGC):</b> Channels (IAGC001-019) and inter-agent messages (IAGC020-052) — /ai/agents/channels, /ai/agents/messages</li><li><b>Handoff (IAGD):</b> Agent handoff and transfer — /ai/agents/handoffs</li><li><b>Orchestration (IAGO):</b> Orchestration sessions — /ai/agents/orchestration/sessions</li><li><b>Workflow (IAGW):</b> Workflow assignment and execution — /ai/agents-workflows</li><li><b>Capability (IACAP):</b> Capability definitions, permissions (queries IACAP001-011, commands IACAP101-105) — /ai/capabilities</li><li><b>Capability Mapping (IACF):</b> Capability to feature mapping — /ai/agents/capability-feature-mappings</li></ul><p><b>Providers:</b> OpenAI GPT-4, Anthropic Claude, Google Gemini</p>
7
+ *
8
+ * The version of the OpenAPI document: 2026-05-30
9
+ * Contact: support@integrahub.co
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.PUBLICPBKABookingAvailabilityApi = void 0;
26
+ const runtime = require("../runtime");
27
+ const BookingAvailabilitySubmitDTO_1 = require("../models/BookingAvailabilitySubmitDTO");
28
+ const PublicBookingAvailabilityDTO_1 = require("../models/PublicBookingAvailabilityDTO");
29
+ /**
30
+ *
31
+ */
32
+ class PUBLICPBKABookingAvailabilityApi extends runtime.BaseAPI {
33
+ /**
34
+ * Creates request options for pBKA850 without sending the request
35
+ */
36
+ pBKA850RequestOpts(requestParameters) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ if (requestParameters['token'] == null) {
39
+ throw new runtime.RequiredError('token', 'Required parameter "token" was null or undefined when calling pBKA850().');
40
+ }
41
+ const queryParameters = {};
42
+ const headerParameters = {};
43
+ if (this.configuration && this.configuration.accessToken) {
44
+ const token = this.configuration.accessToken;
45
+ const tokenString = yield token("BearerAuth", []);
46
+ if (tokenString) {
47
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
48
+ }
49
+ }
50
+ let urlPath = `/pb/app/booking/availability/{token}`;
51
+ urlPath = urlPath.replace('{token}', encodeURIComponent(String(requestParameters['token'])));
52
+ return {
53
+ path: urlPath,
54
+ method: 'GET',
55
+ headers: headerParameters,
56
+ query: queryParameters,
57
+ };
58
+ });
59
+ }
60
+ /**
61
+ * Anonymous: resolves an availability request by its invitee token
62
+ * PBKA850 - Get Public Availability Request
63
+ */
64
+ pBKA850Raw(requestParameters, initOverrides) {
65
+ return __awaiter(this, void 0, void 0, function* () {
66
+ const requestOptions = yield this.pBKA850RequestOpts(requestParameters);
67
+ const response = yield this.request(requestOptions, initOverrides);
68
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, PublicBookingAvailabilityDTO_1.PublicBookingAvailabilityDTOFromJSON)(jsonValue));
69
+ });
70
+ }
71
+ /**
72
+ * Anonymous: resolves an availability request by its invitee token
73
+ * PBKA850 - Get Public Availability Request
74
+ */
75
+ pBKA850(requestParameters, initOverrides) {
76
+ return __awaiter(this, void 0, void 0, function* () {
77
+ const response = yield this.pBKA850Raw(requestParameters, initOverrides);
78
+ return yield response.value();
79
+ });
80
+ }
81
+ /**
82
+ * Creates request options for pBKA851 without sending the request
83
+ */
84
+ pBKA851RequestOpts(requestParameters) {
85
+ return __awaiter(this, void 0, void 0, function* () {
86
+ if (requestParameters['token'] == null) {
87
+ throw new runtime.RequiredError('token', 'Required parameter "token" was null or undefined when calling pBKA851().');
88
+ }
89
+ if (requestParameters['bookingAvailabilitySubmitDTO'] == null) {
90
+ throw new runtime.RequiredError('bookingAvailabilitySubmitDTO', 'Required parameter "bookingAvailabilitySubmitDTO" was null or undefined when calling pBKA851().');
91
+ }
92
+ const queryParameters = {};
93
+ const headerParameters = {};
94
+ headerParameters['Content-Type'] = 'application/json';
95
+ if (this.configuration && this.configuration.accessToken) {
96
+ const token = this.configuration.accessToken;
97
+ const tokenString = yield token("BearerAuth", []);
98
+ if (tokenString) {
99
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
100
+ }
101
+ }
102
+ let urlPath = `/pb/app/booking/availability/{token}`;
103
+ urlPath = urlPath.replace('{token}', encodeURIComponent(String(requestParameters['token'])));
104
+ return {
105
+ path: urlPath,
106
+ method: 'PUT',
107
+ headers: headerParameters,
108
+ query: queryParameters,
109
+ body: (0, BookingAvailabilitySubmitDTO_1.BookingAvailabilitySubmitDTOToJSON)(requestParameters['bookingAvailabilitySubmitDTO']),
110
+ };
111
+ });
112
+ }
113
+ /**
114
+ * Anonymous: invitee submits the full replacement set of availability windows
115
+ * PBKA851 - Submit Public Availability
116
+ */
117
+ pBKA851Raw(requestParameters, initOverrides) {
118
+ return __awaiter(this, void 0, void 0, function* () {
119
+ const requestOptions = yield this.pBKA851RequestOpts(requestParameters);
120
+ const response = yield this.request(requestOptions, initOverrides);
121
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, PublicBookingAvailabilityDTO_1.PublicBookingAvailabilityDTOFromJSON)(jsonValue));
122
+ });
123
+ }
124
+ /**
125
+ * Anonymous: invitee submits the full replacement set of availability windows
126
+ * PBKA851 - Submit Public Availability
127
+ */
128
+ pBKA851(requestParameters, initOverrides) {
129
+ return __awaiter(this, void 0, void 0, function* () {
130
+ const response = yield this.pBKA851Raw(requestParameters, initOverrides);
131
+ return yield response.value();
132
+ });
133
+ }
134
+ }
135
+ exports.PUBLICPBKABookingAvailabilityApi = PUBLICPBKABookingAvailabilityApi;
@@ -177,6 +177,7 @@ export * from './APPPAFPOAffiliatePayoutApi';
177
177
  export * from './APPPAFPUBAffiliatePublicApi';
178
178
  export * from './APPPAFTAffiliateProgramTierApi';
179
179
  export * from './APPPAFTHAffiliateTierHistoryApi';
180
+ export * from './APPPBKABookingAvailabilityRequestApi';
180
181
  export * from './APPPBKBookingApi';
181
182
  export * from './APPPBKBookingManagementHostApi';
182
183
  export * from './APPPBKBookingNotificationReminderApi';
@@ -312,3 +313,4 @@ export * from './PLATFORMMCPOAuthQueryApi';
312
313
  export * from './PLATFORMPICPlatformIntegrationCallLogApi';
313
314
  export * from './PLATFORMPTCPlatformTenantConfigurationApi';
314
315
  export * from './PLATFORMRMTManagedTenantInvitationApi';
316
+ export * from './PUBLICPBKABookingAvailabilityApi';
@@ -195,6 +195,7 @@ __exportStar(require("./APPPAFPOAffiliatePayoutApi"), exports);
195
195
  __exportStar(require("./APPPAFPUBAffiliatePublicApi"), exports);
196
196
  __exportStar(require("./APPPAFTAffiliateProgramTierApi"), exports);
197
197
  __exportStar(require("./APPPAFTHAffiliateTierHistoryApi"), exports);
198
+ __exportStar(require("./APPPBKABookingAvailabilityRequestApi"), exports);
198
199
  __exportStar(require("./APPPBKBookingApi"), exports);
199
200
  __exportStar(require("./APPPBKBookingManagementHostApi"), exports);
200
201
  __exportStar(require("./APPPBKBookingNotificationReminderApi"), exports);
@@ -330,3 +331,4 @@ __exportStar(require("./PLATFORMMCPOAuthQueryApi"), exports);
330
331
  __exportStar(require("./PLATFORMPICPlatformIntegrationCallLogApi"), exports);
331
332
  __exportStar(require("./PLATFORMPTCPlatformTenantConfigurationApi"), exports);
332
333
  __exportStar(require("./PLATFORMRMTManagedTenantInvitationApi"), exports);
334
+ __exportStar(require("./PUBLICPBKABookingAvailabilityApi"), exports);
@@ -0,0 +1,428 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Vergefy API
5
+ * <h1>AI Agent Management</h1><p>Create, configure, and orchestrate AI agents with multi-provider support.</p><h2>Modules</h2><ul><li><b>Agent (IAG):</b> Agent creation, configuration, lifecycle, insight and analytics (IAG001-057, IAG500-505, IAG700-701)</li><li><b>Template (IAT):</b> Agent template management — /ai/agents-templates</li><li><b>Template Advanced (IATEMP):</b> Versions, analytics, recommendations, diffs — /ai/agents-templates (IATEMP001-008)</li><li><b>Agent Upgrade (IAGENT):</b> Upgrade, rollback, version management — /ai/agents/{id}/upgrade|rollback (IAGENT001-005)</li><li><b>Hierarchy (IAH):</b> Supervisor-worker relationships, delegation — /ai/agents/hierarchies</li><li><b>Goal (IAGG):</b> Autonomous goals, success criteria — /ai/agents/goals</li><li><b>Pool (IAGP):</b> Agent pool management, allocation, coordination (queries IAGP001-023, commands IAGP101-109) — /ai/agents/pools</li><li><b>Execution (IAGE):</b> Execution tracking, history — /ai/agents/executions</li><li><b>Health (IAGH):</b> Health checks, recovery — /ai/agents/health</li><li><b>Communication (IAGC):</b> Channels (IAGC001-019) and inter-agent messages (IAGC020-052) — /ai/agents/channels, /ai/agents/messages</li><li><b>Handoff (IAGD):</b> Agent handoff and transfer — /ai/agents/handoffs</li><li><b>Orchestration (IAGO):</b> Orchestration sessions — /ai/agents/orchestration/sessions</li><li><b>Workflow (IAGW):</b> Workflow assignment and execution — /ai/agents-workflows</li><li><b>Capability (IACAP):</b> Capability definitions, permissions (queries IACAP001-011, commands IACAP101-105) — /ai/capabilities</li><li><b>Capability Mapping (IACF):</b> Capability to feature mapping — /ai/agents/capability-feature-mappings</li></ul><p><b>Providers:</b> OpenAI GPT-4, Anthropic Claude, Google Gemini</p>
6
+ *
7
+ * The version of the OpenAPI document: 2026-05-30
8
+ * Contact: support@integrahub.co
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
+ import { BookingAvailabilityConfirmDTOToJSON, } from '../models/BookingAvailabilityConfirmDTO';
25
+ import { BookingAvailabilityRequestCreateDTOToJSON, } from '../models/BookingAvailabilityRequestCreateDTO';
26
+ import { BookingAvailabilityRequestDTOFromJSON, } from '../models/BookingAvailabilityRequestDTO';
27
+ import { BookingAvailabilityRequestSearchDTOToJSON, } from '../models/BookingAvailabilityRequestSearchDTO';
28
+ import { BookingDTOFromJSON, } from '../models/BookingDTO';
29
+ import { PageBookingAvailabilityRequestDTOFromJSON, } from '../models/PageBookingAvailabilityRequestDTO';
30
+ /**
31
+ *
32
+ */
33
+ export class APPPBKABookingAvailabilityRequestApi extends runtime.BaseAPI {
34
+ /**
35
+ * Creates request options for pBKA001 without sending the request
36
+ */
37
+ pBKA001RequestOpts(requestParameters) {
38
+ return __awaiter(this, void 0, void 0, function* () {
39
+ if (requestParameters['id'] == null) {
40
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling pBKA001().');
41
+ }
42
+ if (requestParameters['xAppAccountId'] == null) {
43
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling pBKA001().');
44
+ }
45
+ const queryParameters = {};
46
+ const headerParameters = {};
47
+ if (requestParameters['acceptLanguage'] != null) {
48
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
49
+ }
50
+ if (requestParameters['xAppAccountId'] != null) {
51
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
52
+ }
53
+ if (requestParameters['vergefyVersion'] != null) {
54
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
55
+ }
56
+ if (requestParameters['acceptTimezone'] != null) {
57
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
58
+ }
59
+ if (this.configuration && this.configuration.accessToken) {
60
+ const token = this.configuration.accessToken;
61
+ const tokenString = yield token("BearerAuth", []);
62
+ if (tokenString) {
63
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
64
+ }
65
+ }
66
+ let urlPath = `/app/booking/availability-requests/{id}`;
67
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
68
+ return {
69
+ path: urlPath,
70
+ method: 'GET',
71
+ headers: headerParameters,
72
+ query: queryParameters,
73
+ };
74
+ });
75
+ }
76
+ /**
77
+ * Retrieves an invitee availability request by its Id
78
+ * PBKA001 - Get Availability Request By Id
79
+ */
80
+ pBKA001Raw(requestParameters, initOverrides) {
81
+ return __awaiter(this, void 0, void 0, function* () {
82
+ const requestOptions = yield this.pBKA001RequestOpts(requestParameters);
83
+ const response = yield this.request(requestOptions, initOverrides);
84
+ return new runtime.JSONApiResponse(response, (jsonValue) => BookingAvailabilityRequestDTOFromJSON(jsonValue));
85
+ });
86
+ }
87
+ /**
88
+ * Retrieves an invitee availability request by its Id
89
+ * PBKA001 - Get Availability Request By Id
90
+ */
91
+ pBKA001(requestParameters, initOverrides) {
92
+ return __awaiter(this, void 0, void 0, function* () {
93
+ const response = yield this.pBKA001Raw(requestParameters, initOverrides);
94
+ return yield response.value();
95
+ });
96
+ }
97
+ /**
98
+ * Creates request options for pBKA002 without sending the request
99
+ */
100
+ pBKA002RequestOpts(requestParameters) {
101
+ return __awaiter(this, void 0, void 0, function* () {
102
+ if (requestParameters['xAppAccountId'] == null) {
103
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling pBKA002().');
104
+ }
105
+ if (requestParameters['bookingAvailabilityRequestSearchDTO'] == null) {
106
+ throw new runtime.RequiredError('bookingAvailabilityRequestSearchDTO', 'Required parameter "bookingAvailabilityRequestSearchDTO" was null or undefined when calling pBKA002().');
107
+ }
108
+ const queryParameters = {};
109
+ if (requestParameters['page'] != null) {
110
+ queryParameters['page'] = requestParameters['page'];
111
+ }
112
+ if (requestParameters['size'] != null) {
113
+ queryParameters['size'] = requestParameters['size'];
114
+ }
115
+ if (requestParameters['sort'] != null) {
116
+ queryParameters['sort'] = requestParameters['sort'];
117
+ }
118
+ const headerParameters = {};
119
+ headerParameters['Content-Type'] = 'application/json';
120
+ if (requestParameters['acceptLanguage'] != null) {
121
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
122
+ }
123
+ if (requestParameters['xAppAccountId'] != null) {
124
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
125
+ }
126
+ if (requestParameters['vergefyVersion'] != null) {
127
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
128
+ }
129
+ if (requestParameters['acceptTimezone'] != null) {
130
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
131
+ }
132
+ if (this.configuration && this.configuration.accessToken) {
133
+ const token = this.configuration.accessToken;
134
+ const tokenString = yield token("BearerAuth", []);
135
+ if (tokenString) {
136
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
137
+ }
138
+ }
139
+ let urlPath = `/app/booking/availability-requests/search`;
140
+ return {
141
+ path: urlPath,
142
+ method: 'POST',
143
+ headers: headerParameters,
144
+ query: queryParameters,
145
+ body: BookingAvailabilityRequestSearchDTOToJSON(requestParameters['bookingAvailabilityRequestSearchDTO']),
146
+ };
147
+ });
148
+ }
149
+ /**
150
+ * Searches invitee availability requests with filtering and pagination
151
+ * PBKA002 - Search Availability Requests
152
+ */
153
+ pBKA002Raw(requestParameters, initOverrides) {
154
+ return __awaiter(this, void 0, void 0, function* () {
155
+ const requestOptions = yield this.pBKA002RequestOpts(requestParameters);
156
+ const response = yield this.request(requestOptions, initOverrides);
157
+ return new runtime.JSONApiResponse(response, (jsonValue) => PageBookingAvailabilityRequestDTOFromJSON(jsonValue));
158
+ });
159
+ }
160
+ /**
161
+ * Searches invitee availability requests with filtering and pagination
162
+ * PBKA002 - Search Availability Requests
163
+ */
164
+ pBKA002(requestParameters, initOverrides) {
165
+ return __awaiter(this, void 0, void 0, function* () {
166
+ const response = yield this.pBKA002Raw(requestParameters, initOverrides);
167
+ return yield response.value();
168
+ });
169
+ }
170
+ /**
171
+ * Creates request options for pBKA100 without sending the request
172
+ */
173
+ pBKA100RequestOpts(requestParameters) {
174
+ return __awaiter(this, void 0, void 0, function* () {
175
+ if (requestParameters['xAppAccountId'] == null) {
176
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling pBKA100().');
177
+ }
178
+ if (requestParameters['bookingAvailabilityRequestCreateDTO'] == null) {
179
+ throw new runtime.RequiredError('bookingAvailabilityRequestCreateDTO', 'Required parameter "bookingAvailabilityRequestCreateDTO" was null or undefined when calling pBKA100().');
180
+ }
181
+ const queryParameters = {};
182
+ const headerParameters = {};
183
+ headerParameters['Content-Type'] = 'application/json';
184
+ if (requestParameters['acceptLanguage'] != null) {
185
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
186
+ }
187
+ if (requestParameters['xAppAccountId'] != null) {
188
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
189
+ }
190
+ if (requestParameters['vergefyVersion'] != null) {
191
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
192
+ }
193
+ if (requestParameters['acceptTimezone'] != null) {
194
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
195
+ }
196
+ if (this.configuration && this.configuration.accessToken) {
197
+ const token = this.configuration.accessToken;
198
+ const tokenString = yield token("BearerAuth", []);
199
+ if (tokenString) {
200
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
201
+ }
202
+ }
203
+ let urlPath = `/app/booking/availability-requests`;
204
+ return {
205
+ path: urlPath,
206
+ method: 'POST',
207
+ headers: headerParameters,
208
+ query: queryParameters,
209
+ body: BookingAvailabilityRequestCreateDTOToJSON(requestParameters['bookingAvailabilityRequestCreateDTO']),
210
+ };
211
+ });
212
+ }
213
+ /**
214
+ * Creates an invitee availability request for a host to ask when they are free
215
+ * PBKA100 - Create Availability Request
216
+ */
217
+ pBKA100Raw(requestParameters, initOverrides) {
218
+ return __awaiter(this, void 0, void 0, function* () {
219
+ const requestOptions = yield this.pBKA100RequestOpts(requestParameters);
220
+ const response = yield this.request(requestOptions, initOverrides);
221
+ return new runtime.JSONApiResponse(response, (jsonValue) => BookingAvailabilityRequestDTOFromJSON(jsonValue));
222
+ });
223
+ }
224
+ /**
225
+ * Creates an invitee availability request for a host to ask when they are free
226
+ * PBKA100 - Create Availability Request
227
+ */
228
+ pBKA100(requestParameters, initOverrides) {
229
+ return __awaiter(this, void 0, void 0, function* () {
230
+ const response = yield this.pBKA100Raw(requestParameters, initOverrides);
231
+ return yield response.value();
232
+ });
233
+ }
234
+ /**
235
+ * Creates request options for pBKA101 without sending the request
236
+ */
237
+ pBKA101RequestOpts(requestParameters) {
238
+ return __awaiter(this, void 0, void 0, function* () {
239
+ if (requestParameters['id'] == null) {
240
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling pBKA101().');
241
+ }
242
+ if (requestParameters['xAppAccountId'] == null) {
243
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling pBKA101().');
244
+ }
245
+ const queryParameters = {};
246
+ const headerParameters = {};
247
+ if (requestParameters['acceptLanguage'] != null) {
248
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
249
+ }
250
+ if (requestParameters['xAppAccountId'] != null) {
251
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
252
+ }
253
+ if (requestParameters['vergefyVersion'] != null) {
254
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
255
+ }
256
+ if (requestParameters['acceptTimezone'] != null) {
257
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
258
+ }
259
+ if (this.configuration && this.configuration.accessToken) {
260
+ const token = this.configuration.accessToken;
261
+ const tokenString = yield token("BearerAuth", []);
262
+ if (tokenString) {
263
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
264
+ }
265
+ }
266
+ let urlPath = `/app/booking/availability-requests/{id}/cancel`;
267
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
268
+ return {
269
+ path: urlPath,
270
+ method: 'POST',
271
+ headers: headerParameters,
272
+ query: queryParameters,
273
+ };
274
+ });
275
+ }
276
+ /**
277
+ * Withdraws an availability request before it is confirmed
278
+ * PBKA101 - Cancel Availability Request
279
+ */
280
+ pBKA101Raw(requestParameters, initOverrides) {
281
+ return __awaiter(this, void 0, void 0, function* () {
282
+ const requestOptions = yield this.pBKA101RequestOpts(requestParameters);
283
+ const response = yield this.request(requestOptions, initOverrides);
284
+ return new runtime.JSONApiResponse(response, (jsonValue) => BookingAvailabilityRequestDTOFromJSON(jsonValue));
285
+ });
286
+ }
287
+ /**
288
+ * Withdraws an availability request before it is confirmed
289
+ * PBKA101 - Cancel Availability Request
290
+ */
291
+ pBKA101(requestParameters, initOverrides) {
292
+ return __awaiter(this, void 0, void 0, function* () {
293
+ const response = yield this.pBKA101Raw(requestParameters, initOverrides);
294
+ return yield response.value();
295
+ });
296
+ }
297
+ /**
298
+ * Creates request options for pBKA102 without sending the request
299
+ */
300
+ pBKA102RequestOpts(requestParameters) {
301
+ return __awaiter(this, void 0, void 0, function* () {
302
+ if (requestParameters['id'] == null) {
303
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling pBKA102().');
304
+ }
305
+ if (requestParameters['xAppAccountId'] == null) {
306
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling pBKA102().');
307
+ }
308
+ if (requestParameters['bookingAvailabilityConfirmDTO'] == null) {
309
+ throw new runtime.RequiredError('bookingAvailabilityConfirmDTO', 'Required parameter "bookingAvailabilityConfirmDTO" was null or undefined when calling pBKA102().');
310
+ }
311
+ const queryParameters = {};
312
+ const headerParameters = {};
313
+ headerParameters['Content-Type'] = 'application/json';
314
+ if (requestParameters['acceptLanguage'] != null) {
315
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
316
+ }
317
+ if (requestParameters['xAppAccountId'] != null) {
318
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
319
+ }
320
+ if (requestParameters['vergefyVersion'] != null) {
321
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
322
+ }
323
+ if (requestParameters['acceptTimezone'] != null) {
324
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
325
+ }
326
+ if (this.configuration && this.configuration.accessToken) {
327
+ const token = this.configuration.accessToken;
328
+ const tokenString = yield token("BearerAuth", []);
329
+ if (tokenString) {
330
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
331
+ }
332
+ }
333
+ let urlPath = `/app/booking/availability-requests/{id}/confirm`;
334
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
335
+ return {
336
+ path: urlPath,
337
+ method: 'POST',
338
+ headers: headerParameters,
339
+ query: queryParameters,
340
+ body: BookingAvailabilityConfirmDTOToJSON(requestParameters['bookingAvailabilityConfirmDTO']),
341
+ };
342
+ });
343
+ }
344
+ /**
345
+ * Confirms one of the invitee\'s submitted windows and creates a booking
346
+ * PBKA102 - Confirm Availability Request
347
+ */
348
+ pBKA102Raw(requestParameters, initOverrides) {
349
+ return __awaiter(this, void 0, void 0, function* () {
350
+ const requestOptions = yield this.pBKA102RequestOpts(requestParameters);
351
+ const response = yield this.request(requestOptions, initOverrides);
352
+ return new runtime.JSONApiResponse(response, (jsonValue) => BookingDTOFromJSON(jsonValue));
353
+ });
354
+ }
355
+ /**
356
+ * Confirms one of the invitee\'s submitted windows and creates a booking
357
+ * PBKA102 - Confirm Availability Request
358
+ */
359
+ pBKA102(requestParameters, initOverrides) {
360
+ return __awaiter(this, void 0, void 0, function* () {
361
+ const response = yield this.pBKA102Raw(requestParameters, initOverrides);
362
+ return yield response.value();
363
+ });
364
+ }
365
+ /**
366
+ * Creates request options for pBKA103 without sending the request
367
+ */
368
+ pBKA103RequestOpts(requestParameters) {
369
+ return __awaiter(this, void 0, void 0, function* () {
370
+ if (requestParameters['id'] == null) {
371
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling pBKA103().');
372
+ }
373
+ if (requestParameters['xAppAccountId'] == null) {
374
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling pBKA103().');
375
+ }
376
+ const queryParameters = {};
377
+ const headerParameters = {};
378
+ if (requestParameters['acceptLanguage'] != null) {
379
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
380
+ }
381
+ if (requestParameters['xAppAccountId'] != null) {
382
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
383
+ }
384
+ if (requestParameters['vergefyVersion'] != null) {
385
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
386
+ }
387
+ if (requestParameters['acceptTimezone'] != null) {
388
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
389
+ }
390
+ if (this.configuration && this.configuration.accessToken) {
391
+ const token = this.configuration.accessToken;
392
+ const tokenString = yield token("BearerAuth", []);
393
+ if (tokenString) {
394
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
395
+ }
396
+ }
397
+ let urlPath = `/app/booking/availability-requests/{id}/resend`;
398
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
399
+ return {
400
+ path: urlPath,
401
+ method: 'POST',
402
+ headers: headerParameters,
403
+ query: queryParameters,
404
+ };
405
+ });
406
+ }
407
+ /**
408
+ * Resends the invitee link for an availability request
409
+ * PBKA103 - Resend Availability Request Invite
410
+ */
411
+ pBKA103Raw(requestParameters, initOverrides) {
412
+ return __awaiter(this, void 0, void 0, function* () {
413
+ const requestOptions = yield this.pBKA103RequestOpts(requestParameters);
414
+ const response = yield this.request(requestOptions, initOverrides);
415
+ return new runtime.JSONApiResponse(response, (jsonValue) => BookingAvailabilityRequestDTOFromJSON(jsonValue));
416
+ });
417
+ }
418
+ /**
419
+ * Resends the invitee link for an availability request
420
+ * PBKA103 - Resend Availability Request Invite
421
+ */
422
+ pBKA103(requestParameters, initOverrides) {
423
+ return __awaiter(this, void 0, void 0, function* () {
424
+ const response = yield this.pBKA103Raw(requestParameters, initOverrides);
425
+ return yield response.value();
426
+ });
427
+ }
428
+ }