@corti/sdk 4.0.0-rc.1 → 4.0.0-rc.3
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.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/documents/resources/sections/client/Client.d.ts +2 -10
- package/dist/cjs/api/resources/documents/resources/sections/client/Client.js +1 -9
- package/dist/cjs/api/resources/documents/resources/templates/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/documents/resources/templates/client/Client.js +1 -1
- package/dist/cjs/api/types/GuidedSection.d.ts +6 -29
- package/dist/cjs/api/types/GuidedSectionListItem.d.ts +36 -0
- package/dist/cjs/api/types/GuidedSectionListItem.js +3 -0
- package/dist/cjs/api/types/{GuidedSectionSource.d.ts → GuidedSectionListItemSource.d.ts} +2 -2
- package/dist/cjs/api/types/{GuidedSectionSource.js → GuidedSectionListItemSource.js} +2 -2
- package/dist/cjs/api/types/GuidedSectionsCreateRequest.d.ts +1 -1
- package/dist/cjs/api/types/GuidedTemplate.d.ts +6 -29
- package/dist/cjs/api/types/GuidedTemplateListItem.d.ts +36 -0
- package/dist/cjs/api/types/GuidedTemplateListItem.js +3 -0
- package/dist/{esm/api/types/GuidedTemplateSource.d.mts → cjs/api/types/GuidedTemplateListItemSource.d.ts} +2 -2
- package/dist/cjs/api/types/{GuidedTemplateSource.js → GuidedTemplateListItemSource.js} +2 -2
- package/dist/cjs/api/types/GuidedTemplatesCreateRequest.d.ts +1 -1
- package/dist/cjs/api/types/index.d.ts +4 -2
- package/dist/cjs/api/types/index.js +4 -2
- package/dist/cjs/serialization/resources/documents/resources/sections/client/list.d.ts +3 -3
- package/dist/cjs/serialization/resources/documents/resources/sections/client/list.js +2 -2
- package/dist/cjs/serialization/resources/documents/resources/templates/client/list.d.ts +3 -3
- package/dist/cjs/serialization/resources/documents/resources/templates/client/list.js +2 -2
- package/dist/cjs/serialization/types/GuidedSection.d.ts +2 -17
- package/dist/cjs/serialization/types/GuidedSection.js +5 -18
- package/dist/cjs/serialization/types/GuidedSectionListItem.d.ts +24 -0
- package/dist/cjs/serialization/types/GuidedSectionListItem.js +56 -0
- package/dist/cjs/serialization/types/GuidedSectionListItemSource.d.ts +7 -0
- package/dist/cjs/serialization/types/{GuidedSectionSource.js → GuidedSectionListItemSource.js} +2 -2
- package/dist/cjs/serialization/types/GuidedSectionsCreateRequest.d.ts +1 -1
- package/dist/cjs/serialization/types/GuidedSectionsCreateRequest.js +1 -1
- package/dist/cjs/serialization/types/GuidedTemplate.d.ts +2 -17
- package/dist/cjs/serialization/types/GuidedTemplate.js +5 -18
- package/dist/cjs/serialization/types/GuidedTemplateListItem.d.ts +24 -0
- package/dist/cjs/serialization/types/GuidedTemplateListItem.js +56 -0
- package/dist/cjs/serialization/types/GuidedTemplateListItemSource.d.ts +7 -0
- package/dist/cjs/serialization/types/{GuidedTemplateSource.js → GuidedTemplateListItemSource.js} +2 -2
- package/dist/cjs/serialization/types/GuidedTemplatesCreateRequest.d.ts +1 -1
- package/dist/cjs/serialization/types/GuidedTemplatesCreateRequest.js +1 -1
- package/dist/cjs/serialization/types/index.d.ts +4 -2
- package/dist/cjs/serialization/types/index.js +4 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/documents/resources/sections/client/Client.d.mts +2 -10
- package/dist/esm/api/resources/documents/resources/sections/client/Client.mjs +1 -9
- package/dist/esm/api/resources/documents/resources/templates/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/documents/resources/templates/client/Client.mjs +1 -1
- package/dist/esm/api/types/GuidedSection.d.mts +6 -29
- package/dist/esm/api/types/GuidedSectionListItem.d.mts +36 -0
- package/dist/esm/api/types/GuidedSectionListItem.mjs +2 -0
- package/dist/esm/api/types/{GuidedSectionSource.d.mts → GuidedSectionListItemSource.d.mts} +2 -2
- package/dist/esm/api/types/{GuidedSectionSource.mjs → GuidedSectionListItemSource.mjs} +1 -1
- package/dist/esm/api/types/GuidedSectionsCreateRequest.d.mts +1 -1
- package/dist/esm/api/types/GuidedTemplate.d.mts +6 -29
- package/dist/esm/api/types/GuidedTemplateListItem.d.mts +36 -0
- package/dist/esm/api/types/GuidedTemplateListItem.mjs +2 -0
- package/dist/{cjs/api/types/GuidedTemplateSource.d.ts → esm/api/types/GuidedTemplateListItemSource.d.mts} +2 -2
- package/dist/esm/api/types/{GuidedTemplateSource.mjs → GuidedTemplateListItemSource.mjs} +1 -1
- package/dist/esm/api/types/GuidedTemplatesCreateRequest.d.mts +1 -1
- package/dist/esm/api/types/index.d.mts +4 -2
- package/dist/esm/api/types/index.mjs +4 -2
- package/dist/esm/serialization/resources/documents/resources/sections/client/list.d.mts +3 -3
- package/dist/esm/serialization/resources/documents/resources/sections/client/list.mjs +2 -2
- package/dist/esm/serialization/resources/documents/resources/templates/client/list.d.mts +3 -3
- package/dist/esm/serialization/resources/documents/resources/templates/client/list.mjs +2 -2
- package/dist/esm/serialization/types/GuidedSection.d.mts +2 -17
- package/dist/esm/serialization/types/GuidedSection.mjs +5 -18
- package/dist/esm/serialization/types/GuidedSectionListItem.d.mts +24 -0
- package/dist/esm/serialization/types/GuidedSectionListItem.mjs +20 -0
- package/dist/esm/serialization/types/GuidedSectionListItemSource.d.mts +7 -0
- package/dist/esm/serialization/types/{GuidedTemplateSource.mjs → GuidedSectionListItemSource.mjs} +1 -1
- package/dist/esm/serialization/types/GuidedSectionsCreateRequest.d.mts +1 -1
- package/dist/esm/serialization/types/GuidedSectionsCreateRequest.mjs +1 -1
- package/dist/esm/serialization/types/GuidedTemplate.d.mts +2 -17
- package/dist/esm/serialization/types/GuidedTemplate.mjs +5 -18
- package/dist/esm/serialization/types/GuidedTemplateListItem.d.mts +24 -0
- package/dist/esm/serialization/types/GuidedTemplateListItem.mjs +20 -0
- package/dist/esm/serialization/types/GuidedTemplateListItemSource.d.mts +7 -0
- package/dist/esm/serialization/types/{GuidedSectionSource.mjs → GuidedTemplateListItemSource.mjs} +1 -1
- package/dist/esm/serialization/types/GuidedTemplatesCreateRequest.d.mts +1 -1
- package/dist/esm/serialization/types/GuidedTemplatesCreateRequest.mjs +1 -1
- package/dist/esm/serialization/types/index.d.mts +4 -2
- package/dist/esm/serialization/types/index.mjs +4 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/dist/cjs/serialization/types/GuidedSectionSource.d.ts +0 -7
- package/dist/cjs/serialization/types/GuidedTemplateSource.d.ts +0 -7
- package/dist/esm/serialization/types/GuidedSectionSource.d.mts +0 -7
- package/dist/esm/serialization/types/GuidedTemplateSource.d.mts +0 -7
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -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": "4.0.0-rc.
|
|
47
|
-
"User-Agent": "@corti/sdk/4.0.0-rc.
|
|
46
|
+
"X-Fern-SDK-Version": "4.0.0-rc.3",
|
|
47
|
+
"User-Agent": "@corti/sdk/4.0.0-rc.3",
|
|
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,
|
|
@@ -23,7 +23,7 @@ export declare class SectionsClient {
|
|
|
23
23
|
* @example
|
|
24
24
|
* await client.documents.sections.list()
|
|
25
25
|
*/
|
|
26
|
-
list(request?: Corti.documents.GuidedSectionsListRequest, requestOptions?: SectionsClient.RequestOptions): core.HttpResponsePromise<Corti.
|
|
26
|
+
list(request?: Corti.documents.GuidedSectionsListRequest, requestOptions?: SectionsClient.RequestOptions): core.HttpResponsePromise<Corti.GuidedSectionListItem[]>;
|
|
27
27
|
private __list;
|
|
28
28
|
/**
|
|
29
29
|
* Creates a new section with an initial version. When `publish` is true (default),
|
|
@@ -38,15 +38,7 @@ export declare class SectionsClient {
|
|
|
38
38
|
* @example
|
|
39
39
|
* await client.documents.sections.create({
|
|
40
40
|
* name: "name",
|
|
41
|
-
*
|
|
42
|
-
* heading: "heading",
|
|
43
|
-
* instructions: {
|
|
44
|
-
* contentPrompt: "contentPrompt"
|
|
45
|
-
* },
|
|
46
|
-
* outputSchema: {
|
|
47
|
-
* type: "string"
|
|
48
|
-
* }
|
|
49
|
-
* }
|
|
41
|
+
* inheritFromId: "inheritFromId"
|
|
50
42
|
* })
|
|
51
43
|
*/
|
|
52
44
|
create(request: Corti.GuidedSectionsCreateRequest, requestOptions?: SectionsClient.RequestOptions): core.HttpResponsePromise<Corti.GuidedSection>;
|
|
@@ -138,15 +138,7 @@ class SectionsClient {
|
|
|
138
138
|
* @example
|
|
139
139
|
* await client.documents.sections.create({
|
|
140
140
|
* name: "name",
|
|
141
|
-
*
|
|
142
|
-
* heading: "heading",
|
|
143
|
-
* instructions: {
|
|
144
|
-
* contentPrompt: "contentPrompt"
|
|
145
|
-
* },
|
|
146
|
-
* outputSchema: {
|
|
147
|
-
* type: "string"
|
|
148
|
-
* }
|
|
149
|
-
* }
|
|
141
|
+
* inheritFromId: "inheritFromId"
|
|
150
142
|
* })
|
|
151
143
|
*/
|
|
152
144
|
create(request, requestOptions) {
|
|
@@ -23,7 +23,7 @@ export declare class TemplatesClient {
|
|
|
23
23
|
* @example
|
|
24
24
|
* await client.documents.templates.list()
|
|
25
25
|
*/
|
|
26
|
-
list(request?: Corti.documents.GuidedTemplatesListRequest, requestOptions?: TemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.
|
|
26
|
+
list(request?: Corti.documents.GuidedTemplatesListRequest, requestOptions?: TemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.GuidedTemplateListItem[]>;
|
|
27
27
|
private __list;
|
|
28
28
|
/**
|
|
29
29
|
* Creates a new template with an initial version. When `publish` is true (default),
|
|
@@ -38,7 +38,7 @@ export declare class TemplatesClient {
|
|
|
38
38
|
* @example
|
|
39
39
|
* await client.documents.templates.create({
|
|
40
40
|
* name: "name",
|
|
41
|
-
*
|
|
41
|
+
* inheritFromId: "inheritFromId"
|
|
42
42
|
* })
|
|
43
43
|
*/
|
|
44
44
|
create(request: Corti.GuidedTemplatesCreateRequest, requestOptions?: TemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.GuidedTemplate>;
|
|
@@ -1,33 +1,10 @@
|
|
|
1
1
|
import type * as Corti from "../index.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
autoGenerated?: boolean;
|
|
9
|
-
/** Whether this section was created by the user, a project-related API Client or is a Corti standard resource. */
|
|
10
|
-
source?: Corti.GuidedSectionSource;
|
|
11
|
-
/** The name of the section. */
|
|
12
|
-
name: string;
|
|
13
|
-
/** BCP 47 languages this section has been tweaked for. Empty means no language-specific tweaks. */
|
|
14
|
-
languages: string[];
|
|
15
|
-
/** ISO 3166-1 alpha-3 country codes this section has been tweaked for. Empty means no region-specific tweaks. */
|
|
16
|
-
regions: string[];
|
|
17
|
-
/** Clinical specialties this section has been tweaked for. Empty means no specialty-specific tweaks. */
|
|
18
|
-
specialties: string[];
|
|
19
|
-
/** The description for the section. */
|
|
20
|
-
description?: string;
|
|
21
|
-
/** The labels available to use as query param filter in the LIST /sections endpoint. */
|
|
22
|
-
labels: Corti.GuidedLabel[];
|
|
2
|
+
/**
|
|
3
|
+
* Section as returned by single-resource endpoints (GET, POST, PATCH on
|
|
4
|
+
* `/documents/sections/{sectionID}`) and when embedded inside a resolved template
|
|
5
|
+
* version. Extends `GuidedSectionListItem` with the resolved `publishedVersion`.
|
|
6
|
+
*/
|
|
7
|
+
export interface GuidedSection extends Corti.GuidedSectionListItem {
|
|
23
8
|
/** The currently published version with section inheritance fully resolved. Present when a version has been published. */
|
|
24
9
|
publishedVersion?: Corti.GuidedSectionVersion;
|
|
25
|
-
/** The UUID of the creator of this section. */
|
|
26
|
-
createdBy?: string;
|
|
27
|
-
/** The original timestamp when the section was created. */
|
|
28
|
-
createdAt: Date;
|
|
29
|
-
/** The original timestamp when the section was last updated. */
|
|
30
|
-
updatedAt: Date;
|
|
31
|
-
/** Present when the section has been deleted. GET by ID still returns the full resource with this field populated. */
|
|
32
|
-
deletedAt?: Date | null;
|
|
33
10
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type * as Corti from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Section metadata as returned by the LIST /documents/sections endpoint. Does not
|
|
4
|
+
* include the resolved `publishedVersion` — use GET /documents/sections/{sectionID}
|
|
5
|
+
* to fetch a single section with its published version resolved.
|
|
6
|
+
*/
|
|
7
|
+
export interface GuidedSectionListItem {
|
|
8
|
+
/** The UUID of the section. */
|
|
9
|
+
id: string;
|
|
10
|
+
/** Reference to the section to inherit generation configuration from. Inherits from published version by default. */
|
|
11
|
+
inheritedFromId?: string | null;
|
|
12
|
+
/** True if the section was auto-generated as part of an inline section-composed POST /documents request. */
|
|
13
|
+
autoGenerated?: boolean;
|
|
14
|
+
/** Whether this section was created by the user, a project-related API Client or is a Corti standard resource. */
|
|
15
|
+
source?: Corti.GuidedSectionListItemSource;
|
|
16
|
+
/** The name of the section. */
|
|
17
|
+
name: string;
|
|
18
|
+
/** BCP 47 languages this section has been tweaked for. Empty means no language-specific tweaks. */
|
|
19
|
+
languages: string[];
|
|
20
|
+
/** ISO 3166-1 alpha-3 country codes this section has been tweaked for. Empty means no region-specific tweaks. */
|
|
21
|
+
regions: string[];
|
|
22
|
+
/** Clinical specialties this section has been tweaked for. Empty means no specialty-specific tweaks. */
|
|
23
|
+
specialties: string[];
|
|
24
|
+
/** The description for the section. */
|
|
25
|
+
description?: string;
|
|
26
|
+
/** The labels available to use as query param filter in the LIST /sections endpoint. */
|
|
27
|
+
labels: Corti.GuidedLabel[];
|
|
28
|
+
/** The UUID of the creator of this section. */
|
|
29
|
+
createdBy?: string;
|
|
30
|
+
/** The original timestamp when the section was created. */
|
|
31
|
+
createdAt: Date;
|
|
32
|
+
/** The original timestamp when the section was last updated. */
|
|
33
|
+
updatedAt: Date;
|
|
34
|
+
/** Present when the section has been deleted. GET by ID still returns the full resource with this field populated. */
|
|
35
|
+
deletedAt?: Date | null;
|
|
36
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** Whether this section was created by the user, a project-related API Client or is a Corti standard resource. */
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const GuidedSectionListItemSource: {
|
|
3
3
|
readonly User: "user";
|
|
4
4
|
readonly Corti: "corti";
|
|
5
5
|
readonly Project: "project";
|
|
6
6
|
};
|
|
7
|
-
export type
|
|
7
|
+
export type GuidedSectionListItemSource = (typeof GuidedSectionListItemSource)[keyof typeof GuidedSectionListItemSource];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.GuidedSectionListItemSource = void 0;
|
|
5
5
|
/** Whether this section was created by the user, a project-related API Client or is a Corti standard resource. */
|
|
6
|
-
exports.
|
|
6
|
+
exports.GuidedSectionListItemSource = {
|
|
7
7
|
User: "user",
|
|
8
8
|
Corti: "corti",
|
|
9
9
|
Project: "project",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type * as Corti from "../index.js";
|
|
2
|
-
export type GuidedSectionsCreateRequest = Corti.
|
|
2
|
+
export type GuidedSectionsCreateRequest = Corti.GuidedSectionsCreateFromInheritanceRequest | Corti.GuidedSectionsCreateFromScratchRequest;
|
|
@@ -1,33 +1,10 @@
|
|
|
1
1
|
import type * as Corti from "../index.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
autoGenerated?: boolean;
|
|
9
|
-
/** Whether this template was created by the user, a project-related API Client or is a Corti standard resource. */
|
|
10
|
-
source?: Corti.GuidedTemplateSource;
|
|
11
|
-
/** The name of this template. Not passed to the LLM. */
|
|
12
|
-
name: string;
|
|
13
|
-
/** A description for this template. Not passed to the LLM. */
|
|
14
|
-
description?: string;
|
|
15
|
-
/** BCP 47 language tags this template has been tweaked for (e.g. `["fr", "de", "en-GB"]`). Empty means no language-specific tweaks. */
|
|
16
|
-
languages: string[];
|
|
17
|
-
/** ISO 3166-1 alpha-3 country codes this template has been tweaked for (e.g. `["BEL"]`). Empty means no region-specific tweaks. */
|
|
18
|
-
regions: string[];
|
|
19
|
-
/** Clinical specialties this template has been tweaked for. Empty means no specialty-specific tweaks. */
|
|
20
|
-
specialties: string[];
|
|
21
|
-
/** The available labels to use as query param filter in the LIST /templates endpoint. */
|
|
22
|
-
labels: Corti.GuidedLabel[];
|
|
2
|
+
/**
|
|
3
|
+
* Template as returned by single-resource endpoints (GET, POST, PATCH on
|
|
4
|
+
* `/documents/templates/{templateID}`). Extends `GuidedTemplateListItem` with the resolved
|
|
5
|
+
* `publishedVersion`.
|
|
6
|
+
*/
|
|
7
|
+
export interface GuidedTemplate extends Corti.GuidedTemplateListItem {
|
|
23
8
|
/** The currently published version with inheritance fully resolved. Present when a version has been published. */
|
|
24
9
|
publishedVersion?: Corti.GuidedTemplateVersion;
|
|
25
|
-
/** The UUID of the creator of this template. */
|
|
26
|
-
createdBy?: string;
|
|
27
|
-
/** The original timestamp when the template was created. */
|
|
28
|
-
createdAt: Date;
|
|
29
|
-
/** The original timestamp when the template was last updated. */
|
|
30
|
-
updatedAt: Date;
|
|
31
|
-
/** Present when the template has been deleted. GET by ID still returns the full resource with this field populated. */
|
|
32
|
-
deletedAt?: Date | null;
|
|
33
10
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type * as Corti from "../index.js";
|
|
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
|
+
}
|
|
@@ -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
|
|
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
|
|
7
|
+
export type GuidedTemplateListItemSource = (typeof GuidedTemplateListItemSource)[keyof typeof GuidedTemplateListItemSource];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.GuidedTemplateListItemSource = void 0;
|
|
5
5
|
/** Whether this template was created by the user, a project-related API Client or is a Corti standard resource. */
|
|
6
|
-
exports.
|
|
6
|
+
exports.GuidedTemplateListItemSource = {
|
|
7
7
|
User: "user",
|
|
8
8
|
Corti: "corti",
|
|
9
9
|
Project: "project",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type * as Corti from "../index.js";
|
|
2
|
-
export type GuidedTemplatesCreateRequest = Corti.
|
|
2
|
+
export type GuidedTemplatesCreateRequest = Corti.GuidedTemplatesCreateFromInheritanceRequest | Corti.GuidedTemplatesCreateFromScratchRequest;
|
|
@@ -141,9 +141,10 @@ export * from "./GuidedSectionGenerationPartial.js";
|
|
|
141
141
|
export * from "./GuidedSectionInstructions.js";
|
|
142
142
|
export * from "./GuidedSectionInstructionsOverride.js";
|
|
143
143
|
export * from "./GuidedSectionInstructionsPartial.js";
|
|
144
|
+
export * from "./GuidedSectionListItem.js";
|
|
145
|
+
export * from "./GuidedSectionListItemSource.js";
|
|
144
146
|
export * from "./GuidedSectionOverride.js";
|
|
145
147
|
export * from "./GuidedSectionOverrides.js";
|
|
146
|
-
export * from "./GuidedSectionSource.js";
|
|
147
148
|
export * from "./GuidedSectionsCreateBase.js";
|
|
148
149
|
export * from "./GuidedSectionsCreateFromInheritanceRequest.js";
|
|
149
150
|
export * from "./GuidedSectionsCreateFromScratchRequest.js";
|
|
@@ -157,9 +158,10 @@ export * from "./GuidedTemplate.js";
|
|
|
157
158
|
export * from "./GuidedTemplateGeneration.js";
|
|
158
159
|
export * from "./GuidedTemplateInstructions.js";
|
|
159
160
|
export * from "./GuidedTemplateInstructionsPartial.js";
|
|
161
|
+
export * from "./GuidedTemplateListItem.js";
|
|
162
|
+
export * from "./GuidedTemplateListItemSource.js";
|
|
160
163
|
export * from "./GuidedTemplateOverrides.js";
|
|
161
164
|
export * from "./GuidedTemplateRef.js";
|
|
162
|
-
export * from "./GuidedTemplateSource.js";
|
|
163
165
|
export * from "./GuidedTemplatesCreateBase.js";
|
|
164
166
|
export * from "./GuidedTemplatesCreateFromInheritanceRequest.js";
|
|
165
167
|
export * from "./GuidedTemplatesCreateFromInheritanceRequestGeneration.js";
|
|
@@ -157,9 +157,10 @@ __exportStar(require("./GuidedSectionGenerationPartial.js"), exports);
|
|
|
157
157
|
__exportStar(require("./GuidedSectionInstructions.js"), exports);
|
|
158
158
|
__exportStar(require("./GuidedSectionInstructionsOverride.js"), exports);
|
|
159
159
|
__exportStar(require("./GuidedSectionInstructionsPartial.js"), exports);
|
|
160
|
+
__exportStar(require("./GuidedSectionListItem.js"), exports);
|
|
161
|
+
__exportStar(require("./GuidedSectionListItemSource.js"), exports);
|
|
160
162
|
__exportStar(require("./GuidedSectionOverride.js"), exports);
|
|
161
163
|
__exportStar(require("./GuidedSectionOverrides.js"), exports);
|
|
162
|
-
__exportStar(require("./GuidedSectionSource.js"), exports);
|
|
163
164
|
__exportStar(require("./GuidedSectionsCreateBase.js"), exports);
|
|
164
165
|
__exportStar(require("./GuidedSectionsCreateFromInheritanceRequest.js"), exports);
|
|
165
166
|
__exportStar(require("./GuidedSectionsCreateFromScratchRequest.js"), exports);
|
|
@@ -173,9 +174,10 @@ __exportStar(require("./GuidedTemplate.js"), exports);
|
|
|
173
174
|
__exportStar(require("./GuidedTemplateGeneration.js"), exports);
|
|
174
175
|
__exportStar(require("./GuidedTemplateInstructions.js"), exports);
|
|
175
176
|
__exportStar(require("./GuidedTemplateInstructionsPartial.js"), exports);
|
|
177
|
+
__exportStar(require("./GuidedTemplateListItem.js"), exports);
|
|
178
|
+
__exportStar(require("./GuidedTemplateListItemSource.js"), exports);
|
|
176
179
|
__exportStar(require("./GuidedTemplateOverrides.js"), exports);
|
|
177
180
|
__exportStar(require("./GuidedTemplateRef.js"), exports);
|
|
178
|
-
__exportStar(require("./GuidedTemplateSource.js"), exports);
|
|
179
181
|
__exportStar(require("./GuidedTemplatesCreateBase.js"), exports);
|
|
180
182
|
__exportStar(require("./GuidedTemplatesCreateFromInheritanceRequest.js"), exports);
|
|
181
183
|
__exportStar(require("./GuidedTemplatesCreateFromInheritanceRequestGeneration.js"), exports);
|
|
@@ -1,8 +1,8 @@
|
|
|
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 {
|
|
5
|
-
export declare const Response: core.serialization.Schema<serializers.documents.sections.list.Response.Raw, Corti.
|
|
4
|
+
import { GuidedSectionListItem } from "../../../../../types/GuidedSectionListItem.js";
|
|
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 =
|
|
7
|
+
type Raw = GuidedSectionListItem.Raw[];
|
|
8
8
|
}
|
|
@@ -36,5 +36,5 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.Response = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../../../core/index.js"));
|
|
39
|
-
const
|
|
40
|
-
exports.Response = core.serialization.list(
|
|
39
|
+
const GuidedSectionListItem_js_1 = require("../../../../../types/GuidedSectionListItem.js");
|
|
40
|
+
exports.Response = core.serialization.list(GuidedSectionListItem_js_1.GuidedSectionListItem);
|
|
@@ -1,8 +1,8 @@
|
|
|
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 {
|
|
5
|
-
export declare const Response: core.serialization.Schema<serializers.documents.templates.list.Response.Raw, Corti.
|
|
4
|
+
import { GuidedTemplateListItem } from "../../../../../types/GuidedTemplateListItem.js";
|
|
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 =
|
|
7
|
+
type Raw = GuidedTemplateListItem.Raw[];
|
|
8
8
|
}
|
|
@@ -36,5 +36,5 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.Response = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../../../core/index.js"));
|
|
39
|
-
const
|
|
40
|
-
exports.Response = core.serialization.list(
|
|
39
|
+
const GuidedTemplateListItem_js_1 = require("../../../../../types/GuidedTemplateListItem.js");
|
|
40
|
+
exports.Response = core.serialization.list(GuidedTemplateListItem_js_1.GuidedTemplateListItem);
|
|
@@ -1,26 +1,11 @@
|
|
|
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 {
|
|
5
|
-
import { GuidedSectionSource } from "./GuidedSectionSource.js";
|
|
4
|
+
import { GuidedSectionListItem } from "./GuidedSectionListItem.js";
|
|
6
5
|
import { GuidedSectionVersion } from "./GuidedSectionVersion.js";
|
|
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
|
}
|
|
@@ -36,23 +36,10 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.GuidedSection = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
|
-
const
|
|
40
|
-
const GuidedSectionSource_js_1 = require("./GuidedSectionSource.js");
|
|
39
|
+
const GuidedSectionListItem_js_1 = require("./GuidedSectionListItem.js");
|
|
41
40
|
const GuidedSectionVersion_js_1 = require("./GuidedSectionVersion.js");
|
|
42
|
-
exports.GuidedSection = core.serialization
|
|
43
|
-
|
|
44
|
-
inheritedFromId: core.serialization.string().optionalNullable(),
|
|
45
|
-
autoGenerated: core.serialization.boolean().optional(),
|
|
46
|
-
source: GuidedSectionSource_js_1.GuidedSectionSource.optional(),
|
|
47
|
-
name: core.serialization.string(),
|
|
48
|
-
languages: core.serialization.list(core.serialization.string()),
|
|
49
|
-
regions: core.serialization.list(core.serialization.string()),
|
|
50
|
-
specialties: core.serialization.list(core.serialization.string()),
|
|
51
|
-
description: core.serialization.string().optional(),
|
|
52
|
-
labels: core.serialization.list(GuidedLabel_js_1.GuidedLabel),
|
|
41
|
+
exports.GuidedSection = core.serialization
|
|
42
|
+
.object({
|
|
53
43
|
publishedVersion: GuidedSectionVersion_js_1.GuidedSectionVersion.optional(),
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
updatedAt: core.serialization.date(),
|
|
57
|
-
deletedAt: core.serialization.date().optionalNullable(),
|
|
58
|
-
});
|
|
44
|
+
})
|
|
45
|
+
.extend(GuidedSectionListItem_js_1.GuidedSectionListItem);
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
import { GuidedLabel } from "./GuidedLabel.js";
|
|
5
|
+
import { GuidedSectionListItemSource } from "./GuidedSectionListItemSource.js";
|
|
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,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.GuidedSectionListItem = void 0;
|
|
38
|
+
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
const GuidedLabel_js_1 = require("./GuidedLabel.js");
|
|
40
|
+
const GuidedSectionListItemSource_js_1 = require("./GuidedSectionListItemSource.js");
|
|
41
|
+
exports.GuidedSectionListItem = core.serialization.object({
|
|
42
|
+
id: core.serialization.string(),
|
|
43
|
+
inheritedFromId: core.serialization.string().optionalNullable(),
|
|
44
|
+
autoGenerated: core.serialization.boolean().optional(),
|
|
45
|
+
source: GuidedSectionListItemSource_js_1.GuidedSectionListItemSource.optional(),
|
|
46
|
+
name: core.serialization.string(),
|
|
47
|
+
languages: core.serialization.list(core.serialization.string()),
|
|
48
|
+
regions: core.serialization.list(core.serialization.string()),
|
|
49
|
+
specialties: core.serialization.list(core.serialization.string()),
|
|
50
|
+
description: core.serialization.string().optional(),
|
|
51
|
+
labels: core.serialization.list(GuidedLabel_js_1.GuidedLabel),
|
|
52
|
+
createdBy: core.serialization.string().optional(),
|
|
53
|
+
createdAt: core.serialization.date(),
|
|
54
|
+
updatedAt: core.serialization.date(),
|
|
55
|
+
deletedAt: core.serialization.date().optionalNullable(),
|
|
56
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
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 GuidedSectionListItemSource: core.serialization.Schema<serializers.GuidedSectionListItemSource.Raw, Corti.GuidedSectionListItemSource>;
|
|
5
|
+
export declare namespace GuidedSectionListItemSource {
|
|
6
|
+
type Raw = "user" | "corti" | "project";
|
|
7
|
+
}
|
package/dist/cjs/serialization/types/{GuidedSectionSource.js → GuidedSectionListItemSource.js}
RENAMED
|
@@ -34,6 +34,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
};
|
|
35
35
|
})();
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.
|
|
37
|
+
exports.GuidedSectionListItemSource = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
|
-
exports.
|
|
39
|
+
exports.GuidedSectionListItemSource = core.serialization.enum_(["user", "corti", "project"]);
|
|
@@ -5,5 +5,5 @@ import { GuidedSectionsCreateFromInheritanceRequest } from "./GuidedSectionsCrea
|
|
|
5
5
|
import { GuidedSectionsCreateFromScratchRequest } from "./GuidedSectionsCreateFromScratchRequest.js";
|
|
6
6
|
export declare const GuidedSectionsCreateRequest: core.serialization.Schema<serializers.GuidedSectionsCreateRequest.Raw, Corti.GuidedSectionsCreateRequest>;
|
|
7
7
|
export declare namespace GuidedSectionsCreateRequest {
|
|
8
|
-
type Raw =
|
|
8
|
+
type Raw = GuidedSectionsCreateFromInheritanceRequest.Raw | GuidedSectionsCreateFromScratchRequest.Raw;
|
|
9
9
|
}
|
|
@@ -39,6 +39,6 @@ const core = __importStar(require("../../core/index.js"));
|
|
|
39
39
|
const GuidedSectionsCreateFromInheritanceRequest_js_1 = require("./GuidedSectionsCreateFromInheritanceRequest.js");
|
|
40
40
|
const GuidedSectionsCreateFromScratchRequest_js_1 = require("./GuidedSectionsCreateFromScratchRequest.js");
|
|
41
41
|
exports.GuidedSectionsCreateRequest = core.serialization.undiscriminatedUnion([
|
|
42
|
-
GuidedSectionsCreateFromScratchRequest_js_1.GuidedSectionsCreateFromScratchRequest,
|
|
43
42
|
GuidedSectionsCreateFromInheritanceRequest_js_1.GuidedSectionsCreateFromInheritanceRequest,
|
|
43
|
+
GuidedSectionsCreateFromScratchRequest_js_1.GuidedSectionsCreateFromScratchRequest,
|
|
44
44
|
]);
|
|
@@ -1,26 +1,11 @@
|
|
|
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 {
|
|
5
|
-
import { GuidedTemplateSource } from "./GuidedTemplateSource.js";
|
|
4
|
+
import { GuidedTemplateListItem } from "./GuidedTemplateListItem.js";
|
|
6
5
|
import { GuidedTemplateVersion } from "./GuidedTemplateVersion.js";
|
|
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
|
}
|