Class: TelegramCloudStorageStamper
Defined in: telegram-cloud-storage-stamper/src/index.ts:31 Stamper to use within aTurnkeyClient
Constructors
Constructor
new TelegramCloudStorageStamper(): TelegramCloudStorageStamper
Defined in: telegram-cloud-storage-stamper/src/index.ts:36
Returns
TelegramCloudStorageStamper
Properties
stamper?
Defined in: telegram-cloud-storage-stamper/src/index.ts:33optionalstamper:ApiKeyStamper
Methods
checkTelegramContext()
checkTelegramContext(): void
Defined in: telegram-cloud-storage-stamper/src/index.ts:151
Returns
void
clearItem()
clearItem(Defined in: telegram-cloud-storage-stamper/src/index.ts:244key):Promise<void>
Parameters
key
string
Returns
Promise<void>
getAPIKey()
getAPIKey(Defined in: telegram-cloud-storage-stamper/src/index.ts:135key):Promise<null|CloudStorageAPIKey>
Parameters
key
string = DEFAULT_TURNKEY_CLOUD_STORAGE_KEY
Returns
Promise<null | CloudStorageAPIKey>
getItem()
getItem(Defined in: telegram-cloud-storage-stamper/src/index.ts:193key):Promise<string>
Parameters
key
string
Returns
Promise<string>
insertAPIKey()
insertAPIKey(Defined in: telegram-cloud-storage-stamper/src/index.ts:124apiPublicKey,apiPrivateKey,key):Promise<void>
Parameters
apiPublicKey
string
apiPrivateKey
string
key
string = DEFAULT_TURNKEY_CLOUD_STORAGE_KEY
Returns
Promise<void>
isCloudStorageAPIKey()
isCloudStorageAPIKey(Defined in: telegram-cloud-storage-stamper/src/index.ts:186apiKey):boolean
Parameters
apiKey
CloudStorageAPIKey
Returns
boolean
parseAPIKey()
parseAPIKey(Defined in: telegram-cloud-storage-stamper/src/index.ts:166apiKey):null| {apiPrivateKey:any;apiPublicKey:any; }
Parameters
apiKey
string
Returns
null | { apiPrivateKey: any; apiPublicKey: any; }
setItem()
setItem(Defined in: telegram-cloud-storage-stamper/src/index.ts:214key,value):Promise<void>
Parameters
key
string
value
string
Returns
Promise<void>
setSigningKey()
setSigningKey(Defined in: telegram-cloud-storage-stamper/src/index.ts:65config?):Promise<void>
Parameters
config?
TTelegramCloudStorageStamperConfig
Returns
Promise<void>
stamp()
stamp(Defined in: telegram-cloud-storage-stamper/src/index.ts:50payload):Promise<{stampHeaderName:string;stampHeaderValue:string; }>
Parameters
payload
string
Returns
Promise<{ stampHeaderName: string; stampHeaderValue: string; }>
stringifyAPIKey()
stringifyAPIKey(Defined in: telegram-cloud-storage-stamper/src/index.ts:159apiPublicKey,apiPrivateKey):string
Parameters
apiPublicKey
string
apiPrivateKey
string
Returns
string
create()
Defined in: telegram-cloud-storage-stamper/src/index.ts:42staticcreate(config?):Promise<TelegramCloudStorageStamper>
Parameters
config?
TTelegramCloudStorageStamperConfig
Returns
Promise<TelegramCloudStorageStamper>