@hippovideo/video-sdk 1.1.1-beta.2 → 2.0.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.
@@ -59,7 +59,7 @@ object-assign
59
59
  *
60
60
  * Copyright OpenJS Foundation and other contributors
61
61
  * Released under the MIT license.
62
- * http://jquery.org/license
62
+ * https://jquery.org/license
63
63
  *
64
64
  * Date: Sun May 10 09:02:36 2020 +0200
65
65
  */
@@ -92,138 +92,138 @@ object-assign
92
92
  */
93
93
 
94
94
  /*!
95
- * jQuery UI :data 1.13.2
96
- * http://jqueryui.com
95
+ * jQuery UI :data 1.13.3
96
+ * https://jqueryui.com
97
97
  *
98
- * Copyright jQuery Foundation and other contributors
98
+ * Copyright OpenJS Foundation and other contributors
99
99
  * Released under the MIT license.
100
- * http://jquery.org/license
100
+ * https://jquery.org/license
101
101
  */
102
102
 
103
103
  /*!
104
- * jQuery UI Datepicker 1.13.2
105
- * http://jqueryui.com
104
+ * jQuery UI Datepicker 1.13.3
105
+ * https://jqueryui.com
106
106
  *
107
- * Copyright jQuery Foundation and other contributors
107
+ * Copyright OpenJS Foundation and other contributors
108
108
  * Released under the MIT license.
109
- * http://jquery.org/license
109
+ * https://jquery.org/license
110
110
  */
111
111
 
112
112
  /*!
113
- * jQuery UI Disable Selection 1.13.2
114
- * http://jqueryui.com
113
+ * jQuery UI Disable Selection 1.13.3
114
+ * https://jqueryui.com
115
115
  *
116
- * Copyright jQuery Foundation and other contributors
116
+ * Copyright OpenJS Foundation and other contributors
117
117
  * Released under the MIT license.
118
- * http://jquery.org/license
118
+ * https://jquery.org/license
119
119
  */
120
120
 
121
121
  /*!
122
- * jQuery UI Draggable 1.13.2
123
- * http://jqueryui.com
122
+ * jQuery UI Draggable 1.13.3
123
+ * https://jqueryui.com
124
124
  *
125
- * Copyright jQuery Foundation and other contributors
125
+ * Copyright OpenJS Foundation and other contributors
126
126
  * Released under the MIT license.
127
- * http://jquery.org/license
127
+ * https://jquery.org/license
128
128
  */
129
129
 
130
130
  /*!
131
- * jQuery UI Droppable 1.13.2
132
- * http://jqueryui.com
131
+ * jQuery UI Droppable 1.13.3
132
+ * https://jqueryui.com
133
133
  *
134
- * Copyright jQuery Foundation and other contributors
134
+ * Copyright OpenJS Foundation and other contributors
135
135
  * Released under the MIT license.
136
- * http://jquery.org/license
136
+ * https://jquery.org/license
137
137
  */
138
138
 
139
139
  /*!
140
- * jQuery UI Effects 1.13.2
141
- * http://jqueryui.com
140
+ * jQuery UI Effects 1.13.3
141
+ * https://jqueryui.com
142
142
  *
143
- * Copyright jQuery Foundation and other contributors
143
+ * Copyright OpenJS Foundation and other contributors
144
144
  * Released under the MIT license.
145
- * http://jquery.org/license
145
+ * https://jquery.org/license
146
146
  */
147
147
 
148
148
  /*!
149
- * jQuery UI Effects Fade 1.13.2
150
- * http://jqueryui.com
149
+ * jQuery UI Effects Fade 1.13.3
150
+ * https://jqueryui.com
151
151
  *
152
- * Copyright jQuery Foundation and other contributors
152
+ * Copyright OpenJS Foundation and other contributors
153
153
  * Released under the MIT license.
154
- * http://jquery.org/license
154
+ * https://jquery.org/license
155
155
  */
156
156
 
157
157
  /*!
158
- * jQuery UI Effects Size 1.13.2
159
- * http://jqueryui.com
158
+ * jQuery UI Effects Size 1.13.3
159
+ * https://jqueryui.com
160
160
  *
161
- * Copyright jQuery Foundation and other contributors
161
+ * Copyright OpenJS Foundation and other contributors
162
162
  * Released under the MIT license.
163
- * http://jquery.org/license
163
+ * https://jquery.org/license
164
164
  */
165
165
 
166
166
  /*!
167
- * jQuery UI Keycode 1.13.2
168
- * http://jqueryui.com
167
+ * jQuery UI Keycode 1.13.3
168
+ * https://jqueryui.com
169
169
  *
170
- * Copyright jQuery Foundation and other contributors
170
+ * Copyright OpenJS Foundation and other contributors
171
171
  * Released under the MIT license.
172
- * http://jquery.org/license
172
+ * https://jquery.org/license
173
173
  */
