@corti/sdk 3.1.0 → 4.0.0-rc.1

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 (133) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/documents/resources/templates/client/Client.d.ts +1 -5
  3. package/dist/cjs/api/resources/documents/resources/templates/client/Client.js +1 -5
  4. package/dist/cjs/api/resources/index.d.ts +1 -0
  5. package/dist/cjs/api/resources/index.js +1 -0
  6. package/dist/cjs/api/resources/recordings/client/Client.d.ts +1 -1
  7. package/dist/cjs/api/resources/recordings/client/Client.js +1 -1
  8. package/dist/cjs/api/resources/transcripts/client/Client.d.ts +1 -1
  9. package/dist/cjs/api/resources/transcripts/client/Client.js +1 -1
  10. package/dist/cjs/api/resources/transcripts/client/requests/TranscriptsCreateRequest.d.ts +9 -1
  11. package/dist/cjs/api/resources/transcripts/index.d.ts +1 -0
  12. package/dist/cjs/api/resources/transcripts/index.js +1 -0
  13. package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestKeyterms.d.ts +8 -0
  14. package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestKeyterms.js +3 -0
  15. package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestKeytermsTermsItem.d.ts +4 -0
  16. package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestKeytermsTermsItem.js +3 -0
  17. package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestReplacementsItem.d.ts +6 -0
  18. package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestReplacementsItem.js +3 -0
  19. package/dist/cjs/api/resources/transcripts/types/index.d.ts +3 -0
  20. package/dist/cjs/api/resources/transcripts/types/index.js +19 -0
  21. package/dist/cjs/api/types/CommonFactsContext.d.ts +2 -2
  22. package/dist/cjs/api/types/GuidedSection.d.ts +3 -1
  23. package/dist/cjs/api/types/GuidedSectionSource.d.ts +2 -1
  24. package/dist/cjs/api/types/GuidedSectionSource.js +2 -1
  25. package/dist/cjs/api/types/GuidedTemplate.d.ts +3 -1
  26. package/dist/cjs/api/types/GuidedTemplateSource.d.ts +2 -1
  27. package/dist/cjs/api/types/GuidedTemplateSource.js +2 -1
  28. package/dist/cjs/api/types/GuidedTemplatesCreateFromScratchRequest.d.ts +1 -1
  29. package/dist/cjs/api/types/GuidedTemplatesCreateFromScratchRequestGeneration.d.ts +1 -1
  30. package/dist/cjs/api/types/StreamConfig.d.ts +1 -1
  31. package/dist/cjs/api/types/StreamConfigKeyterms.d.ts +2 -2
  32. package/dist/cjs/api/types/StreamConfigKeytermsTermsItem.d.ts +1 -1
  33. package/dist/cjs/api/types/StreamConfigTranscription.d.ts +3 -1
  34. package/dist/cjs/api/types/TranscribeConfig.d.ts +1 -1
  35. package/dist/cjs/api/types/TranscribeConfigKeyterms.d.ts +2 -2
  36. package/dist/cjs/api/types/TranscribeConfigKeytermsTermsItem.d.ts +1 -1
  37. package/dist/cjs/serialization/resources/index.d.ts +1 -0
  38. package/dist/cjs/serialization/resources/index.js +1 -0
  39. package/dist/cjs/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.d.ts +6 -0
  40. package/dist/cjs/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.js +6 -0
  41. package/dist/cjs/serialization/resources/transcripts/index.d.ts +1 -0
  42. package/dist/cjs/serialization/resources/transcripts/index.js +1 -0
  43. package/dist/cjs/serialization/resources/transcripts/types/TranscriptsCreateRequestKeyterms.d.ts +10 -0
  44. package/dist/cjs/serialization/resources/transcripts/types/TranscriptsCreateRequestKeyterms.js +42 -0
  45. package/dist/cjs/serialization/resources/transcripts/types/TranscriptsCreateRequestKeytermsTermsItem.d.ts +9 -0
  46. package/dist/cjs/serialization/resources/transcripts/types/TranscriptsCreateRequestKeytermsTermsItem.js +41 -0
  47. package/dist/cjs/serialization/resources/transcripts/types/TranscriptsCreateRequestReplacementsItem.d.ts +10 -0
  48. package/dist/cjs/serialization/resources/transcripts/types/TranscriptsCreateRequestReplacementsItem.js +42 -0
  49. package/dist/cjs/serialization/resources/transcripts/types/index.d.ts +3 -0
  50. package/dist/cjs/serialization/resources/transcripts/types/index.js +19 -0
  51. package/dist/cjs/serialization/types/CommonFactsContext.d.ts +1 -1
  52. package/dist/cjs/serialization/types/CommonFactsContext.js +1 -1
  53. package/dist/cjs/serialization/types/GuidedSection.d.ts +1 -0
  54. package/dist/cjs/serialization/types/GuidedSection.js +1 -0
  55. package/dist/cjs/serialization/types/GuidedSectionSource.d.ts +1 -1
  56. package/dist/cjs/serialization/types/GuidedSectionSource.js +1 -1
  57. package/dist/cjs/serialization/types/GuidedTemplate.d.ts +1 -0
  58. package/dist/cjs/serialization/types/GuidedTemplate.js +1 -0
  59. package/dist/cjs/serialization/types/GuidedTemplateSource.d.ts +1 -1
  60. package/dist/cjs/serialization/types/GuidedTemplateSource.js +1 -1
  61. package/dist/cjs/serialization/types/GuidedTemplatesCreateFromScratchRequestGeneration.d.ts +1 -1
  62. package/dist/cjs/serialization/types/GuidedTemplatesCreateFromScratchRequestGeneration.js +1 -1
  63. package/dist/cjs/serialization/types/StreamConfigTranscription.d.ts +1 -0
  64. package/dist/cjs/serialization/types/StreamConfigTranscription.js +1 -0
  65. package/dist/cjs/version.d.ts +1 -1
  66. package/dist/cjs/version.js +1 -1
  67. package/dist/esm/BaseClient.mjs +2 -2
  68. package/dist/esm/api/resources/documents/resources/templates/client/Client.d.mts +1 -5
  69. package/dist/esm/api/resources/documents/resources/templates/client/Client.mjs +1 -5
  70. package/dist/esm/api/resources/index.d.mts +1 -0
  71. package/dist/esm/api/resources/index.mjs +1 -0
  72. package/dist/esm/api/resources/recordings/client/Client.d.mts +1 -1
  73. package/dist/esm/api/resources/recordings/client/Client.mjs +1 -1
  74. package/dist/esm/api/resources/transcripts/client/Client.d.mts +1 -1
  75. package/dist/esm/api/resources/transcripts/client/Client.mjs +1 -1
  76. package/dist/esm/api/resources/transcripts/client/requests/TranscriptsCreateRequest.d.mts +9 -1
  77. package/dist/esm/api/resources/transcripts/index.d.mts +1 -0
  78. package/dist/esm/api/resources/transcripts/index.mjs +1 -0
  79. package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestKeyterms.d.mts +8 -0
  80. package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestKeyterms.mjs +2 -0
  81. package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestKeytermsTermsItem.d.mts +4 -0
  82. package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestKeytermsTermsItem.mjs +2 -0
  83. package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestReplacementsItem.d.mts +6 -0
  84. package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestReplacementsItem.mjs +2 -0
  85. package/dist/esm/api/resources/transcripts/types/index.d.mts +3 -0
  86. package/dist/esm/api/resources/transcripts/types/index.mjs +3 -0
  87. package/dist/esm/api/types/CommonFactsContext.d.mts +2 -2
  88. package/dist/esm/api/types/GuidedSection.d.mts +3 -1
  89. package/dist/esm/api/types/GuidedSectionSource.d.mts +2 -1
  90. package/dist/esm/api/types/GuidedSectionSource.mjs +2 -1
  91. package/dist/esm/api/types/GuidedTemplate.d.mts +3 -1
  92. package/dist/esm/api/types/GuidedTemplateSource.d.mts +2 -1
  93. package/dist/esm/api/types/GuidedTemplateSource.mjs +2 -1
  94. package/dist/esm/api/types/GuidedTemplatesCreateFromScratchRequest.d.mts +1 -1
  95. package/dist/esm/api/types/GuidedTemplatesCreateFromScratchRequestGeneration.d.mts +1 -1
  96. package/dist/esm/api/types/StreamConfig.d.mts +1 -1
  97. package/dist/esm/api/types/StreamConfigKeyterms.d.mts +2 -2
  98. package/dist/esm/api/types/StreamConfigKeytermsTermsItem.d.mts +1 -1
  99. package/dist/esm/api/types/StreamConfigTranscription.d.mts +3 -1
  100. package/dist/esm/api/types/TranscribeConfig.d.mts +1 -1
  101. package/dist/esm/api/types/TranscribeConfigKeyterms.d.mts +2 -2
  102. package/dist/esm/api/types/TranscribeConfigKeytermsTermsItem.d.mts +1 -1
  103. package/dist/esm/serialization/resources/index.d.mts +1 -0
  104. package/dist/esm/serialization/resources/index.mjs +1 -0
  105. package/dist/esm/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.d.mts +6 -0
  106. package/dist/esm/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.mjs +6 -0
  107. package/dist/esm/serialization/resources/transcripts/index.d.mts +1 -0
  108. package/dist/esm/serialization/resources/transcripts/index.mjs +1 -0
  109. package/dist/esm/serialization/resources/transcripts/types/TranscriptsCreateRequestKeyterms.d.mts +10 -0
  110. package/dist/esm/serialization/resources/transcripts/types/TranscriptsCreateRequestKeyterms.mjs +6 -0
  111. package/dist/esm/serialization/resources/transcripts/types/TranscriptsCreateRequestKeytermsTermsItem.d.mts +9 -0
  112. package/dist/esm/serialization/resources/transcripts/types/TranscriptsCreateRequestKeytermsTermsItem.mjs +5 -0
  113. package/dist/esm/serialization/resources/transcripts/types/TranscriptsCreateRequestReplacementsItem.d.mts +10 -0
  114. package/dist/esm/serialization/resources/transcripts/types/TranscriptsCreateRequestReplacementsItem.mjs +6 -0
  115. package/dist/esm/serialization/resources/transcripts/types/index.d.mts +3 -0
  116. package/dist/esm/serialization/resources/transcripts/types/index.mjs +3 -0
  117. package/dist/esm/serialization/types/CommonFactsContext.d.mts +1 -1
  118. package/dist/esm/serialization/types/CommonFactsContext.mjs +1 -1
  119. package/dist/esm/serialization/types/GuidedSection.d.mts +1 -0
  120. package/dist/esm/serialization/types/GuidedSection.mjs +1 -0
  121. package/dist/esm/serialization/types/GuidedSectionSource.d.mts +1 -1
  122. package/dist/esm/serialization/types/GuidedSectionSource.mjs +1 -1
  123. package/dist/esm/serialization/types/GuidedTemplate.d.mts +1 -0
  124. package/dist/esm/serialization/types/GuidedTemplate.mjs +1 -0
  125. package/dist/esm/serialization/types/GuidedTemplateSource.d.mts +1 -1
  126. package/dist/esm/serialization/types/GuidedTemplateSource.mjs +1 -1
  127. package/dist/esm/serialization/types/GuidedTemplatesCreateFromScratchRequestGeneration.d.mts +1 -1
  128. package/dist/esm/serialization/types/GuidedTemplatesCreateFromScratchRequestGeneration.mjs +1 -1
  129. package/dist/esm/serialization/types/StreamConfigTranscription.d.mts +1 -0
  130. package/dist/esm/serialization/types/StreamConfigTranscription.mjs +1 -0
  131. package/dist/esm/version.d.mts +1 -1
  132. package/dist/esm/version.mjs +1 -1
  133. package/package.json +1 -1
