@univerjs/protocol 0.1.49 → 0.21.0-insiders.20260422-d7fcb4d

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.
Files changed (84) hide show
  1. package/README.md +1 -3
  2. package/lib/cjs/index.js +463 -1
  3. package/lib/es/index.js +446 -36
  4. package/lib/index.js +447 -0
  5. package/lib/types/index.d.ts +41 -38
  6. package/lib/types/other/sheet-block.d.ts +27 -0
  7. package/lib/types/ts/univer/changeset.d.ts +20 -6
  8. package/lib/types/ts/univer/colla-msg.d.ts +176 -0
  9. package/lib/types/ts/univer/constants/errors.d.ts +33 -19
  10. package/lib/types/ts/univer/constants/univer.d.ts +15 -1
  11. package/lib/types/ts/univer/doc.d.ts +18 -4
  12. package/lib/types/ts/univer/drawing.d.ts +16 -2
  13. package/lib/types/ts/univer/initial-sheet.d.ts +46 -0
  14. package/lib/types/ts/univer/permission.d.ts +19 -5
  15. package/lib/types/ts/univer/range.d.ts +16 -2
  16. package/lib/types/ts/univer/resource.d.ts +16 -2
  17. package/lib/types/ts/univer/snapshot.d.ts +23 -9
  18. package/lib/types/ts/univer/unit-template.d.ts +23 -0
  19. package/lib/types/ts/univer/univer-file.d.ts +27 -0
  20. package/lib/types/ts/univer/workbook.d.ts +30 -53
  21. package/lib/types/ts/univercloud/stats/v1/stats.d.ts +34 -0
  22. package/lib/types/ts/univerpro/v1/apply.d.ts +129 -0
  23. package/lib/types/ts/univerpro/v1/helper.d.ts +36 -0
  24. package/lib/types/ts/univerpro/v1/ssc.d.ts +72 -0
  25. package/lib/types/ts/univerpro/v1/ssr.d.ts +28 -0
  26. package/lib/types/ts/universer/v1/access-key.d.ts +51 -0
  27. package/lib/types/ts/universer/v1/authz.d.ts +102 -87
  28. package/lib/types/ts/universer/v1/comb.d.ts +40 -61
  29. package/lib/types/ts/universer/v1/comment.d.ts +45 -49
  30. package/lib/types/ts/universer/v1/file.d.ts +57 -42
  31. package/lib/types/ts/universer/v1/history.d.ts +52 -49
  32. package/lib/types/ts/universer/v1/license.d.ts +54 -39
  33. package/lib/types/ts/universer/v1/snapshot.d.ts +146 -143
  34. package/lib/types/ts/universer/v1/user.d.ts +28 -275
  35. package/lib/types/utils.d.ts +17 -2
  36. package/lib/umd/index.js +1 -1
  37. package/package.json +33 -11
  38. package/lib/types/ts/univer/colla_msg.d.ts +0 -178
  39. package/lib/types/ts/univer/constants/biz.d.ts +0 -17
  40. package/lib/types/ts/univer/event_sync.d.ts +0 -10
  41. package/lib/types/ts/univer/initial_sheet.d.ts +0 -31
  42. package/lib/types/ts/univer/unit_template.d.ts +0 -9
  43. package/lib/types/ts/univer/univer_file.d.ts +0 -33
  44. package/lib/types/ts/universer/v1/access_key.d.ts +0 -36
  45. package/lib/types/ts/universer/v1/access_key_logs.d.ts +0 -43
  46. package/lib/types/ts/universer/v1/activity.d.ts +0 -22
  47. package/lib/types/ts/universer/v1/analyse_cmn.d.ts +0 -27
  48. package/lib/types/ts/universer/v1/analyse_data_source.d.ts +0 -86
  49. package/lib/types/ts/universer/v1/analyse_task.d.ts +0 -232
  50. package/lib/types/ts/universer/v1/clipsheet_task.d.ts +0 -72
  51. package/lib/types/ts/universer/v1/conf.d.ts +0 -570
  52. package/lib/types/ts/universer/v1/connector.d.ts +0 -74
  53. package/lib/types/ts/universer/v1/conversation.d.ts +0 -578
  54. package/lib/types/ts/universer/v1/email.d.ts +0 -28
  55. package/lib/types/ts/universer/v1/entitlement.d.ts +0 -663
  56. package/lib/types/ts/universer/v1/exchange.d.ts +0 -101
  57. package/lib/types/ts/universer/v1/feedback.d.ts +0 -71
  58. package/lib/types/ts/universer/v1/frontend_logs.d.ts +0 -36
  59. package/lib/types/ts/universer/v1/go_config_center.d.ts +0 -91
  60. package/lib/types/ts/universer/v1/inbox.d.ts +0 -59
  61. package/lib/types/ts/universer/v1/invite_code.d.ts +0 -47
  62. package/lib/types/ts/universer/v1/license_manage.d.ts +0 -157
  63. package/lib/types/ts/universer/v1/oauth2.d.ts +0 -24
  64. package/lib/types/ts/universer/v1/oidc.d.ts +0 -167
  65. package/lib/types/ts/universer/v1/redemption_code.d.ts +0 -32
  66. package/lib/types/ts/universer/v1/referral.d.ts +0 -55
  67. package/lib/types/ts/universer/v1/scraper.d.ts +0 -144
  68. package/lib/types/ts/universer/v1/source_connector/api.d.ts +0 -110
  69. package/lib/types/ts/universer/v1/source_connector/conf.d.ts +0 -29
  70. package/lib/types/ts/universer/v1/source_connector/displayer.d.ts +0 -16
  71. package/lib/types/ts/universer/v1/source_connector/source.d.ts +0 -46
  72. package/lib/types/ts/universer/v1/source_connector/stream_view.d.ts +0 -31
  73. package/lib/types/ts/universer/v1/survey.d.ts +0 -25
  74. package/lib/types/ts/universer/v1/template.d.ts +0 -48
  75. package/lib/types/ts/universer/v1/toolkit.d.ts +0 -23
  76. package/lib/types/ts/universer/v1/trigger.d.ts +0 -102
  77. package/lib/types/ts/universer/v1/uniscript.d.ts +0 -104
  78. package/lib/types/ts/universer/v1/uniscript_logs.d.ts +0 -157
  79. package/lib/types/ts/universer/v1/univer_go_template.d.ts +0 -65
  80. package/lib/types/ts/universer/v1/user_event.d.ts +0 -23
  81. package/lib/types/ts/universer/v1/user_settings.d.ts +0 -22
  82. package/lib/types/ts/universer/v1/usip.d.ts +0 -62
  83. package/lib/types/ts/universer/v1/video_task.d.ts +0 -196
  84. package/lib/types/ts/universer/v1/workspace.d.ts +0 -273
