@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
@@ -286,7 +286,7 @@ export class MemegenClient {
286
286
  const _authRequest = yield this._options.authProvider.getAuthRequest();
287
287
  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);
288
288
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
289
- 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, `memes/${core.url.encodePathParam(memeId)}`),
289
+ 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, `memes/${core.url.encodePathParam(memeId, errors.TaktoriaError)}`),
290
290
  method: "GET",
291
291
  headers: _headers,
292
292
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -366,7 +366,7 @@ export class MemegenClient {
366
366
  const _authRequest = yield this._options.authProvider.getAuthRequest();
367
367
  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);
368
368
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
369
- 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, `memes/${core.url.encodePathParam(memeId)}/vote`),
369
+ 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, `memes/${core.url.encodePathParam(memeId, errors.TaktoriaError)}/vote`),
370
370
  method: "PUT",
371
371
  headers: _headers,
372
372
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -460,7 +460,7 @@ export class MemegenClient {
460
460
  const _authRequest = yield this._options.authProvider.getAuthRequest();
461
461
  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);
462
462
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
463
- 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, `memes/${core.url.encodePathParam(memeId)}/vote`),
463
+ 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, `memes/${core.url.encodePathParam(memeId, errors.TaktoriaError)}/vote`),
464
464
  method: "DELETE",
465
465
  headers: _headers,
466
466
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -556,7 +556,7 @@ export class MemegenClient {
556
556
  const _authRequest = yield this._options.authProvider.getAuthRequest();
557
557
  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);
558
558
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
559
- 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, `memes/${core.url.encodePathParam(memeId)}/image`),
559
+ 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, `memes/${core.url.encodePathParam(memeId, errors.TaktoriaError)}/image`),
560
560
  method: "GET",
561
561
  headers: _headers,
562
562
  queryString: core.url
@@ -769,7 +769,7 @@ export class MemegenClient {
769
769
  const _authRequest = yield this._options.authProvider.getAuthRequest();
770
770
  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);
771
771
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
772
- 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, `memes/${core.url.encodePathParam(memeId)}`),
772
+ 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, `memes/${core.url.encodePathParam(memeId, errors.TaktoriaError)}`),
773
773
  method: "DELETE",
774
774
  headers: _headers,
775
775
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -1605,7 +1605,7 @@ export class MemegenClient {
1605
1605
  const _authRequest = yield this._options.authProvider.getAuthRequest();
1606
1606
  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);
1607
1607
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
1608
- 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, `meme-templates/${core.url.encodePathParam(templateId)}`),
1608
+ 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, `meme-templates/${core.url.encodePathParam(templateId, errors.TaktoriaError)}`),
1609
1609
  method: "GET",
1610
1610
  headers: _headers,
1611
1611
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -1689,7 +1689,7 @@ export class MemegenClient {
1689
1689
  const _authRequest = yield this._options.authProvider.getAuthRequest();
1690
1690
  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);
1691
1691
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
1692
- 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, `meme-templates/${core.url.encodePathParam(templateId)}`),
1692
+ 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, `meme-templates/${core.url.encodePathParam(templateId, errors.TaktoriaError)}`),
1693
1693
  method: "PATCH",
1694
1694
  headers: _headers,
1695
1695
  contentType: "application/json",
@@ -1809,7 +1809,7 @@ export class MemegenClient {
1809
1809
  const _authRequest = yield this._options.authProvider.getAuthRequest();
1810
1810
  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);
1811
1811
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
1812
- 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, `meme-templates/${core.url.encodePathParam(templateId)}`),
1812
+ 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, `meme-templates/${core.url.encodePathParam(templateId, errors.TaktoriaError)}`),
1813
1813
  method: "DELETE",
1814
1814
  headers: _headers,
1815
1815
  queryString: core.url
@@ -272,7 +272,7 @@ export class OkrClient {
272
272
  const _authRequest = yield this._options.authProvider.getAuthRequest();
273
273
  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);
274
274
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
275
- 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, `objectives/${core.url.encodePathParam(objectiveId)}`),
275
+ 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, `objectives/${core.url.encodePathParam(objectiveId, errors.TaktoriaError)}`),
276
276
  method: "GET",