@@ -0,0 +1,6 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ import { TranscriptsCreateRequestKeytermsTermsItem } from "./TranscriptsCreateRequestKeytermsTermsItem.mjs";
4
+ export const TranscriptsCreateRequestKeyterms = core.serialization.object({
5
+ terms: core.serialization.list(TranscriptsCreateRequestKeytermsTermsItem).optional(),
6
+ });
@@ -0,0 +1,9 @@
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 TranscriptsCreateRequestKeytermsTermsItem: core.serialization.ObjectSchema<serializers.TranscriptsCreateRequestKeytermsTermsItem.Raw, Corti.TranscriptsCreateRequestKeytermsTermsItem>;
5
+ export declare namespace TranscriptsCreateRequestKeytermsTermsItem {
6
+ interface Raw {
7
+ term: string;
8
+ }
9
+ }
@@ -0,0 +1,5 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ export const TranscriptsCreateRequestKeytermsTermsItem = core.serialization.object({
4
+ term: core.serialization.string(),
5
+ });
@@ -0,0 +1,10 @@
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 TranscriptsCreateRequestReplacementsItem: core.serialization.ObjectSchema<serializers.TranscriptsCreateRequestReplacementsItem.Raw, Corti.TranscriptsCreateRequestReplacementsItem>;
5
+ export declare namespace TranscriptsCreateRequestReplacementsItem {
6
+ interface Raw {
7
+ find: string;
8
+ replace: string;
9
+ }
10
+ }
@@ -0,0 +1,6 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ export const TranscriptsCreateRequestReplacementsItem = core.serialization.object({
4
+ find: core.serialization.string(),
5
+ replace: core.serialization.string(),
6
+ });
@@ -0,0 +1,3 @@
1
+ export * from "./TranscriptsCreateRequestKeyterms.mjs";
2
+ export * from "./TranscriptsCreateRequestKeytermsTermsItem.mjs";
3
+ export * from "./TranscriptsCreateRequestReplacementsItem.mjs";
@@ -0,0 +1,3 @@
1
+ export * from "./TranscriptsCreateRequestKeyterms.mjs";
2
+ export * from "./TranscriptsCreateRequestKeytermsTermsItem.mjs";
3
+ export * from "./TranscriptsCreateRequestReplacementsItem.mjs";
@@ -6,6 +6,6 @@ export declare const CommonFactsContext: core.serialization.ObjectSchema<seriali
6
6
  export declare namespace CommonFactsContext {
7
7
  interface Raw {
8
8
  type: "facts";
9
- fact: GuidedDocumentFactMinimal.Raw;
9
+ facts: GuidedDocumentFactMinimal.Raw[];
10
10
  }
11
11
  }