174
174
 
175
175
  /*!
176
- * jQuery UI Mouse 1.13.2
177
- * http://jqueryui.com
176
+ * jQuery UI Mouse 1.13.3
177
+ * https://jqueryui.com
178
178
  *
179
- * Copyright jQuery Foundation and other contributors
179
+ * Copyright OpenJS Foundation and other contributors
180
180
  * Released under the MIT license.
181
- * http://jquery.org/license
181
+ * https://jquery.org/license
182
182
  */
183
183
 
184
184
  /*!
185
- * jQuery UI Resizable 1.13.2
186
- * http://jqueryui.com
185
+ * jQuery UI Resizable 1.13.3
186
+ * https://jqueryui.com
187
187
  *
188
- * Copyright jQuery Foundation and other contributors
188
+ * Copyright OpenJS Foundation and other contributors
189
189
  * Released under the MIT license.
190
- * http://jquery.org/license
190
+ * https://jquery.org/license
191
191
  */
192
192
 
193
193
  /*!
194
- * jQuery UI Scroll Parent 1.13.2
195
- * http://jqueryui.com
194
+ * jQuery UI Scroll Parent 1.13.3
195
+ * https://jqueryui.com
196
196
  *
197
- * Copyright jQuery Foundation and other contributors
197
+ * Copyright OpenJS Foundation and other contributors
198
198
  * Released under the MIT license.
199
- * http://jquery.org/license
199
+ * https://jquery.org/license
200
200
  */
201
201
 
202
202
  /*!
203
- * jQuery UI Slider 1.13.2
204
- * http://jqueryui.com
203
+ * jQuery UI Slider 1.13.3
204
+ * https://jqueryui.com
205
205
  *
206
- * Copyright jQuery Foundation and other contributors
206
+ * Copyright OpenJS Foundation and other contributors
207
207
  * Released under the MIT license.
208
- * http://jquery.org/license
208
+ * https://jquery.org/license
209
209
  */
210
210
 
211
211
  /*!
212
- * jQuery UI Sortable 1.13.2
213
- * http://jqueryui.com
212
+ * jQuery UI Sortable 1.13.3
213
+ * https://jqueryui.com
214
214
  *
215
- * Copyright jQuery Foundation and other contributors
215
+ * Copyright OpenJS Foundation and other contributors
216
216
  * Released under the MIT license.
217
- * http://jquery.org/license
217
+ * https://jquery.org/license
218
218
  */
219
219
 
220
220
  /*!
221
- * jQuery UI Widget 1.13.2
222
- * http://jqueryui.com
221
+ * jQuery UI Widget 1.13.3
222
+ * https://jqueryui.com
223
223
  *
224
- * Copyright jQuery Foundation and other contributors
224
+ * Copyright OpenJS Foundation and other contributors
225
225
  * Released under the MIT license.
226
- * http://jquery.org/license
226
+ * https://jquery.org/license
227
227
  */
228
228
 