277
277
  headers: _headers,
278
278
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -354,7 +354,7 @@ export class OkrClient {
354
354
  const _authRequest = yield this._options.authProvider.getAuthRequest();
355
355
  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);
356
356
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
357
- 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, `objectives/${core.url.encodePathParam(objectiveId)}`),
357
+ 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, `objectives/${core.url.encodePathParam(objectiveId, errors.TaktoriaError)}`),
358
358
  method: "PATCH",
359
359
  headers: _headers,
360
360
  contentType: "application/json",
@@ -457,7 +457,7 @@ export class OkrClient {
457
457
  const _authRequest = yield this._options.authProvider.getAuthRequest();
458
458
  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);
459
459
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
460
- 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, `objectives/${core.url.encodePathParam(objectiveId)}`),
460
+ 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, `objectives/${core.url.encodePathParam(objectiveId, errors.TaktoriaError)}`),
461
461
  method: "DELETE",
462
462
  headers: _headers,
463
463
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -535,7 +535,7 @@ export class OkrClient {
535
535
  const _authRequest = yield this._options.authProvider.getAuthRequest();
536
536
  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);
537
537
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
538
- 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, `objectives/${core.url.encodePathParam(objectiveId)}/key-results`),
538
+ 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, `objectives/${core.url.encodePathParam(objectiveId, errors.TaktoriaError)}/key-results`),
539
539
  method: "GET",
540
540
  headers: _headers,
541
541
  queryString: core.url
@@ -619,7 +619,7 @@ export class OkrClient {
619
619
  const _authRequest = yield this._options.authProvider.getAuthRequest();
620
620
  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);
621
621
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
622
- 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, `objectives/${core.url.encodePathParam(objectiveId)}/key-results`),
622
+ 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, `objectives/${core.url.encodePathParam(objectiveId, errors.TaktoriaError)}/key-results`),
623
623
  method: "POST",
624
624
  headers: _headers,
625
625
  contentType: "application/json",
@@ -716,7 +716,7 @@ export class OkrClient {
716
716
  const _authRequest = yield this._options.authProvider.getAuthRequest();
717
717
  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);
718
718
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
719
- 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, `key-results/${core.url.encodePathParam(keyResultId)}`),
719
+ 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, `key-results/${core.url.encodePathParam(keyResultId, errors.TaktoriaError)}`),
720
720
  method: "GET",
721
721
  headers: _headers,
722
722
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -802,7 +802,7 @@ export class OkrClient {
802
802
  const _authRequest = yield this._options.authProvider.getAuthRequest();
803
803
  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);
804
804
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
805
- 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, `key-results/${core.url.encodePathParam(keyResultId)}`),
805
+ 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, `key-results/${core.url.encodePathParam(keyResultId, errors.TaktoriaError)}`),
806
806
  method: "PATCH",
807
807
  headers: _headers,
808
808
  contentType: "application/json",
@@ -901,7 +901,7 @@ export class OkrClient {
901
901
  const _authRequest = yield this._options.authProvider.getAuthRequest();
902
902
  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);
903
903
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
904
- 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, `key-results/${core.url.encodePathParam(keyResultId)}`),
904
+ 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, `key-results/${core.url.encodePathParam(keyResultId, errors.TaktoriaError)}`),
905
905
  method: "DELETE",
906
906
  headers: _headers,
907
907
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -983,7 +983,7 @@ export class OkrClient {
983
983
  const _authRequest = yield this._options.authProvider.getAuthRequest();
984
984
  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);
985
985
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
986
- 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, `key-results/${core.url.encodePathParam(keyResultId)}/check-ins`),
986
+ 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, `key-results/${core.url.encodePathParam(keyResultId, errors.TaktoriaError)}/check-ins`),
987
987
  method: "GET",
988
988
  headers: _headers,
989
989
  queryString: core.url
@@ -1088,7 +1088,7 @@ export class OkrClient {
1088
1088
  const _authRequest = yield this._options.authProvider.getAuthRequest();
1089
1089
  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);
1090
1090
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
1091
- 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, `key-results/${core.url.encodePathParam(keyResultId)}/check-ins`),
1091
+ 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, `key-results/${core.url.encodePathParam(keyResultId, errors.TaktoriaError)}/check-ins`),
1092
1092
  method: "POST",
