@taktoria/sdk 0.1.2 → 0.1.4

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 (61) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/appDomains/client/Client.js +4 -4
  3. package/dist/cjs/api/resources/artifacts/client/Client.js +6 -6
  4. package/dist/cjs/api/resources/auditLogs/client/Client.js +1 -1
  5. package/dist/cjs/api/resources/billing/client/Client.js +1 -1
  6. package/dist/cjs/api/resources/domains/client/Client.js +4 -4
  7. package/dist/cjs/api/resources/dory/client/Client.js +34 -34
  8. package/dist/cjs/api/resources/golinks/client/Client.js +6 -6
  9. package/dist/cjs/api/resources/insights/client/Client.js +2 -2
  10. package/dist/cjs/api/resources/launches/client/Client.js +8 -8
  11. package/dist/cjs/api/resources/links/client/Client.js +3 -3
  12. package/dist/cjs/api/resources/mcpConnections/client/Client.js +1 -1
  13. package/dist/cjs/api/resources/memegen/client/Client.js +8 -8
  14. package/dist/cjs/api/resources/okr/client/Client.js +15 -15
  15. package/dist/cjs/api/resources/partnerDomains/client/Client.js +1 -1
  16. package/dist/cjs/api/resources/platform/client/Client.js +2 -2
  17. package/dist/cjs/api/resources/posts/client/Client.js +3 -3
  18. package/dist/cjs/api/resources/process/client/Client.js +10 -10
  19. package/dist/cjs/api/resources/slackConnections/client/Client.js +1 -1
  20. package/dist/cjs/api/resources/steps/client/Client.js +9 -9
  21. package/dist/cjs/core/form-data-utils/FormDataWrapper.d.ts +1 -1
  22. package/dist/cjs/core/form-data-utils/FormDataWrapper.js +5 -1
  23. package/dist/cjs/core/schemas/builders/list/list.js +3 -1
  24. package/dist/cjs/core/schemas/builders/object/object.js +3 -1
  25. package/dist/cjs/core/schemas/builders/record/record.js +6 -2
  26. package/dist/cjs/core/url/encodePathParam.d.ts +3 -1
  27. package/dist/cjs/core/url/encodePathParam.js +8 -2
  28. package/dist/cjs/errors/TaktoriaError.js +16 -2
  29. package/dist/cjs/version.d.ts +1 -1
  30. package/dist/cjs/version.js +1 -1
  31. package/dist/esm/BaseClient.mjs +2 -2
  32. package/dist/esm/api/resources/appDomains/client/Client.mjs +4 -4
  33. package/dist/esm/api/resources/artifacts/client/Client.mjs +6 -6
  34. package/dist/esm/api/resources/auditLogs/client/Client.mjs +1 -1
  35. package/dist/esm/api/resources/billing/client/Client.mjs +1 -1
  36. package/dist/esm/api/resources/domains/client/Client.mjs +4 -4
  37. package/dist/esm/api/resources/dory/client/Client.mjs +34 -34
  38. package/dist/esm/api/resources/golinks/client/Client.mjs +6 -6
  39. package/dist/esm/api/resources/insights/client/Client.mjs +2 -2
  40. package/dist/esm/api/resources/launches/client/Client.mjs +8 -8
  41. package/dist/esm/api/resources/links/client/Client.mjs +3 -3
  42. package/dist/esm/api/resources/mcpConnections/client/Client.mjs +1 -1
  43. package/dist/esm/api/resources/memegen/client/Client.mjs +8 -8
  44. package/dist/esm/api/resources/okr/client/Client.mjs +15 -15
  45. package/dist/esm/api/resources/partnerDomains/client/Client.mjs +1 -1
  46. package/dist/esm/api/resources/platform/client/Client.mjs +2 -2
  47. package/dist/esm/api/resources/posts/client/Client.mjs +3 -3
  48. package/dist/esm/api/resources/process/client/Client.mjs +10 -10
  49. package/dist/esm/api/resources/slackConnections/client/Client.mjs +1 -1
  50. package/dist/esm/api/resources/steps/client/Client.mjs +9 -9
  51. package/dist/esm/core/form-data-utils/FormDataWrapper.d.mts +1 -1
  52. package/dist/esm/core/form-data-utils/FormDataWrapper.mjs +5 -1
  53. package/dist/esm/core/schemas/builders/list/list.mjs +3 -1
  54. package/dist/esm/core/schemas/builders/object/object.mjs +3 -1
  55. package/dist/esm/core/schemas/builders/record/record.mjs +6 -2
  56. package/dist/esm/core/url/encodePathParam.d.mts +3 -1
  57. package/dist/esm/core/url/encodePathParam.mjs +8 -2
  58. package/dist/esm/errors/TaktoriaError.mjs +16 -2
  59. package/dist/esm/version.d.mts +1 -1
  60. package/dist/esm/version.mjs +1 -1
  61. package/package.json +1 -1