229
229
  /*! Player.js - v0.1.0 - 2017-10-24
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "recorder_api.css": "/hv_recorder.css",
3
3
  "recorder_api.js": "/hv_recorder.js",
4
- "445-bundle-hippo-ft7m3al2v8c-js": "/445-bundle-hippo-ft7m3al2v8c-b091ac72150a694355a7.js",
5
- "kinesis_util-dyn.js": "/188-bundle-hippo-ft7m3al2v8c-42f6d1c97cda679fba82.js",
6
- "dash-dyn.js": "/520-bundle-hippo-ft7m3al2v8c-73cb445a3d5e52961888.js",
7
- "DownloadRatioRule-dyn.js": "/881-bundle-hippo-ft7m3al2v8c-1e41c84326fac8446b66.js",
8
- "hls-dyn.js": "/245-bundle-hippo-ft7m3al2v8c-ca0a520a5574506f6206.js"
4
+ "290-bundle-hippo-28nywb7ck1d-js": "/290-bundle-hippo-28nywb7ck1d-f5cb1f36a31ca88cb92f.js",
5
+ "kinesis_util-dyn.js": "/188-bundle-hippo-28nywb7ck1d-4b5acb7117b458a8c6a8.js",
6
+ "344-bundle-hippo-28nywb7ck1d-js": "/344-bundle-hippo-28nywb7ck1d-fb2734620bdf90ca62f9.js",
7
+ "dash-dyn.js": "/520-bundle-hippo-28nywb7ck1d-4092282657e6789fba26.js",
8
+ "DownloadRatioRule-dyn.js": "/881-bundle-hippo-28nywb7ck1d-1e41c84326fac8446b66.js",
9
+ "hls-dyn.js": "/245-bundle-hippo-28nywb7ck1d-42ae6eed97d1262cbb60.js"
9
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hippovideo/video-sdk",
3
- "version": "1.1.1-beta.2",
3
+ "version": "2.0.0",
4
4
  "description": "",
5
5
  "main": "app/hv_recorder.js",
6
6
  "scripts": {
@@ -1 +0,0 @@
1
- (self.webpackChunkHVRecorder=self.webpackChunkHVRecorder||[]).push([[188],{32125:function(e,t,r){"use strict";r.r(t);var a=r(85614),i=r.n(a),n=r(65759),s=r(96814),o=r.n(s),m=r(98405),u=r.n(m),p=r(64542),c=r.n(p),S=r(80300);let d={},y={},l={},N={},R={},T=[],h={},A={};A[i().analytics.VIDEO_STATS]={seconds:10,calls:20},A[i().analytics.FIRST_FRAME_LOAD]={calls:1},A[i().analytics.UPDATE_BANDWIDTH]={calls:1},A[i().analytics.CLOSE_EVENT]={calls:1};let b={};b[i().kinesisDataStreamType.VIDEO_ANALYTICS]=JSON.parse(n).videoAnalyticsIdentity,b[i().kinesisDataStreamType.VIDEO_PAGE_REPORTS]=JSON.parse(n).videoAnalyticsIdentity,b[i().kinesisDataStreamType.PERFORMANCE_STATS]=JSON.parse(n).metricLogIdentity;let g={};g[i().kinesisDataStreamType.VIDEO_ANALYTICS]=JSON.parse(n).videoAnalyticsFallback,g[i().kinesisDataStreamType.VIDEO_PAGE_REPORTS]=JSON.parse(n).videoAnalyticsFallback;let C=1e3*(window.HippoVideo&&window.HippoVideo.AppRegistry&&window.HippoVideo.AppRegistry.KinesisApiTimeout?Number(window.HippoVideo.AppRegistry.KinesisApiTimeout):10);window.onbeforeunload=()=>{for(let e in d)try{d[e].clearCachedId()}catch(e){}};let P={setAnalayticsCognito(e,t){if(e&&t)try{if(d[e])try{d[e].clearCachedId()}catch(e){}d[e]=new(c())({IdentityId:t.identity_id,Logins:{"cognito-identity.amazonaws.com":t.token}},{region:t.region,httpOptions:{timeout:C}}),R[e]=t.stream_name,y[e]=t.region,N[e]=t.bean_stalk_environment,l[e]=null,this._initKinesis(e)}catch(e){console.log(e)}},pushRecord(e,t,r,a){if(!this.isValidKinesisRequest(r))return;a=null==a||a,r.stream_type=e,N[e]&&(r.bean_stalk_environment=N[e]),"HippoVideo"in window&&HippoVideo.Delivery.visitorId&&(r.visitor_id=HippoVideo.Delivery.visitorId),r.recordCreatedTime=(new Date).getTime()/1e3,r.recordCreatedFrom="client";let i=this;d[e]?i._pushRecord(e,t,r,a,(e=>{}),(n=>{i._refreshToken(e,r,(n=>{i.setAnalayticsCognito(e,n),i._pushRecord(e,t,r,a,(e=>{}),(a=>{i._fallback(e,t,r)}))}),(a=>{i._fallback(e,t,r)}))})):i._fallback(e,t,r)},isValidKinesisRequest(e){if(!A[e.type])return!0;let t=e.video_uuid?e.video_uuid:e.page_uuid;if(t){if(h[t]&&h[t][e.type])return!1;let r=(new Date).getTime(),a=A[e.type].seconds?r-1e3*A[e.type].seconds:0;return T.filter((r=>r.id==t&&r.type==e.type&&r.time>a)).length>A[e.type].calls?(h[t]||(h[t]={}),h[t][e.type]=!0,!1):(T.push({id:t,type:e.type,time:r}),!0)}return!1},_refreshToken(e,t,r,a){let n=b[e],s={};e==i().kinesisDataStreamType.VIDEO_ANALYTICS?s.token=t.token:e!=i().kinesisDataStreamType.VIDEO_PAGE_REPORTS&&e!=i().kinesisDataStreamType.PERFORMANCE_STATS||(s.page_id=t.page_id),S.default.call({method:"POST",url:n,data:s,success:e=>{e.status?r(e):a&&a()},error:a})},_pushRecord(e,t,r,a,i,n){if(l[e]){l[e].config.update({httpOptions:{xhrAsync:a}});let s={Data:JSON.stringify(r),PartitionKey:String(t),StreamName:R[e]};l[e].putRecord(s,((e,t)=>{e?n&&n(e):i(t)}))}else n&&n()},_initKinesis(e){l[e]||(l[e]=new(o())({credentials:d[e],region:y[e],httpOptions:{timeout:C}}))},_fallback(e,t,r){let a=g[e];if(a){let n={data:r,partition_key:t};e==i().kinesisDataStreamType.VIDEO_ANALYTICS?n.token=r.token:e==i().kinesisDataStreamType.VIDEO_PAGE_REPORTS&&(n.page_id=r.page_id),S.default.call({method:"POST",url:a,data:n,success:e=>{},error:e=>{}})}},pushRecordToDeliveryStream(e,t,r){let a={...e};var i={DeliveryStreamName:t,Record:{Data:"_"+HippoVideo.getZuluTimeInUTC()+"_\t"+JSON.stringify(r)}};new(u())({region:"us-east-1",credentials:new(c())({IdentityId:a.identity_id,Logins:{"cognito-identity.amazonaws.com":a.token}}),httpOptions:{timeout:C}}).putRecord(i,(function(e,t){e?console.log(e,e.stack):console.log(t)}))}};t.default=P},45344:function(e,t,r){"use strict";r.r(t);var a=r(4942),i=(r(69358),r(79288),r(38077),r(60228),r(59749),r(81919),r(47522),r(99474),r(85614)),n=r.n(i),s=r(65759),o=r(96814),m=r.n(o),u=r(98405),p=r.n(u),c=r(64542),S=r.n(c),d=r(80300);function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}var l={},N={},R={},T={},h={},A=[],b={},g={};g[n().analytics.VIDEO_STATS]={seconds:10,calls:20},g[n().analytics.FIRST_FRAME_LOAD]={calls:1},g[n().analytics.UPDATE_BANDWIDTH]={calls:1},g[n().analytics.CLOSE_EVENT]={calls:1};var C={};C[n().kinesisDataStreamType.VIDEO_ANALYTICS]=JSON.parse(s).videoAnalyticsIdentity,C[n().kinesisDataStreamType.VIDEO_PAGE_REPORTS]=JSON.parse(s).videoAnalyticsIdentity,C[n().kinesisDataStreamType.PERFORMANCE_STATS]=JSON.parse(s).metricLogIdentity;var P={};P[n().kinesisDataStreamType.VIDEO_ANALYTICS]=JSON.parse(s).videoAnalyticsFallback,P[n().kinesisDataStreamType.VIDEO_PAGE_REPORTS]=JSON.parse(s).videoAnalyticsFallback;var O=1e3*(window.HippoVideo&&window.HippoVideo.AppRegistry&&window.HippoVideo.AppRegistry.KinesisApiTimeout?Number(window.HippoVideo.AppRegistry.KinesisApiTimeout):10);window.onbeforeunload=function(){for(var e in l)try{l[e].clearCachedId()}catch(e){}};var _={setAnalayticsCognito:function(e,t){if(e&&t)try{if(l[e])try{l[e].clearCachedId()}catch(e){}l[e]=new(S())({IdentityId:t.identity_id,Logins:{"cognito-identity.amazonaws.com":t.token}},{region:t.region,httpOptions:{timeout:O}}),h[e]=t.stream_name,N[e]=t.region,T[e]=t.bean_stalk_environment,R[e]=null,this._initKinesis(e)}catch(e){console.log(e)}},pushRecord:function(e,t,r,a){if(this.isValidKinesisRequest(r)){a=null==a||a,r.stream_type=e,T[e]&&(r.bean_stalk_environment=T[e]),"HippoVideo"in window&&HippoVideo.Delivery.visitorId&&(r.visitor_id=HippoVideo.Delivery.visitorId),r.recordCreatedTime=(new Date).getTime()/1e3,r.recordCreatedFrom="client";var i=this;l[e]?i._pushRecord(e,t,r,a,(function(e){}),(function(n){i._refreshToken(e,r,(function(n){i.setAnalayticsCognito(e,n),i._pushRecord(e,t,r,a,(function(e){}),(function(a){i._fallback(e,t,r)}))}),(function(a){i._fallback(e,t,r)}))})):i._fallback(e,t,r)}},isValidKinesisRequest:function(e){if(!g[e.type])return!0;var t=e.video_uuid?e.video_uuid:e.page_uuid;if(t){if(b[t]&&b[t][e.type])return!1;var r=(new Date).getTime(),a=g[e.type].seconds?r-1e3*g[e.type].seconds:0;return A.filter((function(r){return r.id==t&&r.type==e.type&&r.time>a})).length>g[e.type].calls?(b[t]||(b[t]={}),b[t][e.type]=!0,!1):(A.push({id:t,type:e.type,time:r}),!0)}return!1},_refreshToken:function(e,t,r,a){var i=C[e],s={};e==n().kinesisDataStreamType.VIDEO_ANALYTICS?s.token=t.token:e!=n().kinesisDataStreamType.VIDEO_PAGE_REPORTS&&e!=n().kinesisDataStreamType.PERFORMANCE_STATS||(s.page_id=t.page_id),d.default.call({method:"POST",url:i,data:s,success:function(e){e.status?r(e):a&&a()},error:a})},_pushRecord:function(e,t,r,a,i,n){if(R[e]){R[e].config.update({httpOptions:{xhrAsync:a}});var s={Data:JSON.stringify(r),PartitionKey:String(t),StreamName:h[e]};R[e].putRecord(s,(function(e,t){e?n&&n(e):i(t)}))}else n&&n()},_initKinesis:function(e){R[e]||(R[e]=new(m())({credentials:l[e],region:N[e],httpOptions:{timeout:O}}))},_fallback:function(e,t,r){var a=P[e];if(a){var i={data:r,partition_key:t};e==n().kinesisDataStreamType.VIDEO_ANALYTICS?i.token=r.token:e==n().kinesisDataStreamType.VIDEO_PAGE_REPORTS&&(i.page_id=r.page_id),d.default.call({method:"POST",url:a,data:i,success:function(e){},error:function(e){}})}},pushRecordToDeliveryStream:function(e,t,r){var i=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){(0,a.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e),n={DeliveryStreamName:t,Record:{Data:"_"+HippoVideo.getZuluTimeInUTC()+"_\t"+JSON.stringify(r)}};new(p())({region:"us-east-1",credentials:new(S())({IdentityId:i.identity_id,Logins:{"cognito-identity.amazonaws.com":i.token}}),httpOptions:{timeout:O}}).putRecord(n,(function(e,t){e?console.log(e,e.stack):console.log(t)}))}};t.default=_},96814:function(e,t,r){r(17321);var a=r(79614),i=a.Service,n=a.apiLoader;n.services.kinesis={},a.Kinesis=i.defineService("kinesis",["2013-12-02"]),Object.defineProperty(n.services.kinesis,"2013-12-02",{get:function(){var e=r(648);return e.paginators=r(10424).o,e.waiters=r(54059).V,e},enumerable:!0,configurable:!0}),e.exports=a.Kinesis},648:function(e){"use strict";e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2013-12-02","endpointPrefix":"kinesis","jsonVersion":"1.1","protocol":"json","protocolSettings":{"h2":"eventstream"},"serviceAbbreviation":"Kinesis","serviceFullName":"Amazon Kinesis","serviceId":"Kinesis","signatureVersion":"v4","targetPrefix":"Kinesis_20131202","uid":"kinesis-2013-12-02"},"operations":{"AddTagsToStream":{"input":{"type":"structure","required":["Tags"],"members":{"StreamName":{},"Tags":{"type":"map","key":{},"value":{}},"StreamARN":{"contextParam":{"name":"StreamARN"}}}},"staticContextParams":{"OperationType":{"value":"control"}}},"CreateStream":{"input":{"type":"structure","required":["StreamName"],"members":{"StreamName":{},"ShardCount":{"type":"integer"},"StreamModeDetails":{"shape":"S9"}}}},"DecreaseStreamRetentionPeriod":{"input":{"type":"structure","required":["RetentionPeriodHours"],"members":{"StreamName":{},"RetentionPeriodHours":{"type":"integer"},"StreamARN":{"contextParam":{"name":"StreamARN"}}}},"staticContextParams":{"OperationType":{"value":"control"}}},"DeleteResourcePolicy":{"input":{"type":"structure","required":["ResourceARN"],"members":{"ResourceARN":{"contextParam":{"name":"ResourceARN"}}}},"staticContextParams":{"OperationType":{"value":"control"}}},"DeleteStream":{"input":{"type":"structure","members":{"StreamName":{},"EnforceConsumerDeletion":{"type":"boolean"},"StreamARN":{"contextParam":{"name":"StreamARN"}}}},"staticContextParams":{"OperationType":{"value":"control"}}},"DeregisterStreamConsumer":{"input":{"type":"structure","members":{"StreamARN":{"contextParam":{"name":"StreamARN"}},"ConsumerName":{},"ConsumerARN":{"contextParam":{"name":"ConsumerARN"}}}},"staticContextParams":{"OperationType":{"value":"control"}}},"DescribeLimits":{"input":{"type":"structure","members":{}},"output":{"type":"structure","required":["ShardLimit","OpenShardCount","OnDemandStreamCount","OnDemandStreamCountLimit"],"members":{"ShardLimit":{"type":"integer"},"OpenShardCount":{"type":"integer"},"OnDemandStreamCount":{"type":"integer"},"OnDemandStreamCountLimit":{"type":"integer"}}}},"DescribeStream":{"input":{"type":"structure","members":{"StreamName":{},"Limit":{"type":"integer"},"ExclusiveStartShardId":{},"StreamARN":{"contextParam":{"name":"StreamARN"}}}},"output":{"type":"structure","required":["StreamDescription"],"members":{"StreamDescription":{"type":"structure","required":["StreamName","StreamARN","StreamStatus","Shards","HasMoreShards","RetentionPeriodHours","StreamCreationTimestamp","EnhancedMonitoring"],"members":{"StreamName":{},"StreamARN":{},"StreamStatus":{},"StreamModeDetails":{"shape":"S9"},"Shards":{"shape":"Sv"},"HasMoreShards":{"type":"boolean"},"RetentionPeriodHours":{"type":"integer"},"StreamCreationTimestamp":{"type":"timestamp"},"EnhancedMonitoring":{"shape":"S12"},"EncryptionType":{},"KeyId":{}}}}},"staticContextParams":{"OperationType":{"value":"control"}}},"DescribeStreamConsumer":{"input":{"type":"structure","members":{"StreamARN":{"contextParam":{"name":"StreamARN"}},"ConsumerName":{},"ConsumerARN":{"contextParam":{"name":"ConsumerARN"}}}},"output":{"type":"structure","required":["ConsumerDescription"],"members":{"ConsumerDescription":{"type":"structure","required":["ConsumerName","ConsumerARN","ConsumerStatus","ConsumerCreationTimestamp","StreamARN"],"members":{"ConsumerName":{},"ConsumerARN":{},"ConsumerStatus":{},"ConsumerCreationTimestamp":{"type":"timestamp"},"StreamARN":{}}}}},"staticContextParams":{"OperationType":{"value":"control"}}},"DescribeStreamSummary":{"input":{"type":"structure","members":{"StreamName":{},"StreamARN":{"contextParam":{"name":"StreamARN"}}}},"output":{"type":"structure","required":["StreamDescriptionSummary"],"members":{"StreamDescriptionSummary":{"type":"structure","required":["StreamName","StreamARN","StreamStatus","RetentionPeriodHours","StreamCreationTimestamp","EnhancedMonitoring","OpenShardCount"],"members":{"StreamName":{},"StreamARN":{},"StreamStatus":{},"StreamModeDetails":{"shape":"S9"},"RetentionPeriodHours":{"type":"integer"},"StreamCreationTimestamp":{"type":"timestamp"},"EnhancedMonitoring":{"shape":"S12"},"EncryptionType":{},"KeyId":{},"OpenShardCount":{"type":"integer"},"ConsumerCount":{"type":"integer"}}}}},"staticContextParams":{"OperationType":{"value":"control"}}},"DisableEnhancedMonitoring":{"input":{"type":"structure","required":["ShardLevelMetrics"],"members":{"StreamName":{},"ShardLevelMetrics":{"shape":"S14"},"StreamARN":{"contextParam":{"name":"StreamARN"}}}},"output":{"shape":"S1h"},"staticContextParams":{"OperationType":{"value":"control"}}},"EnableEnhancedMonitoring":{"input":{"type":"structure","required":["ShardLevelMetrics"],"members":{"StreamName":{},"ShardLevelMetrics":{"shape":"S14"},"StreamARN":{"contextParam":{"name":"StreamARN"}}}},"output":{"shape":"S1h"},"staticContextParams":{"OperationType":{"value":"control"}}},"GetRecords":{"input":{"type":"structure","required":["ShardIterator"],"members":{"ShardIterator":{},"Limit":{"type":"integer"},"StreamARN":{"contextParam":{"name":"StreamARN"}}}},"output":{"type":"structure","required":["Records"],"members":{"Records":{"type":"list","member":{"type":"structure","required":["SequenceNumber","Data","PartitionKey"],"members":{"SequenceNumber":{},"ApproximateArrivalTimestamp":{"type":"timestamp"},"Data":{"type":"blob"},"PartitionKey":{},"EncryptionType":{}}}},"NextShardIterator":{},"MillisBehindLatest":{"type":"long"},"ChildShards":{"type":"list","member":{"type":"structure","required":["ShardId","ParentShards","HashKeyRange"],"members":{"ShardId":{},"ParentShards":{"type":"list","member":{}},"HashKeyRange":{"shape":"Sx"}}}}}},"staticContextParams":{"OperationType":{"value":"data"}}},"GetResourcePolicy":{"input":{"type":"structure","required":["ResourceARN"],"members":{"ResourceARN":{"contextParam":{"name":"ResourceARN"}}}},"output":{"type":"structure","required":["Policy"],"members":{"Policy":{}}},"staticContextParams":{"OperationType":{"value":"control"}}},"GetShardIterator":{"input":{"type":"structure","required":["ShardId","ShardIteratorType"],"members":{"StreamName":{},"ShardId":{},"ShardIteratorType":{},"StartingSequenceNumber":{},"Timestamp":{"type":"timestamp"},"StreamARN":{"contextParam":{"name":"StreamARN"}}}},"output":{"type":"structure","members":{"ShardIterator":{}}},"staticContextParams":{"OperationType":{"value":"data"}}},"IncreaseStreamRetentionPeriod":{"input":{"type":"structure","required":["RetentionPeriodHours"],"members":{"StreamName":{},"RetentionPeriodHours":{"type":"integer"},"StreamARN":{"contextParam":{"name":"StreamARN"}}}},"staticContextParams":{"OperationType":{"value":"control"}}},"ListShards":{"input":{"type":"structure","members":{"StreamName":{},"NextToken":{},"ExclusiveStartShardId":{},"MaxResults":{"type":"integer"},"StreamCreationTimestamp":{"type":"timestamp"},"ShardFilter":{"type":"structure","required":["Type"],"members":{"Type":{},"ShardId":{},"Timestamp":{"type":"timestamp"}}},"StreamARN":{"contextParam":{"name":"StreamARN"}}}},"output":{"type":"structure","members":{"Shards":{"shape":"Sv"},"NextToken":{}}},"staticContextParams":{"OperationType":{"value":"control"}}},"ListStreamConsumers":{"input":{"type":"structure","required":["StreamARN"],"members":{"StreamARN":{"contextParam":{"name":"StreamARN"}},"NextToken":{},"MaxResults":{"type":"integer"},"StreamCreationTimestamp":{"type":"timestamp"}}},"output":{"type":"structure","members":{"Consumers":{"type":"list","member":{"shape":"S2c"}},"NextToken":{}}},"staticContextParams":{"OperationType":{"value":"control"}}},"ListStreams":{"input":{"type":"structure","members":{"Limit":{"type":"integer"},"ExclusiveStartStreamName":{},"NextToken":{}}},"output":{"type":"structure","required":["StreamNames","HasMoreStreams"],"members":{"StreamNames":{"type":"list","member":{}},"HasMoreStreams":{"type":"boolean"},"NextToken":{},"StreamSummaries":{"type":"list","member":{"type":"structure","required":["StreamName","StreamARN","StreamStatus"],"members":{"StreamName":{},"StreamARN":{},"StreamStatus":{},"StreamModeDetails":{"shape":"S9"},"StreamCreationTimestamp":{"type":"timestamp"}}}}}}},"ListTagsForStream":{"input":{"type":"structure","members":{"StreamName":{},"ExclusiveStartTagKey":{},"Limit":{"type":"integer"},"StreamARN":{"contextParam":{"name":"StreamARN"}}}},"output":{"type":"structure","required":["Tags","HasMoreTags"],"members":{"Tags":{"type":"list","member":{"type":"structure","required":["Key"],"members":{"Key":{},"Value":{}}}},"HasMoreTags":{"type":"boolean"}}},"staticContextParams":{"OperationType":{"value":"control"}}},"MergeShards":{"input":{"type":"structure","required":["ShardToMerge","AdjacentShardToMerge"],"members":{"StreamName":{},"ShardToMerge":{},"AdjacentShardToMerge":{},"StreamARN":{"contextParam":{"name":"StreamARN"}}}},"staticContextParams":{"OperationType":{"value":"control"}}},"PutRecord":{"input":{"type":"structure","required":["Data","PartitionKey"],"members":{"StreamName":{},"Data":{"type":"blob"},"PartitionKey":{},"ExplicitHashKey":{},"SequenceNumberForOrdering":{},"StreamARN":{"contextParam":{"name":"StreamARN"}}}},"output":{"type":"structure","required":["ShardId","SequenceNumber"],"members":{"ShardId":{},"SequenceNumber":{},"EncryptionType":{}}},"staticContextParams":{"OperationType":{"value":"data"}}},"PutRecords":{"input":{"type":"structure","required":["Records"],"members":{"Records":{"type":"list","member":{"type":"structure","required":["Data","PartitionKey"],"members":{"Data":{"type":"blob"},"ExplicitHashKey":{},"PartitionKey":{}}}},"StreamName":{},"StreamARN":{"contextParam":{"name":"StreamARN"}}}},"output":{"type":"structure","required":["Records"],"members":{"FailedRecordCount":{"type":"integer"},"Records":{"type":"list","member":{"type":"structure","members":{"SequenceNumber":{},"ShardId":{},"ErrorCode":{},"ErrorMessage":{}}}},"EncryptionType":{}}},"staticContextParams":{"OperationType":{"value":"data"}}},"PutResourcePolicy":{"input":{"type":"structure","required":["ResourceARN","Policy"],"members":{"ResourceARN":{"contextParam":{"name":"ResourceARN"}},"Policy":{}}},"staticContextParams":{"OperationType":{"value":"control"}}},"RegisterStreamConsumer":{"input":{"type":"structure","required":["StreamARN","ConsumerName"],"members":{"StreamARN":{"contextParam":{"name":"StreamARN"}},"ConsumerName":{}}},"output":{"type":"structure","required":["Consumer"],"members":{"Consumer":{"shape":"S2c"}}},"staticContextParams":{"OperationType":{"value":"control"}}},"RemoveTagsFromStream":{"input":{"type":"structure","required":["TagKeys"],"members":{"StreamName":{},"TagKeys":{"type":"list","member":{}},"StreamARN":{"contextParam":{"name":"StreamARN"}}}},"staticContextParams":{"OperationType":{"value":"control"}}},"SplitShard":{"input":{"type":"structure","required":["ShardToSplit","NewStartingHashKey"],"members":{"StreamName":{},"ShardToSplit":{},"NewStartingHashKey":{},"StreamARN":{"contextParam":{"name":"StreamARN"}}}},"staticContextParams":{"OperationType":{"value":"control"}}},"StartStreamEncryption":{"input":{"type":"structure","required":["EncryptionType","KeyId"],"members":{"StreamName":{},"EncryptionType":{},"KeyId":{},"StreamARN":{"contextParam":{"name":"StreamARN"}}}},"staticContextParams":{"OperationType":{"value":"control"}}},"StopStreamEncryption":{"input":{"type":"structure","required":["EncryptionType","KeyId"],"members":{"StreamName":{},"EncryptionType":{},"KeyId":{},"StreamARN":{"contextParam":{"name":"StreamARN"}}}},"staticContextParams":{"OperationType":{"value":"control"}}},"UpdateShardCount":{"input":{"type":"structure","required":["TargetShardCount","ScalingType"],"members":{"StreamName":{},"TargetShardCount":{"type":"integer"},"ScalingType":{},"StreamARN":{"contextParam":{"name":"StreamARN"}}}},"output":{"type":"structure","members":{"StreamName":{},"CurrentShardCount":{"type":"integer"},"TargetShardCount":{"type":"integer"},"StreamARN":{}}},"staticContextParams":{"OperationType":{"value":"control"}}},"UpdateStreamMode":{"input":{"type":"structure","required":["StreamARN","StreamModeDetails"],"members":{"StreamARN":{"contextParam":{"name":"StreamARN"}},"StreamModeDetails":{"shape":"S9"}}},"staticContextParams":{"OperationType":{"value":"control"}}}},"shapes":{"S9":{"type":"structure","required":["StreamMode"],"members":{"StreamMode":{}}},"Sv":{"type":"list","member":{"type":"structure","required":["ShardId","HashKeyRange","SequenceNumberRange"],"members":{"ShardId":{},"ParentShardId":{},"AdjacentParentShardId":{},"HashKeyRange":{"shape":"Sx"},"SequenceNumberRange":{"type":"structure","required":["StartingSequenceNumber"],"members":{"StartingSequenceNumber":{},"EndingSequenceNumber":{}}}}}},"Sx":{"type":"structure","required":["StartingHashKey","EndingHashKey"],"members":{"StartingHashKey":{},"EndingHashKey":{}}},"S12":{"type":"list","member":{"type":"structure","members":{"ShardLevelMetrics":{"shape":"S14"}}}},"S14":{"type":"list","member":{}},"S1h":{"type":"structure","members":{"StreamName":{},"CurrentShardLevelMetrics":{"shape":"S14"},"DesiredShardLevelMetrics":{"shape":"S14"},"StreamARN":{}}},"S2c":{"type":"structure","required":["ConsumerName","ConsumerARN","ConsumerStatus","ConsumerCreationTimestamp"],"members":{"ConsumerName":{},"ConsumerARN":{},"ConsumerStatus":{},"ConsumerCreationTimestamp":{"type":"timestamp"}}}}}')},10424:function(e){"use strict";e.exports=JSON.parse('{"o":{"DescribeStream":{"input_token":"ExclusiveStartShardId","limit_key":"Limit","more_results":"StreamDescription.HasMoreShards","output_token":"StreamDescription.Shards[-1].ShardId","result_key":"StreamDescription.Shards"},"ListStreamConsumers":{"input_token":"NextToken","limit_key":"MaxResults","output_token":"NextToken"},"ListStreams":{"input_token":"NextToken","limit_key":"Limit","more_results":"HasMoreStreams","output_token":"NextToken","result_key":["StreamNames","StreamSummaries"]}}}')},54059:function(e){"use strict";e.exports=JSON.parse('{"V":{"StreamExists":{"delay":10,"operation":"DescribeStream","maxAttempts":18,"acceptors":[{"expected":"ACTIVE","matcher":"path","state":"success","argument":"StreamDescription.StreamStatus"}]},"StreamNotExists":{"delay":10,"operation":"DescribeStream","maxAttempts":18,"acceptors":[{"expected":"ResourceNotFoundException","matcher":"error","state":"success"}]}}}')}}]);