@corti/sdk 7.0.0-rc → 7.0.0-rc.2

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 (148) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/api/resources/documents/resources/sections/client/Client.d.ts +32 -2
  4. package/dist/cjs/api/resources/documents/resources/sections/client/Client.js +76 -2
  5. package/dist/cjs/api/resources/documents/resources/sections/resources/versions/client/Client.d.ts +2 -2
  6. package/dist/cjs/api/resources/documents/resources/sections/resources/versions/client/Client.js +2 -2
  7. package/dist/cjs/api/resources/documents/resources/templates/client/Client.d.ts +2 -2
  8. package/dist/cjs/api/resources/documents/resources/templates/client/Client.js +2 -2
  9. package/dist/cjs/api/resources/documents/resources/templates/resources/versions/client/Client.d.ts +2 -2
  10. package/dist/cjs/api/resources/documents/resources/templates/resources/versions/client/Client.js +2 -2
  11. package/dist/cjs/api/resources/transcripts/client/requests/TranscriptsCreateRequest.d.ts +1 -1
  12. package/dist/cjs/api/types/CodesConditionGroup.d.ts +1 -1
  13. package/dist/cjs/api/types/CommonA2AConnector.d.ts +2 -2
  14. package/dist/cjs/api/types/CommonAgentConnector.d.ts +2 -2
  15. package/dist/cjs/api/types/CommonConnectorAuth.d.ts +2 -0
  16. package/dist/cjs/api/types/CommonConnectorAuthEntry.d.ts +5 -0
  17. package/dist/cjs/api/types/CommonConnectorAuthEntry.js +3 -0
  18. package/dist/cjs/api/types/CommonMcpConnector.d.ts +2 -2
  19. package/dist/cjs/api/types/CommonRegistryConnectorProvisioned.d.ts +2 -2
  20. package/dist/cjs/api/types/CommonSchemaConnector.d.ts +2 -2
  21. package/dist/cjs/api/types/GuidedSectionImpactResponse.d.ts +8 -0
  22. package/dist/cjs/api/types/GuidedSectionImpactResponse.js +3 -0
  23. package/dist/cjs/api/types/GuidedSectionImpactSectionItem.d.ts +11 -0
  24. package/dist/cjs/api/types/GuidedSectionImpactSectionItem.js +3 -0
  25. package/dist/cjs/api/types/GuidedSectionImpactSections.d.ts +10 -0
  26. package/dist/cjs/api/types/GuidedSectionImpactSections.js +3 -0
  27. package/dist/cjs/api/types/GuidedSectionImpactTemplateDirect.d.ts +10 -0
  28. package/dist/cjs/api/types/GuidedSectionImpactTemplateDirect.js +3 -0
  29. package/dist/cjs/api/types/GuidedSectionImpactTemplateInheritedSection.d.ts +12 -0
  30. package/dist/cjs/api/types/GuidedSectionImpactTemplateInheritedSection.js +3 -0
  31. package/dist/cjs/api/types/GuidedSectionImpactTemplateInheritedTemplate.d.ts +12 -0
  32. package/dist/cjs/api/types/GuidedSectionImpactTemplateInheritedTemplate.js +3 -0
  33. package/dist/cjs/api/types/GuidedSectionImpactTemplateItem.d.ts +2 -0
  34. package/dist/cjs/api/types/GuidedSectionImpactTemplateItem.js +3 -0
  35. package/dist/cjs/api/types/GuidedSectionImpactTemplates.d.ts +10 -0
  36. package/dist/cjs/api/types/GuidedSectionImpactTemplates.js +3 -0
  37. package/dist/cjs/api/types/index.d.ts +9 -0
  38. package/dist/cjs/api/types/index.js +9 -0
  39. package/dist/cjs/serialization/types/CodesConditionGroup.d.ts +1 -1
  40. package/dist/cjs/serialization/types/CodesConditionGroup.js +1 -3
  41. package/dist/cjs/serialization/types/CommonA2AConnector.d.ts +2 -2
  42. package/dist/cjs/serialization/types/CommonA2AConnector.js +2 -2
  43. package/dist/cjs/serialization/types/CommonAgentConnector.d.ts +2 -2
  44. package/dist/cjs/serialization/types/CommonAgentConnector.js +2 -2
  45. package/dist/cjs/serialization/types/CommonConnectorAuth.d.ts +1 -0
  46. package/dist/cjs/serialization/types/CommonConnectorAuth.js +1 -0
  47. package/dist/cjs/serialization/types/CommonConnectorAuthEntry.d.ts +8 -0
  48. package/dist/cjs/serialization/types/CommonConnectorAuthEntry.js +6 -0
  49. package/dist/cjs/serialization/types/CommonMcpConnector.d.ts +2 -2
  50. package/dist/cjs/serialization/types/CommonMcpConnector.js +2 -2
  51. package/dist/cjs/serialization/types/CommonRegistryConnectorProvisioned.d.ts +2 -2
  52. package/dist/cjs/serialization/types/CommonRegistryConnectorProvisioned.js +2 -2
  53. package/dist/cjs/serialization/types/CommonSchemaConnector.d.ts +2 -2
  54. package/dist/cjs/serialization/types/CommonSchemaConnector.js +2 -2
  55. package/dist/cjs/serialization/types/GuidedSectionImpactResponse.d.ts +12 -0
  56. package/dist/cjs/serialization/types/GuidedSectionImpactResponse.js +44 -0
  57. package/dist/cjs/serialization/types/GuidedSectionImpactSectionItem.d.ts +11 -0
  58. package/dist/cjs/serialization/types/GuidedSectionImpactSectionItem.js +43 -0
  59. package/dist/cjs/serialization/types/GuidedSectionImpactSections.d.ts +11 -0
  60. package/dist/cjs/serialization/types/GuidedSectionImpactSections.js +43 -0
  61. package/dist/cjs/serialization/types/GuidedSectionImpactTemplateDirect.d.ts +11 -0
  62. package/dist/cjs/serialization/types/GuidedSectionImpactTemplateDirect.js +43 -0
  63. package/dist/cjs/serialization/types/GuidedSectionImpactTemplateInheritedSection.d.ts +12 -0
  64. package/dist/cjs/serialization/types/GuidedSectionImpactTemplateInheritedSection.js +44 -0
  65. package/dist/cjs/serialization/types/GuidedSectionImpactTemplateInheritedTemplate.d.ts +12 -0
  66. package/dist/cjs/serialization/types/GuidedSectionImpactTemplateInheritedTemplate.js +44 -0
  67. package/dist/cjs/serialization/types/GuidedSectionImpactTemplateItem.d.ts +10 -0
  68. package/dist/cjs/serialization/types/GuidedSectionImpactTemplateItem.js +46 -0
  69. package/dist/cjs/serialization/types/GuidedSectionImpactTemplates.d.ts +11 -0
  70. package/dist/cjs/serialization/types/GuidedSectionImpactTemplates.js +43 -0
  71. package/dist/cjs/serialization/types/index.d.ts +9 -0
  72. package/dist/cjs/serialization/types/index.js +9 -0
  73. package/dist/cjs/version.d.ts +1 -1
  74. package/dist/cjs/version.js +1 -1
  75. package/dist/esm/BaseClient.mjs +2 -2
  76. package/dist/esm/api/resources/documents/resources/sections/client/Client.d.mts +32 -2
  77. package/dist/esm/api/resources/documents/resources/sections/client/Client.mjs +76 -2
  78. package/dist/esm/api/resources/documents/resources/sections/resources/versions/client/Client.d.mts +2 -2
  79. package/dist/esm/api/resources/documents/resources/sections/resources/versions/client/Client.mjs +2 -2
  80. package/dist/esm/api/resources/documents/resources/templates/client/Client.d.mts +2 -2
  81. package/dist/esm/api/resources/documents/resources/templates/client/Client.mjs +2 -2
  82. package/dist/esm/api/resources/documents/resources/templates/resources/versions/client/Client.d.mts +2 -2
  83. package/dist/esm/api/resources/documents/resources/templates/resources/versions/client/Client.mjs +2 -2
  84. package/dist/esm/api/resources/transcripts/client/requests/TranscriptsCreateRequest.d.mts +1 -1
  85. package/dist/esm/api/types/CodesConditionGroup.d.mts +1 -1
  86. package/dist/esm/api/types/CommonA2AConnector.d.mts +2 -2
  87. package/dist/esm/api/types/CommonAgentConnector.d.mts +2 -2
  88. package/dist/esm/api/types/CommonConnectorAuth.d.mts +2 -0
  89. package/dist/esm/api/types/CommonConnectorAuthEntry.d.mts +5 -0
  90. package/dist/esm/api/types/CommonConnectorAuthEntry.mjs +2 -0
  91. package/dist/esm/api/types/CommonMcpConnector.d.mts +2 -2
  92. package/dist/esm/api/types/CommonRegistryConnectorProvisioned.d.mts +2 -2
  93. package/dist/esm/api/types/CommonSchemaConnector.d.mts +2 -2
  94. package/dist/esm/api/types/GuidedSectionImpactResponse.d.mts +8 -0
  95. package/dist/esm/api/types/GuidedSectionImpactResponse.mjs +2 -0
  96. package/dist/esm/api/types/GuidedSectionImpactSectionItem.d.mts +11 -0
  97. package/dist/esm/api/types/GuidedSectionImpactSectionItem.mjs +2 -0
  98. package/dist/esm/api/types/GuidedSectionImpactSections.d.mts +10 -0
  99. package/dist/esm/api/types/GuidedSectionImpactSections.mjs +2 -0
  100. package/dist/esm/api/types/GuidedSectionImpactTemplateDirect.d.mts +10 -0
  101. package/dist/esm/api/types/GuidedSectionImpactTemplateDirect.mjs +2 -0
  102. package/dist/esm/api/types/GuidedSectionImpactTemplateInheritedSection.d.mts +12 -0
  103. package/dist/esm/api/types/GuidedSectionImpactTemplateInheritedSection.mjs +2 -0
  104. package/dist/esm/api/types/GuidedSectionImpactTemplateInheritedTemplate.d.mts +12 -0
  105. package/dist/esm/api/types/GuidedSectionImpactTemplateInheritedTemplate.mjs +2 -0
  106. package/dist/esm/api/types/GuidedSectionImpactTemplateItem.d.mts +2 -0
  107. package/dist/esm/api/types/GuidedSectionImpactTemplateItem.mjs +2 -0
  108. package/dist/esm/api/types/GuidedSectionImpactTemplates.d.mts +10 -0
  109. package/dist/esm/api/types/GuidedSectionImpactTemplates.mjs +2 -0
  110. package/dist/esm/api/types/index.d.mts +9 -0
  111. package/dist/esm/api/types/index.mjs +9 -0
  112. package/dist/esm/serialization/types/CodesConditionGroup.d.mts +1 -1
  113. package/dist/esm/serialization/types/CodesConditionGroup.mjs +1 -3
  114. package/dist/esm/serialization/types/CommonA2AConnector.d.mts +2 -2
  115. package/dist/esm/serialization/types/CommonA2AConnector.mjs +2 -2
  116. package/dist/esm/serialization/types/CommonAgentConnector.d.mts +2 -2
  117. package/dist/esm/serialization/types/CommonAgentConnector.mjs +2 -2
  118. package/dist/esm/serialization/types/CommonConnectorAuth.d.mts +1 -0
  119. package/dist/esm/serialization/types/CommonConnectorAuth.mjs +1 -0
  120. package/dist/esm/serialization/types/CommonConnectorAuthEntry.d.mts +8 -0
  121. package/dist/esm/serialization/types/CommonConnectorAuthEntry.mjs +3 -0
  122. package/dist/esm/serialization/types/CommonMcpConnector.d.mts +2 -2
  123. package/dist/esm/serialization/types/CommonMcpConnector.mjs +2 -2
  124. package/dist/esm/serialization/types/CommonRegistryConnectorProvisioned.d.mts +2 -2
  125. package/dist/esm/serialization/types/CommonRegistryConnectorProvisioned.mjs +2 -2
  126. package/dist/esm/serialization/types/CommonSchemaConnector.d.mts +2 -2
  127. package/dist/esm/serialization/types/CommonSchemaConnector.mjs +2 -2
  128. package/dist/esm/serialization/types/GuidedSectionImpactResponse.d.mts +12 -0
  129. package/dist/esm/serialization/types/GuidedSectionImpactResponse.mjs +8 -0
  130. package/dist/esm/serialization/types/GuidedSectionImpactSectionItem.d.mts +11 -0
  131. package/dist/esm/serialization/types/GuidedSectionImpactSectionItem.mjs +7 -0
  132. package/dist/esm/serialization/types/GuidedSectionImpactSections.d.mts +11 -0
  133. package/dist/esm/serialization/types/GuidedSectionImpactSections.mjs +7 -0
  134. package/dist/esm/serialization/types/GuidedSectionImpactTemplateDirect.d.mts +11 -0
  135. package/dist/esm/serialization/types/GuidedSectionImpactTemplateDirect.mjs +7 -0
  136. package/dist/esm/serialization/types/GuidedSectionImpactTemplateInheritedSection.d.mts +12 -0
  137. package/dist/esm/serialization/types/GuidedSectionImpactTemplateInheritedSection.mjs +8 -0
  138. package/dist/esm/serialization/types/GuidedSectionImpactTemplateInheritedTemplate.d.mts +12 -0
  139. package/dist/esm/serialization/types/GuidedSectionImpactTemplateInheritedTemplate.mjs +8 -0
  140. package/dist/esm/serialization/types/GuidedSectionImpactTemplateItem.d.mts +10 -0
  141. package/dist/esm/serialization/types/GuidedSectionImpactTemplateItem.mjs +10 -0
  142. package/dist/esm/serialization/types/GuidedSectionImpactTemplates.d.mts +11 -0
  143. package/dist/esm/serialization/types/GuidedSectionImpactTemplates.mjs +7 -0
  144. package/dist/esm/serialization/types/index.d.mts +9 -0
  145. package/dist/esm/serialization/types/index.mjs +9 -0
  146. package/dist/esm/version.d.mts +1 -1
  147. package/dist/esm/version.mjs +1 -1
  148. package/package.json +1 -1
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Corti.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@corti/sdk",
46
- "X-Fern-SDK-Version": "7.0.0-rc",
47
- "User-Agent": "@corti/sdk/7.0.0-rc",
46
+ "X-Fern-SDK-Version": "7.0.0-rc.2",
47
+ "User-Agent": "@corti/sdk/7.0.0-rc.2",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  "Tenant-Name": options === null || options === void 0 ? void 0 : options.tenantName,
@@ -46,7 +46,7 @@ export declare class SectionsClient {
46
46
  /**
47
47
  * Returns the section with its published version fully resolved (inheritance chain walked
48
48
  * to fill missing fields). To see raw authored values without inheritance, use
49
- * GET /documents/sections/{sectionID}/versions/{versionID}.
49
+ * GET /documents/sections/:id/versions/:id .
50
50
  *
51
51
  * @param {string} sectionID
52
52
  * @param {SectionsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -59,7 +59,7 @@ export declare class SectionsClient {
59
59
  get(sectionID: string, requestOptions?: SectionsClient.RequestOptions): core.HttpResponsePromise<Corti.GuidedSection>;
60
60
  private __get;
61
61
  /**
62
- * Deletes a section and its versions. Returns 409 if other sections inherit from this section.
62
+ * Deletes a section and its versions. Returns `409` if other sections inherit from this section.
63
63
  *
64
64
  * @param {string} sectionID
65
65
  * @param {SectionsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -88,4 +88,34 @@ export declare class SectionsClient {
88
88
  */
89
89
  update(sectionID: string, request?: Corti.documents.GuidedSectionsUpdateRequest, requestOptions?: SectionsClient.RequestOptions): core.HttpResponsePromise<Corti.GuidedSection>;
90
90
  private __update;
91
+ /**
92
+ * Returns the templates and sections that a change to this section can affect.
93
+ *
94
+ * The `templates` group lists templates whose published version links this section or a
95
+ * descendant section. It also lists templates that inherit their section list from a parent
96
+ * template that links the section. The `sections` group lists the descendant sections that
97
+ * inherit from this section.
98
+ *
99
+ * Counts respect the caller's visibility, so the same section can return different
100
+ * counts for different callers.
101
+ *
102
+ * A template appears once. When a template reaches the section through more than one
103
+ * path, the response keeps the strongest path. The order is `direct`, then
104
+ * `inheritedSection`, then `inheritedTemplate`.
105
+ *
106
+ * Each `items` array holds at most 50 entries. When the 50-entry display cap or the
107
+ * inheritance depth cap removes entries, `truncated` is true.
108
+ *
109
+ * Returns `404` when the caller cannot see the section.
110
+ *
111
+ * @param {string} sectionID
112
+ * @param {SectionsClient.RequestOptions} requestOptions - Request-specific configuration.
113
+ *
114
+ * @throws {@link Corti.NotFoundError}
115
+ *
116
+ * @example
117
+ * await client.documents.sections.impact("sectionID")
118
+ */
119
+ impact(sectionID: string, requestOptions?: SectionsClient.RequestOptions): core.HttpResponsePromise<Corti.GuidedSectionImpactResponse>;
120
+ private __impact;
91
121
  }
