@dailydotdev/schema 0.3.29 → 0.3.30
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/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/skirnir/skirnir_connect.cjs +1 -1
- package/dist/skirnir/skirnir_connect.d.cts +67 -3
- package/dist/skirnir/skirnir_connect.d.ts +67 -3
- package/dist/skirnir/skirnir_connect.js +1 -1
- package/dist/skirnir/skirnir_pb.cjs +1 -1
- package/dist/skirnir/skirnir_pb.d.cts +212 -1
- package/dist/skirnir/skirnir_pb.d.ts +212 -1
- package/dist/skirnir/skirnir_pb.js +1 -1
- package/package.json +1 -1
- package/dist/onnx-server/inference_connect.cjs +0 -1
- package/dist/onnx-server/inference_connect.d.cts +0 -54
- package/dist/onnx-server/inference_connect.d.ts +0 -54
- package/dist/onnx-server/inference_connect.js +0 -1
- package/dist/onnx-server/inference_pb.cjs +0 -1
- package/dist/onnx-server/inference_pb.d.cts +0 -318
- package/dist/onnx-server/inference_pb.d.ts +0 -318
- package/dist/onnx-server/inference_pb.js +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -39,7 +39,7 @@ export { BoolFilter, Filter, Operation, Order, Quantifier, SearchRequest, Search
|
|
|
39
39
|
export { Credits } from './njord/transactions_connect.cjs';
|
|
40
40
|
export { BalanceChange, Currency, EntityType, FeeResult, GetBalanceRequest, GetBalanceResponse, Transfer, TransferFee, TransferParticipant, TransferRequest, TransferResponse, TransferResult, TransferStatus, TransferType, UserAccount } from './njord/transactions_pb.cjs';
|
|
41
41
|
export { SkirnirService } from './skirnir/skirnir_connect.cjs';
|
|
42
|
-
export { CloseConversationRequest, CloseConversationResponse, DeleteUserRequest, DeleteUserResponse, EnsureUsersRequest, EnsureUsersResponse, IssueTokenRequest, IssueTokenResponse, OpenConversationRequest, OpenConversationResponse, SetUserBannedRequest, SetUserBannedResponse } from './skirnir/skirnir_pb.cjs';
|
|
42
|
+
export { CloseConversationRequest, CloseConversationResponse, CreateRoomRequest, CreateRoomResponse, DeleteUserRequest, DeleteUserResponse, DestroyRoomRequest, DestroyRoomResponse, EnsureUsersRequest, EnsureUsersResponse, GetRoomOccupantCountRequest, GetRoomOccupantCountResponse, IssueTokenRequest, IssueTokenResponse, OpenConversationRequest, OpenConversationResponse, RoomAffiliation, SetRoomAffiliationRequest, SetRoomAffiliationResponse, SetUserBannedRequest, SetUserBannedResponse } from './skirnir/skirnir_pb.cjs';
|
|
43
43
|
export { Action, Event, GetUserEngagedPostIdsRequest, GetUserEngagedPostIdsResponse, GetUserEventRequest, GetUserEventResponse, UserEngagementProfile, UserPostEngagementCounts } from './snotra/engagement/engagement_pb.cjs';
|
|
44
44
|
export { Error } from './util/error_pb.cjs';
|
|
45
45
|
import '@bufbuild/protobuf';
|
package/dist/index.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ export { BoolFilter, Filter, Operation, Order, Quantifier, SearchRequest, Search
|
|
|
39
39
|
export { Credits } from './njord/transactions_connect.js';
|
|
40
40
|
export { BalanceChange, Currency, EntityType, FeeResult, GetBalanceRequest, GetBalanceResponse, Transfer, TransferFee, TransferParticipant, TransferRequest, TransferResponse, TransferResult, TransferStatus, TransferType, UserAccount } from './njord/transactions_pb.js';
|
|
41
41
|
export { SkirnirService } from './skirnir/skirnir_connect.js';
|
|
42
|
-
export { CloseConversationRequest, CloseConversationResponse, DeleteUserRequest, DeleteUserResponse, EnsureUsersRequest, EnsureUsersResponse, IssueTokenRequest, IssueTokenResponse, OpenConversationRequest, OpenConversationResponse, SetUserBannedRequest, SetUserBannedResponse } from './skirnir/skirnir_pb.js';
|
|
42
|
+
export { CloseConversationRequest, CloseConversationResponse, CreateRoomRequest, CreateRoomResponse, DeleteUserRequest, DeleteUserResponse, DestroyRoomRequest, DestroyRoomResponse, EnsureUsersRequest, EnsureUsersResponse, GetRoomOccupantCountRequest, GetRoomOccupantCountResponse, IssueTokenRequest, IssueTokenResponse, OpenConversationRequest, OpenConversationResponse, RoomAffiliation, SetRoomAffiliationRequest, SetRoomAffiliationResponse, SetUserBannedRequest, SetUserBannedResponse } from './skirnir/skirnir_pb.js';
|
|
43
43
|
export { Action, Event, GetUserEngagedPostIdsRequest, GetUserEngagedPostIdsResponse, GetUserEventRequest, GetUserEventResponse, UserEngagementProfile, UserPostEngagementCounts } from './snotra/engagement/engagement_pb.js';
|
|
44
44
|
export { Error } from './util/error_pb.js';
|
|
45
45
|
import '@bufbuild/protobuf';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e,n=Object.defineProperty,
|
|
1
|
+
var e,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,t=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,r={};((e,o)=>{for(var t in o)n(e,t,{get:o[t],enumerable:!0})})(r,{SkirnirService:()=>d}),module.exports=(e=r,((e,r,i,a)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let d of t(r))s.call(e,d)||d===i||n(e,d,{get:()=>r[d],enumerable:!(a=o(r,d))||a.enumerable});return e})(n({},"__esModule",{value:!0}),e));var i=require("./skirnir_pb.cjs"),a=require("@bufbuild/protobuf");const d={typeName:"skirnir.SkirnirService",methods:{ensureUsers:{name:"EnsureUsers",I:i.EnsureUsersRequest,O:i.EnsureUsersResponse,kind:a.MethodKind.Unary},openConversation:{name:"OpenConversation",I:i.OpenConversationRequest,O:i.OpenConversationResponse,kind:a.MethodKind.Unary},closeConversation:{name:"CloseConversation",I:i.CloseConversationRequest,O:i.CloseConversationResponse,kind:a.MethodKind.Unary},issueToken:{name:"IssueToken",I:i.IssueTokenRequest,O:i.IssueTokenResponse,kind:a.MethodKind.Unary},setUserBanned:{name:"SetUserBanned",I:i.SetUserBannedRequest,O:i.SetUserBannedResponse,kind:a.MethodKind.Unary},deleteUser:{name:"DeleteUser",I:i.DeleteUserRequest,O:i.DeleteUserResponse,kind:a.MethodKind.Unary},createRoom:{name:"CreateRoom",I:i.CreateRoomRequest,O:i.CreateRoomResponse,kind:a.MethodKind.Unary},destroyRoom:{name:"DestroyRoom",I:i.DestroyRoomRequest,O:i.DestroyRoomResponse,kind:a.MethodKind.Unary},setRoomAffiliation:{name:"SetRoomAffiliation",I:i.SetRoomAffiliationRequest,O:i.SetRoomAffiliationResponse,kind:a.MethodKind.Unary},getRoomOccupantCount:{name:"GetRoomOccupantCount",I:i.GetRoomOccupantCountRequest,O:i.GetRoomOccupantCountResponse,kind:a.MethodKind.Unary}}};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EnsureUsersRequest, EnsureUsersResponse, OpenConversationRequest, OpenConversationResponse, CloseConversationRequest, CloseConversationResponse, IssueTokenRequest, IssueTokenResponse, SetUserBannedRequest, SetUserBannedResponse, DeleteUserRequest, DeleteUserResponse } from './skirnir_pb.cjs';
|
|
1
|
+
import { EnsureUsersRequest, EnsureUsersResponse, OpenConversationRequest, OpenConversationResponse, CloseConversationRequest, CloseConversationResponse, IssueTokenRequest, IssueTokenResponse, SetUserBannedRequest, SetUserBannedResponse, DeleteUserRequest, DeleteUserResponse, CreateRoomRequest, CreateRoomResponse, DestroyRoomRequest, DestroyRoomResponse, SetRoomAffiliationRequest, SetRoomAffiliationResponse, GetRoomOccupantCountRequest, GetRoomOccupantCountResponse } from './skirnir_pb.cjs';
|
|
2
2
|
import '@bufbuild/protobuf';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -14,9 +14,19 @@ import '@bufbuild/protobuf';
|
|
|
14
14
|
* use the JIDs returned here rather than building their own; clients decode
|
|
15
15
|
* a sender's user id the same way.
|
|
16
16
|
*
|
|
17
|
+
* Rooms: group chat uses XEP-0045 multi-user chat rooms on the conference
|
|
18
|
+
* service. The caller names a room: room_id becomes the local part of its
|
|
19
|
+
* JID (<room_id>@conference.<host>). Ids are lowercase ASCII letters, digits
|
|
20
|
+
* and "-" (a uuid qualifies), so unlike user ids they need no case encoding.
|
|
21
|
+
* Only this service creates rooms (the ejabberd config refuses clients), and
|
|
22
|
+
* the admin account owns every room, so occupants can't reconfigure or
|
|
23
|
+
* destroy one. Clients join a room with the JID returned here, authenticated
|
|
24
|
+
* by the same token IssueToken mints for direct messages.
|
|
25
|
+
*
|
|
17
26
|
* Errors: INVALID_ARGUMENT for malformed requests (empty or invalid ids, a
|
|
18
|
-
* user paired with themselves, too many ids),
|
|
19
|
-
*
|
|
27
|
+
* user paired with themselves, too many ids), NOT_FOUND for a room that
|
|
28
|
+
* doesn't exist where one is required, UNAVAILABLE when ejabberd could not
|
|
29
|
+
* be reached and the call is safe to retry, INTERNAL for failures a retry
|
|
20
30
|
* will not fix. Every mutating RPC is idempotent.
|
|
21
31
|
*
|
|
22
32
|
* @generated from service skirnir.SkirnirService
|
|
@@ -105,6 +115,60 @@ declare const SkirnirService: {
|
|
|
105
115
|
readonly O: typeof DeleteUserResponse;
|
|
106
116
|
readonly kind: any;
|
|
107
117
|
};
|
|
118
|
+
/**
|
|
119
|
+
* Creates a room. Whatever the request says, every room has occupants'
|
|
120
|
+
* JIDs visible to each other (so clients can decode who sent a message),
|
|
121
|
+
* private messages between occupants off (direct messages go through
|
|
122
|
+
* OpenConversation and its request rules), user invites and subject
|
|
123
|
+
* changes off, and no listing on the service. Creating a room that exists
|
|
124
|
+
* is a no-op that leaves its options as they are.
|
|
125
|
+
*
|
|
126
|
+
* @generated from rpc skirnir.SkirnirService.CreateRoom
|
|
127
|
+
*/
|
|
128
|
+
readonly createRoom: {
|
|
129
|
+
readonly name: "CreateRoom";
|
|
130
|
+
readonly I: typeof CreateRoomRequest;
|
|
131
|
+
readonly O: typeof CreateRoomResponse;
|
|
132
|
+
readonly kind: any;
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* Destroys a room, ending every occupant's session in it and deleting its
|
|
136
|
+
* archive. Destroying a missing room is a no-op.
|
|
137
|
+
*
|
|
138
|
+
* @generated from rpc skirnir.SkirnirService.DestroyRoom
|
|
139
|
+
*/
|
|
140
|
+
readonly destroyRoom: {
|
|
141
|
+
readonly name: "DestroyRoom";
|
|
142
|
+
readonly I: typeof DestroyRoomRequest;
|
|
143
|
+
readonly O: typeof DestroyRoomResponse;
|
|
144
|
+
readonly kind: any;
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* Sets a user's standing in a room: MEMBER lets them into a members-only
|
|
148
|
+
* room, ADMIN also lets them kick and ban occupants, OUTCAST bans them
|
|
149
|
+
* from it, NONE removes whatever they had. Registers the account if
|
|
150
|
+
* missing. NOT_FOUND when the room doesn't exist.
|
|
151
|
+
*
|
|
152
|
+
* @generated from rpc skirnir.SkirnirService.SetRoomAffiliation
|
|
153
|
+
*/
|
|
154
|
+
readonly setRoomAffiliation: {
|
|
155
|
+
readonly name: "SetRoomAffiliation";
|
|
156
|
+
readonly I: typeof SetRoomAffiliationRequest;
|
|
157
|
+
readonly O: typeof SetRoomAffiliationResponse;
|
|
158
|
+
readonly kind: any;
|
|
159
|
+
};
|
|
160
|
+
/**
|
|
161
|
+
* Number of users currently in the room. NOT_FOUND when the room doesn't
|
|
162
|
+
* exist.
|
|
163
|
+
*
|
|
164
|
+
* @generated from rpc skirnir.SkirnirService.GetRoomOccupantCount
|
|
165
|
+
*/
|
|
166
|
+
readonly getRoomOccupantCount: {
|
|
167
|
+
readonly name: "GetRoomOccupantCount";
|
|
168
|
+
readonly I: typeof GetRoomOccupantCountRequest;
|
|
169
|
+
readonly O: typeof GetRoomOccupantCountResponse;
|
|
170
|
+
readonly kind: any;
|
|
171
|
+
};
|
|
108
172
|
};
|
|
109
173
|
};
|
|
110
174
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EnsureUsersRequest, EnsureUsersResponse, OpenConversationRequest, OpenConversationResponse, CloseConversationRequest, CloseConversationResponse, IssueTokenRequest, IssueTokenResponse, SetUserBannedRequest, SetUserBannedResponse, DeleteUserRequest, DeleteUserResponse } from './skirnir_pb.js';
|
|
1
|
+
import { EnsureUsersRequest, EnsureUsersResponse, OpenConversationRequest, OpenConversationResponse, CloseConversationRequest, CloseConversationResponse, IssueTokenRequest, IssueTokenResponse, SetUserBannedRequest, SetUserBannedResponse, DeleteUserRequest, DeleteUserResponse, CreateRoomRequest, CreateRoomResponse, DestroyRoomRequest, DestroyRoomResponse, SetRoomAffiliationRequest, SetRoomAffiliationResponse, GetRoomOccupantCountRequest, GetRoomOccupantCountResponse } from './skirnir_pb.js';
|
|
2
2
|
import '@bufbuild/protobuf';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -14,9 +14,19 @@ import '@bufbuild/protobuf';
|
|
|
14
14
|
* use the JIDs returned here rather than building their own; clients decode
|
|
15
15
|
* a sender's user id the same way.
|
|
16
16
|
*
|
|
17
|
+
* Rooms: group chat uses XEP-0045 multi-user chat rooms on the conference
|
|
18
|
+
* service. The caller names a room: room_id becomes the local part of its
|
|
19
|
+
* JID (<room_id>@conference.<host>). Ids are lowercase ASCII letters, digits
|
|
20
|
+
* and "-" (a uuid qualifies), so unlike user ids they need no case encoding.
|
|
21
|
+
* Only this service creates rooms (the ejabberd config refuses clients), and
|
|
22
|
+
* the admin account owns every room, so occupants can't reconfigure or
|
|
23
|
+
* destroy one. Clients join a room with the JID returned here, authenticated
|
|
24
|
+
* by the same token IssueToken mints for direct messages.
|
|
25
|
+
*
|
|
17
26
|
* Errors: INVALID_ARGUMENT for malformed requests (empty or invalid ids, a
|
|
18
|
-
* user paired with themselves, too many ids),
|
|
19
|
-
*
|
|
27
|
+
* user paired with themselves, too many ids), NOT_FOUND for a room that
|
|
28
|
+
* doesn't exist where one is required, UNAVAILABLE when ejabberd could not
|
|
29
|
+
* be reached and the call is safe to retry, INTERNAL for failures a retry
|
|
20
30
|
* will not fix. Every mutating RPC is idempotent.
|
|
21
31
|
*
|
|
22
32
|
* @generated from service skirnir.SkirnirService
|
|
@@ -105,6 +115,60 @@ declare const SkirnirService: {
|
|
|
105
115
|
readonly O: typeof DeleteUserResponse;
|
|
106
116
|
readonly kind: any;
|
|
107
117
|
};
|
|
118
|
+
/**
|
|
119
|
+
* Creates a room. Whatever the request says, every room has occupants'
|
|
120
|
+
* JIDs visible to each other (so clients can decode who sent a message),
|
|
121
|
+
* private messages between occupants off (direct messages go through
|
|
122
|
+
* OpenConversation and its request rules), user invites and subject
|
|
123
|
+
* changes off, and no listing on the service. Creating a room that exists
|
|
124
|
+
* is a no-op that leaves its options as they are.
|
|
125
|
+
*
|
|
126
|
+
* @generated from rpc skirnir.SkirnirService.CreateRoom
|
|
127
|
+
*/
|
|
128
|
+
readonly createRoom: {
|
|
129
|
+
readonly name: "CreateRoom";
|
|
130
|
+
readonly I: typeof CreateRoomRequest;
|
|
131
|
+
readonly O: typeof CreateRoomResponse;
|
|
132
|
+
readonly kind: any;
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* Destroys a room, ending every occupant's session in it and deleting its
|
|
136
|
+
* archive. Destroying a missing room is a no-op.
|
|
137
|
+
*
|
|
138
|
+
* @generated from rpc skirnir.SkirnirService.DestroyRoom
|
|
139
|
+
*/
|
|
140
|
+
readonly destroyRoom: {
|
|
141
|
+
readonly name: "DestroyRoom";
|
|
142
|
+
readonly I: typeof DestroyRoomRequest;
|
|
143
|
+
readonly O: typeof DestroyRoomResponse;
|
|
144
|
+
readonly kind: any;
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* Sets a user's standing in a room: MEMBER lets them into a members-only
|
|
148
|
+
* room, ADMIN also lets them kick and ban occupants, OUTCAST bans them
|
|
149
|
+
* from it, NONE removes whatever they had. Registers the account if
|
|
150
|
+
* missing. NOT_FOUND when the room doesn't exist.
|
|
151
|
+
*
|
|
152
|
+
* @generated from rpc skirnir.SkirnirService.SetRoomAffiliation
|
|
153
|
+
*/
|
|
154
|
+
readonly setRoomAffiliation: {
|
|
155
|
+
readonly name: "SetRoomAffiliation";
|
|
156
|
+
readonly I: typeof SetRoomAffiliationRequest;
|
|
157
|
+
readonly O: typeof SetRoomAffiliationResponse;
|
|
158
|
+
readonly kind: any;
|
|
159
|
+
};
|
|
160
|
+
/**
|
|
161
|
+
* Number of users currently in the room. NOT_FOUND when the room doesn't
|
|
162
|
+
* exist.
|
|
163
|
+
*
|
|
164
|
+
* @generated from rpc skirnir.SkirnirService.GetRoomOccupantCount
|
|
165
|
+
*/
|
|
166
|
+
readonly getRoomOccupantCount: {
|
|
167
|
+
readonly name: "GetRoomOccupantCount";
|
|
168
|
+
readonly I: typeof GetRoomOccupantCountRequest;
|
|
169
|
+
readonly O: typeof GetRoomOccupantCountResponse;
|
|
170
|
+
readonly kind: any;
|
|
171
|
+
};
|
|
108
172
|
};
|
|
109
173
|
};
|
|
110
174
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{CloseConversationRequest as
|
|
1
|
+
import{CloseConversationRequest as n,CloseConversationResponse as e,CreateRoomRequest as o,CreateRoomResponse as r,DeleteUserRequest as a,DeleteUserResponse as i,DestroyRoomRequest as t,DestroyRoomResponse as s,EnsureUsersRequest as m,EnsureUsersResponse as d,GetRoomOccupantCountRequest as U,GetRoomOccupantCountResponse as k,IssueTokenRequest as y,IssueTokenResponse as O,OpenConversationRequest as u,OpenConversationResponse as I,SetRoomAffiliationRequest as p,SetRoomAffiliationResponse as c,SetUserBannedRequest as f,SetUserBannedResponse as C}from"./skirnir_pb.ts";import{MethodKind as R}from"@bufbuild/protobuf";const l={typeName:"skirnir.SkirnirService",methods:{ensureUsers:{name:"EnsureUsers",I:m,O:d,kind:R.Unary},openConversation:{name:"OpenConversation",I:u,O:I,kind:R.Unary},closeConversation:{name:"CloseConversation",I:n,O:e,kind:R.Unary},issueToken:{name:"IssueToken",I:y,O:O,kind:R.Unary},setUserBanned:{name:"SetUserBanned",I:f,O:C,kind:R.Unary},deleteUser:{name:"DeleteUser",I:a,O:i,kind:R.Unary},createRoom:{name:"CreateRoom",I:o,O:r,kind:R.Unary},destroyRoom:{name:"DestroyRoom",I:t,O:s,kind:R.Unary},setRoomAffiliation:{name:"SetRoomAffiliation",I:p,O:c,kind:R.Unary},getRoomOccupantCount:{name:"GetRoomOccupantCount",I:U,O:k,kind:R.Unary}}};export{l as SkirnirService};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var t,e=Object.defineProperty,r=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,i={};((t,r)=>{for(var s in r)e(t,s,{get:r[s],enumerable:!0})})(i,{CloseConversationRequest:()=>m,CloseConversationResponse:()=>p,DeleteUserRequest:()=>y,DeleteUserResponse:()=>g,EnsureUsersRequest:()=>a,EnsureUsersResponse:()=>u,IssueTokenRequest:()=>f,IssueTokenResponse:()=>d,OpenConversationRequest:()=>c,OpenConversationResponse:()=>l,SetUserBannedRequest:()=>w,SetUserBannedResponse:()=>J}),module.exports=(t=i,((t,i,o,a)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let u of s(i))n.call(t,u)||u===o||e(t,u,{get:()=>i[u],enumerable:!(a=r(i,u))||a.enumerable});return t})(e({},"__esModule",{value:!0}),t));var o=require("@bufbuild/protobuf");class a extends o.Message{userIds=[];constructor(t){super(),o.proto3.util.initPartial(t,this)}static runtime=o.proto3;static typeName="skirnir.EnsureUsersRequest";static fields=o.proto3.util.newFieldList((()=>[{no:1,name:"user_ids",kind:"scalar",T:9,repeated:!0}]));static fromBinary(t,e){return(new a).fromBinary(t,e)}static fromJson(t,e){return(new a).fromJson(t,e)}static fromJsonString(t,e){return(new a).fromJsonString(t,e)}static equals(t,e){return o.proto3.util.equals(a,t,e)}}class u extends o.Message{createdUserIds=[];constructor(t){super(),o.proto3.util.initPartial(t,this)}static runtime=o.proto3;static typeName="skirnir.EnsureUsersResponse";static fields=o.proto3.util.newFieldList((()=>[{no:1,name:"created_user_ids",kind:"scalar",T:9,repeated:!0}]));static fromBinary(t,e){return(new u).fromBinary(t,e)}static fromJson(t,e){return(new u).fromJson(t,e)}static fromJsonString(t,e){return(new u).fromJsonString(t,e)}static equals(t,e){return o.proto3.util.equals(u,t,e)}}class c extends o.Message{userId="";peerId="";constructor(t){super(),o.proto3.util.initPartial(t,this)}static runtime=o.proto3;static typeName="skirnir.OpenConversationRequest";static fields=o.proto3.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"peer_id",kind:"scalar",T:9}]));static fromBinary(t,e){return(new c).fromBinary(t,e)}static fromJson(t,e){return(new c).fromJson(t,e)}static fromJsonString(t,e){return(new c).fromJsonString(t,e)}static equals(t,e){return o.proto3.util.equals(c,t,e)}}class l extends o.Message{jid="";peerJid="";constructor(t){super(),o.proto3.util.initPartial(t,this)}static runtime=o.proto3;static typeName="skirnir.OpenConversationResponse";static fields=o.proto3.util.newFieldList((()=>[{no:1,name:"jid",kind:"scalar",T:9},{no:2,name:"peer_jid",kind:"scalar",T:9}]));static fromBinary(t,e){return(new l).fromBinary(t,e)}static fromJson(t,e){return(new l).fromJson(t,e)}static fromJsonString(t,e){return(new l).fromJsonString(t,e)}static equals(t,e){return o.proto3.util.equals(l,t,e)}}class m extends o.Message{userId="";peerId="";constructor(t){super(),o.proto3.util.initPartial(t,this)}static runtime=o.proto3;static typeName="skirnir.CloseConversationRequest";static fields=o.proto3.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"peer_id",kind:"scalar",T:9}]));static fromBinary(t,e){return(new m).fromBinary(t,e)}static fromJson(t,e){return(new m).fromJson(t,e)}static fromJsonString(t,e){return(new m).fromJsonString(t,e)}static equals(t,e){return o.proto3.util.equals(m,t,e)}}class p extends o.Message{constructor(t){super(),o.proto3.util.initPartial(t,this)}static runtime=o.proto3;static typeName="skirnir.CloseConversationResponse";static fields=o.proto3.util.newFieldList((()=>[]));static fromBinary(t,e){return(new p).fromBinary(t,e)}static fromJson(t,e){return(new p).fromJson(t,e)}static fromJsonString(t,e){return(new p).fromJsonString(t,e)}static equals(t,e){return o.proto3.util.equals(p,t,e)}}class f extends o.Message{userId="";ttlSeconds=0;constructor(t){super(),o.proto3.util.initPartial(t,this)}static runtime=o.proto3;static typeName="skirnir.IssueTokenRequest";static fields=o.proto3.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"ttl_seconds",kind:"scalar",T:13}]));static fromBinary(t,e){return(new f).fromBinary(t,e)}static fromJson(t,e){return(new f).fromJson(t,e)}static fromJsonString(t,e){return(new f).fromJsonString(t,e)}static equals(t,e){return o.proto3.util.equals(f,t,e)}}class d extends o.Message{token="";jid="";expiresAt=o.protoInt64.zero;constructor(t){super(),o.proto3.util.initPartial(t,this)}static runtime=o.proto3;static typeName="skirnir.IssueTokenResponse";static fields=o.proto3.util.newFieldList((()=>[{no:1,name:"token",kind:"scalar",T:9},{no:2,name:"jid",kind:"scalar",T:9},{no:3,name:"expires_at",kind:"scalar",T:3}]));static fromBinary(t,e){return(new d).fromBinary(t,e)}static fromJson(t,e){return(new d).fromJson(t,e)}static fromJsonString(t,e){return(new d).fromJsonString(t,e)}static equals(t,e){return o.proto3.util.equals(d,t,e)}}class w extends o.Message{userId="";banned=!1;constructor(t){super(),o.proto3.util.initPartial(t,this)}static runtime=o.proto3;static typeName="skirnir.SetUserBannedRequest";static fields=o.proto3.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"banned",kind:"scalar",T:8}]));static fromBinary(t,e){return(new w).fromBinary(t,e)}static fromJson(t,e){return(new w).fromJson(t,e)}static fromJsonString(t,e){return(new w).fromJsonString(t,e)}static equals(t,e){return o.proto3.util.equals(w,t,e)}}class J extends o.Message{constructor(t){super(),o.proto3.util.initPartial(t,this)}static runtime=o.proto3;static typeName="skirnir.SetUserBannedResponse";static fields=o.proto3.util.newFieldList((()=>[]));static fromBinary(t,e){return(new J).fromBinary(t,e)}static fromJson(t,e){return(new J).fromJson(t,e)}static fromJsonString(t,e){return(new J).fromJsonString(t,e)}static equals(t,e){return o.proto3.util.equals(J,t,e)}}class y extends o.Message{userId="";constructor(t){super(),o.proto3.util.initPartial(t,this)}static runtime=o.proto3;static typeName="skirnir.DeleteUserRequest";static fields=o.proto3.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9}]));static fromBinary(t,e){return(new y).fromBinary(t,e)}static fromJson(t,e){return(new y).fromJson(t,e)}static fromJsonString(t,e){return(new y).fromJsonString(t,e)}static equals(t,e){return o.proto3.util.equals(y,t,e)}}class g extends o.Message{constructor(t){super(),o.proto3.util.initPartial(t,this)}static runtime=o.proto3;static typeName="skirnir.DeleteUserResponse";static fields=o.proto3.util.newFieldList((()=>[]));static fromBinary(t,e){return(new g).fromBinary(t,e)}static fromJson(t,e){return(new g).fromJson(t,e)}static fromJsonString(t,e){return(new g).fromJsonString(t,e)}static equals(t,e){return o.proto3.util.equals(g,t,e)}}
|
|
1
|
+
var t,r=Object.defineProperty,e=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,o={};((t,e)=>{for(var s in e)r(t,s,{get:e[s],enumerable:!0})})(o,{CloseConversationRequest:()=>p,CloseConversationResponse:()=>f,CreateRoomRequest:()=>q,CreateRoomResponse:()=>k,DeleteUserRequest:()=>R,DeleteUserResponse:()=>g,DestroyRoomRequest:()=>S,DestroyRoomResponse:()=>B,EnsureUsersRequest:()=>u,EnsureUsersResponse:()=>c,GetRoomOccupantCountRequest:()=>N,GetRoomOccupantCountResponse:()=>O,IssueTokenRequest:()=>d,IssueTokenResponse:()=>w,OpenConversationRequest:()=>l,OpenConversationResponse:()=>m,RoomAffiliation:()=>a,SetRoomAffiliationRequest:()=>T,SetRoomAffiliationResponse:()=>I,SetUserBannedRequest:()=>J,SetUserBannedResponse:()=>y}),module.exports=(t=o,((t,o,i,a)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let u of s(o))n.call(t,u)||u===i||r(t,u,{get:()=>o[u],enumerable:!(a=e(o,u))||a.enumerable});return t})(r({},"__esModule",{value:!0}),t));var i=require("@bufbuild/protobuf"),a=(t=>(t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.NONE=1]="NONE",t[t.MEMBER=2]="MEMBER",t[t.ADMIN=3]="ADMIN",t[t.OUTCAST=4]="OUTCAST",t))(a||{});i.proto3.util.setEnumType(a,"skirnir.RoomAffiliation",[{no:0,name:"ROOM_AFFILIATION_UNSPECIFIED"},{no:1,name:"ROOM_AFFILIATION_NONE"},{no:2,name:"ROOM_AFFILIATION_MEMBER"},{no:3,name:"ROOM_AFFILIATION_ADMIN"},{no:4,name:"ROOM_AFFILIATION_OUTCAST"}]);class u extends i.Message{userIds=[];constructor(t){super(),i.proto3.util.initPartial(t,this)}static runtime=i.proto3;static typeName="skirnir.EnsureUsersRequest";static fields=i.proto3.util.newFieldList((()=>[{no:1,name:"user_ids",kind:"scalar",T:9,repeated:!0}]));static fromBinary(t,r){return(new u).fromBinary(t,r)}static fromJson(t,r){return(new u).fromJson(t,r)}static fromJsonString(t,r){return(new u).fromJsonString(t,r)}static equals(t,r){return i.proto3.util.equals(u,t,r)}}class c extends i.Message{createdUserIds=[];constructor(t){super(),i.proto3.util.initPartial(t,this)}static runtime=i.proto3;static typeName="skirnir.EnsureUsersResponse";static fields=i.proto3.util.newFieldList((()=>[{no:1,name:"created_user_ids",kind:"scalar",T:9,repeated:!0}]));static fromBinary(t,r){return(new c).fromBinary(t,r)}static fromJson(t,r){return(new c).fromJson(t,r)}static fromJsonString(t,r){return(new c).fromJsonString(t,r)}static equals(t,r){return i.proto3.util.equals(c,t,r)}}class l extends i.Message{userId="";peerId="";constructor(t){super(),i.proto3.util.initPartial(t,this)}static runtime=i.proto3;static typeName="skirnir.OpenConversationRequest";static fields=i.proto3.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"peer_id",kind:"scalar",T:9}]));static fromBinary(t,r){return(new l).fromBinary(t,r)}static fromJson(t,r){return(new l).fromJson(t,r)}static fromJsonString(t,r){return(new l).fromJsonString(t,r)}static equals(t,r){return i.proto3.util.equals(l,t,r)}}class m extends i.Message{jid="";peerJid="";constructor(t){super(),i.proto3.util.initPartial(t,this)}static runtime=i.proto3;static typeName="skirnir.OpenConversationResponse";static fields=i.proto3.util.newFieldList((()=>[{no:1,name:"jid",kind:"scalar",T:9},{no:2,name:"peer_jid",kind:"scalar",T:9}]));static fromBinary(t,r){return(new m).fromBinary(t,r)}static fromJson(t,r){return(new m).fromJson(t,r)}static fromJsonString(t,r){return(new m).fromJsonString(t,r)}static equals(t,r){return i.proto3.util.equals(m,t,r)}}class p extends i.Message{userId="";peerId="";constructor(t){super(),i.proto3.util.initPartial(t,this)}static runtime=i.proto3;static typeName="skirnir.CloseConversationRequest";static fields=i.proto3.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"peer_id",kind:"scalar",T:9}]));static fromBinary(t,r){return(new p).fromBinary(t,r)}static fromJson(t,r){return(new p).fromJson(t,r)}static fromJsonString(t,r){return(new p).fromJsonString(t,r)}static equals(t,r){return i.proto3.util.equals(p,t,r)}}class f extends i.Message{constructor(t){super(),i.proto3.util.initPartial(t,this)}static runtime=i.proto3;static typeName="skirnir.CloseConversationResponse";static fields=i.proto3.util.newFieldList((()=>[]));static fromBinary(t,r){return(new f).fromBinary(t,r)}static fromJson(t,r){return(new f).fromJson(t,r)}static fromJsonString(t,r){return(new f).fromJsonString(t,r)}static equals(t,r){return i.proto3.util.equals(f,t,r)}}class d extends i.Message{userId="";ttlSeconds=0;constructor(t){super(),i.proto3.util.initPartial(t,this)}static runtime=i.proto3;static typeName="skirnir.IssueTokenRequest";static fields=i.proto3.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"ttl_seconds",kind:"scalar",T:13}]));static fromBinary(t,r){return(new d).fromBinary(t,r)}static fromJson(t,r){return(new d).fromJson(t,r)}static fromJsonString(t,r){return(new d).fromJsonString(t,r)}static equals(t,r){return i.proto3.util.equals(d,t,r)}}class w extends i.Message{token="";jid="";expiresAt=i.protoInt64.zero;constructor(t){super(),i.proto3.util.initPartial(t,this)}static runtime=i.proto3;static typeName="skirnir.IssueTokenResponse";static fields=i.proto3.util.newFieldList((()=>[{no:1,name:"token",kind:"scalar",T:9},{no:2,name:"jid",kind:"scalar",T:9},{no:3,name:"expires_at",kind:"scalar",T:3}]));static fromBinary(t,r){return(new w).fromBinary(t,r)}static fromJson(t,r){return(new w).fromJson(t,r)}static fromJsonString(t,r){return(new w).fromJsonString(t,r)}static equals(t,r){return i.proto3.util.equals(w,t,r)}}class J extends i.Message{userId="";banned=!1;constructor(t){super(),i.proto3.util.initPartial(t,this)}static runtime=i.proto3;static typeName="skirnir.SetUserBannedRequest";static fields=i.proto3.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9},{no:2,name:"banned",kind:"scalar",T:8}]));static fromBinary(t,r){return(new J).fromBinary(t,r)}static fromJson(t,r){return(new J).fromJson(t,r)}static fromJsonString(t,r){return(new J).fromJsonString(t,r)}static equals(t,r){return i.proto3.util.equals(J,t,r)}}class y extends i.Message{constructor(t){super(),i.proto3.util.initPartial(t,this)}static runtime=i.proto3;static typeName="skirnir.SetUserBannedResponse";static fields=i.proto3.util.newFieldList((()=>[]));static fromBinary(t,r){return(new y).fromBinary(t,r)}static fromJson(t,r){return(new y).fromJson(t,r)}static fromJsonString(t,r){return(new y).fromJsonString(t,r)}static equals(t,r){return i.proto3.util.equals(y,t,r)}}class R extends i.Message{userId="";constructor(t){super(),i.proto3.util.initPartial(t,this)}static runtime=i.proto3;static typeName="skirnir.DeleteUserRequest";static fields=i.proto3.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9}]));static fromBinary(t,r){return(new R).fromBinary(t,r)}static fromJson(t,r){return(new R).fromJson(t,r)}static fromJsonString(t,r){return(new R).fromJsonString(t,r)}static equals(t,r){return i.proto3.util.equals(R,t,r)}}class g extends i.Message{constructor(t){super(),i.proto3.util.initPartial(t,this)}static runtime=i.proto3;static typeName="skirnir.DeleteUserResponse";static fields=i.proto3.util.newFieldList((()=>[]));static fromBinary(t,r){return(new g).fromBinary(t,r)}static fromJson(t,r){return(new g).fromJson(t,r)}static fromJsonString(t,r){return(new g).fromJsonString(t,r)}static equals(t,r){return i.proto3.util.equals(g,t,r)}}class q extends i.Message{roomId="";title="";persistent=!1;membersOnly=!1;archive=!1;maxUsers=0;broadcastPresence=!1;constructor(t){super(),i.proto3.util.initPartial(t,this)}static runtime=i.proto3;static typeName="skirnir.CreateRoomRequest";static fields=i.proto3.util.newFieldList((()=>[{no:1,name:"room_id",kind:"scalar",T:9},{no:2,name:"title",kind:"scalar",T:9},{no:3,name:"persistent",kind:"scalar",T:8},{no:4,name:"members_only",kind:"scalar",T:8},{no:5,name:"archive",kind:"scalar",T:8},{no:6,name:"max_users",kind:"scalar",T:13},{no:7,name:"broadcast_presence",kind:"scalar",T:8}]));static fromBinary(t,r){return(new q).fromBinary(t,r)}static fromJson(t,r){return(new q).fromJson(t,r)}static fromJsonString(t,r){return(new q).fromJsonString(t,r)}static equals(t,r){return i.proto3.util.equals(q,t,r)}}class k extends i.Message{roomJid="";constructor(t){super(),i.proto3.util.initPartial(t,this)}static runtime=i.proto3;static typeName="skirnir.CreateRoomResponse";static fields=i.proto3.util.newFieldList((()=>[{no:1,name:"room_jid",kind:"scalar",T:9}]));static fromBinary(t,r){return(new k).fromBinary(t,r)}static fromJson(t,r){return(new k).fromJson(t,r)}static fromJsonString(t,r){return(new k).fromJsonString(t,r)}static equals(t,r){return i.proto3.util.equals(k,t,r)}}class S extends i.Message{roomId="";constructor(t){super(),i.proto3.util.initPartial(t,this)}static runtime=i.proto3;static typeName="skirnir.DestroyRoomRequest";static fields=i.proto3.util.newFieldList((()=>[{no:1,name:"room_id",kind:"scalar",T:9}]));static fromBinary(t,r){return(new S).fromBinary(t,r)}static fromJson(t,r){return(new S).fromJson(t,r)}static fromJsonString(t,r){return(new S).fromJsonString(t,r)}static equals(t,r){return i.proto3.util.equals(S,t,r)}}class B extends i.Message{constructor(t){super(),i.proto3.util.initPartial(t,this)}static runtime=i.proto3;static typeName="skirnir.DestroyRoomResponse";static fields=i.proto3.util.newFieldList((()=>[]));static fromBinary(t,r){return(new B).fromBinary(t,r)}static fromJson(t,r){return(new B).fromJson(t,r)}static fromJsonString(t,r){return(new B).fromJsonString(t,r)}static equals(t,r){return i.proto3.util.equals(B,t,r)}}class T extends i.Message{roomId="";userId="";affiliation=0;constructor(t){super(),i.proto3.util.initPartial(t,this)}static runtime=i.proto3;static typeName="skirnir.SetRoomAffiliationRequest";static fields=i.proto3.util.newFieldList((()=>[{no:1,name:"room_id",kind:"scalar",T:9},{no:2,name:"user_id",kind:"scalar",T:9},{no:3,name:"affiliation",kind:"enum",T:i.proto3.getEnumType(a)}]));static fromBinary(t,r){return(new T).fromBinary(t,r)}static fromJson(t,r){return(new T).fromJson(t,r)}static fromJsonString(t,r){return(new T).fromJsonString(t,r)}static equals(t,r){return i.proto3.util.equals(T,t,r)}}class I extends i.Message{constructor(t){super(),i.proto3.util.initPartial(t,this)}static runtime=i.proto3;static typeName="skirnir.SetRoomAffiliationResponse";static fields=i.proto3.util.newFieldList((()=>[]));static fromBinary(t,r){return(new I).fromBinary(t,r)}static fromJson(t,r){return(new I).fromJson(t,r)}static fromJsonString(t,r){return(new I).fromJsonString(t,r)}static equals(t,r){return i.proto3.util.equals(I,t,r)}}class N extends i.Message{roomId="";constructor(t){super(),i.proto3.util.initPartial(t,this)}static runtime=i.proto3;static typeName="skirnir.GetRoomOccupantCountRequest";static fields=i.proto3.util.newFieldList((()=>[{no:1,name:"room_id",kind:"scalar",T:9}]));static fromBinary(t,r){return(new N).fromBinary(t,r)}static fromJson(t,r){return(new N).fromJson(t,r)}static fromJsonString(t,r){return(new N).fromJsonString(t,r)}static equals(t,r){return i.proto3.util.equals(N,t,r)}}class O extends i.Message{count=0;constructor(t){super(),i.proto3.util.initPartial(t,this)}static runtime=i.proto3;static typeName="skirnir.GetRoomOccupantCountResponse";static fields=i.proto3.util.newFieldList((()=>[{no:1,name:"count",kind:"scalar",T:13}]));static fromBinary(t,r){return(new O).fromBinary(t,r)}static fromJson(t,r){return(new O).fromJson(t,r)}static fromJsonString(t,r){return(new O).fromJsonString(t,r)}static equals(t,r){return i.proto3.util.equals(O,t,r)}}
|
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
import { Message, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* What a user is to a room, as XEP-0045 defines it. OWNER isn't offered:
|
|
5
|
+
* the admin account owns every room, and an owner could destroy it.
|
|
6
|
+
*
|
|
7
|
+
* @generated from enum skirnir.RoomAffiliation
|
|
8
|
+
*/
|
|
9
|
+
declare enum RoomAffiliation {
|
|
10
|
+
/**
|
|
11
|
+
* @generated from enum value: ROOM_AFFILIATION_UNSPECIFIED = 0;
|
|
12
|
+
*/
|
|
13
|
+
UNSPECIFIED = 0,
|
|
14
|
+
/**
|
|
15
|
+
* @generated from enum value: ROOM_AFFILIATION_NONE = 1;
|
|
16
|
+
*/
|
|
17
|
+
NONE = 1,
|
|
18
|
+
/**
|
|
19
|
+
* @generated from enum value: ROOM_AFFILIATION_MEMBER = 2;
|
|
20
|
+
*/
|
|
21
|
+
MEMBER = 2,
|
|
22
|
+
/**
|
|
23
|
+
* @generated from enum value: ROOM_AFFILIATION_ADMIN = 3;
|
|
24
|
+
*/
|
|
25
|
+
ADMIN = 3,
|
|
26
|
+
/**
|
|
27
|
+
* @generated from enum value: ROOM_AFFILIATION_OUTCAST = 4;
|
|
28
|
+
*/
|
|
29
|
+
OUTCAST = 4
|
|
30
|
+
}
|
|
3
31
|
/**
|
|
4
32
|
* @generated from message skirnir.EnsureUsersRequest
|
|
5
33
|
*/
|
|
@@ -239,5 +267,188 @@ declare class DeleteUserResponse extends Message<DeleteUserResponse> {
|
|
|
239
267
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteUserResponse;
|
|
240
268
|
static equals(a: DeleteUserResponse | PlainMessage<DeleteUserResponse> | undefined, b: DeleteUserResponse | PlainMessage<DeleteUserResponse> | undefined): boolean;
|
|
241
269
|
}
|
|
270
|
+
/**
|
|
271
|
+
* @generated from message skirnir.CreateRoomRequest
|
|
272
|
+
*/
|
|
273
|
+
declare class CreateRoomRequest extends Message<CreateRoomRequest> {
|
|
274
|
+
/**
|
|
275
|
+
* Lowercase ASCII letters, digits and "-", at most 64 bytes
|
|
276
|
+
*
|
|
277
|
+
* @generated from field: string room_id = 1;
|
|
278
|
+
*/
|
|
279
|
+
roomId: string;
|
|
280
|
+
/**
|
|
281
|
+
* @generated from field: string title = 2;
|
|
282
|
+
*/
|
|
283
|
+
title: string;
|
|
284
|
+
/**
|
|
285
|
+
* Keeps the room once its last occupant leaves. Off, ejabberd drops the
|
|
286
|
+
* room, with its in-memory history, as soon as it empties.
|
|
287
|
+
*
|
|
288
|
+
* @generated from field: bool persistent = 3;
|
|
289
|
+
*/
|
|
290
|
+
persistent: boolean;
|
|
291
|
+
/**
|
|
292
|
+
* Only users with the MEMBER (or higher) affiliation may join. Members may
|
|
293
|
+
* also subscribe to the room (XEP-0405 MucSub) to receive its messages
|
|
294
|
+
* while not joined.
|
|
295
|
+
*
|
|
296
|
+
* @generated from field: bool members_only = 4;
|
|
297
|
+
*/
|
|
298
|
+
membersOnly: boolean;
|
|
299
|
+
/**
|
|
300
|
+
* Stores messages in the archive (XEP-0313) so joiners can page back
|
|
301
|
+
* through them. Off, a joiner gets the last few messages ejabberd keeps in
|
|
302
|
+
* memory and nothing is written to the database.
|
|
303
|
+
*
|
|
304
|
+
* @generated from field: bool archive = 5;
|
|
305
|
+
*/
|
|
306
|
+
archive: boolean;
|
|
307
|
+
/**
|
|
308
|
+
* Cap on occupants; 0 applies the service default. ejabberd lowers values
|
|
309
|
+
* above the service maximum.
|
|
310
|
+
*
|
|
311
|
+
* @generated from field: uint32 max_users = 6;
|
|
312
|
+
*/
|
|
313
|
+
maxUsers: number;
|
|
314
|
+
/**
|
|
315
|
+
* Sends every occupant's presence to every other occupant. Off, only
|
|
316
|
+
* moderators' presence is broadcast, which keeps a busy room from sending
|
|
317
|
+
* each join and leave to everyone in it; callers count occupants with
|
|
318
|
+
* GetRoomOccupantCount instead.
|
|
319
|
+
*
|
|
320
|
+
* @generated from field: bool broadcast_presence = 7;
|
|
321
|
+
*/
|
|
322
|
+
broadcastPresence: boolean;
|
|
323
|
+
constructor(data?: PartialMessage<CreateRoomRequest>);
|
|
324
|
+
static readonly runtime: typeof proto3;
|
|
325
|
+
static readonly typeName = "skirnir.CreateRoomRequest";
|
|
326
|
+
static readonly fields: FieldList;
|
|
327
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateRoomRequest;
|
|
328
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateRoomRequest;
|
|
329
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateRoomRequest;
|
|
330
|
+
static equals(a: CreateRoomRequest | PlainMessage<CreateRoomRequest> | undefined, b: CreateRoomRequest | PlainMessage<CreateRoomRequest> | undefined): boolean;
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* @generated from message skirnir.CreateRoomResponse
|
|
334
|
+
*/
|
|
335
|
+
declare class CreateRoomResponse extends Message<CreateRoomResponse> {
|
|
336
|
+
/**
|
|
337
|
+
* Bare JID of the room
|
|
338
|
+
*
|
|
339
|
+
* @generated from field: string room_jid = 1;
|
|
340
|
+
*/
|
|
341
|
+
roomJid: string;
|
|
342
|
+
constructor(data?: PartialMessage<CreateRoomResponse>);
|
|
343
|
+
static readonly runtime: typeof proto3;
|
|
344
|
+
static readonly typeName = "skirnir.CreateRoomResponse";
|
|
345
|
+
static readonly fields: FieldList;
|
|
346
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateRoomResponse;
|
|
347
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateRoomResponse;
|
|
348
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateRoomResponse;
|
|
349
|
+
static equals(a: CreateRoomResponse | PlainMessage<CreateRoomResponse> | undefined, b: CreateRoomResponse | PlainMessage<CreateRoomResponse> | undefined): boolean;
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* @generated from message skirnir.DestroyRoomRequest
|
|
353
|
+
*/
|
|
354
|
+
declare class DestroyRoomRequest extends Message<DestroyRoomRequest> {
|
|
355
|
+
/**
|
|
356
|
+
* @generated from field: string room_id = 1;
|
|
357
|
+
*/
|
|
358
|
+
roomId: string;
|
|
359
|
+
constructor(data?: PartialMessage<DestroyRoomRequest>);
|
|
360
|
+
static readonly runtime: typeof proto3;
|
|
361
|
+
static readonly typeName = "skirnir.DestroyRoomRequest";
|
|
362
|
+
static readonly fields: FieldList;
|
|
363
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DestroyRoomRequest;
|
|
364
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DestroyRoomRequest;
|
|
365
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DestroyRoomRequest;
|
|
366
|
+
static equals(a: DestroyRoomRequest | PlainMessage<DestroyRoomRequest> | undefined, b: DestroyRoomRequest | PlainMessage<DestroyRoomRequest> | undefined): boolean;
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* @generated from message skirnir.DestroyRoomResponse
|
|
370
|
+
*/
|
|
371
|
+
declare class DestroyRoomResponse extends Message<DestroyRoomResponse> {
|
|
372
|
+
constructor(data?: PartialMessage<DestroyRoomResponse>);
|
|
373
|
+
static readonly runtime: typeof proto3;
|
|
374
|
+
static readonly typeName = "skirnir.DestroyRoomResponse";
|
|
375
|
+
static readonly fields: FieldList;
|
|
376
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DestroyRoomResponse;
|
|
377
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DestroyRoomResponse;
|
|
378
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DestroyRoomResponse;
|
|
379
|
+
static equals(a: DestroyRoomResponse | PlainMessage<DestroyRoomResponse> | undefined, b: DestroyRoomResponse | PlainMessage<DestroyRoomResponse> | undefined): boolean;
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* @generated from message skirnir.SetRoomAffiliationRequest
|
|
383
|
+
*/
|
|
384
|
+
declare class SetRoomAffiliationRequest extends Message<SetRoomAffiliationRequest> {
|
|
385
|
+
/**
|
|
386
|
+
* @generated from field: string room_id = 1;
|
|
387
|
+
*/
|
|
388
|
+
roomId: string;
|
|
389
|
+
/**
|
|
390
|
+
* @generated from field: string user_id = 2;
|
|
391
|
+
*/
|
|
392
|
+
userId: string;
|
|
393
|
+
/**
|
|
394
|
+
* @generated from field: skirnir.RoomAffiliation affiliation = 3;
|
|
395
|
+
*/
|
|
396
|
+
affiliation: RoomAffiliation;
|
|
397
|
+
constructor(data?: PartialMessage<SetRoomAffiliationRequest>);
|
|
398
|
+
static readonly runtime: typeof proto3;
|
|
399
|
+
static readonly typeName = "skirnir.SetRoomAffiliationRequest";
|
|
400
|
+
static readonly fields: FieldList;
|
|
401
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetRoomAffiliationRequest;
|
|
402
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetRoomAffiliationRequest;
|
|
403
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetRoomAffiliationRequest;
|
|
404
|
+
static equals(a: SetRoomAffiliationRequest | PlainMessage<SetRoomAffiliationRequest> | undefined, b: SetRoomAffiliationRequest | PlainMessage<SetRoomAffiliationRequest> | undefined): boolean;
|
|
405
|
+
}
|
|
406
|
+
/**
|
|
407
|
+
* @generated from message skirnir.SetRoomAffiliationResponse
|
|
408
|
+
*/
|
|
409
|
+
declare class SetRoomAffiliationResponse extends Message<SetRoomAffiliationResponse> {
|
|
410
|
+
constructor(data?: PartialMessage<SetRoomAffiliationResponse>);
|
|
411
|
+
static readonly runtime: typeof proto3;
|
|
412
|
+
static readonly typeName = "skirnir.SetRoomAffiliationResponse";
|
|
413
|
+
static readonly fields: FieldList;
|
|
414
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetRoomAffiliationResponse;
|
|
415
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetRoomAffiliationResponse;
|
|
416
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetRoomAffiliationResponse;
|
|
417
|
+
static equals(a: SetRoomAffiliationResponse | PlainMessage<SetRoomAffiliationResponse> | undefined, b: SetRoomAffiliationResponse | PlainMessage<SetRoomAffiliationResponse> | undefined): boolean;
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* @generated from message skirnir.GetRoomOccupantCountRequest
|
|
421
|
+
*/
|
|
422
|
+
declare class GetRoomOccupantCountRequest extends Message<GetRoomOccupantCountRequest> {
|
|
423
|
+
/**
|
|
424
|
+
* @generated from field: string room_id = 1;
|
|
425
|
+
*/
|
|
426
|
+
roomId: string;
|
|
427
|
+
constructor(data?: PartialMessage<GetRoomOccupantCountRequest>);
|
|
428
|
+
static readonly runtime: typeof proto3;
|
|
429
|
+
static readonly typeName = "skirnir.GetRoomOccupantCountRequest";
|
|
430
|
+
static readonly fields: FieldList;
|
|
431
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetRoomOccupantCountRequest;
|
|
432
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetRoomOccupantCountRequest;
|
|
433
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetRoomOccupantCountRequest;
|
|
434
|
+
static equals(a: GetRoomOccupantCountRequest | PlainMessage<GetRoomOccupantCountRequest> | undefined, b: GetRoomOccupantCountRequest | PlainMessage<GetRoomOccupantCountRequest> | undefined): boolean;
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* @generated from message skirnir.GetRoomOccupantCountResponse
|
|
438
|
+
*/
|
|
439
|
+
declare class GetRoomOccupantCountResponse extends Message<GetRoomOccupantCountResponse> {
|
|
440
|
+
/**
|
|
441
|
+
* @generated from field: uint32 count = 1;
|
|
442
|
+
*/
|
|
443
|
+
count: number;
|
|
444
|
+
constructor(data?: PartialMessage<GetRoomOccupantCountResponse>);
|
|
445
|
+
static readonly runtime: typeof proto3;
|
|
446
|
+
static readonly typeName = "skirnir.GetRoomOccupantCountResponse";
|
|
447
|
+
static readonly fields: FieldList;
|
|
448
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetRoomOccupantCountResponse;
|
|
449
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetRoomOccupantCountResponse;
|
|
450
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetRoomOccupantCountResponse;
|
|
451
|
+
static equals(a: GetRoomOccupantCountResponse | PlainMessage<GetRoomOccupantCountResponse> | undefined, b: GetRoomOccupantCountResponse | PlainMessage<GetRoomOccupantCountResponse> | undefined): boolean;
|
|
452
|
+
}
|
|
242
453
|
|
|
243
|
-
export { CloseConversationRequest, CloseConversationResponse, DeleteUserRequest, DeleteUserResponse, EnsureUsersRequest, EnsureUsersResponse, IssueTokenRequest, IssueTokenResponse, OpenConversationRequest, OpenConversationResponse, SetUserBannedRequest, SetUserBannedResponse };
|
|
454
|
+
export { CloseConversationRequest, CloseConversationResponse, CreateRoomRequest, CreateRoomResponse, DeleteUserRequest, DeleteUserResponse, DestroyRoomRequest, DestroyRoomResponse, EnsureUsersRequest, EnsureUsersResponse, GetRoomOccupantCountRequest, GetRoomOccupantCountResponse, IssueTokenRequest, IssueTokenResponse, OpenConversationRequest, OpenConversationResponse, RoomAffiliation, SetRoomAffiliationRequest, SetRoomAffiliationResponse, SetUserBannedRequest, SetUserBannedResponse };
|