1093
1093
  headers: _headers,
1094
1094
  contentType: "application/json",
@@ -1287,7 +1287,7 @@ export class OkrClient {
1287
1287
  const _authRequest = yield this._options.authProvider.getAuthRequest();
1288
1288
  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);
1289
1289
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
1290
- 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, `key-results/${core.url.encodePathParam(keyResultId)}/grades`),
1290
+ 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, `key-results/${core.url.encodePathParam(keyResultId, errors.TaktoriaError)}/grades`),
1291
1291
  method: "GET",
1292
1292
  headers: _headers,
1293
1293
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -1378,7 +1378,7 @@ export class OkrClient {
1378
1378
  const _authRequest = yield this._options.authProvider.getAuthRequest();
1379
1379
  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);
1380
1380
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
1381
- 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, `key-results/${core.url.encodePathParam(keyResultId)}/grades/${core.url.encodePathParam(serializers.OkrCheckpoint.jsonOrThrow(checkpoint, { omitUndefined: true }))}`),
1381
+ 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, `key-results/${core.url.encodePathParam(keyResultId, errors.TaktoriaError)}/grades/${core.url.encodePathParam(serializers.OkrCheckpoint.jsonOrThrow(checkpoint, { omitUndefined: true }), errors.TaktoriaError)}`),
1382
1382
  method: "PUT",
1383
1383
  headers: _headers,
1384
1384
  contentType: "application/json",
@@ -1480,7 +1480,7 @@ export class OkrClient {
1480
1480
  const _authRequest = yield this._options.authProvider.getAuthRequest();
1481
1481
  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);
1482
1482
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
1483
- 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, `key-results/${core.url.encodePathParam(keyResultId)}/grade-changes`),
1483
+ 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, `key-results/${core.url.encodePathParam(keyResultId, errors.TaktoriaError)}/grade-changes`),
1484
1484
  method: "GET",
1485
1485
  headers: _headers,
1486
1486
  queryString: core.url
@@ -1799,7 +1799,7 @@ export class OkrClient {
1799
1799
  const _authRequest = yield this._options.authProvider.getAuthRequest();
1800
1800
  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);
1801
1801
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
1802
- 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, `objectives/${core.url.encodePathParam(objectiveId)}/key-results/reorder`),
1802
+ 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, `objectives/${core.url.encodePathParam(objectiveId, errors.TaktoriaError)}/key-results/reorder`),
1803
1803
  method: "POST",
1804
1804
  headers: _headers,
1805
1805
  contentType: "application/json",
@@ -2462,7 +2462,7 @@ export class OkrClient {
2462
2462
  const _authRequest = yield this._options.authProvider.getAuthRequest();
2463
2463
  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);
2464
2464
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
2465
- 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, `okrhub/teams/${core.url.encodePathParam(teamSlug)}`),
2465
+ 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, `okrhub/teams/${core.url.encodePathParam(teamSlug, errors.TaktoriaError)}`),
2466
2466
  method: "GET",
2467
2467
  headers: _headers,
2468
2468
  queryString: core.url
@@ -243,7 +243,7 @@ export class PartnerDomainsClient {
243
243
  const _authRequest = yield this._options.authProvider.getAuthRequest();
244
244
  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);
245
245
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
246
- 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, `/partner-domains/${core.url.encodePathParam(partnerDomainId)}`),
246
+ 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, `/partner-domains/${core.url.encodePathParam(partnerDomainId, errors.TaktoriaError)}`),
247
247
  method: "DELETE",
248
248
  headers: _headers,
249
249
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -380,7 +380,7 @@ export class PlatformClient {
380
380
  const _authRequest = yield this._options.authProvider.getAuthRequest();
381
381
  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);
382
382
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
383
- 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)}`),
383
+ 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)}`),
384
384
  method: "PATCH",
385
385
  headers: _headers,
386
386
  contentType: "application/json",
@@ -574,7 +574,7 @@ export class PlatformClient {
574
574
  const _authRequest = yield this._options.authProvider.getAuthRequest();
575
575
  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);