@@ -196,7 +196,7 @@ class SectionsClient {
196
196
  /**
197
197
  * Returns the section with its published version fully resolved (inheritance chain walked
198
198
  * to fill missing fields). To see raw authored values without inheritance, use
199
- * GET /documents/sections/{sectionID}/versions/{versionID}.
199
+ * GET /documents/sections/:id/versions/:id .
200
200
  *
201
201
  * @param {string} sectionID
202
202
  * @param {SectionsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -253,7 +253,7 @@ class SectionsClient {
253
253
  });
254
254
  }
255
255
  /**
256
- * Deletes a section and its versions. Returns 409 if other sections inherit from this section.
256
+ * Deletes a section and its versions. Returns `409` if other sections inherit from this section.
257
257
  *
258
258
  * @param {string} sectionID
259
259
  * @param {SectionsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -371,5 +371,79 @@ class SectionsClient {
371
371
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/documents/sections/{sectionID}");
372
372
  });
373
373
  }
374
+ /**
375
+ * Returns the templates and sections that a change to this section can affect.
376
+ *
377
+ * The `templates` group lists templates whose published version links this section or a
378
+ * descendant section. It also lists templates that inherit their section list from a parent
379
+ * template that links the section. The `sections` group lists the descendant sections that
380
+ * inherit from this section.
381
+ *
382
+ * Counts respect the caller's visibility, so the same section can return different
383
+ * counts for different callers.
384
+ *
385
+ * A template appears once. When a template reaches the section through more than one
386
+ * path, the response keeps the strongest path. The order is `direct`, then
387
+ * `inheritedSection`, then `inheritedTemplate`.
388
+ *
389
+ * Each `items` array holds at most 50 entries. When the 50-entry display cap or the
390
+ * inheritance depth cap removes entries, `truncated` is true.
391
+ *
392
+ * Returns `404` when the caller cannot see the section.
393
+ *
394
+ * @param {string} sectionID
395
+ * @param {SectionsClient.RequestOptions} requestOptions - Request-specific configuration.
396
+ *
397
+ * @throws {@link Corti.NotFoundError}
398
+ *
399
+ * @example
400
+ * await client.documents.sections.impact("sectionID")
401
+ */
402
+ impact(sectionID, requestOptions) {
403
+ return core.HttpResponsePromise.fromPromise(this.__impact(sectionID, requestOptions));
404
+ }
405
+ __impact(sectionID, requestOptions) {
406
+ return __awaiter(this, void 0, void 0, function* () {
407
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
408
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
409
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "Tenant-Name": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantName) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.tenantName }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
410
+ const _response = yield core.fetcher({
411
+ url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment)).base, `documents/sections/${core.url.encodePathParam(sectionID)}/impact`),
412
+ method: "GET",
413
+ headers: _headers,
414
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
415
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
416
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
417
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
418
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
419
+ logging: this._options.logging,
420
+ });
421
+ if (_response.ok) {
422
+ return {
423
+ data: serializers.GuidedSectionImpactResponse.parseOrThrow(_response.body, {
424
+ unrecognizedObjectKeys: "passthrough",
425
+ allowUnrecognizedUnionMembers: true,
426
+ allowUnrecognizedEnumValues: true,
427
+ skipValidation: true,
428
+ breadcrumbsPrefix: ["response"],
429
+ }),
430
+ rawResponse: _response.rawResponse,
431
+ };
432
+ }
433
+ if (_response.error.reason === "status-code") {
434
+ switch (_response.error.statusCode) {
435
+ case 404:
436
+ throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
437
+ default:
438
+ throw new errors.CortiError({
439
+ statusCode: _response.error.statusCode,
440
+ body: _response.error.body,
441
+ rawResponse: _response.rawResponse,
442
+ });
443
+ }
444
+ }
445
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/documents/sections/{sectionID}/impact");
446
+ });
447
+ }
374
448
  }
