@univerjs/protocol 0.1.20 → 0.1.21

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.
@@ -1,78 +0,0 @@
1
- export declare const protobufPackage = "google.protobuf";
2
- /**
3
- * A Duration represents a signed, fixed-length span of time represented
4
- * as a count of seconds and fractions of seconds at nanosecond
5
- * resolution. It is independent of any calendar and concepts like "day"
6
- * or "month". It is related to Timestamp in that the difference between
7
- * two Timestamp values is a Duration and it can be added or subtracted
8
- * from a Timestamp. Range is approximately +-10,000 years.
9
- *
10
- * # Examples
11
- *
12
- * Example 1: Compute Duration from two Timestamps in pseudo code.
13
- *
14
- * Timestamp start = ...;
15
- * Timestamp end = ...;
16
- * Duration duration = ...;
17
- *
18
- * duration.seconds = end.seconds - start.seconds;
19
- * duration.nanos = end.nanos - start.nanos;
20
- *
21
- * if (duration.seconds < 0 && duration.nanos > 0) {
22
- * duration.seconds += 1;
23
- * duration.nanos -= 1000000000;
24
- * } else if (duration.seconds > 0 && duration.nanos < 0) {
25
- * duration.seconds -= 1;
26
- * duration.nanos += 1000000000;
27
- * }
28
- *
29
- * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.
30
- *
31
- * Timestamp start = ...;
32
- * Duration duration = ...;
33
- * Timestamp end = ...;
34
- *
35
- * end.seconds = start.seconds + duration.seconds;
36
- * end.nanos = start.nanos + duration.nanos;
37
- *
38
- * if (end.nanos < 0) {
39
- * end.seconds -= 1;
40
- * end.nanos += 1000000000;
41
- * } else if (end.nanos >= 1000000000) {
42
- * end.seconds += 1;
43
- * end.nanos -= 1000000000;
44
- * }
45
- *
46
- * Example 3: Compute Duration from datetime.timedelta in Python.
47
- *
48
- * td = datetime.timedelta(days=3, minutes=10)
49
- * duration = Duration()
50
- * duration.FromTimedelta(td)
51
- *
52
- * # JSON Mapping
53
- *
54
- * In JSON format, the Duration type is encoded as a string rather than an
55
- * object, where the string ends in the suffix "s" (indicating seconds) and
56
- * is preceded by the number of seconds, with nanoseconds expressed as
57
- * fractional seconds. For example, 3 seconds with 0 nanoseconds should be
58
- * encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should
59
- * be expressed in JSON format as "3.000000001s", and 3 seconds and 1
60
- * microsecond should be expressed in JSON format as "3.000001s".
61
- */
62
- export interface Duration {
63
- /**
64
- * Signed seconds of the span of time. Must be from -315,576,000,000
65
- * to +315,576,000,000 inclusive. Note: these bounds are computed from:
66
- * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
67
- */
68
- seconds: number;
69
- /**
70
- * Signed fractions of a second at nanosecond resolution of the span
71
- * of time. Durations less than one second are represented with a 0
72
- * `seconds` field and a positive or negative `nanos` field. For durations
73
- * of one second or more, a non-zero value for the `nanos` field must be
74
- * of the same sign as the `seconds` field. Must be from -999,999,999
75
- * to +999,999,999 inclusive.
76
- */
77
- nanos: number;
78
- }
@@ -1,14 +0,0 @@
1
- export declare const protobufPackage = "google.protobuf";
2
- /**
3
- * A generic empty message that you can re-use to avoid defining duplicated
4
- * empty messages in your APIs. A typical example is to use it as the request
5
- * or the response type of an API method. For instance:
6
- *
7
- * service Foo {
8
- * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
9
- * }
10
- *
11
- * The JSON representation for `Empty` is empty JSON object `{}`.
12
- */
13
- export interface Empty {
14
- }
@@ -1,65 +0,0 @@
1
- export declare const protobufPackage = "google.protobuf";
2
- /**
3
- * `NullValue` is a singleton enumeration to represent the null value for the
4
- * `Value` type union.
5
- *
6
- * The JSON representation for `NullValue` is JSON `null`.
7
- */
8
- export declare enum NullValue {
9
- /** NULL_VALUE - Null value. */
10
- NULL_VALUE = 0,
11
- UNRECOGNIZED = -1
12
- }
13
- /**
14
- * `Struct` represents a structured data value, consisting of fields
15
- * which map to dynamically typed values. In some languages, `Struct`
16
- * might be supported by a native representation. For example, in
17
- * scripting languages like JS a struct is represented as an
18
- * object. The details of that representation are described together
19
- * with the proto support for the language.
20
- *
21
- * The JSON representation for `Struct` is JSON object.
22
- */
23
- export interface Struct {
24
- /** Unordered map of dynamically typed values. */
25
- fields: {
26
- [key: string]: any | undefined;
27
- };
28
- }
29
- export interface Struct_FieldsEntry {
30
- key: string;
31
- value: any | undefined;
32
- }
33
- /**
34
- * `Value` represents a dynamically typed value which can be either
35
- * null, a number, a string, a boolean, a recursive struct value, or a
36
- * list of values. A producer of value is expected to set one of these
37
- * variants. Absence of any variant indicates an error.
38
- *
39
- * The JSON representation for `Value` is JSON value.
40
- */
41
- export interface Value {
42
- /** Represents a null value. */
43
- nullValue?: NullValue | undefined;
44
- /** Represents a double value. */
45
- numberValue?: number | undefined;
46
- /** Represents a string value. */
47
- stringValue?: string | undefined;
48
- /** Represents a boolean value. */
49
- boolValue?: boolean | undefined;
50
- /** Represents a structured value. */
51
- structValue?: {
52
- [key: string]: any;
53
- } | undefined;
54
- /** Represents a repeated `Value`. */
55
- listValue?: Array<any> | undefined;
56
- }
57
- /**
58
- * `ListValue` is a wrapper around a repeated field of values.
59
- *
60
- * The JSON representation for `ListValue` is JSON array.
61
- */
62
- export interface ListValue {
63
- /** Repeated field of dynamically typed values. */
64
- values: any[];
65
- }
@@ -1,107 +0,0 @@
1
- export declare const protobufPackage = "google.protobuf";
2
- /**
3
- * A Timestamp represents a point in time independent of any time zone or local
4
- * calendar, encoded as a count of seconds and fractions of seconds at
5
- * nanosecond resolution. The count is relative to an epoch at UTC midnight on
6
- * January 1, 1970, in the proleptic Gregorian calendar which extends the
7
- * Gregorian calendar backwards to year one.
8
- *
9
- * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
10
- * second table is needed for interpretation, using a [24-hour linear
11
- * smear](https://developers.google.com/time/smear).
12
- *
13
- * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
14
- * restricting to that range, we ensure that we can convert to and from [RFC
15
- * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
16
- *
17
- * # Examples
18
- *
19
- * Example 1: Compute Timestamp from POSIX `time()`.
20
- *
21
- * Timestamp timestamp;
22
- * timestamp.set_seconds(time(NULL));
23
- * timestamp.set_nanos(0);
24
- *
25
- * Example 2: Compute Timestamp from POSIX `gettimeofday()`.
26
- *
27
- * struct timeval tv;
28
- * gettimeofday(&tv, NULL);
29
- *
30
- * Timestamp timestamp;
31
- * timestamp.set_seconds(tv.tv_sec);
32
- * timestamp.set_nanos(tv.tv_usec * 1000);
33
- *
34
- * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
35
- *
36
- * FILETIME ft;
37
- * GetSystemTimeAsFileTime(&ft);
38
- * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
39
- *
40
- * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
41
- * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
42
- * Timestamp timestamp;
43
- * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
44
- * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
45
- *
46
- * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
47
- *
48
- * long millis = System.currentTimeMillis();
49
- *
50
- * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
51
- * .setNanos((int) ((millis % 1000) * 1000000)).build();
52
- *
53
- * Example 5: Compute Timestamp from Java `Instant.now()`.
54
- *
55
- * Instant now = Instant.now();
56
- *
57
- * Timestamp timestamp =
58
- * Timestamp.newBuilder().setSeconds(now.getEpochSecond())
59
- * .setNanos(now.getNano()).build();
60
- *
61
- * Example 6: Compute Timestamp from current time in Python.
62
- *
63
- * timestamp = Timestamp()
64
- * timestamp.GetCurrentTime()
65
- *
66
- * # JSON Mapping
67
- *
68
- * In JSON format, the Timestamp type is encoded as a string in the
69
- * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
70
- * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
71
- * where {year} is always expressed using four digits while {month}, {day},
72
- * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
73
- * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
74
- * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
75
- * is required. A proto3 JSON serializer should always use UTC (as indicated by
76
- * "Z") when printing the Timestamp type and a proto3 JSON parser should be
77
- * able to accept both UTC and other timezones (as indicated by an offset).
78
- *
79
- * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
80
- * 01:30 UTC on January 15, 2017.
81
- *
82
- * In JavaScript, one can convert a Date object to this format using the
83
- * standard
84
- * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
85
- * method. In Python, a standard `datetime.datetime` object can be converted
86
- * to this format using
87
- * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
88
- * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
89
- * the Joda Time's [`ISODateTimeFormat.dateTime()`](
90
- * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
91
- * ) to obtain a formatter capable of generating timestamps in this format.
92
- */
93
- export interface Timestamp {
94
- /**
95
- * Represents seconds of UTC time since Unix epoch
96
- * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
97
- * 9999-12-31T23:59:59Z inclusive.
98
- */
99
- seconds: number;
100
- /**
101
- * Non-negative fractions of a second at nanosecond resolution. Negative
102
- * second values with fractions must still have non-negative nanos values
103
- * that count forward in time. Must be from 0 to 999,999,999
104
- * inclusive.
105
- */
106
- nanos: number;
107
- }
@@ -1 +0,0 @@
1
- export declare const protobufPackage = "tagger";
@@ -1,88 +0,0 @@
1
- import { Metadata } from "@grpc/grpc-js";
2
- import { Observable } from "rxjs";
3
- import type { Changeset } from "../univer/changeset";
4
- import type { Error } from "../univer/constants/errors";
5
- import type { UniverType } from "../univer/constants/univer";
6
- import type { Snapshot } from "../univer/snapshot";
7
- import type { CustomCellTemplate } from "../univer/unit_template";
8
- export declare const protobufPackage = "univerpro.v1";
9
- /** The meta required to create a new unit. */
10
- export interface WorkbookCreateMeta {
11
- /**
12
- * If you want to create an empty sheet, make this undefined or a empty
13
- * string.
14
- */
15
- templateID?: string | undefined;
16
- /** Name of the unit. It should be localized. */
17
- name: string;
18
- /** Locale of the unit. */
19
- locale: string;
20
- customCell?: CustomCellTemplate | undefined;
21
- }
22
- export interface CreateUnitRequest {
23
- unitID: string;
24
- type: UniverType;
25
- name: string;
26
- creator: string;
27
- /** If `type` is UniverType.UNIVER_SHEEET, this is requried. */
28
- workbookMeta?: WorkbookCreateMeta | undefined;
29
- }
30
- export interface CreateUnitResponse {
31
- error: Error | undefined;
32
- }
33
- /**
34
- * ApplyRequest is almost the same as a Changeset.
35
- * See `changeset.proto` for details.
36
- */
37
- export interface ApplyRequest {
38
- unitID: string;
39
- type: UniverType;
40
- /** changeset to apply */
41
- changeset: Changeset | undefined;
42
- /** changsetset to fast forward to, these cs has been applied to the document */
43
- fastForward: Changeset[];
44
- }
45
- export interface ApplyResponse {
46
- error: Error | undefined;
47
- /** The revision of the document right now */
48
- revision: number;
49
- }
50
- export interface DisposeRequest {
51
- unitID: string;
52
- }
53
- export interface DisposeResponse {
54
- error: Error | undefined;
55
- }
56
- export interface EnsureSnapshotRequest {
57
- unitID: string;
58
- type: UniverType;
59
- revision: number;
60
- }
61
- export interface EnsureSnapshotResponse {
62
- error: Error | undefined;
63
- snapshot: Snapshot | undefined;
64
- }
65
- /**
66
- * This service is used to apply changesets to a document.
67
- * It is implements in Node.js. See `univer-pro/apps/univer-collaboration-server`.
68
- */
69
- export interface ApplyService {
70
- /**
71
- * Create a unit with given meta.
72
- * Apply service would save the snapshot to the snapshot service.
73
- */
74
- CreateUnit(request: CreateUnitRequest, metadata?: Metadata): Observable<CreateUnitResponse>;
75
- /** Apply a changeset to he document. */
76
- Apply(request: ApplyRequest, metadata?: Metadata): Observable<ApplyResponse>;
77
- /**
78
- * Dispose a document from the server. It would help to free up some memory.
79
- * Should be called when the last collaboration member leaves the room.
80
- */
81
- Dispose(request: DisposeRequest, metadata?: Metadata): Observable<DisposeResponse>;
82
- /**
83
- * Ensure the snapshot at a given number would be saved to the snapshot service.
84
- * Normally used for exporting because the server written in Go
85
- * cannot apply changesets.
86
- */
87
- EnsureSnapshot(request: EnsureSnapshotRequest, metadata?: Metadata): Observable<EnsureSnapshotResponse>;
88
- }
@@ -1,86 +0,0 @@
1
- import { Metadata } from "@grpc/grpc-js";
2
- import { Observable } from "rxjs";
3
- import type { Error } from "../univer/constants/errors";
4
- export declare const protobufPackage = "universer.v1";
5
- export interface Collaborator {
6
- id: string;
7
- role: string;
8
- }
9
- export interface CreateRequest {
10
- objectType: string;
11
- selectRangeObject?: CreateRequest_SelectRangeObject | undefined;
12
- worksheetObject?: CreateRequest_WorksheetObject | undefined;
13
- }
14
- export interface CreateRequest_SelectRangeObject {
15
- collaborators: Collaborator[];
16
- unitID: string;
17
- }
18
- export interface CreateRequest_WorksheetObject {
19
- collaborators: Collaborator[];
20
- unitID: string;
21
- }
22
- export interface CreateResponse {
23
- error: Error | undefined;
24
- objectID: string;
25
- }
26
- export interface CreateCollaboratorRequest {
27
- objectID: string;
28
- collaborators: Collaborator[];
29
- }
30
- export interface CreateCollaboratorResponse {
31
- error: Error | undefined;
32
- }
33
- export interface UpdateCollaboratorRequest {
34
- objectID: string;
35
- collaborator: Collaborator | undefined;
36
- }
37
- export interface UpdateCollaboratorResponse {
38
- error: Error | undefined;
39
- }
40
- export interface DeleteCollaboratorRequest {
41
- objectID: string;
42
- collaborator: Collaborator | undefined;
43
- }
44
- export interface DeleteCollaboratorResponse {
45
- error: Error | undefined;
46
- }
47
- export interface ListCollaboratorRequest {
48
- objectID: string;
49
- }
50
- export interface ListCollaboratorResponse {
51
- error: Error | undefined;
52
- collaborators: Collaborator[];
53
- }
54
- export interface AllowedRequest {
55
- objectID: string;
56
- objectType: string;
57
- actions: string[];
58
- }
59
- export interface ActionInfo {
60
- /** key is action, value is permission */
61
- info: {
62
- [key: string]: number;
63
- };
64
- }
65
- export interface ActionInfo_InfoEntry {
66
- key: string;
67
- value: number;
68
- }
69
- export interface AllowedResponse {
70
- error: Error | undefined;
71
- actions: ActionInfo | undefined;
72
- }
73
- export interface AuthzService {
74
- /** create a permission mount point for specified type of object */
75
- Create(request: CreateRequest, metadata?: Metadata): Observable<CreateResponse>;
76
- /** request a couple of actions, return the allowed actions */
77
- Allowed(request: AllowedRequest, metadata?: Metadata): Observable<AllowedResponse>;
78
- /** new collaborator for specified object */
79
- CreateCollaborator(request: CreateCollaboratorRequest, metadata?: Metadata): Observable<CreateCollaboratorResponse>;
80
- /** list all collaborators for specified object */
81
- ListCollaborators(request: ListCollaboratorRequest, metadata?: Metadata): Observable<ListCollaboratorResponse>;
82
- /** update collaborator for specified object */
83
- UpdateCollaborator(request: UpdateCollaboratorRequest, metadata?: Metadata): Observable<UpdateCollaboratorResponse>;
84
- /** delete collaborator for specified object */
85
- DeleteCollaborator(request: UpdateCollaboratorRequest, metadata?: Metadata): Observable<UpdateCollaboratorResponse>;
86
- }
@@ -1,110 +0,0 @@
1
- import { Metadata } from "@grpc/grpc-js";
2
- import { Observable } from "rxjs";
3
- import type { Empty } from "../google/protobuf/empty";
4
- import type { Changeset } from "../univer/changeset";
5
- import type { CollaMsg } from "../univer/colla_msg";
6
- import type { Error } from "../univer/constants/errors";
7
- import type { UniverType } from "../univer/constants/univer";
8
- export declare const protobufPackage = "universer.v1";
9
- /** more details: https://c3fgartrp2.feishu.cn/docx/OS47dk8BCo1ZeKxXiNvcDLuZn2g#PymGdupuyoYfvTxv1EBciV7in9b */
10
- export declare enum CombCmd {
11
- /** UNKNOWN_CMD - unknown cmd */
12
- UNKNOWN_CMD = 0,
13
- /** HELLO - call hello to get comb info, this is essential after you connect to the server */
14
- HELLO = 1,
15
- /** JOIN - call join to join couple of rooms */
16
- JOIN = 2,
17
- /** LEAVE - call leave to leave a room */
18
- LEAVE = 3,
19
- /** INGEST - call ingest to broadcast a message to a room */
20
- INGEST = 4,
21
- /** HEARTBEAT - call heartbeat to keep the connection alive */
22
- HEARTBEAT = 5,
23
- /**
24
- * RECV - RECV not a cmd actually, you never call a RECV cmd.
25
- * when you receive a message from comb(may be created by another user), the cmd will be RECV
26
- */
27
- RECV = 6,
28
- UNRECOGNIZED = -1
29
- }
30
- export declare enum CmdRspCode {
31
- UNKNOWN_CODE = 0,
32
- OK = 1,
33
- FAIL = 2,
34
- UNRECOGNIZED = -1
35
- }
36
- export interface ConnectResponse {
37
- error: Error | undefined;
38
- memberID: string;
39
- }
40
- export interface BroadcastRequest {
41
- roomID: string;
42
- message: string;
43
- }
44
- export interface NewChangesRequest {
45
- unitID: string;
46
- memberID: string;
47
- type: UniverType;
48
- changeset: Changeset | undefined;
49
- }
50
- export interface NewChangesResponse {
51
- error: Error | undefined;
52
- }
53
- export interface CombMsg {
54
- cmd: CombCmd;
55
- /** route key is used to route the message to the right room */
56
- routeKey: string;
57
- code: CmdRspCode;
58
- reason: string;
59
- traceID: string;
60
- rule: Rule | undefined;
61
- collaMsg?: CollaMsg | undefined;
62
- infoRsp?: CombInfoResponse | undefined;
63
- joinRsp?: CombJoinResponse | undefined;
64
- joinReq?: CombJoinRequest | undefined;
65
- leaveReq?: CombLeaveRequest | undefined;
66
- }
67
- export interface CombJoinInfo {
68
- roomID: string;
69
- /** extra args for joining the room */
70
- args: string;
71
- }
72
- export interface CombJoinRequest {
73
- rooms: CombJoinInfo[];
74
- }
75
- export interface CombJoinResponse {
76
- roomInfos: {
77
- [key: string]: CombJoinResponse_RoomInfo;
78
- };
79
- }
80
- export interface CombJoinResponse_RoomInfo {
81
- roomID: string;
82
- members: Member[];
83
- }
84
- export interface CombJoinResponse_RoomInfosEntry {
85
- key: string;
86
- value: CombJoinResponse_RoomInfo | undefined;
87
- }
88
- export interface CombInfoResponse {
89
- memberID: string;
90
- }
91
- export interface CombLeaveRequest {
92
- roomID: string;
93
- /** extra args for leaving the room */
94
- args: string;
95
- }
96
- export interface Member {
97
- memberID: string;
98
- name: string;
99
- avatar?: string | undefined;
100
- }
101
- export interface Rule {
102
- /** exclude member */
103
- excludeMember: string[];
104
- /** only member */
105
- onlyMember: string[];
106
- }
107
- export interface CombService {
108
- NewChanges(request: NewChangesRequest, metadata?: Metadata): Observable<NewChangesResponse>;
109
- Broadcast(request: BroadcastRequest, metadata?: Metadata): Observable<Empty>;
110
- }
@@ -1,137 +0,0 @@
1
- import type { Duration } from "../google/protobuf/duration";
2
- export declare const protobufPackage = "universer.v1";
3
- export interface Bootstrap {
4
- server: Server | undefined;
5
- data: Data | undefined;
6
- service: Service | undefined;
7
- admin: Admin[];
8
- extra: ExtraConf | undefined;
9
- auth: Auth | undefined;
10
- apiLimit: ApiLimit | undefined;
11
- }
12
- export interface Server {
13
- http: Server_HTTP | undefined;
14
- grpc: Server_GRPC | undefined;
15
- }
16
- export interface Server_HTTP {
17
- network: string;
18
- addr: string;
19
- timeout: Duration | undefined;
20
- }
21
- export interface Server_GRPC {
22
- network: string;
23
- addr: string;
24
- timeout: Duration | undefined;
25
- }
26
- export interface S3 {
27
- accessKeyID: string;
28
- accessKeySecret: string;
29
- region: string;
30
- endpoint: string;
31
- endpointPublic: string;
32
- usePathStyle: boolean;
33
- presignExpires: Duration | undefined;
34
- defaultBucket: string;
35
- }
36
- export interface Data {
37
- database: Data_Database | undefined;
38
- redis: Data_Redis | undefined;
39
- rabbitmq: Data_Rabbitmq | undefined;
40
- clickhouse: Data_Clickhouse | undefined;
41
- temporal: Data_Temporal | undefined;
42
- s3: S3 | undefined;
43
- }
44
- export interface Data_Database {
45
- driver: string;
46
- database: string;
47
- dsn: string;
48
- maxOpenConns: number;
49
- maxIdleConns: number;
50
- connMaxLifetime: number;
51
- }
52
- export interface Data_Redis {
53
- network: string;
54
- addr: string;
55
- readTimeout: Duration | undefined;
56
- writeTimeout: Duration | undefined;
57
- }
58
- export interface Data_Rabbitmq {
59
- addr: string;
60
- }
61
- export interface Data_Clickhouse {
62
- dsn: string;
63
- }
64
- export interface Data_Temporal {
65
- addr: string;
66
- namespace: string;
67
- workerTaskQueue: string;
68
- }
69
- export interface Service {
70
- apply: Service_RpcService | undefined;
71
- }
72
- export interface Service_RpcService {
73
- addr: string;
74
- network: string;
75
- timeout: Duration | undefined;
76
- }
77
- export interface Admin {
78
- user: string;
79
- password: string;
80
- }
81
- export interface ExtraConf {
82
- celldataMaxSize: number;
83
- }
84
- export interface LicenseArgs {
85
- maxUnits: number;
86
- maxMemberInRoom: number;
87
- concurrentUnits: number;
88
- maxImportSize: number;
89
- }
90
- export interface Config {
91
- distro: string;
92
- confDir: string;
93
- confName: string;
94
- }
95
- export interface Auth {
96
- enabled: boolean;
97
- oidc: Auth_OIDC | undefined;
98
- oauth2: Auth_Oauth2 | undefined;
99
- }
100
- export interface Auth_OIDC {
101
- issuer: string;
102
- clientID: string;
103
- clientSecret: string;
104
- redirectURL: string;
105
- cookieDomain: string;
106
- enabled: boolean;
107
- }
108
- export interface Auth_Oauth2 {
109
- clientID: string;
110
- clientSecret: string;
111
- redirectURL: string;
112
- cookieDomain: string;
113
- enabled: boolean;
114
- authURL: string;
115
- tokenURL: string;
116
- apiURL: string;
117
- scopes: string;
118
- openidPath: string;
119
- emailPath: string;
120
- namePath: string;
121
- avatarPath: string;
122
- }
123
- export interface ApiLimit {
124
- method: ApiLimit_TokenLimit | undefined;
125
- ip: ApiLimit_TokenLimit | undefined;
126
- perMethod: {
127
- [key: string]: ApiLimit_TokenLimit;
128
- };
129
- }
130
- export interface ApiLimit_TokenLimit {
131
- tokens: number;
132
- interval: Duration | undefined;
133
- }
134
- export interface ApiLimit_PerMethodEntry {
135
- key: string;
136
- value: ApiLimit_TokenLimit | undefined;
137
- }