@microsoft/webiq 0.1.2 → 0.1.3
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/index.d.mts +0 -12
- package/dist/index.d.ts +0 -12
- package/dist/index.js +0 -9
- package/dist/index.mjs +0 -9
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -171,18 +171,6 @@ interface WebSearchParams {
|
|
|
171
171
|
contentFormat?: ContentFormat;
|
|
172
172
|
/** Max characters in content (1-500000, default 10000). */
|
|
173
173
|
maxLength?: number;
|
|
174
|
-
/** Custom search configuration ID (configure at https://www.customsearch.ai/). */
|
|
175
|
-
customSearchConfigId?: string;
|
|
176
|
-
/**
|
|
177
|
-
* Domains to include in results (max 250). For allow-lists longer than ~20
|
|
178
|
-
* domains, use `customSearchConfigId` instead.
|
|
179
|
-
*/
|
|
180
|
-
includeDomains?: string[];
|
|
181
|
-
/**
|
|
182
|
-
* Domains to exclude from results (max 250). For deny-lists longer than ~20
|
|
183
|
-
* domains, use `customSearchConfigId` instead.
|
|
184
|
-
*/
|
|
185
|
-
excludeDomains?: string[];
|
|
186
174
|
/** Per-request timeout in milliseconds (overrides client default). */
|
|
187
175
|
timeout?: number;
|
|
188
176
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -171,18 +171,6 @@ interface WebSearchParams {
|
|
|
171
171
|
contentFormat?: ContentFormat;
|
|
172
172
|
/** Max characters in content (1-500000, default 10000). */
|
|
173
173
|
maxLength?: number;
|
|
174
|
-
/** Custom search configuration ID (configure at https://www.customsearch.ai/). */
|
|
175
|
-
customSearchConfigId?: string;
|
|
176
|
-
/**
|
|
177
|
-
* Domains to include in results (max 250). For allow-lists longer than ~20
|
|
178
|
-
* domains, use `customSearchConfigId` instead.
|
|
179
|
-
*/
|
|
180
|
-
includeDomains?: string[];
|
|
181
|
-
/**
|
|
182
|
-
* Domains to exclude from results (max 250). For deny-lists longer than ~20
|
|
183
|
-
* domains, use `customSearchConfigId` instead.
|
|
184
|
-
*/
|
|
185
|
-
excludeDomains?: string[];
|
|
186
174
|
/** Per-request timeout in milliseconds (overrides client default). */
|
|
187
175
|
timeout?: number;
|
|
188
176
|
/**
|
package/dist/index.js
CHANGED
|
@@ -84,15 +84,6 @@ var WebResource = class {
|
|
|
84
84
|
if (options?.maxLength !== void 0) {
|
|
85
85
|
payload.maxLength = options.maxLength;
|
|
86
86
|
}
|
|
87
|
-
if (options?.customSearchConfigId !== void 0) {
|
|
88
|
-
payload.customSearchConfigId = options.customSearchConfigId;
|
|
89
|
-
}
|
|
90
|
-
if (options?.includeDomains !== void 0) {
|
|
91
|
-
payload.includeDomains = options.includeDomains;
|
|
92
|
-
}
|
|
93
|
-
if (options?.excludeDomains !== void 0) {
|
|
94
|
-
payload.excludeDomains = options.excludeDomains;
|
|
95
|
-
}
|
|
96
87
|
const result = await this.transport.request({
|
|
97
88
|
method: "POST",
|
|
98
89
|
path: "/search/web",
|
package/dist/index.mjs
CHANGED
|
@@ -82,15 +82,6 @@ var WebResource = class {
|
|
|
82
82
|
if (options?.maxLength !== void 0) {
|
|
83
83
|
payload.maxLength = options.maxLength;
|
|
84
84
|
}
|
|
85
|
-
if (options?.customSearchConfigId !== void 0) {
|
|
86
|
-
payload.customSearchConfigId = options.customSearchConfigId;
|
|
87
|
-
}
|
|
88
|
-
if (options?.includeDomains !== void 0) {
|
|
89
|
-
payload.includeDomains = options.includeDomains;
|
|
90
|
-
}
|
|
91
|
-
if (options?.excludeDomains !== void 0) {
|
|
92
|
-
payload.excludeDomains = options.excludeDomains;
|
|
93
|
-
}
|
|
94
85
|
const result = await this.transport.request({
|
|
95
86
|
method: "POST",
|
|
96
87
|
path: "/search/web",
|