@dailydotdev/schema 0.3.22 → 0.3.24
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/bragi/pipelines_connect.cjs +1 -1
- package/dist/bragi/pipelines_connect.d.cts +12 -1
- package/dist/bragi/pipelines_connect.d.ts +12 -1
- package/dist/bragi/pipelines_connect.js +1 -1
- package/dist/bragi/pipelines_pb.cjs +1 -1
- package/dist/bragi/pipelines_pb.d.cts +155 -1
- package/dist/bragi/pipelines_pb.d.ts +155 -1
- package/dist/bragi/pipelines_pb.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1 -1
- package/dist/skirnir/skirnir_connect.cjs +1 -0
- package/dist/skirnir/skirnir_connect.d.cts +66 -0
- package/dist/skirnir/skirnir_connect.d.ts +66 -0
- package/dist/skirnir/skirnir_connect.js +1 -0
- package/dist/skirnir/skirnir_pb.cjs +1 -0
- package/dist/skirnir/skirnir_pb.d.cts +178 -0
- package/dist/skirnir/skirnir_pb.d.ts +178 -0
- package/dist/skirnir/skirnir_pb.js +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { UserFeedbackCategory, UserFeedbackClassification, UserFeedbackSentiment, UserFeedbackTeam, UserFeedbackUrgency } from './bragi/feedback_pb.js';
|
|
2
2
|
export { Pipelines } from './bragi/pipelines_connect.js';
|
|
3
|
-
export { ActivityItem, AggregateMemoryRequest, AlternativeTitleRequest, AlternativeTitleResponse, AnalyzeImageRequest, AnalyzeImageResponse, Applicant, ApplicationEval, ApplicationScreeningRequest, ApplicationScreeningResponse, AssessmentStatus, AudienceFitRequest, AudienceFitResponse, BriefResponse, CandidateReasoningRequest, CandidateReasoningResponse, ChannelHighlightCandidateItem, ChannelHighlightCurrentItem, ChannelHighlightResultItem, ChannelHighlightSignificance, ChannelHighlightUpgrade, Claim, ClaimChangeType, ClaimDirectness, ClaimEntityKind, ClassifyCommentSpamRequest, ClassifyCommentSpamResponse, ClassifyGearRequest, ClassifyGearResponse, ClassifyPostSpamRequest, ClassifyPostSpamResponse, ClassifyRejectionFeedbackRequest, ClassifyRejectionFeedbackResponse, ClassifyUserFeedbackRequest, ClassifyUserFeedbackResponse, ClassifyUserSpamRequest, ClassifyUserSpamResponse, ClickbaitProbabilityRequest, ClickbaitProbabilityResponse, ClusterReconciliationRequest, ClusterReconciliationResponse, CollectionContent, CollectionPostInput, CommunityTakeBreakdown, CommunityTakeComment, CommunityTakeDiscussion, CommunityTakeLean, CommunityTakeRequest, CommunityTakeResponse, CommunityTakeSource, ContentFormat, ContentIntent, ContextBuildingStrategy, EnrichRequest, EnrichResponse, EnrichResponseV2, EntitySentimentClassification, EvaluateChannelHighlightsRequest, EvaluateChannelHighlightsResponse, ExtractClaimsRequest, ExtractClaimsResponse, ExtractToolFactsRequest, ExtractToolFactsResponse, ExtractedProfileTag, FeedbackCategory, FeedbackClassification, FeedbackPlatform, FeedbackSentiment, FeedbackUrgency, FilterSearchRequest, FilterSearchResponse, FindCompanyNewsRequest, FindCompanyNewsResponse, FindContactActivityRequest, FindContactActivityResponse, FindJobVacanciesRequest, FindJobVacanciesResponse, GearCategory, GenerateCollectionRequest, GenerateCollectionResponse, GenerateRecruiterEmailRequest, GenerateRecruiterEmailResponse, GenerateTagsResponse, GitHubProfileTagsRequest, GitHubProfileTagsResponse, GuessWhoQuizPersona, GuessWhoQuizQAPair, GuessWhoQuizQuestion, GuessWhoQuizRequest, GuessWhoQuizResponse, IsPageInCacheRequest, IsPageInCacheResponse, JobPostDimensions, JobPostEnrichRequest, JobPostEnrichResponse, JobVacancy, MemoryRequest, MemoryResponse, MultipleSearchQueriesResponse, NewsItem, NextPersonaQuizQuestionRequest, NextPersonaQuizQuestionResponse, OnboardingProfileTagsRequest, OnboardingProfileTagsResponse, ParseCVRequest, ParseCVResponse, ParseError, ParseFeedbackRequest, ParseFeedbackResponse, ParseOpportunityRequest, ParseOpportunityResponse, PersonaQuizOption, PersonaQuizQAPair, PersonaQuizQuestion, PersonaQuizRevealRequest, PersonaQuizRevealResponse, PersonaQuizRevealText, PersonalizedBriefingRequest, PostDimensions, PostDimensionsV2, PostQuestion, ProcessIsolatedRequest, ProcessStoriesResponse, RecruiterOpportunity, RejectionFeedbackClassification, RejectionReason, RejectionReasonDetail, ResolveOrganizationRequest, ResolveOrganizationResponse, ScrapedPage, ScreeningQuestionsRequest, ScreeningQuestionsResponse, SearchAnswerRequest, SearchPromptRequest, SearchPromptResponse, SearchPromptV2Request, SearchQueryRequest, SearchQueryResponse, SentimentAnalysisRequest, SentimentAnalysisResponse, SentimentLabel, SimpleParseCVRequest, SimpleParseCVResponse, SmartPromptRequest, SpamAuthor, StoryAnalysisRequest, StoryDeduplicationRequest, StoryDeduplicationResponse, Tag, TagRole, TagSeniorityRequest, TagSeniorityResponse, TagSeniorityStatus, ToolFactItem, TopicalDigest, TopicalDigestItem, TopicalDigestPost, TopicalDigestRequest, ValidateCollectionCoherenceRequest, ValidateCollectionCoherenceResponse, ValueDelivery, WarmIntroRequest, WarmIntroResponse } from './bragi/pipelines_pb.js';
|
|
3
|
+
export { ActivityItem, AggregateMemoryRequest, AlternativeTitleRequest, AlternativeTitleResponse, AnalyzeImageRequest, AnalyzeImageResponse, Applicant, ApplicationEval, ApplicationScreeningRequest, ApplicationScreeningResponse, AssessmentStatus, AudienceFitRequest, AudienceFitResponse, BriefResponse, CandidateReasoningRequest, CandidateReasoningResponse, ChannelHighlightCandidateItem, ChannelHighlightCurrentItem, ChannelHighlightResultItem, ChannelHighlightSignificance, ChannelHighlightUpgrade, Claim, ClaimChangeType, ClaimDirectness, ClaimEntityKind, ClassifyCommentSpamRequest, ClassifyCommentSpamResponse, ClassifyGearRequest, ClassifyGearResponse, ClassifyPostSpamRequest, ClassifyPostSpamResponse, ClassifyReferralAbuseRequest, ClassifyReferralAbuseResponse, ClassifyRejectionFeedbackRequest, ClassifyRejectionFeedbackResponse, ClassifyUserFeedbackRequest, ClassifyUserFeedbackResponse, ClassifyUserSpamRequest, ClassifyUserSpamResponse, ClickbaitProbabilityRequest, ClickbaitProbabilityResponse, ClusterReconciliationRequest, ClusterReconciliationResponse, CollectionContent, CollectionPostInput, CommunityTakeBreakdown, CommunityTakeComment, CommunityTakeDiscussion, CommunityTakeLean, CommunityTakeRequest, CommunityTakeResponse, CommunityTakeSource, ContentFormat, ContentIntent, ContextBuildingStrategy, EnrichRequest, EnrichResponse, EnrichResponseV2, EntitySentimentClassification, EvaluateChannelHighlightsRequest, EvaluateChannelHighlightsResponse, ExtractClaimsRequest, ExtractClaimsResponse, ExtractToolFactsRequest, ExtractToolFactsResponse, ExtractedProfileTag, FeedbackCategory, FeedbackClassification, FeedbackPlatform, FeedbackSentiment, FeedbackUrgency, FilterSearchRequest, FilterSearchResponse, FindCompanyNewsRequest, FindCompanyNewsResponse, FindContactActivityRequest, FindContactActivityResponse, FindJobVacanciesRequest, FindJobVacanciesResponse, GearCategory, GenerateCollectionRequest, GenerateCollectionResponse, GenerateRecruiterEmailRequest, GenerateRecruiterEmailResponse, GenerateTagsResponse, GitHubProfileTagsRequest, GitHubProfileTagsResponse, GuessWhoQuizPersona, GuessWhoQuizQAPair, GuessWhoQuizQuestion, GuessWhoQuizRequest, GuessWhoQuizResponse, IsPageInCacheRequest, IsPageInCacheResponse, JobPostDimensions, JobPostEnrichRequest, JobPostEnrichResponse, JobVacancy, MemoryRequest, MemoryResponse, MultipleSearchQueriesResponse, NewsItem, NextPersonaQuizQuestionRequest, NextPersonaQuizQuestionResponse, OnboardingProfileTagsRequest, OnboardingProfileTagsResponse, ParseCVRequest, ParseCVResponse, ParseError, ParseFeedbackRequest, ParseFeedbackResponse, ParseOpportunityRequest, ParseOpportunityResponse, PersonaQuizOption, PersonaQuizQAPair, PersonaQuizQuestion, PersonaQuizRevealRequest, PersonaQuizRevealResponse, PersonaQuizRevealText, PersonalizedBriefingRequest, PostDimensions, PostDimensionsV2, PostQuestion, ProcessIsolatedRequest, ProcessStoriesResponse, RecruiterOpportunity, ReferralAccount, ReferralFriend, RejectionFeedbackClassification, RejectionReason, RejectionReasonDetail, ResolveOrganizationRequest, ResolveOrganizationResponse, ScrapedPage, ScreeningQuestionsRequest, ScreeningQuestionsResponse, SearchAnswerRequest, SearchPromptRequest, SearchPromptResponse, SearchPromptV2Request, SearchQueryRequest, SearchQueryResponse, SentimentAnalysisRequest, SentimentAnalysisResponse, SentimentLabel, SimpleParseCVRequest, SimpleParseCVResponse, SmartPromptRequest, SpamAuthor, StoryAnalysisRequest, StoryDeduplicationRequest, StoryDeduplicationResponse, Tag, TagRole, TagSeniorityRequest, TagSeniorityResponse, TagSeniorityStatus, ToolFactItem, TopicalDigest, TopicalDigestItem, TopicalDigestPost, TopicalDigestRequest, ValidateCollectionCoherenceRequest, ValidateCollectionCoherenceResponse, ValueDelivery, WarmIntroRequest, WarmIntroResponse } from './bragi/pipelines_pb.js';
|
|
4
4
|
export { LLMProxy } from './bragi/proxy_connect.js';
|
|
5
5
|
export { CacheControl, CacheControlType, ChatAudit, ChatDelta, ChatMessage, ChatRequest, ChatResponse, ChatStreamResponse, CompletionRequest, Embedding, EmbeddingRequest, EmbeddingResponse, ImageUrl, ModelProvider, ReasoningEffort, Usage, VisionContent, VisionMessage, VisionRequest } from './bragi/proxy_pb.js';
|
|
6
6
|
export { BrokkrService } from './brokkr/brokkr_connect.js';
|
|
@@ -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, EnsureUsersRequest, EnsureUsersResponse, IssueTokenRequest, IssueTokenResponse, OpenConversationRequest, OpenConversationResponse } 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,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,t={};((e,r)=>{for(var o in r)n(e,o,{get:r[o],enumerable:!0})})(t,{SkirnirService:()=>u}),module.exports=(e=t,((e,t,i,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let u of o(t))s.call(e,u)||u===i||n(e,u,{get:()=>t[u],enumerable:!(a=r(t,u))||a.enumerable});return e})(n({},"__esModule",{value:!0}),e));var i=require("./skirnir_pb.cjs"),a=require("@bufbuild/protobuf");const u={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}}};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { EnsureUsersRequest, EnsureUsersResponse, OpenConversationRequest, OpenConversationResponse, CloseConversationRequest, CloseConversationResponse, IssueTokenRequest, IssueTokenResponse } 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
|
+
* @generated from service skirnir.SkirnirService
|
|
9
|
+
*/
|
|
10
|
+
declare const SkirnirService: {
|
|
11
|
+
readonly typeName: "skirnir.SkirnirService";
|
|
12
|
+
readonly methods: {
|
|
13
|
+
/**
|
|
14
|
+
* Registers every given daily.dev user that has no chat account yet.
|
|
15
|
+
* Idempotent, so it doubles as a lazy backfill for users who signed up
|
|
16
|
+
* before chat existed.
|
|
17
|
+
*
|
|
18
|
+
* @generated from rpc skirnir.SkirnirService.EnsureUsers
|
|
19
|
+
*/
|
|
20
|
+
readonly ensureUsers: {
|
|
21
|
+
readonly name: "EnsureUsers";
|
|
22
|
+
readonly I: typeof EnsureUsersRequest;
|
|
23
|
+
readonly O: typeof EnsureUsersResponse;
|
|
24
|
+
readonly kind: any;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Allows two users to message each other by adding each to the other's
|
|
28
|
+
* roster. ejabberd only delivers direct messages between roster contacts.
|
|
29
|
+
* Idempotent.
|
|
30
|
+
*
|
|
31
|
+
* @generated from rpc skirnir.SkirnirService.OpenConversation
|
|
32
|
+
*/
|
|
33
|
+
readonly openConversation: {
|
|
34
|
+
readonly name: "OpenConversation";
|
|
35
|
+
readonly I: typeof OpenConversationRequest;
|
|
36
|
+
readonly O: typeof OpenConversationResponse;
|
|
37
|
+
readonly kind: any;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Revokes an open conversation, e.g. after either user blocks the other.
|
|
41
|
+
* Idempotent: closing a pair that never talked is a no-op.
|
|
42
|
+
*
|
|
43
|
+
* @generated from rpc skirnir.SkirnirService.CloseConversation
|
|
44
|
+
*/
|
|
45
|
+
readonly closeConversation: {
|
|
46
|
+
readonly name: "CloseConversation";
|
|
47
|
+
readonly I: typeof CloseConversationRequest;
|
|
48
|
+
readonly O: typeof CloseConversationResponse;
|
|
49
|
+
readonly kind: any;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Issues a short-lived token the client uses as its SASL X-OAUTH2 password
|
|
53
|
+
* on the websocket.
|
|
54
|
+
*
|
|
55
|
+
* @generated from rpc skirnir.SkirnirService.IssueToken
|
|
56
|
+
*/
|
|
57
|
+
readonly issueToken: {
|
|
58
|
+
readonly name: "IssueToken";
|
|
59
|
+
readonly I: typeof IssueTokenRequest;
|
|
60
|
+
readonly O: typeof IssueTokenResponse;
|
|
61
|
+
readonly kind: any;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export { SkirnirService };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { EnsureUsersRequest, EnsureUsersResponse, OpenConversationRequest, OpenConversationResponse, CloseConversationRequest, CloseConversationResponse, IssueTokenRequest, IssueTokenResponse } 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
|
+
* @generated from service skirnir.SkirnirService
|
|
9
|
+
*/
|
|
10
|
+
declare const SkirnirService: {
|
|
11
|
+
readonly typeName: "skirnir.SkirnirService";
|
|
12
|
+
readonly methods: {
|
|
13
|
+
/**
|
|
14
|
+
* Registers every given daily.dev user that has no chat account yet.
|
|
15
|
+
* Idempotent, so it doubles as a lazy backfill for users who signed up
|
|
16
|
+
* before chat existed.
|
|
17
|
+
*
|
|
18
|
+
* @generated from rpc skirnir.SkirnirService.EnsureUsers
|
|
19
|
+
*/
|
|
20
|
+
readonly ensureUsers: {
|
|
21
|
+
readonly name: "EnsureUsers";
|
|
22
|
+
readonly I: typeof EnsureUsersRequest;
|
|
23
|
+
readonly O: typeof EnsureUsersResponse;
|
|
24
|
+
readonly kind: any;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Allows two users to message each other by adding each to the other's
|
|
28
|
+
* roster. ejabberd only delivers direct messages between roster contacts.
|
|
29
|
+
* Idempotent.
|
|
30
|
+
*
|
|
31
|
+
* @generated from rpc skirnir.SkirnirService.OpenConversation
|
|
32
|
+
*/
|
|
33
|
+
readonly openConversation: {
|
|
34
|
+
readonly name: "OpenConversation";
|
|
35
|
+
readonly I: typeof OpenConversationRequest;
|
|
36
|
+
readonly O: typeof OpenConversationResponse;
|
|
37
|
+
readonly kind: any;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Revokes an open conversation, e.g. after either user blocks the other.
|
|
41
|
+
* Idempotent: closing a pair that never talked is a no-op.
|
|
42
|
+
*
|
|
43
|
+
* @generated from rpc skirnir.SkirnirService.CloseConversation
|
|
44
|
+
*/
|
|
45
|
+
readonly closeConversation: {
|
|
46
|
+
readonly name: "CloseConversation";
|
|
47
|
+
readonly I: typeof CloseConversationRequest;
|
|
48
|
+
readonly O: typeof CloseConversationResponse;
|
|
49
|
+
readonly kind: any;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Issues a short-lived token the client uses as its SASL X-OAUTH2 password
|
|
53
|
+
* on the websocket.
|
|
54
|
+
*
|
|
55
|
+
* @generated from rpc skirnir.SkirnirService.IssueToken
|
|
56
|
+
*/
|
|
57
|
+
readonly issueToken: {
|
|
58
|
+
readonly name: "IssueToken";
|
|
59
|
+
readonly I: typeof IssueTokenRequest;
|
|
60
|
+
readonly O: typeof IssueTokenResponse;
|
|
61
|
+
readonly kind: any;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export { SkirnirService };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{CloseConversationRequest as n,CloseConversationResponse as e,EnsureUsersRequest as r,EnsureUsersResponse as o,IssueTokenRequest as s,IssueTokenResponse as i,OpenConversationRequest as a,OpenConversationResponse as t}from"./skirnir_pb.ts";import{MethodKind as m}from"@bufbuild/protobuf";const k={typeName:"skirnir.SkirnirService",methods:{ensureUsers:{name:"EnsureUsers",I:r,O:o,kind:m.Unary},openConversation:{name:"OpenConversation",I:a,O:t,kind:m.Unary},closeConversation:{name:"CloseConversation",I:n,O:e,kind:m.Unary},issueToken:{name:"IssueToken",I:s,O:i,kind:m.Unary}}};export{k 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,EnsureUsersRequest:()=>a,EnsureUsersResponse:()=>u,IssueTokenRequest:()=>d,IssueTokenResponse:()=>f,OpenConversationRequest:()=>c,OpenConversationResponse:()=>l}),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 d 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 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 f 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 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)}}
|
|
@@ -0,0 +1,178 @@
|
|
|
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
|
|
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 lets skirnir apply its default
|
|
135
|
+
*
|
|
136
|
+
* @generated from field: uint32 ttl_seconds = 2;
|
|
137
|
+
*/
|
|
138
|
+
ttlSeconds: number;
|
|
139
|
+
constructor(data?: PartialMessage<IssueTokenRequest>);
|
|
140
|
+
static readonly runtime: typeof proto3;
|
|
141
|
+
static readonly typeName = "skirnir.IssueTokenRequest";
|
|
142
|
+
static readonly fields: FieldList;
|
|
143
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IssueTokenRequest;
|
|
144
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IssueTokenRequest;
|
|
145
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IssueTokenRequest;
|
|
146
|
+
static equals(a: IssueTokenRequest | PlainMessage<IssueTokenRequest> | undefined, b: IssueTokenRequest | PlainMessage<IssueTokenRequest> | undefined): boolean;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* @generated from message skirnir.IssueTokenResponse
|
|
150
|
+
*/
|
|
151
|
+
declare class IssueTokenResponse extends Message<IssueTokenResponse> {
|
|
152
|
+
/**
|
|
153
|
+
* @generated from field: string token = 1;
|
|
154
|
+
*/
|
|
155
|
+
token: string;
|
|
156
|
+
/**
|
|
157
|
+
* Bare JID to log in as
|
|
158
|
+
*
|
|
159
|
+
* @generated from field: string jid = 2;
|
|
160
|
+
*/
|
|
161
|
+
jid: string;
|
|
162
|
+
/**
|
|
163
|
+
* Unix seconds
|
|
164
|
+
*
|
|
165
|
+
* @generated from field: int64 expires_at = 3;
|
|
166
|
+
*/
|
|
167
|
+
expiresAt: any;
|
|
168
|
+
constructor(data?: PartialMessage<IssueTokenResponse>);
|
|
169
|
+
static readonly runtime: typeof proto3;
|
|
170
|
+
static readonly typeName = "skirnir.IssueTokenResponse";
|
|
171
|
+
static readonly fields: FieldList;
|
|
172
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IssueTokenResponse;
|
|
173
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IssueTokenResponse;
|
|
174
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IssueTokenResponse;
|
|
175
|
+
static equals(a: IssueTokenResponse | PlainMessage<IssueTokenResponse> | undefined, b: IssueTokenResponse | PlainMessage<IssueTokenResponse> | undefined): boolean;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export { CloseConversationRequest, CloseConversationResponse, EnsureUsersRequest, EnsureUsersResponse, IssueTokenRequest, IssueTokenResponse, OpenConversationRequest, OpenConversationResponse };
|
|
@@ -0,0 +1,178 @@
|
|
|
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
|
|
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 lets skirnir apply its default
|
|
135
|
+
*
|
|
136
|
+
* @generated from field: uint32 ttl_seconds = 2;
|
|
137
|
+
*/
|
|
138
|
+
ttlSeconds: number;
|
|
139
|
+
constructor(data?: PartialMessage<IssueTokenRequest>);
|
|
140
|
+
static readonly runtime: typeof proto3;
|
|
141
|
+
static readonly typeName = "skirnir.IssueTokenRequest";
|
|
142
|
+
static readonly fields: FieldList;
|
|
143
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IssueTokenRequest;
|
|
144
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IssueTokenRequest;
|
|
145
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IssueTokenRequest;
|
|
146
|
+
static equals(a: IssueTokenRequest | PlainMessage<IssueTokenRequest> | undefined, b: IssueTokenRequest | PlainMessage<IssueTokenRequest> | undefined): boolean;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* @generated from message skirnir.IssueTokenResponse
|
|
150
|
+
*/
|
|
151
|
+
declare class IssueTokenResponse extends Message<IssueTokenResponse> {
|
|
152
|
+
/**
|
|
153
|
+
* @generated from field: string token = 1;
|
|
154
|
+
*/
|
|
155
|
+
token: string;
|
|
156
|
+
/**
|
|
157
|
+
* Bare JID to log in as
|
|
158
|
+
*
|
|
159
|
+
* @generated from field: string jid = 2;
|
|
160
|
+
*/
|
|
161
|
+
jid: string;
|
|
162
|
+
/**
|
|
163
|
+
* Unix seconds
|
|
164
|
+
*
|
|
165
|
+
* @generated from field: int64 expires_at = 3;
|
|
166
|
+
*/
|
|
167
|
+
expiresAt: any;
|
|
168
|
+
constructor(data?: PartialMessage<IssueTokenResponse>);
|
|
169
|
+
static readonly runtime: typeof proto3;
|
|
170
|
+
static readonly typeName = "skirnir.IssueTokenResponse";
|
|
171
|
+
static readonly fields: FieldList;
|
|
172
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IssueTokenResponse;
|
|
173
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IssueTokenResponse;
|
|
174
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IssueTokenResponse;
|
|
175
|
+
static equals(a: IssueTokenResponse | PlainMessage<IssueTokenResponse> | undefined, b: IssueTokenResponse | PlainMessage<IssueTokenResponse> | undefined): boolean;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export { CloseConversationRequest, CloseConversationResponse, EnsureUsersRequest, EnsureUsersResponse, IssueTokenRequest, IssueTokenResponse, OpenConversationRequest, OpenConversationResponse };
|
|
@@ -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)}}export{o as CloseConversationRequest,u as CloseConversationResponse,e as EnsureUsersRequest,n as EnsureUsersResponse,c as IssueTokenRequest,l as IssueTokenResponse,i as OpenConversationRequest,a as OpenConversationResponse};
|