openai 1.0.0 → 2.0.0
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/.openapi-generator/FILES +6 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +5 -0
- package/LICENSE +6 -6
- package/README.md +33 -179
- package/api.ts +2272 -0
- package/base.ts +71 -0
- package/common.ts +138 -0
- package/configuration.ts +127 -0
- package/dist/api.d.ts +1643 -0
- package/dist/api.js +1164 -0
- package/dist/base.d.ts +55 -0
- package/dist/base.js +61 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +143 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +54 -0
- package/dist/index.d.ts +13 -31
- package/dist/index.js +27 -193
- package/index.ts +18 -0
- package/package.json +25 -43
- package/tsconfig.json +17 -0
- package/dist/types.d.ts +0 -175
- package/dist/types.js +0 -12
package/dist/index.js
CHANGED
|
@@ -1,193 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
if (organizationId) {
|
|
29
|
-
this.headers['openai-organization'] = organizationId;
|
|
30
|
-
}
|
|
31
|
-
this.url = `${baseUrl}/${version}`;
|
|
32
|
-
}
|
|
33
|
-
getEngines() {
|
|
34
|
-
return this.request('/engines', 'GET').then((r) => r.data);
|
|
35
|
-
}
|
|
36
|
-
getEngine(engine) {
|
|
37
|
-
return this.request(`/engines/${engine}`, 'GET');
|
|
38
|
-
}
|
|
39
|
-
complete(engine, options) {
|
|
40
|
-
return this.request(`/engines/${engine}/completions`, 'POST', options);
|
|
41
|
-
}
|
|
42
|
-
completeFromModel(fineTunedModel, options) {
|
|
43
|
-
return this.request(`/completions`, 'POST', { ...options, model: fineTunedModel });
|
|
44
|
-
}
|
|
45
|
-
async completeAndStream(engine, options) {
|
|
46
|
-
const request = await this.requestRaw(`/engines/${engine}/completions`, 'POST', { ...options, stream: true });
|
|
47
|
-
return request.body.pipe(this.eventStreamTransformer());
|
|
48
|
-
}
|
|
49
|
-
async completeFromModelAndStream(fineTunedModel, options) {
|
|
50
|
-
const request = await this.requestRaw(`/completions`, 'POST', {
|
|
51
|
-
...options,
|
|
52
|
-
model: fineTunedModel,
|
|
53
|
-
stream: true,
|
|
54
|
-
});
|
|
55
|
-
return request.body.pipe(this.eventStreamTransformer());
|
|
56
|
-
}
|
|
57
|
-
async contentFilter(content, user) {
|
|
58
|
-
const completion = await this.complete('content-filter-alpha-c4', {
|
|
59
|
-
prompt: `<|endoftext|>${content}\n--\nLabel:`,
|
|
60
|
-
temperature: 0,
|
|
61
|
-
max_tokens: 1,
|
|
62
|
-
top_p: 1,
|
|
63
|
-
frequency_penalty: 0,
|
|
64
|
-
presence_penalty: 0,
|
|
65
|
-
logprobs: 10,
|
|
66
|
-
user,
|
|
67
|
-
});
|
|
68
|
-
let label = Number(completion.choices[0].text);
|
|
69
|
-
if (label === 2) {
|
|
70
|
-
const logprobs = completion.choices[0].logprobs?.top_logprobs[0];
|
|
71
|
-
if (logprobs && logprobs['2'] < -0.355) {
|
|
72
|
-
if (logprobs['0'] && logprobs['1']) {
|
|
73
|
-
label = logprobs['0'] >= logprobs['1'] ? 0 : 1;
|
|
74
|
-
}
|
|
75
|
-
else if (logprobs['0']) {
|
|
76
|
-
label = 0;
|
|
77
|
-
}
|
|
78
|
-
else if (logprobs['1']) {
|
|
79
|
-
label = 1;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
if (![0, 1, 2].includes(label)) {
|
|
84
|
-
label = 2;
|
|
85
|
-
}
|
|
86
|
-
return label;
|
|
87
|
-
}
|
|
88
|
-
search(engine, options) {
|
|
89
|
-
return this.request(`/engines/${engine}/search`, 'POST', options).then((r) => r.data);
|
|
90
|
-
}
|
|
91
|
-
classify(options) {
|
|
92
|
-
return this.request('/classifications', 'POST', options);
|
|
93
|
-
}
|
|
94
|
-
answer(options) {
|
|
95
|
-
return this.request('/answers', 'POST', options);
|
|
96
|
-
}
|
|
97
|
-
getFiles() {
|
|
98
|
-
return this.request('/files', 'GET').then((r) => r.data);
|
|
99
|
-
}
|
|
100
|
-
uploadFile(file, jsonlines, purpose) {
|
|
101
|
-
const data = new form_data_1.default();
|
|
102
|
-
let fileJsonlines;
|
|
103
|
-
if (Array.isArray(jsonlines)) {
|
|
104
|
-
if (typeof jsonlines[0] === 'object') {
|
|
105
|
-
jsonlines = jsonlines.map((j) => JSON.stringify(j));
|
|
106
|
-
}
|
|
107
|
-
fileJsonlines = jsonlines.join('\n');
|
|
108
|
-
}
|
|
109
|
-
else {
|
|
110
|
-
fileJsonlines = jsonlines;
|
|
111
|
-
}
|
|
112
|
-
data.append('file', fileJsonlines, file);
|
|
113
|
-
data.append('purpose', purpose);
|
|
114
|
-
return this.request('/files', 'POST', data);
|
|
115
|
-
}
|
|
116
|
-
getFile(fileId) {
|
|
117
|
-
return this.request(`/files/${fileId}`, 'GET');
|
|
118
|
-
}
|
|
119
|
-
deleteFile(fileId) {
|
|
120
|
-
return this.request(`/files/${fileId}`, 'DELETE');
|
|
121
|
-
}
|
|
122
|
-
finetune(options) {
|
|
123
|
-
return this.request(`/fine-tunes`, 'POST', options);
|
|
124
|
-
}
|
|
125
|
-
getFinetunes() {
|
|
126
|
-
return this.request('/fine-tunes', 'GET').then((r) => r.data);
|
|
127
|
-
}
|
|
128
|
-
getFinetune(finetuneId) {
|
|
129
|
-
return this.request(`/fine-tunes/${finetuneId}`, 'GET');
|
|
130
|
-
}
|
|
131
|
-
cancelFinetune(finetuneId) {
|
|
132
|
-
return this.request(`/fine-tunes/${finetuneId}/cancel`, 'POST');
|
|
133
|
-
}
|
|
134
|
-
getFinetuneEvents(finetuneId) {
|
|
135
|
-
return this.request(`/fine-tunes/${finetuneId}/events`, 'GET').then((r) => r.data);
|
|
136
|
-
}
|
|
137
|
-
async requestRaw(path, method, body) {
|
|
138
|
-
let headers = { ...this.headers };
|
|
139
|
-
if (body instanceof form_data_1.default) {
|
|
140
|
-
delete headers['content-type'];
|
|
141
|
-
headers = body.getHeaders(headers);
|
|
142
|
-
}
|
|
143
|
-
else if (!['string', 'undefined'].includes(typeof body)) {
|
|
144
|
-
body = JSON.stringify(body);
|
|
145
|
-
}
|
|
146
|
-
const response = await (0, node_fetch_1.default)(this.url + path, {
|
|
147
|
-
headers,
|
|
148
|
-
method,
|
|
149
|
-
body: body,
|
|
150
|
-
});
|
|
151
|
-
if (!response.ok) {
|
|
152
|
-
let errorBody;
|
|
153
|
-
try {
|
|
154
|
-
const { error: { message }, } = await response.json();
|
|
155
|
-
errorBody = message;
|
|
156
|
-
}
|
|
157
|
-
catch {
|
|
158
|
-
try {
|
|
159
|
-
errorBody = await response.text();
|
|
160
|
-
}
|
|
161
|
-
catch {
|
|
162
|
-
errorBody = 'Failed to get body as text';
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
throw new Error(`OpenAI did not return ok: ${response.status} ~ Error body: ${errorBody}`);
|
|
166
|
-
}
|
|
167
|
-
return response;
|
|
168
|
-
}
|
|
169
|
-
async request(path, method, body) {
|
|
170
|
-
const response = await this.requestRaw(path, method, body);
|
|
171
|
-
return response.json();
|
|
172
|
-
}
|
|
173
|
-
eventStreamTransformer() {
|
|
174
|
-
const dataHeader = Buffer.from('data: ');
|
|
175
|
-
return new stream_1.Transform({
|
|
176
|
-
transform: function (chunk, _, callback) {
|
|
177
|
-
if (chunk.length >= dataHeader.length &&
|
|
178
|
-
dataHeader.compare(chunk, undefined, dataHeader.length) === 0) {
|
|
179
|
-
if (this.prevChunk) {
|
|
180
|
-
const completion = JSON.parse(this.prevChunk.toString());
|
|
181
|
-
this.push(completion.choices[0].text);
|
|
182
|
-
this.prevChunk = undefined;
|
|
183
|
-
}
|
|
184
|
-
chunk = chunk.slice(dataHeader.length);
|
|
185
|
-
}
|
|
186
|
-
this.prevChunk = this.prevChunk ? Buffer.concat([this.prevChunk, chunk]) : chunk;
|
|
187
|
-
callback();
|
|
188
|
-
},
|
|
189
|
-
});
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
exports.OpenAI = OpenAI;
|
|
193
|
-
});
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenAI API
|
|
6
|
+
* APIs for sampling from and fine-tuning language models
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
18
|
+
}) : (function(o, m, k, k2) {
|
|
19
|
+
if (k2 === undefined) k2 = k;
|
|
20
|
+
o[k2] = m[k];
|
|
21
|
+
}));
|
|
22
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
23
|
+
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
__exportStar(require("./api"), exports);
|
|
27
|
+
__exportStar(require("./configuration"), exports);
|
package/index.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OpenAI API
|
|
5
|
+
* APIs for sampling from and fine-tuning language models
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
export * from "./api";
|
|
17
|
+
export * from "./configuration";
|
|
18
|
+
|
package/package.json
CHANGED
|
@@ -1,45 +1,27 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"homepage": "https://github.com/ceifa/openai#readme",
|
|
28
|
-
"devDependencies": {
|
|
29
|
-
"@types/node": "16.10.5",
|
|
30
|
-
"@types/node-fetch": "2.5.12",
|
|
31
|
-
"@typescript-eslint/eslint-plugin": "5.0.0",
|
|
32
|
-
"@typescript-eslint/parser": "5.0.0",
|
|
33
|
-
"eslint": "8.0.0",
|
|
34
|
-
"eslint-config-prettier": "8.3.0",
|
|
35
|
-
"eslint-plugin-prettier": "4.0.0",
|
|
36
|
-
"eslint-plugin-sort-imports-es6-autofix": "0.6.0",
|
|
37
|
-
"prettier": "2.4.1",
|
|
38
|
-
"typescript": "4.4.4"
|
|
39
|
-
},
|
|
40
|
-
"dependencies": {
|
|
41
|
-
"form-data": "4.0.0",
|
|
42
|
-
"node-fetch": "2.6.5",
|
|
43
|
-
"tslib": "2.3.1"
|
|
44
|
-
}
|
|
2
|
+
"name": "openai",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Node.js library for the OpenAI API",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"openai",
|
|
7
|
+
"open",
|
|
8
|
+
"ai",
|
|
9
|
+
"gpt-3",
|
|
10
|
+
"gpt3"
|
|
11
|
+
],
|
|
12
|
+
"author": "OpenAI",
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"main": "./dist/index.js",
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "tsc --outDir dist/"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"axios": "^0.25.0",
|
|
21
|
+
"form-data": "^4.0.0"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@types/node": "^12.11.5",
|
|
25
|
+
"typescript": "^3.6.4"
|
|
26
|
+
}
|
|
45
27
|
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"declaration": true,
|
|
4
|
+
"target": "es6",
|
|
5
|
+
"module": "commonjs",
|
|
6
|
+
"noImplicitAny": true,
|
|
7
|
+
"outDir": "dist",
|
|
8
|
+
"rootDir": ".",
|
|
9
|
+
"typeRoots": [
|
|
10
|
+
"node_modules/@types"
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
"exclude": [
|
|
14
|
+
"dist",
|
|
15
|
+
"node_modules"
|
|
16
|
+
]
|
|
17
|
+
}
|
package/dist/types.d.ts
DELETED
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
export declare type EngineId = 'davinci' | 'curie' | 'babbage' | 'ada' | string;
|
|
2
|
-
export interface Engine {
|
|
3
|
-
id: EngineId;
|
|
4
|
-
object: 'engine';
|
|
5
|
-
created?: Date;
|
|
6
|
-
max_replicas?: number;
|
|
7
|
-
owner: string;
|
|
8
|
-
permissions: unknown;
|
|
9
|
-
ready: boolean;
|
|
10
|
-
ready_replicas: unknown;
|
|
11
|
-
replicas: unknown;
|
|
12
|
-
}
|
|
13
|
-
export interface List<T> {
|
|
14
|
-
object: 'list';
|
|
15
|
-
data: T[];
|
|
16
|
-
}
|
|
17
|
-
export interface CompletionRequest {
|
|
18
|
-
prompt?: string | string[];
|
|
19
|
-
max_tokens?: number;
|
|
20
|
-
temperature?: number;
|
|
21
|
-
top_p?: number;
|
|
22
|
-
n?: number;
|
|
23
|
-
logprobs?: number;
|
|
24
|
-
echo?: boolean;
|
|
25
|
-
stop?: string | string[];
|
|
26
|
-
presence_penalty?: number;
|
|
27
|
-
frequency_penalty?: number;
|
|
28
|
-
best_of?: number;
|
|
29
|
-
logit_bias?: Record<string, unknown>;
|
|
30
|
-
user?: string;
|
|
31
|
-
}
|
|
32
|
-
export interface LogProbs {
|
|
33
|
-
tokens: string[];
|
|
34
|
-
token_logprobs: number[];
|
|
35
|
-
top_logprobs: Array<Record<string, number>>;
|
|
36
|
-
text_offset: number[];
|
|
37
|
-
}
|
|
38
|
-
export interface Choice {
|
|
39
|
-
text: string;
|
|
40
|
-
index: number;
|
|
41
|
-
logprobs: LogProbs | null;
|
|
42
|
-
finish_reason: string | null;
|
|
43
|
-
}
|
|
44
|
-
export interface Completion {
|
|
45
|
-
id: string;
|
|
46
|
-
object: 'text_completion';
|
|
47
|
-
created: number;
|
|
48
|
-
model: string;
|
|
49
|
-
choices: Choice[];
|
|
50
|
-
}
|
|
51
|
-
export interface SearchRequest {
|
|
52
|
-
query: string;
|
|
53
|
-
documents?: string[];
|
|
54
|
-
file?: string;
|
|
55
|
-
max_rerank?: number;
|
|
56
|
-
return_metadata?: boolean;
|
|
57
|
-
}
|
|
58
|
-
export interface SearchDocument {
|
|
59
|
-
document: number;
|
|
60
|
-
object: 'search_result';
|
|
61
|
-
score: number;
|
|
62
|
-
}
|
|
63
|
-
export interface ClassificationRequest {
|
|
64
|
-
model: string;
|
|
65
|
-
query: string;
|
|
66
|
-
examples?: string[];
|
|
67
|
-
file?: string;
|
|
68
|
-
labels?: string[] | null;
|
|
69
|
-
search_model?: string;
|
|
70
|
-
temperature?: number;
|
|
71
|
-
logprobs?: number;
|
|
72
|
-
max_examples?: number;
|
|
73
|
-
logit_bias?: Record<string, unknown>;
|
|
74
|
-
return_prompt?: boolean;
|
|
75
|
-
return_metadata?: boolean;
|
|
76
|
-
expand?: string[];
|
|
77
|
-
}
|
|
78
|
-
export interface ClassificationExample {
|
|
79
|
-
document: number;
|
|
80
|
-
label: string;
|
|
81
|
-
text: string;
|
|
82
|
-
}
|
|
83
|
-
export interface Classification {
|
|
84
|
-
completion: string;
|
|
85
|
-
label: string;
|
|
86
|
-
model: string;
|
|
87
|
-
object: 'classification';
|
|
88
|
-
search_model: string;
|
|
89
|
-
selected_examples: ClassificationExample[];
|
|
90
|
-
}
|
|
91
|
-
export interface AnswerRequest {
|
|
92
|
-
model: string;
|
|
93
|
-
question: string;
|
|
94
|
-
examples: Array<[string, string]>;
|
|
95
|
-
examples_context: string;
|
|
96
|
-
documents?: string[];
|
|
97
|
-
file?: string;
|
|
98
|
-
search_model?: string;
|
|
99
|
-
max_rerank?: number;
|
|
100
|
-
temperature?: number;
|
|
101
|
-
logprobs?: number;
|
|
102
|
-
max_tokens?: number;
|
|
103
|
-
stop?: string | string[];
|
|
104
|
-
n?: number;
|
|
105
|
-
logit_bias?: Record<string, unknown>;
|
|
106
|
-
return_metadata?: boolean;
|
|
107
|
-
return_prompt?: boolean;
|
|
108
|
-
expand?: string[];
|
|
109
|
-
}
|
|
110
|
-
export interface AnswerDocument {
|
|
111
|
-
document: number;
|
|
112
|
-
text: string;
|
|
113
|
-
}
|
|
114
|
-
export interface Answer {
|
|
115
|
-
answers: string[];
|
|
116
|
-
completion: string | Completion;
|
|
117
|
-
model: string;
|
|
118
|
-
object: 'answer';
|
|
119
|
-
search_model: string;
|
|
120
|
-
prompt: string;
|
|
121
|
-
selected_documents: AnswerDocument[];
|
|
122
|
-
}
|
|
123
|
-
export declare type FilePurpose = 'search' | 'answers' | 'classifications' | 'fine-tune';
|
|
124
|
-
export declare type JsonLines = string | string[] | unknown[];
|
|
125
|
-
export interface File {
|
|
126
|
-
id: string;
|
|
127
|
-
object: string;
|
|
128
|
-
bytes: number;
|
|
129
|
-
created_at: number;
|
|
130
|
-
filename: string;
|
|
131
|
-
purpose: FilePurpose;
|
|
132
|
-
}
|
|
133
|
-
export interface Hyperparams {
|
|
134
|
-
n_epochs?: number;
|
|
135
|
-
batch_size?: number;
|
|
136
|
-
learning_rate_multiplier?: number;
|
|
137
|
-
use_packing?: boolean;
|
|
138
|
-
prompt_loss_weight?: number;
|
|
139
|
-
}
|
|
140
|
-
export interface FineTuneRequest extends Hyperparams {
|
|
141
|
-
training_file: string;
|
|
142
|
-
validation_file?: string;
|
|
143
|
-
model?: string;
|
|
144
|
-
compute_classification_metrics?: boolean;
|
|
145
|
-
classification_n_classes?: number;
|
|
146
|
-
classification_positive_class?: string;
|
|
147
|
-
classification_betas?: number[];
|
|
148
|
-
}
|
|
149
|
-
export interface FineTuneEvent {
|
|
150
|
-
object: 'fine-tune-event';
|
|
151
|
-
created_at: number;
|
|
152
|
-
level: string;
|
|
153
|
-
message: string;
|
|
154
|
-
}
|
|
155
|
-
export interface FineTune {
|
|
156
|
-
id: string;
|
|
157
|
-
object: 'fine-tune';
|
|
158
|
-
model: string;
|
|
159
|
-
created_at: number;
|
|
160
|
-
events: FineTuneEvent[];
|
|
161
|
-
fine_tuned_model: string;
|
|
162
|
-
hyperparams: Hyperparams;
|
|
163
|
-
organization_id: string;
|
|
164
|
-
result_files: File[];
|
|
165
|
-
status: string;
|
|
166
|
-
validation_files: File[];
|
|
167
|
-
training_files: File[];
|
|
168
|
-
updated_at: number;
|
|
169
|
-
user_id: string;
|
|
170
|
-
}
|
|
171
|
-
export declare const enum ContentLabel {
|
|
172
|
-
Safe = 0,
|
|
173
|
-
Sensitive = 1,
|
|
174
|
-
Unsafe = 2
|
|
175
|
-
}
|
package/dist/types.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
(function (factory) {
|
|
2
|
-
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
-
var v = factory(require, exports);
|
|
4
|
-
if (v !== undefined) module.exports = v;
|
|
5
|
-
}
|
|
6
|
-
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
define(["require", "exports"], factory);
|
|
8
|
-
}
|
|
9
|
-
})(function (require, exports) {
|
|
10
|
-
"use strict";
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
});
|