@snokam/platform-client 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) hide show
  1. package/.openapi-generator-ignore +23 -0
  2. package/README.md +423 -0
  3. package/dist/apis/PlatformClient.d.ts +2194 -0
  4. package/dist/apis/PlatformClient.js +5902 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +19 -0
  7. package/dist/esm/apis/PlatformClient.d.ts +2194 -0
  8. package/dist/esm/apis/PlatformClient.js +5898 -0
  9. package/dist/esm/apis/index.d.ts +1 -0
  10. package/dist/esm/apis/index.js +3 -0
  11. package/dist/esm/index.d.ts +3 -0
  12. package/dist/esm/index.js +5 -0
  13. package/dist/esm/models/index.d.ts +6691 -0
  14. package/dist/esm/models/index.js +336 -0
  15. package/dist/esm/runtime.d.ts +181 -0
  16. package/dist/esm/runtime.js +342 -0
  17. package/dist/index.d.ts +3 -0
  18. package/dist/index.js +21 -0
  19. package/dist/models/index.d.ts +6691 -0
  20. package/dist/models/index.js +339 -0
  21. package/dist/runtime.d.ts +181 -0
  22. package/dist/runtime.js +357 -0
  23. package/docs/AccessSubject.md +17 -0
  24. package/docs/ActivateRequest.md +15 -0
  25. package/docs/ActivateResult.md +16 -0
  26. package/docs/AddCustomDomainRequest.md +16 -0
  27. package/docs/ApiTokenSummary.md +20 -0
  28. package/docs/ApiTokenVerifyResult.md +16 -0
  29. package/docs/AppCatalogEntry.md +18 -0
  30. package/docs/AppModule.md +20 -0
  31. package/docs/ApproveDeviceRequest.md +15 -0
  32. package/docs/BillingPaymentMethod.md +16 -0
  33. package/docs/BillingSessionRequest.md +14 -0
  34. package/docs/BillingSessionResponse.md +14 -0
  35. package/docs/BridgeWebhookResult.md +18 -0
  36. package/docs/Business.md +65 -0
  37. package/docs/BusinessAccess.md +15 -0
  38. package/docs/BusinessConfig.md +18 -0
  39. package/docs/BusinessHealth.md +17 -0
  40. package/docs/BusinessMeterUsage.md +18 -0
  41. package/docs/BusinessOwner.md +16 -0
  42. package/docs/BusinessUsageRollup.md +23 -0
  43. package/docs/Capability.md +17 -0
  44. package/docs/CommissionTierReference.md +16 -0
  45. package/docs/ComponentBlocksInnerOneOfChildrenInner.md +17 -0
  46. package/docs/ComponentBlocksInnerOneOfMarkDefsInner.md +16 -0
  47. package/docs/CreateApiTokenRequest.md +15 -0
  48. package/docs/CreateUserRequest.md +20 -0
  49. package/docs/CreatedApiToken.md +21 -0
  50. package/docs/CredentialSummary.md +21 -0
  51. package/docs/CustomDomain.md +18 -0
  52. package/docs/CustomDomainProvisioning.md +15 -0
  53. package/docs/DevicePairRequestBody.md +14 -0
  54. package/docs/DevicePairing.md +17 -0
  55. package/docs/DevicePairingStatus.md +17 -0
  56. package/docs/DevicePollRequestBody.md +15 -0
  57. package/docs/DeviceScreen.md +20 -0
  58. package/docs/DirectoryAppRoleItem.md +15 -0
  59. package/docs/DirectoryGroupItem.md +15 -0
  60. package/docs/DirectoryGroupsResponse.md +14 -0
  61. package/docs/DirectoryLicenseItem.md +16 -0
  62. package/docs/DirectoryLicensesResponse.md +14 -0
  63. package/docs/DirectoryMailbox.md +15 -0
  64. package/docs/DirectoryServicePrincipalItem.md +16 -0
  65. package/docs/DirectoryServicePrincipalsResponse.md +14 -0
  66. package/docs/DnsRecord.md +16 -0
  67. package/docs/EmployeeReference.md +16 -0
  68. package/docs/EmployeeSettings.md +14 -0
  69. package/docs/EmployeeSystemAccess.md +24 -0
  70. package/docs/EmployeeSystemConfig.md +18 -0
  71. package/docs/Entitlements.md +23 -0
  72. package/docs/FacebookAccount.md +17 -0
  73. package/docs/GitHubRepo.md +18 -0
  74. package/docs/GoogleAnalyticsProperty.md +16 -0
  75. package/docs/GoogleAnalyticsSelection.md +14 -0
  76. package/docs/ImpersonationHistoryEntry.md +25 -0
  77. package/docs/IntegrationCheckResult.md +18 -0
  78. package/docs/IntegrationHealthStatus.md +16 -0
  79. package/docs/IntegrationSecret.md +16 -0
  80. package/docs/IntegrationSetting.md +17 -0
  81. package/docs/IntegrationSummary.md +29 -0
  82. package/docs/InviteCredentialRequest.md +15 -0
  83. package/docs/InvoiceBasis.md +20 -0
  84. package/docs/InvoiceBasisLine.md +18 -0
  85. package/docs/LoginConfig.md +21 -0
  86. package/docs/MeApp.md +15 -0
  87. package/docs/MeterEnforcementDecision.md +19 -0
  88. package/docs/MeterEntitlement.md +22 -0
  89. package/docs/ModelReconciliation.md +24 -0
  90. package/docs/OAuthAccessTokenResponse.md +16 -0
  91. package/docs/OAuthStartResponse.md +14 -0
  92. package/docs/OlafApiKeyResponse.md +14 -0
  93. package/docs/OlafTeamsSettings.md +14 -0
  94. package/docs/OnboardBusinessRequest.md +27 -0
  95. package/docs/OnboardingConfig.md +18 -0
  96. package/docs/OnboardingStatus.md +19 -0
  97. package/docs/OnboardingStep.md +15 -0
  98. package/docs/PageEmployeeOrderInner.md +17 -0
  99. package/docs/PageEquipmentInner.md +17 -0
  100. package/docs/PasswordLoginRequest.md +17 -0
  101. package/docs/PasswordLoginResult.md +20 -0
  102. package/docs/PatchBusinessRequest.md +26 -0
  103. package/docs/PatchEmployee.md +58 -0
  104. package/docs/PendingDevicePreview.md +17 -0
  105. package/docs/PickSanityPatchEmployeeExcludeKeyofSanityPatchEmployeeScopeGrantsSalaryConfig.md +14 -0
  106. package/docs/PickSanityPatchEmployeeExcludeKeyofSanityPatchEmployeeScopeGrantsSettings.md +14 -0
  107. package/docs/PlanFeature.md +16 -0
  108. package/docs/PlanInfo.md +21 -0
  109. package/docs/PlanMeter.md +24 -0
  110. package/docs/PlatformClient.md +9321 -0
  111. package/docs/PlatformIntegration.md +21 -0
  112. package/docs/PlatformSanityConfig.md +17 -0
  113. package/docs/PlatformSecretField.md +16 -0
  114. package/docs/PlatformSecretStatus.md +16 -0
  115. package/docs/PowerOfficeConnectResponse.md +14 -0
  116. package/docs/PowerOfficeProduct.md +15 -0
  117. package/docs/PowerOfficeProductsResponse.md +15 -0
  118. package/docs/PowerOfficeProject.md +15 -0
  119. package/docs/PowerOfficeProjectsResponse.md +15 -0
  120. package/docs/ProtectedEmployee.md +63 -0
  121. package/docs/ProvisioningEvent.md +17 -0
  122. package/docs/RecordImpersonationActivityRequest.md +18 -0
  123. package/docs/RenameDeviceRequest.md +14 -0
  124. package/docs/ResetConfirmRequest.md +16 -0
  125. package/docs/ResetRequest.md +15 -0
  126. package/docs/RevokeRequest.md +14 -0
  127. package/docs/RollupMeterTotal.md +18 -0
  128. package/docs/SanityCreateEmployeeCliftonStrengthsInner.md +17 -0
  129. package/docs/SanityCreateEmployeeGroupsInner.md +17 -0
  130. package/docs/SanityCreateEmployeeTagsInner.md +17 -0
  131. package/docs/SanityCreateEmployeeTechnologiesInner.md +17 -0
  132. package/docs/SanityEmployeeCliftonStrengthsInner.md +20 -0
  133. package/docs/SanityEmployeeCommissionTier.md +20 -0
  134. package/docs/SanityEmployeeEquipmentInner.md +19 -0
  135. package/docs/SanityEmployeeGroupsInner.md +24 -0
  136. package/docs/SanityEmployeeManager.md +23 -0
  137. package/docs/SanityEmployeeNextOfKinInner.md +17 -0
  138. package/docs/SanityEmployeeSalaryConfig.md +14 -0
  139. package/docs/SanityEmployeeSettings.md +14 -0
  140. package/docs/SanityImageAssetReference.md +16 -0
  141. package/docs/SanityImageCrop.md +18 -0
  142. package/docs/SanityImageHotspot.md +18 -0
  143. package/docs/SanityPatchPageMetaImage.md +18 -0
  144. package/docs/SanitySystemsInnerDescriptionInner.md +20 -0
  145. package/docs/SanityTechnologyWithRelationsArticlesInnerMediaOneOf.md +15 -0
  146. package/docs/SanityTechnologyWithRelationsEmployeesInnerTagsInner.md +17 -0
  147. package/docs/SanityTechnologyWithRelationsProjectsInnerTechnologiesInner.md +18 -0
  148. package/docs/SanityTvCategoryDashboardsInnerBackgroundImage.md +15 -0
  149. package/docs/SanityTvCategoryDashboardsInnerBackgroundImageAsset.md +18 -0
  150. package/docs/ScopeDefinition.md +17 -0
  151. package/docs/SessionBootstrapRequest.md +14 -0
  152. package/docs/SetActiveProviderRequest.md +15 -0
  153. package/docs/SetFacebookAccountRequest.md +17 -0
  154. package/docs/SetGoogleAnalyticsPropertyRequest.md +14 -0
  155. package/docs/SetPlatformSecretRequest.md +14 -0
  156. package/docs/SetScopeGrantsRequest.md +14 -0
  157. package/docs/SetWorkReposRequest.md +14 -0
  158. package/docs/SetWorkspaceRepoRequest.md +14 -0
  159. package/docs/SignupConfig.md +14 -0
  160. package/docs/SignupRequest.md +25 -0
  161. package/docs/SignupResult.md +15 -0
  162. package/docs/Slug.md +16 -0
  163. package/docs/SsoExchangeRequest.md +14 -0
  164. package/docs/StartImpersonationRequest.md +16 -0
  165. package/docs/StartImpersonationResult.md +20 -0
  166. package/docs/StudioSanityConfig.md +16 -0
  167. package/docs/SystemRoleOption.md +15 -0
  168. package/docs/TeamsAcsTokenResponse.md +16 -0
  169. package/docs/TeamsAuthStateResponse.md +14 -0
  170. package/docs/TenantDomain.md +17 -0
  171. package/docs/TenantInfo.md +32 -0
  172. package/docs/TenantSanityCredentials.md +16 -0
  173. package/docs/TokenExchangeRequest.md +14 -0
  174. package/docs/TokenExchangeResult.md +15 -0
  175. package/docs/TokenReconciliationReport.md +16 -0
  176. package/docs/TokenReconciliationSnapshot.md +27 -0
  177. package/docs/TotpEnrollRequest.md +15 -0
  178. package/docs/TotpEnrollResult.md +16 -0
  179. package/docs/UpdateAppsRequest.md +14 -0
  180. package/docs/UpdateSecretsRequest.md +14 -0
  181. package/docs/UsageDailySeries.md +16 -0
  182. package/docs/UsageDayPoint.md +15 -0
  183. package/docs/UsageEvent.md +18 -0
  184. package/docs/UsageEventsRequest.md +15 -0
  185. package/docs/UsageMeterDailySeries.md +17 -0
  186. package/docs/UsageMeterSummary.md +31 -0
  187. package/docs/UsageRollup.md +16 -0
  188. package/docs/UsageRollupTotals.md +18 -0
  189. package/docs/UsageSummary.md +23 -0
  190. package/docs/VerifyApiTokenRequest.md +14 -0
  191. package/docs/WorkReposSelection.md +14 -0
  192. package/docs/WorkspaceRepoSelection.md +14 -0
  193. package/package.json +20 -0
  194. package/src/apis/PlatformClient.ts +7514 -0
  195. package/src/apis/index.ts +3 -0
  196. package/src/index.ts +5 -0
  197. package/src/models/index.ts +6789 -0
  198. package/src/runtime.ts +442 -0
  199. package/tsconfig.esm.json +7 -0
  200. package/tsconfig.json +16 -0