375
449
  exports.SectionsClient = SectionsClient;
@@ -11,7 +11,7 @@ export declare class VersionsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<VersionsClient.Options>;
12
12
  constructor(options: VersionsClient.Options);
13
13
  /**
14
- * Returns raw authored section versions without inheritance resolution. To see resolved content, use GET /sections/{sectionID} instead.
14
+ * Returns raw authored section versions without inheritance resolution. To see resolved content, use GET /sections/:id instead.
15
15
  *
16
16
  * @param {string} sectionID
17
17
  * @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -41,7 +41,7 @@ export declare class VersionsClient {
41
41
  create(sectionID: string, request: Corti.documents.sections.GuidedSectionsCreateVersionRequest, requestOptions?: VersionsClient.RequestOptions): core.HttpResponsePromise<Corti.GuidedSectionVersion>;
42
42
  private __create;
43
43
  /**
44
- * Returns raw authored section version without inheritance resolution. To see resolved content, use GET /sections/{sectionID} instead.
44
+ * Returns raw authored section version without inheritance resolution. To see resolved content, use GET /sections/:id instead.
45
45
  *
46
46
  * @param {string} sectionID
47
47
  * @param {string} versionID
@@ -56,7 +56,7 @@ class VersionsClient {
56
56
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
57
57
  }
58
58
  /**
59
- * Returns raw authored section versions without inheritance resolution. To see resolved content, use GET /sections/{sectionID} instead.
59
+ * Returns raw authored section versions without inheritance resolution. To see resolved content, use GET /sections/:id instead.
60
60
  *
61
61
  * @param {string} sectionID
62
62
  * @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -182,7 +182,7 @@ class VersionsClient {
182
182
  });
183
183
  }
184
184
  /**
185
- * Returns raw authored section version without inheritance resolution. To see resolved content, use GET /sections/{sectionID} instead.
185
+ * Returns raw authored section version without inheritance resolution. To see resolved content, use GET /sections/:id instead.
186
186
  *
187
187
  * @param {string} sectionID
188
188
  * @param {string} versionID
@@ -46,7 +46,7 @@ export declare class TemplatesClient {
46
46
  /**
47
47
  * Returns the template with its published version fully resolved (inheritance walked,
48
48
  * sections expanded with their own inheritance applied). To see raw authored
49
- * values without inheritance, use GET /documents/templates/{templateID}/versions/{versionID}.
49
+ * values without inheritance, use GET /documents/templates/:id/versions/:id .
50
50
  *
51
51
  * @param {string} templateID
52
52
  * @param {TemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -59,7 +59,7 @@ export declare class TemplatesClient {
59
59
  get(templateID: string, requestOptions?: TemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.GuidedTemplate>;
60
60
  private __get;
61
61
  /**
62
- * Deletes a template and its versions. Returns 409 if other templates or sections inherit from this template.
62
+ * Deletes a template and its versions. Returns `409` if other templates or sections inherit from this template.
63
63
  *
64
64
  * @param {string} templateID
65
65
  * @param {TemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -196,7 +196,7 @@ class TemplatesClient {
196
196
  /**
197
197
  * Returns the template with its published version fully resolved (inheritance walked,
198
198
  * sections expanded with their own inheritance applied). To see raw authored
199
- * values without inheritance, use GET /documents/templates/{templateID}/versions/{versionID}.
199
+ * values without inheritance, use GET /documents/templates/:id/versions/:id .
200
200
  *
201
201
  * @param {string} templateID
202
202
  * @param {TemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -253,7 +253,7 @@ class TemplatesClient {
253
253
  });
254
254
  }
255
255
  /**
256
- * Deletes a template and its versions. Returns 409 if other templates or sections inherit from this template.
256
+ * Deletes a template and its versions. Returns `409` if other templates or sections inherit from this template.
257
257
  *
258
258
  * @param {string} templateID
259
259
  * @param {TemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -12,7 +12,7 @@ export declare class VersionsClient {
12
12
  constructor(options: VersionsClient.Options);
13
13
  /**
14
14
  * Returns raw authored template versions without inheritance resolution or section expansion.
15
- * To see resolved content, use GET /documents/templates/{templateID} instead.
15
+ * To see resolved content, use GET /documents/templates/:id instead.
16
16
  *
17
17
  * @param {string} templateID
18
18
  * @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -43,7 +43,7 @@ export declare class VersionsClient {
43
43
  private __create;
44
44
  /**
45
45
  * Returns the raw authored template version without inheritance resolution or section expansion.
46
- * To see resolved content, use GET /documents/templates/{templateID} instead.
46
+ * To see resolved content, use GET /documents/templates/:id instead.
47
47
  *
48
48
  * @param {string} templateID
49
49
  * @param {string} versionID
@@ -57,7 +57,7 @@ class VersionsClient {
57
57
  }
58
58
  /**
59
59
  * Returns raw authored template versions without inheritance resolution or section expansion.
60
- * To see resolved content, use GET /documents/templates/{templateID} instead.
60
+ * To see resolved content, use GET /documents/templates/:id instead.
61
61
  *
62
62
  * @param {string} templateID
63
63
  * @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -184,7 +184,7 @@ class VersionsClient {
184
184
  }
185
185
  /**
186
186
  * Returns the raw authored template version without inheritance resolution or section expansion.
187
- * To see resolved content, use GET /documents/templates/{templateID} instead.
187
+ * To see resolved content, use GET /documents/templates/:id instead.
188
188
  *
189
189
  * @param {string} templateID
190
190
  * @param {string} versionID
@@ -22,7 +22,7 @@ export interface TranscriptsCreateRequest {
22
22
  isMultichannel?: boolean;
23
23
  /** If true, separates speakers within an audio channel returning incrementing ids for transcript segments. */