@@ -80,7 +80,7 @@ class StepsClient {
80
80
  const _authRequest = yield this._options.authProvider.getAuthRequest();
81
81
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
82
82
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
83
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `launches/${core.url.encodePathParam(launchId)}/steps`),
83
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `launches/${core.url.encodePathParam(launchId, errors.TaktoriaError)}/steps`),
84
84
  method: "GET",
85
85
  headers: _headers,
86
86
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -158,7 +158,7 @@ class StepsClient {
158
158
  const _authRequest = yield this._options.authProvider.getAuthRequest();
159
159
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
160
160
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
161
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `launches/${core.url.encodePathParam(launchId)}/steps`),
161
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `launches/${core.url.encodePathParam(launchId, errors.TaktoriaError)}/steps`),
162
162
  method: "POST",
163
163
  headers: _headers,
164
164
  contentType: "application/json",
@@ -266,7 +266,7 @@ class StepsClient {
266
266
  const _authRequest = yield this._options.authProvider.getAuthRequest();
267
267
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
268
268
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
269
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `launches/${core.url.encodePathParam(launchId)}/steps/generate`),
269
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `launches/${core.url.encodePathParam(launchId, errors.TaktoriaError)}/steps/generate`),
270
270
  method: "POST",
271
271
  headers: _headers,
272
272
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -346,7 +346,7 @@ class StepsClient {
346
346
  const _authRequest = yield this._options.authProvider.getAuthRequest();
347
347
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
348
348
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
349
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `steps/${core.url.encodePathParam(stepId)}`),
349
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `steps/${core.url.encodePathParam(stepId, errors.TaktoriaError)}`),
350
350
  method: "GET",
351
351
  headers: _headers,
352
352
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -421,7 +421,7 @@ class StepsClient {
421
421
  const _authRequest = yield this._options.authProvider.getAuthRequest();
422
422
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
423
423
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
424
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `steps/${core.url.encodePathParam(stepId)}`),
424
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `steps/${core.url.encodePathParam(stepId, errors.TaktoriaError)}`),
425
425
  method: "PATCH",
426
426
  headers: _headers,
427
427
  contentType: "application/json",
@@ -516,7 +516,7 @@ class StepsClient {
516
516
  const _authRequest = yield this._options.authProvider.getAuthRequest();
517
517
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
518
518
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
519
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `steps/${core.url.encodePathParam(stepId)}`),
519
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `steps/${core.url.encodePathParam(stepId, errors.TaktoriaError)}`),
520
520
  method: "DELETE",
521
521
  headers: _headers,
522
522
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -594,7 +594,7 @@ class StepsClient {
594
594
  const _authRequest = yield this._options.authProvider.getAuthRequest();
595
595
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
596
596
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
597
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `steps/${core.url.encodePathParam(stepId)}/decision`),
597
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `steps/${core.url.encodePathParam(stepId, errors.TaktoriaError)}/decision`),
598
598
  method: "POST",
599
599
  headers: _headers,
600
600
  contentType: "application/json",
@@ -701,7 +701,7 @@ class StepsClient {
701
701
  const _authRequest = yield this._options.authProvider.getAuthRequest();
702
702
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
703
703
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
704
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `steps/${core.url.encodePathParam(stepId)}/reason`),
704
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `steps/${core.url.encodePathParam(stepId, errors.TaktoriaError)}/reason`),
705
705
  method: "POST",
706
706
  headers: _headers,
707
707
  contentType: "application/json",
@@ -815,7 +815,7 @@ class StepsClient {
815
815
  const _authRequest = yield this._options.authProvider.getAuthRequest();
816
816
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
817
817
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
818
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `steps/${core.url.encodePathParam(stepId)}/nudge`),
818
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `steps/${core.url.encodePathParam(stepId, errors.TaktoriaError)}/nudge`),
819
819
  method: "POST",
