@wildix/stream-client 4.0.9 → 4.0.11
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.
- package/dist-cjs/runtimeConfig.native.js +3 -0
- package/dist-cjs/schemas/schemas_0.js +5 -2
- package/dist-es/runtimeConfig.native.js +3 -0
- package/dist-es/schemas/schemas_0.js +5 -2
- package/dist-types/commands/SearchMessagesCommand.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +11 -1
- package/dist-types/runtimeConfig.native.d.ts +2 -1
- package/package.json +8 -6
|
@@ -2,13 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
|
+
const smithy_react_native_1 = require("@wildix/smithy-react-native");
|
|
5
6
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
7
|
const getRuntimeConfig = (config) => {
|
|
7
8
|
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
|
+
(0, smithy_react_native_1.installReactNativeGlobals)();
|
|
8
10
|
return {
|
|
9
11
|
...browserDefaults,
|
|
10
12
|
...config,
|
|
11
13
|
runtime: "react-native",
|
|
14
|
+
requestHandler: smithy_react_native_1.XhrHttpHandler.create(config?.requestHandler),
|
|
12
15
|
sha256: config?.sha256 ?? sha256_js_1.Sha256,
|
|
13
16
|
};
|
|
14
17
|
};
|
|
@@ -326,6 +326,7 @@ const _hA = "hasAttachments";
|
|
|
326
326
|
const _hE = "httpError";
|
|
327
327
|
const _hH = "httpHeader";
|
|
328
328
|
const _hHi = "hideHistory";
|
|
329
|
+
const _hL = "hasLinks";
|
|
329
330
|
const _hQ = "httpQuery";
|
|
330
331
|
const _he = "height";
|
|
331
332
|
const _hi = "hidden";
|
|
@@ -411,6 +412,7 @@ const _ro = "role";
|
|
|
411
412
|
const _s = "smithy.ts.sdk.synthetic.wildix.stream";
|
|
412
413
|
const _sI = "sectionId";
|
|
413
414
|
const _sIe = "sectionIds";
|
|
415
|
+
const _sIen = "senderIds";
|
|
414
416
|
const _sR = "serviceRecipient";
|
|
415
417
|
const _sS = "smsStatus";
|
|
416
418
|
const _sT = "serviceTitle";
|
|
@@ -1211,8 +1213,8 @@ exports.SearchMessageHit$ = [3, n1, _SMH,
|
|
|
1211
1213
|
];
|
|
1212
1214
|
exports.SearchMessagesInput$ = [3, n1, _SMI,
|
|
1213
1215
|
0,
|
|
1214
|
-
[_cIo, _uI, _q_, _cI, _hA, _aT, _mTi, _siz, _cu, _sor],
|
|
1215
|
-
[[0, { [_hQ]: _co }], [0, { [_hQ]: _uI }], [0, { [_hQ]: _q_ }], [0, { [_hQ]: _cI }], [2, { [_hQ]: _hA }], [64 | 0, { [_hQ]: _aT }], [64 | 0, { [_hQ]: _mTi }], [1, { [_hQ]: _siz }], [0, { [_hQ]: _cu }], [0, { [_hQ]: _sor }]]
|
|
1216
|
+
[_cIo, _uI, _q_, _cI, _hA, _aT, _mTi, _hL, _sIen, _siz, _cu, _sor],
|
|
1217
|
+
[[0, { [_hQ]: _co }], [0, { [_hQ]: _uI }], [0, { [_hQ]: _q_ }], [0, { [_hQ]: _cI }], [2, { [_hQ]: _hA }], [64 | 0, { [_hQ]: _aT }], [64 | 0, { [_hQ]: _mTi }], [2, { [_hQ]: _hL }], [64 | 0, { [_hQ]: _sIen }], [1, { [_hQ]: _siz }], [0, { [_hQ]: _cu }], [0, { [_hQ]: _sor }]]
|
|
1216
1218
|
];
|
|
1217
1219
|
exports.SearchMessagesOutput$ = [3, n1, _SMO,
|
|
1218
1220
|
0,
|
|
@@ -1435,6 +1437,7 @@ var SectionIdList = 64 | 0;
|
|
|
1435
1437
|
var SectionList = [1, n1, _SL,
|
|
1436
1438
|
0, () => exports.Section$
|
|
1437
1439
|
];
|
|
1440
|
+
var SenderIdList = 64 | 0;
|
|
1438
1441
|
var UserIdList = 64 | 0;
|
|
1439
1442
|
var UserToInviteList = [1, n1, _UTIL,
|
|
1440
1443
|
0, () => exports.UserToInvite$
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
|
+
import { installReactNativeGlobals, XhrHttpHandler as RequestHandler } from "@wildix/smithy-react-native";
|
|
2
3
|
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
4
|
export const getRuntimeConfig = (config) => {
|
|
4
5
|
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
6
|
+
installReactNativeGlobals();
|
|
5
7
|
return {
|
|
6
8
|
...browserDefaults,
|
|
7
9
|
...config,
|
|
8
10
|
runtime: "react-native",
|
|
11
|
+
requestHandler: RequestHandler.create(config?.requestHandler),
|
|
9
12
|
sha256: config?.sha256 ?? Sha256,
|
|
10
13
|
};
|
|
11
14
|
};
|
|
@@ -319,6 +319,7 @@ const _hA = "hasAttachments";
|
|
|
319
319
|
const _hE = "httpError";
|
|
320
320
|
const _hH = "httpHeader";
|
|
321
321
|
const _hHi = "hideHistory";
|
|
322
|
+
const _hL = "hasLinks";
|
|
322
323
|
const _hQ = "httpQuery";
|
|
323
324
|
const _he = "height";
|
|
324
325
|
const _hi = "hidden";
|
|
@@ -404,6 +405,7 @@ const _ro = "role";
|
|
|
404
405
|
const _s = "smithy.ts.sdk.synthetic.wildix.stream";
|
|
405
406
|
const _sI = "sectionId";
|
|
406
407
|
const _sIe = "sectionIds";
|
|
408
|
+
const _sIen = "senderIds";
|
|
407
409
|
const _sR = "serviceRecipient";
|
|
408
410
|
const _sS = "smsStatus";
|
|
409
411
|
const _sT = "serviceTitle";
|
|
@@ -1204,8 +1206,8 @@ export var SearchMessageHit$ = [3, n1, _SMH,
|
|
|
1204
1206
|
];
|
|
1205
1207
|
export var SearchMessagesInput$ = [3, n1, _SMI,
|
|
1206
1208
|
0,
|
|
1207
|
-
[_cIo, _uI, _q_, _cI, _hA, _aT, _mTi, _siz, _cu, _sor],
|
|
1208
|
-
[[0, { [_hQ]: _co }], [0, { [_hQ]: _uI }], [0, { [_hQ]: _q_ }], [0, { [_hQ]: _cI }], [2, { [_hQ]: _hA }], [64 | 0, { [_hQ]: _aT }], [64 | 0, { [_hQ]: _mTi }], [1, { [_hQ]: _siz }], [0, { [_hQ]: _cu }], [0, { [_hQ]: _sor }]]
|
|
1209
|
+
[_cIo, _uI, _q_, _cI, _hA, _aT, _mTi, _hL, _sIen, _siz, _cu, _sor],
|
|
1210
|
+
[[0, { [_hQ]: _co }], [0, { [_hQ]: _uI }], [0, { [_hQ]: _q_ }], [0, { [_hQ]: _cI }], [2, { [_hQ]: _hA }], [64 | 0, { [_hQ]: _aT }], [64 | 0, { [_hQ]: _mTi }], [2, { [_hQ]: _hL }], [64 | 0, { [_hQ]: _sIen }], [1, { [_hQ]: _siz }], [0, { [_hQ]: _cu }], [0, { [_hQ]: _sor }]]
|
|
1209
1211
|
];
|
|
1210
1212
|
export var SearchMessagesOutput$ = [3, n1, _SMO,
|
|
1211
1213
|
0,
|
|
@@ -1428,6 +1430,7 @@ var SectionIdList = 64 | 0;
|
|
|
1428
1430
|
var SectionList = [1, n1, _SL,
|
|
1429
1431
|
0, () => Section$
|
|
1430
1432
|
];
|
|
1433
|
+
var SenderIdList = 64 | 0;
|
|
1431
1434
|
var UserIdList = 64 | 0;
|
|
1432
1435
|
var UserToInviteList = [1, n1, _UTIL,
|
|
1433
1436
|
0, () => UserToInvite$
|
|
@@ -48,6 +48,10 @@ declare const SearchMessagesCommand_base: {
|
|
|
48
48
|
* mimeTypes: [ // MimeTypeList
|
|
49
49
|
* "STRING_VALUE",
|
|
50
50
|
* ],
|
|
51
|
+
* hasLinks: true || false,
|
|
52
|
+
* senderIds: [ // SenderIdList
|
|
53
|
+
* "STRING_VALUE",
|
|
54
|
+
* ],
|
|
51
55
|
* size: Number("int"),
|
|
52
56
|
* cursor: "STRING_VALUE",
|
|
53
57
|
* sort: "relevance" || "recency" || "recency_asc",
|
|
@@ -3031,7 +3031,7 @@ export interface SearchMessagesInput {
|
|
|
3031
3031
|
*/
|
|
3032
3032
|
userId?: string | undefined;
|
|
3033
3033
|
/**
|
|
3034
|
-
* Search text. Optional when
|
|
3034
|
+
* Search text. Optional when a narrowing filter (`hasAttachments`/`attachmentTypes`/`mimeTypes`/`hasLinks`/`senderIds`) is provided.
|
|
3035
3035
|
* @public
|
|
3036
3036
|
*/
|
|
3037
3037
|
q?: string | undefined;
|
|
@@ -3055,6 +3055,16 @@ export interface SearchMessagesInput {
|
|
|
3055
3055
|
* @public
|
|
3056
3056
|
*/
|
|
3057
3057
|
mimeTypes?: string[] | undefined;
|
|
3058
|
+
/**
|
|
3059
|
+
* When true, matches only messages whose text contains at least one URL. Only messages indexed after link detection shipped carry the flag — older messages need a search reindex to become matchable.
|
|
3060
|
+
* @public
|
|
3061
|
+
*/
|
|
3062
|
+
hasLinks?: boolean | undefined;
|
|
3063
|
+
/**
|
|
3064
|
+
* Restrict to messages authored by any of these users.
|
|
3065
|
+
* @public
|
|
3066
|
+
*/
|
|
3067
|
+
senderIds?: string[] | undefined;
|
|
3058
3068
|
/**
|
|
3059
3069
|
* Page size. Default 20, max 50.
|
|
3060
3070
|
* @public
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import { XhrHttpHandler as RequestHandler } from "@wildix/smithy-react-native";
|
|
1
2
|
import type { StreamServiceClientConfig } from "./StreamServiceClient";
|
|
2
3
|
/**
|
|
3
4
|
* @internal
|
|
4
5
|
*/
|
|
5
6
|
export declare const getRuntimeConfig: (config: StreamServiceClientConfig) => {
|
|
6
7
|
runtime: string;
|
|
8
|
+
requestHandler: RequestHandler;
|
|
7
9
|
sha256: import("@smithy/types").HashConstructor;
|
|
8
|
-
requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/core/protocols").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
|
|
9
10
|
cacheMiddleware?: boolean;
|
|
10
11
|
protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsRestJsonProtocol;
|
|
11
12
|
protocolSettings: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/stream-client",
|
|
3
3
|
"description": "@wildix/stream-client client",
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.11",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
"@smithy/core": "^3.24.5",
|
|
25
25
|
"@smithy/fetch-http-handler": "^5.4.5",
|
|
26
26
|
"@smithy/node-http-handler": "^4.7.5",
|
|
27
|
-
"@smithy/types": "^4.14.2"
|
|
27
|
+
"@smithy/types": "^4.14.2",
|
|
28
|
+
"@wildix/smithy-react-native": "^1.0.0"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|
|
30
31
|
"@tsconfig/node20": "20.1.8",
|
|
@@ -48,10 +49,11 @@
|
|
|
48
49
|
"dist-*/**"
|
|
49
50
|
],
|
|
50
51
|
"license": "Apache-2.0",
|
|
51
|
-
"browser": {
|
|
52
|
-
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
|
53
|
-
},
|
|
54
52
|
"react-native": {
|
|
53
|
+
"@aws-sdk/core/client": "@aws-sdk/core/dist-es/submodules/client/index.native.js",
|
|
55
54
|
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
|
55
|
+
},
|
|
56
|
+
"browser": {
|
|
57
|
+
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
|
56
58
|
}
|
|
57
|
-
}
|
|
59
|
+
}
|