24
24
  diarize?: boolean;
25
- /** An array of participants, each specifying a free-form role and an assigned audio channel in the recording. For raw PCM, the channel count must be defined; otherwise, the number of audio channels is resolved from the audio itself, not from the declared participants. Leave empty when diarize: true. See [audio formatting](https://docs.corti.ai/stt/audio) for full details. */
25
+ /** An array of participants, each specifying a free-form role and an assigned audio channel in the recording. For raw PCM, the channel count must be defined; otherwise, the number of audio channels is resolved from the audio itself, not from the declared participants. Optional regardless of isMultichannel or diarize settings. Multiple participants may be assigned to the same channel. See [audio formatting](https://docs.corti.ai/stt/audio) for full details. */
26
26
  participants?: Corti.TranscriptsParticipant[];
27
27
  /** If true, the request will return immediately with a 202 status and the transcript will be processed asynchronously. Poll [Get Transcript Status](/api-reference/transcripts/get-transcript-status) to check transcript processing status - `processing`, `completed`, `failed`. */
28
28
  async?: boolean;
@@ -6,5 +6,5 @@ export interface CodesConditionGroup {
6
6
  /** `all` ANDs conditions (every condition must match). `any` ORs them (at least one must match). Omit when `conditions` has a single element. */
7
7
  match?: Corti.CodesConditionGroupMatch;
8
8
  /** Conditions or nested groups combined per `match`. Maximum nesting depth: 3. */
9
- conditions?: Corti.CodesConditionGroupConditionsItem[];
9
+ conditions: Corti.CodesConditionGroupConditionsItem[];
10
10
  }
