@dailydotdev/schema 0.3.23 → 0.3.25
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.cjs +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/skirnir/skirnir_connect.cjs +1 -0
- package/dist/skirnir/skirnir_connect.d.cts +111 -0
- package/dist/skirnir/skirnir_connect.d.ts +111 -0
- package/dist/skirnir/skirnir_connect.js +1 -0
- package/dist/skirnir/skirnir_pb.cjs +1 -0
- package/dist/skirnir/skirnir_pb.d.cts +243 -0
- package/dist/skirnir/skirnir_pb.d.ts +243 -0
- package/dist/skirnir/skirnir_pb.js +1 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e,r=Object.defineProperty,p=Object.getOwnPropertyDescriptor,
|
|
1
|
+
var e,r=Object.defineProperty,p=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s=(e,s,u,t)=>{if(s&&"object"==typeof s||"function"==typeof s)for(let d of i(s))o.call(e,d)||d===u||r(e,d,{get:()=>s[d],enumerable:!(t=p(s,d))||t.enumerable});return e},u=(e,r,p)=>(s(e,r,"default"),p&&s(p,r,"default")),t={};module.exports=(e=t,s(r({},"__esModule",{value:!0}),e)),u(t,require("./bragi/feedback_pb.cjs"),module.exports),u(t,require("./bragi/pipelines_connect.cjs"),module.exports),u(t,require("./bragi/pipelines_pb.cjs"),module.exports),u(t,require("./bragi/proxy_connect.cjs"),module.exports),u(t,require("./bragi/proxy_pb.cjs"),module.exports),u(t,require("./brokkr/brokkr_connect.cjs"),module.exports),u(t,require("./brokkr/brokkr_pb.cjs"),module.exports),u(t,require("./daily-api/job_connect.cjs"),module.exports),u(t,require("./daily-api/job_pb.cjs"),module.exports),u(t,require("./daily-api/opportunity-match_pb.cjs"),module.exports),u(t,require("./daily-api/opportunity_pb.cjs"),module.exports),u(t,require("./daily-api/organization_pb.cjs"),module.exports),u(t,require("./daily-api/posts_connect.cjs"),module.exports),u(t,require("./daily-api/posts_pb.cjs"),module.exports),u(t,require("./daily-api/source-requests_connect.cjs"),module.exports),u(t,require("./daily-api/source-requests_pb.cjs"),module.exports),u(t,require("./daily-api/sources_connect.cjs"),module.exports),u(t,require("./daily-api/sources_pb.cjs"),module.exports),u(t,require("./daily-api/user-candidate-preference_pb.cjs"),module.exports),u(t,require("./daily-api/user-experience_pb.cjs"),module.exports),u(t,require("./daily-api/user_pb.cjs"),module.exports),u(t,require("./daily-api/util_pb.cjs"),module.exports),u(t,require("./daily-api/pubsub/candidate-accepted-opportunity_pb.cjs"),module.exports),u(t,require("./daily-api/pubsub/candidate-preference-updated_pb.cjs"),module.exports),u(t,require("./daily-api/pubsub/candidate-rejected-opportunity_pb.cjs"),module.exports),u(t,require("./daily-api/pubsub/content-updated_pb.cjs"),module.exports),u(t,require("./daily-api/pubsub/highlights-canonical-published_pb.cjs"),module.exports),u(t,require("./daily-api/pubsub/ledger-document-published_pb.cjs"),module.exports),u(t,require("./daily-api/pubsub/opportunity_pb.cjs"),module.exports),u(t,require("./daily-api/pubsub/post-highlighted_pb.cjs"),module.exports),u(t,require("./daily-api/pubsub/recruiter-accepted-candidate-match_pb.cjs"),module.exports),u(t,require("./daily-api/pubsub/user-profile-updated_pb.cjs"),module.exports),u(t,require("./feed/briefing/briefing_pb.cjs"),module.exports),u(t,require("./feed/personalised/personalised_pb.cjs"),module.exports),u(t,require("./feed/server_side_event/server_side_event_pb.cjs"),module.exports),u(t,require("./mimir/search/search_pb.cjs"),module.exports),u(t,require("./njord/transactions_connect.cjs"),module.exports),u(t,require("./njord/transactions_pb.cjs"),module.exports),u(t,require("./skirnir/skirnir_connect.cjs"),module.exports),u(t,require("./skirnir/skirnir_pb.cjs"),module.exports),u(t,require("./snotra/engagement/engagement_pb.cjs"),module.exports),u(t,require("./util/error_pb.cjs"),module.exports);
|
package/dist/index.d.cts
CHANGED
|
@@ -36,6 +36,8 @@ export { EntryMetadata, ServerSideEvent } from './feed/server_side_event/server_
|
|
|
36
36
|
export { BoolFilter, Filter, Operation, Order, Quantifier, SearchRequest, SearchResponse, SearchResult, Sort, StringListFilter, TimeRangeFilter } from './mimir/search/search_pb.cjs';
|
|
37
37
|
export { Credits } from './njord/transactions_connect.cjs';
|
|
38
38
|
export { BalanceChange, Currency, EntityType, FeeResult, GetBalanceRequest, GetBalanceResponse, Transfer, TransferFee, TransferParticipant, TransferRequest, TransferResponse, TransferResult, TransferStatus, TransferType, UserAccount } from './njord/transactions_pb.cjs';
|
|
39
|
+
export { SkirnirService } from './skirnir/skirnir_connect.cjs';
|
|
40
|
+
export { CloseConversationRequest, CloseConversationResponse, DeleteUserRequest, DeleteUserResponse, EnsureUsersRequest, EnsureUsersResponse, IssueTokenRequest, IssueTokenResponse, OpenConversationRequest, OpenConversationResponse, SetUserBannedRequest, SetUserBannedResponse } from './skirnir/skirnir_pb.cjs';
|
|
39
41
|
export { Action, Event, GetUserEngagedPostIdsRequest, GetUserEngagedPostIdsResponse, GetUserEventRequest, GetUserEventResponse, UserEngagementProfile, UserPostEngagementCounts } from './snotra/engagement/engagement_pb.cjs';
|
|
40
42
|
export { Error } from './util/error_pb.cjs';
|
|
41
43
|
import '@bufbuild/protobuf';
|
package/dist/index.d.ts
CHANGED
|
@@ -36,6 +36,8 @@ export { EntryMetadata, ServerSideEvent } from './feed/server_side_event/server_
|
|
|
36
36
|
export { BoolFilter, Filter, Operation, Order, Quantifier, SearchRequest, SearchResponse, SearchResult, Sort, StringListFilter, TimeRangeFilter } from './mimir/search/search_pb.js';
|
|
37
37
|
export { Credits } from './njord/transactions_connect.js';
|
|
38
38
|
export { BalanceChange, Currency, EntityType, FeeResult, GetBalanceRequest, GetBalanceResponse, Transfer, TransferFee, TransferParticipant, TransferRequest, TransferResponse, TransferResult, TransferStatus, TransferType, UserAccount } from './njord/transactions_pb.js';
|
|
39
|
+
export { SkirnirService } from './skirnir/skirnir_connect.js';
|
|
40
|
+
export { CloseConversationRequest, CloseConversationResponse, DeleteUserRequest, DeleteUserResponse, EnsureUsersRequest, EnsureUsersResponse, IssueTokenRequest, IssueTokenResponse, OpenConversationRequest, OpenConversationResponse, SetUserBannedRequest, SetUserBannedResponse } from './skirnir/skirnir_pb.js';
|
|
39
41
|
export { Action, Event, GetUserEngagedPostIdsRequest, GetUserEngagedPostIdsResponse, GetUserEventRequest, GetUserEventResponse, UserEngagementProfile, UserPostEngagementCounts } from './snotra/engagement/engagement_pb.js';
|
|
40
42
|
export { Error } from './util/error_pb.js';
|
|
41
43
|
import '@bufbuild/protobuf';
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export*from"./bragi/feedback_pb";export*from"./bragi/pipelines_connect";export*from"./bragi/pipelines_pb";export*from"./bragi/proxy_connect";export*from"./bragi/proxy_pb";export*from"./brokkr/brokkr_connect";export*from"./brokkr/brokkr_pb";export*from"./daily-api/job_connect";export*from"./daily-api/job_pb";export*from"./daily-api/opportunity-match_pb";export*from"./daily-api/opportunity_pb";export*from"./daily-api/organization_pb";export*from"./daily-api/posts_connect";export*from"./daily-api/posts_pb";export*from"./daily-api/source-requests_connect";export*from"./daily-api/source-requests_pb";export*from"./daily-api/sources_connect";export*from"./daily-api/sources_pb";export*from"./daily-api/user-candidate-preference_pb";export*from"./daily-api/user-experience_pb";export*from"./daily-api/user_pb";export*from"./daily-api/util_pb";export*from"./daily-api/pubsub/candidate-accepted-opportunity_pb";export*from"./daily-api/pubsub/candidate-preference-updated_pb";export*from"./daily-api/pubsub/candidate-rejected-opportunity_pb";export*from"./daily-api/pubsub/content-updated_pb";export*from"./daily-api/pubsub/highlights-canonical-published_pb";export*from"./daily-api/pubsub/ledger-document-published_pb";export*from"./daily-api/pubsub/opportunity_pb";export*from"./daily-api/pubsub/post-highlighted_pb";export*from"./daily-api/pubsub/recruiter-accepted-candidate-match_pb";export*from"./daily-api/pubsub/user-profile-updated_pb";export*from"./feed/briefing/briefing_pb";export*from"./feed/personalised/personalised_pb";export*from"./feed/server_side_event/server_side_event_pb";export*from"./mimir/search/search_pb";export*from"./njord/transactions_connect";export*from"./njord/transactions_pb";export*from"./snotra/engagement/engagement_pb";export*from"./util/error_pb";
|
|
1
|
+
export*from"./bragi/feedback_pb";export*from"./bragi/pipelines_connect";export*from"./bragi/pipelines_pb";export*from"./bragi/proxy_connect";export*from"./bragi/proxy_pb";export*from"./brokkr/brokkr_connect";export*from"./brokkr/brokkr_pb";export*from"./daily-api/job_connect";export*from"./daily-api/job_pb";export*from"./daily-api/opportunity-match_pb";export*from"./daily-api/opportunity_pb";export*from"./daily-api/organization_pb";export*from"./daily-api/posts_connect";export*from"./daily-api/posts_pb";export*from"./daily-api/source-requests_connect";export*from"./daily-api/source-requests_pb";export*from"./daily-api/sources_connect";export*from"./daily-api/sources_pb";export*from"./daily-api/user-candidate-preference_pb";export*from"./daily-api/user-experience_pb";export*from"./daily-api/user_pb";export*from"./daily-api/util_pb";export*from"./daily-api/pubsub/candidate-accepted-opportunity_pb";export*from"./daily-api/pubsub/candidate-preference-updated_pb";export*from"./daily-api/pubsub/candidate-rejected-opportunity_pb";export*from"./daily-api/pubsub/content-updated_pb";export*from"./daily-api/pubsub/highlights-canonical-published_pb";export*from"./daily-api/pubsub/ledger-document-published_pb";export*from"./daily-api/pubsub/opportunity_pb";export*from"./daily-api/pubsub/post-highlighted_pb";export*from"./daily-api/pubsub/recruiter-accepted-candidate-match_pb";export*from"./daily-api/pubsub/user-profile-updated_pb";export*from"./feed/briefing/briefing_pb";export*from"./feed/personalised/personalised_pb";export*from"./feed/server_side_event/server_side_event_pb";export*from"./mimir/search/search_pb";export*from"./njord/transactions_connect";export*from"./njord/transactions_pb";export*from"./skirnir/skirnir_connect";export*from"./skirnir/skirnir_pb";export*from"./snotra/engagement/engagement_pb";export*from"./util/error_pb";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e,n=Object.defineProperty,s=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,t={};((e,s)=>{for(var r in s)n(e,r,{get:s[r],enumerable:!0})})(t,{SkirnirService:()=>d}),module.exports=(e=t,((e,t,i,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let d of r(t))o.call(e,d)||d===i||n(e,d,{get:()=>t[d],enumerable:!(a=s(t,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}}};
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { EnsureUsersRequest, EnsureUsersResponse, OpenConversationRequest, OpenConversationResponse, CloseConversationRequest, CloseConversationResponse, IssueTokenRequest, IssueTokenResponse, SetUserBannedRequest, SetUserBannedResponse, DeleteUserRequest, DeleteUserResponse } from './skirnir_pb.cjs';
|
|
2
|
+
import '@bufbuild/protobuf';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Chat backend in front of ejabberd. Internal only: daily-api is the single
|
|
6
|
+
* caller, so clients never hold ejabberd admin access or reach this service.
|
|
7
|
+
*
|
|
8
|
+
* JIDs: ejabberd case-folds the local part, but daily.dev user ids are
|
|
9
|
+
* mixed-case, so plain lowercasing could map two users onto one account. The
|
|
10
|
+
* local part is therefore the user id with every uppercase letter replaced by
|
|
11
|
+
* "_" plus its lowercase form ("aB1" -> "a_b1"). User ids may only contain
|
|
12
|
+
* ASCII letters, digits and "-" (anything else is INVALID_ARGUMENT), so the
|
|
13
|
+
* mapping is reversible and non-ASCII case folding cannot collide. Callers
|
|
14
|
+
* use the JIDs returned here rather than building their own; clients decode
|
|
15
|
+
* a sender's user id the same way.
|
|
16
|
+
*
|
|
17
|
+
* Errors: INVALID_ARGUMENT for malformed requests (empty or invalid ids, a
|
|
18
|
+
* user paired with themselves, too many ids), UNAVAILABLE when ejabberd could
|
|
19
|
+
* not be reached and the call is safe to retry, INTERNAL for failures a retry
|
|
20
|
+
* will not fix. Every mutating RPC is idempotent.
|
|
21
|
+
*
|
|
22
|
+
* @generated from service skirnir.SkirnirService
|
|
23
|
+
*/
|
|
24
|
+
declare const SkirnirService: {
|
|
25
|
+
readonly typeName: "skirnir.SkirnirService";
|
|
26
|
+
readonly methods: {
|
|
27
|
+
/**
|
|
28
|
+
* Registers every given daily.dev user that has no chat account yet, so it
|
|
29
|
+
* doubles as a lazy backfill for users who signed up before chat existed.
|
|
30
|
+
* At most 100 user_ids per call.
|
|
31
|
+
*
|
|
32
|
+
* @generated from rpc skirnir.SkirnirService.EnsureUsers
|
|
33
|
+
*/
|
|
34
|
+
readonly ensureUsers: {
|
|
35
|
+
readonly name: "EnsureUsers";
|
|
36
|
+
readonly I: typeof EnsureUsersRequest;
|
|
37
|
+
readonly O: typeof EnsureUsersResponse;
|
|
38
|
+
readonly kind: any;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Allows two users to message each other by adding each to the other's
|
|
42
|
+
* roster; ejabberd only delivers direct messages between roster contacts.
|
|
43
|
+
* Registers either account if missing. If the second roster write fails the
|
|
44
|
+
* first is rolled back, so a pairing is never one-sided.
|
|
45
|
+
*
|
|
46
|
+
* @generated from rpc skirnir.SkirnirService.OpenConversation
|
|
47
|
+
*/
|
|
48
|
+
readonly openConversation: {
|
|
49
|
+
readonly name: "OpenConversation";
|
|
50
|
+
readonly I: typeof OpenConversationRequest;
|
|
51
|
+
readonly O: typeof OpenConversationResponse;
|
|
52
|
+
readonly kind: any;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Revokes an open conversation, e.g. after either user blocks the other.
|
|
56
|
+
* Closing a pair that never talked is a no-op.
|
|
57
|
+
*
|
|
58
|
+
* @generated from rpc skirnir.SkirnirService.CloseConversation
|
|
59
|
+
*/
|
|
60
|
+
readonly closeConversation: {
|
|
61
|
+
readonly name: "CloseConversation";
|
|
62
|
+
readonly I: typeof CloseConversationRequest;
|
|
63
|
+
readonly O: typeof CloseConversationResponse;
|
|
64
|
+
readonly kind: any;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Issues a short-lived token the client uses as its SASL X-OAUTH2 password
|
|
68
|
+
* on the websocket. Fails with FAILED_PRECONDITION for a banned user.
|
|
69
|
+
*
|
|
70
|
+
* @generated from rpc skirnir.SkirnirService.IssueToken
|
|
71
|
+
*/
|
|
72
|
+
readonly issueToken: {
|
|
73
|
+
readonly name: "IssueToken";
|
|
74
|
+
readonly I: typeof IssueTokenRequest;
|
|
75
|
+
readonly O: typeof IssueTokenResponse;
|
|
76
|
+
readonly kind: any;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Bans or unbans a user's chat account. A ban ends their live sessions and
|
|
80
|
+
* makes IssueToken refuse them; the account, rosters and history are kept
|
|
81
|
+
* for an unban. A token issued before the ban can still log in until it
|
|
82
|
+
* expires: ejabberd only checks bans on password logins and cannot list a
|
|
83
|
+
* user's tokens on SQL storage. Closing that window is up to the ejabberd
|
|
84
|
+
* login policy module, so keep token TTLs short until it exists.
|
|
85
|
+
*
|
|
86
|
+
* @generated from rpc skirnir.SkirnirService.SetUserBanned
|
|
87
|
+
*/
|
|
88
|
+
readonly setUserBanned: {
|
|
89
|
+
readonly name: "SetUserBanned";
|
|
90
|
+
readonly I: typeof SetUserBannedRequest;
|
|
91
|
+
readonly O: typeof SetUserBannedResponse;
|
|
92
|
+
readonly kind: any;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Deletes a user's chat account along with their rosters and message
|
|
96
|
+
* archive, and ends their sessions. Deleting a missing account is a no-op.
|
|
97
|
+
* As with bans, ejabberd does not check that the account still exists when
|
|
98
|
+
* an outstanding token logs in, so the same expiry window applies.
|
|
99
|
+
*
|
|
100
|
+
* @generated from rpc skirnir.SkirnirService.DeleteUser
|
|
101
|
+
*/
|
|
102
|
+
readonly deleteUser: {
|
|
103
|
+
readonly name: "DeleteUser";
|
|
104
|
+
readonly I: typeof DeleteUserRequest;
|
|
105
|
+
readonly O: typeof DeleteUserResponse;
|
|
106
|
+
readonly kind: any;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
export { SkirnirService };
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { EnsureUsersRequest, EnsureUsersResponse, OpenConversationRequest, OpenConversationResponse, CloseConversationRequest, CloseConversationResponse, IssueTokenRequest, IssueTokenResponse, SetUserBannedRequest, SetUserBannedResponse, DeleteUserRequest, DeleteUserResponse } from './skirnir_pb.js';
|
|
2
|
+
import '@bufbuild/protobuf';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Chat backend in front of ejabberd. Internal only: daily-api is the single
|
|
6
|
+
* caller, so clients never hold ejabberd admin access or reach this service.
|
|
7
|
+
*
|
|
8
|
+
* JIDs: ejabberd case-folds the local part, but daily.dev user ids are
|
|
9
|
+
* mixed-case, so plain lowercasing could map two users onto one account. The
|
|
10
|
+
* local part is therefore the user id with every uppercase letter replaced by
|
|
11
|
+
* "_" plus its lowercase form ("aB1" -> "a_b1"). User ids may only contain
|
|
12
|
+
* ASCII letters, digits and "-" (anything else is INVALID_ARGUMENT), so the
|
|
13
|
+
* mapping is reversible and non-ASCII case folding cannot collide. Callers
|
|
14
|
+
* use the JIDs returned here rather than building their own; clients decode
|
|
15
|
+
* a sender's user id the same way.
|
|
16
|
+
*
|
|
17
|
+
* Errors: INVALID_ARGUMENT for malformed requests (empty or invalid ids, a
|
|
18
|
+
* user paired with themselves, too many ids), UNAVAILABLE when ejabberd could
|
|
19
|
+
* not be reached and the call is safe to retry, INTERNAL for failures a retry
|
|
20
|
+
* will not fix. Every mutating RPC is idempotent.
|
|
21
|
+
*
|
|
22
|
+
* @generated from service skirnir.SkirnirService
|
|
23
|
+
*/
|
|
24
|
+
declare const SkirnirService: {
|
|
25
|
+
readonly typeName: "skirnir.SkirnirService";
|
|
26
|
+
readonly methods: {
|
|
27
|
+
/**
|
|
28
|
+
* Registers every given daily.dev user that has no chat account yet, so it
|
|
29
|
+
* doubles as a lazy backfill for users who signed up before chat existed.
|
|
30
|
+
* At most 100 user_ids per call.
|
|
31
|
+
*
|
|
32
|
+
* @generated from rpc skirnir.SkirnirService.EnsureUsers
|
|
33
|
+
*/
|
|
34
|
+
readonly ensureUsers: {
|
|
35
|
+
readonly name: "EnsureUsers";
|
|
36
|
+
readonly I: typeof EnsureUsersRequest;
|
|
37
|
+
readonly O: typeof EnsureUsersResponse;
|
|
38
|
+
readonly kind: any;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Allows two users to message each other by adding each to the other's
|
|
42
|
+
* roster; ejabberd only delivers direct messages between roster contacts.
|
|
43
|
+
* Registers either account if missing. If the second roster write fails the
|
|
44
|
+
* first is rolled back, so a pairing is never one-sided.
|
|
45
|
+
*
|
|
46
|
+
* @generated from rpc skirnir.SkirnirService.OpenConversation
|
|
47
|
+
*/
|
|
48
|
+
readonly openConversation: {
|
|
49
|
+
readonly name: "OpenConversation";
|
|
50
|
+
readonly I: typeof OpenConversationRequest;
|
|
51
|
+
readonly O: typeof OpenConversationResponse;
|
|
52
|
+
readonly kind: any;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Revokes an open conversation, e.g. after either user blocks the other.
|
|
56
|
+
* Closing a pair that never talked is a no-op.
|
|
57
|
+
*
|
|
58
|
+
* @generated from rpc skirnir.SkirnirService.CloseConversation
|
|
59
|
+
*/
|
|
60
|
+
readonly closeConversation: {
|
|
61
|
+
readonly name: "CloseConversation";
|
|
62
|
+
readonly I: typeof CloseConversationRequest;
|
|
63
|
+
readonly O: typeof CloseConversationResponse;
|
|
64
|
+
readonly kind: any;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Issues a short-lived token the client uses as its SASL X-OAUTH2 password
|
|
68
|
+
* on the websocket. Fails with FAILED_PRECONDITION for a banned user.
|
|
69
|
+
*
|
|
70
|
+
* @generated from rpc skirnir.SkirnirService.IssueToken
|
|
71
|
+
*/
|
|
72
|
+
readonly issueToken: {
|
|
73
|
+
readonly name: "IssueToken";
|
|
74
|
+
readonly I: typeof IssueTokenRequest;
|
|
75
|
+
readonly O: typeof IssueTokenResponse;
|
|
76
|
+
readonly kind: any;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Bans or unbans a user's chat account. A ban ends their live sessions and
|
|
80
|
+
* makes IssueToken refuse them; the account, rosters and history are kept
|
|
81
|
+
* for an unban. A token issued before the ban can still log in until it
|
|
82
|
+
* expires: ejabberd only checks bans on password logins and cannot list a
|
|
83
|
+
* user's tokens on SQL storage. Closing that window is up to the ejabberd
|
|
84
|
+
* login policy module, so keep token TTLs short until it exists.
|
|
85
|
+
*
|
|
86
|
+
* @generated from rpc skirnir.SkirnirService.SetUserBanned
|
|
87
|
+
*/
|
|
88
|
+
readonly setUserBanned: {
|
|
89
|
+
readonly name: "SetUserBanned";
|
|
90
|
+
readonly I: typeof SetUserBannedRequest;
|
|
91
|
+
readonly O: typeof SetUserBannedResponse;
|
|
92
|
+
readonly kind: any;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Deletes a user's chat account along with their rosters and message
|
|
96
|
+
* archive, and ends their sessions. Deleting a missing account is a no-op.
|
|
97
|
+
* As with bans, ejabberd does not check that the account still exists when
|
|
98
|
+
* an outstanding token logs in, so the same expiry window applies.
|
|
99
|
+
*
|
|
100
|
+
* @generated from rpc skirnir.SkirnirService.DeleteUser
|
|
101
|
+
*/
|
|
102
|
+
readonly deleteUser: {
|
|
103
|
+
readonly name: "DeleteUser";
|
|
104
|
+
readonly I: typeof DeleteUserRequest;
|
|
105
|
+
readonly O: typeof DeleteUserResponse;
|
|
106
|
+
readonly kind: any;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
export { SkirnirService };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{CloseConversationRequest as e,CloseConversationResponse as n,DeleteUserRequest as r,DeleteUserResponse as s,EnsureUsersRequest as o,EnsureUsersResponse as i,IssueTokenRequest as a,IssueTokenResponse as t,OpenConversationRequest as m,OpenConversationResponse as U,SetUserBannedRequest as d,SetUserBannedResponse as k}from"./skirnir_pb.ts";import{MethodKind as p}from"@bufbuild/protobuf";const u={typeName:"skirnir.SkirnirService",methods:{ensureUsers:{name:"EnsureUsers",I:o,O:i,kind:p.Unary},openConversation:{name:"OpenConversation",I:m,O:U,kind:p.Unary},closeConversation:{name:"CloseConversation",I:e,O:n,kind:p.Unary},issueToken:{name:"IssueToken",I:a,O:t,kind:p.Unary},setUserBanned:{name:"SetUserBanned",I:d,O:k,kind:p.Unary},deleteUser:{name:"DeleteUser",I:r,O:s,kind:p.Unary}}};export{u as SkirnirService};
|
|
@@ -0,0 +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)}}
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import { Message, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @generated from message skirnir.EnsureUsersRequest
|
|
5
|
+
*/
|
|
6
|
+
declare class EnsureUsersRequest extends Message<EnsureUsersRequest> {
|
|
7
|
+
/**
|
|
8
|
+
* daily.dev user ids, at most 100
|
|
9
|
+
*
|
|
10
|
+
* @generated from field: repeated string user_ids = 1;
|
|
11
|
+
*/
|
|
12
|
+
userIds: string[];
|
|
13
|
+
constructor(data?: PartialMessage<EnsureUsersRequest>);
|
|
14
|
+
static readonly runtime: typeof proto3;
|
|
15
|
+
static readonly typeName = "skirnir.EnsureUsersRequest";
|
|
16
|
+
static readonly fields: FieldList;
|
|
17
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EnsureUsersRequest;
|
|
18
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EnsureUsersRequest;
|
|
19
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EnsureUsersRequest;
|
|
20
|
+
static equals(a: EnsureUsersRequest | PlainMessage<EnsureUsersRequest> | undefined, b: EnsureUsersRequest | PlainMessage<EnsureUsersRequest> | undefined): boolean;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @generated from message skirnir.EnsureUsersResponse
|
|
24
|
+
*/
|
|
25
|
+
declare class EnsureUsersResponse extends Message<EnsureUsersResponse> {
|
|
26
|
+
/**
|
|
27
|
+
* The subset that had to be registered
|
|
28
|
+
*
|
|
29
|
+
* @generated from field: repeated string created_user_ids = 1;
|
|
30
|
+
*/
|
|
31
|
+
createdUserIds: string[];
|
|
32
|
+
constructor(data?: PartialMessage<EnsureUsersResponse>);
|
|
33
|
+
static readonly runtime: typeof proto3;
|
|
34
|
+
static readonly typeName = "skirnir.EnsureUsersResponse";
|
|
35
|
+
static readonly fields: FieldList;
|
|
36
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EnsureUsersResponse;
|
|
37
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EnsureUsersResponse;
|
|
38
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EnsureUsersResponse;
|
|
39
|
+
static equals(a: EnsureUsersResponse | PlainMessage<EnsureUsersResponse> | undefined, b: EnsureUsersResponse | PlainMessage<EnsureUsersResponse> | undefined): boolean;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* @generated from message skirnir.OpenConversationRequest
|
|
43
|
+
*/
|
|
44
|
+
declare class OpenConversationRequest extends Message<OpenConversationRequest> {
|
|
45
|
+
/**
|
|
46
|
+
* daily.dev id of the user starting the conversation
|
|
47
|
+
*
|
|
48
|
+
* @generated from field: string user_id = 1;
|
|
49
|
+
*/
|
|
50
|
+
userId: string;
|
|
51
|
+
/**
|
|
52
|
+
* daily.dev id of the other user
|
|
53
|
+
*
|
|
54
|
+
* @generated from field: string peer_id = 2;
|
|
55
|
+
*/
|
|
56
|
+
peerId: string;
|
|
57
|
+
constructor(data?: PartialMessage<OpenConversationRequest>);
|
|
58
|
+
static readonly runtime: typeof proto3;
|
|
59
|
+
static readonly typeName = "skirnir.OpenConversationRequest";
|
|
60
|
+
static readonly fields: FieldList;
|
|
61
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OpenConversationRequest;
|
|
62
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OpenConversationRequest;
|
|
63
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OpenConversationRequest;
|
|
64
|
+
static equals(a: OpenConversationRequest | PlainMessage<OpenConversationRequest> | undefined, b: OpenConversationRequest | PlainMessage<OpenConversationRequest> | undefined): boolean;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* @generated from message skirnir.OpenConversationResponse
|
|
68
|
+
*/
|
|
69
|
+
declare class OpenConversationResponse extends Message<OpenConversationResponse> {
|
|
70
|
+
/**
|
|
71
|
+
* Bare JID of user_id
|
|
72
|
+
*
|
|
73
|
+
* @generated from field: string jid = 1;
|
|
74
|
+
*/
|
|
75
|
+
jid: string;
|
|
76
|
+
/**
|
|
77
|
+
* Bare JID of peer_id
|
|
78
|
+
*
|
|
79
|
+
* @generated from field: string peer_jid = 2;
|
|
80
|
+
*/
|
|
81
|
+
peerJid: string;
|
|
82
|
+
constructor(data?: PartialMessage<OpenConversationResponse>);
|
|
83
|
+
static readonly runtime: typeof proto3;
|
|
84
|
+
static readonly typeName = "skirnir.OpenConversationResponse";
|
|
85
|
+
static readonly fields: FieldList;
|
|
86
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OpenConversationResponse;
|
|
87
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OpenConversationResponse;
|
|
88
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OpenConversationResponse;
|
|
89
|
+
static equals(a: OpenConversationResponse | PlainMessage<OpenConversationResponse> | undefined, b: OpenConversationResponse | PlainMessage<OpenConversationResponse> | undefined): boolean;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* @generated from message skirnir.CloseConversationRequest
|
|
93
|
+
*/
|
|
94
|
+
declare class CloseConversationRequest extends Message<CloseConversationRequest> {
|
|
95
|
+
/**
|
|
96
|
+
* @generated from field: string user_id = 1;
|
|
97
|
+
*/
|
|
98
|
+
userId: string;
|
|
99
|
+
/**
|
|
100
|
+
* @generated from field: string peer_id = 2;
|
|
101
|
+
*/
|
|
102
|
+
peerId: string;
|
|
103
|
+
constructor(data?: PartialMessage<CloseConversationRequest>);
|
|
104
|
+
static readonly runtime: typeof proto3;
|
|
105
|
+
static readonly typeName = "skirnir.CloseConversationRequest";
|
|
106
|
+
static readonly fields: FieldList;
|
|
107
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CloseConversationRequest;
|
|
108
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CloseConversationRequest;
|
|
109
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CloseConversationRequest;
|
|
110
|
+
static equals(a: CloseConversationRequest | PlainMessage<CloseConversationRequest> | undefined, b: CloseConversationRequest | PlainMessage<CloseConversationRequest> | undefined): boolean;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* @generated from message skirnir.CloseConversationResponse
|
|
114
|
+
*/
|
|
115
|
+
declare class CloseConversationResponse extends Message<CloseConversationResponse> {
|
|
116
|
+
constructor(data?: PartialMessage<CloseConversationResponse>);
|
|
117
|
+
static readonly runtime: typeof proto3;
|
|
118
|
+
static readonly typeName = "skirnir.CloseConversationResponse";
|
|
119
|
+
static readonly fields: FieldList;
|
|
120
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CloseConversationResponse;
|
|
121
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CloseConversationResponse;
|
|
122
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CloseConversationResponse;
|
|
123
|
+
static equals(a: CloseConversationResponse | PlainMessage<CloseConversationResponse> | undefined, b: CloseConversationResponse | PlainMessage<CloseConversationResponse> | undefined): boolean;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* @generated from message skirnir.IssueTokenRequest
|
|
127
|
+
*/
|
|
128
|
+
declare class IssueTokenRequest extends Message<IssueTokenRequest> {
|
|
129
|
+
/**
|
|
130
|
+
* @generated from field: string user_id = 1;
|
|
131
|
+
*/
|
|
132
|
+
userId: string;
|
|
133
|
+
/**
|
|
134
|
+
* 0 applies the default of 1 hour; values above 24 hours are capped to 24
|
|
135
|
+
* hours rather than rejected. The effective expiry is in the response.
|
|
136
|
+
*
|
|
137
|
+
* @generated from field: uint32 ttl_seconds = 2;
|
|
138
|
+
*/
|
|
139
|
+
ttlSeconds: number;
|
|
140
|
+
constructor(data?: PartialMessage<IssueTokenRequest>);
|
|
141
|
+
static readonly runtime: typeof proto3;
|
|
142
|
+
static readonly typeName = "skirnir.IssueTokenRequest";
|
|
143
|
+
static readonly fields: FieldList;
|
|
144
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IssueTokenRequest;
|
|
145
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IssueTokenRequest;
|
|
146
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IssueTokenRequest;
|
|
147
|
+
static equals(a: IssueTokenRequest | PlainMessage<IssueTokenRequest> | undefined, b: IssueTokenRequest | PlainMessage<IssueTokenRequest> | undefined): boolean;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* @generated from message skirnir.IssueTokenResponse
|
|
151
|
+
*/
|
|
152
|
+
declare class IssueTokenResponse extends Message<IssueTokenResponse> {
|
|
153
|
+
/**
|
|
154
|
+
* @generated from field: string token = 1;
|
|
155
|
+
*/
|
|
156
|
+
token: string;
|
|
157
|
+
/**
|
|
158
|
+
* Bare JID to log in as
|
|
159
|
+
*
|
|
160
|
+
* @generated from field: string jid = 2;
|
|
161
|
+
*/
|
|
162
|
+
jid: string;
|
|
163
|
+
/**
|
|
164
|
+
* Unix seconds
|
|
165
|
+
*
|
|
166
|
+
* @generated from field: int64 expires_at = 3;
|
|
167
|
+
*/
|
|
168
|
+
expiresAt: any;
|
|
169
|
+
constructor(data?: PartialMessage<IssueTokenResponse>);
|
|
170
|
+
static readonly runtime: typeof proto3;
|
|
171
|
+
static readonly typeName = "skirnir.IssueTokenResponse";
|
|
172
|
+
static readonly fields: FieldList;
|
|
173
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IssueTokenResponse;
|
|
174
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IssueTokenResponse;
|
|
175
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IssueTokenResponse;
|
|
176
|
+
static equals(a: IssueTokenResponse | PlainMessage<IssueTokenResponse> | undefined, b: IssueTokenResponse | PlainMessage<IssueTokenResponse> | undefined): boolean;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* @generated from message skirnir.SetUserBannedRequest
|
|
180
|
+
*/
|
|
181
|
+
declare class SetUserBannedRequest extends Message<SetUserBannedRequest> {
|
|
182
|
+
/**
|
|
183
|
+
* @generated from field: string user_id = 1;
|
|
184
|
+
*/
|
|
185
|
+
userId: string;
|
|
186
|
+
/**
|
|
187
|
+
* @generated from field: bool banned = 2;
|
|
188
|
+
*/
|
|
189
|
+
banned: boolean;
|
|
190
|
+
constructor(data?: PartialMessage<SetUserBannedRequest>);
|
|
191
|
+
static readonly runtime: typeof proto3;
|
|
192
|
+
static readonly typeName = "skirnir.SetUserBannedRequest";
|
|
193
|
+
static readonly fields: FieldList;
|
|
194
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetUserBannedRequest;
|
|
195
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetUserBannedRequest;
|
|
196
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetUserBannedRequest;
|
|
197
|
+
static equals(a: SetUserBannedRequest | PlainMessage<SetUserBannedRequest> | undefined, b: SetUserBannedRequest | PlainMessage<SetUserBannedRequest> | undefined): boolean;
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* @generated from message skirnir.SetUserBannedResponse
|
|
201
|
+
*/
|
|
202
|
+
declare class SetUserBannedResponse extends Message<SetUserBannedResponse> {
|
|
203
|
+
constructor(data?: PartialMessage<SetUserBannedResponse>);
|
|
204
|
+
static readonly runtime: typeof proto3;
|
|
205
|
+
static readonly typeName = "skirnir.SetUserBannedResponse";
|
|
206
|
+
static readonly fields: FieldList;
|
|
207
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetUserBannedResponse;
|
|
208
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetUserBannedResponse;
|
|
209
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetUserBannedResponse;
|
|
210
|
+
static equals(a: SetUserBannedResponse | PlainMessage<SetUserBannedResponse> | undefined, b: SetUserBannedResponse | PlainMessage<SetUserBannedResponse> | undefined): boolean;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* @generated from message skirnir.DeleteUserRequest
|
|
214
|
+
*/
|
|
215
|
+
declare class DeleteUserRequest extends Message<DeleteUserRequest> {
|
|
216
|
+
/**
|
|
217
|
+
* @generated from field: string user_id = 1;
|
|
218
|
+
*/
|
|
219
|
+
userId: string;
|
|
220
|
+
constructor(data?: PartialMessage<DeleteUserRequest>);
|
|
221
|
+
static readonly runtime: typeof proto3;
|
|
222
|
+
static readonly typeName = "skirnir.DeleteUserRequest";
|
|
223
|
+
static readonly fields: FieldList;
|
|
224
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteUserRequest;
|
|
225
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteUserRequest;
|
|
226
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteUserRequest;
|
|
227
|
+
static equals(a: DeleteUserRequest | PlainMessage<DeleteUserRequest> | undefined, b: DeleteUserRequest | PlainMessage<DeleteUserRequest> | undefined): boolean;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* @generated from message skirnir.DeleteUserResponse
|
|
231
|
+
*/
|
|
232
|
+
declare class DeleteUserResponse extends Message<DeleteUserResponse> {
|
|
233
|
+
constructor(data?: PartialMessage<DeleteUserResponse>);
|
|
234
|
+
static readonly runtime: typeof proto3;
|
|
235
|
+
static readonly typeName = "skirnir.DeleteUserResponse";
|
|
236
|
+
static readonly fields: FieldList;
|
|
237
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteUserResponse;
|
|
238
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteUserResponse;
|
|
239
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteUserResponse;
|
|
240
|
+
static equals(a: DeleteUserResponse | PlainMessage<DeleteUserResponse> | undefined, b: DeleteUserResponse | PlainMessage<DeleteUserResponse> | undefined): boolean;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export { CloseConversationRequest, CloseConversationResponse, DeleteUserRequest, DeleteUserResponse, EnsureUsersRequest, EnsureUsersResponse, IssueTokenRequest, IssueTokenResponse, OpenConversationRequest, OpenConversationResponse, SetUserBannedRequest, SetUserBannedResponse };
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import { Message, PartialMessage, proto3, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @generated from message skirnir.EnsureUsersRequest
|
|
5
|
+
*/
|
|
6
|
+
declare class EnsureUsersRequest extends Message<EnsureUsersRequest> {
|
|
7
|
+
/**
|
|
8
|
+
* daily.dev user ids, at most 100
|
|
9
|
+
*
|
|
10
|
+
* @generated from field: repeated string user_ids = 1;
|
|
11
|
+
*/
|
|
12
|
+
userIds: string[];
|
|
13
|
+
constructor(data?: PartialMessage<EnsureUsersRequest>);
|
|
14
|
+
static readonly runtime: typeof proto3;
|
|
15
|
+
static readonly typeName = "skirnir.EnsureUsersRequest";
|
|
16
|
+
static readonly fields: FieldList;
|
|
17
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EnsureUsersRequest;
|
|
18
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EnsureUsersRequest;
|
|
19
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EnsureUsersRequest;
|
|
20
|
+
static equals(a: EnsureUsersRequest | PlainMessage<EnsureUsersRequest> | undefined, b: EnsureUsersRequest | PlainMessage<EnsureUsersRequest> | undefined): boolean;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @generated from message skirnir.EnsureUsersResponse
|
|
24
|
+
*/
|
|
25
|
+
declare class EnsureUsersResponse extends Message<EnsureUsersResponse> {
|
|
26
|
+
/**
|
|
27
|
+
* The subset that had to be registered
|
|
28
|
+
*
|
|
29
|
+
* @generated from field: repeated string created_user_ids = 1;
|
|
30
|
+
*/
|
|
31
|
+
createdUserIds: string[];
|
|
32
|
+
constructor(data?: PartialMessage<EnsureUsersResponse>);
|
|
33
|
+
static readonly runtime: typeof proto3;
|
|
34
|
+
static readonly typeName = "skirnir.EnsureUsersResponse";
|
|
35
|
+
static readonly fields: FieldList;
|
|
36
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EnsureUsersResponse;
|
|
37
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EnsureUsersResponse;
|
|
38
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EnsureUsersResponse;
|
|
39
|
+
static equals(a: EnsureUsersResponse | PlainMessage<EnsureUsersResponse> | undefined, b: EnsureUsersResponse | PlainMessage<EnsureUsersResponse> | undefined): boolean;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* @generated from message skirnir.OpenConversationRequest
|
|
43
|
+
*/
|
|
44
|
+
declare class OpenConversationRequest extends Message<OpenConversationRequest> {
|
|
45
|
+
/**
|
|
46
|
+
* daily.dev id of the user starting the conversation
|
|
47
|
+
*
|
|
48
|
+
* @generated from field: string user_id = 1;
|
|
49
|
+
*/
|
|
50
|
+
userId: string;
|
|
51
|
+
/**
|
|
52
|
+
* daily.dev id of the other user
|
|
53
|
+
*
|
|
54
|
+
* @generated from field: string peer_id = 2;
|
|
55
|
+
*/
|
|
56
|
+
peerId: string;
|
|
57
|
+
constructor(data?: PartialMessage<OpenConversationRequest>);
|
|
58
|
+
static readonly runtime: typeof proto3;
|
|
59
|
+
static readonly typeName = "skirnir.OpenConversationRequest";
|
|
60
|
+
static readonly fields: FieldList;
|
|
61
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OpenConversationRequest;
|
|
62
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OpenConversationRequest;
|
|
63
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OpenConversationRequest;
|
|
64
|
+
static equals(a: OpenConversationRequest | PlainMessage<OpenConversationRequest> | undefined, b: OpenConversationRequest | PlainMessage<OpenConversationRequest> | undefined): boolean;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* @generated from message skirnir.OpenConversationResponse
|
|
68
|
+
*/
|
|
69
|
+
declare class OpenConversationResponse extends Message<OpenConversationResponse> {
|
|
70
|
+
/**
|
|
71
|
+
* Bare JID of user_id
|
|
72
|
+
*
|
|
73
|
+
* @generated from field: string jid = 1;
|
|
74
|
+
*/
|
|
75
|
+
jid: string;
|
|
76
|
+
/**
|
|
77
|
+
* Bare JID of peer_id
|
|
78
|
+
*
|
|
79
|
+
* @generated from field: string peer_jid = 2;
|
|
80
|
+
*/
|
|
81
|
+
peerJid: string;
|
|
82
|
+
constructor(data?: PartialMessage<OpenConversationResponse>);
|
|
83
|
+
static readonly runtime: typeof proto3;
|
|
84
|
+
static readonly typeName = "skirnir.OpenConversationResponse";
|
|
85
|
+
static readonly fields: FieldList;
|
|
86
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OpenConversationResponse;
|
|
87
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OpenConversationResponse;
|
|
88
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OpenConversationResponse;
|
|
89
|
+
static equals(a: OpenConversationResponse | PlainMessage<OpenConversationResponse> | undefined, b: OpenConversationResponse | PlainMessage<OpenConversationResponse> | undefined): boolean;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* @generated from message skirnir.CloseConversationRequest
|
|
93
|
+
*/
|
|
94
|
+
declare class CloseConversationRequest extends Message<CloseConversationRequest> {
|
|
95
|
+
/**
|
|
96
|
+
* @generated from field: string user_id = 1;
|
|
97
|
+
*/
|
|
98
|
+
userId: string;
|
|
99
|
+
/**
|
|
100
|
+
* @generated from field: string peer_id = 2;
|
|
101
|
+
*/
|
|
102
|
+
peerId: string;
|
|
103
|
+
constructor(data?: PartialMessage<CloseConversationRequest>);
|
|
104
|
+
static readonly runtime: typeof proto3;
|
|
105
|
+
static readonly typeName = "skirnir.CloseConversationRequest";
|
|
106
|
+
static readonly fields: FieldList;
|
|
107
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CloseConversationRequest;
|
|
108
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CloseConversationRequest;
|
|
109
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CloseConversationRequest;
|
|
110
|
+
static equals(a: CloseConversationRequest | PlainMessage<CloseConversationRequest> | undefined, b: CloseConversationRequest | PlainMessage<CloseConversationRequest> | undefined): boolean;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* @generated from message skirnir.CloseConversationResponse
|
|
114
|
+
*/
|
|
115
|
+
declare class CloseConversationResponse extends Message<CloseConversationResponse> {
|
|
116
|
+
constructor(data?: PartialMessage<CloseConversationResponse>);
|
|
117
|
+
static readonly runtime: typeof proto3;
|
|
118
|
+
static readonly typeName = "skirnir.CloseConversationResponse";
|
|
119
|
+
static readonly fields: FieldList;
|
|
120
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CloseConversationResponse;
|
|
121
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CloseConversationResponse;
|
|
122
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CloseConversationResponse;
|
|
123
|
+
static equals(a: CloseConversationResponse | PlainMessage<CloseConversationResponse> | undefined, b: CloseConversationResponse | PlainMessage<CloseConversationResponse> | undefined): boolean;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* @generated from message skirnir.IssueTokenRequest
|
|
127
|
+
*/
|
|
128
|
+
declare class IssueTokenRequest extends Message<IssueTokenRequest> {
|
|
129
|
+
/**
|
|
130
|
+
* @generated from field: string user_id = 1;
|
|
131
|
+
*/
|
|
132
|
+
userId: string;
|
|
133
|
+
/**
|
|
134
|
+
* 0 applies the default of 1 hour; values above 24 hours are capped to 24
|
|
135
|
+
* hours rather than rejected. The effective expiry is in the response.
|
|
136
|
+
*
|
|
137
|
+
* @generated from field: uint32 ttl_seconds = 2;
|
|
138
|
+
*/
|
|
139
|
+
ttlSeconds: number;
|
|
140
|
+
constructor(data?: PartialMessage<IssueTokenRequest>);
|
|
141
|
+
static readonly runtime: typeof proto3;
|
|
142
|
+
static readonly typeName = "skirnir.IssueTokenRequest";
|
|
143
|
+
static readonly fields: FieldList;
|
|
144
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IssueTokenRequest;
|
|
145
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IssueTokenRequest;
|
|
146
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IssueTokenRequest;
|
|
147
|
+
static equals(a: IssueTokenRequest | PlainMessage<IssueTokenRequest> | undefined, b: IssueTokenRequest | PlainMessage<IssueTokenRequest> | undefined): boolean;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* @generated from message skirnir.IssueTokenResponse
|
|
151
|
+
*/
|
|
152
|
+
declare class IssueTokenResponse extends Message<IssueTokenResponse> {
|
|
153
|
+
/**
|
|
154
|
+
* @generated from field: string token = 1;
|
|
155
|
+
*/
|
|
156
|
+
token: string;
|
|
157
|
+
/**
|
|
158
|
+
* Bare JID to log in as
|
|
159
|
+
*
|
|
160
|
+
* @generated from field: string jid = 2;
|
|
161
|
+
*/
|
|
162
|
+
jid: string;
|
|
163
|
+
/**
|
|
164
|
+
* Unix seconds
|
|
165
|
+
*
|
|
166
|
+
* @generated from field: int64 expires_at = 3;
|
|
167
|
+
*/
|
|
168
|
+
expiresAt: any;
|
|
169
|
+
constructor(data?: PartialMessage<IssueTokenResponse>);
|
|
170
|
+
static readonly runtime: typeof proto3;
|
|
171
|
+
static readonly typeName = "skirnir.IssueTokenResponse";
|
|
172
|
+
static readonly fields: FieldList;
|
|
173
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IssueTokenResponse;
|
|
174
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IssueTokenResponse;
|
|
175
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IssueTokenResponse;
|
|
176
|
+
static equals(a: IssueTokenResponse | PlainMessage<IssueTokenResponse> | undefined, b: IssueTokenResponse | PlainMessage<IssueTokenResponse> | undefined): boolean;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* @generated from message skirnir.SetUserBannedRequest
|
|
180
|
+
*/
|
|
181
|
+
declare class SetUserBannedRequest extends Message<SetUserBannedRequest> {
|
|
182
|
+
/**
|
|
183
|
+
* @generated from field: string user_id = 1;
|
|
184
|
+
*/
|
|
185
|
+
userId: string;
|
|
186
|
+
/**
|
|
187
|
+
* @generated from field: bool banned = 2;
|
|
188
|
+
*/
|
|
189
|
+
banned: boolean;
|
|
190
|
+
constructor(data?: PartialMessage<SetUserBannedRequest>);
|
|
191
|
+
static readonly runtime: typeof proto3;
|
|
192
|
+
static readonly typeName = "skirnir.SetUserBannedRequest";
|
|
193
|
+
static readonly fields: FieldList;
|
|
194
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetUserBannedRequest;
|
|
195
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetUserBannedRequest;
|
|
196
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetUserBannedRequest;
|
|
197
|
+
static equals(a: SetUserBannedRequest | PlainMessage<SetUserBannedRequest> | undefined, b: SetUserBannedRequest | PlainMessage<SetUserBannedRequest> | undefined): boolean;
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* @generated from message skirnir.SetUserBannedResponse
|
|
201
|
+
*/
|
|
202
|
+
declare class SetUserBannedResponse extends Message<SetUserBannedResponse> {
|
|
203
|
+
constructor(data?: PartialMessage<SetUserBannedResponse>);
|
|
204
|
+
static readonly runtime: typeof proto3;
|
|
205
|
+
static readonly typeName = "skirnir.SetUserBannedResponse";
|
|
206
|
+
static readonly fields: FieldList;
|
|
207
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetUserBannedResponse;
|
|
208
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetUserBannedResponse;
|
|
209
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetUserBannedResponse;
|
|
210
|
+
static equals(a: SetUserBannedResponse | PlainMessage<SetUserBannedResponse> | undefined, b: SetUserBannedResponse | PlainMessage<SetUserBannedResponse> | undefined): boolean;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* @generated from message skirnir.DeleteUserRequest
|
|
214
|
+
*/
|
|
215
|
+
declare class DeleteUserRequest extends Message<DeleteUserRequest> {
|
|
216
|
+
/**
|
|
217
|
+
* @generated from field: string user_id = 1;
|
|
218
|
+
*/
|
|
219
|
+
userId: string;
|
|
220
|
+
constructor(data?: PartialMessage<DeleteUserRequest>);
|
|
221
|
+
static readonly runtime: typeof proto3;
|
|
222
|
+
static readonly typeName = "skirnir.DeleteUserRequest";
|
|
223
|
+
static readonly fields: FieldList;
|
|
224
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteUserRequest;
|
|
225
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteUserRequest;
|
|
226
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteUserRequest;
|
|
227
|
+
static equals(a: DeleteUserRequest | PlainMessage<DeleteUserRequest> | undefined, b: DeleteUserRequest | PlainMessage<DeleteUserRequest> | undefined): boolean;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* @generated from message skirnir.DeleteUserResponse
|
|
231
|
+
*/
|
|
232
|
+
declare class DeleteUserResponse extends Message<DeleteUserResponse> {
|
|
233
|
+
constructor(data?: PartialMessage<DeleteUserResponse>);
|
|
234
|
+
static readonly runtime: typeof proto3;
|
|
235
|
+
static readonly typeName = "skirnir.DeleteUserResponse";
|
|
236
|
+
static readonly fields: FieldList;
|
|
237
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteUserResponse;
|
|
238
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteUserResponse;
|
|
239
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteUserResponse;
|
|
240
|
+
static equals(a: DeleteUserResponse | PlainMessage<DeleteUserResponse> | undefined, b: DeleteUserResponse | PlainMessage<DeleteUserResponse> | undefined): boolean;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export { CloseConversationRequest, CloseConversationResponse, DeleteUserRequest, DeleteUserResponse, EnsureUsersRequest, EnsureUsersResponse, IssueTokenRequest, IssueTokenResponse, OpenConversationRequest, OpenConversationResponse, SetUserBannedRequest, SetUserBannedResponse };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Message as t,proto3 as r,protoInt64 as s}from"@bufbuild/protobuf";class e extends t{userIds=[];constructor(t){super(),r.util.initPartial(t,this)}static runtime=r;static typeName="skirnir.EnsureUsersRequest";static fields=r.util.newFieldList((()=>[{no:1,name:"user_ids",kind:"scalar",T:9,repeated:!0}]));static fromBinary(t,r){return(new e).fromBinary(t,r)}static fromJson(t,r){return(new e).fromJson(t,r)}static fromJsonString(t,r){return(new e).fromJsonString(t,r)}static equals(t,s){return r.util.equals(e,t,s)}}class n extends t{createdUserIds=[];constructor(t){super(),r.util.initPartial(t,this)}static runtime=r;static typeName="skirnir.EnsureUsersResponse";static fields=r.util.newFieldList((()=>[{no:1,name:"created_user_ids",kind:"scalar",T:9,repeated:!0}]));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,s){return r.util.equals(n,t,s)}}class i extends t{userId="";peerId="";constructor(t){super(),r.util.initPartial(t,this)}static runtime=r;static typeName="skirnir.OpenConversationRequest";static fields=r.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 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,s){return r.util.equals(i,t,s)}}class a extends t{jid="";peerJid="";constructor(t){super(),r.util.initPartial(t,this)}static runtime=r;static typeName="skirnir.OpenConversationResponse";static fields=r.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 a).fromBinary(t,r)}static fromJson(t,r){return(new a).fromJson(t,r)}static fromJsonString(t,r){return(new a).fromJsonString(t,r)}static equals(t,s){return r.util.equals(a,t,s)}}class o extends t{userId="";peerId="";constructor(t){super(),r.util.initPartial(t,this)}static runtime=r;static typeName="skirnir.CloseConversationRequest";static fields=r.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 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,s){return r.util.equals(o,t,s)}}class u extends t{constructor(t){super(),r.util.initPartial(t,this)}static runtime=r;static typeName="skirnir.CloseConversationResponse";static fields=r.util.newFieldList((()=>[]));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,s){return r.util.equals(u,t,s)}}class c extends t{userId="";ttlSeconds=0;constructor(t){super(),r.util.initPartial(t,this)}static runtime=r;static typeName="skirnir.IssueTokenRequest";static fields=r.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 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,s){return r.util.equals(c,t,s)}}class l extends t{token="";jid="";expiresAt=s.zero;constructor(t){super(),r.util.initPartial(t,this)}static runtime=r;static typeName="skirnir.IssueTokenResponse";static fields=r.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 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,s){return r.util.equals(l,t,s)}}class m extends t{userId="";banned=!1;constructor(t){super(),r.util.initPartial(t,this)}static runtime=r;static typeName="skirnir.SetUserBannedRequest";static fields=r.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 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,s){return r.util.equals(m,t,s)}}class d extends t{constructor(t){super(),r.util.initPartial(t,this)}static runtime=r;static typeName="skirnir.SetUserBannedResponse";static fields=r.util.newFieldList((()=>[]));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,s){return r.util.equals(d,t,s)}}class f extends t{userId="";constructor(t){super(),r.util.initPartial(t,this)}static runtime=r;static typeName="skirnir.DeleteUserRequest";static fields=r.util.newFieldList((()=>[{no:1,name:"user_id",kind:"scalar",T:9}]));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,s){return r.util.equals(f,t,s)}}class J extends t{constructor(t){super(),r.util.initPartial(t,this)}static runtime=r;static typeName="skirnir.DeleteUserResponse";static fields=r.util.newFieldList((()=>[]));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,s){return r.util.equals(J,t,s)}}export{o as CloseConversationRequest,u as CloseConversationResponse,f as DeleteUserRequest,J as DeleteUserResponse,e as EnsureUsersRequest,n as EnsureUsersResponse,c as IssueTokenRequest,l as IssueTokenResponse,i as OpenConversationRequest,a as OpenConversationResponse,m as SetUserBannedRequest,d as SetUserBannedResponse};
|