@@ -1,570 +0,0 @@
1
- import { Duration } from '../../google/protobuf/duration';
2
- import { MessageChannel } from '../../univer/constants/biz';
3
- import { Interval, QuotaItemConf } from './entitlement';
4
- export declare const protobufPackage = "universer.v1";
5
- export declare enum ReleaseType {
6
- UNKNOWN_TYPE = 0,
7
- DEV = 1,
8
- NON_COMMERCIAL = 2,
9
- COMMERCIAL = 3,
10
- UniverGO = 4,
11
- UNRECOGNIZED = -1
12
- }
13
- export declare enum FeatureType {
14
- UNKNOWN_FEATURE = 0,
15
- UNIT_FEATURE = 1,
16
- SHEET_FEATURE = 2,
17
- DOC_FEATURE = 3,
18
- SLIDE_FEATURE = 4,
19
- WORKSPACE_FEATURE = 5,
20
- UNRECOGNIZED = -1
21
- }
22
- export interface Bootstrap {
23
- server: Server | undefined;
24
- data: Data | undefined;
25
- service: Service | undefined;
26
- admin: Admin[];
27
- extra: ExtraConf | undefined;
28
- auth: Auth | undefined;
29
- apiLimit: ApiLimit | undefined;
30
- sentryConfig: SentryConfig | undefined;
31
- usip: USIP | undefined;
32
- dataProtectionConf: DataProtectionConf | undefined;
33
- sesConfig: SESConf | undefined;
34
- workspace: WorkspaceConf | undefined;
35
- postHogConf: PostHogConf | undefined;
36
- entitlementConf: EntitlementConf | undefined;
37
- statsConf: StatsConf | undefined;
38
- jaegerConf: JaegerConf | undefined;
39
- scriptLogsConf: ScriptLogsConf | undefined;
40
- smsConf: SMSConf | undefined;
41
- invitationCode: InvitationCode | undefined;
42
- models: ModelConf[];
43
- wechat: Wechat | undefined;
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;
51
- xunfei: Xunfei | undefined;
52
- }
53
- export interface Server {
54
- http: Server_HTTP | undefined;
55
- grpc: Server_GRPC | undefined;
56
- shutdownTimeout: Duration | undefined;
57
- }
58
- export interface Server_HTTP {
59
- network: string;
60
- addr: string;
61
- timeout: Duration | undefined;
62
- corsAllowOrigins: string[];
63
- corsAllowHeaders: string[];
64
- }
65
- export interface Server_GRPC {
66
- network: string;
67
- addr: string;
68
- timeout: Duration | undefined;
69
- }
70
- export interface S3 {
71
- accessKeyID: string;
72
- accessKeySecret: string;
73
- region: string;
74
- endpoint: string;
75
- endpointPublic: string;
76
- usePathStyle: boolean;
77
- presignExpires: Duration | undefined;
78
- defaultBucket: string;
79
- /** bool useDownloadProxy = 9; */
80
- publicBucket: string;
81
- }
82
- export interface TLSConfig {
83
- enabled: boolean;
84
- insecure: boolean;
85
- cert: string;
86
- key: string;
87
- ca: string;
88
- }
89
- export interface Data {
90
- database: Data_Database | undefined;
91
- redis: Data_Redis | undefined;
92
- rabbitmq: Data_Rabbitmq | undefined;
93
- clickhouse: Data_Clickhouse | undefined;
94
- temporal: Data_Temporal | undefined;
95
- s3: S3 | undefined;
96
- }
97
- export interface Data_Database {
98
- driver: string;
99
- database: string;
100
- dsn: string;
101
- maxOpenConns: number;
102
- maxIdleConns: number;
103
- connMaxLifetime: number;
104
- replicaDSN: string;
105
- }
106
- export interface Data_Redis {
107
- network: string;
108
- /** if cluster use comma to split */
109
- addr: string;
110
- readTimeout: Duration | undefined;
111
- writeTimeout: Duration | undefined;
112
- sentinel: Data_Redis_Sentinel | undefined;
113
- db: number;
114
- username: string;
115
- password: string;
116
- poolSize: number;
117
- tlsConfig: TLSConfig | undefined;
118
- }
119
- export interface Data_Redis_Sentinel {
120
- enabled: boolean;
121
- masterName: string;
122
- sentinelAddr: string;
123
- username: string;
124
- password: string;
125
- }
126
- export interface Data_Rabbitmq {
127
- addr: string;
128
- cluster: Data_Rabbitmq_Cluster | undefined;
129
- eventSync: boolean;
130
- enabled: boolean;
131
- }
132
- export interface Data_Rabbitmq_Cluster {
133
- enabled: boolean;
134
- username: string;
135
- password: string;
136
- /** use comma to split */
137
- addr: string;
138
- vhost: string;
139
- schema: string;
140
- }
141
- export interface Data_Clickhouse {
142
- dsn: string;
143
- }
144
- export interface Data_Temporal {
145
- addr: string;
146
- namespace: string;
147
- workerTaskQueue: string;
148
- }
149
- export interface Service {
150
- apply: Service_RpcService | undefined;
151
- fileExchange: Service_RpcService | undefined;
152
- nodeRuntime: Service_RpcService | undefined;
153
- pythonRuntime: Service_RpcService | undefined;
154
- ssc: Service_RpcService | undefined;
155
- univerOps: Service_RpcService | undefined;
156
- redemptionCode: Service_RpcService | undefined;
157
- collaborationHelper: Service_RpcService | undefined;
158
- yuumi: Service_HttpService | undefined;
159
- }
160
- export interface Service_RpcService {
161
- addr: string;
162
- network: string;
163
- timeout: Duration | undefined;
164
- tlsConfig: TLSConfig | undefined;
165
- }
166
- export interface Service_HttpService {
167
- addr: string;
168
- timeout: Duration | undefined;
169
- }
170
- export interface Admin {
171
- user: string;
172
- password: string;
173
- }
174
- export interface ExtraConf {
175
- celldataMaxSize: number;
176
- }
177
- export interface LicenseArgs {
178
- maxUnits: number;
179
- maxMemberInRoom: number;
180
- concurrentUnits: number;
181
- maxImportSize: number;
182
- maxNumberOfCells: number;
183
- print: Print | undefined;
184
- }
185
- export interface LicenseV2 {
186
- id: string;
187
- version: string;
188
- /** LicenseBiz json string */
189
- jsonData: string;
190
- signature: string;
191
- /** only for upgrade shell */
192
- upgradeDeadline: number;
193
- }
194
- export interface LicenseBiz {
195
- id: string;
196
- version: string;
197
- domain: string[];
198
- /** dev、no-commercial、commercial */
199
- releaseType: ReleaseType;
200
- feature: Feature | undefined;
201
- upgradeDeadline: number;
202
- issuedAt: number;
203
- /** optional */
204
- email: string;
205
- /** optional */
206
- difficulty: number;
207
- /** optional */
208
- nonce: number;
209
- }
210
- export interface Feature {
211
- unitFeature: UnitFeature | undefined;
212
- sheetFeature: SheetFeature | undefined;
213
- docFeature: DocFeature | undefined;
214
- workspaceFeature: WorkspaceFeature | undefined;
215
- }
216
- export interface SheetFeature {
217
- expirationTime: number;
218
- reviews: boolean;
219
- pivotTableNum: number;
220
- maxImportSize: number;
221
- maxPrintNum: number;
222
- }
223
- export interface DocFeature {
224
- expirationTime: number;
225
- reviews: boolean;
226
- maxImportSize: number;
227
- maxPrintNum: number;
228
- }
229
- export interface UnitFeature {
230
- expirationTime: number;
231
- maxUnits: number;
232
- maxMemberInRoom: number;
233
- concurrentUnits: number;
234
- }
235
- export interface WorkspaceFeature {
236
- expirationTime: number;
237
- maxHistoryNum: number;
238
- }
239
- export interface Print {
240
- pageLimit: number;
241
- }
242
- export interface Config {
243
- confDir: string;
244
- confName: string;
245
- }
246
- export interface Auth {
247
- enabled: boolean;
248
- oidc: Auth_OIDC | undefined;
249
- oauth2: Auth_Oauth2 | undefined;
250
- permission: Auth_Permission | undefined;
251
- univerEnabled: boolean;
252
- anonymous: Auth_Anonymous | undefined;
253
- cookieDomain: string;
254
- casdoorSDK: Auth_CasdoorSDK | undefined;
255
- admin: Auth_Admin | undefined;
256
- loginErrorURL: string;
257
- mobileBindURL: string;
258
- homepageURL: string;
259
- loginURL: string;
260
- ssoAuthOrigin: string;
261
- }
262
- export interface Auth_OIDC {
263
- issuer: string;
264
- clientID: string;
265
- clientSecret: string;
266
- redirectURL: string;
267
- /** @deprecated */
268
- cookieDomain: string;
269
- enabled: boolean;
270
- }
271
- export interface Auth_CasdoorSDK {
272
- organizationName: string;
273
- applicationName: string;
274
- /** casdoor domain eg. https://login.univer.work */
275
- domain: string;
276
- }
277
- export interface Auth_Oauth2 {
278
- clientID: string;
279
- clientSecret: string;
280
- redirectURL: string;
281
- /** @deprecated */
282
- cookieDomain: string;
283
- enabled: boolean;
284
- authURL: string;
285
- tokenURL: string;
286
- apiURL: string;
287
- scopes: string;
288
- openidPath: string;
289
- emailPath: string;
290
- namePath: string;
291
- avatarPath: string;
292
- }
293
- export interface Auth_Anonymous {
294
- enabled: boolean;
295
- }
296
- export interface Auth_Permission {
297
- enabled: boolean;
298
- defaultShareScope: string;
299
- defaultShareRole: string;
300
- enableObjInherit: boolean;
301
- customerStrategies: string;
302
- }
303
- export interface Auth_Admin {
304
- userIDs: string[];
305
- liteServer: boolean;
306
- }
307
- export interface ApiLimit {
308
- method: ApiLimit_TokenLimit | undefined;
309
- ip: ApiLimit_TokenLimit | undefined;
310
- perMethod: {
311
- [key: string]: ApiLimit_TokenLimit;
312
- };
313
- /** for every user limit */
314
- user: ApiLimit_TokenLimit | undefined;
315
- perMethodUser: {
316
- [key: string]: ApiLimit_TokenLimit;
317
- };
318
- /** for specific method limit */
319
- perMethodIp: {
320
- [key: string]: ApiLimit_TokenLimit;
321
- };
322
- }
323
- export interface ApiLimit_TokenLimit {
324
- tokens: number;
325
- interval: Duration | undefined;
326
- }
327
- export interface ApiLimit_PerMethodEntry {
328
- key: string;
329
- value: ApiLimit_TokenLimit | undefined;
330
- }
331
- export interface ApiLimit_PerMethodUserEntry {
332
- key: string;
333
- value: ApiLimit_TokenLimit | undefined;
334
- }
335
- export interface ApiLimit_PerMethodIpEntry {
336
- key: string;
337
- value: ApiLimit_TokenLimit | undefined;
338
- }
339
- export interface SentryConfig {
340
- dsn: string;
341
- debug: boolean;
342
- enableTracing: boolean;
343
- TracesSampleRate: number;
344
- }
345
- /** Univer Server Integration Protocol */
346
- export interface USIP {
347
- enabled: boolean;
348
- uri: USIP_USIPUri | undefined;
349
- apikey: string;
350
- }
351
- export interface USIP_USIPUri {
352
- userinfo: string;
353
- collaborators: string;
354
- role: string;
355
- credential: string;
356
- unitEditTime: string;
357
- }
358
- export interface DataProtectionConf {
359
- enableProtection: boolean;
360
- dataKeyRotate: Duration | undefined;
361
- dataKeyCacheExpiration: Duration | undefined;
362
- /** if enableProtection=true, choose one for current */
363
- awskms: DataProtectionConf_AwsKMSConf | undefined;
364
- localKMS: DataProtectionConf_LocalKMSConf | undefined;
365
- }
366
- export interface DataProtectionConf_AwsKMSConf {
367
- accessKeyID: string;
368
- accessKeySecret: string;
369
- region: string;
370
- kmsKeyID: string;
371
- }
372
- export interface DataProtectionConf_LocalKMSConf {
373
- cmkAlias: string;
374
- cmkBase64: string;
375
- }
376
- export interface SESConf {
377
- accessKey: string;
378
- accessSecret: string;
379
- region: string;
380
- /** @deprecated */
381
- templateName: string;
382
- redirectURL: string;
383
- template: SESConf_SESTemplate | undefined;
384
- senderAddr: string;
385
- }
386
- export interface SESConf_SESTemplate {
387
- login: string;
388
- clipsheetWorkflow: string;
389
- emailAuthCode: string;
390
- inviteCode: string;
391
- }
392
- export interface WorkspaceConf {
393
- enabled: boolean;
394
- }
395
- export interface PostHogConf {
396
- enabled: boolean;
397
- endpoint: string;
398
- projectKey: string;
399
- }
400
- export interface EntitlementConf {
401
- enable: boolean;
402
- defaultEntiConf: EntitlementConf_DefaultEntiConf | undefined;
403
- cronConf: EntitlementConf_CronConf | undefined;
404
- stripeConf: EntitlementConf_StripeConf | undefined;
405
- wechatPayConf: EntitlementConf_WechatPayConf | undefined;
406
- aliPayConf: EntitlementConf_AliPayConf | undefined;
407
- /** minutes eg. 1440 */
408
- orderExpireInterval: number;
409
- /** minutes eg. 15 */
410
- intentExpireInterval: number;
411
- identityExpireNtfConf: EntitlementConf_IdentityExpireNtfConf | undefined;
412
- registerAwardConf: EntitlementConf_RegisterAwardConf | undefined;
413
- }
414
- export interface EntitlementConf_DefaultEntiConf {
415
- anonymousDefaultEntiId: number;
416
- registeredDefaultEntiId: number;
417
- }
418
- export interface EntitlementConf_RegisterAwardConf {
419
- entiId: number;
420
- entiInterval: Interval;
421
- entiIntervalCnt: number;
422
- quotaConfs: {
423
- [key: string]: QuotaItemConf;
424
- };
425
- quotaInterval: Interval;
426
- quotaIntervalCnt: number;
427
- }
428
- export interface EntitlementConf_RegisterAwardConf_QuotaConfsEntry {
429
- key: string;
430
- value: QuotaItemConf | undefined;
431
- }
432
- export interface EntitlementConf_CronConf {
433
- reportRetryCron: string;
434
- minRetryInterval: number;
435
- retryRate: number;
436
- pendingSubCleanCron: string;
437
- detectInterval: number;
438
- cleanRate: number;
439
- maxActionBlockInterval: number;
440
- }
441
- export interface EntitlementConf_StripeConf {
442
- apiPK: string;
443
- apiSK: string;
444
- whSK: string;
445
- timeout: number;
446
- }
447
- export interface EntitlementConf_WechatPayConf {
448
- /** WeChat application ID */
449
- appID: string;
450
- /** Merchant certificate serial number */
451
- mchCertificateSerialNumber: string;
452
- /** Merchant ID */
453
- mchID: string;
454
- /** Merchant APIv3 key */
455
- apiKey: string;
456
- /** WeChat payment notification URL */
457
- notifyUrl: string;
458
- }
459
- export interface EntitlementConf_AliPayConf {
460
- appID: string;
461
- privateKey: string;
462
- apiKey: string;
463
- /** alipay notification URL */
464
- notifyUrl: string;
465
- isProd: boolean;
466
- }
467
- export interface EntitlementConf_IdentityExpireNtfConf {
468
- toNtfLeftDays: number[];
469
- ntfRate: number;
470
- }
471
- export interface StatsConf {
472
- /** seconds */
473
- timeInterval: number;
474
- maxRecords: number;
475
- addr: string;
476
- }
477
- export interface JaegerConf {
478
- enabled: boolean;
479
- grpcEndpoint: string;
480
- }
481
- export interface ScriptLogsConf {
482
- enable: boolean;
483
- retentionDuration: Duration | undefined;
484
- }
485
- export interface SMSConf {
486
- accessKey: string;
487
- accessSecret: string;
488
- endpoint: string;
489
- signName: string;
490
- templateCodeForLogin: string;
491
- }
492
- export interface InvitationCode {
493
- enabled: boolean;
494
- }
495
- export interface ModelConf {
496
- id: string;
497
- name: string;
498
- }
499
- export interface Wechat {
500
- /** 旧版兼容字段(用于网页端微信登录) */
501
- appID: string;
502
- appSecret: string;
503
- /** 表答 PC 网页端微信登录 */
504
- web: WechatApp | undefined;
505
- /** 表答小程序 */
506
- miniProgram: WechatApp | undefined;
507
- /** 表答移动端获取 JSAPI 权限 */
508
- jsapi: WechatApp | undefined;
509
- }
510
- export interface WechatApp {
511
- appID: string;
512
- appSecret: string;
513
- }
514
- export interface Xunfei {
515
- appID: string;
516
- apiKey: string;
517
- apiSecret: string;
518
- }
519
- export interface AIAnalyseSampleConf {
520
- locale: string;
521
- sampleUnits: AIAnalyseSampleUnit[];
522
- }
523
- export interface AIAnalyseSampleUnit {
524
- unitId: string;
525
- dataSummary: string;
526
- }
527
- export interface PermissionBasedExport {
528
- enabled: boolean;
529
- }
530
- export interface NotifyConf {
531
- /** 购买成功配置 */
532
- purchase: NotifyConf_SceneConf[];
533
- identityExpiring: NotifyConf_SceneConf[];
534
- }
535
- export interface NotifyConf_SceneConf {
536
- channel: MessageChannel;
537
- templateId: string;
538
- }
539
- export interface IP2AddrCliConf {
540
- pathFmt: string;
541
- token: string;
542
- }
543
- export interface GoogleConf {
544
- enabled: boolean;
545
- clientId: string;
546
- clientSecret: string;
547
- redirectUrl: string;
548
- scopes: string[];
549
- apikey: string;
550
- appId: string;
551
- }
552
- export interface ProxyConf {
553
- proxyUrl: string;
554
- }
555
- export interface UnitRoutingConf {
556
- tiers: UnitRoutingConf_servicesTier[];
557
- cacheSeconds: number;
558
- refreshSeconds: number;
559
- tierSwitchDelaySeconds: number;
560
- }
561
- export interface UnitRoutingConf_servicesTier {
562
- tierName: string;
563
- enable: boolean;
564
- upgradeCellsThreshold: number;
565
- downgradeCellsThreshold: number;
566
- upgradeImportTimeThreshold: number;
567
- applyServerAddr: string;
568
- applyServerTimeout: Duration | undefined;
569
- tlsConfig: TLSConfig | undefined;
570
- }
@@ -1,74 +0,0 @@
1
- import { Metadata } from '@grpc/grpc-js';
2
- import { Observable } from 'rxjs';
3
- import { Error } from '../../univer/constants/errors';
4
- import { RowData } from '../../univer/workbook';
5
- import { DisplayerConfig } from './source_connector/displayer';
6
- import { SelectColumn, WhereGroup as WhereGroup1 } from './source_connector/stream_view';
7
- export declare const protobufPackage = "universer.v1";
8
- export interface Connector {
9
- connectorID: string;
10
- name: string;
11
- }
12
- export interface Displayer {
13
- diplayerID: string;
14
- name: string;
15
- }
16
- export interface WhereGroup {
17
- group: string;
18
- conditions: WhereCondition[];
19
- }
20
- export interface WhereCondition {
21
- column: string;
22
- value: any[];
23
- }
24
- export interface ListDisplayersRequest {
25
- }
26
- export interface ListDisplayersResponse {
27
- error: Error | undefined;
28
- displayers: Displayer[];
29
- }
30
- export interface GetDisplayerRequest {
31
- displayerID: string;
32
- }
33
- export interface GetDisplayerResponse {
34
- error: Error | undefined;
35
- display: DisplayerConfig | undefined;
36
- }
37
- export interface GetStreamViewRequest {
38
- viewID: string;
39
- }
40
- export interface GetStreamViewResponse {
41
- error: Error | undefined;
42
- select: SelectColumn[];
43
- where: WhereGroup1[];
44
- }
45
- export interface GetStreamViewRownumResponse {
46
- error: Error | undefined;
47
- rownum: number;
48
- }
49
- export interface StreamViewQueryRequest {
50
- viewID: string;
51
- schedule: string;
52
- select: string[];
53
- where: WhereGroup[];
54
- }
55
- export interface QueryResponse {
56
- error: Error | undefined;
57
- nextCursor: string;
58
- dataformID: string;
59
- celldatas: RowData[];
60
- columns: string[];
61
- }
62
- export interface DataformQueryRequest {
63
- dataformID: string;
64
- cursor: string;
65
- }
66
- export interface ConnectorService {
67
- ListDisplayers(request: ListDisplayersRequest, metadata?: Metadata): Observable<ListDisplayersResponse>;
68
- GetDisplayer(request: GetDisplayerRequest, metadata?: Metadata): Observable<GetDisplayerResponse>;
69
- GetStreamView(request: GetStreamViewRequest, metadata?: Metadata): Observable<GetStreamViewResponse>;
70
- GetStreamViewRownum(request: StreamViewQueryRequest, metadata?: Metadata): Observable<GetStreamViewRownumResponse>;
71
- StreamViewPreview(request: StreamViewQueryRequest, metadata?: Metadata): Observable<QueryResponse>;
72
- StreamViewQuery(request: StreamViewQueryRequest, metadata?: Metadata): Observable<QueryResponse>;
73
- DataformQuery(request: DataformQueryRequest, metadata?: Metadata): Observable<QueryResponse>;
74
- }