UNPKG

@smithy/types

Version:

[![NPM version](https://img.shields.io/npm/v/@smithy/types/latest.svg)](https://www.npmjs.com/package/@smithy/types) [![NPM downloads](https://img.shields.io/npm/dm/@smithy/types.svg)](https://www.npmjs.com/package/@smithy/types)

47 lines (46 loc) 1.01 kB
/** * A bitvector representing a traits object. * * Vector index to trait: * 0 - httpLabel * 1 - idempotent * 2 - idempotencyToken * 3 - sensitive * 4 - httpPayload * 5 - httpResponseCode * 6 - httpQueryParams * * The singular trait values are enumerated for quick identification, but * combination values are left to the `number` union type. * * @public */ export type TraitBitVector = HttpLabelBitMask | IdempotentBitMask | IdempotencyTokenBitMask | SensitiveBitMask | HttpPayloadBitMask | HttpResponseCodeBitMask | HttpQueryParamsBitMask | number; /** * @public */ export type HttpLabelBitMask = 1; /** * @public */ export type IdempotentBitMask = 2; /** * @public */ export type IdempotencyTokenBitMask = 4; /** * @public */ export type SensitiveBitMask = 8; /** * @public */ export type HttpPayloadBitMask = 16; /** * @public */ export type HttpResponseCodeBitMask = 32; /** * @public */ export type HttpQueryParamsBitMask = 64;