@@ -16,6 +16,6 @@ export interface CommonA2AConnector {
16
16
  id?: Corti.CommonConnectorIdValue;
17
17
  /** Whether the connector is active for invocations. Only `schema` connectors return this field today; `mcp`, `registry`, `agent`, and `a2a` connectors omit it (treat as enabled). */
18
18
  enabled?: boolean;
19
- /** Authentication configuration. */
20
- auth?: Corti.CommonConnectorAuth;
19
+ /** Authentication configuration */
20
+ auth?: Corti.CommonConnectorAuthEntry[];
21
21
  }
@@ -13,6 +13,6 @@ export interface CommonAgentConnector {
13
13
  id?: Corti.CommonConnectorIdValue;
14
14
  /** Whether the connector is active for invocations. Only `schema` connectors return this field today; `mcp`, `registry`, `agent`, and `a2a` connectors omit it (treat as enabled). */
15
15
  enabled?: boolean;
16
- /** Authentication configuration. */
17
- auth?: Corti.CommonConnectorAuth;
16
+ /** Authentication configuration */
17
+ auth?: Corti.CommonConnectorAuthEntry[];
18
18
  }
@@ -20,4 +20,6 @@ export interface CommonConnectorAuth {
20
20
  requiredHeaders?: string[];
21
21
  /** Header names the client may optionally send. Headers not in requiredHeaders or optionalHeaders are rejected as undeclared. */
22
22
  optionalHeaders?: string[];
23
+ /** Name of the underlying resource to authenticate to. Set on connector responses that may be backed by multiple underlying resources. Never required on input and ignored when attaching connectors. */
24
+ name?: string;
23
25
  }
