@hexclave/shared 1.0.26 → 1.0.28

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.
Files changed (43) hide show
  1. package/dist/config/schema.d.ts +154 -154
  2. package/dist/esm/config/schema.d.ts +154 -154
  3. package/dist/esm/hooks/use-async-callback.js +1 -1
  4. package/dist/esm/hooks/use-async-external-store.js +1 -1
  5. package/dist/esm/hooks/use-strict-memo.js +1 -1
  6. package/dist/esm/interface/admin-interface.js +1 -1
  7. package/dist/esm/interface/admin-metrics.d.ts +3 -3
  8. package/dist/esm/interface/client-interface.js +1 -1
  9. package/dist/esm/interface/conversations.d.ts +5 -5
  10. package/dist/esm/interface/crud/current-user.d.ts +7 -7
  11. package/dist/esm/interface/crud/email-outbox.d.ts +184 -184
  12. package/dist/esm/interface/crud/project-api-keys.d.ts +2 -2
  13. package/dist/esm/interface/crud/projects.d.ts +43 -43
  14. package/dist/esm/interface/crud/team-member-profiles.d.ts +12 -12
  15. package/dist/esm/interface/crud/users.d.ts +10 -10
  16. package/dist/esm/interface/server-interface.js +1 -1
  17. package/dist/esm/interface/webhooks.d.ts +2 -2
  18. package/dist/esm/sessions.d.ts +1 -1
  19. package/dist/esm/utils/passkey.d.ts +1 -1
  20. package/dist/esm/utils/promises.js +1 -1
  21. package/dist/hooks/use-async-callback.js +1 -1
  22. package/dist/hooks/use-async-external-store.js +1 -1
  23. package/dist/hooks/use-strict-memo.js +1 -1
  24. package/dist/interface/admin-interface.js +1 -1
  25. package/dist/interface/admin-metrics.d.ts +3 -3
  26. package/dist/interface/client-interface.d.ts +1 -1
  27. package/dist/interface/client-interface.js +1 -1
  28. package/dist/interface/conversations.d.ts +5 -5
  29. package/dist/interface/crud/current-user.d.ts +7 -7
  30. package/dist/interface/crud/email-outbox.d.ts +184 -184
  31. package/dist/interface/crud/project-api-keys.d.ts +2 -2
  32. package/dist/interface/crud/projects.d.ts +43 -43
  33. package/dist/interface/crud/team-member-profiles.d.ts +12 -12
  34. package/dist/interface/crud/users.d.ts +10 -10
  35. package/dist/interface/server-interface.js +1 -1
  36. package/dist/interface/webhooks.d.ts +2 -2
  37. package/dist/sessions.d.ts +1 -1
  38. package/dist/utils/passkey.d.ts +1 -1
  39. package/dist/utils/promises.js +1 -1
  40. package/package.json +3 -7
  41. package/src/utils/passkey.tsx +1 -1
  42. package/dist/index-nCRuFJTF.d.ts +0 -153
  43. package/dist/index-nCRuFJTF.d.ts.map +0 -1