576
576
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
577
- 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, `members/${core.url.encodePathParam(userId)}/app-roles/${core.url.encodePathParam(app)}`),
577
+ 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, `members/${core.url.encodePathParam(userId, errors.TaktoriaError)}/app-roles/${core.url.encodePathParam(app, errors.TaktoriaError)}`),
578
578
  method: "PUT",
579
579
  headers: _headers,
580
580
  contentType: "application/json",
@@ -56,7 +56,7 @@ export class PostsClient {
56
56
  const _authRequest = yield this._options.authProvider.getAuthRequest();
57
57
  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);
58
58
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
59
- 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)}/posts`),
59
+ 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)}/posts`),
60
60
  method: "GET",
61
61
  headers: _headers,
62
62
  queryString: core.url
@@ -141,7 +141,7 @@ export class PostsClient {
141
141
  const _authRequest = yield this._options.authProvider.getAuthRequest();
142
142
  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);
143
143
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
144
- 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)}/posts`),
144
+ 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)}/posts`),
145
145
  method: "POST",
146
146
  headers: _headers,
147
147
  contentType: "application/json",
@@ -248,7 +248,7 @@ export class PostsClient {
248
248
  const _authRequest = yield this._options.authProvider.getAuthRequest();
249
249
  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);
250
250
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
251
- 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)}/posts/${core.url.encodePathParam(postId)}`),
251
+ 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)}/posts/${core.url.encodePathParam(postId, errors.TaktoriaError)}`),
252
252
  method: "PATCH",
253
253
  headers: _headers,
254
254
  contentType: "application/json",
@@ -216,7 +216,7 @@ export class ProcessClient {
216
216
  const _authRequest = yield this._options.authProvider.getAuthRequest();
217
217
  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);
218
218
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
219
- 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, `teams/functional/${core.url.encodePathParam(teamId)}`),
219
+ 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, `teams/functional/${core.url.encodePathParam(teamId, errors.TaktoriaError)}`),
220
220
  method: "GET",
221
221
  headers: _headers,
222
222
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -296,7 +296,7 @@ export class ProcessClient {
296
296
  const _authRequest = yield this._options.authProvider.getAuthRequest();
297
297
  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);
298
298
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
299
- 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, `teams/functional/${core.url.encodePathParam(teamId)}`),
299
+ 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, `teams/functional/${core.url.encodePathParam(teamId, errors.TaktoriaError)}`),
300
300
  method: "PATCH",
301
301
  headers: _headers,
302
302
  contentType: "application/json",
@@ -404,7 +404,7 @@ export class ProcessClient {
404
404
  const _authRequest = yield this._options.authProvider.getAuthRequest();
405
405
  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);
406
406
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
407
- 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, `teams/functional/${core.url.encodePathParam(teamId)}`),
407
+ 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, `teams/functional/${core.url.encodePathParam(teamId, errors.TaktoriaError)}`),
408
408
  method: "DELETE",
409
409
  headers: _headers,
410
410
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -477,7 +477,7 @@ export class ProcessClient {
477
477
  const _authRequest = yield this._options.authProvider.getAuthRequest();
478
478
  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);
479
479
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
480
- 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, `teams/functional/${core.url.encodePathParam(teamId)}/members`),
480
+ 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, `teams/functional/${core.url.encodePathParam(teamId, errors.TaktoriaError)}/members`),
481
481
  method: "GET",
482
482
  headers: _headers,
483
483
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -560,7 +560,7 @@ export class ProcessClient {
560
560
  const _authRequest = yield this._options.authProvider.getAuthRequest();
561
561
  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);
562
562
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
563
- 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, `teams/functional/${core.url.encodePathParam(teamId)}/members`),
563
+ 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, `teams/functional/${core.url.encodePathParam(teamId, errors.TaktoriaError)}/members`),
564
564
  method: "PUT",
565
565
  headers: _headers,
566
566
  contentType: "application/json",
@@ -1006,7 +1006,7 @@ export class ProcessClient {
1006
1006
  const _authRequest = yield this._options.authProvider.getAuthRequest();
1007
1007
  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);