@@ -0,0 +1,5 @@
1
+ import type * as Corti from "../index.js";
2
+ /**
3
+ * Authentication configuration for a single underlying resource.
4
+ */
5
+ export type CommonConnectorAuthEntry = Corti.CommonConnectorAuth;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -16,6 +16,6 @@ export interface CommonMcpConnector {
16
16
  id?: Corti.CommonConnectorIdValue;
17
17
  /** Whether the connector is active for invocations. Only `schema` connectors return this field today; `mcp`, `registry`, `agent`, and `a2a` connectors omit it (treat as enabled). */
18
18
  enabled?: boolean;
19
- /** Authentication configuration. */
20
- auth?: Corti.CommonConnectorAuth;
19
+ /** Authentication configuration */
20
+ auth?: Corti.CommonConnectorAuthEntry[];
21
21
  }
@@ -16,6 +16,6 @@ export interface CommonRegistryConnectorProvisioned {
16
16
  id?: Corti.CommonConnectorIdValue;
17
17
  /** Whether the connector is active for invocations. Only `schema` connectors return this field today; `mcp`, `registry`, `agent`, and `a2a` connectors omit it (treat as enabled). */
18
18
  enabled?: boolean;
19
- /** Authentication configuration. */
20
- auth?: Corti.CommonConnectorAuth;
19
+ /** Authentication configuration */
20
+ auth?: Corti.CommonConnectorAuthEntry[];
21
21
  }
