@corti/sdk 4.0.0-stt → 4.0.0-templates-fix

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 (109) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/documents/resources/sections/client/Client.d.ts +2 -10
  3. package/dist/cjs/api/resources/documents/resources/sections/client/Client.js +1 -9
  4. package/dist/cjs/api/resources/documents/resources/templates/client/Client.d.ts +2 -2
  5. package/dist/cjs/api/resources/documents/resources/templates/client/Client.js +1 -1
  6. package/dist/cjs/api/resources/transcripts/client/requests/TranscriptsCreateRequest.d.ts +1 -1
  7. package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestKeyterms.d.ts +2 -2
  8. package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestKeytermsTermsItem.d.ts +1 -1
  9. package/dist/cjs/api/types/GuidedSection.d.ts +6 -29
  10. package/dist/cjs/api/types/GuidedSectionListItem.d.ts +36 -0
  11. package/dist/cjs/api/types/GuidedSectionListItem.js +3 -0
  12. package/dist/cjs/api/types/{GuidedSectionSource.d.ts → GuidedSectionListItemSource.d.ts} +2 -2
  13. package/dist/cjs/api/types/{GuidedSectionSource.js → GuidedSectionListItemSource.js} +2 -2
  14. package/dist/cjs/api/types/GuidedSectionsCreateRequest.d.ts +1 -1
  15. package/dist/cjs/api/types/GuidedTemplate.d.ts +6 -29
  16. package/dist/cjs/api/types/GuidedTemplateListItem.d.ts +36 -0
  17. package/dist/cjs/api/types/GuidedTemplateListItem.js +3 -0
  18. package/dist/{esm/api/types/GuidedTemplateSource.d.mts → cjs/api/types/GuidedTemplateListItemSource.d.ts} +2 -2
  19. package/dist/cjs/api/types/{GuidedTemplateSource.js → GuidedTemplateListItemSource.js} +2 -2
  20. package/dist/cjs/api/types/GuidedTemplatesCreateRequest.d.ts +1 -1
  21. package/dist/cjs/api/types/StreamConfig.d.ts +1 -1
  22. package/dist/cjs/api/types/StreamConfigKeyterms.d.ts +2 -2
  23. package/dist/cjs/api/types/StreamConfigKeytermsTermsItem.d.ts +1 -1
  24. package/dist/cjs/api/types/TranscribeConfig.d.ts +1 -1
  25. package/dist/cjs/api/types/TranscribeConfigKeyterms.d.ts +2 -2
  26. package/dist/cjs/api/types/TranscribeConfigKeytermsTermsItem.d.ts +1 -1
  27. package/dist/cjs/api/types/index.d.ts +4 -2
  28. package/dist/cjs/api/types/index.js +4 -2
  29. package/dist/cjs/serialization/resources/documents/resources/sections/client/list.d.ts +3 -3
  30. package/dist/cjs/serialization/resources/documents/resources/sections/client/list.js +2 -2
  31. package/dist/cjs/serialization/resources/documents/resources/templates/client/list.d.ts +3 -3
  32. package/dist/cjs/serialization/resources/documents/resources/templates/client/list.js +2 -2
  33. package/dist/cjs/serialization/types/GuidedSection.d.ts +2 -17
  34. package/dist/cjs/serialization/types/GuidedSection.js +5 -18
  35. package/dist/cjs/serialization/types/GuidedSectionListItem.d.ts +24 -0
  36. package/dist/cjs/serialization/types/GuidedSectionListItem.js +56 -0
  37. package/dist/cjs/serialization/types/GuidedSectionListItemSource.d.ts +7 -0
  38. package/dist/cjs/serialization/types/{GuidedSectionSource.js → GuidedSectionListItemSource.js} +2 -2
  39. package/dist/cjs/serialization/types/GuidedSectionsCreateRequest.d.ts +1 -1
  40. package/dist/cjs/serialization/types/GuidedSectionsCreateRequest.js +1 -1
  41. package/dist/cjs/serialization/types/GuidedTemplate.d.ts +2 -17
  42. package/dist/cjs/serialization/types/GuidedTemplate.js +5 -18
  43. package/dist/cjs/serialization/types/GuidedTemplateListItem.d.ts +24 -0
  44. package/dist/cjs/serialization/types/GuidedTemplateListItem.js +56 -0
  45. package/dist/cjs/serialization/types/GuidedTemplateListItemSource.d.ts +7 -0
  46. package/dist/cjs/serialization/types/{GuidedTemplateSource.js → GuidedTemplateListItemSource.js} +2 -2
  47. package/dist/cjs/serialization/types/GuidedTemplatesCreateRequest.d.ts +1 -1
  48. package/dist/cjs/serialization/types/GuidedTemplatesCreateRequest.js +1 -1
  49. package/dist/cjs/serialization/types/index.d.ts +4 -2
  50. package/dist/cjs/serialization/types/index.js +4 -2
  51. package/dist/cjs/version.d.ts +1 -1
  52. package/dist/cjs/version.js +1 -1
  53. package/dist/esm/BaseClient.mjs +2 -2
  54. package/dist/esm/api/resources/documents/resources/sections/client/Client.d.mts +2 -10
  55. package/dist/esm/api/resources/documents/resources/sections/client/Client.mjs +1 -9
  56. package/dist/esm/api/resources/documents/resources/templates/client/Client.d.mts +2 -2
  57. package/dist/esm/api/resources/documents/resources/templates/client/Client.mjs +1 -1
  58. package/dist/esm/api/resources/transcripts/client/requests/TranscriptsCreateRequest.d.mts +1 -1
  59. package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestKeyterms.d.mts +2 -2
  60. package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestKeytermsTermsItem.d.mts +1 -1
  61. package/dist/esm/api/types/GuidedSection.d.mts +6 -29
  62. package/dist/esm/api/types/GuidedSectionListItem.d.mts +36 -0
  63. package/dist/esm/api/types/GuidedSectionListItem.mjs +2 -0
  64. package/dist/esm/api/types/{GuidedSectionSource.d.mts → GuidedSectionListItemSource.d.mts} +2 -2
  65. package/dist/esm/api/types/{GuidedSectionSource.mjs → GuidedSectionListItemSource.mjs} +1 -1
  66. package/dist/esm/api/types/GuidedSectionsCreateRequest.d.mts +1 -1
  67. package/dist/esm/api/types/GuidedTemplate.d.mts +6 -29
  68. package/dist/esm/api/types/GuidedTemplateListItem.d.mts +36 -0
  69. package/dist/esm/api/types/GuidedTemplateListItem.mjs +2 -0
  70. package/dist/{cjs/api/types/GuidedTemplateSource.d.ts → esm/api/types/GuidedTemplateListItemSource.d.mts} +2 -2
  71. package/dist/esm/api/types/{GuidedTemplateSource.mjs → GuidedTemplateListItemSource.mjs} +1 -1
  72. package/dist/esm/api/types/GuidedTemplatesCreateRequest.d.mts +1 -1
  73. package/dist/esm/api/types/StreamConfig.d.mts +1 -1
  74. package/dist/esm/api/types/StreamConfigKeyterms.d.mts +2 -2
  75. package/dist/esm/api/types/StreamConfigKeytermsTermsItem.d.mts +1 -1
  76. package/dist/esm/api/types/TranscribeConfig.d.mts +1 -1
  77. package/dist/esm/api/types/TranscribeConfigKeyterms.d.mts +2 -2
  78. package/dist/esm/api/types/TranscribeConfigKeytermsTermsItem.d.mts +1 -1
  79. package/dist/esm/api/types/index.d.mts +4 -2
  80. package/dist/esm/api/types/index.mjs +4 -2
  81. package/dist/esm/serialization/resources/documents/resources/sections/client/list.d.mts +3 -3
  82. package/dist/esm/serialization/resources/documents/resources/sections/client/list.mjs +2 -2
  83. package/dist/esm/serialization/resources/documents/resources/templates/client/list.d.mts +3 -3
  84. package/dist/esm/serialization/resources/documents/resources/templates/client/list.mjs +2 -2
  85. package/dist/esm/serialization/types/GuidedSection.d.mts +2 -17
  86. package/dist/esm/serialization/types/GuidedSection.mjs +5 -18
  87. package/dist/esm/serialization/types/GuidedSectionListItem.d.mts +24 -0
  88. package/dist/esm/serialization/types/GuidedSectionListItem.mjs +20 -0
  89. package/dist/esm/serialization/types/GuidedSectionListItemSource.d.mts +7 -0
  90. package/dist/esm/serialization/types/{GuidedTemplateSource.mjs → GuidedSectionListItemSource.mjs} +1 -1
  91. package/dist/esm/serialization/types/GuidedSectionsCreateRequest.d.mts +1 -1
  92. package/dist/esm/serialization/types/GuidedSectionsCreateRequest.mjs +1 -1
  93. package/dist/esm/serialization/types/GuidedTemplate.d.mts +2 -17
  94. package/dist/esm/serialization/types/GuidedTemplate.mjs +5 -18
  95. package/dist/esm/serialization/types/GuidedTemplateListItem.d.mts +24 -0
  96. package/dist/esm/serialization/types/GuidedTemplateListItem.mjs +20 -0
  97. package/dist/esm/serialization/types/GuidedTemplateListItemSource.d.mts +7 -0
  98. package/dist/esm/serialization/types/{GuidedSectionSource.mjs → GuidedTemplateListItemSource.mjs} +1 -1
  99. package/dist/esm/serialization/types/GuidedTemplatesCreateRequest.d.mts +1 -1
  100. package/dist/esm/serialization/types/GuidedTemplatesCreateRequest.mjs +1 -1
  101. package/dist/esm/serialization/types/index.d.mts +4 -2
  102. package/dist/esm/serialization/types/index.mjs +4 -2
  103. package/dist/esm/version.d.mts +1 -1
  104. package/dist/esm/version.mjs +1 -1
  105. package/package.json +1 -1
  106. package/dist/cjs/serialization/types/GuidedSectionSource.d.ts +0 -7
  107. package/dist/cjs/serialization/types/GuidedTemplateSource.d.ts +0 -7
  108. package/dist/esm/serialization/types/GuidedSectionSource.d.mts +0 -7
  109. package/dist/esm/serialization/types/GuidedTemplateSource.d.mts +0 -7
