@univerjs/protocol 0.1.47-alpha.0 → 0.1.48
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/lib/cjs/index.js +1 -1
- package/lib/es/index.js +25 -25
- package/lib/types/index.d.ts +25 -23
- package/lib/types/ts/univer/changeset.d.ts +4 -0
- package/lib/types/ts/univer/constants/biz.d.ts +17 -0
- package/lib/types/ts/univer/constants/errors.d.ts +54 -0
- package/lib/types/ts/univer/initial_sheet.d.ts +2 -0
- package/lib/types/ts/univer/range.d.ts +9 -0
- package/lib/types/ts/univer/snapshot.d.ts +7 -0
- package/lib/types/ts/univer/workbook.d.ts +4 -0
- package/lib/types/ts/{v1 → universer/v1}/access_key.d.ts +5 -1
- package/lib/types/ts/universer/v1/access_key_logs.d.ts +43 -0
- package/lib/types/ts/universer/v1/activity.d.ts +22 -0
- package/lib/types/ts/{v1 → universer/v1}/analyse_cmn.d.ts +9 -0
- package/lib/types/ts/{v1 → universer/v1}/analyse_data_source.d.ts +7 -2
- package/lib/types/ts/{v1 → universer/v1}/analyse_task.d.ts +7 -4
- package/lib/types/ts/{v1 → universer/v1}/authz.d.ts +2 -2
- package/lib/types/ts/{v1 → universer/v1}/clipsheet_task.d.ts +32 -4
- package/lib/types/ts/{v1 → universer/v1}/comb.d.ts +5 -5
- package/lib/types/ts/{v1 → universer/v1}/comment.d.ts +2 -2
- package/lib/types/ts/{v1 → universer/v1}/conf.d.ts +104 -1
- package/lib/types/ts/{v1 → universer/v1}/connector.d.ts +2 -2
- package/lib/types/ts/{v1 → universer/v1}/conversation.d.ts +160 -5
- package/lib/types/ts/{v1 → universer/v1}/email.d.ts +11 -1
- package/lib/types/ts/{v1 → universer/v1}/entitlement.d.ts +279 -13
- package/lib/types/ts/{v1 → universer/v1}/exchange.d.ts +9 -4
- package/lib/types/ts/universer/v1/feedback.d.ts +71 -0
- package/lib/types/ts/{v1 → universer/v1}/file.d.ts +16 -1
- package/lib/types/ts/universer/v1/frontend_logs.d.ts +36 -0
- package/lib/types/ts/{v1 → universer/v1}/go_config_center.d.ts +1 -1
- package/lib/types/ts/{v1 → universer/v1}/history.d.ts +31 -3
- package/lib/types/ts/universer/v1/inbox.d.ts +59 -0
- package/lib/types/ts/{v1 → universer/v1}/invite_code.d.ts +1 -1
- package/lib/types/ts/universer/v1/license.d.ts +75 -0
- package/lib/types/ts/{v1 → universer/v1}/license_manage.d.ts +55 -1
- package/lib/types/ts/{v1 → universer/v1}/oauth2.d.ts +1 -1
- package/lib/types/ts/{v1 → universer/v1}/oidc.d.ts +4 -1
- package/lib/types/ts/universer/v1/redemption_code.d.ts +32 -0
- package/lib/types/ts/universer/v1/referral.d.ts +55 -0
- package/lib/types/ts/universer/v1/scraper.d.ts +144 -0
- package/lib/types/ts/{v1 → universer/v1}/snapshot.d.ts +53 -13
- package/lib/types/ts/{v1 → universer/v1}/survey.d.ts +1 -1
- package/lib/types/ts/{v1 → universer/v1}/template.d.ts +2 -2
- package/lib/types/ts/universer/v1/toolkit.d.ts +15 -0
- package/lib/types/ts/{v1 → universer/v1}/trigger.d.ts +1 -1
- package/lib/types/ts/{v1 → universer/v1}/uniscript.d.ts +1 -1
- package/lib/types/ts/{v1 → universer/v1}/uniscript_logs.d.ts +1 -1
- package/lib/types/ts/{v1 → universer/v1}/univer_go_template.d.ts +1 -1
- package/lib/types/ts/{v1 → universer/v1}/user.d.ts +79 -1
- package/lib/types/ts/universer/v1/user_event.d.ts +23 -0
- package/lib/types/ts/{v1 → universer/v1}/user_settings.d.ts +1 -1
- package/lib/types/ts/{v1 → universer/v1}/usip.d.ts +7 -0
- package/lib/types/ts/{v1 → universer/v1}/workspace.d.ts +6 -5
- package/lib/umd/index.js +1 -1
- package/package.json +7 -13
- package/lib/types/ts/v1/apply.d.ts +0 -138
- package/lib/types/ts/v1/feedback.d.ts +0 -26
- package/lib/types/ts/v1/license.d.ts +0 -35
- package/lib/types/ts/v1/ssc.d.ts +0 -259
- package/lib/types/ts/v1/ssr.d.ts +0 -25
- /package/lib/types/ts/{v1 → universer/v1}/source_connector/api.d.ts +0 -0
- /package/lib/types/ts/{v1 → universer/v1}/source_connector/conf.d.ts +0 -0
- /package/lib/types/ts/{v1 → universer/v1}/source_connector/displayer.d.ts +0 -0
- /package/lib/types/ts/{v1 → universer/v1}/source_connector/source.d.ts +0 -0
- /package/lib/types/ts/{v1 → universer/v1}/source_connector/stream_view.d.ts +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Metadata } from '@grpc/grpc-js';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { Error } from '
|
|
4
|
-
import { UniverType } from '
|
|
5
|
-
import { UnitRole, UnitShareScope } from '
|
|
6
|
-
import { DataFragmentationType } from './analyse_cmn';
|
|
3
|
+
import { Error } from '../../univer/constants/errors';
|
|
4
|
+
import { UniverType } from '../../univer/constants/univer';
|
|
5
|
+
import { UnitRole, UnitShareScope } from '../../univer/permission';
|
|
6
|
+
import { DataFragmentationType, SystemRemark } from './analyse_cmn';
|
|
7
7
|
export declare const protobufPackage = "universer.v1";
|
|
8
8
|
export declare enum AnalyseTaskStatus {
|
|
9
9
|
AnalyseTaskStatus_None = 0,
|
|
@@ -69,6 +69,8 @@ export interface AnalyseTask {
|
|
|
69
69
|
reportUnitType: UniverType;
|
|
70
70
|
/** set if status is Completed */
|
|
71
71
|
reportSummary: string;
|
|
72
|
+
/** set if task executed before, whether success, failure, or executing */
|
|
73
|
+
sysRemarks: SystemRemark[];
|
|
72
74
|
/** set if status is failed */
|
|
73
75
|
reason: Error | undefined;
|
|
74
76
|
/**
|
|
@@ -181,6 +183,7 @@ export interface GetAnalyseTaskProgressRequest {
|
|
|
181
183
|
}
|
|
182
184
|
export interface GetAnalyseTaskProgressResponse {
|
|
183
185
|
progress: AnalyseTaskProgressNode[];
|
|
186
|
+
sysRemarks: SystemRemark[];
|
|
184
187
|
error: Error | undefined;
|
|
185
188
|
}
|
|
186
189
|
export interface StartNodeData {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Metadata } from '@grpc/grpc-js';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { Error } from '
|
|
4
|
-
import { ObjectScope, UnitAction, UnitObject, UnitPermissionStrategy, UnitRole, UnitRoleKV, UnitShareScope, User } from '
|
|
3
|
+
import { Error } from '../../univer/constants/errors';
|
|
4
|
+
import { ObjectScope, UnitAction, UnitObject, UnitPermissionStrategy, UnitRole, UnitRoleKV, UnitShareScope, User } from '../../univer/permission';
|
|
5
5
|
export declare const protobufPackage = "universer.v1";
|
|
6
6
|
export interface Collaborator {
|
|
7
7
|
id: string;
|
|
@@ -1,24 +1,52 @@
|
|
|
1
1
|
import { Metadata } from '@grpc/grpc-js';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { Error } from '
|
|
3
|
+
import { Error } from '../../univer/constants/errors';
|
|
4
4
|
export declare const protobufPackage = "universer.v1";
|
|
5
|
-
export
|
|
5
|
+
export declare enum DAQTargetsType {
|
|
6
|
+
PlainUrlList = 0,
|
|
7
|
+
ArtifactField = 1,
|
|
8
|
+
UNRECOGNIZED = -1
|
|
9
|
+
}
|
|
10
|
+
export declare enum DAQTargetURLSource {
|
|
11
|
+
/** URL_UNKNOWN - unknown source, should not be used. */
|
|
12
|
+
URL_UNKNOWN = 0,
|
|
13
|
+
URL_EXPLICIT = 1,
|
|
14
|
+
URL_PLATFORM = 2,
|
|
15
|
+
UNRECOGNIZED = -1
|
|
16
|
+
}
|
|
17
|
+
export interface PlainDAQTarget {
|
|
6
18
|
url: string;
|
|
7
19
|
title: string;
|
|
20
|
+
/** the source of the URL, e.g., explicit or platform. */
|
|
21
|
+
urlSource: DAQTargetURLSource;
|
|
22
|
+
}
|
|
23
|
+
export interface ArtifactDAQTarget {
|
|
24
|
+
artifactId: string;
|
|
25
|
+
artifactTitle: string;
|
|
26
|
+
columnName: string;
|
|
27
|
+
columnIndex: number;
|
|
28
|
+
urlCnt: number;
|
|
8
29
|
}
|
|
9
30
|
export interface ClipsheetTask {
|
|
10
31
|
id: string;
|
|
11
32
|
/** managed by clipsheet plugin now. */
|
|
12
33
|
status: number;
|
|
13
|
-
targets:
|
|
34
|
+
targets: PlainDAQTarget[];
|
|
14
35
|
resultUnits: string[];
|
|
36
|
+
/** Some options, the user confirms one of them */
|
|
37
|
+
artifactTargets: ArtifactDAQTarget[];
|
|
38
|
+
targetsType: DAQTargetsType;
|
|
15
39
|
/** managed by clipsheet plugin now. */
|
|
16
40
|
extra: string;
|
|
17
41
|
/** unix-timestamp milli seconds. */
|
|
18
42
|
createTime: string;
|
|
19
43
|
}
|
|
20
44
|
export interface CreateClipsheetTaskRequest {
|
|
21
|
-
targets:
|
|
45
|
+
targets: PlainDAQTarget[];
|
|
46
|
+
artifactTargets: ArtifactDAQTarget[];
|
|
47
|
+
targetsType: DAQTargetsType;
|
|
48
|
+
/** set if create in the conversation. */
|
|
49
|
+
conversationId: string;
|
|
22
50
|
}
|
|
23
51
|
export interface CreateClipsheetTaskResponse {
|
|
24
52
|
task: ClipsheetTask | undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Metadata } from '@grpc/grpc-js';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { Empty } from '
|
|
4
|
-
import { Changeset } from '
|
|
5
|
-
import { CollaMsg } from '
|
|
6
|
-
import { Error } from '
|
|
7
|
-
import { UniverType } from '
|
|
3
|
+
import { Empty } from '../../google/protobuf/empty';
|
|
4
|
+
import { Changeset } from '../../univer/changeset';
|
|
5
|
+
import { CollaMsg } from '../../univer/colla_msg';
|
|
6
|
+
import { Error } from '../../univer/constants/errors';
|
|
7
|
+
import { UniverType } from '../../univer/constants/univer';
|
|
8
8
|
export declare const protobufPackage = "universer.v1";
|
|
9
9
|
/** more details: https://c3fgartrp2.feishu.cn/docx/OS47dk8BCo1ZeKxXiNvcDLuZn2g#PymGdupuyoYfvTxv1EBciV7in9b */
|
|
10
10
|
export declare enum CombCmd {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Metadata } from '@grpc/grpc-js';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { CommentUpdate_Status } from '
|
|
4
|
-
import { Error } from '
|
|
3
|
+
import { CommentUpdate_Status } from '../../univer/colla_msg';
|
|
4
|
+
import { Error } from '../../univer/constants/errors';
|
|
5
5
|
import { User } from './user';
|
|
6
6
|
export declare const protobufPackage = "universer.v1";
|
|
7
7
|
export interface Reply {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { Duration } from '
|
|
1
|
+
import { Duration } from '../../google/protobuf/duration';
|
|
2
|
+
import { MessageChannel } from '../../univer/constants/biz';
|
|
3
|
+
import { Interval, QuotaItemConf } from './entitlement';
|
|
2
4
|
export declare const protobufPackage = "universer.v1";
|
|
3
5
|
export declare enum ReleaseType {
|
|
4
6
|
UNKNOWN_TYPE = 0,
|
|
@@ -40,6 +42,12 @@ export interface Bootstrap {
|
|
|
40
42
|
models: ModelConf[];
|
|
41
43
|
wechat: Wechat | undefined;
|
|
42
44
|
aiAnalyseSampleConf: AIAnalyseSampleConf | undefined;
|
|
45
|
+
permissionBasedExport: PermissionBasedExport | undefined;
|
|
46
|
+
notifyConf: NotifyConf | undefined;
|
|
47
|
+
ip2AddrCliConf: IP2AddrCliConf | undefined;
|
|
48
|
+
googleConf: GoogleConf | undefined;
|
|
49
|
+
proxyConf: ProxyConf | undefined;
|
|
50
|
+
unitRoutingConf: UnitRoutingConf | undefined;
|
|
43
51
|
}
|
|
44
52
|
export interface Server {
|
|
45
53
|
http: Server_HTTP | undefined;
|
|
@@ -133,6 +141,10 @@ export interface Service {
|
|
|
133
141
|
fileExchange: Service_RpcService | undefined;
|
|
134
142
|
nodeRuntime: Service_RpcService | undefined;
|
|
135
143
|
pythonRuntime: Service_RpcService | undefined;
|
|
144
|
+
ssc: Service_RpcService | undefined;
|
|
145
|
+
univerOps: Service_RpcService | undefined;
|
|
146
|
+
redemptionCode: Service_RpcService | undefined;
|
|
147
|
+
collaborationHelper: Service_RpcService | undefined;
|
|
136
148
|
yuumi: Service_HttpService | undefined;
|
|
137
149
|
}
|
|
138
150
|
export interface Service_RpcService {
|
|
@@ -329,6 +341,7 @@ export interface USIP_USIPUri {
|
|
|
329
341
|
collaborators: string;
|
|
330
342
|
role: string;
|
|
331
343
|
credential: string;
|
|
344
|
+
unitEditTime: string;
|
|
332
345
|
}
|
|
333
346
|
export interface DataProtectionConf {
|
|
334
347
|
enableProtection: boolean;
|
|
@@ -377,11 +390,33 @@ export interface EntitlementConf {
|
|
|
377
390
|
defaultEntiConf: EntitlementConf_DefaultEntiConf | undefined;
|
|
378
391
|
cronConf: EntitlementConf_CronConf | undefined;
|
|
379
392
|
stripeConf: EntitlementConf_StripeConf | undefined;
|
|
393
|
+
wechatPayConf: EntitlementConf_WechatPayConf | undefined;
|
|
394
|
+
aliPayConf: EntitlementConf_AliPayConf | undefined;
|
|
395
|
+
/** minutes eg. 1440 */
|
|
396
|
+
orderExpireInterval: number;
|
|
397
|
+
/** minutes eg. 15 */
|
|
398
|
+
intentExpireInterval: number;
|
|
399
|
+
identityExpireNtfConf: EntitlementConf_IdentityExpireNtfConf | undefined;
|
|
400
|
+
registerAwardConf: EntitlementConf_RegisterAwardConf | undefined;
|
|
380
401
|
}
|
|
381
402
|
export interface EntitlementConf_DefaultEntiConf {
|
|
382
403
|
anonymousDefaultEntiId: number;
|
|
383
404
|
registeredDefaultEntiId: number;
|
|
384
405
|
}
|
|
406
|
+
export interface EntitlementConf_RegisterAwardConf {
|
|
407
|
+
entiId: number;
|
|
408
|
+
entiInterval: Interval;
|
|
409
|
+
entiIntervalCnt: number;
|
|
410
|
+
quotaConfs: {
|
|
411
|
+
[key: string]: QuotaItemConf;
|
|
412
|
+
};
|
|
413
|
+
quotaInterval: Interval;
|
|
414
|
+
quotaIntervalCnt: number;
|
|
415
|
+
}
|
|
416
|
+
export interface EntitlementConf_RegisterAwardConf_QuotaConfsEntry {
|
|
417
|
+
key: string;
|
|
418
|
+
value: QuotaItemConf | undefined;
|
|
419
|
+
}
|
|
385
420
|
export interface EntitlementConf_CronConf {
|
|
386
421
|
reportRetryCron: string;
|
|
387
422
|
minRetryInterval: number;
|
|
@@ -389,6 +424,7 @@ export interface EntitlementConf_CronConf {
|
|
|
389
424
|
pendingSubCleanCron: string;
|
|
390
425
|
detectInterval: number;
|
|
391
426
|
cleanRate: number;
|
|
427
|
+
maxActionBlockInterval: number;
|
|
392
428
|
}
|
|
393
429
|
export interface EntitlementConf_StripeConf {
|
|
394
430
|
apiPK: string;
|
|
@@ -396,6 +432,30 @@ export interface EntitlementConf_StripeConf {
|
|
|
396
432
|
whSK: string;
|
|
397
433
|
timeout: number;
|
|
398
434
|
}
|
|
435
|
+
export interface EntitlementConf_WechatPayConf {
|
|
436
|
+
/** WeChat application ID */
|
|
437
|
+
appID: string;
|
|
438
|
+
/** Merchant certificate serial number */
|
|
439
|
+
mchCertificateSerialNumber: string;
|
|
440
|
+
/** Merchant ID */
|
|
441
|
+
mchID: string;
|
|
442
|
+
/** Merchant APIv3 key */
|
|
443
|
+
apiKey: string;
|
|
444
|
+
/** WeChat payment notification URL */
|
|
445
|
+
notifyUrl: string;
|
|
446
|
+
}
|
|
447
|
+
export interface EntitlementConf_AliPayConf {
|
|
448
|
+
appID: string;
|
|
449
|
+
privateKey: string;
|
|
450
|
+
apiKey: string;
|
|
451
|
+
/** alipay notification URL */
|
|
452
|
+
notifyUrl: string;
|
|
453
|
+
isProd: boolean;
|
|
454
|
+
}
|
|
455
|
+
export interface EntitlementConf_IdentityExpireNtfConf {
|
|
456
|
+
toNtfLeftDays: number[];
|
|
457
|
+
ntfRate: number;
|
|
458
|
+
}
|
|
399
459
|
export interface StatsConf {
|
|
400
460
|
/** seconds */
|
|
401
461
|
timeInterval: number;
|
|
@@ -436,3 +496,46 @@ export interface AIAnalyseSampleUnit {
|
|
|
436
496
|
unitId: string;
|
|
437
497
|
dataSummary: string;
|
|
438
498
|
}
|
|
499
|
+
export interface PermissionBasedExport {
|
|
500
|
+
enabled: boolean;
|
|
501
|
+
}
|
|
502
|
+
export interface NotifyConf {
|
|
503
|
+
/** 购买成功配置 */
|
|
504
|
+
purchase: NotifyConf_SceneConf[];
|
|
505
|
+
identityExpiring: NotifyConf_SceneConf[];
|
|
506
|
+
}
|
|
507
|
+
export interface NotifyConf_SceneConf {
|
|
508
|
+
channel: MessageChannel;
|
|
509
|
+
templateId: string;
|
|
510
|
+
}
|
|
511
|
+
export interface IP2AddrCliConf {
|
|
512
|
+
pathFmt: string;
|
|
513
|
+
token: string;
|
|
514
|
+
}
|
|
515
|
+
export interface GoogleConf {
|
|
516
|
+
enabled: boolean;
|
|
517
|
+
clientId: string;
|
|
518
|
+
clientSecret: string;
|
|
519
|
+
redirectUrl: string;
|
|
520
|
+
scopes: string[];
|
|
521
|
+
apikey: string;
|
|
522
|
+
appId: string;
|
|
523
|
+
}
|
|
524
|
+
export interface ProxyConf {
|
|
525
|
+
proxyUrl: string;
|
|
526
|
+
}
|
|
527
|
+
export interface UnitRoutingConf {
|
|
528
|
+
tiers: UnitRoutingConf_servicesTier[];
|
|
529
|
+
cacheSeconds: number;
|
|
530
|
+
refreshSeconds: number;
|
|
531
|
+
tierSwitchDelaySeconds: number;
|
|
532
|
+
}
|
|
533
|
+
export interface UnitRoutingConf_servicesTier {
|
|
534
|
+
tierName: string;
|
|
535
|
+
enable: boolean;
|
|
536
|
+
upgradeCellsThreshold: number;
|
|
537
|
+
downgradeCellsThreshold: number;
|
|
538
|
+
upgradeImportTimeThreshold: number;
|
|
539
|
+
applyServerAddr: string;
|
|
540
|
+
applyServerTimeout: Duration | undefined;
|
|
541
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Metadata } from '@grpc/grpc-js';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { Error } from '
|
|
4
|
-
import { RowData } from '
|
|
3
|
+
import { Error } from '../../univer/constants/errors';
|
|
4
|
+
import { RowData } from '../../univer/workbook';
|
|
5
5
|
import { DisplayerConfig } from './source_connector/displayer';
|
|
6
6
|
import { SelectColumn, WhereGroup as WhereGroup1 } from './source_connector/stream_view';
|
|
7
7
|
export declare const protobufPackage = "universer.v1";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Metadata } from '@grpc/grpc-js';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { SystemHint } from '
|
|
4
|
-
import { Error } from '
|
|
3
|
+
import { SystemHint } from '../../ai_common/common';
|
|
4
|
+
import { Error } from '../../univer/constants/errors';
|
|
5
5
|
import { DataFragmentationType } from './analyse_cmn';
|
|
6
|
+
import { RateDetail } from './entitlement';
|
|
6
7
|
export declare const protobufPackage = "universer.v1";
|
|
7
8
|
export declare enum CompletionStatus {
|
|
8
9
|
Completion_None = 0,
|
|
@@ -75,6 +76,17 @@ export declare enum ChatSSEStatus {
|
|
|
75
76
|
ChatSSEStatus_Success = 2,
|
|
76
77
|
UNRECOGNIZED = -1
|
|
77
78
|
}
|
|
79
|
+
export interface ModelDetail {
|
|
80
|
+
/** use string representation of enum ai_common.UniverAIModel */
|
|
81
|
+
modelId: string;
|
|
82
|
+
rateDetails: RateDetail[];
|
|
83
|
+
}
|
|
84
|
+
export interface ListAvailableModelsRequest {
|
|
85
|
+
}
|
|
86
|
+
export interface ListAvailableModelsResponse {
|
|
87
|
+
models: ModelDetail[];
|
|
88
|
+
error: Error | undefined;
|
|
89
|
+
}
|
|
78
90
|
export interface GetConversationModelsRequest {
|
|
79
91
|
}
|
|
80
92
|
export interface GetConversationModel {
|
|
@@ -114,6 +126,16 @@ export interface Conversation {
|
|
|
114
126
|
/** unix timestamp milli seconds */
|
|
115
127
|
lastUpdate: string;
|
|
116
128
|
title: string;
|
|
129
|
+
creatorUid: string;
|
|
130
|
+
expireTime: string;
|
|
131
|
+
shared: boolean;
|
|
132
|
+
}
|
|
133
|
+
export interface GetConversationRequest {
|
|
134
|
+
conversationId: string;
|
|
135
|
+
}
|
|
136
|
+
export interface GetConversationResponse {
|
|
137
|
+
conversation: Conversation | undefined;
|
|
138
|
+
error: Error | undefined;
|
|
117
139
|
}
|
|
118
140
|
export interface ListConversationsRequest {
|
|
119
141
|
/**
|
|
@@ -139,6 +161,18 @@ export interface RenameConversationRequest {
|
|
|
139
161
|
export interface RenameConversationResponse {
|
|
140
162
|
error: Error | undefined;
|
|
141
163
|
}
|
|
164
|
+
export interface ShareConversationRequest {
|
|
165
|
+
conversationId: string;
|
|
166
|
+
}
|
|
167
|
+
export interface ShareConversationResponse {
|
|
168
|
+
error: Error | undefined;
|
|
169
|
+
}
|
|
170
|
+
export interface UnshareConversationRequest {
|
|
171
|
+
conversationId: string;
|
|
172
|
+
}
|
|
173
|
+
export interface UnshareConversationResponse {
|
|
174
|
+
error: Error | undefined;
|
|
175
|
+
}
|
|
142
176
|
export interface DeleteConversationRequest {
|
|
143
177
|
conversationId: string;
|
|
144
178
|
}
|
|
@@ -161,6 +195,8 @@ export interface ContentBlock {
|
|
|
161
195
|
blockType: ContentBlockType;
|
|
162
196
|
contentType: ContentType;
|
|
163
197
|
body: string;
|
|
198
|
+
/** for multi-channel response, default is empty */
|
|
199
|
+
channelId?: string | undefined;
|
|
164
200
|
}
|
|
165
201
|
export interface Attachment {
|
|
166
202
|
type: AttachmentType;
|
|
@@ -219,14 +255,23 @@ export interface SubmitPromptRequest {
|
|
|
219
255
|
/** use unit or data source */
|
|
220
256
|
dataSourceId: string;
|
|
221
257
|
systemHints: SystemHint[];
|
|
258
|
+
/** Locale Code */
|
|
259
|
+
locale?: string | undefined;
|
|
222
260
|
}
|
|
223
261
|
/** SSE api: /universer-api/conversation/resume */
|
|
224
262
|
export interface ResumeConversationRequest {
|
|
225
263
|
conversationId: string;
|
|
226
|
-
|
|
264
|
+
/** see HITLType, use string, see ai_common/common.proto, eg. hitl_select_table */
|
|
265
|
+
type: string;
|
|
266
|
+
/** json string, see ai_common/common.proto */
|
|
267
|
+
resumeData: string;
|
|
268
|
+
/** Locale Code */
|
|
269
|
+
locale?: string | undefined;
|
|
270
|
+
model?: string | undefined;
|
|
227
271
|
}
|
|
228
|
-
|
|
229
|
-
|
|
272
|
+
/** SSE api: /universer-api/conversation/reconnect */
|
|
273
|
+
export interface ReconnectConversationRequest {
|
|
274
|
+
conversationId: string;
|
|
230
275
|
}
|
|
231
276
|
/** chat streaming response SSE block */
|
|
232
277
|
export interface ChatSSEBlock {
|
|
@@ -247,6 +292,8 @@ export interface ChatSSEBlock {
|
|
|
247
292
|
*/
|
|
248
293
|
body: string;
|
|
249
294
|
status: ChatSSEStatus;
|
|
295
|
+
/** for multi-channel response, default is empty */
|
|
296
|
+
channelId?: string | undefined;
|
|
250
297
|
}
|
|
251
298
|
export interface ChatContentSSEBlock {
|
|
252
299
|
contentType: ContentType;
|
|
@@ -300,17 +347,125 @@ export interface UpdateConversationDataFragmentationRequest {
|
|
|
300
347
|
export interface UpdateConversationDataFragmentationResponse {
|
|
301
348
|
error: Error | undefined;
|
|
302
349
|
}
|
|
350
|
+
export interface BindUnitWithConversationRequest {
|
|
351
|
+
unitId: string;
|
|
352
|
+
conversationId: string;
|
|
353
|
+
messageId: string;
|
|
354
|
+
}
|
|
355
|
+
export interface BindUnitWithConversationResponse {
|
|
356
|
+
error: Error | undefined;
|
|
357
|
+
}
|
|
358
|
+
export interface CancelConversationRequest {
|
|
359
|
+
conversationId: string;
|
|
360
|
+
}
|
|
361
|
+
export interface CancelConversationResponse {
|
|
362
|
+
error: Error | undefined;
|
|
363
|
+
}
|
|
364
|
+
export interface NeedReconnectConversationRequest {
|
|
365
|
+
conversationId: string;
|
|
366
|
+
}
|
|
367
|
+
export interface NeedReconnectConversationResponse {
|
|
368
|
+
needReconnect: boolean;
|
|
369
|
+
error: Error | undefined;
|
|
370
|
+
}
|
|
371
|
+
export interface CreateReportRequest {
|
|
372
|
+
conversationId: string;
|
|
373
|
+
messageId: string;
|
|
374
|
+
}
|
|
375
|
+
export interface CreateReportResponse {
|
|
376
|
+
report: Report | undefined;
|
|
377
|
+
error: Error | undefined;
|
|
378
|
+
}
|
|
379
|
+
export interface RedoReportRequest {
|
|
380
|
+
reportId: string;
|
|
381
|
+
conversationId: string;
|
|
382
|
+
}
|
|
383
|
+
export interface PollingReportRequest {
|
|
384
|
+
reportId: string;
|
|
385
|
+
conversationId: string;
|
|
386
|
+
}
|
|
387
|
+
export interface Report {
|
|
388
|
+
reportId: string;
|
|
389
|
+
conversationId: string;
|
|
390
|
+
messageId: string;
|
|
391
|
+
/** unix timestamp milli seconds */
|
|
392
|
+
createTime: number;
|
|
393
|
+
updateTime: number;
|
|
394
|
+
status: string;
|
|
395
|
+
fragmentationId: string;
|
|
396
|
+
title: string;
|
|
397
|
+
summary: string;
|
|
398
|
+
}
|
|
399
|
+
export interface ReportList {
|
|
400
|
+
reports: Report[];
|
|
401
|
+
}
|
|
402
|
+
export interface ListReportsRequest {
|
|
403
|
+
conversationId: string;
|
|
404
|
+
}
|
|
405
|
+
export interface ListReportsResponse {
|
|
406
|
+
/** @deprecated */
|
|
407
|
+
reports: Report[];
|
|
408
|
+
/** messageId -> ReportList */
|
|
409
|
+
reportsMap: {
|
|
410
|
+
[key: string]: ReportList;
|
|
411
|
+
};
|
|
412
|
+
error: Error | undefined;
|
|
413
|
+
}
|
|
414
|
+
export interface ListReportsResponse_ReportsMapEntry {
|
|
415
|
+
key: string;
|
|
416
|
+
value: ReportList | undefined;
|
|
417
|
+
}
|
|
418
|
+
export interface FinishReportRequest {
|
|
419
|
+
reportId: string;
|
|
420
|
+
status: string;
|
|
421
|
+
title: string;
|
|
422
|
+
summary: string;
|
|
423
|
+
content: string;
|
|
424
|
+
}
|
|
425
|
+
export interface FinishReportResponse {
|
|
426
|
+
error: Error | undefined;
|
|
427
|
+
}
|
|
428
|
+
export interface GetDashboardRequest {
|
|
429
|
+
conversationId: string;
|
|
430
|
+
}
|
|
431
|
+
export interface GetDashboardResponse {
|
|
432
|
+
conversationId: string;
|
|
433
|
+
dashboardJson: string;
|
|
434
|
+
error: Error | undefined;
|
|
435
|
+
}
|
|
436
|
+
export interface SaveDashboardRequest {
|
|
437
|
+
conversationId: string;
|
|
438
|
+
dashboardJson: string;
|
|
439
|
+
}
|
|
440
|
+
export interface SaveDashboardResponse {
|
|
441
|
+
error: Error | undefined;
|
|
442
|
+
}
|
|
303
443
|
export interface ConversationService {
|
|
444
|
+
GetConversation(request: GetConversationRequest, metadata?: Metadata): Observable<GetConversationResponse>;
|
|
304
445
|
/** the conversation list is order by lastUpdate desc default. */
|
|
305
446
|
ListConversations(request: ListConversationsRequest, metadata?: Metadata): Observable<ListConversationsResponse>;
|
|
306
447
|
RenameConversation(request: RenameConversationRequest, metadata?: Metadata): Observable<RenameConversationResponse>;
|
|
448
|
+
ShareConversation(request: ShareConversationRequest, metadata?: Metadata): Observable<ShareConversationResponse>;
|
|
449
|
+
UnshareConversation(request: UnshareConversationRequest, metadata?: Metadata): Observable<UnshareConversationResponse>;
|
|
307
450
|
DeleteConversation(request: DeleteConversationRequest, metadata?: Metadata): Observable<DeleteConversationResponse>;
|
|
308
451
|
/** the message list is order by createTime desc default. */
|
|
309
452
|
ListConversationMessages(request: ListConversationMessagesRequest, metadata?: Metadata): Observable<ListConversationMessagesResponse>;
|
|
310
453
|
ReactMessage(request: ReactMessageRequest, metadata?: Metadata): Observable<ReactMessageResponse>;
|
|
311
454
|
GetPromptRecommendations(request: GetPromptRecommendationsRequest, metadata?: Metadata): Observable<GetPromptRecommendationsResponse>;
|
|
455
|
+
/** deprecated, use ListAvailableModels instead */
|
|
312
456
|
GetConversationModels(request: GetConversationModelsRequest, metadata?: Metadata): Observable<GetConversationModelsResponse>;
|
|
457
|
+
ListAvailableModels(request: ListAvailableModelsRequest, metadata?: Metadata): Observable<ListAvailableModelsResponse>;
|
|
313
458
|
GetConversationDataFragmentation(request: GetConversationDataFragmentationRequest, metadata?: Metadata): Observable<GetConversationDataFragmentationResponse>;
|
|
314
459
|
ListConversationDataFragmentations(request: ListConversationDataFragmentationsRequest, metadata?: Metadata): Observable<ListConversationDataFragmentationsResponse>;
|
|
315
460
|
UpdateConversationDataFragmentation(request: UpdateConversationDataFragmentationRequest, metadata?: Metadata): Observable<UpdateConversationDataFragmentationResponse>;
|
|
461
|
+
BindUnitWithConversation(request: BindUnitWithConversationRequest, metadata?: Metadata): Observable<BindUnitWithConversationResponse>;
|
|
462
|
+
CancelConversation(request: CancelConversationRequest, metadata?: Metadata): Observable<CancelConversationResponse>;
|
|
463
|
+
NeedReconnectConversation(request: NeedReconnectConversationRequest, metadata?: Metadata): Observable<NeedReconnectConversationResponse>;
|
|
464
|
+
CreateReport(request: CreateReportRequest, metadata?: Metadata): Observable<CreateReportResponse>;
|
|
465
|
+
RedoReport(request: RedoReportRequest, metadata?: Metadata): Observable<CreateReportResponse>;
|
|
466
|
+
PollingReport(request: PollingReportRequest, metadata?: Metadata): Observable<CreateReportResponse>;
|
|
467
|
+
ListReports(request: ListReportsRequest, metadata?: Metadata): Observable<ListReportsResponse>;
|
|
468
|
+
FinishReport(request: FinishReportRequest, metadata?: Metadata): Observable<FinishReportResponse>;
|
|
469
|
+
GetDashboard(request: GetDashboardRequest, metadata?: Metadata): Observable<GetDashboardResponse>;
|
|
470
|
+
SaveDashboard(request: SaveDashboardRequest, metadata?: Metadata): Observable<SaveDashboardResponse>;
|
|
316
471
|
}
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import { Metadata } from '@grpc/grpc-js';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { Error } from '
|
|
3
|
+
import { Error } from '../../univer/constants/errors';
|
|
4
4
|
export declare const protobufPackage = "universer.v1";
|
|
5
|
+
export interface SendRawEmailRequest {
|
|
6
|
+
recipientEmail: string;
|
|
7
|
+
data: string;
|
|
8
|
+
title: string;
|
|
9
|
+
template: string;
|
|
10
|
+
}
|
|
11
|
+
export interface SendRawEmailResponse {
|
|
12
|
+
error: Error | undefined;
|
|
13
|
+
}
|
|
5
14
|
export interface SendClipsheetWorkflowEmailRequest {
|
|
6
15
|
userId: string;
|
|
7
16
|
recipientEmail: string;
|
|
@@ -15,4 +24,5 @@ export interface SendClipsheetWorkflowEmailResponse {
|
|
|
15
24
|
}
|
|
16
25
|
export interface EmailService {
|
|
17
26
|
SendClipsheetWorkflowEmail(request: SendClipsheetWorkflowEmailRequest, metadata?: Metadata): Observable<SendClipsheetWorkflowEmailResponse>;
|
|
27
|
+
SendRawEmail(request: SendRawEmailRequest, metadata?: Metadata): Observable<SendRawEmailResponse>;
|
|
18
28
|
}
|