init
This commit is contained in:
14
node_modules/matrix-js-sdk/lib/@types/AESEncryptedSecretStoragePayload.d.ts
generated
vendored
Normal file
14
node_modules/matrix-js-sdk/lib/@types/AESEncryptedSecretStoragePayload.d.ts
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* An AES-encrypted secret storage payload.
|
||||
* See https://spec.matrix.org/v1.11/client-server-api/#msecret_storagev1aes-hmac-sha2-1
|
||||
*/
|
||||
export interface AESEncryptedSecretStoragePayload {
|
||||
[key: string]: any;
|
||||
/** the initialization vector in base64 */
|
||||
iv: string;
|
||||
/** the ciphertext in base64 */
|
||||
ciphertext: string;
|
||||
/** the HMAC in base64 */
|
||||
mac: string;
|
||||
}
|
||||
//# sourceMappingURL=AESEncryptedSecretStoragePayload.d.ts.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/AESEncryptedSecretStoragePayload.d.ts.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/AESEncryptedSecretStoragePayload.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"AESEncryptedSecretStoragePayload.d.ts","sourceRoot":"","sources":["../../src/@types/AESEncryptedSecretStoragePayload.ts"],"names":[],"mappings":"AAgBA;;;GAGG;AACH,MAAM,WAAW,gCAAgC;IAC7C,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IACnB,0CAA0C;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,+BAA+B;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,GAAG,EAAE,MAAM,CAAC;CACf"}
|
||||
3
node_modules/matrix-js-sdk/lib/@types/AESEncryptedSecretStoragePayload.js
generated
vendored
Normal file
3
node_modules/matrix-js-sdk/lib/@types/AESEncryptedSecretStoragePayload.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export {};
|
||||
export {};
|
||||
//# sourceMappingURL=AESEncryptedSecretStoragePayload.js.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/AESEncryptedSecretStoragePayload.js.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/AESEncryptedSecretStoragePayload.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"AESEncryptedSecretStoragePayload.js","names":[],"sources":["../../src/@types/AESEncryptedSecretStoragePayload.ts"],"sourcesContent":["/*\n * Copyright 2024 The Matrix.org Foundation C.I.C.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * An AES-encrypted secret storage payload.\n * See https://spec.matrix.org/v1.11/client-server-api/#msecret_storagev1aes-hmac-sha2-1\n */\nexport interface AESEncryptedSecretStoragePayload {\n [key: string]: any; // extensible\n /** the initialization vector in base64 */\n iv: string;\n /** the ciphertext in base64 */\n ciphertext: string;\n /** the HMAC in base64 */\n mac: string;\n}\n"],"mappings":"","ignoreList":[]}
|
||||
9
node_modules/matrix-js-sdk/lib/@types/IIdentityServerProvider.d.ts
generated
vendored
Normal file
9
node_modules/matrix-js-sdk/lib/@types/IIdentityServerProvider.d.ts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
export interface IIdentityServerProvider {
|
||||
/**
|
||||
* Gets an access token for use against the identity server,
|
||||
* for the associated client.
|
||||
* @returns Promise which resolves to the access token.
|
||||
*/
|
||||
getAccessToken(): Promise<string | null>;
|
||||
}
|
||||
//# sourceMappingURL=IIdentityServerProvider.d.ts.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/IIdentityServerProvider.d.ts.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/IIdentityServerProvider.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"IIdentityServerProvider.d.ts","sourceRoot":"","sources":["../../src/@types/IIdentityServerProvider.ts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,uBAAuB;IACpC;;;;OAIG;IACH,cAAc,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CAC5C"}
|
||||
3
node_modules/matrix-js-sdk/lib/@types/IIdentityServerProvider.js
generated
vendored
Normal file
3
node_modules/matrix-js-sdk/lib/@types/IIdentityServerProvider.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export {};
|
||||
export {};
|
||||
//# sourceMappingURL=IIdentityServerProvider.js.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/IIdentityServerProvider.js.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/IIdentityServerProvider.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"IIdentityServerProvider.js","names":[],"sources":["../../src/@types/IIdentityServerProvider.ts"],"sourcesContent":["/*\nCopyright 2021 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nexport interface IIdentityServerProvider {\n /**\n * Gets an access token for use against the identity server,\n * for the associated client.\n * @returns Promise which resolves to the access token.\n */\n getAccessToken(): Promise<string | null>;\n}\n"],"mappings":"","ignoreList":[]}
|
||||
140
node_modules/matrix-js-sdk/lib/@types/PushRules.d.ts
generated
vendored
Normal file
140
node_modules/matrix-js-sdk/lib/@types/PushRules.d.ts
generated
vendored
Normal file
@@ -0,0 +1,140 @@
|
||||
export declare enum PushRuleActionName {
|
||||
DontNotify = "dont_notify",
|
||||
Notify = "notify",
|
||||
Coalesce = "coalesce"
|
||||
}
|
||||
export declare enum TweakName {
|
||||
Highlight = "highlight",
|
||||
Sound = "sound"
|
||||
}
|
||||
export type Tweak<N extends TweakName, V> = {
|
||||
set_tweak: N;
|
||||
value?: V;
|
||||
};
|
||||
export type TweakHighlight = Tweak<TweakName.Highlight, boolean>;
|
||||
export type TweakSound = Tweak<TweakName.Sound, string>;
|
||||
export type Tweaks = TweakHighlight | TweakSound;
|
||||
export declare enum ConditionOperator {
|
||||
ExactEquals = "==",
|
||||
LessThan = "<",
|
||||
GreaterThan = ">",
|
||||
GreaterThanOrEqual = ">=",
|
||||
LessThanOrEqual = "<="
|
||||
}
|
||||
export type PushRuleAction = Tweaks | PushRuleActionName;
|
||||
export type MemberCountCondition<N extends number, Op extends ConditionOperator = ConditionOperator.ExactEquals> = `${Op}${N}` | (Op extends ConditionOperator.ExactEquals ? `${N}` : never);
|
||||
export type AnyMemberCountCondition = MemberCountCondition<number, ConditionOperator>;
|
||||
export declare const DMMemberCountCondition: MemberCountCondition<2>;
|
||||
export declare function isDmMemberCountCondition(condition: AnyMemberCountCondition): boolean;
|
||||
export declare enum ConditionKind {
|
||||
EventMatch = "event_match",
|
||||
EventPropertyIs = "event_property_is",
|
||||
EventPropertyContains = "event_property_contains",
|
||||
ContainsDisplayName = "contains_display_name",
|
||||
RoomMemberCount = "room_member_count",
|
||||
SenderNotificationPermission = "sender_notification_permission",
|
||||
CallStarted = "call_started",
|
||||
CallStartedPrefix = "org.matrix.msc3914.call_started"
|
||||
}
|
||||
export interface IPushRuleCondition<N extends ConditionKind | string> {
|
||||
[k: string]: any;
|
||||
kind: N;
|
||||
}
|
||||
export interface IEventMatchCondition extends IPushRuleCondition<ConditionKind.EventMatch> {
|
||||
key: string;
|
||||
pattern?: string;
|
||||
value?: string;
|
||||
}
|
||||
export interface IEventPropertyIsCondition extends IPushRuleCondition<ConditionKind.EventPropertyIs> {
|
||||
key: string;
|
||||
value: string | boolean | null | number;
|
||||
}
|
||||
export interface IEventPropertyContainsCondition extends IPushRuleCondition<ConditionKind.EventPropertyContains> {
|
||||
key: string;
|
||||
value: string | boolean | null | number;
|
||||
}
|
||||
export interface IContainsDisplayNameCondition extends IPushRuleCondition<ConditionKind.ContainsDisplayName> {
|
||||
}
|
||||
export interface IRoomMemberCountCondition extends IPushRuleCondition<ConditionKind.RoomMemberCount> {
|
||||
is: AnyMemberCountCondition;
|
||||
}
|
||||
export interface ISenderNotificationPermissionCondition extends IPushRuleCondition<ConditionKind.SenderNotificationPermission> {
|
||||
key: string;
|
||||
}
|
||||
export interface ICallStartedCondition extends IPushRuleCondition<ConditionKind.CallStarted> {
|
||||
}
|
||||
export interface ICallStartedPrefixCondition extends IPushRuleCondition<ConditionKind.CallStartedPrefix> {
|
||||
}
|
||||
export type PushRuleCondition = IEventMatchCondition | IEventPropertyIsCondition | IEventPropertyContainsCondition | IContainsDisplayNameCondition | IRoomMemberCountCondition | ISenderNotificationPermissionCondition | ICallStartedCondition | ICallStartedPrefixCondition;
|
||||
export declare enum PushRuleKind {
|
||||
Override = "override",
|
||||
ContentSpecific = "content",
|
||||
RoomSpecific = "room",
|
||||
SenderSpecific = "sender",
|
||||
Underride = "underride"
|
||||
}
|
||||
export declare enum RuleId {
|
||||
Master = ".m.rule.master",
|
||||
IsUserMention = ".m.rule.is_user_mention",
|
||||
IsRoomMention = ".m.rule.is_room_mention",
|
||||
ContainsDisplayName = ".m.rule.contains_display_name",
|
||||
ContainsUserName = ".m.rule.contains_user_name",
|
||||
AtRoomNotification = ".m.rule.roomnotif",
|
||||
DM = ".m.rule.room_one_to_one",
|
||||
EncryptedDM = ".m.rule.encrypted_room_one_to_one",
|
||||
Message = ".m.rule.message",
|
||||
EncryptedMessage = ".m.rule.encrypted",
|
||||
InviteToSelf = ".m.rule.invite_for_me",
|
||||
MemberEvent = ".m.rule.member_event",
|
||||
IncomingCall = ".m.rule.call",
|
||||
SuppressNotices = ".m.rule.suppress_notices",
|
||||
Tombstone = ".m.rule.tombstone",
|
||||
PollStart = ".m.rule.poll_start",
|
||||
PollStartUnstable = ".org.matrix.msc3930.rule.poll_start",
|
||||
PollEnd = ".m.rule.poll_end",
|
||||
PollEndUnstable = ".org.matrix.msc3930.rule.poll_end",
|
||||
PollStartOneToOne = ".m.rule.poll_start_one_to_one",
|
||||
PollStartOneToOneUnstable = ".org.matrix.msc3930.rule.poll_start_one_to_one",
|
||||
PollEndOneToOne = ".m.rule.poll_end_one_to_one",
|
||||
PollEndOneToOneUnstable = ".org.matrix.msc3930.rule.poll_end_one_to_one"
|
||||
}
|
||||
export type PushRuleSet = {
|
||||
[k in PushRuleKind]?: IPushRule[];
|
||||
};
|
||||
export interface IPushRule {
|
||||
actions: PushRuleAction[];
|
||||
conditions?: PushRuleCondition[];
|
||||
default: boolean;
|
||||
enabled: boolean;
|
||||
pattern?: string;
|
||||
rule_id: RuleId | string;
|
||||
}
|
||||
export interface IAnnotatedPushRule extends IPushRule {
|
||||
kind: PushRuleKind;
|
||||
}
|
||||
export interface IPushRules {
|
||||
global: PushRuleSet;
|
||||
device?: PushRuleSet;
|
||||
}
|
||||
export interface IPusher {
|
||||
"app_display_name": string;
|
||||
"app_id": string;
|
||||
"data": {
|
||||
format?: string;
|
||||
url?: string;
|
||||
brand?: string;
|
||||
};
|
||||
"device_display_name": string;
|
||||
"kind": "http" | string;
|
||||
"lang": string;
|
||||
"profile_tag"?: string;
|
||||
"pushkey": string;
|
||||
"enabled"?: boolean | null;
|
||||
"org.matrix.msc3881.enabled"?: boolean | null;
|
||||
"device_id"?: string | null;
|
||||
"org.matrix.msc3881.device_id"?: string | null;
|
||||
}
|
||||
export interface IPusherRequest extends Omit<IPusher, "device_id" | "org.matrix.msc3881.device_id"> {
|
||||
append?: boolean;
|
||||
}
|
||||
//# sourceMappingURL=PushRules.d.ts.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/PushRules.d.ts.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/PushRules.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"PushRules.d.ts","sourceRoot":"","sources":["../../src/@types/PushRules.ts"],"names":[],"mappings":"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"}
|
||||
89
node_modules/matrix-js-sdk/lib/@types/PushRules.js
generated
vendored
Normal file
89
node_modules/matrix-js-sdk/lib/@types/PushRules.js
generated
vendored
Normal file
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
Copyright 2021 The Matrix.org Foundation C.I.C.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
export let PushRuleActionName = /*#__PURE__*/function (PushRuleActionName) {
|
||||
PushRuleActionName["DontNotify"] = "dont_notify";
|
||||
PushRuleActionName["Notify"] = "notify";
|
||||
PushRuleActionName["Coalesce"] = "coalesce";
|
||||
return PushRuleActionName;
|
||||
}({});
|
||||
export let TweakName = /*#__PURE__*/function (TweakName) {
|
||||
TweakName["Highlight"] = "highlight";
|
||||
TweakName["Sound"] = "sound";
|
||||
return TweakName;
|
||||
}({});
|
||||
export let ConditionOperator = /*#__PURE__*/function (ConditionOperator) {
|
||||
ConditionOperator["ExactEquals"] = "==";
|
||||
ConditionOperator["LessThan"] = "<";
|
||||
ConditionOperator["GreaterThan"] = ">";
|
||||
ConditionOperator["GreaterThanOrEqual"] = ">=";
|
||||
ConditionOperator["LessThanOrEqual"] = "<=";
|
||||
return ConditionOperator;
|
||||
}({});
|
||||
export const DMMemberCountCondition = "2";
|
||||
export function isDmMemberCountCondition(condition) {
|
||||
return condition === "==2" || condition === "2";
|
||||
}
|
||||
export let ConditionKind = /*#__PURE__*/function (ConditionKind) {
|
||||
ConditionKind["EventMatch"] = "event_match";
|
||||
ConditionKind["EventPropertyIs"] = "event_property_is";
|
||||
ConditionKind["EventPropertyContains"] = "event_property_contains";
|
||||
ConditionKind["ContainsDisplayName"] = "contains_display_name";
|
||||
ConditionKind["RoomMemberCount"] = "room_member_count";
|
||||
ConditionKind["SenderNotificationPermission"] = "sender_notification_permission";
|
||||
ConditionKind["CallStarted"] = "call_started";
|
||||
ConditionKind["CallStartedPrefix"] = "org.matrix.msc3914.call_started";
|
||||
return ConditionKind;
|
||||
}({});
|
||||
|
||||
// XXX: custom conditions are possible but always fail, and break the typescript discriminated union so ignore them here
|
||||
// IPushRuleCondition<Exclude<string, ConditionKind>> unfortunately does not resolve this at the time of writing.
|
||||
|
||||
export let PushRuleKind = /*#__PURE__*/function (PushRuleKind) {
|
||||
PushRuleKind["Override"] = "override";
|
||||
PushRuleKind["ContentSpecific"] = "content";
|
||||
PushRuleKind["RoomSpecific"] = "room";
|
||||
PushRuleKind["SenderSpecific"] = "sender";
|
||||
PushRuleKind["Underride"] = "underride";
|
||||
return PushRuleKind;
|
||||
}({});
|
||||
export let RuleId = /*#__PURE__*/function (RuleId) {
|
||||
RuleId["Master"] = ".m.rule.master";
|
||||
RuleId["IsUserMention"] = ".m.rule.is_user_mention";
|
||||
RuleId["IsRoomMention"] = ".m.rule.is_room_mention";
|
||||
RuleId["ContainsDisplayName"] = ".m.rule.contains_display_name";
|
||||
RuleId["ContainsUserName"] = ".m.rule.contains_user_name";
|
||||
RuleId["AtRoomNotification"] = ".m.rule.roomnotif";
|
||||
RuleId["DM"] = ".m.rule.room_one_to_one";
|
||||
RuleId["EncryptedDM"] = ".m.rule.encrypted_room_one_to_one";
|
||||
RuleId["Message"] = ".m.rule.message";
|
||||
RuleId["EncryptedMessage"] = ".m.rule.encrypted";
|
||||
RuleId["InviteToSelf"] = ".m.rule.invite_for_me";
|
||||
RuleId["MemberEvent"] = ".m.rule.member_event";
|
||||
RuleId["IncomingCall"] = ".m.rule.call";
|
||||
RuleId["SuppressNotices"] = ".m.rule.suppress_notices";
|
||||
RuleId["Tombstone"] = ".m.rule.tombstone";
|
||||
RuleId["PollStart"] = ".m.rule.poll_start";
|
||||
RuleId["PollStartUnstable"] = ".org.matrix.msc3930.rule.poll_start";
|
||||
RuleId["PollEnd"] = ".m.rule.poll_end";
|
||||
RuleId["PollEndUnstable"] = ".org.matrix.msc3930.rule.poll_end";
|
||||
RuleId["PollStartOneToOne"] = ".m.rule.poll_start_one_to_one";
|
||||
RuleId["PollStartOneToOneUnstable"] = ".org.matrix.msc3930.rule.poll_start_one_to_one";
|
||||
RuleId["PollEndOneToOne"] = ".m.rule.poll_end_one_to_one";
|
||||
RuleId["PollEndOneToOneUnstable"] = ".org.matrix.msc3930.rule.poll_end_one_to_one";
|
||||
return RuleId;
|
||||
}({});
|
||||
//# sourceMappingURL=PushRules.js.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/PushRules.js.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/PushRules.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
0
node_modules/matrix-js-sdk/lib/@types/another-json.d.js
generated
vendored
Normal file
0
node_modules/matrix-js-sdk/lib/@types/another-json.d.js
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/another-json.d.js.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/another-json.d.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"another-json.d.js","names":[],"sources":["../../src/@types/another-json.d.ts"],"sourcesContent":["/*\nCopyright 2021 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\ndeclare module \"another-json\" {\n export function stringify(o: object): string;\n}\n"],"mappings":"","ignoreList":[]}
|
||||
208
node_modules/matrix-js-sdk/lib/@types/auth.d.ts
generated
vendored
Normal file
208
node_modules/matrix-js-sdk/lib/@types/auth.d.ts
generated
vendored
Normal file
@@ -0,0 +1,208 @@
|
||||
import { UnstableValue } from "../NamespacedValue.ts";
|
||||
import { type IClientWellKnown } from "../client.ts";
|
||||
/**
|
||||
* Represents a response to the CSAPI `/refresh` endpoint.
|
||||
*/
|
||||
export interface IRefreshTokenResponse {
|
||||
access_token: string;
|
||||
expires_in_ms: number;
|
||||
refresh_token: string;
|
||||
}
|
||||
/**
|
||||
* Response to GET login flows as per https://spec.matrix.org/v1.3/client-server-api/#get_matrixclientv3login
|
||||
*/
|
||||
export interface ILoginFlowsResponse {
|
||||
flows: LoginFlow[];
|
||||
}
|
||||
export type LoginFlow = ISSOFlow | IPasswordFlow | ILoginFlow;
|
||||
export interface ILoginFlow {
|
||||
type: string;
|
||||
}
|
||||
export interface IPasswordFlow extends ILoginFlow {
|
||||
type: "m.login.password";
|
||||
}
|
||||
export declare const OAUTH_AWARE_PREFERRED_FLOW_FIELD: UnstableValue<"oauth_aware_preferred", "org.matrix.msc3824.delegated_oidc_compatibility">;
|
||||
/**
|
||||
* Representation of SSO flow as per https://spec.matrix.org/v1.3/client-server-api/#client-login-via-sso
|
||||
*/
|
||||
export interface ISSOFlow extends ILoginFlow {
|
||||
type: "m.login.sso" | "m.login.cas";
|
||||
identity_providers?: IIdentityProvider[];
|
||||
[OAUTH_AWARE_PREFERRED_FLOW_FIELD.name]?: boolean;
|
||||
[OAUTH_AWARE_PREFERRED_FLOW_FIELD.altName]?: boolean;
|
||||
}
|
||||
export declare enum IdentityProviderBrand {
|
||||
Gitlab = "gitlab",
|
||||
Github = "github",
|
||||
Apple = "apple",
|
||||
Google = "google",
|
||||
Facebook = "facebook",
|
||||
Twitter = "twitter"
|
||||
}
|
||||
export interface IIdentityProvider {
|
||||
id: string;
|
||||
name: string;
|
||||
icon?: string;
|
||||
brand?: IdentityProviderBrand | string;
|
||||
}
|
||||
export declare enum SSOAction {
|
||||
/** The user intends to login to an existing account */
|
||||
LOGIN = "login",
|
||||
/** The user intends to register for a new account */
|
||||
REGISTER = "register"
|
||||
}
|
||||
/**
|
||||
* A client can identify a user using their Matrix ID.
|
||||
* This can either be the fully qualified Matrix user ID, or just the localpart of the user ID.
|
||||
* @see https://spec.matrix.org/v1.7/client-server-api/#matrix-user-id
|
||||
*/
|
||||
type UserLoginIdentifier = {
|
||||
type: "m.id.user";
|
||||
user: string;
|
||||
};
|
||||
/**
|
||||
* A client can identify a user using a 3PID associated with the user’s account on the homeserver,
|
||||
* where the 3PID was previously associated using the /account/3pid API.
|
||||
* See the 3PID Types Appendix for a list of Third-party ID media.
|
||||
* @see https://spec.matrix.org/v1.7/client-server-api/#third-party-id
|
||||
*/
|
||||
type ThirdPartyLoginIdentifier = {
|
||||
type: "m.id.thirdparty";
|
||||
medium: string;
|
||||
address: string;
|
||||
};
|
||||
/**
|
||||
* A client can identify a user using a phone number associated with the user’s account,
|
||||
* where the phone number was previously associated using the /account/3pid API.
|
||||
* The phone number can be passed in as entered by the user; the homeserver will be responsible for canonicalising it.
|
||||
* If the client wishes to canonicalise the phone number,
|
||||
* then it can use the m.id.thirdparty identifier type with a medium of msisdn instead.
|
||||
*
|
||||
* The country is the two-letter uppercase ISO-3166-1 alpha-2 country code that the number in phone should be parsed as if it were dialled from.
|
||||
*
|
||||
* @see https://spec.matrix.org/v1.7/client-server-api/#phone-number
|
||||
*/
|
||||
type PhoneLoginIdentifier = {
|
||||
type: "m.id.phone";
|
||||
country: string;
|
||||
phone: string;
|
||||
};
|
||||
type SpecUserIdentifier = UserLoginIdentifier | ThirdPartyLoginIdentifier | PhoneLoginIdentifier;
|
||||
/**
|
||||
* User Identifiers usable for login & user-interactive authentication.
|
||||
*
|
||||
* Extensibly allows more than Matrix specified identifiers.
|
||||
*/
|
||||
export type UserIdentifier = SpecUserIdentifier | {
|
||||
type: Exclude<string, SpecUserIdentifier["type"]>;
|
||||
[key: string]: any;
|
||||
};
|
||||
/**
|
||||
* Request body for POST /login request
|
||||
* @see https://spec.matrix.org/v1.7/client-server-api/#post_matrixclientv3login
|
||||
*/
|
||||
export interface LoginRequest {
|
||||
/**
|
||||
* The login type being used.
|
||||
*/
|
||||
type: "m.login.password" | "m.login.token" | string;
|
||||
/**
|
||||
* ID of the client device.
|
||||
* If this does not correspond to a known client device, a new device will be created.
|
||||
* The given device ID must not be the same as a cross-signing key ID.
|
||||
* The server will auto-generate a device_id if this is not specified.
|
||||
*/
|
||||
device_id?: string;
|
||||
/**
|
||||
* Identification information for a user
|
||||
*/
|
||||
identifier?: UserIdentifier;
|
||||
/**
|
||||
* A display name to assign to the newly-created device.
|
||||
* Ignored if device_id corresponds to a known device.
|
||||
*/
|
||||
initial_device_display_name?: string;
|
||||
/**
|
||||
* When logging in using a third-party identifier, the medium of the identifier.
|
||||
* Must be `email`.
|
||||
* @deprecated in favour of `identifier`.
|
||||
*/
|
||||
medium?: "email";
|
||||
/**
|
||||
* Required when type is `m.login.password`. The user’s password.
|
||||
*/
|
||||
password?: string;
|
||||
/**
|
||||
* If true, the client supports refresh tokens.
|
||||
*/
|
||||
refresh_token?: boolean;
|
||||
/**
|
||||
* Required when type is `m.login.token`. Part of Token-based login.
|
||||
*/
|
||||
token?: string;
|
||||
/**
|
||||
* The fully qualified user ID or just local part of the user ID, to log in.
|
||||
* @deprecated in favour of identifier.
|
||||
*/
|
||||
user?: string;
|
||||
[key: string]: any;
|
||||
}
|
||||
export type ILoginParams = LoginRequest;
|
||||
/**
|
||||
* Response body for POST /login request
|
||||
* @see https://spec.matrix.org/v1.7/client-server-api/#post_matrixclientv3login
|
||||
*/
|
||||
export interface LoginResponse {
|
||||
/**
|
||||
* An access token for the account.
|
||||
* This access token can then be used to authorize other requests.
|
||||
*/
|
||||
access_token: string;
|
||||
/**
|
||||
* ID of the logged-in device.
|
||||
* Will be the same as the corresponding parameter in the request, if one was specified.
|
||||
*/
|
||||
device_id: string;
|
||||
/**
|
||||
* The fully-qualified Matrix ID for the account.
|
||||
*/
|
||||
user_id: string;
|
||||
/**
|
||||
* The lifetime of the access token, in milliseconds.
|
||||
* Once the access token has expired a new access token can be obtained by using the provided refresh token.
|
||||
* If no refresh token is provided, the client will need to re-log in to obtain a new access token.
|
||||
* If not given, the client can assume that the access token will not expire.
|
||||
*/
|
||||
expires_in_ms?: number;
|
||||
/**
|
||||
* A refresh token for the account.
|
||||
* This token can be used to obtain a new access token when it expires by calling the /refresh endpoint.
|
||||
*/
|
||||
refresh_token?: string;
|
||||
/**
|
||||
* Optional client configuration provided by the server.
|
||||
* If present, clients SHOULD use the provided object to reconfigure themselves, optionally validating the URLs within.
|
||||
* This object takes the same form as the one returned from .well-known autodiscovery.
|
||||
*/
|
||||
well_known?: IClientWellKnown;
|
||||
/**
|
||||
* The server_name of the homeserver on which the account has been registered.
|
||||
* @deprecated Clients should extract the server_name from user_id (by splitting at the first colon) if they require it.
|
||||
*/
|
||||
home_server?: string;
|
||||
}
|
||||
/**
|
||||
* The result of a successful `m.login.token` issuance request as per https://spec.matrix.org/v1.7/client-server-api/#post_matrixclientv1loginget_token
|
||||
*/
|
||||
export interface LoginTokenPostResponse {
|
||||
/**
|
||||
* The token to use with `m.login.token` to authenticate.
|
||||
*/
|
||||
login_token: string;
|
||||
/**
|
||||
* Expiration in milliseconds.
|
||||
*/
|
||||
expires_in_ms: number;
|
||||
}
|
||||
export {};
|
||||
//# sourceMappingURL=auth.d.ts.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/auth.d.ts.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/auth.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/@types/auth.ts"],"names":[],"mappings":"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"}
|
||||
96
node_modules/matrix-js-sdk/lib/@types/auth.js
generated
vendored
Normal file
96
node_modules/matrix-js-sdk/lib/@types/auth.js
generated
vendored
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
Copyright 2022 The Matrix.org Foundation C.I.C.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
import { UnstableValue } from "../NamespacedValue.js";
|
||||
|
||||
/**
|
||||
* Represents a response to the CSAPI `/refresh` endpoint.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Response to GET login flows as per https://spec.matrix.org/v1.3/client-server-api/#get_matrixclientv3login
|
||||
*/
|
||||
|
||||
export const OAUTH_AWARE_PREFERRED_FLOW_FIELD = new UnstableValue("oauth_aware_preferred", "org.matrix.msc3824.delegated_oidc_compatibility");
|
||||
|
||||
/**
|
||||
* Representation of SSO flow as per https://spec.matrix.org/v1.3/client-server-api/#client-login-via-sso
|
||||
*/
|
||||
|
||||
export let IdentityProviderBrand = /*#__PURE__*/function (IdentityProviderBrand) {
|
||||
IdentityProviderBrand["Gitlab"] = "gitlab";
|
||||
IdentityProviderBrand["Github"] = "github";
|
||||
IdentityProviderBrand["Apple"] = "apple";
|
||||
IdentityProviderBrand["Google"] = "google";
|
||||
IdentityProviderBrand["Facebook"] = "facebook";
|
||||
IdentityProviderBrand["Twitter"] = "twitter";
|
||||
return IdentityProviderBrand;
|
||||
}({});
|
||||
export let SSOAction = /*#__PURE__*/function (SSOAction) {
|
||||
/** The user intends to login to an existing account */
|
||||
SSOAction["LOGIN"] = "login";
|
||||
/** The user intends to register for a new account */
|
||||
SSOAction["REGISTER"] = "register";
|
||||
return SSOAction;
|
||||
}({});
|
||||
|
||||
/**
|
||||
* A client can identify a user using their Matrix ID.
|
||||
* This can either be the fully qualified Matrix user ID, or just the localpart of the user ID.
|
||||
* @see https://spec.matrix.org/v1.7/client-server-api/#matrix-user-id
|
||||
*/
|
||||
|
||||
/**
|
||||
* A client can identify a user using a 3PID associated with the user’s account on the homeserver,
|
||||
* where the 3PID was previously associated using the /account/3pid API.
|
||||
* See the 3PID Types Appendix for a list of Third-party ID media.
|
||||
* @see https://spec.matrix.org/v1.7/client-server-api/#third-party-id
|
||||
*/
|
||||
|
||||
/**
|
||||
* A client can identify a user using a phone number associated with the user’s account,
|
||||
* where the phone number was previously associated using the /account/3pid API.
|
||||
* The phone number can be passed in as entered by the user; the homeserver will be responsible for canonicalising it.
|
||||
* If the client wishes to canonicalise the phone number,
|
||||
* then it can use the m.id.thirdparty identifier type with a medium of msisdn instead.
|
||||
*
|
||||
* The country is the two-letter uppercase ISO-3166-1 alpha-2 country code that the number in phone should be parsed as if it were dialled from.
|
||||
*
|
||||
* @see https://spec.matrix.org/v1.7/client-server-api/#phone-number
|
||||
*/
|
||||
|
||||
/**
|
||||
* User Identifiers usable for login & user-interactive authentication.
|
||||
*
|
||||
* Extensibly allows more than Matrix specified identifiers.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Request body for POST /login request
|
||||
* @see https://spec.matrix.org/v1.7/client-server-api/#post_matrixclientv3login
|
||||
*/
|
||||
|
||||
// Export for backwards compatibility
|
||||
|
||||
/**
|
||||
* Response body for POST /login request
|
||||
* @see https://spec.matrix.org/v1.7/client-server-api/#post_matrixclientv3login
|
||||
*/
|
||||
|
||||
/**
|
||||
* The result of a successful `m.login.token` issuance request as per https://spec.matrix.org/v1.7/client-server-api/#post_matrixclientv1loginget_token
|
||||
*/
|
||||
//# sourceMappingURL=auth.js.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/auth.js.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/auth.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
106
node_modules/matrix-js-sdk/lib/@types/beacon.d.ts
generated
vendored
Normal file
106
node_modules/matrix-js-sdk/lib/@types/beacon.d.ts
generated
vendored
Normal file
@@ -0,0 +1,106 @@
|
||||
import { type RelatesToRelationship, type REFERENCE_RELATION } from "./extensible_events.ts";
|
||||
import { UnstableValue } from "../NamespacedValue.ts";
|
||||
import { type MAssetEvent, type MLocationEvent, type MTimestampEvent } from "./location.ts";
|
||||
/**
|
||||
* Beacon info and beacon event types as described in MSC3672
|
||||
* https://github.com/matrix-org/matrix-spec-proposals/pull/3672
|
||||
*/
|
||||
/**
|
||||
* Beacon info events are state events.
|
||||
* We have two requirements for these events:
|
||||
* 1. they can only be written by their owner
|
||||
* 2. a user can have an arbitrary number of beacon_info events
|
||||
*
|
||||
* 1. is achieved by setting the state_key to the owners mxid.
|
||||
* Event keys in room state are a combination of `typestate_key`.
|
||||
* To achieve an arbitrary number of only owner-writable state events
|
||||
* we introduce a variable suffix to the event type
|
||||
*
|
||||
* @example
|
||||
* ```
|
||||
* {
|
||||
* "type": "m.beacon_info.@matthew:matrix.org.1",
|
||||
* "state_key": "@matthew:matrix.org",
|
||||
* "content": {
|
||||
* "m.beacon_info": {
|
||||
* "description": "The Matthew Tracker",
|
||||
* "timeout": 86400000,
|
||||
* },
|
||||
* // more content as described below
|
||||
* }
|
||||
* },
|
||||
* {
|
||||
* "type": "m.beacon_info.@matthew:matrix.org.2",
|
||||
* "state_key": "@matthew:matrix.org",
|
||||
* "content": {
|
||||
* "m.beacon_info": {
|
||||
* "description": "Another different Matthew tracker",
|
||||
* "timeout": 400000,
|
||||
* },
|
||||
* // more content as described below
|
||||
* }
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
/**
|
||||
* Non-variable type for m.beacon_info event content
|
||||
*/
|
||||
export declare const M_BEACON_INFO: UnstableValue<"m.beacon_info", "org.matrix.msc3672.beacon_info">;
|
||||
export declare const M_BEACON: UnstableValue<"m.beacon", "org.matrix.msc3672.beacon">;
|
||||
export type MBeaconInfoContent = {
|
||||
description?: string;
|
||||
timeout: number;
|
||||
live?: boolean;
|
||||
};
|
||||
/**
|
||||
* m.beacon_info Event example from the spec
|
||||
* https://github.com/matrix-org/matrix-spec-proposals/pull/3672
|
||||
* @example
|
||||
* ```
|
||||
* {
|
||||
* "type": "m.beacon_info",
|
||||
* "state_key": "@matthew:matrix.org",
|
||||
* "content": {
|
||||
* "m.beacon_info": {
|
||||
* "description": "The Matthew Tracker", // same as an `m.location` description
|
||||
* "timeout": 86400000, // how long from the last event until we consider the beacon inactive in milliseconds
|
||||
* },
|
||||
* "m.ts": 1436829458432, // creation timestamp of the beacon on the client
|
||||
* "m.asset": {
|
||||
* "type": "m.self" // the type of asset being tracked as per MSC3488
|
||||
* }
|
||||
* }
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
/**
|
||||
* m.beacon_info.* event content
|
||||
*/
|
||||
export type MBeaconInfoEventContent = MBeaconInfoContent & MTimestampEvent & MAssetEvent;
|
||||
/**
|
||||
* m.beacon event example
|
||||
* https://github.com/matrix-org/matrix-spec-proposals/pull/3672
|
||||
* @example
|
||||
* ```
|
||||
* {
|
||||
* "type": "m.beacon",
|
||||
* "sender": "@matthew:matrix.org",
|
||||
* "content": {
|
||||
* "m.relates_to": { // from MSC2674: https://github.com/matrix-org/matrix-doc/pull/2674
|
||||
* "rel_type": "m.reference", // from MSC3267: https://github.com/matrix-org/matrix-doc/pull/3267
|
||||
* "event_id": "$beacon_info"
|
||||
* },
|
||||
* "m.location": {
|
||||
* "uri": "geo:51.5008,0.1247;u=35",
|
||||
* "description": "Arbitrary beacon information"
|
||||
* },
|
||||
* "m.ts": 1636829458432,
|
||||
* }
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
/**
|
||||
* Content of an m.beacon event
|
||||
*/
|
||||
export type MBeaconEventContent = MLocationEvent & MTimestampEvent & RelatesToRelationship<typeof REFERENCE_RELATION>;
|
||||
//# sourceMappingURL=beacon.d.ts.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/beacon.d.ts.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/beacon.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"beacon.d.ts","sourceRoot":"","sources":["../../src/@types/beacon.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC7F,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,cAAc,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAE5F;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAEH;;GAEG;AACH,eAAO,MAAM,aAAa,kEAAuE,CAAC;AAClG,eAAO,MAAM,QAAQ,wDAA6D,CAAC;AAEnF,MAAM,MAAM,kBAAkB,GAAG;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,OAAO,EAAE,MAAM,CAAC;IAGhB,IAAI,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,kBAAkB,GAEpD,eAAe,GAEf,WAAW,CAAC;AAEhB;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,cAAc,GAE5C,eAAe,GAEf,qBAAqB,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
||||
119
node_modules/matrix-js-sdk/lib/@types/beacon.js
generated
vendored
Normal file
119
node_modules/matrix-js-sdk/lib/@types/beacon.js
generated
vendored
Normal file
@@ -0,0 +1,119 @@
|
||||
/*
|
||||
Copyright 2022 The Matrix.org Foundation C.I.C.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
import { UnstableValue } from "../NamespacedValue.js";
|
||||
/**
|
||||
* Beacon info and beacon event types as described in MSC3672
|
||||
* https://github.com/matrix-org/matrix-spec-proposals/pull/3672
|
||||
*/
|
||||
|
||||
/**
|
||||
* Beacon info events are state events.
|
||||
* We have two requirements for these events:
|
||||
* 1. they can only be written by their owner
|
||||
* 2. a user can have an arbitrary number of beacon_info events
|
||||
*
|
||||
* 1. is achieved by setting the state_key to the owners mxid.
|
||||
* Event keys in room state are a combination of `typestate_key`.
|
||||
* To achieve an arbitrary number of only owner-writable state events
|
||||
* we introduce a variable suffix to the event type
|
||||
*
|
||||
* @example
|
||||
* ```
|
||||
* {
|
||||
* "type": "m.beacon_info.@matthew:matrix.org.1",
|
||||
* "state_key": "@matthew:matrix.org",
|
||||
* "content": {
|
||||
* "m.beacon_info": {
|
||||
* "description": "The Matthew Tracker",
|
||||
* "timeout": 86400000,
|
||||
* },
|
||||
* // more content as described below
|
||||
* }
|
||||
* },
|
||||
* {
|
||||
* "type": "m.beacon_info.@matthew:matrix.org.2",
|
||||
* "state_key": "@matthew:matrix.org",
|
||||
* "content": {
|
||||
* "m.beacon_info": {
|
||||
* "description": "Another different Matthew tracker",
|
||||
* "timeout": 400000,
|
||||
* },
|
||||
* // more content as described below
|
||||
* }
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
|
||||
/**
|
||||
* Non-variable type for m.beacon_info event content
|
||||
*/
|
||||
export const M_BEACON_INFO = new UnstableValue("m.beacon_info", "org.matrix.msc3672.beacon_info");
|
||||
export const M_BEACON = new UnstableValue("m.beacon", "org.matrix.msc3672.beacon");
|
||||
|
||||
/**
|
||||
* m.beacon_info Event example from the spec
|
||||
* https://github.com/matrix-org/matrix-spec-proposals/pull/3672
|
||||
* @example
|
||||
* ```
|
||||
* {
|
||||
* "type": "m.beacon_info",
|
||||
* "state_key": "@matthew:matrix.org",
|
||||
* "content": {
|
||||
* "m.beacon_info": {
|
||||
* "description": "The Matthew Tracker", // same as an `m.location` description
|
||||
* "timeout": 86400000, // how long from the last event until we consider the beacon inactive in milliseconds
|
||||
* },
|
||||
* "m.ts": 1436829458432, // creation timestamp of the beacon on the client
|
||||
* "m.asset": {
|
||||
* "type": "m.self" // the type of asset being tracked as per MSC3488
|
||||
* }
|
||||
* }
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
|
||||
/**
|
||||
* m.beacon_info.* event content
|
||||
*/
|
||||
|
||||
/**
|
||||
* m.beacon event example
|
||||
* https://github.com/matrix-org/matrix-spec-proposals/pull/3672
|
||||
* @example
|
||||
* ```
|
||||
* {
|
||||
* "type": "m.beacon",
|
||||
* "sender": "@matthew:matrix.org",
|
||||
* "content": {
|
||||
* "m.relates_to": { // from MSC2674: https://github.com/matrix-org/matrix-doc/pull/2674
|
||||
* "rel_type": "m.reference", // from MSC3267: https://github.com/matrix-org/matrix-doc/pull/3267
|
||||
* "event_id": "$beacon_info"
|
||||
* },
|
||||
* "m.location": {
|
||||
* "uri": "geo:51.5008,0.1247;u=35",
|
||||
* "description": "Arbitrary beacon information"
|
||||
* },
|
||||
* "m.ts": 1636829458432,
|
||||
* }
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
|
||||
/**
|
||||
* Content of an m.beacon event
|
||||
*/
|
||||
//# sourceMappingURL=beacon.js.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/beacon.js.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/beacon.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
10
node_modules/matrix-js-sdk/lib/@types/common.d.ts
generated
vendored
Normal file
10
node_modules/matrix-js-sdk/lib/@types/common.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
export type NonEmptyArray<T> = [T, ...T[]];
|
||||
export type Without<T, U> = {
|
||||
[P in Exclude<keyof T, keyof U>]?: never;
|
||||
};
|
||||
export type XOR<T, U> = T | U extends object ? (Without<T, U> & U) | (Without<U, T> & T) : T | U;
|
||||
export type Writeable<T> = {
|
||||
-readonly [P in keyof T]: T[P];
|
||||
};
|
||||
export type EmptyObject = Record<PropertyKey, never>;
|
||||
//# sourceMappingURL=common.d.ts.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/common.d.ts.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/common.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/@types/common.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC;AAG3C,MAAM,MAAM,OAAO,CAAC,CAAC,EAAE,CAAC,IAAI;KAAG,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK;CAAE,CAAC;AACzE,MAAM,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,SAAS,MAAM,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACjG,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI;IAAE,CAAC,UAAU,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAE,CAAC;AAE9D,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC"}
|
||||
3
node_modules/matrix-js-sdk/lib/@types/common.js
generated
vendored
Normal file
3
node_modules/matrix-js-sdk/lib/@types/common.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export {};
|
||||
export {};
|
||||
//# sourceMappingURL=common.js.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/common.js.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/common.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"common.js","names":[],"sources":["../../src/@types/common.ts"],"sourcesContent":["/*\nCopyright 2024 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nexport type NonEmptyArray<T> = [T, ...T[]];\n\n// Based on https://stackoverflow.com/a/53229857/3532235\nexport type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never };\nexport type XOR<T, U> = T | U extends object ? (Without<T, U> & U) | (Without<U, T> & T) : T | U;\nexport type Writeable<T> = { -readonly [P in keyof T]: T[P] };\n\nexport type EmptyObject = Record<PropertyKey, never>;\n"],"mappings":"","ignoreList":[]}
|
||||
46
node_modules/matrix-js-sdk/lib/@types/crypto.d.ts
generated
vendored
Normal file
46
node_modules/matrix-js-sdk/lib/@types/crypto.d.ts
generated
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
import type { ISignatures } from "./signed.ts";
|
||||
import type { EventDecryptionResult } from "../common-crypto/CryptoBackend.ts";
|
||||
/** @deprecated This is an internal type and should not be used. */
|
||||
type IEventDecryptionResult = EventDecryptionResult;
|
||||
export type { IEventDecryptionResult };
|
||||
interface Extensible {
|
||||
[key: string]: any;
|
||||
}
|
||||
/** The result of a call to {@link crypto-api!CryptoApi.exportRoomKeys} */
|
||||
export interface IMegolmSessionData extends Extensible {
|
||||
/** Sender's Curve25519 device key */
|
||||
sender_key: string;
|
||||
/** Devices which forwarded this session to us (normally empty). */
|
||||
forwarding_curve25519_key_chain: string[];
|
||||
/** Other keys the sender claims. */
|
||||
sender_claimed_keys: Record<string, string>;
|
||||
/** Room this session is used in */
|
||||
room_id: string;
|
||||
/** Unique id for the session */
|
||||
session_id: string;
|
||||
/** Base64'ed key data */
|
||||
session_key: string;
|
||||
algorithm?: string;
|
||||
untrusted?: boolean;
|
||||
}
|
||||
/** the type of the `device_keys` parameter on `/_matrix/client/v3/keys/upload`
|
||||
*
|
||||
* @see https://spec.matrix.org/v1.5/client-server-api/#post_matrixclientv3keysupload
|
||||
*/
|
||||
export interface IDeviceKeys {
|
||||
algorithms: Array<string>;
|
||||
device_id: string;
|
||||
user_id: string;
|
||||
keys: Record<string, string>;
|
||||
signatures?: ISignatures;
|
||||
}
|
||||
/** the type of the `one_time_keys` and `fallback_keys` parameters on `/_matrix/client/v3/keys/upload`
|
||||
*
|
||||
* @see https://spec.matrix.org/v1.5/client-server-api/#post_matrixclientv3keysupload
|
||||
*/
|
||||
export interface IOneTimeKey {
|
||||
key: string;
|
||||
fallback?: boolean;
|
||||
signatures?: ISignatures;
|
||||
}
|
||||
//# sourceMappingURL=crypto.d.ts.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/crypto.d.ts.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/crypto.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"crypto.d.ts","sourceRoot":"","sources":["../../src/@types/crypto.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAG/E,mEAAmE;AACnE,KAAK,sBAAsB,GAAG,qBAAqB,CAAC;AACpD,YAAY,EAAE,sBAAsB,EAAE,CAAC;AAEvC,UAAU,UAAU;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED,0EAA0E;AAC1E,MAAM,WAAW,kBAAmB,SAAQ,UAAU;IAClD,qCAAqC;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,mEAAmE;IACnE,+BAA+B,EAAE,MAAM,EAAE,CAAC;IAC1C,oCAAoC;IACpC,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5C,mCAAmC;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,gCAAgC;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;GAGG;AACH,MAAM,WAAW,WAAW;IACxB,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,UAAU,CAAC,EAAE,WAAW,CAAC;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,WAAW;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,WAAW,CAAC;CAC5B"}
|
||||
3
node_modules/matrix-js-sdk/lib/@types/crypto.js
generated
vendored
Normal file
3
node_modules/matrix-js-sdk/lib/@types/crypto.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export {};
|
||||
export {};
|
||||
//# sourceMappingURL=crypto.js.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/crypto.js.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/crypto.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"crypto.js","names":[],"sources":["../../src/@types/crypto.ts"],"sourcesContent":["/*\nCopyright 2022-2023 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport type { ISignatures } from \"./signed.ts\";\nimport type { EventDecryptionResult } from \"../common-crypto/CryptoBackend.ts\";\n\n// Backwards compatible re-export\n/** @deprecated This is an internal type and should not be used. */\ntype IEventDecryptionResult = EventDecryptionResult;\nexport type { IEventDecryptionResult };\n\ninterface Extensible {\n [key: string]: any;\n}\n\n/** The result of a call to {@link crypto-api!CryptoApi.exportRoomKeys} */\nexport interface IMegolmSessionData extends Extensible {\n /** Sender's Curve25519 device key */\n sender_key: string;\n /** Devices which forwarded this session to us (normally empty). */\n forwarding_curve25519_key_chain: string[];\n /** Other keys the sender claims. */\n sender_claimed_keys: Record<string, string>;\n /** Room this session is used in */\n room_id: string;\n /** Unique id for the session */\n session_id: string;\n /** Base64'ed key data */\n session_key: string;\n algorithm?: string;\n untrusted?: boolean;\n}\n\n/** the type of the `device_keys` parameter on `/_matrix/client/v3/keys/upload`\n *\n * @see https://spec.matrix.org/v1.5/client-server-api/#post_matrixclientv3keysupload\n */\nexport interface IDeviceKeys {\n algorithms: Array<string>;\n device_id: string;\n user_id: string;\n keys: Record<string, string>;\n signatures?: ISignatures;\n}\n\n/** the type of the `one_time_keys` and `fallback_keys` parameters on `/_matrix/client/v3/keys/upload`\n *\n * @see https://spec.matrix.org/v1.5/client-server-api/#post_matrixclientv3keysupload\n */\nexport interface IOneTimeKey {\n key: string;\n fallback?: boolean;\n signatures?: ISignatures;\n}\n"],"mappings":"","ignoreList":[]}
|
||||
372
node_modules/matrix-js-sdk/lib/@types/event.d.ts
generated
vendored
Normal file
372
node_modules/matrix-js-sdk/lib/@types/event.d.ts
generated
vendored
Normal file
@@ -0,0 +1,372 @@
|
||||
import { type EitherAnd } from "matrix-events-sdk";
|
||||
import { NamespacedValue, UnstableValue } from "../NamespacedValue.ts";
|
||||
import { type PolicyRuleEventContent, type RoomAvatarEventContent, type RoomCanonicalAliasEventContent, type RoomCreateEventContent, type RoomEncryptionEventContent, type RoomGuestAccessEventContent, type RoomHistoryVisibilityEventContent, type RoomJoinRulesEventContent, type RoomMemberEventContent, type RoomNameEventContent, type RoomPinnedEventsEventContent, type RoomPolicyContent, type RoomPowerLevelsEventContent, type RoomServerAclEventContent, type RoomThirdPartyInviteEventContent, type RoomTombstoneEventContent, type RoomTopicEventContent, type SpaceChildEventContent, type SpaceParentEventContent } from "./state_events.ts";
|
||||
import { type IGroupCallRoomMemberState, type IGroupCallRoomState } from "../webrtc/groupCall.ts";
|
||||
import { type MSC3089EventContent } from "../models/MSC3089Branch.ts";
|
||||
import { type M_BEACON, type M_BEACON_INFO, type MBeaconEventContent, type MBeaconInfoEventContent } from "./beacon.ts";
|
||||
import { type EmptyObject } from "./common.ts";
|
||||
import { type ReactionEventContent, type RoomMessageEventContent, type StickerEventContent } from "./events.ts";
|
||||
import { type MCallAnswer, type MCallBase, type MCallCandidates, type MCallHangupReject, type MCallInviteNegotiate, type MCallReplacesEvent, type MCallSelectAnswer, type SDPStreamMetadata } from "../webrtc/callEventTypes.ts";
|
||||
import { type IRTCNotificationContent, type IRTCDeclineContent, type EncryptionKeysEventContent, type ICallNotifyContent, type RtcSlotEventContent } from "../matrixrtc/types.ts";
|
||||
import { type M_POLL_END, type M_POLL_START, type PollEndEventContent, type PollStartEventContent } from "./polls.ts";
|
||||
import { type RtcMembershipData, type SessionMembershipData } from "../matrixrtc/membershipData/index.ts";
|
||||
import { type LocalNotificationSettings } from "./local_notifications.ts";
|
||||
import { type IPushRules } from "./PushRules.ts";
|
||||
import { type SecretInfo, type SecretStorageKeyDescription } from "../secret-storage.ts";
|
||||
import { type POLICIES_ACCOUNT_EVENT_TYPE } from "../models/invites-ignorer-types.ts";
|
||||
import type { ROOM_RETENTION_TYPE, RoomRetentionContent } from "./retention.ts";
|
||||
export declare enum EventType {
|
||||
RoomCanonicalAlias = "m.room.canonical_alias",
|
||||
RoomCreate = "m.room.create",
|
||||
RoomJoinRules = "m.room.join_rules",
|
||||
RoomMember = "m.room.member",
|
||||
RoomThirdPartyInvite = "m.room.third_party_invite",
|
||||
RoomPowerLevels = "m.room.power_levels",
|
||||
RoomName = "m.room.name",
|
||||
RoomTopic = "m.room.topic",
|
||||
RoomAvatar = "m.room.avatar",
|
||||
RoomPinnedEvents = "m.room.pinned_events",
|
||||
RoomEncryption = "m.room.encryption",
|
||||
RoomHistoryVisibility = "m.room.history_visibility",
|
||||
RoomGuestAccess = "m.room.guest_access",
|
||||
RoomServerAcl = "m.room.server_acl",
|
||||
RoomTombstone = "m.room.tombstone",
|
||||
RoomPredecessor = "org.matrix.msc3946.room_predecessor",
|
||||
PolicyRuleUser = "m.policy.rule.user",
|
||||
PolicyRuleRoom = "m.policy.rule.room",
|
||||
PolicyRuleServer = "m.policy.rule.server",
|
||||
SpaceChild = "m.space.child",
|
||||
SpaceParent = "m.space.parent",
|
||||
RoomRedaction = "m.room.redaction",
|
||||
RoomMessage = "m.room.message",
|
||||
RoomMessageEncrypted = "m.room.encrypted",
|
||||
Sticker = "m.sticker",
|
||||
CallInvite = "m.call.invite",
|
||||
CallCandidates = "m.call.candidates",
|
||||
CallAnswer = "m.call.answer",
|
||||
CallHangup = "m.call.hangup",
|
||||
CallReject = "m.call.reject",
|
||||
CallSelectAnswer = "m.call.select_answer",
|
||||
CallNegotiate = "m.call.negotiate",
|
||||
CallSDPStreamMetadataChanged = "m.call.sdp_stream_metadata_changed",
|
||||
CallSDPStreamMetadataChangedPrefix = "org.matrix.call.sdp_stream_metadata_changed",
|
||||
CallReplaces = "m.call.replaces",
|
||||
CallAssertedIdentity = "m.call.asserted_identity",
|
||||
CallAssertedIdentityPrefix = "org.matrix.call.asserted_identity",
|
||||
CallEncryptionKeysPrefix = "io.element.call.encryption_keys",
|
||||
KeyVerificationRequest = "m.key.verification.request",
|
||||
KeyVerificationStart = "m.key.verification.start",
|
||||
KeyVerificationCancel = "m.key.verification.cancel",
|
||||
KeyVerificationMac = "m.key.verification.mac",
|
||||
KeyVerificationDone = "m.key.verification.done",
|
||||
KeyVerificationKey = "m.key.verification.key",
|
||||
KeyVerificationAccept = "m.key.verification.accept",
|
||||
KeyVerificationReady = "m.key.verification.ready",
|
||||
RoomMessageFeedback = "m.room.message.feedback",
|
||||
Reaction = "m.reaction",
|
||||
PollStart = "org.matrix.msc3381.poll.start",
|
||||
Typing = "m.typing",
|
||||
Receipt = "m.receipt",
|
||||
Presence = "m.presence",
|
||||
FullyRead = "m.fully_read",
|
||||
Tag = "m.tag",
|
||||
SpaceOrder = "org.matrix.msc3230.space_order",// MSC3230
|
||||
MarkedUnread = "m.marked_unread",
|
||||
PushRules = "m.push_rules",
|
||||
Direct = "m.direct",
|
||||
IgnoredUserList = "m.ignored_user_list",
|
||||
InvitePermissionConfig = "m.invite_permission_config",// MSC4380
|
||||
RoomKey = "m.room_key",
|
||||
RoomKeyRequest = "m.room_key_request",
|
||||
ForwardedRoomKey = "m.forwarded_room_key",
|
||||
Dummy = "m.dummy",
|
||||
SecretRequest = "m.secret.request",
|
||||
SecretSend = "m.secret.send",
|
||||
GroupCallPrefix = "org.matrix.msc3401.call",
|
||||
GroupCallMemberPrefix = "org.matrix.msc3401.call.member",
|
||||
RTCSlot = "org.matrix.msc4143.rtc.slot",
|
||||
RTCMembership = "org.matrix.msc4143.rtc.member",
|
||||
CallNotify = "org.matrix.msc4075.call.notify",
|
||||
RTCNotification = "org.matrix.msc4075.rtc.notification",
|
||||
RTCDecline = "org.matrix.msc4310.rtc.decline",
|
||||
RoomPolicy = "org.matrix.msc4284.policy",
|
||||
RetentionPolicy = "m.room.retention",
|
||||
RetentionPolicyUnstable = "org.matrix.msc1763.retention"
|
||||
}
|
||||
export declare enum RelationType {
|
||||
Annotation = "m.annotation",
|
||||
Replace = "m.replace",
|
||||
Reference = "m.reference",
|
||||
Thread = "m.thread"
|
||||
}
|
||||
export declare enum MsgType {
|
||||
Text = "m.text",
|
||||
Emote = "m.emote",
|
||||
Notice = "m.notice",
|
||||
Image = "m.image",
|
||||
File = "m.file",
|
||||
Audio = "m.audio",
|
||||
Location = "m.location",
|
||||
Video = "m.video",
|
||||
KeyVerificationRequest = "m.key.verification.request"
|
||||
}
|
||||
export declare const RoomCreateTypeField = "type";
|
||||
export declare enum RoomType {
|
||||
Space = "m.space",
|
||||
UnstableCall = "org.matrix.msc3417.call",
|
||||
ElementVideo = "io.element.video"
|
||||
}
|
||||
export declare const ToDeviceMessageId = "org.matrix.msgid";
|
||||
/**
|
||||
* Identifier for an [MSC3088](https://github.com/matrix-org/matrix-doc/pull/3088)
|
||||
* room purpose. Note that this reference is UNSTABLE and subject to breaking changes,
|
||||
* including its eventual removal.
|
||||
*/
|
||||
export declare const UNSTABLE_MSC3088_PURPOSE: UnstableValue<"m.room.purpose", "org.matrix.msc3088.purpose">;
|
||||
/**
|
||||
* Enabled flag for an [MSC3088](https://github.com/matrix-org/matrix-doc/pull/3088)
|
||||
* room purpose. Note that this reference is UNSTABLE and subject to breaking changes,
|
||||
* including its eventual removal.
|
||||
*/
|
||||
export declare const UNSTABLE_MSC3088_ENABLED: UnstableValue<"m.enabled", "org.matrix.msc3088.enabled">;
|
||||
/**
|
||||
* Subtype for an [MSC3089](https://github.com/matrix-org/matrix-doc/pull/3089) space-room.
|
||||
* Note that this reference is UNSTABLE and subject to breaking changes, including its
|
||||
* eventual removal.
|
||||
*/
|
||||
export declare const UNSTABLE_MSC3089_TREE_SUBTYPE: UnstableValue<"m.data_tree", "org.matrix.msc3089.data_tree">;
|
||||
/**
|
||||
* Leaf type for an event in a [MSC3089](https://github.com/matrix-org/matrix-doc/pull/3089) space-room.
|
||||
* Note that this reference is UNSTABLE and subject to breaking changes, including its
|
||||
* eventual removal.
|
||||
*/
|
||||
export declare const UNSTABLE_MSC3089_LEAF: UnstableValue<"m.leaf", "org.matrix.msc3089.leaf">;
|
||||
/**
|
||||
* Branch (Leaf Reference) type for the index approach in a
|
||||
* [MSC3089](https://github.com/matrix-org/matrix-doc/pull/3089) space-room. Note that this reference is
|
||||
* UNSTABLE and subject to breaking changes, including its eventual removal.
|
||||
*/
|
||||
export declare const UNSTABLE_MSC3089_BRANCH: UnstableValue<"m.branch", "org.matrix.msc3089.branch">;
|
||||
/**
|
||||
* Marker event type to point back at imported historical content in a room. See
|
||||
* [MSC2716](https://github.com/matrix-org/matrix-spec-proposals/pull/2716).
|
||||
* Note that this reference is UNSTABLE and subject to breaking changes,
|
||||
* including its eventual removal.
|
||||
*/
|
||||
export declare const UNSTABLE_MSC2716_MARKER: UnstableValue<"m.room.marker", "org.matrix.msc2716.marker">;
|
||||
/**
|
||||
* Name of the request property for relation based redactions.
|
||||
* {@link https://github.com/matrix-org/matrix-spec-proposals/pull/3912}
|
||||
*/
|
||||
export declare const MSC3912_RELATION_BASED_REDACTIONS_PROP: UnstableValue<"with_rel_types", "org.matrix.msc3912.with_relations">;
|
||||
/**
|
||||
* Functional members type for declaring a purpose of room members (e.g. helpful bots).
|
||||
* Note that this reference is UNSTABLE and subject to breaking changes, including its
|
||||
* eventual removal.
|
||||
*
|
||||
* Schema (TypeScript):
|
||||
* ```
|
||||
* {
|
||||
* service_members?: string[]
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
* @example
|
||||
* ```
|
||||
* {
|
||||
* "service_members": [
|
||||
* "@helperbot:localhost",
|
||||
* "@reminderbot:alice.tdl"
|
||||
* ]
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
export declare const UNSTABLE_ELEMENT_FUNCTIONAL_USERS: UnstableValue<"io.element.functional_members", "io.element.functional_members">;
|
||||
/**
|
||||
* A type of message that affects visibility of a message,
|
||||
* as per https://github.com/matrix-org/matrix-doc/pull/3531
|
||||
*
|
||||
* @experimental
|
||||
*/
|
||||
export declare const EVENT_VISIBILITY_CHANGE_TYPE: UnstableValue<"m.visibility", "org.matrix.msc3531.visibility">;
|
||||
/**
|
||||
* https://github.com/matrix-org/matrix-doc/pull/3881
|
||||
*
|
||||
* @experimental
|
||||
*/
|
||||
export declare const PUSHER_ENABLED: UnstableValue<"enabled", "org.matrix.msc3881.enabled">;
|
||||
/**
|
||||
* https://github.com/matrix-org/matrix-doc/pull/3881
|
||||
*
|
||||
* @experimental
|
||||
*/
|
||||
export declare const PUSHER_DEVICE_ID: UnstableValue<"device_id", "org.matrix.msc3881.device_id">;
|
||||
/**
|
||||
* https://github.com/matrix-org/matrix-doc/pull/3890
|
||||
*
|
||||
* @experimental
|
||||
*/
|
||||
export declare const LOCAL_NOTIFICATION_SETTINGS_PREFIX: UnstableValue<"m.local_notification_settings", "org.matrix.msc3890.local_notification_settings">;
|
||||
/**
|
||||
* https://github.com/matrix-org/matrix-doc/pull/4023
|
||||
*
|
||||
* @experimental
|
||||
*/
|
||||
export declare const UNSIGNED_THREAD_ID_FIELD: UnstableValue<"thread_id", "org.matrix.msc4023.thread_id">;
|
||||
/**
|
||||
* https://github.com/matrix-org/matrix-spec-proposals/pull/4115
|
||||
*
|
||||
* @experimental
|
||||
*/
|
||||
export declare const UNSIGNED_MEMBERSHIP_FIELD: NamespacedValue<"membership", "io.element.msc4115.membership">;
|
||||
/**
|
||||
* Mapped type from event type to content type for all specified non-state room events.
|
||||
*/
|
||||
export interface TimelineEvents {
|
||||
[EventType.RoomMessage]: RoomMessageEventContent;
|
||||
[EventType.Sticker]: StickerEventContent;
|
||||
[EventType.Reaction]: ReactionEventContent;
|
||||
[EventType.CallReplaces]: MCallReplacesEvent;
|
||||
[EventType.CallAnswer]: MCallAnswer;
|
||||
[EventType.CallSelectAnswer]: MCallSelectAnswer;
|
||||
[EventType.CallNegotiate]: Omit<MCallInviteNegotiate, "offer">;
|
||||
[EventType.CallInvite]: MCallInviteNegotiate;
|
||||
[EventType.CallCandidates]: MCallCandidates;
|
||||
[EventType.CallHangup]: MCallHangupReject;
|
||||
[EventType.CallReject]: MCallHangupReject;
|
||||
[EventType.CallSDPStreamMetadataChangedPrefix]: MCallBase & EitherAnd<{
|
||||
sdp_stream_metadata: SDPStreamMetadata;
|
||||
}, {
|
||||
"org.matrix.msc3077.sdp_stream_metadata": SDPStreamMetadata;
|
||||
}>;
|
||||
[EventType.CallSDPStreamMetadataChanged]: MCallBase & EitherAnd<{
|
||||
sdp_stream_metadata: SDPStreamMetadata;
|
||||
}, {
|
||||
"org.matrix.msc3077.sdp_stream_metadata": SDPStreamMetadata;
|
||||
}>;
|
||||
[EventType.CallEncryptionKeysPrefix]: EncryptionKeysEventContent;
|
||||
[EventType.CallNotify]: ICallNotifyContent;
|
||||
[EventType.RTCNotification]: IRTCNotificationContent;
|
||||
[EventType.RTCDecline]: IRTCDeclineContent;
|
||||
[M_BEACON.name]: MBeaconEventContent;
|
||||
[M_POLL_START.name]: PollStartEventContent;
|
||||
[M_POLL_END.name]: PollEndEventContent;
|
||||
[EventType.RTCMembership]: RtcMembershipData | {
|
||||
msc4354_sticky_key: string;
|
||||
};
|
||||
}
|
||||
/**
|
||||
* Mapped type from event type to content type for all specified room state events.
|
||||
*/
|
||||
export interface StateEvents {
|
||||
[EventType.RoomCanonicalAlias]: RoomCanonicalAliasEventContent;
|
||||
[EventType.RoomCreate]: RoomCreateEventContent;
|
||||
[EventType.RoomJoinRules]: RoomJoinRulesEventContent;
|
||||
[EventType.RoomMember]: RoomMemberEventContent;
|
||||
[EventType.RoomThirdPartyInvite]: RoomThirdPartyInviteEventContent | EmptyObject;
|
||||
[EventType.RoomPowerLevels]: RoomPowerLevelsEventContent;
|
||||
[EventType.RoomName]: RoomNameEventContent;
|
||||
[EventType.RoomTopic]: RoomTopicEventContent;
|
||||
[EventType.RoomAvatar]: RoomAvatarEventContent;
|
||||
[EventType.RoomPinnedEvents]: RoomPinnedEventsEventContent;
|
||||
[EventType.RoomEncryption]: RoomEncryptionEventContent;
|
||||
[EventType.RoomHistoryVisibility]: RoomHistoryVisibilityEventContent;
|
||||
[EventType.RoomGuestAccess]: RoomGuestAccessEventContent;
|
||||
[EventType.RoomServerAcl]: RoomServerAclEventContent;
|
||||
[EventType.RoomTombstone]: RoomTombstoneEventContent;
|
||||
[EventType.SpaceChild]: SpaceChildEventContent;
|
||||
[EventType.SpaceParent]: SpaceParentEventContent;
|
||||
[EventType.PolicyRuleUser]: PolicyRuleEventContent | EmptyObject;
|
||||
[EventType.PolicyRuleRoom]: PolicyRuleEventContent | EmptyObject;
|
||||
[EventType.PolicyRuleServer]: PolicyRuleEventContent | EmptyObject;
|
||||
[EventType.RoomPolicy]: RoomPolicyContent | EmptyObject;
|
||||
[EventType.GroupCallPrefix]: IGroupCallRoomState;
|
||||
[EventType.GroupCallMemberPrefix]: IGroupCallRoomMemberState | SessionMembershipData | EmptyObject;
|
||||
[EventType.RTCMembership]: RtcMembershipData | EmptyObject;
|
||||
[EventType.RTCSlot]: RtcSlotEventContent | EmptyObject;
|
||||
[UNSTABLE_MSC3089_BRANCH.name]: MSC3089EventContent;
|
||||
[M_BEACON_INFO.name]: MBeaconInfoEventContent;
|
||||
[ROOM_RETENTION_TYPE.name]: RoomRetentionContent | EmptyObject;
|
||||
[ROOM_RETENTION_TYPE.altName]: RoomRetentionContent | EmptyObject;
|
||||
}
|
||||
/**
|
||||
* Mapped type from event type to content type for all specified room-specific account_data events.
|
||||
*/
|
||||
export interface RoomAccountDataEvents extends SecretStorageAccountDataEvents {
|
||||
[EventType.FullyRead]: {
|
||||
event_id: string;
|
||||
};
|
||||
[EventType.Tag]: {
|
||||
tags: {
|
||||
[name: string]: {
|
||||
order?: number;
|
||||
};
|
||||
};
|
||||
};
|
||||
[EventType.SpaceOrder]: {
|
||||
order: string;
|
||||
};
|
||||
[EventType.MarkedUnread]: {
|
||||
unread: boolean;
|
||||
};
|
||||
}
|
||||
/**
|
||||
* Mapped type from event type to content type for all specified global account_data events.
|
||||
*/
|
||||
export interface AccountDataEvents extends SecretStorageAccountDataEvents {
|
||||
[EventType.PushRules]: IPushRules;
|
||||
[EventType.Direct]: {
|
||||
[userId: string]: string[];
|
||||
};
|
||||
[EventType.IgnoredUserList]: {
|
||||
ignored_users: {
|
||||
[userId: string]: EmptyObject;
|
||||
};
|
||||
};
|
||||
"m.secret_storage.default_key": {
|
||||
key: string;
|
||||
};
|
||||
"m.key_backup": {
|
||||
enabled: boolean;
|
||||
};
|
||||
"m.org.matrix.custom.backup_disabled": {
|
||||
disabled: boolean;
|
||||
};
|
||||
"m.identity_server": {
|
||||
base_url: string | null;
|
||||
};
|
||||
[key: `${typeof LOCAL_NOTIFICATION_SETTINGS_PREFIX.name}.${string}`]: LocalNotificationSettings;
|
||||
[key: `m.secret_storage.key.${string}`]: SecretStorageKeyDescription;
|
||||
[POLICIES_ACCOUNT_EVENT_TYPE.name]: {
|
||||
[key: string]: any;
|
||||
};
|
||||
[POLICIES_ACCOUNT_EVENT_TYPE.altName]: {
|
||||
[key: string]: any;
|
||||
};
|
||||
[EventType.InvitePermissionConfig]: {
|
||||
default_action?: string;
|
||||
};
|
||||
"m.recent_emoji": {
|
||||
recent_emoji: Array<{
|
||||
emoji: string;
|
||||
total: number;
|
||||
}>;
|
||||
};
|
||||
}
|
||||
/**
|
||||
* Subset of AccountDataEvents, excluding events specified in https://spec.matrix.org/v1.17/client-server-api/#server-behaviour-12
|
||||
*/
|
||||
export type WritableAccountDataEvents = Exclude<AccountDataEvents, "m.fully_read" | "m.push_rules">;
|
||||
/**
|
||||
* Mapped type from event type to content type for all specified global events encrypted by secret storage.
|
||||
*
|
||||
* See https://spec.matrix.org/v1.13/client-server-api/#msecret_storagev1aes-hmac-sha2-1
|
||||
*/
|
||||
export interface SecretStorageAccountDataEvents {
|
||||
"m.megolm_backup.v1": SecretInfo;
|
||||
"m.cross_signing.master": SecretInfo;
|
||||
"m.cross_signing.self_signing": SecretInfo;
|
||||
"m.cross_signing.user_signing": SecretInfo;
|
||||
"org.matrix.msc3814": SecretInfo;
|
||||
}
|
||||
//# sourceMappingURL=event.d.ts.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/event.d.ts.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/event.d.ts.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
284
node_modules/matrix-js-sdk/lib/@types/event.js
generated
vendored
Normal file
284
node_modules/matrix-js-sdk/lib/@types/event.js
generated
vendored
Normal file
@@ -0,0 +1,284 @@
|
||||
/*
|
||||
Copyright 2020-2026 The Matrix.org Foundation C.I.C.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
import { NamespacedValue, UnstableValue } from "../NamespacedValue.js";
|
||||
export let EventType = /*#__PURE__*/function (EventType) {
|
||||
// Room state events
|
||||
EventType["RoomCanonicalAlias"] = "m.room.canonical_alias";
|
||||
EventType["RoomCreate"] = "m.room.create";
|
||||
EventType["RoomJoinRules"] = "m.room.join_rules";
|
||||
EventType["RoomMember"] = "m.room.member";
|
||||
EventType["RoomThirdPartyInvite"] = "m.room.third_party_invite";
|
||||
EventType["RoomPowerLevels"] = "m.room.power_levels";
|
||||
EventType["RoomName"] = "m.room.name";
|
||||
EventType["RoomTopic"] = "m.room.topic";
|
||||
EventType["RoomAvatar"] = "m.room.avatar";
|
||||
EventType["RoomPinnedEvents"] = "m.room.pinned_events";
|
||||
EventType["RoomEncryption"] = "m.room.encryption";
|
||||
EventType["RoomHistoryVisibility"] = "m.room.history_visibility";
|
||||
EventType["RoomGuestAccess"] = "m.room.guest_access";
|
||||
EventType["RoomServerAcl"] = "m.room.server_acl";
|
||||
EventType["RoomTombstone"] = "m.room.tombstone";
|
||||
EventType["RoomPredecessor"] = "org.matrix.msc3946.room_predecessor";
|
||||
// Moderation policy lists
|
||||
EventType["PolicyRuleUser"] = "m.policy.rule.user";
|
||||
EventType["PolicyRuleRoom"] = "m.policy.rule.room";
|
||||
EventType["PolicyRuleServer"] = "m.policy.rule.server";
|
||||
EventType["SpaceChild"] = "m.space.child";
|
||||
EventType["SpaceParent"] = "m.space.parent";
|
||||
// Room timeline events
|
||||
EventType["RoomRedaction"] = "m.room.redaction";
|
||||
EventType["RoomMessage"] = "m.room.message";
|
||||
EventType["RoomMessageEncrypted"] = "m.room.encrypted";
|
||||
EventType["Sticker"] = "m.sticker";
|
||||
EventType["CallInvite"] = "m.call.invite";
|
||||
EventType["CallCandidates"] = "m.call.candidates";
|
||||
EventType["CallAnswer"] = "m.call.answer";
|
||||
EventType["CallHangup"] = "m.call.hangup";
|
||||
EventType["CallReject"] = "m.call.reject";
|
||||
EventType["CallSelectAnswer"] = "m.call.select_answer";
|
||||
EventType["CallNegotiate"] = "m.call.negotiate";
|
||||
EventType["CallSDPStreamMetadataChanged"] = "m.call.sdp_stream_metadata_changed";
|
||||
EventType["CallSDPStreamMetadataChangedPrefix"] = "org.matrix.call.sdp_stream_metadata_changed";
|
||||
EventType["CallReplaces"] = "m.call.replaces";
|
||||
EventType["CallAssertedIdentity"] = "m.call.asserted_identity";
|
||||
EventType["CallAssertedIdentityPrefix"] = "org.matrix.call.asserted_identity";
|
||||
EventType["CallEncryptionKeysPrefix"] = "io.element.call.encryption_keys";
|
||||
EventType["KeyVerificationRequest"] = "m.key.verification.request";
|
||||
EventType["KeyVerificationStart"] = "m.key.verification.start";
|
||||
EventType["KeyVerificationCancel"] = "m.key.verification.cancel";
|
||||
EventType["KeyVerificationMac"] = "m.key.verification.mac";
|
||||
EventType["KeyVerificationDone"] = "m.key.verification.done";
|
||||
EventType["KeyVerificationKey"] = "m.key.verification.key";
|
||||
EventType["KeyVerificationAccept"] = "m.key.verification.accept";
|
||||
// Not used directly - see READY_TYPE in VerificationRequest.
|
||||
EventType["KeyVerificationReady"] = "m.key.verification.ready";
|
||||
// use of this is discouraged https://matrix.org/docs/spec/client_server/r0.6.1#m-room-message-feedback
|
||||
EventType["RoomMessageFeedback"] = "m.room.message.feedback";
|
||||
EventType["Reaction"] = "m.reaction";
|
||||
EventType["PollStart"] = "org.matrix.msc3381.poll.start";
|
||||
// Room ephemeral events
|
||||
EventType["Typing"] = "m.typing";
|
||||
EventType["Receipt"] = "m.receipt";
|
||||
EventType["Presence"] = "m.presence";
|
||||
// Room account_data events
|
||||
EventType["FullyRead"] = "m.fully_read";
|
||||
EventType["Tag"] = "m.tag";
|
||||
EventType["SpaceOrder"] = "org.matrix.msc3230.space_order";
|
||||
// MSC3230
|
||||
EventType["MarkedUnread"] = "m.marked_unread";
|
||||
// User account_data events
|
||||
EventType["PushRules"] = "m.push_rules";
|
||||
EventType["Direct"] = "m.direct";
|
||||
EventType["IgnoredUserList"] = "m.ignored_user_list";
|
||||
EventType["InvitePermissionConfig"] = "m.invite_permission_config";
|
||||
// MSC4380
|
||||
// to_device events
|
||||
EventType["RoomKey"] = "m.room_key";
|
||||
EventType["RoomKeyRequest"] = "m.room_key_request";
|
||||
EventType["ForwardedRoomKey"] = "m.forwarded_room_key";
|
||||
EventType["Dummy"] = "m.dummy";
|
||||
EventType["SecretRequest"] = "m.secret.request";
|
||||
EventType["SecretSend"] = "m.secret.send";
|
||||
// Group call events
|
||||
EventType["GroupCallPrefix"] = "org.matrix.msc3401.call";
|
||||
EventType["GroupCallMemberPrefix"] = "org.matrix.msc3401.call.member";
|
||||
// MatrixRTC events
|
||||
EventType["RTCSlot"] = "org.matrix.msc4143.rtc.slot";
|
||||
EventType["RTCMembership"] = "org.matrix.msc4143.rtc.member";
|
||||
EventType["CallNotify"] = "org.matrix.msc4075.call.notify";
|
||||
EventType["RTCNotification"] = "org.matrix.msc4075.rtc.notification";
|
||||
EventType["RTCDecline"] = "org.matrix.msc4310.rtc.decline";
|
||||
// Policy servers
|
||||
EventType["RoomPolicy"] = "org.matrix.msc4284.policy";
|
||||
// Retention
|
||||
EventType["RetentionPolicy"] = "m.room.retention";
|
||||
EventType["RetentionPolicyUnstable"] = "org.matrix.msc1763.retention";
|
||||
return EventType;
|
||||
}({});
|
||||
export let RelationType = /*#__PURE__*/function (RelationType) {
|
||||
RelationType["Annotation"] = "m.annotation";
|
||||
RelationType["Replace"] = "m.replace";
|
||||
RelationType["Reference"] = "m.reference";
|
||||
// Don't use this yet: it's only the stable version. The code still assumes we support the unstable prefix and,
|
||||
// moreover, our tests currently use the unstable prefix. Use THREAD_RELATION_TYPE.name.
|
||||
// Once we support *only* the stable prefix, THREAD_RELATION_TYPE can die and we can switch to this.
|
||||
RelationType["Thread"] = "m.thread";
|
||||
return RelationType;
|
||||
}({});
|
||||
export let MsgType = /*#__PURE__*/function (MsgType) {
|
||||
MsgType["Text"] = "m.text";
|
||||
MsgType["Emote"] = "m.emote";
|
||||
MsgType["Notice"] = "m.notice";
|
||||
MsgType["Image"] = "m.image";
|
||||
MsgType["File"] = "m.file";
|
||||
MsgType["Audio"] = "m.audio";
|
||||
MsgType["Location"] = "m.location";
|
||||
MsgType["Video"] = "m.video";
|
||||
MsgType["KeyVerificationRequest"] = "m.key.verification.request";
|
||||
return MsgType;
|
||||
}({});
|
||||
export const RoomCreateTypeField = "type";
|
||||
export let RoomType = /*#__PURE__*/function (RoomType) {
|
||||
RoomType["Space"] = "m.space";
|
||||
RoomType["UnstableCall"] = "org.matrix.msc3417.call";
|
||||
RoomType["ElementVideo"] = "io.element.video";
|
||||
return RoomType;
|
||||
}({});
|
||||
export const ToDeviceMessageId = "org.matrix.msgid";
|
||||
|
||||
/**
|
||||
* Identifier for an [MSC3088](https://github.com/matrix-org/matrix-doc/pull/3088)
|
||||
* room purpose. Note that this reference is UNSTABLE and subject to breaking changes,
|
||||
* including its eventual removal.
|
||||
*/
|
||||
export const UNSTABLE_MSC3088_PURPOSE = new UnstableValue("m.room.purpose", "org.matrix.msc3088.purpose");
|
||||
|
||||
/**
|
||||
* Enabled flag for an [MSC3088](https://github.com/matrix-org/matrix-doc/pull/3088)
|
||||
* room purpose. Note that this reference is UNSTABLE and subject to breaking changes,
|
||||
* including its eventual removal.
|
||||
*/
|
||||
export const UNSTABLE_MSC3088_ENABLED = new UnstableValue("m.enabled", "org.matrix.msc3088.enabled");
|
||||
|
||||
/**
|
||||
* Subtype for an [MSC3089](https://github.com/matrix-org/matrix-doc/pull/3089) space-room.
|
||||
* Note that this reference is UNSTABLE and subject to breaking changes, including its
|
||||
* eventual removal.
|
||||
*/
|
||||
export const UNSTABLE_MSC3089_TREE_SUBTYPE = new UnstableValue("m.data_tree", "org.matrix.msc3089.data_tree");
|
||||
|
||||
/**
|
||||
* Leaf type for an event in a [MSC3089](https://github.com/matrix-org/matrix-doc/pull/3089) space-room.
|
||||
* Note that this reference is UNSTABLE and subject to breaking changes, including its
|
||||
* eventual removal.
|
||||
*/
|
||||
export const UNSTABLE_MSC3089_LEAF = new UnstableValue("m.leaf", "org.matrix.msc3089.leaf");
|
||||
|
||||
/**
|
||||
* Branch (Leaf Reference) type for the index approach in a
|
||||
* [MSC3089](https://github.com/matrix-org/matrix-doc/pull/3089) space-room. Note that this reference is
|
||||
* UNSTABLE and subject to breaking changes, including its eventual removal.
|
||||
*/
|
||||
export const UNSTABLE_MSC3089_BRANCH = new UnstableValue("m.branch", "org.matrix.msc3089.branch");
|
||||
|
||||
/**
|
||||
* Marker event type to point back at imported historical content in a room. See
|
||||
* [MSC2716](https://github.com/matrix-org/matrix-spec-proposals/pull/2716).
|
||||
* Note that this reference is UNSTABLE and subject to breaking changes,
|
||||
* including its eventual removal.
|
||||
*/
|
||||
export const UNSTABLE_MSC2716_MARKER = new UnstableValue("m.room.marker", "org.matrix.msc2716.marker");
|
||||
|
||||
/**
|
||||
* Name of the request property for relation based redactions.
|
||||
* {@link https://github.com/matrix-org/matrix-spec-proposals/pull/3912}
|
||||
*/
|
||||
export const MSC3912_RELATION_BASED_REDACTIONS_PROP = new UnstableValue("with_rel_types", "org.matrix.msc3912.with_relations");
|
||||
|
||||
/**
|
||||
* Functional members type for declaring a purpose of room members (e.g. helpful bots).
|
||||
* Note that this reference is UNSTABLE and subject to breaking changes, including its
|
||||
* eventual removal.
|
||||
*
|
||||
* Schema (TypeScript):
|
||||
* ```
|
||||
* {
|
||||
* service_members?: string[]
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
* @example
|
||||
* ```
|
||||
* {
|
||||
* "service_members": [
|
||||
* "@helperbot:localhost",
|
||||
* "@reminderbot:alice.tdl"
|
||||
* ]
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
export const UNSTABLE_ELEMENT_FUNCTIONAL_USERS = new UnstableValue("io.element.functional_members", "io.element.functional_members");
|
||||
|
||||
/**
|
||||
* A type of message that affects visibility of a message,
|
||||
* as per https://github.com/matrix-org/matrix-doc/pull/3531
|
||||
*
|
||||
* @experimental
|
||||
*/
|
||||
export const EVENT_VISIBILITY_CHANGE_TYPE = new UnstableValue("m.visibility", "org.matrix.msc3531.visibility");
|
||||
|
||||
/**
|
||||
* https://github.com/matrix-org/matrix-doc/pull/3881
|
||||
*
|
||||
* @experimental
|
||||
*/
|
||||
export const PUSHER_ENABLED = new UnstableValue("enabled", "org.matrix.msc3881.enabled");
|
||||
|
||||
/**
|
||||
* https://github.com/matrix-org/matrix-doc/pull/3881
|
||||
*
|
||||
* @experimental
|
||||
*/
|
||||
export const PUSHER_DEVICE_ID = new UnstableValue("device_id", "org.matrix.msc3881.device_id");
|
||||
|
||||
/**
|
||||
* https://github.com/matrix-org/matrix-doc/pull/3890
|
||||
*
|
||||
* @experimental
|
||||
*/
|
||||
export const LOCAL_NOTIFICATION_SETTINGS_PREFIX = new UnstableValue("m.local_notification_settings", "org.matrix.msc3890.local_notification_settings");
|
||||
|
||||
/**
|
||||
* https://github.com/matrix-org/matrix-doc/pull/4023
|
||||
*
|
||||
* @experimental
|
||||
*/
|
||||
export const UNSIGNED_THREAD_ID_FIELD = new UnstableValue("thread_id", "org.matrix.msc4023.thread_id");
|
||||
|
||||
/**
|
||||
* https://github.com/matrix-org/matrix-spec-proposals/pull/4115
|
||||
*
|
||||
* @experimental
|
||||
*/
|
||||
export const UNSIGNED_MEMBERSHIP_FIELD = new NamespacedValue("membership", "io.element.msc4115.membership");
|
||||
|
||||
/**
|
||||
* Mapped type from event type to content type for all specified non-state room events.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Mapped type from event type to content type for all specified room state events.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Mapped type from event type to content type for all specified room-specific account_data events.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Mapped type from event type to content type for all specified global account_data events.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Subset of AccountDataEvents, excluding events specified in https://spec.matrix.org/v1.17/client-server-api/#server-behaviour-12
|
||||
*/
|
||||
|
||||
/**
|
||||
* Mapped type from event type to content type for all specified global events encrypted by secret storage.
|
||||
*
|
||||
* See https://spec.matrix.org/v1.13/client-server-api/#msecret_storagev1aes-hmac-sha2-1
|
||||
*/
|
||||
//# sourceMappingURL=event.js.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/event.js.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/event.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
92
node_modules/matrix-js-sdk/lib/@types/events.d.ts
generated
vendored
Normal file
92
node_modules/matrix-js-sdk/lib/@types/events.d.ts
generated
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
import { type MsgType, type RelationType } from "./event.ts";
|
||||
import { type FileInfo, type ImageInfo, type MediaEventContent } from "./media.ts";
|
||||
import { type XOR } from "./common.ts";
|
||||
interface BaseTimelineEvent {
|
||||
"body": string;
|
||||
"m.mentions"?: {
|
||||
user_ids?: string[];
|
||||
room?: boolean;
|
||||
};
|
||||
}
|
||||
interface ReplyEvent {
|
||||
"m.relates_to"?: {
|
||||
"m.in_reply_to"?: {
|
||||
event_id: string;
|
||||
};
|
||||
};
|
||||
}
|
||||
interface NoRelationEvent {
|
||||
"m.new_content"?: never;
|
||||
"m.relates_to"?: never;
|
||||
}
|
||||
/**
|
||||
* Partial content format of timeline events with rel_type `m.replace`
|
||||
*
|
||||
* @see https://spec.matrix.org/v1.9/client-server-api/#event-replacements
|
||||
*/
|
||||
export interface ReplacementEvent<T> {
|
||||
"m.new_content": T;
|
||||
"m.relates_to": {
|
||||
event_id: string;
|
||||
rel_type: RelationType.Replace;
|
||||
};
|
||||
}
|
||||
/**
|
||||
* Partial content format of timeline events with rel_type other than `m.replace`
|
||||
*
|
||||
* @see https://spec.matrix.org/v1.9/client-server-api/#forming-relationships-between-events
|
||||
*/
|
||||
export interface RelationEvent {
|
||||
"m.new_content"?: never;
|
||||
"m.relates_to": {
|
||||
event_id: string;
|
||||
rel_type: Exclude<RelationType, RelationType.Replace>;
|
||||
};
|
||||
}
|
||||
/**
|
||||
* Content format of timeline events with type `m.room.message` and `msgtype` `m.text`, `m.emote`, or `m.notice`
|
||||
*
|
||||
* @see https://spec.matrix.org/v1.9/client-server-api/#mroommessage
|
||||
*/
|
||||
export interface RoomMessageTextEventContent extends BaseTimelineEvent {
|
||||
msgtype: MsgType.Text | MsgType.Emote | MsgType.Notice;
|
||||
format?: "org.matrix.custom.html";
|
||||
formatted_body?: string;
|
||||
}
|
||||
/**
|
||||
* Content format of timeline events with type `m.room.message` and `msgtype` `m.location`
|
||||
*
|
||||
* @see https://spec.matrix.org/v1.9/client-server-api/#mlocation
|
||||
*/
|
||||
export interface RoomMessageLocationEventContent extends BaseTimelineEvent {
|
||||
body: string;
|
||||
geo_uri: string;
|
||||
info: Pick<FileInfo, "thumbnail_info" | "thumbnail_file" | "thumbnail_url">;
|
||||
msgtype: MsgType.Location;
|
||||
}
|
||||
type MessageEventContent = RoomMessageTextEventContent | RoomMessageLocationEventContent | MediaEventContent;
|
||||
export type RoomMessageEventContent = BaseTimelineEvent & XOR<XOR<ReplacementEvent<MessageEventContent>, RelationEvent>, XOR<ReplyEvent, NoRelationEvent>> & MessageEventContent;
|
||||
/**
|
||||
* Content format of timeline events with type `m.sticker`
|
||||
*
|
||||
* @see https://spec.matrix.org/v1.9/client-server-api/#msticker
|
||||
*/
|
||||
export interface StickerEventContent extends BaseTimelineEvent {
|
||||
body: string;
|
||||
info: ImageInfo;
|
||||
url: string;
|
||||
}
|
||||
/**
|
||||
* Content format of timeline events with type `m.reaction`
|
||||
*
|
||||
* @see https://spec.matrix.org/v1.9/client-server-api/#mreaction
|
||||
*/
|
||||
export interface ReactionEventContent {
|
||||
"m.relates_to": {
|
||||
event_id: string;
|
||||
key: string;
|
||||
rel_type: RelationType.Annotation;
|
||||
};
|
||||
}
|
||||
export {};
|
||||
//# sourceMappingURL=events.d.ts.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/events.d.ts.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/events.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/@types/events.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,SAAS,EAAE,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACnF,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,aAAa,CAAC;AAEvC,UAAU,iBAAiB;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE;QACX,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;QACpB,IAAI,CAAC,EAAE,OAAO,CAAC;KAClB,CAAC;CACL;AAED,UAAU,UAAU;IAChB,cAAc,CAAC,EAAE;QACb,eAAe,CAAC,EAAE;YACd,QAAQ,EAAE,MAAM,CAAC;SACpB,CAAC;KACL,CAAC;CACL;AAED,UAAU,eAAe;IACrB,eAAe,CAAC,EAAE,KAAK,CAAC;IACxB,cAAc,CAAC,EAAE,KAAK,CAAC;CAC1B;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB,CAAC,CAAC;IAC/B,eAAe,EAAE,CAAC,CAAC;IACnB,cAAc,EAAE;QACZ,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,YAAY,CAAC,OAAO,CAAC;KAClC,CAAC;CACL;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B,eAAe,CAAC,EAAE,KAAK,CAAC;IACxB,cAAc,EAAE;QACZ,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,OAAO,CAAC,YAAY,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;KACzD,CAAC;CACL;AAED;;;;GAIG;AACH,MAAM,WAAW,2BAA4B,SAAQ,iBAAiB;IAClE,OAAO,EAAE,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC;IACvD,MAAM,CAAC,EAAE,wBAAwB,CAAC;IAClC,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;;;GAIG;AACH,MAAM,WAAW,+BAAgC,SAAQ,iBAAiB;IACtE,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,gBAAgB,GAAG,gBAAgB,GAAG,eAAe,CAAC,CAAC;IAC5E,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC;CAC7B;AAED,KAAK,mBAAmB,GAAG,2BAA2B,GAAG,+BAA+B,GAAG,iBAAiB,CAAC;AAE7G,MAAM,MAAM,uBAAuB,GAAG,iBAAiB,GACnD,GAAG,CAAC,GAAG,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,EAAE,aAAa,CAAC,EAAE,GAAG,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC,GAChG,mBAAmB,CAAC;AAExB;;;;GAIG;AACH,MAAM,WAAW,mBAAoB,SAAQ,iBAAiB;IAC1D,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,SAAS,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;CACf;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC,cAAc,EAAE;QACZ,QAAQ,EAAE,MAAM,CAAC;QACjB,GAAG,EAAE,MAAM,CAAC;QACZ,QAAQ,EAAE,YAAY,CAAC,UAAU,CAAC;KACrC,CAAC;CACL"}
|
||||
3
node_modules/matrix-js-sdk/lib/@types/events.js
generated
vendored
Normal file
3
node_modules/matrix-js-sdk/lib/@types/events.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export {};
|
||||
export {};
|
||||
//# sourceMappingURL=events.js.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/events.js.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/events.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"events.js","names":[],"sources":["../../src/@types/events.ts"],"sourcesContent":["/*\nCopyright 2024 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport { type MsgType, type RelationType } from \"./event.ts\";\nimport { type FileInfo, type ImageInfo, type MediaEventContent } from \"./media.ts\";\nimport { type XOR } from \"./common.ts\";\n\ninterface BaseTimelineEvent {\n \"body\": string;\n \"m.mentions\"?: {\n user_ids?: string[];\n room?: boolean;\n };\n}\n\ninterface ReplyEvent {\n \"m.relates_to\"?: {\n \"m.in_reply_to\"?: {\n event_id: string;\n };\n };\n}\n\ninterface NoRelationEvent {\n \"m.new_content\"?: never;\n \"m.relates_to\"?: never;\n}\n\n/**\n * Partial content format of timeline events with rel_type `m.replace`\n *\n * @see https://spec.matrix.org/v1.9/client-server-api/#event-replacements\n */\nexport interface ReplacementEvent<T> {\n \"m.new_content\": T;\n \"m.relates_to\": {\n event_id: string;\n rel_type: RelationType.Replace;\n };\n}\n\n/**\n * Partial content format of timeline events with rel_type other than `m.replace`\n *\n * @see https://spec.matrix.org/v1.9/client-server-api/#forming-relationships-between-events\n */\nexport interface RelationEvent {\n \"m.new_content\"?: never;\n \"m.relates_to\": {\n event_id: string;\n rel_type: Exclude<RelationType, RelationType.Replace>;\n };\n}\n\n/**\n * Content format of timeline events with type `m.room.message` and `msgtype` `m.text`, `m.emote`, or `m.notice`\n *\n * @see https://spec.matrix.org/v1.9/client-server-api/#mroommessage\n */\nexport interface RoomMessageTextEventContent extends BaseTimelineEvent {\n msgtype: MsgType.Text | MsgType.Emote | MsgType.Notice;\n format?: \"org.matrix.custom.html\";\n formatted_body?: string;\n}\n\n/**\n * Content format of timeline events with type `m.room.message` and `msgtype` `m.location`\n *\n * @see https://spec.matrix.org/v1.9/client-server-api/#mlocation\n */\nexport interface RoomMessageLocationEventContent extends BaseTimelineEvent {\n body: string;\n geo_uri: string;\n info: Pick<FileInfo, \"thumbnail_info\" | \"thumbnail_file\" | \"thumbnail_url\">;\n msgtype: MsgType.Location;\n}\n\ntype MessageEventContent = RoomMessageTextEventContent | RoomMessageLocationEventContent | MediaEventContent;\n\nexport type RoomMessageEventContent = BaseTimelineEvent &\n XOR<XOR<ReplacementEvent<MessageEventContent>, RelationEvent>, XOR<ReplyEvent, NoRelationEvent>> &\n MessageEventContent;\n\n/**\n * Content format of timeline events with type `m.sticker`\n *\n * @see https://spec.matrix.org/v1.9/client-server-api/#msticker\n */\nexport interface StickerEventContent extends BaseTimelineEvent {\n body: string;\n info: ImageInfo;\n url: string;\n}\n\n/**\n * Content format of timeline events with type `m.reaction`\n *\n * @see https://spec.matrix.org/v1.9/client-server-api/#mreaction\n */\nexport interface ReactionEventContent {\n \"m.relates_to\": {\n event_id: string;\n key: string;\n rel_type: RelationType.Annotation;\n };\n}\n"],"mappings":"","ignoreList":[]}
|
||||
98
node_modules/matrix-js-sdk/lib/@types/extensible_events.d.ts
generated
vendored
Normal file
98
node_modules/matrix-js-sdk/lib/@types/extensible_events.d.ts
generated
vendored
Normal file
@@ -0,0 +1,98 @@
|
||||
import { type EitherAnd, NamespacedValue, UnstableValue } from "matrix-events-sdk";
|
||||
/**
|
||||
* Represents the stable and unstable values of a given namespace.
|
||||
*/
|
||||
export type TSNamespace<N> = N extends NamespacedValue<infer S, infer U> ? TSNamespaceValue<S> | TSNamespaceValue<U> : never;
|
||||
/**
|
||||
* Represents a namespaced value, if the value is a string. Used to extract provided types
|
||||
* from a TSNamespace<N> (in cases where only stable *or* unstable is provided).
|
||||
*/
|
||||
export type TSNamespaceValue<V> = V extends string ? V : never;
|
||||
/**
|
||||
* Creates a type which is V when T is `never`, otherwise T.
|
||||
*/
|
||||
export type DefaultNever<T, V> = [T] extends [never] ? V : T;
|
||||
/**
|
||||
* The namespaced value for m.message
|
||||
*/
|
||||
export declare const M_MESSAGE: UnstableValue<"m.message", "org.matrix.msc1767.message">;
|
||||
/**
|
||||
* An m.message event rendering
|
||||
*/
|
||||
export interface IMessageRendering {
|
||||
body: string;
|
||||
mimetype?: string;
|
||||
}
|
||||
/**
|
||||
* The content for an m.message event
|
||||
*/
|
||||
export type ExtensibleMessageEventContent = EitherAnd<{
|
||||
[M_MESSAGE.name]: IMessageRendering[];
|
||||
}, {
|
||||
[M_MESSAGE.altName]: IMessageRendering[];
|
||||
}>;
|
||||
/**
|
||||
* The namespaced value for m.text
|
||||
*/
|
||||
export declare const M_TEXT: UnstableValue<"m.text", "org.matrix.msc1767.text">;
|
||||
/**
|
||||
* The content for an m.text event
|
||||
*/
|
||||
export type TextEventContent = EitherAnd<{
|
||||
[M_TEXT.name]: string;
|
||||
}, {
|
||||
[M_TEXT.altName]: string;
|
||||
}>;
|
||||
/**
|
||||
* The namespaced value for m.html
|
||||
*/
|
||||
export declare const M_HTML: UnstableValue<"m.html", "org.matrix.msc1767.html">;
|
||||
/**
|
||||
* The content for an m.html event
|
||||
*/
|
||||
export type HtmlEventContent = EitherAnd<{
|
||||
[M_HTML.name]: string;
|
||||
}, {
|
||||
[M_HTML.altName]: string;
|
||||
}>;
|
||||
/**
|
||||
* The content for an m.message, m.text, or m.html event
|
||||
*/
|
||||
export type ExtensibleAnyMessageEventContent = ExtensibleMessageEventContent | TextEventContent | HtmlEventContent;
|
||||
/**
|
||||
* The namespaced value for an m.reference relation
|
||||
*/
|
||||
export declare const REFERENCE_RELATION: NamespacedValue<"m.reference", string>;
|
||||
/**
|
||||
* Represents any relation type
|
||||
*/
|
||||
export type AnyRelation = TSNamespace<typeof REFERENCE_RELATION> | string;
|
||||
/**
|
||||
* An m.relates_to relationship
|
||||
*/
|
||||
export type RelatesToRelationship<R = never> = {
|
||||
"m.relates_to": {
|
||||
rel_type: [R] extends [never] ? AnyRelation : TSNamespace<R>;
|
||||
event_id: string;
|
||||
};
|
||||
};
|
||||
/**
|
||||
* Partial types for a Matrix Event.
|
||||
*/
|
||||
export interface IPartialEvent<TContent> {
|
||||
type: string;
|
||||
content: TContent;
|
||||
}
|
||||
/**
|
||||
* Represents a potentially namespaced event type.
|
||||
*/
|
||||
export type ExtensibleEventType = NamespacedValue<string, string> | string;
|
||||
/**
|
||||
* Determines if two event types are the same, including namespaces.
|
||||
* @param given - The given event type. This will be compared
|
||||
* against the expected type.
|
||||
* @param expected - The expected event type.
|
||||
* @returns True if the given type matches the expected type.
|
||||
*/
|
||||
export declare function isEventTypeSame(given: ExtensibleEventType | null, expected: ExtensibleEventType | null): boolean;
|
||||
//# sourceMappingURL=extensible_events.d.ts.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/extensible_events.d.ts.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/extensible_events.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"extensible_events.d.ts","sourceRoot":"","sources":["../../src/@types/extensible_events.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,SAAS,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAMnF;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IACrB,CAAC,SAAS,eAAe,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC;AAEpG;;;GAGG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GAAG,CAAC,GAAG,KAAK,CAAC;AAE/D;;GAEG;AAEH,MAAM,MAAM,YAAY,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE7D;;GAEG;AACH,eAAO,MAAM,SAAS,0DAA+D,CAAC;AAEtF;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,SAAS,CACjD;IAAE,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,iBAAiB,EAAE,CAAA;CAAE,EACzC;IAAE,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAA;CAAE,CAC/C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM,oDAAyD,CAAC;AAE7E;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC;IAAE,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE;IAAE,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAElG;;GAEG;AACH,eAAO,MAAM,MAAM,oDAAyD,CAAC;AAE7E;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC;IAAE,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE;IAAE,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAElG;;GAEG;AACH,MAAM,MAAM,gCAAgC,GAAG,6BAA6B,GAAG,gBAAgB,GAAG,gBAAgB,CAAC;AAEnH;;GAEG;AACH,eAAO,MAAM,kBAAkB,wCAAqC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,WAAW,CAAC,OAAO,kBAAkB,CAAC,GAAG,MAAM,CAAC;AAE1E;;GAEG;AACH,MAAM,MAAM,qBAAqB,CAAC,CAAC,GAAG,KAAK,IAAI;IAC3C,cAAc,EAAE;QAEZ,QAAQ,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,WAAW,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;QAC7D,QAAQ,EAAE,MAAM,CAAC;KACpB,CAAC;CACL,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,aAAa,CAAC,QAAQ;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,QAAQ,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC;AAE3E;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,mBAAmB,GAAG,IAAI,EAAE,QAAQ,EAAE,mBAAmB,GAAG,IAAI,GAAG,OAAO,CAkBhH"}
|
||||
116
node_modules/matrix-js-sdk/lib/@types/extensible_events.js
generated
vendored
Normal file
116
node_modules/matrix-js-sdk/lib/@types/extensible_events.js
generated
vendored
Normal file
@@ -0,0 +1,116 @@
|
||||
/*
|
||||
Copyright 2021 - 2023 The Matrix.org Foundation C.I.C.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
import { NamespacedValue, UnstableValue } from "matrix-events-sdk";
|
||||
import { isProvided } from "../extensible_events_v1/utilities.js";
|
||||
|
||||
// Types and utilities for MSC1767: Extensible events (version 1) in Matrix
|
||||
|
||||
/**
|
||||
* Represents the stable and unstable values of a given namespace.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents a namespaced value, if the value is a string. Used to extract provided types
|
||||
* from a TSNamespace<N> (in cases where only stable *or* unstable is provided).
|
||||
*/
|
||||
|
||||
/**
|
||||
* Creates a type which is V when T is `never`, otherwise T.
|
||||
*/
|
||||
// See https://github.com/microsoft/TypeScript/issues/23182#issuecomment-379091887 for details on the array syntax.
|
||||
|
||||
/**
|
||||
* The namespaced value for m.message
|
||||
*/
|
||||
export const M_MESSAGE = new UnstableValue("m.message", "org.matrix.msc1767.message");
|
||||
|
||||
/**
|
||||
* An m.message event rendering
|
||||
*/
|
||||
|
||||
/**
|
||||
* The content for an m.message event
|
||||
*/
|
||||
|
||||
/**
|
||||
* The namespaced value for m.text
|
||||
*/
|
||||
export const M_TEXT = new UnstableValue("m.text", "org.matrix.msc1767.text");
|
||||
|
||||
/**
|
||||
* The content for an m.text event
|
||||
*/
|
||||
|
||||
/**
|
||||
* The namespaced value for m.html
|
||||
*/
|
||||
export const M_HTML = new UnstableValue("m.html", "org.matrix.msc1767.html");
|
||||
|
||||
/**
|
||||
* The content for an m.html event
|
||||
*/
|
||||
|
||||
/**
|
||||
* The content for an m.message, m.text, or m.html event
|
||||
*/
|
||||
|
||||
/**
|
||||
* The namespaced value for an m.reference relation
|
||||
*/
|
||||
export const REFERENCE_RELATION = new NamespacedValue("m.reference");
|
||||
|
||||
/**
|
||||
* Represents any relation type
|
||||
*/
|
||||
|
||||
/**
|
||||
* An m.relates_to relationship
|
||||
*/
|
||||
|
||||
/**
|
||||
* Partial types for a Matrix Event.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents a potentially namespaced event type.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Determines if two event types are the same, including namespaces.
|
||||
* @param given - The given event type. This will be compared
|
||||
* against the expected type.
|
||||
* @param expected - The expected event type.
|
||||
* @returns True if the given type matches the expected type.
|
||||
*/
|
||||
export function isEventTypeSame(given, expected) {
|
||||
if (typeof given === "string") {
|
||||
if (typeof expected === "string") {
|
||||
return expected === given;
|
||||
} else {
|
||||
return expected.matches(given);
|
||||
}
|
||||
} else {
|
||||
if (typeof expected === "string") {
|
||||
return given.matches(expected);
|
||||
} else {
|
||||
const expectedNs = expected;
|
||||
const givenNs = given;
|
||||
return expectedNs.matches(givenNs.name) || isProvided(givenNs.altName) && expectedNs.matches(givenNs.altName);
|
||||
}
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=extensible_events.js.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/extensible_events.js.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/extensible_events.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
18
node_modules/matrix-js-sdk/lib/@types/global.d.js
generated
vendored
Normal file
18
node_modules/matrix-js-sdk/lib/@types/global.d.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
Copyright 2020 The Matrix.org Foundation C.I.C.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
export {};
|
||||
//# sourceMappingURL=global.d.js.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/global.d.js.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/global.d.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"global.d.js","names":[],"sources":["../../src/@types/global.d.ts"],"sourcesContent":["/*\nCopyright 2020 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nexport {};\n\ndeclare global {\n // use `number` as the return type in all cases for globalThis.set{Interval,Timeout},\n // so we don't accidentally use the methods on NodeJS.Timeout - they only exist in a subset of environments.\n // The overload for clear{Interval,Timeout} is resolved as expected.\n // We use `ReturnType<typeof setTimeout>` in the code to be agnostic of if this definition gets loaded.\n function setInterval(handler: TimerHandler, timeout: number, ...args: any[]): number;\n function setTimeout(handler: TimerHandler, timeout: number, ...args: any[]): number;\n\n namespace NodeJS {\n interface Global {\n // marker variable used to detect both the browser & node entrypoints being used at once\n __js_sdk_entrypoint: unknown;\n }\n }\n\n // Chrome-specific getUserMedia constraints\n interface MediaTrackConstraints {\n mandatory?: {\n chromeMediaSource: string;\n chromeMediaSourceId: string;\n };\n }\n\n interface Navigator {\n // We check for the webkit-prefixed getUserMedia to detect if we're\n // on webkit: we should check if we still need to do this\n webkitGetUserMedia?: unknown;\n }\n\n export interface Uint8ArrayToBase64Options {\n alphabet?: \"base64\" | \"base64url\";\n omitPadding?: boolean;\n }\n\n interface Uint8Array {\n // https://tc39.es/proposal-arraybuffer-base64/spec/#sec-uint8array.prototype.tobase64\n toBase64?(options?: Uint8ArrayToBase64Options): string;\n }\n\n export interface Uint8ArrayFromBase64Options {\n alphabet?: \"base64\"; // Our fallback code only handles base64.\n lastChunkHandling?: \"loose\"; // Our fallback code doesn't support other handling at this time.\n }\n\n interface Uint8ArrayConstructor {\n // https://tc39.es/proposal-arraybuffer-base64/spec/#sec-uint8array.frombase64\n fromBase64?(base64: string, options?: Uint8ArrayFromBase64Options): Uint8Array<ArrayBuffer>;\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA","ignoreList":[]}
|
||||
7
node_modules/matrix-js-sdk/lib/@types/json.d.ts
generated
vendored
Normal file
7
node_modules/matrix-js-sdk/lib/@types/json.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
export type JsonValue = null | string | number | boolean;
|
||||
export type JsonArray = Array<JsonValue | JsonObject | JsonArray>;
|
||||
export interface JsonObject {
|
||||
[key: string]: JsonObject | JsonArray | JsonValue;
|
||||
}
|
||||
export type Json = JsonArray | JsonObject;
|
||||
//# sourceMappingURL=json.d.ts.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/json.d.ts.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/json.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../src/@types/json.ts"],"names":[],"mappings":"AAUA,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AACzD,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC,CAAC;AAClE,MAAM,WAAW,UAAU;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;CACrD;AACD,MAAM,MAAM,IAAI,GAAG,SAAS,GAAG,UAAU,CAAC"}
|
||||
3
node_modules/matrix-js-sdk/lib/@types/json.js
generated
vendored
Normal file
3
node_modules/matrix-js-sdk/lib/@types/json.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export {};
|
||||
export {};
|
||||
//# sourceMappingURL=json.js.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/json.js.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/json.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"json.js","names":[],"sources":["../../src/@types/json.ts"],"sourcesContent":["/*\nCopyright 2024 New Vector Ltd.\n\nSPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial\nPlease see LICENSE files in the repository root for full details.\n*/\n\n// Types for JSON and JSON objects, copied from element-web (left in both places as I don't think we\n// want this as a part of js-sdk's interface and I don't think it's worth it being its own package)\n\nexport type JsonValue = null | string | number | boolean;\nexport type JsonArray = Array<JsonValue | JsonObject | JsonArray>;\nexport interface JsonObject {\n [key: string]: JsonObject | JsonArray | JsonValue;\n}\nexport type Json = JsonArray | JsonObject;\n"],"mappings":"","ignoreList":[]}
|
||||
4
node_modules/matrix-js-sdk/lib/@types/local_notifications.d.ts
generated
vendored
Normal file
4
node_modules/matrix-js-sdk/lib/@types/local_notifications.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
export interface LocalNotificationSettings {
|
||||
is_silenced: boolean;
|
||||
}
|
||||
//# sourceMappingURL=local_notifications.d.ts.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/local_notifications.d.ts.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/local_notifications.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"local_notifications.d.ts","sourceRoot":"","sources":["../../src/@types/local_notifications.ts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,yBAAyB;IACtC,WAAW,EAAE,OAAO,CAAC;CACxB"}
|
||||
3
node_modules/matrix-js-sdk/lib/@types/local_notifications.js
generated
vendored
Normal file
3
node_modules/matrix-js-sdk/lib/@types/local_notifications.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export {};
|
||||
export {};
|
||||
//# sourceMappingURL=local_notifications.js.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/local_notifications.js.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/local_notifications.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"local_notifications.js","names":[],"sources":["../../src/@types/local_notifications.ts"],"sourcesContent":["/*\nCopyright 2022 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nexport interface LocalNotificationSettings {\n is_silenced: boolean;\n}\n"],"mappings":"","ignoreList":[]}
|
||||
60
node_modules/matrix-js-sdk/lib/@types/location.d.ts
generated
vendored
Normal file
60
node_modules/matrix-js-sdk/lib/@types/location.d.ts
generated
vendored
Normal file
@@ -0,0 +1,60 @@
|
||||
import { type EitherAnd } from "matrix-events-sdk";
|
||||
import { UnstableValue } from "../NamespacedValue.ts";
|
||||
import { type M_TEXT } from "./extensible_events.ts";
|
||||
export declare enum LocationAssetType {
|
||||
Self = "m.self",
|
||||
Pin = "m.pin"
|
||||
}
|
||||
export declare const M_ASSET: UnstableValue<"m.asset", "org.matrix.msc3488.asset">;
|
||||
export type MAssetContent = {
|
||||
type: LocationAssetType;
|
||||
};
|
||||
/**
|
||||
* The event definition for an m.asset event (in content)
|
||||
*/
|
||||
export type MAssetEvent = EitherAnd<{
|
||||
[M_ASSET.name]: MAssetContent;
|
||||
}, {
|
||||
[M_ASSET.altName]: MAssetContent;
|
||||
}>;
|
||||
export declare const M_TIMESTAMP: UnstableValue<"m.ts", "org.matrix.msc3488.ts">;
|
||||
/**
|
||||
* The event definition for an m.ts event (in content)
|
||||
*/
|
||||
export type MTimestampEvent = EitherAnd<{
|
||||
[M_TIMESTAMP.name]: number;
|
||||
}, {
|
||||
[M_TIMESTAMP.altName]: number;
|
||||
}>;
|
||||
export declare const M_LOCATION: UnstableValue<"m.location", "org.matrix.msc3488.location">;
|
||||
export type MLocationContent = {
|
||||
uri: string;
|
||||
description?: string | null;
|
||||
};
|
||||
export type MLocationEvent = EitherAnd<{
|
||||
[M_LOCATION.name]: MLocationContent;
|
||||
}, {
|
||||
[M_LOCATION.altName]: MLocationContent;
|
||||
}>;
|
||||
export type MTextEvent = EitherAnd<{
|
||||
[M_TEXT.name]: string;
|
||||
}, {
|
||||
[M_TEXT.altName]: string;
|
||||
}>;
|
||||
type OptionalTimestampEvent = MTimestampEvent | undefined;
|
||||
/**
|
||||
* The content for an m.location event
|
||||
*/
|
||||
export type MLocationEventContent = MLocationEvent & MAssetEvent & MTextEvent & OptionalTimestampEvent;
|
||||
export type LegacyLocationEventContent = {
|
||||
body: string;
|
||||
msgtype: string;
|
||||
geo_uri: string;
|
||||
};
|
||||
/**
|
||||
* Possible content for location events as sent over the wire
|
||||
*/
|
||||
export type LocationEventWireContent = Partial<LegacyLocationEventContent & MLocationEventContent>;
|
||||
export type ILocationContent = MLocationEventContent & LegacyLocationEventContent;
|
||||
export {};
|
||||
//# sourceMappingURL=location.d.ts.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/location.d.ts.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/location.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../../src/@types/location.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAErD,oBAAY,iBAAiB;IACzB,IAAI,WAAW;IACf,GAAG,UAAU;CAChB;AAED,eAAO,MAAM,OAAO,sDAA2D,CAAC;AAChF,MAAM,MAAM,aAAa,GAAG;IAAE,IAAI,EAAE,iBAAiB,CAAA;CAAE,CAAC;AACxD;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,SAAS,CAAC;IAAE,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,aAAa,CAAA;CAAE,EAAE;IAAE,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,aAAa,CAAA;CAAE,CAAC,CAAC;AAE7G,eAAO,MAAM,WAAW,gDAAqD,CAAC;AAC9E;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,SAAS,CAAC;IAAE,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE;IAAE,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAE3G,eAAO,MAAM,UAAU,4DAAiE,CAAC;AAEzF,MAAM,MAAM,gBAAgB,GAAG;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,SAAS,CAClC;IAAE,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,gBAAgB,CAAA;CAAE,EACvC;IAAE,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,gBAAgB,CAAA;CAAE,CAC7C,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,SAAS,CAAC;IAAE,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE;IAAE,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAsB5F,KAAK,sBAAsB,GAAG,eAAe,GAAG,SAAS,CAAC;AAC1D;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,cAAc,GAAG,WAAW,GAAG,UAAU,GAAG,sBAAsB,CAAC;AAEvG,MAAM,MAAM,0BAA0B,GAAG;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAAC,0BAA0B,GAAG,qBAAqB,CAAC,CAAC;AAEnG,MAAM,MAAM,gBAAgB,GAAG,qBAAqB,GAAG,0BAA0B,CAAC"}
|
||||
66
node_modules/matrix-js-sdk/lib/@types/location.js
generated
vendored
Normal file
66
node_modules/matrix-js-sdk/lib/@types/location.js
generated
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
Copyright 2021 The Matrix.org Foundation C.I.C.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// Types for MSC3488 - m.location: Extending events with location data
|
||||
|
||||
import { UnstableValue } from "../NamespacedValue.js";
|
||||
export let LocationAssetType = /*#__PURE__*/function (LocationAssetType) {
|
||||
LocationAssetType["Self"] = "m.self";
|
||||
LocationAssetType["Pin"] = "m.pin";
|
||||
return LocationAssetType;
|
||||
}({});
|
||||
export const M_ASSET = new UnstableValue("m.asset", "org.matrix.msc3488.asset");
|
||||
|
||||
/**
|
||||
* The event definition for an m.asset event (in content)
|
||||
*/
|
||||
|
||||
export const M_TIMESTAMP = new UnstableValue("m.ts", "org.matrix.msc3488.ts");
|
||||
/**
|
||||
* The event definition for an m.ts event (in content)
|
||||
*/
|
||||
|
||||
export const M_LOCATION = new UnstableValue("m.location", "org.matrix.msc3488.location");
|
||||
|
||||
/* From the spec at:
|
||||
* https://github.com/matrix-org/matrix-doc/blob/matthew/location/proposals/3488-location.md
|
||||
{
|
||||
"type": "m.room.message",
|
||||
"content": {
|
||||
"body": "Matthew was at geo:51.5008,0.1247;u=35 as of Sat Nov 13 18:50:58 2021",
|
||||
"msgtype": "m.location",
|
||||
"geo_uri": "geo:51.5008,0.1247;u=35",
|
||||
"m.location": {
|
||||
"uri": "geo:51.5008,0.1247;u=35",
|
||||
"description": "Matthew's whereabouts",
|
||||
},
|
||||
"m.asset": {
|
||||
"type": "m.self"
|
||||
},
|
||||
"m.text": "Matthew was at geo:51.5008,0.1247;u=35 as of Sat Nov 13 18:50:58 2021",
|
||||
"m.ts": 1636829458432,
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
/**
|
||||
* The content for an m.location event
|
||||
*/
|
||||
|
||||
/**
|
||||
* Possible content for location events as sent over the wire
|
||||
*/
|
||||
//# sourceMappingURL=location.js.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/location.js.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/location.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"location.js","names":[],"sources":["../../src/@types/location.ts"],"sourcesContent":["/*\nCopyright 2021 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\n// Types for MSC3488 - m.location: Extending events with location data\nimport { type EitherAnd } from \"matrix-events-sdk\";\n\nimport { UnstableValue } from \"../NamespacedValue.ts\";\nimport { type M_TEXT } from \"./extensible_events.ts\";\n\nexport enum LocationAssetType {\n Self = \"m.self\",\n Pin = \"m.pin\",\n}\n\nexport const M_ASSET = new UnstableValue(\"m.asset\", \"org.matrix.msc3488.asset\");\nexport type MAssetContent = { type: LocationAssetType };\n/**\n * The event definition for an m.asset event (in content)\n */\nexport type MAssetEvent = EitherAnd<{ [M_ASSET.name]: MAssetContent }, { [M_ASSET.altName]: MAssetContent }>;\n\nexport const M_TIMESTAMP = new UnstableValue(\"m.ts\", \"org.matrix.msc3488.ts\");\n/**\n * The event definition for an m.ts event (in content)\n */\nexport type MTimestampEvent = EitherAnd<{ [M_TIMESTAMP.name]: number }, { [M_TIMESTAMP.altName]: number }>;\n\nexport const M_LOCATION = new UnstableValue(\"m.location\", \"org.matrix.msc3488.location\");\n\nexport type MLocationContent = {\n uri: string;\n description?: string | null;\n};\n\nexport type MLocationEvent = EitherAnd<\n { [M_LOCATION.name]: MLocationContent },\n { [M_LOCATION.altName]: MLocationContent }\n>;\n\nexport type MTextEvent = EitherAnd<{ [M_TEXT.name]: string }, { [M_TEXT.altName]: string }>;\n\n/* From the spec at:\n * https://github.com/matrix-org/matrix-doc/blob/matthew/location/proposals/3488-location.md\n{\n \"type\": \"m.room.message\",\n \"content\": {\n \"body\": \"Matthew was at geo:51.5008,0.1247;u=35 as of Sat Nov 13 18:50:58 2021\",\n \"msgtype\": \"m.location\",\n \"geo_uri\": \"geo:51.5008,0.1247;u=35\",\n \"m.location\": {\n \"uri\": \"geo:51.5008,0.1247;u=35\",\n \"description\": \"Matthew's whereabouts\",\n },\n \"m.asset\": {\n \"type\": \"m.self\"\n },\n \"m.text\": \"Matthew was at geo:51.5008,0.1247;u=35 as of Sat Nov 13 18:50:58 2021\",\n \"m.ts\": 1636829458432,\n }\n}\n*/\ntype OptionalTimestampEvent = MTimestampEvent | undefined;\n/**\n * The content for an m.location event\n */\nexport type MLocationEventContent = MLocationEvent & MAssetEvent & MTextEvent & OptionalTimestampEvent;\n\nexport type LegacyLocationEventContent = {\n body: string;\n msgtype: string;\n geo_uri: string;\n};\n\n/**\n * Possible content for location events as sent over the wire\n */\nexport type LocationEventWireContent = Partial<LegacyLocationEventContent & MLocationEventContent>;\n\nexport type ILocationContent = MLocationEventContent & LegacyLocationEventContent;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAGA,SAAS,aAAa,QAAQ,uBAAuB;AAGrD,WAAY,iBAAiB,0BAAjB,iBAAiB;EAAjB,iBAAiB;EAAjB,iBAAiB;EAAA,OAAjB,iBAAiB;AAAA;AAK7B,OAAO,MAAM,OAAO,GAAG,IAAI,aAAa,CAAC,SAAS,EAAE,0BAA0B,CAAC;;AAE/E;AACA;AACA;;AAGA,OAAO,MAAM,WAAW,GAAG,IAAI,aAAa,CAAC,MAAM,EAAE,uBAAuB,CAAC;AAC7E;AACA;AACA;;AAGA,OAAO,MAAM,UAAU,GAAG,IAAI,aAAa,CAAC,YAAY,EAAE,6BAA6B,CAAC;;AAcxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AASA;AACA;AACA","ignoreList":[]}
|
||||
3
node_modules/matrix-js-sdk/lib/@types/matrix-sdk-crypto-wasm.d.js
generated
vendored
Normal file
3
node_modules/matrix-js-sdk/lib/@types/matrix-sdk-crypto-wasm.d.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export {};
|
||||
export {};
|
||||
//# sourceMappingURL=matrix-sdk-crypto-wasm.d.js.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/matrix-sdk-crypto-wasm.d.js.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/matrix-sdk-crypto-wasm.d.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"matrix-sdk-crypto-wasm.d.js","names":[],"sources":["../../src/@types/matrix-sdk-crypto-wasm.d.ts"],"sourcesContent":["/*\nCopyright 2024 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport type * as RustSdkCryptoJs from \"@matrix-org/matrix-sdk-crypto-wasm\";\n\ndeclare module \"@matrix-org/matrix-sdk-crypto-wasm\" {\n interface SecretsBundle {\n to_json(): Promise<{\n cross_signing: {\n master_key: string;\n self_signing_key: string;\n user_signing_key: string;\n };\n backup?: {\n algorithm: string;\n key: string;\n backup_version: string;\n };\n }>;\n }\n\n interface Device {\n requestVerification(methods?: any[]): [RustSdkCryptoJs.VerificationRequest, RustSdkCryptoJs.ToDeviceRequest];\n }\n}\n"],"mappings":"","ignoreList":[]}
|
||||
220
node_modules/matrix-js-sdk/lib/@types/media.d.ts
generated
vendored
Normal file
220
node_modules/matrix-js-sdk/lib/@types/media.d.ts
generated
vendored
Normal file
@@ -0,0 +1,220 @@
|
||||
import { type MsgType } from "../@types/event.ts";
|
||||
/**
|
||||
* Information on encrypted media attachments.
|
||||
*
|
||||
* Used within `m.room.message` events that reference files, such as `m.file` and `m.image`.
|
||||
*
|
||||
* @see https://spec.matrix.org/v1.11/client-server-api/#extensions-to-mroommessage-msgtypes
|
||||
*/
|
||||
export interface EncryptedFile {
|
||||
/**
|
||||
* The URL to the file.
|
||||
*/
|
||||
url: string;
|
||||
/**
|
||||
* A JSON Web Key object.
|
||||
*/
|
||||
key: {
|
||||
alg: string;
|
||||
key_ops: string[];
|
||||
kty: string;
|
||||
k: string;
|
||||
ext: boolean;
|
||||
};
|
||||
/**
|
||||
* The 128-bit unique counter block used by AES-CTR, encoded as unpadded base64.
|
||||
*/
|
||||
iv: string;
|
||||
/**
|
||||
* A map from an algorithm name to a hash of the ciphertext, encoded as unpadded base64.
|
||||
* Clients should support the SHA-256 hash, which uses the key `sha256`.
|
||||
*/
|
||||
hashes: {
|
||||
[alg: string]: string;
|
||||
};
|
||||
/**
|
||||
* Version of the encrypted attachment's protocol. Must be `v2`.
|
||||
*/
|
||||
v: string;
|
||||
}
|
||||
interface ThumbnailInfo {
|
||||
/**
|
||||
* The mimetype of the image, e.g. image/jpeg.
|
||||
*/
|
||||
mimetype?: string;
|
||||
/**
|
||||
* The intended display width of the image in pixels.
|
||||
* This may differ from the intrinsic dimensions of the image file.
|
||||
*/
|
||||
w?: number;
|
||||
/**
|
||||
* The intended display height of the image in pixels.
|
||||
* This may differ from the intrinsic dimensions of the image file.
|
||||
*/
|
||||
h?: number;
|
||||
/**
|
||||
* Size of the image in bytes.
|
||||
*/
|
||||
size?: number;
|
||||
}
|
||||
interface BaseInfo {
|
||||
mimetype?: string;
|
||||
size?: number;
|
||||
}
|
||||
/**
|
||||
* Information on media attachments of msgtype `m.file`
|
||||
*
|
||||
* Used within `m.room.message` events that reference files.
|
||||
*
|
||||
* @see https://spec.matrix.org/v1.11/client-server-api/#mfile
|
||||
*/
|
||||
export interface FileInfo extends BaseInfo {
|
||||
/**
|
||||
* Information on the encrypted thumbnail file, as specified in End-to-end encryption.
|
||||
* Only present if the thumbnail is encrypted.
|
||||
* @see https://spec.matrix.org/v1.11/client-server-api/#sending-encrypted-attachments
|
||||
*/
|
||||
thumbnail_file?: EncryptedFile;
|
||||
/**
|
||||
* Metadata about the image referred to in thumbnail_url.
|
||||
*/
|
||||
thumbnail_info?: ThumbnailInfo;
|
||||
/**
|
||||
* The URL to the thumbnail of the file. Only present if the thumbnail is unencrypted.
|
||||
*/
|
||||
thumbnail_url?: string;
|
||||
}
|
||||
/**
|
||||
* Information on media attachments of msgtype `m.image`
|
||||
*
|
||||
* Used within `m.room.message` events that reference images.
|
||||
*
|
||||
* @see https://spec.matrix.org/v1.11/client-server-api/#mimage
|
||||
*/
|
||||
export interface ImageInfo extends FileInfo, ThumbnailInfo {
|
||||
}
|
||||
/**
|
||||
* Information on media attachments of msgtype `m.audio`
|
||||
*
|
||||
* Used within `m.room.message` events that reference audio files.
|
||||
*
|
||||
* @see https://spec.matrix.org/v1.11/client-server-api/#maudio
|
||||
*/
|
||||
export interface AudioInfo extends BaseInfo {
|
||||
/**
|
||||
* The duration of the audio in milliseconds.
|
||||
*/
|
||||
duration?: number;
|
||||
}
|
||||
/**
|
||||
* Information on media attachments of msgtype `m.video`
|
||||
*
|
||||
* Used within `m.room.message` events that reference video files.
|
||||
*
|
||||
* @see https://spec.matrix.org/v1.11/client-server-api/#mvideo
|
||||
*/
|
||||
export interface VideoInfo extends AudioInfo, ImageInfo {
|
||||
/**
|
||||
* The duration of the video in milliseconds.
|
||||
*/
|
||||
duration?: number;
|
||||
}
|
||||
/**
|
||||
* Union type representing the `content.info` field of all specified media events.
|
||||
*/
|
||||
export type MediaEventInfo = FileInfo | ImageInfo | AudioInfo | VideoInfo;
|
||||
interface BaseContent {
|
||||
/**
|
||||
* Required if the file is encrypted. Information on the encrypted file, as specified in End-to-end encryption.
|
||||
* @see https://spec.matrix.org/v1.11/client-server-api/#sending-encrypted-attachments
|
||||
*/
|
||||
file?: EncryptedFile;
|
||||
/**
|
||||
* Required if the file is unencrypted. The URL (typically mxc:// URI) to the file.
|
||||
*/
|
||||
url?: string;
|
||||
/**
|
||||
* If filename is not set or the value of both properties are identical,
|
||||
* this is the filename of the original upload. Otherwise, this is a
|
||||
* caption for the file.
|
||||
*/
|
||||
body: string;
|
||||
/**
|
||||
* The original filename of the uploaded file.
|
||||
*/
|
||||
filename?: string;
|
||||
/**
|
||||
* The format used in the `formatted_body`.
|
||||
*/
|
||||
format?: "org.matrix.custom.html";
|
||||
/**
|
||||
* The formatted version of the `body`, when it acts as a caption. This is required if `format` is specified.
|
||||
*/
|
||||
formatted_body?: string;
|
||||
}
|
||||
/**
|
||||
* Content format of media events with msgtype `m.file`
|
||||
*
|
||||
* @see https://spec.matrix.org/v1.11/client-server-api/#mfile
|
||||
*/
|
||||
export interface FileContent extends BaseContent {
|
||||
/**
|
||||
* Information about the file referred to in url.
|
||||
*/
|
||||
info?: FileInfo;
|
||||
/**
|
||||
* One of: [m.file].
|
||||
*/
|
||||
msgtype: MsgType.File;
|
||||
}
|
||||
/**
|
||||
* Content format of media events with msgtype `m.image`
|
||||
*
|
||||
* @see https://spec.matrix.org/v1.11/client-server-api/#mimage
|
||||
*/
|
||||
export interface ImageContent extends BaseContent {
|
||||
/**
|
||||
* Metadata about the image referred to in url.
|
||||
*/
|
||||
info?: ImageInfo;
|
||||
/**
|
||||
* One of: [m.image].
|
||||
*/
|
||||
msgtype: MsgType.Image;
|
||||
}
|
||||
/**
|
||||
* Content format of media events with msgtype `m.audio`
|
||||
*
|
||||
* @see https://spec.matrix.org/v1.11/client-server-api/#maudio
|
||||
*/
|
||||
export interface AudioContent extends BaseContent {
|
||||
/**
|
||||
* Metadata for the audio clip referred to in url.
|
||||
*/
|
||||
info?: AudioInfo;
|
||||
/**
|
||||
* One of: [m.audio].
|
||||
*/
|
||||
msgtype: MsgType.Audio;
|
||||
}
|
||||
/**
|
||||
* Content format of media events with msgtype `m.video`
|
||||
*
|
||||
* @see https://spec.matrix.org/v1.11/client-server-api/#mvideo
|
||||
*/
|
||||
export interface VideoContent extends BaseContent {
|
||||
/**
|
||||
* Metadata about the video clip referred to in url.
|
||||
*/
|
||||
info?: VideoInfo;
|
||||
/**
|
||||
* One of: [m.video].
|
||||
*/
|
||||
msgtype: MsgType.Video;
|
||||
}
|
||||
/**
|
||||
* Type representing media event contents for `m.room.message` events listed in the Matrix specification
|
||||
*/
|
||||
export type MediaEventContent = FileContent | ImageContent | AudioContent | VideoContent;
|
||||
export {};
|
||||
//# sourceMappingURL=media.d.ts.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/media.d.ts.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/media.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"media.d.ts","sourceRoot":"","sources":["../../src/@types/media.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,GAAG,EAAE;QACD,GAAG,EAAE,MAAM,CAAC;QACZ,OAAO,EAAE,MAAM,EAAE,CAAC;QAClB,GAAG,EAAE,MAAM,CAAC;QACZ,CAAC,EAAE,MAAM,CAAC;QACV,GAAG,EAAE,OAAO,CAAC;KAChB,CAAC;IACF;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;OAGG;IACH,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAClC;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;CACb;AAED,UAAU,aAAa;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,CAAC,CAAC,EAAE,MAAM,CAAC;IACX;;;OAGG;IACH,CAAC,CAAC,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,QAAQ;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,QAAS,SAAQ,QAAQ;IACtC;;;;OAIG;IACH,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B;;OAEG;IACH,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;;GAMG;AACH,MAAM,WAAW,SAAU,SAAQ,QAAQ,EAAE,aAAa;CAAG;AAE7D;;;;;;GAMG;AACH,MAAM,WAAW,SAAU,SAAQ,QAAQ;IACvC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,SAAU,SAAQ,SAAS,EAAE,SAAS;IACnD;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;AAE1E,UAAU,WAAW;IACjB;;;OAGG;IACH,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,wBAAwB,CAAC;IAClC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;;;GAIG;AACH,MAAM,WAAW,WAAY,SAAQ,WAAW;IAC5C;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC;CACzB;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAa,SAAQ,WAAW;IAC7C;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC;CAC1B;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAa,SAAQ,WAAW;IAC7C;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC;CAC1B;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAa,SAAQ,WAAW;IAC7C;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,WAAW,GAAG,YAAY,GAAG,YAAY,GAAG,YAAY,CAAC"}
|
||||
3
node_modules/matrix-js-sdk/lib/@types/media.js
generated
vendored
Normal file
3
node_modules/matrix-js-sdk/lib/@types/media.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export {};
|
||||
export {};
|
||||
//# sourceMappingURL=media.js.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/media.js.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/media.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
41
node_modules/matrix-js-sdk/lib/@types/membership.d.ts
generated
vendored
Normal file
41
node_modules/matrix-js-sdk/lib/@types/membership.d.ts
generated
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
/**
|
||||
* Well-known values (from the spec or MSCs) that are allowed in the
|
||||
* {@link Membership} type.
|
||||
*/
|
||||
export declare enum KnownMembership {
|
||||
/**
|
||||
* The user has been banned from the room, and is no longer allowed to join
|
||||
* it until they are un-banned from the room (by having their membership
|
||||
* state set to a value other than ban).
|
||||
*/
|
||||
Ban = "ban",
|
||||
/**
|
||||
* The user has been invited to join a room, but has not yet joined it.
|
||||
* They may not participate in the room until they join.
|
||||
* */
|
||||
Invite = "invite",
|
||||
/**
|
||||
* The user has joined the room (possibly after accepting an invite), and
|
||||
* may participate in it.
|
||||
*/
|
||||
Join = "join",
|
||||
/**
|
||||
* The user has knocked on the room, requesting permission to participate.
|
||||
* They may not participate in the room until they join.
|
||||
*/
|
||||
Knock = "knock",
|
||||
/**
|
||||
* The user was once joined to the room, but has since left (possibly by
|
||||
* choice, or possibly by being kicked).
|
||||
*/
|
||||
Leave = "leave"
|
||||
}
|
||||
/**
|
||||
* The membership state for a user in a room [1]. A value from
|
||||
* {@link KnownMembership} should be used where available, but all string values
|
||||
* are allowed to provide flexibility for upcoming spec changes or proposals.
|
||||
*
|
||||
* [1] https://spec.matrix.org/latest/client-server-api/#mroommember
|
||||
*/
|
||||
export type Membership = KnownMembership | string;
|
||||
//# sourceMappingURL=membership.d.ts.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/membership.d.ts.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/membership.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"membership.d.ts","sourceRoot":"","sources":["../../src/@types/membership.ts"],"names":[],"mappings":"AAgBA;;;GAGG;AACH,oBAAY,eAAe;IACvB;;;;OAIG;IACH,GAAG,QAAQ;IACX;;;SAGK;IACL,MAAM,WAAW;IACjB;;;OAGG;IACH,IAAI,SAAS;IACb;;;OAGG;IACH,KAAK,UAAU;IACf;;;OAGG;IACH,KAAK,UAAU;CAClB;AAED;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAAG,eAAe,GAAG,MAAM,CAAC"}
|
||||
58
node_modules/matrix-js-sdk/lib/@types/membership.js
generated
vendored
Normal file
58
node_modules/matrix-js-sdk/lib/@types/membership.js
generated
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
Copyright 2024 The Matrix.org Foundation C.I.C.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Well-known values (from the spec or MSCs) that are allowed in the
|
||||
* {@link Membership} type.
|
||||
*/
|
||||
export let KnownMembership = /*#__PURE__*/function (KnownMembership) {
|
||||
/**
|
||||
* The user has been banned from the room, and is no longer allowed to join
|
||||
* it until they are un-banned from the room (by having their membership
|
||||
* state set to a value other than ban).
|
||||
*/
|
||||
KnownMembership["Ban"] = "ban";
|
||||
/**
|
||||
* The user has been invited to join a room, but has not yet joined it.
|
||||
* They may not participate in the room until they join.
|
||||
* */
|
||||
KnownMembership["Invite"] = "invite";
|
||||
/**
|
||||
* The user has joined the room (possibly after accepting an invite), and
|
||||
* may participate in it.
|
||||
*/
|
||||
KnownMembership["Join"] = "join";
|
||||
/**
|
||||
* The user has knocked on the room, requesting permission to participate.
|
||||
* They may not participate in the room until they join.
|
||||
*/
|
||||
KnownMembership["Knock"] = "knock";
|
||||
/**
|
||||
* The user was once joined to the room, but has since left (possibly by
|
||||
* choice, or possibly by being kicked).
|
||||
*/
|
||||
KnownMembership["Leave"] = "leave";
|
||||
return KnownMembership;
|
||||
}({});
|
||||
|
||||
/**
|
||||
* The membership state for a user in a room [1]. A value from
|
||||
* {@link KnownMembership} should be used where available, but all string values
|
||||
* are allowed to provide flexibility for upcoming spec changes or proposals.
|
||||
*
|
||||
* [1] https://spec.matrix.org/latest/client-server-api/#mroommember
|
||||
*/
|
||||
//# sourceMappingURL=membership.js.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/membership.js.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/membership.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"membership.js","names":[],"sources":["../../src/@types/membership.ts"],"sourcesContent":["/*\nCopyright 2024 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\n/**\n * Well-known values (from the spec or MSCs) that are allowed in the\n * {@link Membership} type.\n */\nexport enum KnownMembership {\n /**\n * The user has been banned from the room, and is no longer allowed to join\n * it until they are un-banned from the room (by having their membership\n * state set to a value other than ban).\n */\n Ban = \"ban\",\n /**\n * The user has been invited to join a room, but has not yet joined it.\n * They may not participate in the room until they join.\n * */\n Invite = \"invite\",\n /**\n * The user has joined the room (possibly after accepting an invite), and\n * may participate in it.\n */\n Join = \"join\",\n /**\n * The user has knocked on the room, requesting permission to participate.\n * They may not participate in the room until they join.\n */\n Knock = \"knock\",\n /**\n * The user was once joined to the room, but has since left (possibly by\n * choice, or possibly by being kicked).\n */\n Leave = \"leave\",\n}\n\n/**\n * The membership state for a user in a room [1]. A value from\n * {@link KnownMembership} should be used where available, but all string values\n * are allowed to provide flexibility for upcoming spec changes or proposals.\n *\n * [1] https://spec.matrix.org/latest/client-server-api/#mroommember\n */\nexport type Membership = KnownMembership | string;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAY,eAAe,0BAAf,eAAe;EACvB;AACJ;AACA;AACA;AACA;EALY,eAAe;EAOvB;AACJ;AACA;AACA;EAVY,eAAe;EAYvB;AACJ;AACA;AACA;EAfY,eAAe;EAiBvB;AACJ;AACA;AACA;EApBY,eAAe;EAsBvB;AACJ;AACA;AACA;EAzBY,eAAe;EAAA,OAAf,eAAe;AAAA;;AA6B3B;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
||||
72
node_modules/matrix-js-sdk/lib/@types/partials.d.ts
generated
vendored
Normal file
72
node_modules/matrix-js-sdk/lib/@types/partials.d.ts
generated
vendored
Normal file
@@ -0,0 +1,72 @@
|
||||
export declare enum Visibility {
|
||||
Public = "public",
|
||||
Private = "private"
|
||||
}
|
||||
export declare enum Preset {
|
||||
PrivateChat = "private_chat",
|
||||
TrustedPrivateChat = "trusted_private_chat",
|
||||
PublicChat = "public_chat"
|
||||
}
|
||||
export type ResizeMethod = "crop" | "scale";
|
||||
export type IdServerUnbindResult = "no-support" | "success";
|
||||
export declare enum JoinRule {
|
||||
Public = "public",
|
||||
Invite = "invite",
|
||||
/**
|
||||
* @deprecated Reserved keyword. Should not be used. Not yet implemented.
|
||||
*/
|
||||
Private = "private",
|
||||
Knock = "knock",
|
||||
Restricted = "restricted"
|
||||
}
|
||||
export declare enum RestrictedAllowType {
|
||||
RoomMembership = "m.room_membership"
|
||||
}
|
||||
export declare enum GuestAccess {
|
||||
CanJoin = "can_join",
|
||||
Forbidden = "forbidden"
|
||||
}
|
||||
export declare enum HistoryVisibility {
|
||||
Invited = "invited",
|
||||
Joined = "joined",
|
||||
Shared = "shared",
|
||||
WorldReadable = "world_readable"
|
||||
}
|
||||
export interface IUsageLimit {
|
||||
limit_type: "monthly_active_user" | "hs_disabled" | string;
|
||||
admin_contact?: string;
|
||||
}
|
||||
/**
|
||||
* A policy name & url in a specific internationalisation
|
||||
* @see https://spec.matrix.org/v1.13/identity-service-api/#get_matrixidentityv2terms_response-200_internationalised-policy
|
||||
*/
|
||||
export interface InternationalisedPolicy {
|
||||
name: string;
|
||||
url: string;
|
||||
}
|
||||
/**
|
||||
* A versioned policy with internationalised variants
|
||||
* @see https://spec.matrix.org/v1.13/identity-service-api/#get_matrixidentityv2terms_response-200_policy-object
|
||||
*/
|
||||
export interface Policy {
|
||||
/**
|
||||
* The version for the policy.
|
||||
* There are no requirements on what this might be and could be “alpha”, semantically versioned, or arbitrary.
|
||||
*/
|
||||
version: string;
|
||||
/**
|
||||
* The policy information for the specified language.
|
||||
* @remarks the type has to include a union with string due to limitations in the type system.
|
||||
*/
|
||||
[lang: string]: InternationalisedPolicy | string;
|
||||
}
|
||||
/**
|
||||
* Response from the Terms API for Identity servers
|
||||
* @see https://spec.matrix.org/v1.13/identity-service-api/#get_matrixidentityv2terms
|
||||
*/
|
||||
export interface Terms {
|
||||
policies: {
|
||||
[policyName: string]: Policy;
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=partials.d.ts.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/partials.d.ts.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/partials.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"partials.d.ts","sourceRoot":"","sources":["../../src/@types/partials.ts"],"names":[],"mappings":"AAgBA,oBAAY,UAAU;IAClB,MAAM,WAAW;IACjB,OAAO,YAAY;CACtB;AAED,oBAAY,MAAM;IACd,WAAW,iBAAiB;IAC5B,kBAAkB,yBAAyB;IAC3C,UAAU,gBAAgB;CAC7B;AAED,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,OAAO,CAAC;AAE5C,MAAM,MAAM,oBAAoB,GAAG,YAAY,GAAG,SAAS,CAAC;AAG5D,oBAAY,QAAQ;IAChB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB;;OAEG;IACH,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,UAAU,eAAe;CAC5B;AAED,oBAAY,mBAAmB;IAC3B,cAAc,sBAAsB;CACvC;AAED,oBAAY,WAAW;IACnB,OAAO,aAAa;IACpB,SAAS,cAAc;CAC1B;AAED,oBAAY,iBAAiB;IACzB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,aAAa,mBAAmB;CACnC;AAED,MAAM,WAAW,WAAW;IAGxB,UAAU,EAAE,qBAAqB,GAAG,aAAa,GAAG,MAAM,CAAC;IAC3D,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,WAAW,MAAM;IACnB;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,CAAC,IAAI,EAAE,MAAM,GAAG,uBAAuB,GAAG,MAAM,CAAC;CACpD;AAED;;;GAGG;AACH,MAAM,WAAW,KAAK;IAClB,QAAQ,EAAE;QACN,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;KAChC,CAAC;CACL"}
|
||||
71
node_modules/matrix-js-sdk/lib/@types/partials.js
generated
vendored
Normal file
71
node_modules/matrix-js-sdk/lib/@types/partials.js
generated
vendored
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
Copyright 2021 The Matrix.org Foundation C.I.C.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
export let Visibility = /*#__PURE__*/function (Visibility) {
|
||||
Visibility["Public"] = "public";
|
||||
Visibility["Private"] = "private";
|
||||
return Visibility;
|
||||
}({});
|
||||
export let Preset = /*#__PURE__*/function (Preset) {
|
||||
Preset["PrivateChat"] = "private_chat";
|
||||
Preset["TrustedPrivateChat"] = "trusted_private_chat";
|
||||
Preset["PublicChat"] = "public_chat";
|
||||
return Preset;
|
||||
}({});
|
||||
// Knock and private are reserved keywords which are not yet implemented.
|
||||
export let JoinRule = /*#__PURE__*/function (JoinRule) {
|
||||
JoinRule["Public"] = "public";
|
||||
JoinRule["Invite"] = "invite";
|
||||
/**
|
||||
* @deprecated Reserved keyword. Should not be used. Not yet implemented.
|
||||
*/
|
||||
JoinRule["Private"] = "private";
|
||||
JoinRule["Knock"] = "knock";
|
||||
JoinRule["Restricted"] = "restricted";
|
||||
return JoinRule;
|
||||
}({});
|
||||
export let RestrictedAllowType = /*#__PURE__*/function (RestrictedAllowType) {
|
||||
RestrictedAllowType["RoomMembership"] = "m.room_membership";
|
||||
return RestrictedAllowType;
|
||||
}({});
|
||||
export let GuestAccess = /*#__PURE__*/function (GuestAccess) {
|
||||
GuestAccess["CanJoin"] = "can_join";
|
||||
GuestAccess["Forbidden"] = "forbidden";
|
||||
return GuestAccess;
|
||||
}({});
|
||||
export let HistoryVisibility = /*#__PURE__*/function (HistoryVisibility) {
|
||||
HistoryVisibility["Invited"] = "invited";
|
||||
HistoryVisibility["Joined"] = "joined";
|
||||
HistoryVisibility["Shared"] = "shared";
|
||||
HistoryVisibility["WorldReadable"] = "world_readable";
|
||||
return HistoryVisibility;
|
||||
}({});
|
||||
|
||||
/**
|
||||
* A policy name & url in a specific internationalisation
|
||||
* @see https://spec.matrix.org/v1.13/identity-service-api/#get_matrixidentityv2terms_response-200_internationalised-policy
|
||||
*/
|
||||
|
||||
/**
|
||||
* A versioned policy with internationalised variants
|
||||
* @see https://spec.matrix.org/v1.13/identity-service-api/#get_matrixidentityv2terms_response-200_policy-object
|
||||
*/
|
||||
|
||||
/**
|
||||
* Response from the Terms API for Identity servers
|
||||
* @see https://spec.matrix.org/v1.13/identity-service-api/#get_matrixidentityv2terms
|
||||
*/
|
||||
//# sourceMappingURL=partials.js.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/partials.js.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/partials.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"partials.js","names":[],"sources":["../../src/@types/partials.ts"],"sourcesContent":["/*\nCopyright 2021 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nexport enum Visibility {\n Public = \"public\",\n Private = \"private\",\n}\n\nexport enum Preset {\n PrivateChat = \"private_chat\",\n TrustedPrivateChat = \"trusted_private_chat\",\n PublicChat = \"public_chat\",\n}\n\nexport type ResizeMethod = \"crop\" | \"scale\";\n\nexport type IdServerUnbindResult = \"no-support\" | \"success\";\n\n// Knock and private are reserved keywords which are not yet implemented.\nexport enum JoinRule {\n Public = \"public\",\n Invite = \"invite\",\n /**\n * @deprecated Reserved keyword. Should not be used. Not yet implemented.\n */\n Private = \"private\",\n Knock = \"knock\",\n Restricted = \"restricted\",\n}\n\nexport enum RestrictedAllowType {\n RoomMembership = \"m.room_membership\",\n}\n\nexport enum GuestAccess {\n CanJoin = \"can_join\",\n Forbidden = \"forbidden\",\n}\n\nexport enum HistoryVisibility {\n Invited = \"invited\",\n Joined = \"joined\",\n Shared = \"shared\",\n WorldReadable = \"world_readable\",\n}\n\nexport interface IUsageLimit {\n // \"hs_disabled\" is NOT a specced string, but is used in Synapse\n // This is tracked over at https://github.com/matrix-org/synapse/issues/9237\n limit_type: \"monthly_active_user\" | \"hs_disabled\" | string;\n admin_contact?: string;\n}\n\n/**\n * A policy name & url in a specific internationalisation\n * @see https://spec.matrix.org/v1.13/identity-service-api/#get_matrixidentityv2terms_response-200_internationalised-policy\n */\nexport interface InternationalisedPolicy {\n name: string;\n url: string;\n}\n\n/**\n * A versioned policy with internationalised variants\n * @see https://spec.matrix.org/v1.13/identity-service-api/#get_matrixidentityv2terms_response-200_policy-object\n */\nexport interface Policy {\n /**\n * The version for the policy.\n * There are no requirements on what this might be and could be “alpha”, semantically versioned, or arbitrary.\n */\n version: string;\n /**\n * The policy information for the specified language.\n * @remarks the type has to include a union with string due to limitations in the type system.\n */\n [lang: string]: InternationalisedPolicy | string;\n}\n\n/**\n * Response from the Terms API for Identity servers\n * @see https://spec.matrix.org/v1.13/identity-service-api/#get_matrixidentityv2terms\n */\nexport interface Terms {\n policies: {\n [policyName: string]: Policy;\n };\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAY,UAAU,0BAAV,UAAU;EAAV,UAAU;EAAV,UAAU;EAAA,OAAV,UAAU;AAAA;AAKtB,WAAY,MAAM,0BAAN,MAAM;EAAN,MAAM;EAAN,MAAM;EAAN,MAAM;EAAA,OAAN,MAAM;AAAA;AAUlB;AACA,WAAY,QAAQ,0BAAR,QAAQ;EAAR,QAAQ;EAAR,QAAQ;EAGhB;AACJ;AACA;EALY,QAAQ;EAAR,QAAQ;EAAR,QAAQ;EAAA,OAAR,QAAQ;AAAA;AAWpB,WAAY,mBAAmB,0BAAnB,mBAAmB;EAAnB,mBAAmB;EAAA,OAAnB,mBAAmB;AAAA;AAI/B,WAAY,WAAW,0BAAX,WAAW;EAAX,WAAW;EAAX,WAAW;EAAA,OAAX,WAAW;AAAA;AAKvB,WAAY,iBAAiB,0BAAjB,iBAAiB;EAAjB,iBAAiB;EAAjB,iBAAiB;EAAjB,iBAAiB;EAAjB,iBAAiB;EAAA,OAAjB,iBAAiB;AAAA;;AAc7B;AACA;AACA;AACA;;AAMA;AACA;AACA;AACA;;AAcA;AACA;AACA;AACA","ignoreList":[]}
|
||||
89
node_modules/matrix-js-sdk/lib/@types/polls.d.ts
generated
vendored
Normal file
89
node_modules/matrix-js-sdk/lib/@types/polls.d.ts
generated
vendored
Normal file
@@ -0,0 +1,89 @@
|
||||
import { type EitherAnd, UnstableValue } from "matrix-events-sdk";
|
||||
import { type ExtensibleAnyMessageEventContent, type REFERENCE_RELATION, type RelatesToRelationship, type TSNamespace } from "./extensible_events.ts";
|
||||
import { type EmptyObject } from "./common.ts";
|
||||
/**
|
||||
* Identifier for a disclosed poll.
|
||||
*/
|
||||
export declare const M_POLL_KIND_DISCLOSED: UnstableValue<"m.poll.disclosed", "org.matrix.msc3381.poll.disclosed">;
|
||||
/**
|
||||
* Identifier for an undisclosed poll.
|
||||
*/
|
||||
export declare const M_POLL_KIND_UNDISCLOSED: UnstableValue<"m.poll.undisclosed", "org.matrix.msc3381.poll.undisclosed">;
|
||||
/**
|
||||
* Any poll kind.
|
||||
*/
|
||||
export type PollKind = TSNamespace<typeof M_POLL_KIND_DISCLOSED> | TSNamespace<typeof M_POLL_KIND_UNDISCLOSED> | string;
|
||||
/**
|
||||
* Known poll kind namespaces.
|
||||
*/
|
||||
export type KnownPollKind = typeof M_POLL_KIND_DISCLOSED | typeof M_POLL_KIND_UNDISCLOSED;
|
||||
/**
|
||||
* The namespaced value for m.poll.start
|
||||
*/
|
||||
export declare const M_POLL_START: UnstableValue<"m.poll.start", "org.matrix.msc3381.poll.start">;
|
||||
/**
|
||||
* The m.poll.start type within event content
|
||||
*/
|
||||
export type PollStartSubtype = {
|
||||
question: ExtensibleAnyMessageEventContent;
|
||||
kind: PollKind;
|
||||
max_selections?: number;
|
||||
answers: PollAnswer[];
|
||||
};
|
||||
/**
|
||||
* A poll answer.
|
||||
*/
|
||||
export type PollAnswer = ExtensibleAnyMessageEventContent & {
|
||||
id: string;
|
||||
};
|
||||
/**
|
||||
* The event definition for an m.poll.start event (in content)
|
||||
*/
|
||||
export type PollStartEvent = EitherAnd<{
|
||||
[M_POLL_START.name]: PollStartSubtype;
|
||||
}, {
|
||||
[M_POLL_START.altName]: PollStartSubtype;
|
||||
}>;
|
||||
/**
|
||||
* The content for an m.poll.start event
|
||||
*/
|
||||
export type PollStartEventContent = PollStartEvent & ExtensibleAnyMessageEventContent;
|
||||
/**
|
||||
* The namespaced value for m.poll.response
|
||||
*/
|
||||
export declare const M_POLL_RESPONSE: UnstableValue<"m.poll.response", "org.matrix.msc3381.poll.response">;
|
||||
/**
|
||||
* The m.poll.response type within event content
|
||||
*/
|
||||
export type PollResponseSubtype = {
|
||||
answers: string[];
|
||||
};
|
||||
/**
|
||||
* The event definition for an m.poll.response event (in content)
|
||||
*/
|
||||
export type PollResponseEvent = EitherAnd<{
|
||||
[M_POLL_RESPONSE.name]: PollResponseSubtype;
|
||||
}, {
|
||||
[M_POLL_RESPONSE.altName]: PollResponseSubtype;
|
||||
}>;
|
||||
/**
|
||||
* The content for an m.poll.response event
|
||||
*/
|
||||
export type PollResponseEventContent = PollResponseEvent & RelatesToRelationship<typeof REFERENCE_RELATION>;
|
||||
/**
|
||||
* The namespaced value for m.poll.end
|
||||
*/
|
||||
export declare const M_POLL_END: UnstableValue<"m.poll.end", "org.matrix.msc3381.poll.end">;
|
||||
/**
|
||||
* The event definition for an m.poll.end event (in content)
|
||||
*/
|
||||
export type PollEndEvent = EitherAnd<{
|
||||
[M_POLL_END.name]: EmptyObject;
|
||||
}, {
|
||||
[M_POLL_END.altName]: EmptyObject;
|
||||
}>;
|
||||
/**
|
||||
* The content for an m.poll.end event
|
||||
*/
|
||||
export type PollEndEventContent = PollEndEvent & RelatesToRelationship<typeof REFERENCE_RELATION> & ExtensibleAnyMessageEventContent;
|
||||
//# sourceMappingURL=polls.d.ts.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/polls.d.ts.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/polls.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"polls.d.ts","sourceRoot":"","sources":["../../src/@types/polls.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,SAAS,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElE,OAAO,EACH,KAAK,gCAAgC,EACrC,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,qBAAqB,wEAA6E,CAAC;AAEhH;;GAEG;AACH,eAAO,MAAM,uBAAuB,4EAAiF,CAAC;AAEtH;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,WAAW,CAAC,OAAO,qBAAqB,CAAC,GAAG,WAAW,CAAC,OAAO,uBAAuB,CAAC,GAAG,MAAM,CAAC;AAExH;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,qBAAqB,GAAG,OAAO,uBAAuB,CAAC;AAE1F;;GAEG;AACH,eAAO,MAAM,YAAY,gEAAqE,CAAC;AAE/F;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC3B,QAAQ,EAAE,gCAAgC,CAAC;IAC3C,IAAI,EAAE,QAAQ,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,UAAU,EAAE,CAAC;CACzB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,gCAAgC,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC;AAE3E;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,SAAS,CAClC;IAAE,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,gBAAgB,CAAA;CAAE,EACzC;IAAE,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,gBAAgB,CAAA;CAAE,CAC/C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,cAAc,GAAG,gCAAgC,CAAC;AAEtF;;GAEG;AACH,eAAO,MAAM,eAAe,sEAA2E,CAAC;AAExG;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAC9B,OAAO,EAAE,MAAM,EAAE,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,SAAS,CACrC;IAAE,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,mBAAmB,CAAA;CAAE,EAC/C;IAAE,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,mBAAmB,CAAA;CAAE,CACrD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,GAAG,qBAAqB,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE5G;;GAEG;AACH,eAAO,MAAM,UAAU,4DAAiE,CAAC;AAEzF;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC;IAAE,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,WAAW,CAAA;CAAE,EAAE;IAAE,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,WAAW,CAAA;CAAE,CAAC,CAAC;AAEhH;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,YAAY,GAC1C,qBAAqB,CAAC,OAAO,kBAAkB,CAAC,GAChD,gCAAgC,CAAC"}
|
||||
86
node_modules/matrix-js-sdk/lib/@types/polls.js
generated
vendored
Normal file
86
node_modules/matrix-js-sdk/lib/@types/polls.js
generated
vendored
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
Copyright 2022 - 2023 The Matrix.org Foundation C.I.C.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
import { UnstableValue } from "matrix-events-sdk";
|
||||
/**
|
||||
* Identifier for a disclosed poll.
|
||||
*/
|
||||
export const M_POLL_KIND_DISCLOSED = new UnstableValue("m.poll.disclosed", "org.matrix.msc3381.poll.disclosed");
|
||||
|
||||
/**
|
||||
* Identifier for an undisclosed poll.
|
||||
*/
|
||||
export const M_POLL_KIND_UNDISCLOSED = new UnstableValue("m.poll.undisclosed", "org.matrix.msc3381.poll.undisclosed");
|
||||
|
||||
/**
|
||||
* Any poll kind.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Known poll kind namespaces.
|
||||
*/
|
||||
|
||||
/**
|
||||
* The namespaced value for m.poll.start
|
||||
*/
|
||||
export const M_POLL_START = new UnstableValue("m.poll.start", "org.matrix.msc3381.poll.start");
|
||||
|
||||
/**
|
||||
* The m.poll.start type within event content
|
||||
*/
|
||||
|
||||
/**
|
||||
* A poll answer.
|
||||
*/
|
||||
|
||||
/**
|
||||
* The event definition for an m.poll.start event (in content)
|
||||
*/
|
||||
|
||||
/**
|
||||
* The content for an m.poll.start event
|
||||
*/
|
||||
|
||||
/**
|
||||
* The namespaced value for m.poll.response
|
||||
*/
|
||||
export const M_POLL_RESPONSE = new UnstableValue("m.poll.response", "org.matrix.msc3381.poll.response");
|
||||
|
||||
/**
|
||||
* The m.poll.response type within event content
|
||||
*/
|
||||
|
||||
/**
|
||||
* The event definition for an m.poll.response event (in content)
|
||||
*/
|
||||
|
||||
/**
|
||||
* The content for an m.poll.response event
|
||||
*/
|
||||
|
||||
/**
|
||||
* The namespaced value for m.poll.end
|
||||
*/
|
||||
export const M_POLL_END = new UnstableValue("m.poll.end", "org.matrix.msc3381.poll.end");
|
||||
|
||||
/**
|
||||
* The event definition for an m.poll.end event (in content)
|
||||
*/
|
||||
|
||||
/**
|
||||
* The content for an m.poll.end event
|
||||
*/
|
||||
//# sourceMappingURL=polls.js.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/polls.js.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/polls.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"polls.js","names":[],"sources":["../../src/@types/polls.ts"],"sourcesContent":["/*\nCopyright 2022 - 2023 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport { type EitherAnd, UnstableValue } from \"matrix-events-sdk\";\n\nimport {\n type ExtensibleAnyMessageEventContent,\n type REFERENCE_RELATION,\n type RelatesToRelationship,\n type TSNamespace,\n} from \"./extensible_events.ts\";\nimport { type EmptyObject } from \"./common.ts\";\n\n/**\n * Identifier for a disclosed poll.\n */\nexport const M_POLL_KIND_DISCLOSED = new UnstableValue(\"m.poll.disclosed\", \"org.matrix.msc3381.poll.disclosed\");\n\n/**\n * Identifier for an undisclosed poll.\n */\nexport const M_POLL_KIND_UNDISCLOSED = new UnstableValue(\"m.poll.undisclosed\", \"org.matrix.msc3381.poll.undisclosed\");\n\n/**\n * Any poll kind.\n */\nexport type PollKind = TSNamespace<typeof M_POLL_KIND_DISCLOSED> | TSNamespace<typeof M_POLL_KIND_UNDISCLOSED> | string;\n\n/**\n * Known poll kind namespaces.\n */\nexport type KnownPollKind = typeof M_POLL_KIND_DISCLOSED | typeof M_POLL_KIND_UNDISCLOSED;\n\n/**\n * The namespaced value for m.poll.start\n */\nexport const M_POLL_START = new UnstableValue(\"m.poll.start\", \"org.matrix.msc3381.poll.start\");\n\n/**\n * The m.poll.start type within event content\n */\nexport type PollStartSubtype = {\n question: ExtensibleAnyMessageEventContent;\n kind: PollKind;\n max_selections?: number; // default 1, always positive\n answers: PollAnswer[];\n};\n\n/**\n * A poll answer.\n */\nexport type PollAnswer = ExtensibleAnyMessageEventContent & { id: string };\n\n/**\n * The event definition for an m.poll.start event (in content)\n */\nexport type PollStartEvent = EitherAnd<\n { [M_POLL_START.name]: PollStartSubtype },\n { [M_POLL_START.altName]: PollStartSubtype }\n>;\n\n/**\n * The content for an m.poll.start event\n */\nexport type PollStartEventContent = PollStartEvent & ExtensibleAnyMessageEventContent;\n\n/**\n * The namespaced value for m.poll.response\n */\nexport const M_POLL_RESPONSE = new UnstableValue(\"m.poll.response\", \"org.matrix.msc3381.poll.response\");\n\n/**\n * The m.poll.response type within event content\n */\nexport type PollResponseSubtype = {\n answers: string[];\n};\n\n/**\n * The event definition for an m.poll.response event (in content)\n */\nexport type PollResponseEvent = EitherAnd<\n { [M_POLL_RESPONSE.name]: PollResponseSubtype },\n { [M_POLL_RESPONSE.altName]: PollResponseSubtype }\n>;\n\n/**\n * The content for an m.poll.response event\n */\nexport type PollResponseEventContent = PollResponseEvent & RelatesToRelationship<typeof REFERENCE_RELATION>;\n\n/**\n * The namespaced value for m.poll.end\n */\nexport const M_POLL_END = new UnstableValue(\"m.poll.end\", \"org.matrix.msc3381.poll.end\");\n\n/**\n * The event definition for an m.poll.end event (in content)\n */\nexport type PollEndEvent = EitherAnd<{ [M_POLL_END.name]: EmptyObject }, { [M_POLL_END.altName]: EmptyObject }>;\n\n/**\n * The content for an m.poll.end event\n */\nexport type PollEndEventContent = PollEndEvent &\n RelatesToRelationship<typeof REFERENCE_RELATION> &\n ExtensibleAnyMessageEventContent;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAyB,aAAa,QAAQ,mBAAmB;AAUjE;AACA;AACA;AACA,OAAO,MAAM,qBAAqB,GAAG,IAAI,aAAa,CAAC,kBAAkB,EAAE,mCAAmC,CAAC;;AAE/G;AACA;AACA;AACA,OAAO,MAAM,uBAAuB,GAAG,IAAI,aAAa,CAAC,oBAAoB,EAAE,qCAAqC,CAAC;;AAErH;AACA;AACA;;AAGA;AACA;AACA;;AAGA;AACA;AACA;AACA,OAAO,MAAM,YAAY,GAAG,IAAI,aAAa,CAAC,cAAc,EAAE,+BAA+B,CAAC;;AAE9F;AACA;AACA;;AAQA;AACA;AACA;;AAGA;AACA;AACA;;AAMA;AACA;AACA;;AAGA;AACA;AACA;AACA,OAAO,MAAM,eAAe,GAAG,IAAI,aAAa,CAAC,iBAAiB,EAAE,kCAAkC,CAAC;;AAEvG;AACA;AACA;;AAKA;AACA;AACA;;AAMA;AACA;AACA;;AAGA;AACA;AACA;AACA,OAAO,MAAM,UAAU,GAAG,IAAI,aAAa,CAAC,YAAY,EAAE,6BAA6B,CAAC;;AAExF;AACA;AACA;;AAGA;AACA;AACA","ignoreList":[]}
|
||||
36
node_modules/matrix-js-sdk/lib/@types/read_receipts.d.ts
generated
vendored
Normal file
36
node_modules/matrix-js-sdk/lib/@types/read_receipts.d.ts
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
export declare enum ReceiptType {
|
||||
Read = "m.read",
|
||||
FullyRead = "m.fully_read",
|
||||
ReadPrivate = "m.read.private"
|
||||
}
|
||||
export declare const MAIN_ROOM_TIMELINE = "main";
|
||||
export interface Receipt {
|
||||
ts: number;
|
||||
thread_id?: string;
|
||||
}
|
||||
export interface WrappedReceipt {
|
||||
eventId: string;
|
||||
data: Receipt;
|
||||
}
|
||||
export interface CachedReceipt {
|
||||
type: ReceiptType;
|
||||
userId: string;
|
||||
data: Receipt;
|
||||
}
|
||||
export type ReceiptCache = Map<string, CachedReceipt[]>;
|
||||
export interface ReceiptContent {
|
||||
[eventId: string]: {
|
||||
[key in ReceiptType | string]: {
|
||||
[userId: string]: Receipt;
|
||||
};
|
||||
};
|
||||
}
|
||||
export type Receipts = Map<string, Map<string, [real: WrappedReceipt | null, synthetic: WrappedReceipt | null]>>;
|
||||
export type CachedReceiptStructure = {
|
||||
eventId: string;
|
||||
receiptType: string | ReceiptType;
|
||||
userId: string;
|
||||
receipt: Receipt;
|
||||
synthetic: boolean;
|
||||
};
|
||||
//# sourceMappingURL=read_receipts.d.ts.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/read_receipts.d.ts.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/read_receipts.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"read_receipts.d.ts","sourceRoot":"","sources":["../../src/@types/read_receipts.ts"],"names":[],"mappings":"AAgBA,oBAAY,WAAW;IACnB,IAAI,WAAW;IACf,SAAS,iBAAiB;IAC1B,WAAW,mBAAmB;CACjC;AAED,eAAO,MAAM,kBAAkB,SAAS,CAAC;AAEzC,MAAM,WAAW,OAAO;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,cAAc;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,MAAM,YAAY,GAAG,GAAG,CAAC,MAAM,EAAE,aAAa,EAAE,CAAC,CAAC;AAExD,MAAM,WAAW,cAAc;IAC3B,CAAC,OAAO,EAAE,MAAM,GAAG;SACd,GAAG,IAAI,WAAW,GAAG,MAAM,GAAG;YAC3B,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;SAC7B;KACJ,CAAC;CACL;AAID,MAAM,MAAM,QAAQ,GAAG,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI,EAAE,SAAS,EAAE,cAAc,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;AAEjH,MAAM,MAAM,sBAAsB,GAAG;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,GAAG,WAAW,CAAC;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;CACtB,CAAC"}
|
||||
27
node_modules/matrix-js-sdk/lib/@types/read_receipts.js
generated
vendored
Normal file
27
node_modules/matrix-js-sdk/lib/@types/read_receipts.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
Copyright 2022 Šimon Brandner <simon.bra.ag@gmail.com>
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
export let ReceiptType = /*#__PURE__*/function (ReceiptType) {
|
||||
ReceiptType["Read"] = "m.read";
|
||||
ReceiptType["FullyRead"] = "m.fully_read";
|
||||
ReceiptType["ReadPrivate"] = "m.read.private";
|
||||
return ReceiptType;
|
||||
}({});
|
||||
export const MAIN_ROOM_TIMELINE = "main";
|
||||
|
||||
// We will only hold a synthetic receipt if we do not have a real receipt or the synthetic is newer.
|
||||
// map: receipt type → user Id → receipt
|
||||
//# sourceMappingURL=read_receipts.js.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/read_receipts.js.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/read_receipts.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"read_receipts.js","names":[],"sources":["../../src/@types/read_receipts.ts"],"sourcesContent":["/*\nCopyright 2022 Šimon Brandner <simon.bra.ag@gmail.com>\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nexport enum ReceiptType {\n Read = \"m.read\",\n FullyRead = \"m.fully_read\",\n ReadPrivate = \"m.read.private\",\n}\n\nexport const MAIN_ROOM_TIMELINE = \"main\";\n\nexport interface Receipt {\n ts: number;\n thread_id?: string;\n}\n\nexport interface WrappedReceipt {\n eventId: string;\n data: Receipt;\n}\n\nexport interface CachedReceipt {\n type: ReceiptType;\n userId: string;\n data: Receipt;\n}\n\nexport type ReceiptCache = Map<string, CachedReceipt[]>;\n\nexport interface ReceiptContent {\n [eventId: string]: {\n [key in ReceiptType | string]: {\n [userId: string]: Receipt;\n };\n };\n}\n\n// We will only hold a synthetic receipt if we do not have a real receipt or the synthetic is newer.\n// map: receipt type → user Id → receipt\nexport type Receipts = Map<string, Map<string, [real: WrappedReceipt | null, synthetic: WrappedReceipt | null]>>;\n\nexport type CachedReceiptStructure = {\n eventId: string;\n receiptType: string | ReceiptType;\n userId: string;\n receipt: Receipt;\n synthetic: boolean;\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAY,WAAW,0BAAX,WAAW;EAAX,WAAW;EAAX,WAAW;EAAX,WAAW;EAAA,OAAX,WAAW;AAAA;AAMvB,OAAO,MAAM,kBAAkB,GAAG,MAAM;;AA4BxC;AACA","ignoreList":[]}
|
||||
85
node_modules/matrix-js-sdk/lib/@types/registration.d.ts
generated
vendored
Normal file
85
node_modules/matrix-js-sdk/lib/@types/registration.d.ts
generated
vendored
Normal file
@@ -0,0 +1,85 @@
|
||||
import { type AuthDict } from "../interactive-auth.ts";
|
||||
/**
|
||||
* The request body of a call to `POST /_matrix/client/v3/register`.
|
||||
*
|
||||
* @see https://spec.matrix.org/v1.7/client-server-api/#post_matrixclientv3register
|
||||
*/
|
||||
export interface RegisterRequest {
|
||||
/**
|
||||
* Additional authentication information for the user-interactive authentication API.
|
||||
* Note that this information is not used to define how the registered user should be authenticated,
|
||||
* but is instead used to authenticate the register call itself.
|
||||
*/
|
||||
auth?: AuthDict;
|
||||
/**
|
||||
* The basis for the localpart of the desired Matrix ID.
|
||||
* If omitted, the homeserver MUST generate a Matrix ID local part.
|
||||
*/
|
||||
username?: string;
|
||||
/**
|
||||
* The desired password for the account.
|
||||
*/
|
||||
password?: string;
|
||||
/**
|
||||
* If true, the client supports refresh tokens.
|
||||
*/
|
||||
refresh_token?: boolean;
|
||||
/**
|
||||
* If true, an access_token and device_id should not be returned from this call, therefore preventing an automatic login.
|
||||
* Defaults to false.
|
||||
*/
|
||||
inhibit_login?: boolean;
|
||||
/**
|
||||
* A display name to assign to the newly-created device.
|
||||
* Ignored if device_id corresponds to a known device.
|
||||
*/
|
||||
initial_device_display_name?: string;
|
||||
/**
|
||||
* Guest users can also upgrade their account by going through the ordinary register flow,
|
||||
* but specifying the additional POST parameter guest_access_token containing the guest’s access token.
|
||||
* They are also required to specify the username parameter to the value of the local part of their username,
|
||||
* which is otherwise optional.
|
||||
* @see https://spec.matrix.org/v1.10/client-server-api/#guest-access
|
||||
*/
|
||||
guest_access_token?: string;
|
||||
}
|
||||
/**
|
||||
* The result of a successful call to `POST /_matrix/client/v3/register`.
|
||||
*
|
||||
* @see https://spec.matrix.org/v1.7/client-server-api/#post_matrixclientv3register
|
||||
*/
|
||||
export interface RegisterResponse {
|
||||
/**
|
||||
* The fully-qualified Matrix user ID (MXID) that has been registered.
|
||||
*/
|
||||
user_id: string;
|
||||
/**
|
||||
* An access token for the account.
|
||||
* This access token can then be used to authorize other requests.
|
||||
* Required if the inhibit_login option is false.
|
||||
*/
|
||||
access_token?: string;
|
||||
/**
|
||||
* ID of the registered device.
|
||||
* Will be the same as the corresponding parameter in the request, if one was specified.
|
||||
* Required if the inhibit_login option is false.
|
||||
*/
|
||||
device_id?: string;
|
||||
/**
|
||||
* The lifetime of the access token, in milliseconds.
|
||||
* Once the access token has expired a new access token can be obtained by using the provided refresh token.
|
||||
* If no refresh token is provided, the client will need to re-log in to obtain a new access token.
|
||||
* If not given, the client can assume that the access token will not expire.
|
||||
*
|
||||
* Omitted if the inhibit_login option is true.
|
||||
*/
|
||||
expires_in_ms?: number;
|
||||
/**
|
||||
* A refresh token for the account.
|
||||
* This token can be used to obtain a new access token when it expires by calling the /refresh endpoint.
|
||||
*
|
||||
* Omitted if the inhibit_login option is true.
|
||||
*/
|
||||
refresh_token?: string;
|
||||
}
|
||||
//# sourceMappingURL=registration.d.ts.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/registration.d.ts.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/registration.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"registration.d.ts","sourceRoot":"","sources":["../../src/@types/registration.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAEvD;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC;;;;;;OAMG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B"}
|
||||
3
node_modules/matrix-js-sdk/lib/@types/registration.js
generated
vendored
Normal file
3
node_modules/matrix-js-sdk/lib/@types/registration.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export {};
|
||||
export {};
|
||||
//# sourceMappingURL=registration.js.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/registration.js.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/registration.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"registration.js","names":[],"sources":["../../src/@types/registration.ts"],"sourcesContent":["/*\nCopyright 2023 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport { type AuthDict } from \"../interactive-auth.ts\";\n\n/**\n * The request body of a call to `POST /_matrix/client/v3/register`.\n *\n * @see https://spec.matrix.org/v1.7/client-server-api/#post_matrixclientv3register\n */\nexport interface RegisterRequest {\n /**\n * Additional authentication information for the user-interactive authentication API.\n * Note that this information is not used to define how the registered user should be authenticated,\n * but is instead used to authenticate the register call itself.\n */\n auth?: AuthDict;\n /**\n * The basis for the localpart of the desired Matrix ID.\n * If omitted, the homeserver MUST generate a Matrix ID local part.\n */\n username?: string;\n /**\n * The desired password for the account.\n */\n password?: string;\n /**\n * If true, the client supports refresh tokens.\n */\n refresh_token?: boolean;\n /**\n * If true, an access_token and device_id should not be returned from this call, therefore preventing an automatic login.\n * Defaults to false.\n */\n inhibit_login?: boolean;\n /**\n * A display name to assign to the newly-created device.\n * Ignored if device_id corresponds to a known device.\n */\n initial_device_display_name?: string;\n /**\n * Guest users can also upgrade their account by going through the ordinary register flow,\n * but specifying the additional POST parameter guest_access_token containing the guest’s access token.\n * They are also required to specify the username parameter to the value of the local part of their username,\n * which is otherwise optional.\n * @see https://spec.matrix.org/v1.10/client-server-api/#guest-access\n */\n guest_access_token?: string;\n}\n\n/**\n * The result of a successful call to `POST /_matrix/client/v3/register`.\n *\n * @see https://spec.matrix.org/v1.7/client-server-api/#post_matrixclientv3register\n */\nexport interface RegisterResponse {\n /**\n * The fully-qualified Matrix user ID (MXID) that has been registered.\n */\n user_id: string;\n /**\n * An access token for the account.\n * This access token can then be used to authorize other requests.\n * Required if the inhibit_login option is false.\n */\n access_token?: string;\n /**\n * ID of the registered device.\n * Will be the same as the corresponding parameter in the request, if one was specified.\n * Required if the inhibit_login option is false.\n */\n device_id?: string;\n /**\n * The lifetime of the access token, in milliseconds.\n * Once the access token has expired a new access token can be obtained by using the provided refresh token.\n * If no refresh token is provided, the client will need to re-log in to obtain a new access token.\n * If not given, the client can assume that the access token will not expire.\n *\n * Omitted if the inhibit_login option is true.\n */\n expires_in_ms?: number;\n /**\n * A refresh token for the account.\n * This token can be used to obtain a new access token when it expires by calling the /refresh endpoint.\n *\n * Omitted if the inhibit_login option is true.\n */\n refresh_token?: string;\n}\n"],"mappings":"","ignoreList":[]}
|
||||
266
node_modules/matrix-js-sdk/lib/@types/requests.d.ts
generated
vendored
Normal file
266
node_modules/matrix-js-sdk/lib/@types/requests.d.ts
generated
vendored
Normal file
@@ -0,0 +1,266 @@
|
||||
import { type IContent, type IEvent } from "../models/event.ts";
|
||||
import { type Preset, type Visibility } from "./partials.ts";
|
||||
import { type IEventWithRoomId, type SearchKey } from "./search.ts";
|
||||
import { type IRoomEventFilter } from "../filter.ts";
|
||||
import { type Direction } from "../models/event-timeline.ts";
|
||||
import { type PushRuleAction } from "./PushRules.ts";
|
||||
import { type MatrixError } from "../matrix.ts";
|
||||
import { type IRoomEvent } from "../sync-accumulator.ts";
|
||||
import { type EventType, type RelationType, type RoomType } from "./event.ts";
|
||||
export interface IJoinRoomOpts {
|
||||
/**
|
||||
* If the caller has a keypair 3pid invite, the signing URL is passed in this parameter.
|
||||
*/
|
||||
inviteSignUrl?: string;
|
||||
/**
|
||||
* The server names to try and join through in addition to those that are automatically chosen.
|
||||
* Only the first 3 are actually used in the request, to avoid HTTP 414 Request-URI Too Long responses.
|
||||
*/
|
||||
viaServers?: string[];
|
||||
/**
|
||||
* Previously, configured whether to accept encrypted history shared by the inviter. This is now always enabled,
|
||||
* and the setting is only retained to avoid a breaking change to the API. It has no effect.
|
||||
*
|
||||
* @deprecated
|
||||
*/
|
||||
acceptSharedHistory?: boolean;
|
||||
}
|
||||
/** Options object for {@link MatrixClient.invite}. */
|
||||
export interface InviteOpts {
|
||||
/**
|
||||
* The reason for the invite.
|
||||
*/
|
||||
reason?: string;
|
||||
/**
|
||||
* Previously, configured whether to send encrypted history if the visibility settings allow it.
|
||||
* This is now always enabled, and the setting is only retained to avoid a breaking change to the API. It has no effect.
|
||||
*
|
||||
* @deprecated
|
||||
*/
|
||||
shareEncryptedHistory?: boolean;
|
||||
}
|
||||
export interface KnockRoomOpts {
|
||||
/**
|
||||
* The reason for the knock.
|
||||
*/
|
||||
reason?: string;
|
||||
/**
|
||||
* The server names to try and knock through in addition to those that are automatically chosen.
|
||||
* Only the first 3 are actually used in the request, to avoid HTTP 414 Request-URI Too Long responses.
|
||||
*/
|
||||
viaServers?: string | string[];
|
||||
}
|
||||
export interface IRedactOpts {
|
||||
reason?: string;
|
||||
/**
|
||||
* If specified, then any events which relate to the event being redacted with
|
||||
* any of the relationship types listed will also be redacted.
|
||||
* Provide a "*" list item to tell the server to redact relations of any type.
|
||||
*
|
||||
* <b>Raises an Error if the server does not support it.</b>
|
||||
* Check for server-side support before using this param with
|
||||
* <code>client.canSupport.get(Feature.RelationBasedRedactions)</code>.
|
||||
* {@link https://github.com/matrix-org/matrix-spec-proposals/pull/3912}
|
||||
*/
|
||||
with_rel_types?: Array<RelationType | "*">;
|
||||
}
|
||||
export interface ISendEventResponse {
|
||||
event_id: string;
|
||||
}
|
||||
export type SendDelayedEventRequestOpts = {
|
||||
parent_delay_id: string;
|
||||
} | {
|
||||
delay: number;
|
||||
parent_delay_id?: string;
|
||||
};
|
||||
export declare function isSendDelayedEventRequestOpts(opts: object): opts is SendDelayedEventRequestOpts;
|
||||
export type SendDelayedEventResponse = {
|
||||
delay_id: string;
|
||||
};
|
||||
export declare enum UpdateDelayedEventAction {
|
||||
Cancel = "cancel",
|
||||
Restart = "restart",
|
||||
Send = "send"
|
||||
}
|
||||
export type UpdateDelayedEventRequestOpts = SendDelayedEventResponse & {
|
||||
action: UpdateDelayedEventAction;
|
||||
};
|
||||
type DelayedPartialTimelineEvent = {
|
||||
room_id: string;
|
||||
type: string;
|
||||
content: IContent;
|
||||
};
|
||||
type DelayedPartialStateEvent = DelayedPartialTimelineEvent & {
|
||||
state_key: string;
|
||||
};
|
||||
type DelayedPartialEvent = DelayedPartialTimelineEvent | DelayedPartialStateEvent;
|
||||
export type DelayedEventInfoItem = DelayedPartialEvent & SendDelayedEventResponse & SendDelayedEventRequestOpts & {
|
||||
running_since: number;
|
||||
};
|
||||
export type DelayedEventInfo = {
|
||||
scheduled?: DelayedEventInfoItem[];
|
||||
finalised?: {
|
||||
delayed_event: DelayedEventInfoItem;
|
||||
outcome: "send" | "cancel";
|
||||
reason: "error" | "action" | "delay";
|
||||
error?: MatrixError["data"];
|
||||
event_id?: string;
|
||||
origin_server_ts?: number;
|
||||
}[];
|
||||
next_batch?: string;
|
||||
};
|
||||
export interface IPresenceOpts {
|
||||
presence: "online" | "offline" | "unavailable";
|
||||
status_msg?: string;
|
||||
}
|
||||
export interface IPaginateOpts {
|
||||
backwards?: boolean;
|
||||
limit?: number;
|
||||
}
|
||||
export interface IGuestAccessOpts {
|
||||
/**
|
||||
* True to allow guests to join this room. This
|
||||
* implicitly gives guests write access. If false or not given, guests are
|
||||
* explicitly forbidden from joining the room.
|
||||
*/
|
||||
allowJoin: boolean;
|
||||
/**
|
||||
* True to set history visibility to
|
||||
* be world_readable. This gives guests read access *from this point forward*.
|
||||
* If false or not given, history visibility is not modified.
|
||||
*/
|
||||
allowRead: boolean;
|
||||
}
|
||||
export interface ISearchOpts {
|
||||
keys?: SearchKey[];
|
||||
query: string;
|
||||
}
|
||||
export interface IEventSearchOpts {
|
||||
filter?: IRoomEventFilter;
|
||||
term: string;
|
||||
}
|
||||
export interface IInvite3PID {
|
||||
id_server: string;
|
||||
id_access_token?: string;
|
||||
medium: string;
|
||||
address: string;
|
||||
}
|
||||
export interface ICreateRoomStateEvent {
|
||||
type: string;
|
||||
state_key?: string;
|
||||
content: IContent;
|
||||
}
|
||||
export interface ICreateRoomOpts {
|
||||
room_alias_name?: string;
|
||||
visibility?: Visibility;
|
||||
name?: string;
|
||||
topic?: string;
|
||||
preset?: Preset;
|
||||
power_level_content_override?: {
|
||||
ban?: number;
|
||||
events?: Record<EventType | string, number>;
|
||||
events_default?: number;
|
||||
invite?: number;
|
||||
kick?: number;
|
||||
notifications?: Record<string, number>;
|
||||
redact?: number;
|
||||
state_default?: number;
|
||||
users?: Record<string, number>;
|
||||
users_default?: number;
|
||||
};
|
||||
creation_content?: object;
|
||||
initial_state?: ICreateRoomStateEvent[];
|
||||
invite?: string[];
|
||||
invite_3pid?: IInvite3PID[];
|
||||
is_direct?: boolean;
|
||||
room_version?: string;
|
||||
}
|
||||
export interface IRoomDirectoryOptions {
|
||||
/**
|
||||
* The remote server to query for the room list.
|
||||
* Optional. If unspecified, get the local homeserver's public room list.
|
||||
*/
|
||||
server?: string;
|
||||
/**
|
||||
* Maximum number of entries to return
|
||||
*/
|
||||
limit?: number;
|
||||
/**
|
||||
* Token to paginate from
|
||||
*/
|
||||
since?: string;
|
||||
/** Filter parameters */
|
||||
filter?: {
|
||||
generic_search_term?: string;
|
||||
room_types?: Array<RoomType | null>;
|
||||
};
|
||||
include_all_networks?: boolean;
|
||||
third_party_instance_id?: string;
|
||||
}
|
||||
export interface IAddThreePidOnlyBody {
|
||||
auth?: {
|
||||
type: string;
|
||||
session?: string;
|
||||
};
|
||||
client_secret: string;
|
||||
sid: string;
|
||||
}
|
||||
export interface IBindThreePidBody {
|
||||
client_secret: string;
|
||||
id_server: string;
|
||||
id_access_token: string | null;
|
||||
sid: string;
|
||||
}
|
||||
export interface IRelationsRequestOpts {
|
||||
from?: string;
|
||||
to?: string;
|
||||
limit?: number;
|
||||
dir?: Direction;
|
||||
recurse?: boolean;
|
||||
}
|
||||
export interface IRelationsResponse {
|
||||
chunk: IEvent[];
|
||||
next_batch?: string;
|
||||
prev_batch?: string;
|
||||
}
|
||||
export interface IContextResponse {
|
||||
end?: string;
|
||||
start?: string;
|
||||
state?: IEventWithRoomId[];
|
||||
events_before?: IEventWithRoomId[];
|
||||
events_after?: IEventWithRoomId[];
|
||||
event?: IEventWithRoomId;
|
||||
}
|
||||
export interface IEventsResponse {
|
||||
chunk: IEventWithRoomId[];
|
||||
end: string;
|
||||
start: string;
|
||||
}
|
||||
export interface INotification {
|
||||
actions: PushRuleAction[];
|
||||
event: IRoomEvent;
|
||||
profile_tag?: string;
|
||||
read: boolean;
|
||||
room_id: string;
|
||||
ts: number;
|
||||
}
|
||||
export interface INotificationsResponse {
|
||||
next_token: string;
|
||||
notifications: INotification[];
|
||||
}
|
||||
export interface IFilterResponse {
|
||||
filter_id: string;
|
||||
}
|
||||
export interface ITagsResponse {
|
||||
tags: {
|
||||
[tagId: string]: {
|
||||
order: number;
|
||||
};
|
||||
};
|
||||
}
|
||||
export interface IStatusResponse extends IPresenceOpts {
|
||||
currently_active?: boolean;
|
||||
last_active_ago?: number;
|
||||
}
|
||||
export {};
|
||||
//# sourceMappingURL=requests.d.ts.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/requests.d.ts.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/requests.d.ts.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
37
node_modules/matrix-js-sdk/lib/@types/requests.js
generated
vendored
Normal file
37
node_modules/matrix-js-sdk/lib/@types/requests.js
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
Copyright 2021 The Matrix.org Foundation C.I.C.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
/** Options object for {@link MatrixClient.invite}. */
|
||||
|
||||
export function isSendDelayedEventRequestOpts(opts) {
|
||||
if ("parent_delay_id" in opts && typeof opts.parent_delay_id !== "string") {
|
||||
// Invalid type, reject
|
||||
return false;
|
||||
}
|
||||
if ("delay" in opts && typeof opts.delay !== "number") {
|
||||
// Invalid type, reject.
|
||||
return true;
|
||||
}
|
||||
// At least one of these fields must be specified.
|
||||
return "delay" in opts || "parent_delay_id" in opts;
|
||||
}
|
||||
export let UpdateDelayedEventAction = /*#__PURE__*/function (UpdateDelayedEventAction) {
|
||||
UpdateDelayedEventAction["Cancel"] = "cancel";
|
||||
UpdateDelayedEventAction["Restart"] = "restart";
|
||||
UpdateDelayedEventAction["Send"] = "send";
|
||||
return UpdateDelayedEventAction;
|
||||
}({});
|
||||
//# sourceMappingURL=requests.js.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/requests.js.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/requests.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
15
node_modules/matrix-js-sdk/lib/@types/retention.d.ts
generated
vendored
Normal file
15
node_modules/matrix-js-sdk/lib/@types/retention.d.ts
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import { UnstableValue } from "../NamespacedValue.ts";
|
||||
/**
|
||||
* Event type for a room policy event.
|
||||
* NOTE: While MSC1763 has not been merged, `m.room.retention` is unfortunately
|
||||
* already in use in production.
|
||||
*/
|
||||
export declare const ROOM_RETENTION_TYPE: UnstableValue<"m.room.retention", "org.matrix.msc1763.retention">;
|
||||
/**
|
||||
* The content of a `m.room.retention` state event.
|
||||
*/
|
||||
export interface RoomRetentionContent {
|
||||
max_lifetime?: number;
|
||||
min_lifetime?: number;
|
||||
}
|
||||
//# sourceMappingURL=retention.d.ts.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/retention.d.ts.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/retention.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"retention.d.ts","sourceRoot":"","sources":["../../src/@types/retention.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,mEAAwE,CAAC;AAEzG;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB"}
|
||||
13
node_modules/matrix-js-sdk/lib/@types/retention.js
generated
vendored
Normal file
13
node_modules/matrix-js-sdk/lib/@types/retention.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import { UnstableValue } from "../NamespacedValue.js";
|
||||
|
||||
/**
|
||||
* Event type for a room policy event.
|
||||
* NOTE: While MSC1763 has not been merged, `m.room.retention` is unfortunately
|
||||
* already in use in production.
|
||||
*/
|
||||
export const ROOM_RETENTION_TYPE = new UnstableValue("m.room.retention", "org.matrix.msc1763.retention");
|
||||
|
||||
/**
|
||||
* The content of a `m.room.retention` state event.
|
||||
*/
|
||||
//# sourceMappingURL=retention.js.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/retention.js.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/retention.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"retention.js","names":[],"sources":["../../src/@types/retention.ts"],"sourcesContent":["import { UnstableValue } from \"../NamespacedValue.ts\";\n\n/**\n * Event type for a room policy event.\n * NOTE: While MSC1763 has not been merged, `m.room.retention` is unfortunately\n * already in use in production.\n */\nexport const ROOM_RETENTION_TYPE = new UnstableValue(\"m.room.retention\", \"org.matrix.msc1763.retention\");\n\n/**\n * The content of a `m.room.retention` state event.\n */\nexport interface RoomRetentionContent {\n max_lifetime?: number;\n min_lifetime?: number;\n}\n"],"mappings":"AAAA,SAAS,aAAa,QAAQ,uBAAuB;;AAErD;AACA;AACA;AACA;AACA;AACA,OAAO,MAAM,mBAAmB,GAAG,IAAI,aAAa,CAAC,kBAAkB,EAAE,8BAA8B,CAAC;;AAExG;AACA;AACA","ignoreList":[]}
|
||||
90
node_modules/matrix-js-sdk/lib/@types/search.d.ts
generated
vendored
Normal file
90
node_modules/matrix-js-sdk/lib/@types/search.d.ts
generated
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
import { type IRoomEvent, type IStateEvent } from "../sync-accumulator.ts";
|
||||
import { type IRoomEventFilter } from "../filter.ts";
|
||||
import { type SearchResult } from "../models/search-result.ts";
|
||||
export interface IEventWithRoomId extends IRoomEvent {
|
||||
room_id: string;
|
||||
}
|
||||
export interface IStateEventWithRoomId extends IStateEvent {
|
||||
room_id: string;
|
||||
}
|
||||
export interface IMatrixProfile {
|
||||
avatar_url?: string;
|
||||
displayname?: string;
|
||||
}
|
||||
export interface IResultContext {
|
||||
events_before: IEventWithRoomId[];
|
||||
events_after: IEventWithRoomId[];
|
||||
profile_info: Record<string, IMatrixProfile>;
|
||||
start?: string;
|
||||
end?: string;
|
||||
}
|
||||
export interface ISearchResult {
|
||||
rank: number;
|
||||
result: IEventWithRoomId;
|
||||
context: IResultContext;
|
||||
}
|
||||
declare enum GroupKey {
|
||||
RoomId = "room_id",
|
||||
Sender = "sender"
|
||||
}
|
||||
export interface IResultRoomEvents {
|
||||
count?: number;
|
||||
highlights?: string[];
|
||||
results?: ISearchResult[];
|
||||
state?: {
|
||||
[roomId: string]: IStateEventWithRoomId[];
|
||||
};
|
||||
groups?: {
|
||||
[groupKey in GroupKey]: {
|
||||
[value: string]: {
|
||||
next_batch?: string;
|
||||
order: number;
|
||||
results: string[];
|
||||
};
|
||||
};
|
||||
};
|
||||
next_batch?: string;
|
||||
}
|
||||
interface IResultCategories {
|
||||
room_events: IResultRoomEvents;
|
||||
}
|
||||
export type SearchKey = "content.body" | "content.name" | "content.topic";
|
||||
export declare enum SearchOrderBy {
|
||||
Recent = "recent",
|
||||
Rank = "rank"
|
||||
}
|
||||
export interface ISearchRequestBody {
|
||||
search_categories: {
|
||||
room_events: {
|
||||
search_term: string;
|
||||
keys?: SearchKey[];
|
||||
filter?: IRoomEventFilter;
|
||||
order_by?: SearchOrderBy;
|
||||
event_context?: {
|
||||
before_limit?: number;
|
||||
after_limit?: number;
|
||||
include_profile?: boolean;
|
||||
};
|
||||
include_state?: boolean;
|
||||
groupings?: {
|
||||
group_by: {
|
||||
key: GroupKey;
|
||||
}[];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
export interface ISearchResponse {
|
||||
search_categories: IResultCategories;
|
||||
}
|
||||
export interface ISearchResults {
|
||||
_query?: ISearchRequestBody;
|
||||
results: SearchResult[];
|
||||
highlights: string[];
|
||||
count?: number;
|
||||
next_batch?: string;
|
||||
pendingRequest?: Promise<ISearchResults>;
|
||||
abortSignal?: AbortSignal;
|
||||
}
|
||||
export {};
|
||||
//# sourceMappingURL=search.d.ts.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/search.d.ts.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/search.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/@types/search.ts"],"names":[],"mappings":"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"}
|
||||
27
node_modules/matrix-js-sdk/lib/@types/search.js
generated
vendored
Normal file
27
node_modules/matrix-js-sdk/lib/@types/search.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
Copyright 2021 The Matrix.org Foundation C.I.C.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
// Types relating to the /search API
|
||||
var GroupKey = /*#__PURE__*/function (GroupKey) {
|
||||
GroupKey["RoomId"] = "room_id";
|
||||
GroupKey["Sender"] = "sender";
|
||||
return GroupKey;
|
||||
}(GroupKey || {});
|
||||
export let SearchOrderBy = /*#__PURE__*/function (SearchOrderBy) {
|
||||
SearchOrderBy["Recent"] = "recent";
|
||||
SearchOrderBy["Rank"] = "rank";
|
||||
return SearchOrderBy;
|
||||
}({});
|
||||
//# sourceMappingURL=search.js.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/search.js.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/search.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"search.js","names":[],"sources":["../../src/@types/search.ts"],"sourcesContent":["/*\nCopyright 2021 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\n// Types relating to the /search API\n\nimport { type IRoomEvent, type IStateEvent } from \"../sync-accumulator.ts\";\nimport { type IRoomEventFilter } from \"../filter.ts\";\nimport { type SearchResult } from \"../models/search-result.ts\";\n\nexport interface IEventWithRoomId extends IRoomEvent {\n room_id: string;\n}\n\nexport interface IStateEventWithRoomId extends IStateEvent {\n room_id: string;\n}\n\nexport interface IMatrixProfile {\n avatar_url?: string;\n displayname?: string;\n}\n\nexport interface IResultContext {\n events_before: IEventWithRoomId[];\n events_after: IEventWithRoomId[];\n profile_info: Record<string, IMatrixProfile>;\n start?: string;\n end?: string;\n}\n\nexport interface ISearchResult {\n rank: number;\n result: IEventWithRoomId;\n context: IResultContext;\n}\n\nenum GroupKey {\n RoomId = \"room_id\",\n Sender = \"sender\",\n}\n\nexport interface IResultRoomEvents {\n count?: number;\n highlights?: string[];\n results?: ISearchResult[];\n state?: { [roomId: string]: IStateEventWithRoomId[] };\n groups?: {\n [groupKey in GroupKey]: {\n [value: string]: {\n next_batch?: string;\n order: number;\n results: string[];\n };\n };\n };\n next_batch?: string;\n}\n\ninterface IResultCategories {\n room_events: IResultRoomEvents;\n}\n\nexport type SearchKey = \"content.body\" | \"content.name\" | \"content.topic\";\n\nexport enum SearchOrderBy {\n Recent = \"recent\",\n Rank = \"rank\",\n}\n\nexport interface ISearchRequestBody {\n search_categories: {\n room_events: {\n search_term: string;\n keys?: SearchKey[];\n filter?: IRoomEventFilter;\n order_by?: SearchOrderBy;\n event_context?: {\n before_limit?: number;\n after_limit?: number;\n include_profile?: boolean;\n };\n include_state?: boolean;\n groupings?: {\n group_by: {\n key: GroupKey;\n }[];\n };\n };\n };\n}\n\nexport interface ISearchResponse {\n search_categories: IResultCategories;\n}\n\nexport interface ISearchResults {\n _query?: ISearchRequestBody;\n results: SearchResult[];\n highlights: string[];\n count?: number;\n next_batch?: string;\n pendingRequest?: Promise<ISearchResults>;\n abortSignal?: AbortSignal;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA,IAiCK,QAAQ,0BAAR,QAAQ;EAAR,QAAQ;EAAR,QAAQ;EAAA,OAAR,QAAQ;AAAA,EAAR,QAAQ;AA4Bb,WAAY,aAAa,0BAAb,aAAa;EAAb,aAAa;EAAb,aAAa;EAAA,OAAb,aAAa;AAAA","ignoreList":[]}
|
||||
9
node_modules/matrix-js-sdk/lib/@types/signed.d.ts
generated
vendored
Normal file
9
node_modules/matrix-js-sdk/lib/@types/signed.d.ts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
export interface ISignatures {
|
||||
[entity: string]: {
|
||||
[keyId: string]: string;
|
||||
};
|
||||
}
|
||||
export interface ISigned {
|
||||
signatures?: ISignatures;
|
||||
}
|
||||
//# sourceMappingURL=signed.d.ts.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/signed.d.ts.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/signed.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"signed.d.ts","sourceRoot":"","sources":["../../src/@types/signed.ts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,WAAW;IACxB,CAAC,MAAM,EAAE,MAAM,GAAG;QACd,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;KAC3B,CAAC;CACL;AAED,MAAM,WAAW,OAAO;IACpB,UAAU,CAAC,EAAE,WAAW,CAAC;CAC5B"}
|
||||
3
node_modules/matrix-js-sdk/lib/@types/signed.js
generated
vendored
Normal file
3
node_modules/matrix-js-sdk/lib/@types/signed.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export {};
|
||||
export {};
|
||||
//# sourceMappingURL=signed.js.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/signed.js.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/signed.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"signed.js","names":[],"sources":["../../src/@types/signed.ts"],"sourcesContent":["/*\nCopyright 2021 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nexport interface ISignatures {\n [entity: string]: {\n [keyId: string]: string;\n };\n}\n\nexport interface ISigned {\n signatures?: ISignatures;\n}\n"],"mappings":"","ignoreList":[]}
|
||||
16
node_modules/matrix-js-sdk/lib/@types/spaces.d.ts
generated
vendored
Normal file
16
node_modules/matrix-js-sdk/lib/@types/spaces.d.ts
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import { type IPublicRoomsChunkRoom } from "../client.ts";
|
||||
import { type RoomType } from "./event.ts";
|
||||
import { type IStrippedState } from "../sync-accumulator.ts";
|
||||
export interface IHierarchyRelation extends IStrippedState {
|
||||
origin_server_ts: number;
|
||||
content: {
|
||||
order?: string;
|
||||
suggested?: boolean;
|
||||
via?: string[];
|
||||
};
|
||||
}
|
||||
export interface IHierarchyRoom extends IPublicRoomsChunkRoom {
|
||||
room_type?: RoomType | string;
|
||||
children_state: IHierarchyRelation[];
|
||||
}
|
||||
//# sourceMappingURL=spaces.d.ts.map
|
||||
1
node_modules/matrix-js-sdk/lib/@types/spaces.d.ts.map
generated
vendored
Normal file
1
node_modules/matrix-js-sdk/lib/@types/spaces.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"spaces.d.ts","sourceRoot":"","sources":["../../src/@types/spaces.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAI7D,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACtD,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE;QACL,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;KAClB,CAAC;CACL;AAED,MAAM,WAAW,cAAe,SAAQ,qBAAqB;IACzD,SAAS,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC9B,cAAc,EAAE,kBAAkB,EAAE,CAAC;CACxC"}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user