@@ -3,5 +3,5 @@ import * as core from "../../core/index.mjs";
3
3
  import { GuidedDocumentFactMinimal } from "./GuidedDocumentFactMinimal.mjs";
4
4
  export const CommonFactsContext = core.serialization.object({
5
5
  type: core.serialization.stringLiteral("facts"),
6
- fact: GuidedDocumentFactMinimal,
6
+ facts: core.serialization.list(GuidedDocumentFactMinimal),
7
7
  });
@@ -18,6 +18,7 @@ export declare namespace GuidedSection {
18
18
  description?: string | null;
19
19
  labels: GuidedLabel.Raw[];
20
20
  publishedVersion?: GuidedSectionVersion.Raw | null;
21
+ createdBy?: string | null;
21
22
  createdAt: string;
22
23
  updatedAt: string;
23
24
  deletedAt?: (string | null | undefined) | null;
@@ -15,6 +15,7 @@ export const GuidedSection = core.serialization.object({
15
15
  description: core.serialization.string().optional(),
16
16
  labels: core.serialization.list(GuidedLabel),
17
17
  publishedVersion: GuidedSectionVersion.optional(),
18
+ createdBy: core.serialization.string().optional(),
18
19
  createdAt: core.serialization.date(),
19
20
  updatedAt: core.serialization.date(),
20
21
  deletedAt: core.serialization.date().optionalNullable(),
@@ -3,5 +3,5 @@ import * as core from "../../core/index.mjs";
3
3
  import type * as serializers from "../index.mjs";
4
4
  export declare const GuidedSectionSource: core.serialization.Schema<serializers.GuidedSectionSource.Raw, Corti.GuidedSectionSource>;
5
5
  export declare namespace GuidedSectionSource {
6
- type Raw = "user" | "corti";
6
+ type Raw = "user" | "corti" | "project";
7
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"]);
3
+ export const GuidedSectionSource = core.serialization.enum_(["user", "corti", "project"]);
@@ -18,6 +18,7 @@ export declare namespace GuidedTemplate {
18
18
  specialties: string[];
19
19
  labels: GuidedLabel.Raw[];
20
20
  publishedVersion?: GuidedTemplateVersion.Raw | null;
21
+ createdBy?: string | null;
21
22
  createdAt: string;
22
23
  updatedAt: string;
23
24
  deletedAt?: (string | null | undefined) | null;
@@ -15,6 +15,7 @@ export const GuidedTemplate = core.serialization.object({
15
15
  specialties: core.serialization.list(core.serialization.string()),
16
16
  labels: core.serialization.list(GuidedLabel),
17
17
  publishedVersion: GuidedTemplateVersion.optional(),
18
+ createdBy: core.serialization.string().optional(),
18
19
  createdAt: core.serialization.date(),
19
20
  updatedAt: core.serialization.date(),
20
21
  deletedAt: core.serialization.date().optionalNullable(),
@@ -3,5 +3,5 @@ import * as core from "../../core/index.mjs";
3
3
  import type * as serializers from "../index.mjs";
4
4
  export declare const GuidedTemplateSource: core.serialization.Schema<serializers.GuidedTemplateSource.Raw, Corti.GuidedTemplateSource>;
5
5
  export declare namespace GuidedTemplateSource {
6
- type Raw = "user" | "corti";
6
+ type Raw = "user" | "corti" | "project";
7
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"]);
3
+ export const GuidedTemplateSource = core.serialization.enum_(["user", "corti", "project"]);
@@ -6,7 +6,7 @@ import { GuidedTemplatesVersionSectionRequest } from "./GuidedTemplatesVersionSe
6
6
  export declare const GuidedTemplatesCreateFromScratchRequestGeneration: core.serialization.ObjectSchema<serializers.GuidedTemplatesCreateFromScratchRequestGeneration.Raw, Corti.GuidedTemplatesCreateFromScratchRequestGeneration>;
7
7
  export declare namespace GuidedTemplatesCreateFromScratchRequestGeneration {
8
8
  interface Raw {
9
- instructions: GuidedTemplateInstructions.Raw;
9
+ instructions?: GuidedTemplateInstructions.Raw | null;
10
10
  sections?: GuidedTemplatesVersionSectionRequest.Raw[] | null;
11
11
  }
12
12
  }
@@ -3,6 +3,6 @@ import * as core from "../../core/index.mjs";
3
3
  import { GuidedTemplateInstructions } from "./GuidedTemplateInstructions.mjs";
4
4
  import { GuidedTemplatesVersionSectionRequest } from "./GuidedTemplatesVersionSectionRequest.mjs";
5
5
  export const GuidedTemplatesCreateFromScratchRequestGeneration = core.serialization.object({
6
- instructions: GuidedTemplateInstructions,
6
+ instructions: GuidedTemplateInstructions.optional(),
7
7
  sections: core.serialization.list(GuidedTemplatesVersionSectionRequest).optional(),
8
8
  });
@@ -7,6 +7,7 @@ export declare const StreamConfigTranscription: core.serialization.ObjectSchema<
7
7
  export declare namespace StreamConfigTranscription {
8
8
  interface Raw {
9
9
  primaryLanguage: StreamSupportedLanguage.Raw;
10
+ diarize?: boolean | null;
10
11
  isDiarization?: boolean | null;
11
12
  isMultichannel?: boolean | null;
12
13
  participants: StreamConfigParticipant.Raw[];
@@ -4,6 +4,7 @@ import { StreamConfigParticipant } from "./StreamConfigParticipant.mjs";
4
4
  import { StreamSupportedLanguage } from "./StreamSupportedLanguage.mjs";
5
5
  export const StreamConfigTranscription = core.serialization.object({
6
6
  primaryLanguage: StreamSupportedLanguage,
7
+ diarize: core.serialization.boolean().optional(),
7
8
  isDiarization: core.serialization.boolean().optional(),
8
9
  isMultichannel: core.serialization.boolean().optional(),
9
10
  participants: core.serialization.list(StreamConfigParticipant),
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.0";
1
+ export declare const SDK_VERSION = "4.0.0-rc.1";
@@ -1 +1 @@
1
- export const SDK_VERSION = "3.1.0";
1
+ export const SDK_VERSION = "4.0.0-rc.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corti/sdk",
3
- "version": "3.1.0",
3
+ "version": "4.0.0-rc.1",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",