820
820
  headers: _headers,
821
821
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -8,7 +8,7 @@ export declare function newFormData(): Promise<FormDataWrapper>;
8
8
  export declare class FormDataWrapper {
9
9
  private fd;
10
10
  setup(): Promise<void>;
11
- append(key: string, value: unknown): void;
11
+ append(key: string, value: unknown, contentType?: string): void;
12
12
  appendFile(key: string, value: Uploadable): Promise<void>;
13
13
  getRequest(): FormDataRequest<FormData>;
14
14
  }
@@ -68,7 +68,11 @@ class FormDataWrapper {
68
68
  // noop
69
69
  });
70
70
  }
71
- append(key, value) {
71
+ append(key, value, contentType) {
72
+ if (contentType != null) {
73
+ this.fd.append(key, new Blob([String(value)], { type: contentType }), "");
74
+ return;
75
+ }
72
76
  this.fd.append(key, String(value));
73
77
  }
74
78
  appendFile(key, value) {
@@ -39,7 +39,9 @@ function validateAndTransformArray(value, transformItem) {
39
39
  result.push(item.value);
40
40
  }
41
41
  else {
42
- errors.push(...item.errors);
42
+ for (const error of item.errors) {
43
+ errors.push(error);
44
+ }
43
45
  }
44
46
  }
45
47
  if (errors.length === 0) {
@@ -188,7 +188,9 @@ function validateAndTransformObject({ value, requiredKeys, requiredKeysSet, getP
188
188
  }
189
189
  else {
190
190
  transformed[preTransformedKey] = preTransformedItemValue;
191
- errors.push(...value.errors);
191
+ for (const error of value.errors) {
192
+ errors.push(error);
193
+ }
192
194
  }
193
195
  }
194
196
  else {
@@ -117,10 +117,14 @@ function validateAndTransformRecord({ value, isKeyNumeric, transformKey, transfo
117
117
  }
118
118
  else {
119
119
  if (!transformedKey.ok) {
120
- errors.push(...transformedKey.errors);
120
+ for (const error of transformedKey.errors) {
121
+ errors.push(error);
122
+ }
121
123
  }
122
124
  if (!transformedValue.ok) {
123
- errors.push(...transformedValue.errors);
125
+ for (const error of transformedValue.errors) {
126
+ errors.push(error);
127
+ }
124
128
  }
125
129
  }
126
130
  }
@@ -1 +1,3 @@
1
- export declare function encodePathParam(param: unknown): string;
1
+ export declare function encodePathParam(param: unknown, InvalidPathParameterError?: new (args: {
2
+ message: string;
3
+ }) => Error): string;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.encodePathParam = encodePathParam;
4
- function encodePathParam(param) {
4
+ function encodePathParam(param, InvalidPathParameterError) {
5
5
  if (param === null) {
6
6
  return "null";
7
7
  }
@@ -17,5 +17,11 @@ function encodePathParam(param) {
17
17
  param = String(param);
18
18
  break;
19
19
  }
20
- return encodeURIComponent(param);
20
+ const encoded = encodeURIComponent(param);
21
+ // "." and ".." are dot segments: URL resolution would remove them and send the request to a different path.
22
+ if (encoded === "." || encoded === "..") {
23
+ const message = `Invalid path parameter "${encoded}": "." and ".." are not allowed because they change the request path.`;
24
+ throw InvalidPathParameterError != null ? new InvalidPathParameterError({ message }) : new Error(message);
25
+ }
26
+ return encoded;
21
27
  }
@@ -19,8 +19,22 @@ class TaktoriaError extends Error {
19
19
  }
20
20
  }
21
21
  get requestId() {
22
- var _a, _b, _c;
23
- return (_c = (_b = (_a = this.rawResponse) === null || _a === void 0 ? void 0 : _a.headers) === null || _b === void 0 ? void 0 : _b.get("x-request-id")) !== null && _c !== void 0 ? _c : undefined;
22
+ var _a;
23
+ const headers = (_a = this.rawResponse) === null || _a === void 0 ? void 0 : _a.headers;
24
+ if (headers == null) {
25
+ return undefined;
26
+ }
27
+ const requestId = headers.get("X-Request-Id");
28
+ if (requestId != null) {
29
+ return requestId;
30
+ }
31
+ let fallback;
32
+ headers.forEach((value, name) => {
33
+ if (fallback === undefined && /request[-_]?id$/i.test(name)) {
34
+ fallback = value;
35
+ }
36
+ });
37
+ return fallback;
24
38
  }
25
39
  }
26
40
  exports.TaktoriaError = TaktoriaError;
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.2";
1
+ export declare const SDK_VERSION = "0.1.4";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.1.2";
4
+ exports.SDK_VERSION = "0.1.4";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "@taktoria/sdk",
9
- "X-Fern-SDK-Version": "0.1.2",
10
- "User-Agent": "@taktoria/sdk/0.1.2",
9
+ "X-Fern-SDK-Version": "0.1.4",
10
+ "User-Agent": "@taktoria/sdk/0.1.4",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -139,7 +139,7 @@ export class AppDomainsClient {
139
139
  const _authRequest = yield this._options.authProvider.getAuthRequest();
140
140
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
141
141
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
142
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `apps/${core.url.encodePathParam(appSlug)}/domain`),
142
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `apps/${core.url.encodePathParam(appSlug, errors.TaktoriaError)}/domain`),
143
143
  method: "GET",
144
144
  headers: _headers,
145
145
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -244,7 +244,7 @@ export class AppDomainsClient {
244
244
  const _authRequest = yield this._options.authProvider.getAuthRequest();
245
245
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
246
246
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
247
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `apps/${core.url.encodePathParam(appSlug)}/domain`),
247
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `apps/${core.url.encodePathParam(appSlug, errors.TaktoriaError)}/domain`),
248
248
  method: "PUT",
