Skip to content

Commit ddecb2b

Browse files
authored
Add completion_url and enum to the integration configuration manifest. (#776)
1 parent 5499cc5 commit ddecb2b

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

.changeset/large-seals-cross.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@gitbook/cli': patch
3+
---
4+
5+
Add completion_url and enum to the integration configuration manifest.

bun.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@
317317
},
318318
"integrations/marketo": {
319319
"name": "@gitbook/integration-marketo",
320-
"version": "0.1.0",
320+
"version": "0.1.2",
321321
"dependencies": {
322322
"@gitbook/api": "*",
323323
"@gitbook/runtime": "*",
@@ -367,7 +367,7 @@
367367
},
368368
"integrations/openapi": {
369369
"name": "@gitbook/integration-openapi",
370-
"version": "0.1.1",
370+
"version": "0.2.0",
371371
"dependencies": {
372372
"@gitbook/api": "*",
373373
"@gitbook/document": "*",
@@ -562,7 +562,7 @@
562562
},
563563
"packages/api": {
564564
"name": "@gitbook/api",
565-
"version": "0.100.0",
565+
"version": "0.105.0",
566566
"dependencies": {
567567
"event-iterator": "^2.0.0",
568568
"eventsource-parser": "^3.0.0",

packages/cli/src/manifest.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ const IntegrationManifestSchemaConfiguration = z.object({
3333
JSONSchemaBaseSchema.extend({
3434
type: z.literal('string'),
3535
default: z.string().optional(),
36+
completion_url: z.string().optional(),
37+
enum: z.array(z.string()).optional(),
3638
}),
3739
JSONSchemaBaseSchema.extend({
3840
type: z.literal('number'),

packages/runtime/src/contentSources.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@ import {
22
ContentComputeDocumentEvent,
33
ContentComputeRevisionEventResponse,
44
ContentComputeRevisionEvent,
5-
ComputedContentDependencyValue,
6-
ComputedContentDependencyRef,
75
Document,
86
} from '@gitbook/api';
97
import { PlainObject } from './common';
108
import { RuntimeCallback, RuntimeContext } from './context';
119

10+
type ComputedContentDependencyValue = any;
11+
type ComputedContentDependencyRef = any;
12+
1213
export interface ContentSourceDefinition<Context extends RuntimeContext = RuntimeContext> {
1314
sourceId: string;
1415
compute: RuntimeCallback<

0 commit comments

Comments
 (0)