@@ -20,6 +20,6 @@ export interface CommonSchemaConnector {
20
20
  id?: Corti.CommonConnectorIdValue;
21
21
  /** Whether the connector is active for invocations. Only `schema` connectors return this field today; `mcp`, `registry`, `agent`, and `a2a` connectors omit it (treat as enabled). */
22
22
  enabled?: boolean;
23
- /** Authentication configuration. */
24
- auth?: Corti.CommonConnectorAuth;
23
+ /** Authentication configuration */
24
+ auth?: Corti.CommonConnectorAuthEntry[];
25
25
  }
@@ -0,0 +1,8 @@
1
+ import type * as Corti from "../index.js";
2
+ /**
3
+ * The templates and sections that a change to a section can affect.
4
+ */
5
+ export interface GuidedSectionImpactResponse {
6
+ templates: Corti.GuidedSectionImpactTemplates;
7
+ sections: Corti.GuidedSectionImpactSections;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * A descendant section that inherits from this section.
3
+ */
4
+ export interface GuidedSectionImpactSectionItem {
5
+ /** The UUID of the descendant section. */
6
+ id: string;
7
+ /** The name of the descendant section. */
8
+ name: string;
9
+ /** The inheritance depth from this section. `1` is a direct child. */
10
+ depth: number;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import type * as Corti from "../index.js";
2
+ /**
3
+ * Descendant sections that inherit from this section.
4
+ */
5
+ export interface GuidedSectionImpactSections {
6
+ /** True when the group does not hold all the descendant sections. The 50-entry display cap or the inheritance depth cap can cause this. */
7
+ truncated: boolean;
8
+ /** The descendant sections. Holds at most 50 entries. */
9
+ items: Corti.GuidedSectionImpactSectionItem[];
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * The template links this section directly.
3
+ */
4
+ export interface GuidedSectionImpactTemplateDirect {
5
+ /** The UUID of the template. */
6
+ id: string;
7
+ /** The name of the template. */
8
+ name: string;
9
+ via: "direct";
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * The template links a descendant section that inherits from this section.
3
+ */
4
+ export interface GuidedSectionImpactTemplateInheritedSection {
5
+ /** The UUID of the template. */
6
+ id: string;
7
+ /** The name of the template. */
8
+ name: string;
9
+ via: "inheritedSection";
10
+ /** The descendant section that the template references. */
11
+ viaSectionId: string;
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * The template inherits its section list from a parent template that links this section.
3
+ */
4
+ export interface GuidedSectionImpactTemplateInheritedTemplate {
5
+ /** The UUID of the template. */
6
+ id: string;
7
+ /** The name of the template. */
8
+ name: string;
9
+ via: "inheritedTemplate";
10
+ /** The parent template that the template inherits from. */
11
+ viaTemplateId: string;
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ import type * as Corti from "../index.js";
2
+ export type GuidedSectionImpactTemplateItem = Corti.GuidedSectionImpactTemplateDirect | Corti.GuidedSectionImpactTemplateInheritedSection | Corti.GuidedSectionImpactTemplateInheritedTemplate;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import type * as Corti from "../index.js";
2
+ /**
3
+ * Templates whose generation output changes when this section changes.
4
+ */
5
+ export interface GuidedSectionImpactTemplates {
6
+ /** True when the group does not hold all the templates. The 50-entry display cap or the inheritance depth cap can cause this. */
7
+ truncated: boolean;
8
+ /** The templates that the change can affect. Holds at most 50 entries. */
9
+ items: Corti.GuidedSectionImpactTemplateItem[];
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -127,6 +127,7 @@ export * from "./CommonArtifactIdValue.js";
127
127
  export * from "./CommonArtifactResponse.js";
128
128
  export * from "./CommonCodingSystemEnum.js";
129
129
  export * from "./CommonConnectorAuth.js";
130
+ export * from "./CommonConnectorAuthEntry.js";
130
131
  export * from "./CommonConnectorAuthType.js";
131
132
  export * from "./CommonConnectorCreateRequest.js";
132
133
  export * from "./CommonConnectorIdValue.js";
@@ -234,6 +235,14 @@ export * from "./GuidedOutputSchema.js";
234
235
  export * from "./GuidedSection.js";
235
236
  export * from "./GuidedSectionGeneration.js";
236
237
  export * from "./GuidedSectionGenerationPartial.js";
238
+ export * from "./GuidedSectionImpactResponse.js";
239
+ export * from "./GuidedSectionImpactSectionItem.js";
240
+ export * from "./GuidedSectionImpactSections.js";
241
+ export * from "./GuidedSectionImpactTemplateDirect.js";
242
+ export * from "./GuidedSectionImpactTemplateInheritedSection.js";
243
+ export * from "./GuidedSectionImpactTemplateInheritedTemplate.js";
244
+ export * from "./GuidedSectionImpactTemplateItem.js";
245
+ export * from "./GuidedSectionImpactTemplates.js";
237
246
  export * from "./GuidedSectionInstructions.js";
238
247
  export * from "./GuidedSectionInstructionsOverride.js";
239
248
  export * from "./GuidedSectionInstructionsPartial.js";
@@ -143,6 +143,7 @@ __exportStar(require("./CommonArtifactIdValue.js"), exports);
143
143
  __exportStar(require("./CommonArtifactResponse.js"), exports);
144
144
  __exportStar(require("./CommonCodingSystemEnum.js"), exports);
145
145
  __exportStar(require("./CommonConnectorAuth.js"), exports);
146
+ __exportStar(require("./CommonConnectorAuthEntry.js"), exports);
146
147
  __exportStar(require("./CommonConnectorAuthType.js"), exports);
147
148
  __exportStar(require("./CommonConnectorCreateRequest.js"), exports);
148
149
  __exportStar(require("./CommonConnectorIdValue.js"), exports);
@@ -250,6 +251,14 @@ __exportStar(require("./GuidedOutputSchema.js"), exports);
250
251
  __exportStar(require("./GuidedSection.js"), exports);
251
252
  __exportStar(require("./GuidedSectionGeneration.js"), exports);
252
253
  __exportStar(require("./GuidedSectionGenerationPartial.js"), exports);
254
+ __exportStar(require("./GuidedSectionImpactResponse.js"), exports);
255
+ __exportStar(require("./GuidedSectionImpactSectionItem.js"), exports);
256
+ __exportStar(require("./GuidedSectionImpactSections.js"), exports);
257
+ __exportStar(require("./GuidedSectionImpactTemplateDirect.js"), exports);
258
+ __exportStar(require("./GuidedSectionImpactTemplateInheritedSection.js"), exports);
259
+ __exportStar(require("./GuidedSectionImpactTemplateInheritedTemplate.js"), exports);
260
+ __exportStar(require("./GuidedSectionImpactTemplateItem.js"), exports);
261
+ __exportStar(require("./GuidedSectionImpactTemplates.js"), exports);
253
262
  __exportStar(require("./GuidedSectionInstructions.js"), exports);
254
263
  __exportStar(require("./GuidedSectionInstructionsOverride.js"), exports);
255
264
  __exportStar(require("./GuidedSectionInstructionsPartial.js"), exports);
@@ -6,6 +6,6 @@ export declare const CodesConditionGroup: core.serialization.ObjectSchema<serial
6
6
  export declare namespace CodesConditionGroup {
7
7
  interface Raw {
8
8
  match?: CodesConditionGroupMatch.Raw | null;
9
- conditions?: serializers.CodesConditionGroupConditionsItem.Raw[] | null;
9
+ conditions: serializers.CodesConditionGroupConditionsItem.Raw[];
10
10
  }
11
11
  }
@@ -40,7 +40,5 @@ const serializers = __importStar(require("../index.js"));
40
40
  const CodesConditionGroupMatch_js_1 = require("./CodesConditionGroupMatch.js");
41
41
  exports.CodesConditionGroup = core.serialization.object({
42
42
  match: CodesConditionGroupMatch_js_1.CodesConditionGroupMatch.optional(),
43
- conditions: core.serialization
44
- .list(core.serialization.lazy(() => serializers.CodesConditionGroupConditionsItem))
45
- .optional(),
43
+ conditions: core.serialization.list(core.serialization.lazy(() => serializers.CodesConditionGroupConditionsItem)),
46
44
  });
@@ -1,7 +1,7 @@
1
1
  import type * as Corti from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
- import { CommonConnectorAuth } from "./CommonConnectorAuth.js";
4
+ import { CommonConnectorAuthEntry } from "./CommonConnectorAuthEntry.js";
5
5
  import { CommonConnectorIdValue } from "./CommonConnectorIdValue.js";
6
6
  export declare const CommonA2AConnector: core.serialization.ObjectSchema<serializers.CommonA2AConnector.Raw, Corti.CommonA2AConnector>;
7
7
  export declare namespace CommonA2AConnector {
@@ -11,6 +11,6 @@ export declare namespace CommonA2AConnector {
11
11
  url: string;
12
12
  id?: CommonConnectorIdValue.Raw | null;
13
13
  enabled?: boolean | null;
14
- auth?: CommonConnectorAuth.Raw | null;
14
+ auth?: CommonConnectorAuthEntry.Raw[] | null;
15
15
  }
16
16
  }
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.CommonA2AConnector = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
- const CommonConnectorAuth_js_1 = require("./CommonConnectorAuth.js");
39
+ const CommonConnectorAuthEntry_js_1 = require("./CommonConnectorAuthEntry.js");
40
40
  const CommonConnectorIdValue_js_1 = require("./CommonConnectorIdValue.js");
41
41
  exports.CommonA2AConnector = core.serialization.object({
42
42
  type: core.serialization.stringLiteral("a2a"),
@@ -44,5 +44,5 @@ exports.CommonA2AConnector = core.serialization.object({
44
44
  url: core.serialization.string(),
45
45
  id: CommonConnectorIdValue_js_1.CommonConnectorIdValue.optional(),
46
46
  enabled: core.serialization.boolean().optional(),
47
- auth: CommonConnectorAuth_js_1.CommonConnectorAuth.optional(),
47
+ auth: core.serialization.list(CommonConnectorAuthEntry_js_1.CommonConnectorAuthEntry).optional(),
48
48
  });