UNPKG

lambda-live-debugger

Version:

Debug Lambda functions locally like it is running in the cloud

261 lines (260 loc) 10.2 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UpdateThingShadow$ = exports.Publish$ = exports.ListRetainedMessages$ = exports.ListNamedShadowsForThing$ = exports.GetThingShadow$ = exports.GetRetainedMessage$ = exports.DeleteThingShadow$ = exports.DeleteConnection$ = exports.UpdateThingShadowResponse$ = exports.UpdateThingShadowRequest$ = exports.RetainedMessageSummary$ = exports.PublishRequest$ = exports.ListRetainedMessagesResponse$ = exports.ListRetainedMessagesRequest$ = exports.ListNamedShadowsForThingResponse$ = exports.ListNamedShadowsForThingRequest$ = exports.GetThingShadowResponse$ = exports.GetThingShadowRequest$ = exports.GetRetainedMessageResponse$ = exports.GetRetainedMessageRequest$ = exports.DeleteThingShadowResponse$ = exports.DeleteThingShadowRequest$ = exports.DeleteConnectionRequest$ = exports.errorTypeRegistries = exports.UnsupportedDocumentEncodingException$ = exports.UnauthorizedException$ = exports.ThrottlingException$ = exports.ServiceUnavailableException$ = exports.ResourceNotFoundException$ = exports.RequestEntityTooLargeException$ = exports.MethodNotAllowedException$ = exports.InvalidRequestException$ = exports.InternalFailureException$ = exports.ForbiddenException$ = exports.ConflictException$ = exports.IoTDataPlaneServiceException$ = void 0; const _CE = "ConflictException"; const _DC = "DeleteConnection"; const _DCR = "DeleteConnectionRequest"; const _DTS = "DeleteThingShadow"; const _DTSR = "DeleteThingShadowRequest"; const _DTSRe = "DeleteThingShadowResponse"; const _FE = "ForbiddenException"; const _GRM = "GetRetainedMessage"; const _GRMR = "GetRetainedMessageRequest"; const _GRMRe = "GetRetainedMessageResponse"; const _GTS = "GetThingShadow"; const _GTSR = "GetThingShadowRequest"; const _GTSRe = "GetThingShadowResponse"; const _IFE = "InternalFailureException"; const _IRE = "InvalidRequestException"; const _LNSFT = "ListNamedShadowsForThing"; const _LNSFTR = "ListNamedShadowsForThingRequest"; const _LNSFTRi = "ListNamedShadowsForThingResponse"; const _LRM = "ListRetainedMessages"; const _LRMR = "ListRetainedMessagesRequest"; const _LRMRi = "ListRetainedMessagesResponse"; const _MNAE = "MethodNotAllowedException"; const _P = "Publish"; const _PR = "PublishRequest"; const _RETLE = "RequestEntityTooLargeException"; const _RML = "RetainedMessageList"; const _RMS = "RetainedMessageSummary"; const _RNFE = "ResourceNotFoundException"; const _SJUP = "SynthesizedJsonUserProperties"; const _SUE = "ServiceUnavailableException"; const _TE = "ThrottlingException"; const _UDEE = "UnsupportedDocumentEncodingException"; const _UE = "UnauthorizedException"; const _UTS = "UpdateThingShadow"; const _UTSR = "UpdateThingShadowRequest"; const _UTSRp = "UpdateThingShadowResponse"; const _a = "application/json"; const _c = "client"; const _cD = "correlationData"; const _cI = "clientId"; const _cS = "cleanSession"; const _cT = "contentType"; const _e = "error"; const _h = "http"; const _hE = "httpError"; const _hH = "httpHeader"; const _hQ = "httpQuery"; const _lMT = "lastModifiedTime"; const _m = "message"; const _mE = "messageExpiry"; const _mR = "maxResults"; const _mT = "mediaType"; const _n = "name"; const _nT = "nextToken"; const _p = "payload"; const _pFI = "payloadFormatIndicator"; const _pS = "pageSize"; const _pSa = "payloadSize"; const _pWM = "preventWillMessage"; const _q = "qos"; const _r = "results"; const _rT = "retainedTopics"; const _rTe = "responseTopic"; const _re = "retain"; const _s = "smithy.ts.sdk.synthetic.com.amazonaws.iotdataplane"; const _sN = "shadowName"; const _se = "server"; const _t = "topic"; const _tN = "thingName"; const _ti = "timestamp"; const _uP = "userProperties"; const _xamcd = "x-amz-mqtt5-correlation-data"; const _xampfi = "x-amz-mqtt5-payload-format-indicator"; const _xamup = "x-amz-mqtt5-user-properties"; const n0 = "com.amazonaws.iotdataplane"; const schema_1 = require("@smithy/core/schema"); const errors_1 = require("../models/errors"); const IoTDataPlaneServiceException_1 = require("../models/IoTDataPlaneServiceException"); const _s_registry = schema_1.TypeRegistry.for(_s); exports.IoTDataPlaneServiceException$ = [-3, _s, "IoTDataPlaneServiceException", 0, [], []]; _s_registry.registerError(exports.IoTDataPlaneServiceException$, IoTDataPlaneServiceException_1.IoTDataPlaneServiceException); const n0_registry = schema_1.TypeRegistry.for(n0); exports.ConflictException$ = [-3, n0, _CE, { [_e]: _c, [_hE]: 409 }, [_m], [0] ]; n0_registry.registerError(exports.ConflictException$, errors_1.ConflictException); exports.ForbiddenException$ = [-3, n0, _FE, { [_e]: _c, [_hE]: 403 }, [_m], [0] ]; n0_registry.registerError(exports.ForbiddenException$, errors_1.ForbiddenException); exports.InternalFailureException$ = [-3, n0, _IFE, { [_e]: _se, [_hE]: 500 }, [_m], [0] ]; n0_registry.registerError(exports.InternalFailureException$, errors_1.InternalFailureException); exports.InvalidRequestException$ = [-3, n0, _IRE, { [_e]: _c, [_hE]: 400 }, [_m], [0] ]; n0_registry.registerError(exports.InvalidRequestException$, errors_1.InvalidRequestException); exports.MethodNotAllowedException$ = [-3, n0, _MNAE, { [_e]: _c, [_hE]: 405 }, [_m], [0] ]; n0_registry.registerError(exports.MethodNotAllowedException$, errors_1.MethodNotAllowedException); exports.RequestEntityTooLargeException$ = [-3, n0, _RETLE, { [_e]: _c, [_hE]: 413 }, [_m], [0] ]; n0_registry.registerError(exports.RequestEntityTooLargeException$, errors_1.RequestEntityTooLargeException); exports.ResourceNotFoundException$ = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_m], [0] ]; n0_registry.registerError(exports.ResourceNotFoundException$, errors_1.ResourceNotFoundException); exports.ServiceUnavailableException$ = [-3, n0, _SUE, { [_e]: _se, [_hE]: 503 }, [_m], [0] ]; n0_registry.registerError(exports.ServiceUnavailableException$, errors_1.ServiceUnavailableException); exports.ThrottlingException$ = [-3, n0, _TE, { [_e]: _c, [_hE]: 429 }, [_m], [0] ]; n0_registry.registerError(exports.ThrottlingException$, errors_1.ThrottlingException); exports.UnauthorizedException$ = [-3, n0, _UE, { [_e]: _c, [_hE]: 401 }, [_m], [0] ]; n0_registry.registerError(exports.UnauthorizedException$, errors_1.UnauthorizedException); exports.UnsupportedDocumentEncodingException$ = [-3, n0, _UDEE, { [_e]: _c, [_hE]: 415 }, [_m], [0] ]; n0_registry.registerError(exports.UnsupportedDocumentEncodingException$, errors_1.UnsupportedDocumentEncodingException); exports.errorTypeRegistries = [ _s_registry, n0_registry, ]; var SynthesizedJsonUserProperties = [0, n0, _SJUP, { [_mT]: _a }, 0]; exports.DeleteConnectionRequest$ = [3, n0, _DCR, 0, [_cI, _cS, _pWM], [[0, 1], [2, { [_hQ]: _cS }], [2, { [_hQ]: _pWM }]], 1 ]; exports.DeleteThingShadowRequest$ = [3, n0, _DTSR, 0, [_tN, _sN], [[0, 1], [0, { [_hQ]: _n }]], 1 ]; exports.DeleteThingShadowResponse$ = [3, n0, _DTSRe, 0, [_p], [[21, 16]], 1 ]; exports.GetRetainedMessageRequest$ = [3, n0, _GRMR, 0, [_t], [[0, 1]], 1 ]; exports.GetRetainedMessageResponse$ = [3, n0, _GRMRe, 0, [_t, _p, _q, _lMT, _uP], [0, 21, 1, 1, 21] ]; exports.GetThingShadowRequest$ = [3, n0, _GTSR, 0, [_tN, _sN], [[0, 1], [0, { [_hQ]: _n }]], 1 ]; exports.GetThingShadowResponse$ = [3, n0, _GTSRe, 0, [_p], [[21, 16]] ]; exports.ListNamedShadowsForThingRequest$ = [3, n0, _LNSFTR, 0, [_tN, _nT, _pS], [[0, 1], [0, { [_hQ]: _nT }], [1, { [_hQ]: _pS }]], 1 ]; exports.ListNamedShadowsForThingResponse$ = [3, n0, _LNSFTRi, 0, [_r, _nT, _ti], [64 | 0, 0, 1] ]; exports.ListRetainedMessagesRequest$ = [3, n0, _LRMR, 0, [_nT, _mR], [[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]] ]; exports.ListRetainedMessagesResponse$ = [3, n0, _LRMRi, 0, [_rT, _nT], [() => RetainedMessageList, 0] ]; exports.PublishRequest$ = [3, n0, _PR, 0, [_t, _q, _re, _p, _uP, _pFI, _cT, _rTe, _cD, _mE], [[0, 1], [1, { [_hQ]: _q }], [2, { [_hQ]: _re }], [21, 16], [() => SynthesizedJsonUserProperties, { [_hH]: _xamup }], [0, { [_hH]: _xampfi }], [0, { [_hQ]: _cT }], [0, { [_hQ]: _rTe }], [0, { [_hH]: _xamcd }], [1, { [_hQ]: _mE }]], 1 ]; exports.RetainedMessageSummary$ = [3, n0, _RMS, 0, [_t, _pSa, _q, _lMT], [0, 1, 1, 1] ]; exports.UpdateThingShadowRequest$ = [3, n0, _UTSR, 0, [_tN, _p, _sN], [[0, 1], [21, 16], [0, { [_hQ]: _n }]], 2 ]; exports.UpdateThingShadowResponse$ = [3, n0, _UTSRp, 0, [_p], [[21, 16]] ]; var __Unit = "unit"; var NamedShadowList = 64 | 0; var RetainedMessageList = [1, n0, _RML, 0, () => exports.RetainedMessageSummary$ ]; exports.DeleteConnection$ = [9, n0, _DC, { [_h]: ["DELETE", "/connections/{clientId}", 200] }, () => exports.DeleteConnectionRequest$, () => __Unit ]; exports.DeleteThingShadow$ = [9, n0, _DTS, { [_h]: ["DELETE", "/things/{thingName}/shadow", 200] }, () => exports.DeleteThingShadowRequest$, () => exports.DeleteThingShadowResponse$ ]; exports.GetRetainedMessage$ = [9, n0, _GRM, { [_h]: ["GET", "/retainedMessage/{topic}", 200] }, () => exports.GetRetainedMessageRequest$, () => exports.GetRetainedMessageResponse$ ]; exports.GetThingShadow$ = [9, n0, _GTS, { [_h]: ["GET", "/things/{thingName}/shadow", 200] }, () => exports.GetThingShadowRequest$, () => exports.GetThingShadowResponse$ ]; exports.ListNamedShadowsForThing$ = [9, n0, _LNSFT, { [_h]: ["GET", "/api/things/shadow/ListNamedShadowsForThing/{thingName}", 200] }, () => exports.ListNamedShadowsForThingRequest$, () => exports.ListNamedShadowsForThingResponse$ ]; exports.ListRetainedMessages$ = [9, n0, _LRM, { [_h]: ["GET", "/retainedMessage", 200] }, () => exports.ListRetainedMessagesRequest$, () => exports.ListRetainedMessagesResponse$ ]; exports.Publish$ = [9, n0, _P, { [_h]: ["POST", "/topics/{topic}", 200] }, () => exports.PublishRequest$, () => __Unit ]; exports.UpdateThingShadow$ = [9, n0, _UTS, { [_h]: ["POST", "/things/{thingName}/shadow", 200] }, () => exports.UpdateThingShadowRequest$, () => exports.UpdateThingShadowResponse$ ];