@@ -1,153 +0,0 @@
1
- //#region ../../node_modules/.pnpm/@simplewebauthn+types@11.0.0/node_modules/@simplewebauthn/types/types/dom.d.ts
2
- interface AuthenticationExtensionsClientInputs {
3
- appid?: string;
4
- credProps?: boolean;
5
- hmacCreateSecret?: boolean;
6
- }
7
- interface AuthenticationExtensionsClientOutputs {
8
- appid?: boolean;
9
- credProps?: CredentialPropertiesOutput;
10
- hmacCreateSecret?: boolean;
11
- }
12
- interface AuthenticatorSelectionCriteria {
13
- authenticatorAttachment?: AuthenticatorAttachment;
14
- requireResidentKey?: boolean;
15
- residentKey?: ResidentKeyRequirement;
16
- userVerification?: UserVerificationRequirement;
17
- }
18
- interface PublicKeyCredentialParameters {
19
- alg: COSEAlgorithmIdentifier;
20
- type: PublicKeyCredentialType;
21
- }
22
- interface CredentialPropertiesOutput {
23
- rk?: boolean;
24
- }
25
- interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {
26
- id?: string;
27
- }
28
- interface PublicKeyCredentialEntity {
29
- name: string;
30
- }
31
- type AttestationConveyancePreference = "direct" | "enterprise" | "indirect" | "none";
32
- type COSEAlgorithmIdentifier = number;
33
- type UserVerificationRequirement = "discouraged" | "preferred" | "required";
34
- type AuthenticatorAttachment = "cross-platform" | "platform";
35
- type ResidentKeyRequirement = "discouraged" | "preferred" | "required";
36
- type PublicKeyCredentialType = "public-key";
37
- //#endregion
38
- //#region ../../node_modules/.pnpm/@simplewebauthn+types@11.0.0/node_modules/@simplewebauthn/types/types/index.d.ts
39
- /**
40
- * A variant of PublicKeyCredentialCreationOptions suitable for JSON transmission to the browser to
41
- * (eventually) get passed into navigator.credentials.create(...) in the browser.
42
- *
43
- * This should eventually get replaced with official TypeScript DOM types when WebAuthn L3 types
44
- * eventually make it into the language:
45
- *
46
- * https://w3c.github.io/webauthn/#dictdef-publickeycredentialcreationoptionsjson
47
- */
48
- interface PublicKeyCredentialCreationOptionsJSON {
49
- rp: PublicKeyCredentialRpEntity;
50
- user: PublicKeyCredentialUserEntityJSON;
51
- challenge: Base64URLString;
52
- pubKeyCredParams: PublicKeyCredentialParameters[];
53
- timeout?: number;
54
- excludeCredentials?: PublicKeyCredentialDescriptorJSON[];
55
- authenticatorSelection?: AuthenticatorSelectionCriteria;
56
- attestation?: AttestationConveyancePreference;
57
- extensions?: AuthenticationExtensionsClientInputs;
58
- }
59
- /**
60
- * A variant of PublicKeyCredentialRequestOptions suitable for JSON transmission to the browser to
61
- * (eventually) get passed into navigator.credentials.get(...) in the browser.
62
- */
63
- interface PublicKeyCredentialRequestOptionsJSON {
64
- challenge: Base64URLString;
65
- timeout?: number;
66
- rpId?: string;
67
- allowCredentials?: PublicKeyCredentialDescriptorJSON[];
68
- userVerification?: UserVerificationRequirement;
69
- extensions?: AuthenticationExtensionsClientInputs;
70
- }
71
- /**
72
- * https://w3c.github.io/webauthn/#dictdef-publickeycredentialdescriptorjson
73
- */
74
- interface PublicKeyCredentialDescriptorJSON {
75
- id: Base64URLString;
76
- type: PublicKeyCredentialType;
77
- transports?: AuthenticatorTransportFuture[];
78
- }
79
- /**
80
- * https://w3c.github.io/webauthn/#dictdef-publickeycredentialuserentityjson
81
- */
82
- interface PublicKeyCredentialUserEntityJSON {
83
- id: string;
84
- name: string;
85
- displayName: string;
86
- }
87
- /**
88
- * A slightly-modified RegistrationCredential to simplify working with ArrayBuffers that
89
- * are Base64URL-encoded in the browser so that they can be sent as JSON to the server.
90
- *
91
- * https://w3c.github.io/webauthn/#dictdef-registrationresponsejson
92
- */
93
- interface RegistrationResponseJSON {
94
- id: Base64URLString;
95
- rawId: Base64URLString;
96
- response: AuthenticatorAttestationResponseJSON;
97
- authenticatorAttachment?: AuthenticatorAttachment;
98
- clientExtensionResults: AuthenticationExtensionsClientOutputs;
99
- type: PublicKeyCredentialType;
100
- }
101
- /**
102
- * A slightly-modified AuthenticationCredential to simplify working with ArrayBuffers that
103
- * are Base64URL-encoded in the browser so that they can be sent as JSON to the server.
104
- *
105
- * https://w3c.github.io/webauthn/#dictdef-authenticationresponsejson
106
- */
107
- interface AuthenticationResponseJSON {
108
- id: Base64URLString;
109
- rawId: Base64URLString;
110
- response: AuthenticatorAssertionResponseJSON;
111
- authenticatorAttachment?: AuthenticatorAttachment;
112
- clientExtensionResults: AuthenticationExtensionsClientOutputs;
113
- type: PublicKeyCredentialType;
114
- }
115
- /**
116
- * A slightly-modified AuthenticatorAttestationResponse to simplify working with ArrayBuffers that
117
- * are Base64URL-encoded in the browser so that they can be sent as JSON to the server.
118
- *
119
- * https://w3c.github.io/webauthn/#dictdef-authenticatorattestationresponsejson
120
- */
121
- interface AuthenticatorAttestationResponseJSON {
122
- clientDataJSON: Base64URLString;
123
- attestationObject: Base64URLString;
124
- authenticatorData?: Base64URLString;
125
- transports?: AuthenticatorTransportFuture[];
126
- publicKeyAlgorithm?: COSEAlgorithmIdentifier;
127
- publicKey?: Base64URLString;
128
- }
129
- /**
130
- * A slightly-modified AuthenticatorAssertionResponse to simplify working with ArrayBuffers that
131
- * are Base64URL-encoded in the browser so that they can be sent as JSON to the server.
132
- *
133
- * https://w3c.github.io/webauthn/#dictdef-authenticatorassertionresponsejson
134
- */
135
- interface AuthenticatorAssertionResponseJSON {
136
- clientDataJSON: Base64URLString;
137
- authenticatorData: Base64URLString;
138
- signature: Base64URLString;
139
- userHandle?: Base64URLString;
140
- }
141
- /**
142
- * An attempt to communicate that this isn't just any string, but a Base64URL-encoded string
143
- */
144
- type Base64URLString = string;
145
- /**
146
- * A super class of TypeScript's `AuthenticatorTransport` that includes support for the latest
147
- * transports. Should eventually be replaced by TypeScript's when TypeScript gets updated to
148
- * know about it (sometime after 4.6.3)
149
- */
150
- type AuthenticatorTransportFuture = 'ble' | 'cable' | 'hybrid' | 'internal' | 'nfc' | 'smart-card' | 'usb';
151
- //#endregion
152
- export { RegistrationResponseJSON as a, PublicKeyCredentialRequestOptionsJSON as i, AuthenticatorAttestationResponseJSON as n, PublicKeyCredentialCreationOptionsJSON as r, AuthenticationResponseJSON as t };
153
- //# sourceMappingURL=index-nCRuFJTF.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-nCRuFJTF.d.ts","names":["AuthenticatorAssertionResponse","ArrayBuffer","AuthenticatorResponse","authenticatorData","signature","userHandle","AuthenticatorAttestationResponse","COSEAlgorithmIdentifier","attestationObject","getAuthenticatorData","getPublicKey","getPublicKeyAlgorithm","getTransports","AuthenticationExtensionsClientInputs","appid","credProps","hmacCreateSecret","AuthenticationExtensionsClientOutputs","CredentialPropertiesOutput","AuthenticatorSelectionCriteria","AuthenticatorAttachment","ResidentKeyRequirement","UserVerificationRequirement","authenticatorAttachment","requireResidentKey","residentKey","userVerification","Crypto","T","SubtleCrypto","ArrayBufferView","subtle","getRandomValues","array","randomUUID","PublicKeyCredential","Credential","rawId","response","getClientExtensionResults","PublicKeyCredentialCreationOptions","AttestationConveyancePreference","BufferSource","PublicKeyCredentialDescriptor","PublicKeyCredentialParameters","PublicKeyCredentialRpEntity","PublicKeyCredentialUserEntity","attestation","authenticatorSelection","challenge","excludeCredentials","extensions","pubKeyCredParams","rp","timeout","user","AuthenticatorTransport","PublicKeyCredentialType","id","transports","type","alg","PublicKeyCredentialRequestOptions","allowCredentials","rpId","PublicKeyCredentialEntity","displayName","clientDataJSON","rk","AlgorithmIdentifier","RsaOaepParams","AesCtrParams","AesCbcParams","AesGcmParams","CryptoKey","Promise","EcdhKeyDeriveParams","HkdfParams","Pbkdf2Params","AesDerivedKeyParams","HmacImportParams","KeyUsage","JsonWebKey","KeyFormat","Exclude","RsaHashedKeyGenParams","EcKeyGenParams","ReadonlyArray","CryptoKeyPair","AesKeyGenParams","HmacKeyGenParams","RsaHashedImportParams","EcKeyImportParams","AesKeyAlgorithm","RsaPssParams","EcdsaParams","decrypt","algorithm","key","data","deriveBits","baseKey","length","deriveKey","derivedKeyType","extractable","keyUsages","digest","encrypt","exportKey","format","generateKey","importKey","keyData","sign","unwrapKey","wrappedKey","unwrappingKey","unwrapAlgorithm","unwrappedKeyAlgorithm","verify","wrapKey","wrappingKey","wrapAlgorithm","name","Algorithm","label","counter","iv","additionalData","tagLength","KeyAlgorithm","KeyType","usages","public","HashAlgorithmIdentifier","hash","info","salt","iterations","RsaOtherPrimesInfo","crv","d","dp","dq","e","ext","k","key_ops","kty","n","oth","p","q","qi","use","x","y","RsaKeyGenParams","NamedCurve","namedCurve","privateKey","publicKey","saltLength","r","t","BigInteger","modulusLength","publicExponent","Uint8Array","AttestationConveyancePreference","AuthenticationExtensionsClientInputs","AuthenticationExtensionsClientOutputs","AuthenticatorAssertionResponse","AuthenticatorAttachment","AuthenticatorAttestationResponse","AuthenticatorSelectionCriteria","COSEAlgorithmIdentifier","PublicKeyCredential","PublicKeyCredentialCreationOptions","PublicKeyCredentialDescriptor","PublicKeyCredentialParameters","PublicKeyCredentialRequestOptions","PublicKeyCredentialRpEntity","PublicKeyCredentialType","UserVerificationRequirement","AuthenticatorTransport","Crypto","PublicKeyCredentialUserEntity","PublicKeyCredentialCreationOptionsJSON","PublicKeyCredentialUserEntityJSON","Base64URLString","PublicKeyCredentialDescriptorJSON","rp","user","challenge","pubKeyCredParams","timeout","excludeCredentials","authenticatorSelection","attestation","extensions","PublicKeyCredentialRequestOptionsJSON","rpId","allowCredentials","userVerification","AuthenticatorTransportFuture","id","type","transports","name","displayName","RegistrationCredential","AuthenticatorAttestationResponseFuture","PublicKeyCredentialFuture","response","RegistrationResponseJSON","AuthenticatorAttestationResponseJSON","rawId","authenticatorAttachment","clientExtensionResults","AuthenticationCredential","AuthenticationResponseJSON","AuthenticatorAssertionResponseJSON","clientDataJSON","attestationObject","authenticatorData","publicKeyAlgorithm","publicKey","signature","userHandle","WebAuthnCredential","Uint8Array","counter","getTransports","PublicKeyCredentialDescriptorFuture","Omit","PublicKeyCredentialJSON","Promise","isConditionalMediationAvailable","parseCreationOptionsFromJSON","options","parseRequestOptionsFromJSON","toJSON","CredentialDeviceType"],"sources":["../../../node_modules/.pnpm/@simplewebauthn+types@11.0.0/node_modules/@simplewebauthn/types/types/dom.d.ts","../../../node_modules/.pnpm/@simplewebauthn+types@11.0.0/node_modules/@simplewebauthn/types/types/index.d.ts"],"x_google_ignoreList":[0,1],"mappings":";UAgCiBa,oCAAAA;EACbC,KAAAA;EACAC,SAAAA;EACAC,gBAAAA;AAAAA;AAAAA,UAEaC,qCAAAA;EACbH,KAAAA;EACAC,SAAAA,GAAYG,0BAAAA;EACZF,gBAAAA;AAAAA;AAAAA,UAEaG,8BAAAA;EACbI,uBAAAA,GAA0BH,uBAAAA;EAC1BI,kBAAAA;EACAC,WAAAA,GAAcJ,sBAAAA;EACdK,gBAAAA,GAAmBJ,2BAAAA;AAAAA;AAAAA,UAqDNsB,6BAAAA;EACbiB,GAAAA,EAAKtD,uBAAAA;EACLqD,IAAAA,EAAMH,uBAAAA;AAAAA;AAAAA,UAuBOvC,0BAAAA;EACbkD,EAAAA;AAAAA;AAAAA,UAiDavB,2BAAAA,SAAoCoB,yBAAAA;EACjDP,EAAAA;AAAAA;AAAAA,UAEaO,yBAAAA;EACb2D,IAAAA;AAAAA;AAAAA,KAwHQnF,+BAAAA;AAAAA,KAEAlC,uBAAAA;AAAAA,KACAe,2BAAAA;AAAAA,KACAF,uBAAAA;AAAAA,KACAC,sBAAAA;AAAAA,KAEAoC,uBAAAA;;;;;;;AA5QZ;;;;;UCtBiBoI,sCAAAA;EACbI,EAAAA,EAAIV,2BAAAA;EACJW,IAAAA,EAAMJ,iCAAAA;EACNK,SAAAA,EAAWJ,eAAAA;EACXK,gBAA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