@promptbook/markdown-utils 0.89.0-20 → 0.89.0-28

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/esm/index.es.js CHANGED
@@ -25,7 +25,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
25
25
  * @generated
26
26
  * @see https://github.com/webgptorg/promptbook
27
27
  */
28
- const PROMPTBOOK_ENGINE_VERSION = '0.89.0-20';
28
+ const PROMPTBOOK_ENGINE_VERSION = '0.89.0-28';
29
29
  /**
30
30
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
31
31
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -0,0 +1,187 @@
1
+ /**
2
+ * @private !!!! Decide how to expose this
3
+ */
4
+ export declare const openapiJson: {
5
+ openapi: string;
6
+ info: {
7
+ title: string;
8
+ version: string;
9
+ description: string;
10
+ };
11
+ paths: {
12
+ '/': {
13
+ get: {
14
+ summary: string;
15
+ description: string;
16
+ responses: {
17
+ '200': {
18
+ description: string;
19
+ };
20
+ };
21
+ };
22
+ };
23
+ '/login': {
24
+ post: {
25
+ summary: string;
26
+ description: string;
27
+ requestBody: {
28
+ required: boolean;
29
+ content: {
30
+ 'application/json': {
31
+ schema: {
32
+ type: string;
33
+ properties: {
34
+ username: {
35
+ type: string;
36
+ };
37
+ password: {
38
+ type: string;
39
+ };
40
+ appId: {
41
+ type: string;
42
+ };
43
+ };
44
+ };
45
+ };
46
+ };
47
+ };
48
+ responses: {
49
+ '200': {
50
+ description: string;
51
+ content: {
52
+ 'application/json': {
53
+ schema: {
54
+ type: string;
55
+ properties: {
56
+ identification: {
57
+ type: string;
58
+ };
59
+ };
60
+ };
61
+ };
62
+ };
63
+ };
64
+ };
65
+ };
66
+ };
67
+ '/books': {
68
+ get: {
69
+ summary: string;
70
+ description: string;
71
+ responses: {
72
+ '200': {
73
+ description: string;
74
+ content: {
75
+ 'application/json': {
76
+ schema: {
77
+ type: string;
78
+ items: {
79
+ type: string;
80
+ };
81
+ };
82
+ };
83
+ };
84
+ };
85
+ };
86
+ };
87
+ };
88
+ '/books/{bookId}': {
89
+ get: {
90
+ summary: string;
91
+ description: string;
92
+ parameters: {
93
+ in: string;
94
+ name: string;
95
+ required: boolean;
96
+ schema: {
97
+ type: string;
98
+ };
99
+ description: string;
100
+ }[];
101
+ responses: {
102
+ '200': {
103
+ description: string;
104
+ content: {
105
+ 'text/markdown': {
106
+ schema: {
107
+ type: string;
108
+ };
109
+ };
110
+ };
111
+ };
112
+ '404': {
113
+ description: string;
114
+ };
115
+ };
116
+ };
117
+ };
118
+ '/executions': {
119
+ get: {
120
+ summary: string;
121
+ description: string;
122
+ responses: {
123
+ '200': {
124
+ description: string;
125
+ content: {
126
+ 'application/json': {
127
+ schema: {
128
+ type: string;
129
+ items: {
130
+ type: string;
131
+ };
132
+ };
133
+ };
134
+ };
135
+ };
136
+ };
137
+ };
138
+ };
139
+ '/executions/new': {
140
+ post: {
141
+ summary: string;
142
+ description: string;
143
+ requestBody: {
144
+ required: boolean;
145
+ content: {
146
+ 'application/json': {
147
+ schema: {
148
+ type: string;
149
+ properties: {
150
+ pipelineUrl: {
151
+ type: string;
152
+ };
153
+ inputParameters: {
154
+ type: string;
155
+ };
156
+ identification: {
157
+ type: string;
158
+ };
159
+ };
160
+ };
161
+ };
162
+ };
163
+ };
164
+ responses: {
165
+ '200': {
166
+ description: string;
167
+ content: {
168
+ 'application/json': {
169
+ schema: {
170
+ type: string;
171
+ };
172
+ };
173
+ };
174
+ };
175
+ '400': {
176
+ description: string;
177
+ };
178
+ };
179
+ };
180
+ };
181
+ };
182
+ components: {};
183
+ tags: never[];
184
+ };
185
+ /**
186
+ * Note: [💞] Ignore a discrepancy between file name and entity name
187
+ */
@@ -11,7 +11,7 @@ import type { RemoteServerOptions } from './types/RemoteServerOptions';
11
11
  */
12
12
  export declare function startRemoteServer<TCustomOptions = undefined>(options: RemoteServerOptions<TCustomOptions>): RemoteServer;
13
13
  /**
14
- * TODO: !! Add CORS and security - probbably via `helmet`
14
+ * TODO: [🌡] Add CORS and security - probbably via `helmet`
15
15
  * TODO: Split this file into multiple functions - handler for each request
16
16
  * TODO: Maybe use `$exportJson`
17
17
  * TODO: [🧠][🛍] Maybe not `isAnonymous: boolean` BUT `mode: 'ANONYMOUS'|'COLLECTION'`
@@ -8,7 +8,6 @@ import type { LlmExecutionTools } from '../../execution/LlmExecutionTools';
8
8
  import type { string_app_id } from '../../types/typeAliases';
9
9
  import type { string_email } from '../../types/typeAliases';
10
10
  import type { string_password } from '../../types/typeAliases';
11
- import type { string_uri } from '../../types/typeAliases';
12
11
  import type { string_user_id } from '../../types/typeAliases';
13
12
  import type { ApplicationModeIdentification } from '../socket-types/_subtypes/Identification';
14
13
  import type { Identification } from '../socket-types/_subtypes/Identification';
@@ -30,15 +29,6 @@ export type RemoteServerOptions<TCustomOptions> = CommonToolsOptions & {
30
29
  * Port on which the server will listen
31
30
  */
32
31
  readonly port: number;
33
- /**
34
- * Root path of the server
35
- *
36
- * Note: This is useful when you reverse proxy the server without changing the path
37
- *
38
- * @default '/'
39
- * @example '/api/promptbook/'
40
- */
41
- readonly rootPath?: string_uri;
42
32
  /**
43
33
  * Creates execution tools the client
44
34
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/markdown-utils",
3
- "version": "0.89.0-20",
3
+ "version": "0.89.0-28",
4
4
  "description": "It's time for a paradigm shift. The future of software in plain English, French or Latin",
5
5
  "private": false,
6
6
  "sideEffects": false,
package/umd/index.umd.js CHANGED
@@ -25,7 +25,7 @@
25
25
  * @generated
26
26
  * @see https://github.com/webgptorg/promptbook
27
27
  */
28
- const PROMPTBOOK_ENGINE_VERSION = '0.89.0-20';
28
+ const PROMPTBOOK_ENGINE_VERSION = '0.89.0-28';
29
29
  /**
30
30
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
31
31
  * Note: [💞] Ignore a discrepancy between file name and entity name