1008
1008
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
1009
- 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, `launch-templates/${core.url.encodePathParam(launchTemplateId)}`),
1009
+ 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, `launch-templates/${core.url.encodePathParam(launchTemplateId, errors.TaktoriaError)}`),
1010
1010
  method: "GET",
1011
1011
  headers: _headers,
1012
1012
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -1086,7 +1086,7 @@ export class ProcessClient {
1086
1086
  const _authRequest = yield this._options.authProvider.getAuthRequest();
1087
1087
  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);
1088
1088
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
1089
- 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, `launch-templates/${core.url.encodePathParam(launchTemplateId)}`),
1089
+ 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, `launch-templates/${core.url.encodePathParam(launchTemplateId, errors.TaktoriaError)}`),
1090
1090
  method: "PATCH",
1091
1091
  headers: _headers,
1092
1092
  contentType: "application/json",
@@ -1186,7 +1186,7 @@ export class ProcessClient {
1186
1186
  const _authRequest = yield this._options.authProvider.getAuthRequest();
1187
1187
  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);
1188
1188
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
1189
- 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, `launch-templates/${core.url.encodePathParam(launchTemplateId)}`),
1189
+ 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, `launch-templates/${core.url.encodePathParam(launchTemplateId, errors.TaktoriaError)}`),
1190
1190
  method: "DELETE",
1191
1191
  headers: _headers,
1192
1192
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -1540,7 +1540,7 @@ export class ProcessClient {
1540
1540
  const _authRequest = yield this._options.authProvider.getAuthRequest();
1541
1541
  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);
1542
1542
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
1543
- 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, `step-templates/${core.url.encodePathParam(templateId)}`),
1543
+ 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, `step-templates/${core.url.encodePathParam(templateId, errors.TaktoriaError)}`),
1544
1544
  method: "PATCH",
1545
1545
  headers: _headers,
1546
1546
  contentType: "application/json",
@@ -1637,7 +1637,7 @@ export class ProcessClient {
1637
1637
  const _authRequest = yield this._options.authProvider.getAuthRequest();
1638
1638
  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);
1639
1639
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
1640
- 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, `step-templates/${core.url.encodePathParam(templateId)}`),
1640
+ 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, `step-templates/${core.url.encodePathParam(templateId, errors.TaktoriaError)}`),
1641
1641
  method: "DELETE",
1642
1642
  headers: _headers,
1643
1643
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -145,7 +145,7 @@ export class SlackConnectionsClient {
145
145
  const _authRequest = yield this._options.authProvider.getAuthRequest();
146
146
  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);
147
147
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
148
- 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, `/slack-connections/${core.url.encodePathParam(connectionId)}`),
148
+ 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, `/slack-connections/${core.url.encodePathParam(connectionId, errors.TaktoriaError)}`),
149
149
  method: "DELETE",
150
150
  headers: _headers,
151
151
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -44,7 +44,7 @@ export class StepsClient {
44
44
  const _authRequest = yield this._options.authProvider.getAuthRequest();
45
45
  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);
46
46
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
47
- 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`),
47
+ 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`),
48
48
  method: "GET",
49
49
  headers: _headers,
50
50
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -122,7 +122,7 @@ export class StepsClient {
122
122
  const _authRequest = yield this._options.authProvider.getAuthRequest();
123
123
  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);
124
124
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
125
- 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`),
125
+ 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`),
126
126
  method: "POST",
127
127
  headers: _headers,
128
128
  contentType: "application/json",
@@ -230,7 +230,7 @@ export class StepsClient {
230
230
  const _authRequest = yield this._options.authProvider.getAuthRequest();
231
231
  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);
232
232
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
233
- 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`),
233
+ 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`),
234
234
  method: "POST",
235
235
  headers: _headers,
236
236
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -310,7 +310,7 @@ export class StepsClient {
310
310
  const _authRequest = yield this._options.authProvider.getAuthRequest();
311
311
  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);
312
312
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
313
- 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)}`),
313
+ 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)}`),
314
314
  method: "GET",
315
315
  headers: _headers,
316
316
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -385,7 +385,7 @@ export class StepsClient {
385
385
  const _authRequest = yield this._options.authProvider.getAuthRequest();
386
386
  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);