@@ -0,0 +1,36 @@
1
+ import type * as Corti from "../index.mjs";
2
+ /**
3
+ * Template metadata as returned by the LIST /documents/templates endpoint. Does not
4
+ * include the resolved `publishedVersion` — use GET /documents/templates/{templateID}
5
+ * to fetch a single template with its published version resolved.
6
+ */
7
+ export interface GuidedTemplateListItem {
8
+ /** The UUID of the template. */
9
+ id: string;
10
+ /** Reference to the template to inherit template instructions and sections from. Inherits from published version by default. */
11
+ inheritedFromId?: string | null;
12
+ /** True if the template was auto-generated based on the section-composed POST /documents request. */
13
+ autoGenerated?: boolean;
14
+ /** Whether this template was created by the user, a project-related API Client or is a Corti standard resource. */
15
+ source?: Corti.GuidedTemplateListItemSource;
16
+ /** The name of this template. Not passed to the LLM. */
17
+ name: string;
18
+ /** A description for this template. Not passed to the LLM. */
19
+ description?: string;
20
+ /** BCP 47 language tags this template has been tweaked for (e.g. `["fr", "de", "en-GB"]`). Empty means no language-specific tweaks. */
21
+ languages: string[];
22
+ /** ISO 3166-1 alpha-3 country codes this template has been tweaked for (e.g. `["BEL"]`). Empty means no region-specific tweaks. */
23
+ regions: string[];
24
+ /** Clinical specialties this template has been tweaked for. Empty means no specialty-specific tweaks. */
25
+ specialties: string[];
26
+ /** The available labels to use as query param filter in the LIST /templates endpoint. */
27
+ labels: Corti.GuidedLabel[];
28
+ /** The UUID of the creator of this template. */
29
+ createdBy?: string;
30
+ /** The original timestamp when the template was created. */
31
+ createdAt: Date;
32
+ /** The original timestamp when the template was last updated. */
33
+ updatedAt: Date;
34
+ /** Present when the template has been deleted. GET by ID still returns the full resource with this field populated. */
35
+ deletedAt?: Date | null;
36
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,7 +1,7 @@
1
1
  /** Whether this template was created by the user, a project-related API Client or is a Corti standard resource. */
2
- export declare const GuidedTemplateSource: {
2
+ export declare const GuidedTemplateListItemSource: {
3
3
  readonly User: "user";
4
4
  readonly Corti: "corti";
5
5
  readonly Project: "project";
6
6
  };
7
- export type GuidedTemplateSource = (typeof GuidedTemplateSource)[keyof typeof GuidedTemplateSource];
7
+ export type GuidedTemplateListItemSource = (typeof GuidedTemplateListItemSource)[keyof typeof GuidedTemplateListItemSource];
@@ -1,6 +1,6 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  /** Whether this template was created by the user, a project-related API Client or is a Corti standard resource. */
3
- export const GuidedTemplateSource = {
3
+ export const GuidedTemplateListItemSource = {
4
4
  User: "user",
5
5
  Corti: "corti",
6
6
  Project: "project",
@@ -1,2 +1,2 @@
1
1
  import type * as Corti from "../index.mjs";
2
- export type GuidedTemplatesCreateRequest = Corti.GuidedTemplatesCreateFromScratchRequest | Corti.GuidedTemplatesCreateFromInheritanceRequest;
2
+ export type GuidedTemplatesCreateRequest = Corti.GuidedTemplatesCreateFromInheritanceRequest | Corti.GuidedTemplatesCreateFromScratchRequest;
@@ -9,6 +9,6 @@ export interface StreamConfig {
9
9
  audioFormat?: string;
10
10
  /** Define replacements to have terms (single words or multi-word phrases) replaced in final text output with your preferred style. For example, replace "BID" with "twice daily". Configuration is case insensitive and limited to 1,000 replacements per stream. */
11
11
  replacements?: Corti.StreamConfigReplacementsItem[];
12
- /** Define words, terms, and phrases to be recognized by Corti speech-to-text. Especially useful for proper nouns (e.g., surnames), but also supportive of words not being recognized consistently. Configuration is case sensitive and limited to 1,000 key terms per stream. */
12
+ /** Define words, terms, and phrases to be recognized by Corti speech-to-text. Especially useful for proper nouns (e.g., surnames), but also supportive of words not being recognized consistently. */
13
13
  keyterms?: Corti.StreamConfigKeyterms;
14
14
  }
@@ -1,8 +1,8 @@
1
1
  import type * as Corti from "../index.mjs";
2
2
  /**
3
- * Define words, terms, and phrases to be recognized by Corti speech-to-text. Especially useful for proper nouns (e.g., surnames), but also supportive of words not being recognized consistently. Configuration is case sensitive and limited to 1,000 key terms per stream.
3
+ * Define words, terms, and phrases to be recognized by Corti speech-to-text. Especially useful for proper nouns (e.g., surnames), but also supportive of words not being recognized consistently.
4
4
  */
5
5
  export interface StreamConfigKeyterms {
6
- /** Ordered list of words to be recognized. */
6
+ /** Ordered list of words to be recognized. Configuration is case sensitive and limited to 1,000 key terms per stream. */
7
7
  terms?: Corti.StreamConfigKeytermsTermsItem[];
8
8
  }
@@ -1,4 +1,4 @@
1
1
  export interface StreamConfigKeytermsTermsItem {
2
- /** The word to be recognized, defined in its expected written form. */
2
+ /** The word to be recognized, defined in its expected written form. A defined `term` is limited to a length of 50 characters. */
3
3
  term: string;
4
4
  }
@@ -16,6 +16,6 @@ export interface TranscribeConfig {
16
16
  audioFormat?: string;
17
17
  /** Define replacements to have terms (single words or multi-word phrases) replaced in final text output with your preferred style. For example, replace "BID" with "twice daily". Configuration is case insensitive and limited to 1,000 replacements per stream. */
18
18
  replacements?: Corti.TranscribeConfigReplacementsItem[];
19
- /** Define words, terms, and phrases to be recognized by Corti speech-to-text. Especially useful for proper nouns (e.g., surnames), but also supportive of words not being recognized consistently. Configuration is case sensitive and limited to 1,000 key terms per stream. */
19
+ /** Define words, terms, and phrases to be recognized by Corti speech-to-text. Especially useful for proper nouns (e.g., surnames), but also supportive of words not being recognized consistently. */
20
20
  keyterms?: Corti.TranscribeConfigKeyterms;
21
21
  }
@@ -1,8 +1,8 @@
1
1
  import type * as Corti from "../index.mjs";
2
2
  /**
3
- * Define words, terms, and phrases to be recognized by Corti speech-to-text. Especially useful for proper nouns (e.g., surnames), but also supportive of words not being recognized consistently. Configuration is case sensitive and limited to 1,000 key terms per stream.
3
+ * Define words, terms, and phrases to be recognized by Corti speech-to-text. Especially useful for proper nouns (e.g., surnames), but also supportive of words not being recognized consistently.
4
4
  */
5
5
  export interface TranscribeConfigKeyterms {
6
- /** Ordered list of words to be recognized. */
6
+ /** Ordered list of words to be recognized. Configuration is case sensitive and limited to 1,000 key terms per stream. */
7
7
  terms?: Corti.TranscribeConfigKeytermsTermsItem[];
8
8
  }
@@ -1,4 +1,4 @@
1
1
  export interface TranscribeConfigKeytermsTermsItem {
2
- /** The word to be recognized, defined in its expected written form. */
2
+ /** The word to be recognized, defined in its expected written form. A defined `term` is limited to a length of 50 characters. */
3
3
  term: string;
4
4
  }
@@ -141,9 +141,10 @@ export * from "./GuidedSectionGenerationPartial.mjs";
141
141
  export * from "./GuidedSectionInstructions.mjs";
142
142
  export * from "./GuidedSectionInstructionsOverride.mjs";
143
143
  export * from "./GuidedSectionInstructionsPartial.mjs";
144
+ export * from "./GuidedSectionListItem.mjs";
145
+ export * from "./GuidedSectionListItemSource.mjs";
144
146
  export * from "./GuidedSectionOverride.mjs";
145
147
  export * from "./GuidedSectionOverrides.mjs";
146
- export * from "./GuidedSectionSource.mjs";
147
148
  export * from "./GuidedSectionsCreateBase.mjs";
148
149
  export * from "./GuidedSectionsCreateFromInheritanceRequest.mjs";
149
150
  export * from "./GuidedSectionsCreateFromScratchRequest.mjs";
@@ -157,9 +158,10 @@ export * from "./GuidedTemplate.mjs";
157
158
  export * from "./GuidedTemplateGeneration.mjs";
158
159
  export * from "./GuidedTemplateInstructions.mjs";
159
160
  export * from "./GuidedTemplateInstructionsPartial.mjs";
161
+ export * from "./GuidedTemplateListItem.mjs";
162
+ export * from "./GuidedTemplateListItemSource.mjs";
160
163
  export * from "./GuidedTemplateOverrides.mjs";
161
164
  export * from "./GuidedTemplateRef.mjs";
162
- export * from "./GuidedTemplateSource.mjs";
163
165
  export * from "./GuidedTemplatesCreateBase.mjs";
164
166
  export * from "./GuidedTemplatesCreateFromInheritanceRequest.mjs";
165
167
  export * from "./GuidedTemplatesCreateFromInheritanceRequestGeneration.mjs";
@@ -141,9 +141,10 @@ export * from "./GuidedSectionGenerationPartial.mjs";
141
141
  export * from "./GuidedSectionInstructions.mjs";
142
142
  export * from "./GuidedSectionInstructionsOverride.mjs";
143
143
  export * from "./GuidedSectionInstructionsPartial.mjs";
144
+ export * from "./GuidedSectionListItem.mjs";
145
+ export * from "./GuidedSectionListItemSource.mjs";
144
146
  export * from "./GuidedSectionOverride.mjs";
145
147
  export * from "./GuidedSectionOverrides.mjs";
146
- export * from "./GuidedSectionSource.mjs";
147
148
  export * from "./GuidedSectionsCreateBase.mjs";
148
149
  export * from "./GuidedSectionsCreateFromInheritanceRequest.mjs";
149
150
  export * from "./GuidedSectionsCreateFromScratchRequest.mjs";
@@ -157,9 +158,10 @@ export * from "./GuidedTemplate.mjs";
157
158
  export * from "./GuidedTemplateGeneration.mjs";
158
159
  export * from "./GuidedTemplateInstructions.mjs";
159
160
  export * from "./GuidedTemplateInstructionsPartial.mjs";
161
+ export * from "./GuidedTemplateListItem.mjs";
162
+ export * from "./GuidedTemplateListItemSource.mjs";
160
163
  export * from "./GuidedTemplateOverrides.mjs";
161
164
  export * from "./GuidedTemplateRef.mjs";
162
- export * from "./GuidedTemplateSource.mjs";
163
165
  export * from "./GuidedTemplatesCreateBase.mjs";
164
166
  export * from "./GuidedTemplatesCreateFromInheritanceRequest.mjs";
165
167
  export * from "./GuidedTemplatesCreateFromInheritanceRequestGeneration.mjs";
@@ -1,8 +1,8 @@
1
1
  import type * as Corti from "../../../../../../api/index.mjs";
2
2
  import * as core from "../../../../../../core/index.mjs";
3
3
  import type * as serializers from "../../../../../index.mjs";
4
- import { GuidedSection } from "../../../../../types/GuidedSection.mjs";
5
- export declare const Response: core.serialization.Schema<serializers.documents.sections.list.Response.Raw, Corti.GuidedSection[]>;
4
+ import { GuidedSectionListItem } from "../../../../../types/GuidedSectionListItem.mjs";
5
+ export declare const Response: core.serialization.Schema<serializers.documents.sections.list.Response.Raw, Corti.GuidedSectionListItem[]>;
6
6
  export declare namespace Response {
7
- type Raw = GuidedSection.Raw[];
7
+ type Raw = GuidedSectionListItem.Raw[];
8
8
  }
@@ -1,4 +1,4 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../../../../../core/index.mjs";
3
- import { GuidedSection } from "../../../../../types/GuidedSection.mjs";
4
- export const Response = core.serialization.list(GuidedSection);
3
+ import { GuidedSectionListItem } from "../../../../../types/GuidedSectionListItem.mjs";
4
+ export const Response = core.serialization.list(GuidedSectionListItem);
@@ -1,8 +1,8 @@
1
1
  import type * as Corti from "../../../../../../api/index.mjs";
2
2
  import * as core from "../../../../../../core/index.mjs";
3
3
  import type * as serializers from "../../../../../index.mjs";
4
- import { GuidedTemplate } from "../../../../../types/GuidedTemplate.mjs";
5
- export declare const Response: core.serialization.Schema<serializers.documents.templates.list.Response.Raw, Corti.GuidedTemplate[]>;
4
+ import { GuidedTemplateListItem } from "../../../../../types/GuidedTemplateListItem.mjs";
5
+ export declare const Response: core.serialization.Schema<serializers.documents.templates.list.Response.Raw, Corti.GuidedTemplateListItem[]>;
6
6
  export declare namespace Response {
7
- type Raw = GuidedTemplate.Raw[];
7
+ type Raw = GuidedTemplateListItem.Raw[];
8
8
  }
@@ -1,4 +1,4 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../../../../../core/index.mjs";
3
- import { GuidedTemplate } from "../../../../../types/GuidedTemplate.mjs";
4
- export const Response = core.serialization.list(GuidedTemplate);
3
+ import { GuidedTemplateListItem } from "../../../../../types/GuidedTemplateListItem.mjs";
4
+ export const Response = core.serialization.list(GuidedTemplateListItem);
@@ -1,26 +1,11 @@
1
1
  import type * as Corti from "../../api/index.mjs";
2
2
  import * as core from "../../core/index.mjs";
3
3
  import type * as serializers from "../index.mjs";
4
- import { GuidedLabel } from "./GuidedLabel.mjs";
5
- import { GuidedSectionSource } from "./GuidedSectionSource.mjs";
4
+ import { GuidedSectionListItem } from "./GuidedSectionListItem.mjs";
6
5
  import { GuidedSectionVersion } from "./GuidedSectionVersion.mjs";
7
6
  export declare const GuidedSection: core.serialization.ObjectSchema<serializers.GuidedSection.Raw, Corti.GuidedSection>;
8
7
  export declare namespace GuidedSection {
9
- interface Raw {
10
- id: string;
11
- inheritedFromId?: (string | null | undefined) | null;
12
- autoGenerated?: boolean | null;
13
- source?: GuidedSectionSource.Raw | null;
14
- name: string;
15
- languages: string[];
16
- regions: string[];
17
- specialties: string[];
18
- description?: string | null;
19
- labels: GuidedLabel.Raw[];
8
+ interface Raw extends GuidedSectionListItem.Raw {
20
9
  publishedVersion?: GuidedSectionVersion.Raw | null;
21
- createdBy?: string | null;
22
- createdAt: string;
23
- updatedAt: string;
24
- deletedAt?: (string | null | undefined) | null;
25
10
  }
26
11
  }
@@ -1,22 +1,9 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../core/index.mjs";
3
- import { GuidedLabel } from "./GuidedLabel.mjs";
4
- import { GuidedSectionSource } from "./GuidedSectionSource.mjs";
3
+ import { GuidedSectionListItem } from "./GuidedSectionListItem.mjs";
5
4
  import { GuidedSectionVersion } from "./GuidedSectionVersion.mjs";
6
- export const GuidedSection = core.serialization.object({
7
- id: core.serialization.string(),
8
- inheritedFromId: core.serialization.string().optionalNullable(),
9
- autoGenerated: core.serialization.boolean().optional(),
10
- source: GuidedSectionSource.optional(),
11
- name: core.serialization.string(),
12
- languages: core.serialization.list(core.serialization.string()),
13
- regions: core.serialization.list(core.serialization.string()),
14
- specialties: core.serialization.list(core.serialization.string()),
15
- description: core.serialization.string().optional(),
16
- labels: core.serialization.list(GuidedLabel),
5
+ export const GuidedSection = core.serialization
6
+ .object({
17
7
  publishedVersion: GuidedSectionVersion.optional(),
18
- createdBy: core.serialization.string().optional(),
19
- createdAt: core.serialization.date(),
20
- updatedAt: core.serialization.date(),
21
- deletedAt: core.serialization.date().optionalNullable(),
22
- });
8
+ })
9
+ .extend(GuidedSectionListItem);
@@ -0,0 +1,24 @@
1
+ import type * as Corti from "../../api/index.mjs";
2
+ import * as core from "../../core/index.mjs";
3
+ import type * as serializers from "../index.mjs";
4
+ import { GuidedLabel } from "./GuidedLabel.mjs";
5
+ import { GuidedSectionListItemSource } from "./GuidedSectionListItemSource.mjs";
6
+ export declare const GuidedSectionListItem: core.serialization.ObjectSchema<serializers.GuidedSectionListItem.Raw, Corti.GuidedSectionListItem>;
7
+ export declare namespace GuidedSectionListItem {
8
+ interface Raw {
9
+ id: string;
10
+ inheritedFromId?: (string | null | undefined) | null;
11
+ autoGenerated?: boolean | null;
12
+ source?: GuidedSectionListItemSource.Raw | null;
13
+ name: string;
14
+ languages: string[];
15
+ regions: string[];
16
+ specialties: string[];
17
+ description?: string | null;
18
+ labels: GuidedLabel.Raw[];
19
+ createdBy?: string | null;
20
+ createdAt: string;
21
+ updatedAt: string;
22
+ deletedAt?: (string | null | undefined) | null;
23
+ }
24
+ }
@@ -0,0 +1,20 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.mjs";
3
+ import { GuidedLabel } from "./GuidedLabel.mjs";
4
+ import { GuidedSectionListItemSource } from "./GuidedSectionListItemSource.mjs";
5
+ export const GuidedSectionListItem = core.serialization.object({
6
+ id: core.serialization.string(),
7
+ inheritedFromId: core.serialization.string().optionalNullable(),
8
+ autoGenerated: core.serialization.boolean().optional(),
9
+ source: GuidedSectionListItemSource.optional(),
10
+ name: core.serialization.string(),
11
+ languages: core.serialization.list(core.serialization.string()),
12
+ regions: core.serialization.list(core.serialization.string()),
13
+ specialties: core.serialization.list(core.serialization.string()),
14
+ description: core.serialization.string().optional(),
15
+ labels: core.serialization.list(GuidedLabel),
16
+ createdBy: core.serialization.string().optional(),
17
+ createdAt: core.serialization.date(),
18
+ updatedAt: core.serialization.date(),
19
+ deletedAt: core.serialization.date().optionalNullable(),
20
+ });
@@ -0,0 +1,7 @@
1
+ import type * as Corti from "../../api/index.mjs";
2
+ import * as core from "../../core/index.mjs";
3
+ import type * as serializers from "../index.mjs";
4
+ export declare const GuidedSectionListItemSource: core.serialization.Schema<serializers.GuidedSectionListItemSource.Raw, Corti.GuidedSectionListItemSource>;
5
+ export declare namespace GuidedSectionListItemSource {
6
+ type Raw = "user" | "corti" | "project";
7
+ }
@@ -1,3 +1,3 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../core/index.mjs";
3
- export const GuidedTemplateSource = core.serialization.enum_(["user", "corti", "project"]);
3
+ export const GuidedSectionListItemSource = core.serialization.enum_(["user", "corti", "project"]);
@@ -5,5 +5,5 @@ import { GuidedSectionsCreateFromInheritanceRequest } from "./GuidedSectionsCrea
5
5
  import { GuidedSectionsCreateFromScratchRequest } from "./GuidedSectionsCreateFromScratchRequest.mjs";
6
6
  export declare const GuidedSectionsCreateRequest: core.serialization.Schema<serializers.GuidedSectionsCreateRequest.Raw, Corti.GuidedSectionsCreateRequest>;
7
7
  export declare namespace GuidedSectionsCreateRequest {
8
- type Raw = GuidedSectionsCreateFromScratchRequest.Raw | GuidedSectionsCreateFromInheritanceRequest.Raw;
8
+ type Raw = GuidedSectionsCreateFromInheritanceRequest.Raw | GuidedSectionsCreateFromScratchRequest.Raw;
9
9
  }
@@ -3,6 +3,6 @@ import * as core from "../../core/index.mjs";
3
3
  import { GuidedSectionsCreateFromInheritanceRequest } from "./GuidedSectionsCreateFromInheritanceRequest.mjs";
4
4
  import { GuidedSectionsCreateFromScratchRequest } from "./GuidedSectionsCreateFromScratchRequest.mjs";
5
5
  export const GuidedSectionsCreateRequest = core.serialization.undiscriminatedUnion([
6
- GuidedSectionsCreateFromScratchRequest,
7
6
  GuidedSectionsCreateFromInheritanceRequest,
7
+ GuidedSectionsCreateFromScratchRequest,
8
8
  ]);
@@ -1,26 +1,11 @@
1
1
  import type * as Corti from "../../api/index.mjs";
2
2
  import * as core from "../../core/index.mjs";
3
3
  import type * as serializers from "../index.mjs";
4
- import { GuidedLabel } from "./GuidedLabel.mjs";
5
- import { GuidedTemplateSource } from "./GuidedTemplateSource.mjs";
4
+ import { GuidedTemplateListItem } from "./GuidedTemplateListItem.mjs";
6
5
  import { GuidedTemplateVersion } from "./GuidedTemplateVersion.mjs";
7
6
  export declare const GuidedTemplate: core.serialization.ObjectSchema<serializers.GuidedTemplate.Raw, Corti.GuidedTemplate>;
8
7
  export declare namespace GuidedTemplate {
9
- interface Raw {
10
- id: string;
11
- inheritedFromId?: (string | null | undefined) | null;
12
- autoGenerated?: boolean | null;
13
- source?: GuidedTemplateSource.Raw | null;
14
- name: string;
15
- description?: string | null;
16
- languages: string[];
17
- regions: string[];
18
- specialties: string[];
19
- labels: GuidedLabel.Raw[];
8
+ interface Raw extends GuidedTemplateListItem.Raw {
20
9
  publishedVersion?: GuidedTemplateVersion.Raw | null;
21
- createdBy?: string | null;
22
- createdAt: string;
23
- updatedAt: string;
24
- deletedAt?: (string | null | undefined) | null;
25
10
  }
26
11
  }
@@ -1,22 +1,9 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../core/index.mjs";
3
- import { GuidedLabel } from "./GuidedLabel.mjs";
4
- import { GuidedTemplateSource } from "./GuidedTemplateSource.mjs";
3
+ import { GuidedTemplateListItem } from "./GuidedTemplateListItem.mjs";
5
4
  import { GuidedTemplateVersion } from "./GuidedTemplateVersion.mjs";
6
- export const GuidedTemplate = core.serialization.object({
7
- id: core.serialization.string(),
8
- inheritedFromId: core.serialization.string().optionalNullable(),
9
- autoGenerated: core.serialization.boolean().optional(),
10
- source: GuidedTemplateSource.optional(),
11
- name: core.serialization.string(),
12
- description: core.serialization.string().optional(),
13
- languages: core.serialization.list(core.serialization.string()),
14
- regions: core.serialization.list(core.serialization.string()),
15
- specialties: core.serialization.list(core.serialization.string()),
16
- labels: core.serialization.list(GuidedLabel),
5
+ export const GuidedTemplate = core.serialization
6
+ .object({
17
7
  publishedVersion: GuidedTemplateVersion.optional(),
18
- createdBy: core.serialization.string().optional(),
19
- createdAt: core.serialization.date(),
20
- updatedAt: core.serialization.date(),
21
- deletedAt: core.serialization.date().optionalNullable(),
22
- });
8
+ })
9
+ .extend(GuidedTemplateListItem);
@@ -0,0 +1,24 @@
1
+ import type * as Corti from "../../api/index.mjs";
2
+ import * as core from "../../core/index.mjs";
3
+ import type * as serializers from "../index.mjs";
4
+ import { GuidedLabel } from "./GuidedLabel.mjs";
5
+ import { GuidedTemplateListItemSource } from "./GuidedTemplateListItemSource.mjs";
6
+ export declare const GuidedTemplateListItem: core.serialization.ObjectSchema<serializers.GuidedTemplateListItem.Raw, Corti.GuidedTemplateListItem>;
7
+ export declare namespace GuidedTemplateListItem {
8
+ interface Raw {
9
+ id: string;
10
+ inheritedFromId?: (string | null | undefined) | null;
11
+ autoGenerated?: boolean | null;
12
+ source?: GuidedTemplateListItemSource.Raw | null;
13
+ name: string;
14
+ description?: string | null;
15
+ languages: string[];
16
+ regions: string[];
17
+ specialties: string[];
18
+ labels: GuidedLabel.Raw[];
19
+ createdBy?: string | null;
20
+ createdAt: string;
21
+ updatedAt: string;
22
+ deletedAt?: (string | null | undefined) | null;
23
+ }
24
+ }
@@ -0,0 +1,20 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.mjs";
3
+ import { GuidedLabel } from "./GuidedLabel.mjs";
4
+ import { GuidedTemplateListItemSource } from "./GuidedTemplateListItemSource.mjs";
5
+ export const GuidedTemplateListItem = core.serialization.object({
6
+ id: core.serialization.string(),
7
+ inheritedFromId: core.serialization.string().optionalNullable(),
8
+ autoGenerated: core.serialization.boolean().optional(),
9
+ source: GuidedTemplateListItemSource.optional(),
10
+ name: core.serialization.string(),
11
+ description: core.serialization.string().optional(),
12
+ languages: core.serialization.list(core.serialization.string()),
13
+ regions: core.serialization.list(core.serialization.string()),
14
+ specialties: core.serialization.list(core.serialization.string()),
15
+ labels: core.serialization.list(GuidedLabel),
16
+ createdBy: core.serialization.string().optional(),
17
+ createdAt: core.serialization.date(),
18
+ updatedAt: core.serialization.date(),
19
+ deletedAt: core.serialization.date().optionalNullable(),
20
+ });
@@ -0,0 +1,7 @@
1
+ import type * as Corti from "../../api/index.mjs";
2
+ import * as core from "../../core/index.mjs";
3
+ import type * as serializers from "../index.mjs";
4
+ export declare const GuidedTemplateListItemSource: core.serialization.Schema<serializers.GuidedTemplateListItemSource.Raw, Corti.GuidedTemplateListItemSource>;
5
+ export declare namespace GuidedTemplateListItemSource {
6
+ type Raw = "user" | "corti" | "project";
7
+ }
@@ -1,3 +1,3 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../core/index.mjs";
3
- export const GuidedSectionSource = core.serialization.enum_(["user", "corti", "project"]);
3
+ export const GuidedTemplateListItemSource = core.serialization.enum_(["user", "corti", "project"]);
@@ -5,5 +5,5 @@ import { GuidedTemplatesCreateFromInheritanceRequest } from "./GuidedTemplatesCr
5
5
  import { GuidedTemplatesCreateFromScratchRequest } from "./GuidedTemplatesCreateFromScratchRequest.mjs";
6
6
  export declare const GuidedTemplatesCreateRequest: core.serialization.Schema<serializers.GuidedTemplatesCreateRequest.Raw, Corti.GuidedTemplatesCreateRequest>;
7
7
  export declare namespace GuidedTemplatesCreateRequest {
8
- type Raw = GuidedTemplatesCreateFromScratchRequest.Raw | GuidedTemplatesCreateFromInheritanceRequest.Raw;
8
+ type Raw = GuidedTemplatesCreateFromInheritanceRequest.Raw | GuidedTemplatesCreateFromScratchRequest.Raw;
9
9
  }
@@ -3,6 +3,6 @@ import * as core from "../../core/index.mjs";
3
3
  import { GuidedTemplatesCreateFromInheritanceRequest } from "./GuidedTemplatesCreateFromInheritanceRequest.mjs";
4
4
  import { GuidedTemplatesCreateFromScratchRequest } from "./GuidedTemplatesCreateFromScratchRequest.mjs";
5
5
  export const GuidedTemplatesCreateRequest = core.serialization.undiscriminatedUnion([
6
- GuidedTemplatesCreateFromScratchRequest,
7
6
  GuidedTemplatesCreateFromInheritanceRequest,
7
+ GuidedTemplatesCreateFromScratchRequest,
8
8
  ]);
@@ -141,9 +141,10 @@ export * from "./GuidedSectionGenerationPartial.mjs";
141
141
  export * from "./GuidedSectionInstructions.mjs";
142
142
  export * from "./GuidedSectionInstructionsOverride.mjs";
143
143
  export * from "./GuidedSectionInstructionsPartial.mjs";
144
+ export * from "./GuidedSectionListItem.mjs";
145
+ export * from "./GuidedSectionListItemSource.mjs";
144
146
  export * from "./GuidedSectionOverride.mjs";
145
147
  export * from "./GuidedSectionOverrides.mjs";
146
- export * from "./GuidedSectionSource.mjs";
147
148
  export * from "./GuidedSectionsCreateBase.mjs";
148
149
  export * from "./GuidedSectionsCreateFromInheritanceRequest.mjs";
149
150
  export * from "./GuidedSectionsCreateFromScratchRequest.mjs";
@@ -157,9 +158,10 @@ export * from "./GuidedTemplate.mjs";
157
158
  export * from "./GuidedTemplateGeneration.mjs";
158
159
  export * from "./GuidedTemplateInstructions.mjs";
159
160
  export * from "./GuidedTemplateInstructionsPartial.mjs";
161
+ export * from "./GuidedTemplateListItem.mjs";
162
+ export * from "./GuidedTemplateListItemSource.mjs";
160
163
  export * from "./GuidedTemplateOverrides.mjs";
161
164
  export * from "./GuidedTemplateRef.mjs";
162
- export * from "./GuidedTemplateSource.mjs";
163
165
  export * from "./GuidedTemplatesCreateBase.mjs";
164
166
  export * from "./GuidedTemplatesCreateFromInheritanceRequest.mjs";
165
167
  export * from "./GuidedTemplatesCreateFromInheritanceRequestGeneration.mjs";
@@ -141,9 +141,10 @@ export * from "./GuidedSectionGenerationPartial.mjs";
141
141
  export * from "./GuidedSectionInstructions.mjs";
142
142
  export * from "./GuidedSectionInstructionsOverride.mjs";
143
143
  export * from "./GuidedSectionInstructionsPartial.mjs";
144
+ export * from "./GuidedSectionListItem.mjs";
145
+ export * from "./GuidedSectionListItemSource.mjs";
144
146
  export * from "./GuidedSectionOverride.mjs";
145
147
  export * from "./GuidedSectionOverrides.mjs";
146
- export * from "./GuidedSectionSource.mjs";
147
148
  export * from "./GuidedSectionsCreateBase.mjs";
148
149
  export * from "./GuidedSectionsCreateFromInheritanceRequest.mjs";
149
150
  export * from "./GuidedSectionsCreateFromScratchRequest.mjs";
@@ -157,9 +158,10 @@ export * from "./GuidedTemplate.mjs";
157
158
  export * from "./GuidedTemplateGeneration.mjs";
158
159
  export * from "./GuidedTemplateInstructions.mjs";
159
160
  export * from "./GuidedTemplateInstructionsPartial.mjs";
161
+ export * from "./GuidedTemplateListItem.mjs";
162
+ export * from "./GuidedTemplateListItemSource.mjs";
160
163
  export * from "./GuidedTemplateOverrides.mjs";
161
164
  export * from "./GuidedTemplateRef.mjs";
162
- export * from "./GuidedTemplateSource.mjs";
163
165
  export * from "./GuidedTemplatesCreateBase.mjs";
164
166
  export * from "./GuidedTemplatesCreateFromInheritanceRequest.mjs";
165
167
  export * from "./GuidedTemplatesCreateFromInheritanceRequestGeneration.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.0.0-stt";
1
+ export declare const SDK_VERSION = "4.0.0-templates-fix";
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.0.0-stt";
1
+ export const SDK_VERSION = "4.0.0-templates-fix";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corti/sdk",
3
- "version": "4.0.0-stt",
3
+ "version": "4.0.0-templates-fix",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,7 +0,0 @@
1
- import type * as Corti from "../../api/index.js";
2
- import * as core from "../../core/index.js";
3
- import type * as serializers from "../index.js";
4
- export declare const GuidedSectionSource: core.serialization.Schema<serializers.GuidedSectionSource.Raw, Corti.GuidedSectionSource>;
5
- export declare namespace GuidedSectionSource {
6
- type Raw = "user" | "corti" | "project";
7
- }
@@ -1,7 +0,0 @@
1
- import type * as Corti from "../../api/index.js";
2
- import * as core from "../../core/index.js";
3
- import type * as serializers from "../index.js";
4
- export declare const GuidedTemplateSource: core.serialization.Schema<serializers.GuidedTemplateSource.Raw, Corti.GuidedTemplateSource>;
5
- export declare namespace GuidedTemplateSource {
6
- type Raw = "user" | "corti" | "project";
7
- }
@@ -1,7 +0,0 @@
1
- import type * as Corti from "../../api/index.mjs";
2
- import * as core from "../../core/index.mjs";
3
- import type * as serializers from "../index.mjs";
4
- export declare const GuidedSectionSource: core.serialization.Schema<serializers.GuidedSectionSource.Raw, Corti.GuidedSectionSource>;
5
- export declare namespace GuidedSectionSource {
6
- type Raw = "user" | "corti" | "project";
7
- }
@@ -1,7 +0,0 @@
1
- import type * as Corti from "../../api/index.mjs";
2
- import * as core from "../../core/index.mjs";
3
- import type * as serializers from "../index.mjs";
4
- export declare const GuidedTemplateSource: core.serialization.Schema<serializers.GuidedTemplateSource.Raw, Corti.GuidedTemplateSource>;
5
- export declare namespace GuidedTemplateSource {
6
- type Raw = "user" | "corti" | "project";
7
- }