249
249
  headers: _headers,
250
250
  contentType: "application/json",
@@ -358,7 +358,7 @@ export class AppDomainsClient {
358
358
  const _authRequest = yield this._options.authProvider.getAuthRequest();
359
359
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
360
360
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
361
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `apps/${core.url.encodePathParam(appSlug)}/domain`),
361
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `apps/${core.url.encodePathParam(appSlug, errors.TaktoriaError)}/domain`),
362
362
  method: "DELETE",
363
363
  headers: _headers,
364
364
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -442,7 +442,7 @@ export class AppDomainsClient {
442
442
  const _authRequest = yield this._options.authProvider.getAuthRequest();
443
443
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
444
444
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
445
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `apps/${core.url.encodePathParam(appSlug)}/domain/verify`),
445
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `apps/${core.url.encodePathParam(appSlug, errors.TaktoriaError)}/domain/verify`),
446
446
  method: "POST",
447
447
  headers: _headers,
448
448
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -162,7 +162,7 @@ export class ArtifactsClient {
162
162
  const _authRequest = yield this._options.authProvider.getAuthRequest();
163
163
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
164
164
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
165
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `launches/${core.url.encodePathParam(launchId)}/artifacts`),
165
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `launches/${core.url.encodePathParam(launchId, errors.TaktoriaError)}/artifacts`),
166
166
  method: "GET",
167
167
  headers: _headers,
168
168
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -237,7 +237,7 @@ export class ArtifactsClient {
237
237
  const _authRequest = yield this._options.authProvider.getAuthRequest();
238
238
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
239
239
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
240
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `launches/${core.url.encodePathParam(launchId)}/artifacts`),
240
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `launches/${core.url.encodePathParam(launchId, errors.TaktoriaError)}/artifacts`),
241
241
  method: "POST",
242
242
  headers: _headers,
243
243
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -318,7 +318,7 @@ export class ArtifactsClient {
318
318
  const _authRequest = yield this._options.authProvider.getAuthRequest();
319
319
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
320
320
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
321
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `launches/${core.url.encodePathParam(launchId)}/artifacts/${core.url.encodePathParam(serializers.ArtifactType.jsonOrThrow(type, { omitUndefined: true }))}`),
321
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `launches/${core.url.encodePathParam(launchId, errors.TaktoriaError)}/artifacts/${core.url.encodePathParam(serializers.ArtifactType.jsonOrThrow(type, { omitUndefined: true }), errors.TaktoriaError)}`),
322
322
  method: "GET",
323
323
  headers: _headers,
324
324
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -396,7 +396,7 @@ export class ArtifactsClient {
396
396
  const _authRequest = yield this._options.authProvider.getAuthRequest();
397
397
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
398
398
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
399
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `launches/${core.url.encodePathParam(launchId)}/artifacts/${core.url.encodePathParam(serializers.ArtifactType.jsonOrThrow(type, { omitUndefined: true }))}`),
399
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `launches/${core.url.encodePathParam(launchId, errors.TaktoriaError)}/artifacts/${core.url.encodePathParam(serializers.ArtifactType.jsonOrThrow(type, { omitUndefined: true }), errors.TaktoriaError)}`),
400
400
  method: "PUT",