387
387
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
388
- 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)}`),
388
+ 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)}`),
389
389
  method: "PATCH",
390
390
  headers: _headers,
391
391
  contentType: "application/json",
@@ -480,7 +480,7 @@ export class StepsClient {
480
480
  const _authRequest = yield this._options.authProvider.getAuthRequest();
481
481
  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);
482
482
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
483
- 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)}`),
483
+ 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)}`),
484
484
  method: "DELETE",
485
485
  headers: _headers,
486
486
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
@@ -558,7 +558,7 @@ export class StepsClient {
558
558
  const _authRequest = yield this._options.authProvider.getAuthRequest();
559
559
  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);
560
560
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
561
- 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`),
561
+ 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`),
562
562
  method: "POST",
563
563
  headers: _headers,
564
564
  contentType: "application/json",
@@ -665,7 +665,7 @@ export class StepsClient {
665
665
  const _authRequest = yield this._options.authProvider.getAuthRequest();
666
666
  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);
667
667
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
668
- 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`),
668
+ 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`),
669
669
  method: "POST",
670
670
  headers: _headers,
671
671
  contentType: "application/json",
@@ -779,7 +779,7 @@ export class StepsClient {
779
779
  const _authRequest = yield this._options.authProvider.getAuthRequest();
780
780
  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);
781
781
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
782
- 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`),
782
+ 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`),
783
783
  method: "POST",
784
784
  headers: _headers,
785
785
  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
  }
@@ -31,7 +31,11 @@ export class FormDataWrapper {
31
31
  // noop
32
32
  });
33
33
  }
34
- append(key, value) {
34
+ append(key, value, contentType) {
35
+ if (contentType != null) {
36
+ this.fd.append(key, new Blob([String(value)], { type: contentType }), "");
37
+ return;
38
+ }
35
39
  this.fd.append(key, String(value));
36
40
  }
37
41
  appendFile(key, value) {
@@ -36,7 +36,9 @@ function validateAndTransformArray(value, transformItem) {
36
36
  result.push(item.value);
37
37
  }
38
38
  else {
39
- errors.push(...item.errors);
39
+ for (const error of item.errors) {
40
+ errors.push(error);
41
+ }
40
42
  }
41
43
  }
42
44
  if (errors.length === 0) {
@@ -184,7 +184,9 @@ function validateAndTransformObject({ value, requiredKeys, requiredKeysSet, getP
184
184
  }
185
185
  else {
186
186
  transformed[preTransformedKey] = preTransformedItemValue;
187
- errors.push(...value.errors);
187
+ for (const error of value.errors) {
188
+ errors.push(error);
189
+ }
188
190
  }
189
191
  }
190
192
  else {
@@ -113,10 +113,14 @@ function validateAndTransformRecord({ value, isKeyNumeric, transformKey, transfo
113
113
  }
114
114
  else {
115
115
  if (!transformedKey.ok) {
116
- errors.push(...transformedKey.errors);
116
+ for (const error of transformedKey.errors) {
117
+ errors.push(error);
118
+ }
117
119
  }
118
120
  if (!transformedValue.ok) {
119
- errors.push(...transformedValue.errors);
121
+ for (const error of transformedValue.errors) {
122
+ errors.push(error);
123
+ }
120
124
  }
121
125
  }
122
126
  }
@@ -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,4 +1,4 @@
1
- export function encodePathParam(param) {
1
+ export function encodePathParam(param, InvalidPathParameterError) {
2
2
  if (param === null) {
3
3
  return "null";
4
4
  }
@@ -14,5 +14,11 @@ export function encodePathParam(param) {
14
14
  param = String(param);
15
15
  break;
16
16
  }
17
- return encodeURIComponent(param);
17
+ const encoded = encodeURIComponent(param);
18
+ // "." and ".." are dot segments: URL resolution would remove them and send the request to a different path.
19
+ if (encoded === "." || encoded === "..") {
20
+ const message = `Invalid path parameter "${encoded}": "." and ".." are not allowed because they change the request path.`;
21
+ throw InvalidPathParameterError != null ? new InvalidPathParameterError({ message }) : new Error(message);
22
+ }
23
+ return encoded;
18
24
  }