@@ -0,0 +1,357 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Platform API
6
+ * Self-service business platform management API
7
+ *
8
+ * The version of the OpenAPI document: v1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.COLLECTION_FORMATS = exports.RequiredError = exports.FetchError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.BASE_PATH = void 0;
26
+ exports.querystring = querystring;
27
+ exports.exists = exists;
28
+ exports.canConsumeForm = canConsumeForm;
29
+ exports.BASE_PATH = "https://snokam.snosky.no/api/platform".replace(/\/+$/, "");
30
+ class Configuration {
31
+ constructor(configuration = {}) {
32
+ this.configuration = configuration;
33
+ }
34
+ set config(configuration) {
35
+ this.configuration = configuration;
36
+ }
37
+ get basePath() {
38
+ return this.configuration.basePath != null ? this.configuration.basePath : exports.BASE_PATH;
39
+ }
40
+ get fetchApi() {
41
+ return this.configuration.fetchApi;
42
+ }
43
+ get middleware() {
44
+ return this.configuration.middleware || [];
45
+ }
46
+ get queryParamsStringify() {
47
+ return this.configuration.queryParamsStringify || querystring;
48
+ }
49
+ get username() {
50
+ return this.configuration.username;
51
+ }
52
+ get password() {
53
+ return this.configuration.password;
54
+ }
55
+ get apiKey() {
56
+ const apiKey = this.configuration.apiKey;
57
+ if (apiKey) {
58
+ return typeof apiKey === 'function' ? apiKey : () => apiKey;
59
+ }
60
+ return undefined;
61
+ }
62
+ get accessToken() {
63
+ const accessToken = this.configuration.accessToken;
64
+ if (accessToken) {
65
+ return typeof accessToken === 'function' ? accessToken : () => __awaiter(this, void 0, void 0, function* () { return accessToken; });
66
+ }
67
+ return undefined;
68
+ }
69
+ get headers() {
70
+ return this.configuration.headers;
71
+ }
72
+ get credentials() {
73
+ return this.configuration.credentials;
74
+ }
75
+ }
76
+ exports.Configuration = Configuration;
77
+ exports.DefaultConfig = new Configuration();
78
+ /**
79
+ * This is the base class for all generated API classes.
80
+ */
81
+ class BaseAPI {
82
+ constructor(configuration = exports.DefaultConfig) {
83
+ this.configuration = configuration;
84
+ this.fetchApi = (url, init) => __awaiter(this, void 0, void 0, function* () {
85
+ let fetchParams = { url, init };
86
+ for (const middleware of this.middleware) {
87
+ if (middleware.pre) {
88
+ fetchParams = (yield middleware.pre(Object.assign({ fetch: this.fetchApi }, fetchParams))) || fetchParams;
89
+ }
90
+ }
91
+ let response = undefined;
92
+ try {
93
+ response = yield (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
94
+ }
95
+ catch (e) {
96
+ for (const middleware of this.middleware) {
97
+ if (middleware.onError) {
98
+ response = (yield middleware.onError({
99
+ fetch: this.fetchApi,
100
+ url: fetchParams.url,
101
+ init: fetchParams.init,
102
+ error: e,
103
+ response: response ? response.clone() : undefined,
104
+ })) || response;
105
+ }
106
+ }
107
+ if (response === undefined) {
108
+ if (e instanceof Error) {
109
+ throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
110
+ }
111
+ else {
112
+ throw e;
113
+ }
114
+ }
115
+ }
116
+ for (const middleware of this.middleware) {
117
+ if (middleware.post) {
118
+ response = (yield middleware.post({
119
+ fetch: this.fetchApi,
120
+ url: fetchParams.url,
121
+ init: fetchParams.init,
122
+ response: response.clone(),
123
+ })) || response;
124
+ }
125
+ }
126
+ return response;
127
+ });
128
+ this.middleware = configuration.middleware;
129
+ }
130
+ withMiddleware(...middlewares) {
131
+ const next = this.clone();
132
+ next.middleware = next.middleware.concat(...middlewares);
133
+ return next;
134
+ }
135
+ withPreMiddleware(...preMiddlewares) {
136
+ const middlewares = preMiddlewares.map((pre) => ({ pre }));
137
+ return this.withMiddleware(...middlewares);
138
+ }
139
+ withPostMiddleware(...postMiddlewares) {
140
+ const middlewares = postMiddlewares.map((post) => ({ post }));
141
+ return this.withMiddleware(...middlewares);
142
+ }
143
+ /**
144
+ * Check if the given MIME is a JSON MIME.
145
+ * JSON MIME examples:
146
+ * application/json
147
+ * application/json; charset=UTF8
148
+ * APPLICATION/JSON
149
+ * application/vnd.company+json
150
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
151
+ * @return True if the given MIME is JSON, false otherwise.
152
+ */
153
+ isJsonMime(mime) {
154
+ if (!mime) {
155
+ return false;
156
+ }
157
+ return BaseAPI.jsonRegex.test(mime);
158
+ }
159
+ request(context, initOverrides) {
160
+ return __awaiter(this, void 0, void 0, function* () {
161
+ const { url, init } = yield this.createFetchParams(context, initOverrides);
162
+ const response = yield this.fetchApi(url, init);
163
+ if (response && (response.status >= 200 && response.status < 300)) {
164
+ return response;
165
+ }
166
+ throw new ResponseError(response, 'Response returned an error code');
167
+ });
168
+ }
169
+ createFetchParams(context, initOverrides) {
170
+ return __awaiter(this, void 0, void 0, function* () {
171
+ let url = this.configuration.basePath + context.path;
172
+ if (context.query !== undefined && Object.keys(context.query).length !== 0) {
173
+ // only add the querystring to the URL if there are query parameters.
174
+ // this is done to avoid urls ending with a "?" character which buggy webservers
175
+ // do not handle correctly sometimes.
176
+ url += '?' + this.configuration.queryParamsStringify(context.query);
177
+ }
178
+ const headers = Object.assign({}, this.configuration.headers, context.headers);
179
+ Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {});
180
+ const initOverrideFn = typeof initOverrides === "function"
181
+ ? initOverrides
182
+ : () => __awaiter(this, void 0, void 0, function* () { return initOverrides; });
183
+ const initParams = {
184
+ method: context.method,
185
+ headers,
186
+ body: context.body,
187
+ credentials: this.configuration.credentials,
188
+ };
189
+ const overriddenInit = Object.assign(Object.assign({}, initParams), (yield initOverrideFn({
190
+ init: initParams,
191
+ context,
192
+ })));
193
+ let body;
194
+ if (isFormData(overriddenInit.body)
195
+ || (overriddenInit.body instanceof URLSearchParams)
196
+ || isBlob(overriddenInit.body)) {
197
+ body = overriddenInit.body;
198
+ }
199
+ else if (this.isJsonMime(headers['Content-Type'])) {
200
+ body = JSON.stringify(overriddenInit.body);
201
+ }
202
+ else {
203
+ body = overriddenInit.body;
204
+ }
205
+ const init = Object.assign(Object.assign({}, overriddenInit), { body });
206
+ return { url, init };
207
+ });
208
+ }
209
+ /**
210
+ * Create a shallow clone of `this` by constructing a new instance
211
+ * and then shallow cloning data members.
212
+ */
213
+ clone() {
214
+ const constructor = this.constructor;
215
+ const next = new constructor(this.configuration);
216
+ next.middleware = this.middleware.slice();
217
+ return next;
218
+ }
219
+ }
220
+ exports.BaseAPI = BaseAPI;
221
+ BaseAPI.jsonRegex = /^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$/i;
222
+ ;
223
+ function isBlob(value) {
224
+ return typeof Blob !== 'undefined' && value instanceof Blob;
225
+ }
226
+ function isFormData(value) {
227
+ return typeof FormData !== "undefined" && value instanceof FormData;
228
+ }
229
+ class ResponseError extends Error {
230
+ constructor(response, msg) {
231
+ super(msg);
232
+ this.response = response;
233
+ this.name = "ResponseError";
234
+ // restore prototype chain
235
+ const actualProto = new.target.prototype;
236
+ if (Object.setPrototypeOf) {
237
+ Object.setPrototypeOf(this, actualProto);
238
+ }
239
+ }
240
+ }
241
+ exports.ResponseError = ResponseError;
242
+ class FetchError extends Error {
243
+ constructor(cause, msg) {
244
+ super(msg);
245
+ this.cause = cause;
246
+ this.name = "FetchError";
247
+ // restore prototype chain
248
+ const actualProto = new.target.prototype;
249
+ if (Object.setPrototypeOf) {
250
+ Object.setPrototypeOf(this, actualProto);
251
+ }
252
+ }
253
+ }
254
+ exports.FetchError = FetchError;
255
+ class RequiredError extends Error {
256
+ constructor(field, msg) {
257
+ super(msg);
258
+ this.field = field;
259
+ this.name = "RequiredError";
260
+ // restore prototype chain
261
+ const actualProto = new.target.prototype;
262
+ if (Object.setPrototypeOf) {
263
+ Object.setPrototypeOf(this, actualProto);
264
+ }
265
+ }
266
+ }
267
+ exports.RequiredError = RequiredError;
268
+ exports.COLLECTION_FORMATS = {
269
+ csv: ",",
270
+ ssv: " ",
271
+ tsv: "\t",
272
+ pipes: "|",
273
+ };
274
+ function querystring(params, prefix = '') {
275
+ return Object.keys(params)
276
+ .map(key => querystringSingleKey(key, params[key], prefix))
277
+ .filter(part => part.length > 0)
278
+ .join('&');
279
+ }
280
+ function querystringSingleKey(key, value, keyPrefix = '') {
281
+ const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
282
+ if (value instanceof Array) {
283
+ const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue)))
284
+ .join(`&${encodeURIComponent(fullKey)}=`);
285
+ return `${encodeURIComponent(fullKey)}=${multiValue}`;
286
+ }
287
+ if (value instanceof Set) {
288
+ const valueAsArray = Array.from(value);
289
+ return querystringSingleKey(key, valueAsArray, keyPrefix);
290
+ }
291
+ if (value instanceof Date) {
292
+ return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
293
+ }
294
+ if (value instanceof Object) {
295
+ return querystring(value, fullKey);
296
+ }
297
+ return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
298
+ }
299
+ function exists(json, key) {
300
+ const value = json[key];
301
+ return value !== null && value !== undefined;
302
+ }
303
+ function canConsumeForm(consumes) {
304
+ for (const consume of consumes) {
305
+ if ('multipart/form-data' === consume.contentType) {
306
+ return true;
307
+ }
308
+ }
309
+ return false;
310
+ }
311
+ class JSONApiResponse {
312
+ constructor(raw, transformer = (jsonValue) => jsonValue) {
313
+ this.raw = raw;
314
+ this.transformer = transformer;
315
+ }
316
+ value() {
317
+ return __awaiter(this, void 0, void 0, function* () {
318
+ return this.transformer(yield this.raw.json());
319
+ });
320
+ }
321
+ }
322
+ exports.JSONApiResponse = JSONApiResponse;
323
+ class VoidApiResponse {
324
+ constructor(raw) {
325
+ this.raw = raw;
326
+ }
327
+ value() {
328
+ return __awaiter(this, void 0, void 0, function* () {
329
+ return undefined;
330
+ });
331
+ }
332
+ }
333
+ exports.VoidApiResponse = VoidApiResponse;
334
+ class BlobApiResponse {
335
+ constructor(raw) {
336
+ this.raw = raw;
337
+ }
338
+ value() {
339
+ return __awaiter(this, void 0, void 0, function* () {
340
+ return yield this.raw.blob();
341
+ });
342
+ }
343
+ ;
344
+ }
345
+ exports.BlobApiResponse = BlobApiResponse;
346
+ class TextApiResponse {
347
+ constructor(raw) {
348
+ this.raw = raw;
349
+ }
350
+ value() {
351
+ return __awaiter(this, void 0, void 0, function* () {
352
+ return yield this.raw.text();
353
+ });
354
+ }
355
+ ;
356
+ }
357
+ exports.TextApiResponse = TextApiResponse;
@@ -0,0 +1,17 @@
1
+
2
+ # AccessSubject
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `email` | string
10
+ `id` | string
11
+ `name` | string
12
+ `scopeGrants` | Array&lt;string&gt;
13
+
14
+
15
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
16
+
17
+
@@ -0,0 +1,15 @@
1
+
2
+ # ActivateRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `password` | string
10
+ `token` | string
11
+
12
+
13
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
14
+
15
+
@@ -0,0 +1,16 @@
1
+
2
+ # ActivateResult
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `email` | string
10
+ `enrolmentToken` | string
11
+ `otpauthUri` | string
12
+
13
+
14
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
15
+
16
+
@@ -0,0 +1,16 @@
1
+
2
+ # AddCustomDomainRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `host` | string
10
+ `kind` | string
11
+ `service` | string
12
+
13
+
14
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
15
+
16
+
@@ -0,0 +1,20 @@
1
+
2
+ # ApiTokenSummary
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `createdAt` | Date
10
+ `createdBy` | string
11
+ `fingerprint` | string
12
+ `label` | string
13
+ `lastUsedAt` | Date
14
+ `managed` | boolean
15
+ `scopes` | Array&lt;string&gt;
16
+
17
+
18
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
19
+
20
+
@@ -0,0 +1,16 @@
1
+
2
+ # ApiTokenVerifyResult
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `businessId` | string
10
+ `scopes` | Array&lt;string&gt;
11
+ `valid` | boolean
12
+
13
+
14
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
15
+
16
+
@@ -0,0 +1,18 @@
1
+
2
+ # AppCatalogEntry
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `app` | string
10
+ `env` | string
11
+ `module` | string
12
+ `subdomain` | string
13
+ `type` | string
14
+
15
+
16
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
17
+
18
+
@@ -0,0 +1,20 @@
1
+
2
+ # AppModule
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `apps` | Array&lt;string&gt;
10
+ `description` | string
11
+ `displayName` | string
12
+ `isCore` | boolean
13
+ `name` | string
14
+ `optionalCapabilities` | Array&lt;string&gt;
15
+ `requiredCapabilities` | Array&lt;string&gt;
16
+
17
+
18
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
19
+
20
+
@@ -0,0 +1,15 @@
1
+
2
+ # ApproveDeviceRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `code` | string
10
+ `name` | string
11
+
12
+
13
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
14
+
15
+
@@ -0,0 +1,16 @@
1
+
2
+ # BillingPaymentMethod
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `cardBrand` | string
10
+ `cardLast4` | string
11
+ `method` | string
12
+
13
+
14
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
15
+
16
+
@@ -0,0 +1,14 @@
1
+
2
+ # BillingSessionRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `returnUrl` | string
10
+
11
+
12
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
13
+
14
+
@@ -0,0 +1,14 @@
1
+
2
+ # BillingSessionResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `url` | string
10
+
11
+
12
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
13
+
14
+
@@ -0,0 +1,18 @@
1
+
2
+ # BridgeWebhookResult
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `corsError` | string
10
+ `corsUpdated` | boolean
11
+ `token` | [CreatedApiToken](CreatedApiToken.md)
12
+ `webhookError` | string
13
+ `webhookUpdated` | boolean
14
+
15
+
16
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
17
+
18
+
@@ -0,0 +1,65 @@
1
+
2
+ # Business
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `_etag` | string
10
+ `billingMethod` | string
11
+ `billingStatus` | string
12
+ `businessAbbreviation` | string
13
+ `businessName` | string
14
+ `config` | [BusinessConfig](BusinessConfig.md)
15
+ `configuredSecretKeys` | Array&lt;string&gt;
16
+ `contactBirthDate` | string
17
+ `contactEmail` | string
18
+ `contactGender` | string
19
+ `contactName` | string
20
+ `contactPhone` | string
21
+ `createdAt` | Date
22
+ `customDomains` | [Array&lt;CustomDomain&gt;](CustomDomain.md)
23
+ `disabledModules` | Array&lt;string&gt;
24
+ `displayName` | string
25
+ `domainBase` | string
26
+ `enabledApps` | Array&lt;string&gt;
27
+ `enabledModules` | Array&lt;string&gt;
28
+ `entraTenantId` | string
29
+ `environment` | string
30
+ `externalDomain` | string
31
+ `googleWorkspaceDomain` | string
32
+ `hosts` | Array&lt;string&gt;
33
+ `id` | string
34
+ `keyVaultName` | string
35
+ `logoUrl` | string
36
+ `overageInvoicedThrough` | string
37
+ `owners` | [Array&lt;BusinessOwner&gt;](BusinessOwner.md)
38
+ `pastDueFinalWarningSentAt` | Date
39
+ `pastDueSince` | Date
40
+ `pastDueWarningSentAt` | Date
41
+ `plan` | string
42
+ `powerOfficeCustomerCode` | number
43
+ `powerOfficeInvoicedThrough` | string
44
+ `provisionedAt` | Date
45
+ `provisioningLog` | [Array&lt;ProvisioningEvent&gt;](ProvisioningEvent.md)
46
+ `slackTeamId` | string
47
+ `ssoActive` | boolean
48
+ `ssoProvider` | string
49
+ `status` | string
50
+ `stripeCustomerId` | string
51
+ `stripeSubscriptionId` | string
52
+ `subdomain` | string
53
+ `subscriptionId` | string
54
+ `trialEndsAt` | Date
55
+ `trialNudgeSentAt` | Date
56
+ `upgradeRequestedAt` | Date
57
+ `vaultReadyAt` | Date
58
+ `welcomeEmailSentAt` | Date
59
+ `workRepos` | Array&lt;string&gt;
60
+ `workspaceRepo` | string
61
+
62
+
63
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
64
+
65
+
@@ -0,0 +1,15 @@
1
+
2
+ # BusinessAccess
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `employees` | [Array&lt;AccessSubject&gt;](AccessSubject.md)
10
+ `groups` | [Array&lt;AccessSubject&gt;](AccessSubject.md)
11
+
12
+
13
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
14
+
15
+
@@ -0,0 +1,18 @@
1
+
2
+ # BusinessConfig
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `activeProviders` | { [key: string]: string; }
10
+ `cvPartnerBaseUrl` | string
11
+ `olafTeamsSettings` | [OlafTeamsSettings](OlafTeamsSettings.md)
12
+ `sanityDataset` | string
13
+ `sanityProjectId` | string
14
+
15
+
16
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
17
+
18
+