401
401
  headers: _headers,
402
402
  contentType: "application/json",
@@ -519,7 +519,7 @@ export class ArtifactsClient {
519
519
  const _authRequest = yield this._options.authProvider.getAuthRequest();
520
520
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
521
521
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
522
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `launches/${core.url.encodePathParam(launchId)}/artifacts/${core.url.encodePathParam(serializers.ArtifactType.jsonOrThrow(type, { omitUndefined: true }))}/exports`),
522
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `launches/${core.url.encodePathParam(launchId, errors.TaktoriaError)}/artifacts/${core.url.encodePathParam(serializers.ArtifactType.jsonOrThrow(type, { omitUndefined: true }), errors.TaktoriaError)}/exports`),
523
523
  method: "POST",
524
524
  headers: _headers,
525
525
  contentType: "application/json",
@@ -723,7 +723,7 @@ export class ArtifactsClient {
723
723
  const _authRequest = yield this._options.authProvider.getAuthRequest();
724
724
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
725
725
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
726
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `docs-tools/${core.url.encodePathParam(serializers.DocsTool.jsonOrThrow(tool, { omitUndefined: true }))}/destinations`),
726
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `docs-tools/${core.url.encodePathParam(serializers.DocsTool.jsonOrThrow(tool, { omitUndefined: true }), errors.TaktoriaError)}/destinations`),
727
727
  method: "GET",
728
728
  headers: _headers,
729
729
  queryString: core.url
@@ -150,7 +150,7 @@ export class AuditLogsClient {
150
150
  const _authRequest = yield this._options.authProvider.getAuthRequest();
151
151
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
152
152
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
153
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `/audit-logs/${core.url.encodePathParam(eventId)}`),
153
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `/audit-logs/${core.url.encodePathParam(eventId, errors.TaktoriaError)}`),
154
154
  method: "GET",
155
155
  headers: _headers,
156
156
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -275,7 +275,7 @@ export class BillingClient {
275
275
  const _authRequest = yield this._options.authProvider.getAuthRequest();
276
276
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
277
277
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
278
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `/subscription/apps/${core.url.encodePathParam(appSlug)}`),
278
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `/subscription/apps/${core.url.encodePathParam(appSlug, errors.TaktoriaError)}`),
279
279
  method: "DELETE",
280
280
  headers: _headers,
281
281
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -238,7 +238,7 @@ export class DomainsClient {
238
238
  const _authRequest = yield this._options.authProvider.getAuthRequest();
239
239
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
240
240
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
241
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `/domains/${core.url.encodePathParam(domainId)}`),
241
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `/domains/${core.url.encodePathParam(domainId, errors.TaktoriaError)}`),
242
242
  method: "GET",
243
243
  headers: _headers,
244
244
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -329,7 +329,7 @@ export class DomainsClient {
329
329
  const _authRequest = yield this._options.authProvider.getAuthRequest();
330
330
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
331
331
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
332
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `/domains/${core.url.encodePathParam(domainId)}/verify`),
332
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `/domains/${core.url.encodePathParam(domainId, errors.TaktoriaError)}/verify`),
333
333
  method: "POST",
334
334
  headers: _headers,
335
335
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -425,7 +425,7 @@ export class DomainsClient {
425
425
  const _authRequest = yield this._options.authProvider.getAuthRequest();
426
426
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
427
427
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
428
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `/domains/${core.url.encodePathParam(domainId)}`),
428
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `/domains/${core.url.encodePathParam(domainId, errors.TaktoriaError)}`),
429
429
  method: "PATCH",
430
430
  headers: _headers,
431
431
  contentType: "application/json",
@@ -530,7 +530,7 @@ export class DomainsClient {
530
530
  const _authRequest = yield this._options.authProvider.getAuthRequest();
531
531
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
532
532
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
533
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `/domains/${core.url.encodePathParam(domainId)}`),
533
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.TaktoriaEnvironment.Production, `/domains/${core.url.encodePathParam(domainId, errors.TaktoriaError)}`),
534
534
  method: "DELETE",
535
535
  headers: _headers,
536
536
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),