@oxy.so/core 4.5.0-oxy-one.0 → 4.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/HttpService.js +63 -19
- package/dist/cjs/api/accounts.js +10 -3
- package/dist/cjs/api/agency.js +3 -1
- package/dist/cjs/api/apps.js +15 -4
- package/dist/cjs/api/assets.js +49 -12
- package/dist/cjs/api/auth.js +37 -11
- package/dist/cjs/api/billing.js +24 -7
- package/dist/cjs/api/civic.js +14 -4
- package/dist/cjs/api/follows.js +9 -2
- package/dist/cjs/api/identity.js +31 -9
- package/dist/cjs/api/nodes.js +3 -1
- package/dist/cjs/api/privacy.js +8 -2
- package/dist/cjs/api/session.js +15 -4
- package/dist/cjs/api/store.js +15 -5
- package/dist/cjs/api/topics.js +10 -3
- package/dist/cjs/api/users.js +16 -4
- package/dist/cjs/boot/sessionColdBoot.js +40 -13
- package/dist/cjs/constants/version.js +6 -6
- package/dist/cjs/crypto/identityMarker.js +3 -1
- package/dist/cjs/crypto/identityProof.js +6 -1
- package/dist/cjs/crypto/keyManager.js +87 -32
- package/dist/cjs/crypto/recoveryPhrase.js +2 -2
- package/dist/cjs/crypto/signatureService.js +3 -4
- package/dist/cjs/i18n/index.js +16 -3
- package/dist/cjs/i18n/locales/ar-SA.js +366 -366
- package/dist/cjs/i18n/locales/ca-ES.js +366 -366
- package/dist/cjs/i18n/locales/de-DE.js +366 -366
- package/dist/cjs/i18n/locales/en-US.js +1994 -1994
- package/dist/cjs/i18n/locales/es-ES.js +1994 -1994
- package/dist/cjs/i18n/locales/fr-FR.js +366 -366
- package/dist/cjs/i18n/locales/it-IT.js +366 -366
- package/dist/cjs/i18n/locales/ja-JP.js +366 -366
- package/dist/cjs/i18n/locales/ko-KR.js +366 -366
- package/dist/cjs/i18n/locales/pt-PT.js +366 -366
- package/dist/cjs/i18n/locales/zh-CN.js +366 -366
- package/dist/cjs/inference/OxyInferenceClient.js +12 -18
- package/dist/cjs/models/interfaces.js +11 -11
- package/dist/cjs/server/OxyServer.js +86 -28
- package/dist/cjs/server/agentAccount.js +6 -2
- package/dist/cjs/server/aliaMachineCredential.js +39 -14
- package/dist/cjs/server/auth.js +5 -4
- package/dist/cjs/server/capabilityTicket.js +5 -5
- package/dist/cjs/server/index.js +2 -1
- package/dist/cjs/server/liveCapabilityTicket.js +4 -1
- package/dist/cjs/server/middleware.js +61 -42
- package/dist/cjs/server/namespaces.js +28 -7
- package/dist/cjs/server/requesterAssertion.js +36 -30
- package/dist/cjs/server/serviceTokenLifetime.js +7 -4
- package/dist/cjs/server/traffic.js +53 -14
- package/dist/cjs/server/trafficNodeHttp.js +33 -8
- package/dist/cjs/server/workloadIdentity.client.js +4 -0
- package/dist/cjs/server/workloadIdentity.js +28 -1
- package/dist/cjs/session/SessionClient.js +54 -17
- package/dist/cjs/session/accountDelegationAccess.js +4 -6
- package/dist/cjs/session/accountDialogController.js +1 -1
- package/dist/cjs/session/authStateStore.js +18 -9
- package/dist/cjs/session/identityPin.js +6 -2
- package/dist/cjs/session/refresh.js +81 -23
- package/dist/cjs/session/sharedDeviceCredential.js +28 -15
- package/dist/cjs/shared/utils/errorUtils.js +1 -1
- package/dist/cjs/shared/utils/networkUtils.js +1 -1
- package/dist/cjs/shared/utils/themeUtils.js +1 -1
- package/dist/cjs/utils/accountCacheSweep.js +3 -1
- package/dist/cjs/utils/accountUtils.js +1 -3
- package/dist/cjs/utils/asyncUtils.js +1 -1
- package/dist/cjs/utils/authHelpers.js +2 -1
- package/dist/cjs/utils/avatarUtils.js +4 -2
- package/dist/cjs/utils/cache.js +1 -1
- package/dist/cjs/utils/cacheKey.js +3 -1
- package/dist/cjs/utils/deviceManager.js +4 -4
- package/dist/cjs/utils/errorUtils.js +6 -4
- package/dist/cjs/utils/languageUtils.js +404 -57
- package/dist/cjs/utils/profileLinks.js +1 -3
- package/dist/cjs/utils/requestUtils.js +7 -1
- package/dist/cjs/utils/userIdentity.js +1 -1
- package/dist/cjs/utils/validationUtils.js +5 -6
- package/dist/esm/HttpService.js +64 -20
- package/dist/esm/api/accounts.js +11 -4
- package/dist/esm/api/agency.js +3 -1
- package/dist/esm/api/apps.js +15 -4
- package/dist/esm/api/assets.js +49 -12
- package/dist/esm/api/auth.js +37 -11
- package/dist/esm/api/billing.js +25 -8
- package/dist/esm/api/civic.js +14 -4
- package/dist/esm/api/follows.js +9 -2
- package/dist/esm/api/identity.js +31 -9
- package/dist/esm/api/nodes.js +3 -1
- package/dist/esm/api/privacy.js +8 -2
- package/dist/esm/api/session.js +15 -4
- package/dist/esm/api/store.js +15 -5
- package/dist/esm/api/topics.js +10 -3
- package/dist/esm/api/users.js +16 -4
- package/dist/esm/boot/sessionColdBoot.js +41 -14
- package/dist/esm/constants/version.js +6 -6
- package/dist/esm/crypto/identityMarker.js +3 -1
- package/dist/esm/crypto/identityProof.js +6 -1
- package/dist/esm/crypto/internal.js +1 -1
- package/dist/esm/crypto/keyManager.js +87 -32
- package/dist/esm/crypto/recoveryPhrase.js +2 -2
- package/dist/esm/crypto/signatureService.js +3 -4
- package/dist/esm/i18n/index.js +16 -3
- package/dist/esm/i18n/locales/ar-SA.js +366 -366
- package/dist/esm/i18n/locales/ca-ES.js +366 -366
- package/dist/esm/i18n/locales/de-DE.js +366 -366
- package/dist/esm/i18n/locales/en-US.js +1994 -1994
- package/dist/esm/i18n/locales/es-ES.js +1994 -1994
- package/dist/esm/i18n/locales/fr-FR.js +366 -366
- package/dist/esm/i18n/locales/it-IT.js +366 -366
- package/dist/esm/i18n/locales/ja-JP.js +366 -366
- package/dist/esm/i18n/locales/ko-KR.js +366 -366
- package/dist/esm/i18n/locales/pt-PT.js +366 -366
- package/dist/esm/i18n/locales/zh-CN.js +366 -366
- package/dist/esm/index.js +1 -1
- package/dist/esm/inference/OxyInferenceClient.js +13 -19
- package/dist/esm/models/interfaces.js +11 -11
- package/dist/esm/server/OxyServer.js +87 -29
- package/dist/esm/server/agentAccount.js +6 -2
- package/dist/esm/server/aliaMachineCredential.js +39 -14
- package/dist/esm/server/auth.js +6 -5
- package/dist/esm/server/capabilityTicket.js +6 -6
- package/dist/esm/server/index.js +5 -5
- package/dist/esm/server/liveCapabilityTicket.js +6 -3
- package/dist/esm/server/middleware.js +62 -43
- package/dist/esm/server/namespaces.js +31 -10
- package/dist/esm/server/requesterAssertion.js +36 -30
- package/dist/esm/server/serviceTokenLifetime.js +7 -4
- package/dist/esm/server/traffic.js +55 -16
- package/dist/esm/server/trafficNodeHttp.js +34 -9
- package/dist/esm/server/userInvalidation.js +1 -1
- package/dist/esm/server/workloadIdentity.client.js +3 -0
- package/dist/esm/server/workloadIdentity.js +27 -1
- package/dist/esm/session/SessionClient.js +54 -17
- package/dist/esm/session/accountDelegationAccess.js +5 -7
- package/dist/esm/session/accountDialogController.js +1 -1
- package/dist/esm/session/authStateStore.js +18 -9
- package/dist/esm/session/identityPin.js +6 -2
- package/dist/esm/session/refresh.js +82 -24
- package/dist/esm/session/sharedDeviceCredential.js +28 -15
- package/dist/esm/shared/utils/errorUtils.js +1 -1
- package/dist/esm/shared/utils/networkUtils.js +1 -1
- package/dist/esm/shared/utils/themeUtils.js +1 -1
- package/dist/esm/utils/accountCacheSweep.js +3 -1
- package/dist/esm/utils/accountUtils.js +1 -3
- package/dist/esm/utils/asyncUtils.js +1 -1
- package/dist/esm/utils/authHelpers.js +2 -1
- package/dist/esm/utils/avatarUtils.js +4 -2
- package/dist/esm/utils/cache.js +1 -1
- package/dist/esm/utils/cacheKey.js +3 -1
- package/dist/esm/utils/deviceManager.js +4 -4
- package/dist/esm/utils/errorUtils.js +6 -4
- package/dist/esm/utils/languageUtils.js +404 -57
- package/dist/esm/utils/profileLinks.js +1 -3
- package/dist/esm/utils/requestUtils.js +7 -1
- package/dist/esm/utils/userIdentity.js +1 -1
- package/dist/esm/utils/validationUtils.js +5 -6
- package/dist/types/HttpService.d.ts +1 -1
- package/dist/types/api/accounts.d.ts +1 -1
- package/dist/types/api/apps.d.ts +4 -4
- package/dist/types/api/assets.d.ts +2 -0
- package/dist/types/api/auth.d.ts +8 -3
- package/dist/types/crypto/internal.d.ts +1 -1
- package/dist/types/index.d.ts +4 -4
- package/dist/types/server/index.d.ts +6 -6
- package/dist/types/server/requesterAssertion.d.ts +2 -2
- package/dist/types/server/workloadIdentity.client.d.ts +5 -1
- package/dist/types/server/workloadIdentity.d.ts +26 -0
- package/dist/types/session/accountDelegationAccess.d.ts +1 -1
- package/dist/types/session/index.d.ts +1 -1
- package/dist/types/utils/userIdentity.d.ts +1 -1
- package/dist/types/utils/validationUtils.d.ts +4 -5
- package/package.json +2 -3
- package/src/HttpService.ts +183 -53
- package/src/OxyServices.errors.ts +7 -3
- package/src/OxyServices.ts +6 -2
- package/src/api/accounts.ts +76 -26
- package/src/api/agency.ts +24 -9
- package/src/api/appData.ts +12 -2
- package/src/api/apps.ts +81 -31
- package/src/api/assets.ts +122 -40
- package/src/api/auth.ts +154 -79
- package/src/api/billing.ts +112 -65
- package/src/api/civic.ts +61 -19
- package/src/api/contacts.ts +4 -1
- package/src/api/devices.ts +54 -21
- package/src/api/follows.ts +88 -31
- package/src/api/identity.ts +101 -33
- package/src/api/linkedAccounts.ts +26 -8
- package/src/api/nodes.ts +18 -6
- package/src/api/notifications.ts +26 -6
- package/src/api/privacy.ts +42 -8
- package/src/api/reputation.ts +18 -7
- package/src/api/session.ts +23 -5
- package/src/api/store.ts +81 -31
- package/src/api/topics.ts +18 -6
- package/src/api/users.ts +98 -35
- package/src/boot/sessionColdBoot.ts +60 -19
- package/src/civic/payloads.ts +1 -4
- package/src/client/context.ts +6 -1
- package/src/constants/version.ts +7 -6
- package/src/crypto/aead.ts +1 -5
- package/src/crypto/ecdh.ts +1 -4
- package/src/crypto/identityDerivations.ts +5 -1
- package/src/crypto/identityMarker.ts +3 -1
- package/src/crypto/identityProof.ts +6 -1
- package/src/crypto/index.ts +11 -11
- package/src/crypto/internal.ts +6 -1
- package/src/crypto/keyManager.ts +348 -98
- package/src/crypto/recoveryPhrase.ts +14 -9
- package/src/crypto/registrationPow.ts +1 -1
- package/src/crypto/signatureService.ts +14 -6
- package/src/i18n/accountCategoryLabels.ts +1 -4
- package/src/i18n/accountRoleLabels.ts +1 -4
- package/src/i18n/index.ts +25 -7
- package/src/i18n/locales/ar-SA.ts +375 -366
- package/src/i18n/locales/ca-ES.ts +382 -366
- package/src/i18n/locales/de-DE.ts +387 -366
- package/src/i18n/locales/en-US.ts +2034 -1994
- package/src/i18n/locales/es-ES.ts +2043 -1994
- package/src/i18n/locales/fr-FR.ts +387 -366
- package/src/i18n/locales/it-IT.ts +380 -366
- package/src/i18n/locales/ja-JP.ts +380 -366
- package/src/i18n/locales/ko-KR.ts +377 -366
- package/src/i18n/locales/pt-PT.ts +383 -366
- package/src/i18n/locales/zh-CN.ts +373 -366
- package/src/i18n/trustTierLabels.ts +1 -4
- package/src/index.ts +371 -349
- package/src/inference/OxyInferenceClient.ts +784 -780
- package/src/models/interfaces.ts +30 -27
- package/src/server/OxyServer.ts +227 -68
- package/src/server/agentAccount.ts +8 -2
- package/src/server/aliaMachineCredential.ts +57 -16
- package/src/server/auth.ts +9 -5
- package/src/server/capabilityTicket.ts +30 -21
- package/src/server/index.ts +29 -6
- package/src/server/liveCapabilityTicket.ts +31 -9
- package/src/server/middleware.ts +212 -121
- package/src/server/namespaces.ts +247 -94
- package/src/server/rateLimit.ts +2 -4
- package/src/server/requesterAssertion.ts +93 -54
- package/src/server/serviceTokenLifetime.ts +9 -4
- package/src/server/traffic.ts +117 -23
- package/src/server/trafficNodeHttp.ts +61 -14
- package/src/server/userInvalidation.ts +1 -4
- package/src/server/workloadIdentity.client.ts +12 -1
- package/src/server/workloadIdentity.ts +52 -5
- package/src/session/SessionClient.ts +170 -49
- package/src/session/accountDelegationAccess.ts +24 -31
- package/src/session/accountDialogController.ts +59 -14
- package/src/session/accountSwitchTargets.ts +10 -15
- package/src/session/authStateStore.ts +121 -81
- package/src/session/deviceDirectory.ts +1 -3
- package/src/session/identityPin.ts +10 -11
- package/src/session/identitySession.ts +3 -1
- package/src/session/index.ts +87 -82
- package/src/session/refresh.ts +138 -44
- package/src/session/sessionClientHost.ts +1 -3
- package/src/session/sharedDeviceCredential.ts +35 -14
- package/src/session/socketLoader.ts +9 -2
- package/src/shared/utils/errorUtils.ts +5 -2
- package/src/shared/utils/networkUtils.ts +5 -8
- package/src/shared/utils/themeUtils.ts +2 -6
- package/src/types/buffer.d.ts +66 -21
- package/src/types/expo-secure-store.d.ts +5 -1
- package/src/utils/accountCacheSweep.ts +4 -5
- package/src/utils/accountUtils.ts +107 -108
- package/src/utils/apiUtils.ts +3 -3
- package/src/utils/asyncUtils.ts +2 -2
- package/src/utils/authHelpers.ts +10 -5
- package/src/utils/avatarUtils.ts +11 -6
- package/src/utils/cache.ts +9 -10
- package/src/utils/cacheKey.ts +5 -1
- package/src/utils/coldBoot.ts +1 -3
- package/src/utils/commonsDelivery.ts +1 -4
- package/src/utils/deviceManager.ts +15 -14
- package/src/utils/errorUtils.ts +68 -86
- package/src/utils/languageUtils.ts +407 -58
- package/src/utils/oauthPkce.ts +1 -4
- package/src/utils/platform.ts +0 -1
- package/src/utils/profileLinks.ts +2 -5
- package/src/utils/requestUtils.ts +18 -14
- package/src/utils/sessionUtils.ts +34 -33
- package/src/utils/userHandle.ts +3 -1
- package/src/utils/userIdentity.ts +1 -1
- package/src/utils/validationUtils.ts +11 -9
package/src/index.ts
CHANGED
|
@@ -40,173 +40,192 @@ export {
|
|
|
40
40
|
ServiceAssetMetadataError,
|
|
41
41
|
} from './OxyServices.errors';
|
|
42
42
|
export type { HttpMethod } from './client/context';
|
|
43
|
-
export type {
|
|
43
|
+
export type {
|
|
44
|
+
RequestOptions,
|
|
45
|
+
ResponseRequest,
|
|
46
|
+
ResponseTransport,
|
|
47
|
+
AuthenticatedResponseRequest,
|
|
48
|
+
AuthRefreshReason,
|
|
49
|
+
AuthRefreshHandler,
|
|
50
|
+
} from './HttpService';
|
|
44
51
|
|
|
45
52
|
// The namespaces — their classes (for typing) and their input/output types.
|
|
46
53
|
export type { SessionApi, DeviceCredentialProvider, SessionValidation } from './api/session';
|
|
47
54
|
export type {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
55
|
+
AuthApi,
|
|
56
|
+
ChallengeResponse,
|
|
57
|
+
RegistrationRequest,
|
|
58
|
+
ChallengeVerifyRequest,
|
|
59
|
+
PublicKeyCheckResponse,
|
|
60
|
+
OAuthUserInfoResponse,
|
|
61
|
+
OAuthTokenExchangeResult,
|
|
62
|
+
CommonsSignInHandle,
|
|
63
|
+
CommonsSignInStatus,
|
|
64
|
+
CommonsSignInPurpose,
|
|
65
|
+
CommonsOAuthContext,
|
|
66
|
+
CommonsApprovalInfo,
|
|
67
|
+
CommonsApprovalSubjectAccount,
|
|
68
|
+
CommonsSignInActionResult,
|
|
69
|
+
CommonsOAuthFinalizeResult,
|
|
70
|
+
CommonsDeliveryResult,
|
|
71
|
+
SignInDeviceOptions,
|
|
72
|
+
ClaimedSession,
|
|
66
73
|
} from './api/auth';
|
|
67
74
|
export type { UsersApi, ResolveExternalUserInput, DeleteAccountProof } from './api/users';
|
|
68
75
|
export type {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
FollowsApi,
|
|
77
|
+
FollowMutationResult,
|
|
78
|
+
BulkFollowEntry,
|
|
79
|
+
BulkFollowResult,
|
|
80
|
+
BulkUnfollowEntry,
|
|
81
|
+
BulkUnfollowResult,
|
|
82
|
+
ViewerGraph,
|
|
83
|
+
EnsureFollowTargetInput,
|
|
84
|
+
RegisterFollowKindInput,
|
|
78
85
|
} from './api/follows';
|
|
79
86
|
export type { PrivacyApi } from './api/privacy';
|
|
80
|
-
export type {
|
|
87
|
+
export type {
|
|
88
|
+
NotificationsApi,
|
|
89
|
+
PushTokenPlatform,
|
|
90
|
+
RegisterPushTokenInput,
|
|
91
|
+
} from './api/notifications';
|
|
81
92
|
export { assetUrlCacheTTL } from './api/assets';
|
|
82
93
|
export type {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
94
|
+
AssetsApi,
|
|
95
|
+
AssetRecord,
|
|
96
|
+
UploadedAsset,
|
|
97
|
+
AssetLinkState,
|
|
98
|
+
AssetUploadOptions,
|
|
99
|
+
AssetLinkTarget,
|
|
100
|
+
AssetDeleteResult,
|
|
90
101
|
} from './api/assets';
|
|
91
102
|
export { buildUserDid } from './api/identity';
|
|
92
103
|
export type {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
104
|
+
IdentityApi,
|
|
105
|
+
VerifyDomainResult,
|
|
106
|
+
RemoveDomainResult,
|
|
107
|
+
RotateKeyProof,
|
|
108
|
+
RotateKeyOptions,
|
|
109
|
+
RotateKeyResult,
|
|
99
110
|
} from './api/identity';
|
|
100
111
|
export {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
112
|
+
ACCOUNT_CATEGORY_IDS,
|
|
113
|
+
MAX_ACCOUNT_CATEGORIES,
|
|
114
|
+
SELECTABLE_ACCOUNT_CATEGORY_IDS,
|
|
115
|
+
isSelectableAccountCategoryId,
|
|
116
|
+
kindAcceptsAccountCategories,
|
|
106
117
|
} from './api/accounts';
|
|
107
118
|
export type {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
119
|
+
AccountsApi,
|
|
120
|
+
AccountKind,
|
|
121
|
+
AccountCategoryId,
|
|
122
|
+
AccountRelationship,
|
|
123
|
+
AccountRole,
|
|
124
|
+
AccountMemberStatus,
|
|
125
|
+
AccountMemberSource,
|
|
126
|
+
AccountMember,
|
|
127
|
+
AccountNode,
|
|
128
|
+
ListAccountsOptions,
|
|
129
|
+
CreateAccountInput,
|
|
130
|
+
UpdateAccountInput,
|
|
131
|
+
InviteAccountMemberInput,
|
|
132
|
+
UpdateAccountMemberInput,
|
|
133
|
+
TransferAccountOwnershipInput,
|
|
134
|
+
AccountSuccessResult,
|
|
135
|
+
SwitchAccountResult,
|
|
125
136
|
} from './api/accounts';
|
|
126
137
|
export type {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
138
|
+
AppsApi,
|
|
139
|
+
Application,
|
|
140
|
+
ApplicationType,
|
|
141
|
+
ApplicationStatus,
|
|
142
|
+
ApplicationCredential,
|
|
143
|
+
ApplicationCredentialType,
|
|
144
|
+
ApplicationCredentialStatus,
|
|
145
|
+
ApplicationEnvironment,
|
|
146
|
+
CreateApplicationInput,
|
|
147
|
+
UpdateApplicationInput,
|
|
148
|
+
CreateApplicationCredentialInput,
|
|
149
|
+
RotateApplicationCredentialInput,
|
|
150
|
+
ApplicationCredentialWithSecret,
|
|
151
|
+
RotateApplicationCredentialResult,
|
|
152
|
+
ApplicationUsagePeriod,
|
|
153
|
+
ApplicationUsageSummary,
|
|
154
|
+
ApplicationUsageByDay,
|
|
155
|
+
ApplicationUsageByEndpoint,
|
|
156
|
+
ApplicationUsageStats,
|
|
157
|
+
PublicApplication,
|
|
158
|
+
ConnectedApp,
|
|
159
|
+
ConnectedMcpClient,
|
|
149
160
|
} from './api/apps';
|
|
150
161
|
export type { LinkedAccountsApi } from './api/linkedAccounts';
|
|
151
162
|
export type {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
+
AgencyApi,
|
|
164
|
+
AccountCapabilityPolicy,
|
|
165
|
+
AvailableCapabilityCatalog,
|
|
166
|
+
CapabilityExecutionAuthorization,
|
|
167
|
+
CreateDelegationGrantInput,
|
|
168
|
+
DelegationCatalogBinding,
|
|
169
|
+
DelegationGrantView,
|
|
170
|
+
PutAccountCapabilityPolicyInput,
|
|
171
|
+
RequesterAssertionGrant,
|
|
172
|
+
RequesterAssertionIntrospection,
|
|
173
|
+
UpdateDelegationGrantInput,
|
|
163
174
|
} from './api/agency';
|
|
164
175
|
export type {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
176
|
+
StoreApi,
|
|
177
|
+
StoreCategory,
|
|
178
|
+
StoreRating,
|
|
179
|
+
StoreListingSummary,
|
|
180
|
+
StoreListingDetail,
|
|
181
|
+
StoreScreenshot,
|
|
182
|
+
StoreScreenshotPlatform,
|
|
183
|
+
StoreReview,
|
|
184
|
+
StoreOwnReview,
|
|
185
|
+
WriteStoreReviewInput,
|
|
186
|
+
StoreListingStatus,
|
|
187
|
+
PublisherListing,
|
|
188
|
+
WriteListingInput,
|
|
189
|
+
AddScreenshotInput,
|
|
190
|
+
UpdateScreenshotInput,
|
|
191
|
+
StorePage,
|
|
192
|
+
StorePageOptions,
|
|
193
|
+
StoreReviewsOptions,
|
|
183
194
|
} from './api/store';
|
|
184
195
|
export type {
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
+
BillingApi,
|
|
197
|
+
SubscriptionPlan,
|
|
198
|
+
SubscriptionStatus,
|
|
199
|
+
SubscriptionFeatures,
|
|
200
|
+
Subscription,
|
|
201
|
+
Payment,
|
|
202
|
+
WalletTransactionType,
|
|
203
|
+
WalletTransactionStatus,
|
|
204
|
+
WalletTransaction,
|
|
205
|
+
WalletPagination,
|
|
206
|
+
WalletTransactionsPage,
|
|
196
207
|
} from './api/billing';
|
|
197
208
|
export { REPUTATION_CACHE_PREFIX } from './api/reputation';
|
|
198
209
|
export type { ReputationApi, ReputationPage } from './api/reputation';
|
|
199
210
|
export type {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
211
|
+
CivicApi,
|
|
212
|
+
CivicCardResult,
|
|
213
|
+
SubmitRealLifeAttestationInput,
|
|
214
|
+
DenyValidationResult,
|
|
215
|
+
VouchForPersonInput,
|
|
216
|
+
WithdrawVouchResult,
|
|
217
|
+
IssueCredentialInput,
|
|
218
|
+
RevokeCredentialResult,
|
|
208
219
|
} from './api/civic';
|
|
209
|
-
export type {
|
|
220
|
+
export type {
|
|
221
|
+
NodesApi,
|
|
222
|
+
UserNodeStatus,
|
|
223
|
+
UserNodeMode,
|
|
224
|
+
UserNodeController,
|
|
225
|
+
UserNodeLivenessStatus,
|
|
226
|
+
RegisterNodeInput,
|
|
227
|
+
RemoveNodeResult,
|
|
228
|
+
} from './api/nodes';
|
|
210
229
|
export { AccountNotOnDeviceError } from './api/devices';
|
|
211
230
|
export type { DevicesApi, UserDevice, SecurityInfo } from './api/devices';
|
|
212
231
|
export type { TopicsApi, TopicListOptions } from './api/topics';
|
|
@@ -223,24 +242,28 @@ export {
|
|
|
223
242
|
} from './utils/commonsApproval';
|
|
224
243
|
// Automatic "Sign in with Oxy" delivery selection — ONE pure decision that maps
|
|
225
244
|
// the caller's facts onto exactly one primary route (open Commons / await push / QR).
|
|
226
|
-
export {
|
|
245
|
+
export {
|
|
246
|
+
selectCommonsDelivery,
|
|
247
|
+
pushTargetsFromDelivery,
|
|
248
|
+
commonsDeliveryPlatform,
|
|
249
|
+
} from './utils/commonsDelivery';
|
|
227
250
|
export type {
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
251
|
+
CommonsDeliveryFacts,
|
|
252
|
+
CommonsDeliveryPlatform,
|
|
253
|
+
CommonsDeliveryRoute,
|
|
231
254
|
} from './utils/commonsDelivery';
|
|
232
255
|
|
|
233
256
|
// ---------------------------------------------------------------------------
|
|
234
257
|
// User identity and handles
|
|
235
258
|
// ---------------------------------------------------------------------------
|
|
236
259
|
export {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
260
|
+
getNormalizedUserId,
|
|
261
|
+
normalizeUserIdentity,
|
|
262
|
+
normalizeUserIdentityOrNull,
|
|
240
263
|
} from './utils/userIdentity';
|
|
241
264
|
export {
|
|
242
|
-
|
|
243
|
-
|
|
265
|
+
getCanonicalUserHandle,
|
|
266
|
+
getNormalizedUserHandle,
|
|
244
267
|
} from './utils/userHandle';
|
|
245
268
|
export type { CanonicalUserHandleInput, UserHandleInput } from './utils/userHandle';
|
|
246
269
|
export { normalizeProfileLinks } from './utils/profileLinks';
|
|
@@ -250,12 +273,12 @@ export type { ProfileLink, ProfileLinkMetadata } from './utils/profileLinks';
|
|
|
250
273
|
// Auth helpers (token refresh, error normalisation, retry policies)
|
|
251
274
|
// ---------------------------------------------------------------------------
|
|
252
275
|
export {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
276
|
+
SessionSyncRequiredError,
|
|
277
|
+
AuthenticationFailedError,
|
|
278
|
+
ensureValidToken,
|
|
279
|
+
isAuthenticationError,
|
|
280
|
+
withAuthErrorHandling,
|
|
281
|
+
authenticatedApiCall,
|
|
259
282
|
} from './utils/authHelpers';
|
|
260
283
|
export type { HandleApiErrorOptions } from './utils/authHelpers';
|
|
261
284
|
|
|
@@ -263,82 +286,82 @@ export type { HandleApiErrorOptions } from './utils/authHelpers';
|
|
|
263
286
|
// Sessions
|
|
264
287
|
// ---------------------------------------------------------------------------
|
|
265
288
|
export {
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
289
|
+
mergeSessions,
|
|
290
|
+
normalizeAndSortSessions,
|
|
291
|
+
sessionsArraysEqual,
|
|
269
292
|
} from './utils/sessionUtils';
|
|
270
293
|
export type {
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
294
|
+
ClientSession,
|
|
295
|
+
StorageKeys,
|
|
296
|
+
MinimalUserData,
|
|
297
|
+
SessionLoginResponse,
|
|
275
298
|
} from './models/session';
|
|
276
299
|
|
|
277
300
|
// ---------------------------------------------------------------------------
|
|
278
301
|
// Domain models / wire types
|
|
279
302
|
// ---------------------------------------------------------------------------
|
|
280
303
|
export type {
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
304
|
+
PrivacySettings,
|
|
305
|
+
NotificationPreferences,
|
|
306
|
+
UserPreferences,
|
|
307
|
+
User,
|
|
308
|
+
LoginResponse,
|
|
309
|
+
Notification,
|
|
310
|
+
NotificationActor,
|
|
311
|
+
NotificationPage,
|
|
312
|
+
Wallet,
|
|
313
|
+
Transaction,
|
|
314
|
+
BlockedUser,
|
|
315
|
+
RestrictedUser,
|
|
316
|
+
TransferFundsRequest,
|
|
317
|
+
PurchaseRequest,
|
|
318
|
+
WithdrawalRequest,
|
|
319
|
+
TransactionResponse,
|
|
320
|
+
PaginationInfo,
|
|
321
|
+
SearchProfilesResponse,
|
|
322
|
+
ApiError,
|
|
323
|
+
PaymentMethod,
|
|
324
|
+
PaymentRequest,
|
|
325
|
+
PaymentResponse,
|
|
326
|
+
AnalyticsData,
|
|
327
|
+
FollowerDetails,
|
|
328
|
+
ContentViewer,
|
|
329
|
+
FileMetadata,
|
|
330
|
+
FileUploadResponse,
|
|
331
|
+
FileListResponse,
|
|
332
|
+
FileUpdateRequest,
|
|
333
|
+
FileDeleteResponse,
|
|
334
|
+
RNFileDescriptor,
|
|
335
|
+
AssetUploadInput,
|
|
336
|
+
FileVisibility,
|
|
337
|
+
AssetLink,
|
|
338
|
+
AssetMetadata,
|
|
339
|
+
AssetVariant,
|
|
340
|
+
Asset,
|
|
341
|
+
AssetInitRequest,
|
|
342
|
+
AssetInitResponse,
|
|
343
|
+
AssetCompleteRequest,
|
|
344
|
+
AssetLinkRequest,
|
|
345
|
+
AssetUnlinkRequest,
|
|
346
|
+
AssetUrlResponse,
|
|
347
|
+
BatchFileAccessEntry,
|
|
348
|
+
BatchFileAccessResponse,
|
|
349
|
+
AssetDeleteSummary,
|
|
350
|
+
AssetUpdateVisibilityRequest,
|
|
351
|
+
AssetUpdateVisibilityResponse,
|
|
352
|
+
ServiceAssetMetadata,
|
|
353
|
+
ServiceAssetMetadataBySha,
|
|
354
|
+
AccountStorageCategoryUsage,
|
|
355
|
+
AccountStorageUsageResponse,
|
|
356
|
+
SecurityEventType,
|
|
357
|
+
SecurityEventSeverity,
|
|
358
|
+
SecurityActivity,
|
|
359
|
+
SecurityActivityResponse,
|
|
360
|
+
AssetUploadProgress,
|
|
361
|
+
DeviceLinkedSession,
|
|
362
|
+
DeviceLinkedSessionsResponse,
|
|
363
|
+
DeviceLinkedSessionLogoutResponse,
|
|
364
|
+
UpdateDeviceNameResponse,
|
|
342
365
|
} from './models/interfaces';
|
|
343
366
|
export { SECURITY_EVENT_SEVERITY_MAP } from './models/interfaces';
|
|
344
367
|
|
|
@@ -350,18 +373,18 @@ export type { TopicData, TopicTranslation, TopicListResult } from './models/Topi
|
|
|
350
373
|
// Languages
|
|
351
374
|
// ---------------------------------------------------------------------------
|
|
352
375
|
export {
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
376
|
+
SUPPORTED_LANGUAGES,
|
|
377
|
+
FALLBACK_LOCALE,
|
|
378
|
+
getBaseLanguage,
|
|
379
|
+
normalizeLocale,
|
|
380
|
+
isSupportedLocale,
|
|
381
|
+
getLanguageMetadata,
|
|
382
|
+
getLanguageName,
|
|
383
|
+
getNativeLanguageName,
|
|
384
|
+
isRTLLocale,
|
|
385
|
+
getUserLanguages,
|
|
386
|
+
getPrimaryLanguage,
|
|
387
|
+
coerceToSupportedLocale,
|
|
365
388
|
} from './utils/languageUtils';
|
|
366
389
|
export type { SupportedLanguage } from './utils/languageUtils';
|
|
367
390
|
|
|
@@ -369,13 +392,13 @@ export type { SupportedLanguage } from './utils/languageUtils';
|
|
|
369
392
|
// Platform detection
|
|
370
393
|
// ---------------------------------------------------------------------------
|
|
371
394
|
export {
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
395
|
+
getPlatformOS,
|
|
396
|
+
setPlatformOS,
|
|
397
|
+
isWeb,
|
|
398
|
+
isNative,
|
|
399
|
+
isIOS,
|
|
400
|
+
isAndroid,
|
|
401
|
+
isWebBrowser,
|
|
379
402
|
} from './utils/platform';
|
|
380
403
|
export type { PlatformOS } from './utils/platform';
|
|
381
404
|
|
|
@@ -383,21 +406,21 @@ export type { PlatformOS } from './utils/platform';
|
|
|
383
406
|
// Colour / theme utilities
|
|
384
407
|
// ---------------------------------------------------------------------------
|
|
385
408
|
export {
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
409
|
+
darkenColor,
|
|
410
|
+
lightenColor,
|
|
411
|
+
hexToRgb,
|
|
412
|
+
rgbToHex,
|
|
413
|
+
withOpacity,
|
|
414
|
+
isLightColor,
|
|
415
|
+
getContrastTextColor,
|
|
393
416
|
} from './shared/utils/colorUtils';
|
|
394
417
|
|
|
395
418
|
export {
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
419
|
+
normalizeTheme,
|
|
420
|
+
normalizeColorScheme,
|
|
421
|
+
getOppositeTheme,
|
|
422
|
+
systemPrefersDarkMode,
|
|
423
|
+
getSystemColorScheme,
|
|
401
424
|
} from './shared/utils/themeUtils';
|
|
402
425
|
export type { ThemeValue } from './shared/utils/themeUtils';
|
|
403
426
|
|
|
@@ -405,28 +428,28 @@ export type { ThemeValue } from './shared/utils/themeUtils';
|
|
|
405
428
|
// HTTP / error / network helpers
|
|
406
429
|
// ---------------------------------------------------------------------------
|
|
407
430
|
export {
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
431
|
+
HttpStatus,
|
|
432
|
+
getErrorStatus,
|
|
433
|
+
getErrorMessage,
|
|
434
|
+
isAlreadyRegisteredError,
|
|
435
|
+
isUnauthorizedError,
|
|
436
|
+
isForbiddenError,
|
|
437
|
+
isNotFoundError,
|
|
438
|
+
isRateLimitError,
|
|
439
|
+
isServerError,
|
|
440
|
+
isNetworkError,
|
|
441
|
+
isRetryableError,
|
|
419
442
|
} from './shared/utils/errorUtils';
|
|
420
443
|
|
|
421
444
|
export {
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
445
|
+
DEFAULT_CIRCUIT_BREAKER_CONFIG,
|
|
446
|
+
createCircuitBreakerState,
|
|
447
|
+
calculateBackoffInterval,
|
|
448
|
+
recordFailure,
|
|
449
|
+
recordSuccess,
|
|
450
|
+
shouldAllowRequest,
|
|
451
|
+
delay,
|
|
452
|
+
withRetry,
|
|
430
453
|
} from './shared/utils/networkUtils';
|
|
431
454
|
export type { CircuitBreakerState, CircuitBreakerConfig } from './shared/utils/networkUtils';
|
|
432
455
|
|
|
@@ -443,27 +466,27 @@ export { trustTierLabel } from './i18n/trustTierLabels';
|
|
|
443
466
|
// API request / URL helpers
|
|
444
467
|
// ---------------------------------------------------------------------------
|
|
445
468
|
export {
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
469
|
+
buildQueryParams,
|
|
470
|
+
buildSearchParams,
|
|
471
|
+
buildUrl,
|
|
472
|
+
buildPaginationParams,
|
|
473
|
+
safeJsonParse,
|
|
451
474
|
} from './utils/apiUtils';
|
|
452
475
|
export type {
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
476
|
+
PaginationParams,
|
|
477
|
+
FollowGraphParams,
|
|
478
|
+
FollowGraphSort,
|
|
479
|
+
ApiResponse,
|
|
480
|
+
ErrorResponse,
|
|
458
481
|
} from './utils/apiUtils';
|
|
459
482
|
|
|
460
483
|
export {
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
484
|
+
ErrorCodes,
|
|
485
|
+
createApiError,
|
|
486
|
+
handleHttpError,
|
|
487
|
+
isHttpRequestError,
|
|
488
|
+
parseHttpErrorBody,
|
|
489
|
+
validateRequiredFields,
|
|
467
490
|
} from './utils/errorUtils';
|
|
468
491
|
export type { HttpRequestError, ParsedHttpErrorBody } from './utils/errorUtils';
|
|
469
492
|
|
|
@@ -473,61 +496,61 @@ export { retryAsync } from './utils/asyncUtils';
|
|
|
473
496
|
// Validation
|
|
474
497
|
// ---------------------------------------------------------------------------
|
|
475
498
|
export {
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
499
|
+
EMAIL_REGEX,
|
|
500
|
+
PASSWORD_REGEX,
|
|
501
|
+
MAX_DISPLAY_NAME_LENGTH,
|
|
502
|
+
DISPLAY_NAME_INVALID_MESSAGE,
|
|
503
|
+
isValidEmail,
|
|
504
|
+
isValidPassword,
|
|
505
|
+
isValidDisplayName,
|
|
506
|
+
DISPLAY_NAME_ALLOWED_SCRIPTS,
|
|
507
|
+
DISPLAY_NAME_DISALLOWED_SOURCE,
|
|
508
|
+
DISPLAY_NAME_ORPHANED_MARK_SOURCE,
|
|
509
|
+
DISPLAY_NAME_UNFLANKED_SEPARATOR_SOURCE,
|
|
510
|
+
isRequiredString,
|
|
511
|
+
isRequiredNumber,
|
|
512
|
+
isRequiredBoolean,
|
|
513
|
+
isValidArray,
|
|
514
|
+
isValidObject,
|
|
515
|
+
isValidUUID,
|
|
516
|
+
isValidURL,
|
|
517
|
+
isValidDate,
|
|
518
|
+
isValidFileSize,
|
|
519
|
+
isValidFileType,
|
|
520
|
+
sanitizeString,
|
|
521
|
+
sanitizeHTML,
|
|
522
|
+
isValidObjectId,
|
|
523
|
+
validateAndSanitizeUserInput,
|
|
501
524
|
} from './utils/validationUtils';
|
|
502
525
|
|
|
503
526
|
// ---------------------------------------------------------------------------
|
|
504
527
|
// Text normalization
|
|
505
528
|
// ---------------------------------------------------------------------------
|
|
506
529
|
export {
|
|
507
|
-
|
|
508
|
-
|
|
530
|
+
normalizeInlineText,
|
|
531
|
+
normalizeMultilineText,
|
|
509
532
|
} from './utils/textNormalization';
|
|
510
533
|
|
|
511
534
|
// ---------------------------------------------------------------------------
|
|
512
535
|
// Logging — the ecosystem-wide chokepoint (also at subpath `@oxy.so/core/logger`)
|
|
513
536
|
// ---------------------------------------------------------------------------
|
|
514
537
|
export {
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
538
|
+
logger,
|
|
539
|
+
createLogger,
|
|
540
|
+
configureLogger,
|
|
541
|
+
getLoggerConfig,
|
|
542
|
+
resetLoggerConfig,
|
|
543
|
+
consoleSink,
|
|
544
|
+
isDev,
|
|
522
545
|
} from './logger';
|
|
523
546
|
export type {
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
547
|
+
Logger,
|
|
548
|
+
LogLevel,
|
|
549
|
+
EmittableLogLevel,
|
|
550
|
+
LogContext,
|
|
551
|
+
LogEntry,
|
|
552
|
+
LogSink,
|
|
553
|
+
LoggerConfig,
|
|
531
554
|
} from './logger';
|
|
532
555
|
|
|
533
556
|
// ---------------------------------------------------------------------------
|
|
@@ -539,12 +562,12 @@ export { updateAvatarVisibility } from './utils/avatarUtils';
|
|
|
539
562
|
// Accounts
|
|
540
563
|
// ---------------------------------------------------------------------------
|
|
541
564
|
export {
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
565
|
+
buildAccountsArray,
|
|
566
|
+
createQuickAccount,
|
|
567
|
+
getAccountDisplayName,
|
|
568
|
+
getAccountFallbackHandle,
|
|
569
|
+
formatPublicKeyHandle,
|
|
570
|
+
getAccountColor,
|
|
548
571
|
} from './utils/accountUtils';
|
|
549
572
|
export type { QuickAccount, DisplayNameUserShape } from './utils/accountUtils';
|
|
550
573
|
|
|
@@ -553,29 +576,28 @@ export type { QuickAccount, DisplayNameUserShape } from './utils/accountUtils';
|
|
|
553
576
|
// (which ship the public-suffix list) are in `@oxy.so/core/server`.
|
|
554
577
|
export { AUTH_WEB_ORIGIN, CENTRAL_IDP_APEX } from './utils/authWebUrl';
|
|
555
578
|
|
|
556
|
-
|
|
557
579
|
// ---------------------------------------------------------------------------
|
|
558
580
|
// OAuth 2.0 Authorization Code + PKCE helpers ("Sign in with Oxy" third party).
|
|
559
581
|
// Standard OAuth against auth.oxy.so/authorize — no FedCM/cookies/SSO bounce.
|
|
560
582
|
// ---------------------------------------------------------------------------
|
|
561
583
|
export {
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
584
|
+
buildOAuthAuthorizeUrl,
|
|
585
|
+
computeCodeChallenge,
|
|
586
|
+
generateOAuthState,
|
|
587
|
+
generatePkcePair,
|
|
588
|
+
DEFAULT_OAUTH_SCOPE,
|
|
589
|
+
OXY_AUTHORIZE_URL,
|
|
590
|
+
OXY_OAUTH_STATE_STORAGE_KEY,
|
|
591
|
+
OXY_OAUTH_CODE_VERIFIER_STORAGE_KEY,
|
|
592
|
+
OXY_OAUTH_REDIRECT_URI_STORAGE_KEY,
|
|
593
|
+
OXY_OAUTH_RETURN_PATH_STORAGE_KEY,
|
|
594
|
+
normalizeOAuthRedirectUri,
|
|
595
|
+
canonicalizeOAuthRedirectUri,
|
|
596
|
+
persistOAuthHandshake,
|
|
597
|
+
readOAuthHandshake,
|
|
598
|
+
clearOAuthHandshake,
|
|
599
|
+
persistOAuthReturnPath,
|
|
600
|
+
consumeOAuthReturnPath,
|
|
579
601
|
} from './utils/oauthPkce';
|
|
580
602
|
export type { PkcePair, BuildOAuthAuthorizeUrlParams, OxyAuthScreen } from './utils/oauthPkce';
|
|
581
603
|
|