@censys/platform-sdk 0.10.3 → 0.10.5
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/README.md +23 -2
- package/docs/sdks/adversaryinvestigation/README.md +625 -0
- package/docs/sdks/threathunting/README.md +91 -8
- package/funcs/accountManagementGetMemberCreditUsage.d.ts.map +1 -1
- package/funcs/accountManagementGetMemberCreditUsage.js +2 -1
- package/funcs/accountManagementGetMemberCreditUsage.js.map +1 -1
- package/funcs/accountManagementGetOrganizationCreditUsage.d.ts.map +1 -1
- package/funcs/accountManagementGetOrganizationCreditUsage.js +2 -1
- package/funcs/accountManagementGetOrganizationCreditUsage.js.map +1 -1
- package/funcs/accountManagementGetOrganizationCredits.d.ts.map +1 -1
- package/funcs/accountManagementGetOrganizationCredits.js +2 -1
- package/funcs/accountManagementGetOrganizationCredits.js.map +1 -1
- package/funcs/accountManagementGetOrganizationDetails.d.ts.map +1 -1
- package/funcs/accountManagementGetOrganizationDetails.js +2 -1
- package/funcs/accountManagementGetOrganizationDetails.js.map +1 -1
- package/funcs/accountManagementGetUserCredits.d.ts.map +1 -1
- package/funcs/accountManagementGetUserCredits.js +2 -1
- package/funcs/accountManagementGetUserCredits.js.map +1 -1
- package/funcs/accountManagementGetUserCreditsUsage.d.ts.map +1 -1
- package/funcs/accountManagementGetUserCreditsUsage.js +2 -1
- package/funcs/accountManagementGetUserCreditsUsage.js.map +1 -1
- package/funcs/accountManagementInviteUserToOrganization.d.ts.map +1 -1
- package/funcs/accountManagementInviteUserToOrganization.js +2 -1
- package/funcs/accountManagementInviteUserToOrganization.js.map +1 -1
- package/funcs/accountManagementListOrganizationMembers.d.ts.map +1 -1
- package/funcs/accountManagementListOrganizationMembers.js +2 -1
- package/funcs/accountManagementListOrganizationMembers.js.map +1 -1
- package/funcs/accountManagementRemoveOrganizationMember.d.ts.map +1 -1
- package/funcs/accountManagementRemoveOrganizationMember.js +2 -1
- package/funcs/accountManagementRemoveOrganizationMember.js.map +1 -1
- package/funcs/accountManagementUpdateOrganizationMember.d.ts.map +1 -1
- package/funcs/accountManagementUpdateOrganizationMember.js +2 -1
- package/funcs/accountManagementUpdateOrganizationMember.js.map +1 -1
- package/funcs/collectionsAggregate.d.ts.map +1 -1
- package/funcs/collectionsAggregate.js +2 -1
- package/funcs/collectionsAggregate.js.map +1 -1
- package/funcs/collectionsCreate.d.ts.map +1 -1
- package/funcs/collectionsCreate.js +2 -1
- package/funcs/collectionsCreate.js.map +1 -1
- package/funcs/collectionsDelete.d.ts.map +1 -1
- package/funcs/collectionsDelete.js +2 -1
- package/funcs/collectionsDelete.js.map +1 -1
- package/funcs/collectionsGet.d.ts.map +1 -1
- package/funcs/collectionsGet.js +2 -1
- package/funcs/collectionsGet.js.map +1 -1
- package/funcs/collectionsList.d.ts.map +1 -1
- package/funcs/collectionsList.js +2 -1
- package/funcs/collectionsList.js.map +1 -1
- package/funcs/collectionsListEvents.d.ts.map +1 -1
- package/funcs/collectionsListEvents.js +2 -1
- package/funcs/collectionsListEvents.js.map +1 -1
- package/funcs/collectionsSearch.d.ts.map +1 -1
- package/funcs/collectionsSearch.js +2 -1
- package/funcs/collectionsSearch.js.map +1 -1
- package/funcs/collectionsUpdate.d.ts.map +1 -1
- package/funcs/collectionsUpdate.js +2 -1
- package/funcs/collectionsUpdate.js.map +1 -1
- package/funcs/globalDataAggregate.d.ts.map +1 -1
- package/funcs/globalDataAggregate.js +2 -1
- package/funcs/globalDataAggregate.js.map +1 -1
- package/funcs/globalDataConvertLegacySearchQueries.d.ts.map +1 -1
- package/funcs/globalDataConvertLegacySearchQueries.js +2 -1
- package/funcs/globalDataConvertLegacySearchQueries.js.map +1 -1
- package/funcs/globalDataCreateTrackedScan.d.ts.map +1 -1
- package/funcs/globalDataCreateTrackedScan.js +2 -1
- package/funcs/globalDataCreateTrackedScan.js.map +1 -1
- package/funcs/globalDataGetCertificate.d.ts.map +1 -1
- package/funcs/globalDataGetCertificate.js +2 -1
- package/funcs/globalDataGetCertificate.js.map +1 -1
- package/funcs/globalDataGetCertificateRaw.d.ts.map +1 -1
- package/funcs/globalDataGetCertificateRaw.js +2 -1
- package/funcs/globalDataGetCertificateRaw.js.map +1 -1
- package/funcs/globalDataGetCertificates.d.ts.map +1 -1
- package/funcs/globalDataGetCertificates.js +2 -1
- package/funcs/globalDataGetCertificates.js.map +1 -1
- package/funcs/globalDataGetCertificatesRaw.d.ts.map +1 -1
- package/funcs/globalDataGetCertificatesRaw.js +2 -1
- package/funcs/globalDataGetCertificatesRaw.js.map +1 -1
- package/funcs/globalDataGetHost.d.ts.map +1 -1
- package/funcs/globalDataGetHost.js +2 -1
- package/funcs/globalDataGetHost.js.map +1 -1
- package/funcs/globalDataGetHostTimeline.d.ts.map +1 -1
- package/funcs/globalDataGetHostTimeline.js +2 -1
- package/funcs/globalDataGetHostTimeline.js.map +1 -1
- package/funcs/globalDataGetHosts.d.ts.map +1 -1
- package/funcs/globalDataGetHosts.js +2 -1
- package/funcs/globalDataGetHosts.js.map +1 -1
- package/funcs/globalDataGetTrackedScan.d.ts.map +1 -1
- package/funcs/globalDataGetTrackedScan.js +2 -1
- package/funcs/globalDataGetTrackedScan.js.map +1 -1
- package/funcs/globalDataGetWebProperties.d.ts.map +1 -1
- package/funcs/globalDataGetWebProperties.js +2 -1
- package/funcs/globalDataGetWebProperties.js.map +1 -1
- package/funcs/globalDataGetWebProperty.d.ts.map +1 -1
- package/funcs/globalDataGetWebProperty.js +2 -1
- package/funcs/globalDataGetWebProperty.js.map +1 -1
- package/funcs/globalDataListServicesOnHost.d.ts.map +1 -1
- package/funcs/globalDataListServicesOnHost.js +2 -1
- package/funcs/globalDataListServicesOnHost.js.map +1 -1
- package/funcs/globalDataSearch.d.ts.map +1 -1
- package/funcs/globalDataSearch.js +2 -1
- package/funcs/globalDataSearch.js.map +1 -1
- package/funcs/threatHuntingCreateCenseyeJob.d.ts +1 -1
- package/funcs/threatHuntingCreateCenseyeJob.d.ts.map +1 -1
- package/funcs/threatHuntingCreateCenseyeJob.js +3 -2
- package/funcs/threatHuntingCreateCenseyeJob.js.map +1 -1
- package/funcs/threatHuntingCreateTrackedScan.d.ts +1 -1
- package/funcs/threatHuntingCreateTrackedScan.d.ts.map +1 -1
- package/funcs/threatHuntingCreateTrackedScan.js +3 -2
- package/funcs/threatHuntingCreateTrackedScan.js.map +1 -1
- package/funcs/threatHuntingGetCenseyeJob.d.ts +1 -1
- package/funcs/threatHuntingGetCenseyeJob.d.ts.map +1 -1
- package/funcs/threatHuntingGetCenseyeJob.js +3 -2
- package/funcs/threatHuntingGetCenseyeJob.js.map +1 -1
- package/funcs/threatHuntingGetCenseyeJobResults.d.ts +1 -1
- package/funcs/threatHuntingGetCenseyeJobResults.d.ts.map +1 -1
- package/funcs/threatHuntingGetCenseyeJobResults.js +3 -2
- package/funcs/threatHuntingGetCenseyeJobResults.js.map +1 -1
- package/funcs/threatHuntingGetHostObservationsWithCertificate.d.ts +1 -1
- package/funcs/threatHuntingGetHostObservationsWithCertificate.d.ts.map +1 -1
- package/funcs/threatHuntingGetHostObservationsWithCertificate.js +3 -2
- package/funcs/threatHuntingGetHostObservationsWithCertificate.js.map +1 -1
- package/funcs/threatHuntingGetTrackedScanThreatHunting.d.ts.map +1 -1
- package/funcs/threatHuntingGetTrackedScanThreatHunting.js +2 -1
- package/funcs/threatHuntingGetTrackedScanThreatHunting.js.map +1 -1
- package/funcs/threatHuntingListCenseyeJobs.d.ts +18 -0
- package/funcs/threatHuntingListCenseyeJobs.d.ts.map +1 -0
- package/funcs/threatHuntingListCenseyeJobs.js +134 -0
- package/funcs/threatHuntingListCenseyeJobs.js.map +1 -0
- package/funcs/threatHuntingListThreats.d.ts +1 -1
- package/funcs/threatHuntingListThreats.d.ts.map +1 -1
- package/funcs/threatHuntingListThreats.js +3 -2
- package/funcs/threatHuntingListThreats.js.map +1 -1
- package/funcs/threatHuntingValueCounts.d.ts +1 -1
- package/funcs/threatHuntingValueCounts.d.ts.map +1 -1
- package/funcs/threatHuntingValueCounts.js +3 -2
- package/funcs/threatHuntingValueCounts.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/lib/encodings.d.ts +1 -0
- package/lib/encodings.d.ts.map +1 -1
- package/lib/encodings.js +7 -0
- package/lib/encodings.js.map +1 -1
- package/lib/sdks.d.ts +1 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +2 -4
- package/lib/sdks.js.map +1 -1
- package/models/components/censeyejobslistresponse.d.ts +18 -0
- package/models/components/censeyejobslistresponse.d.ts.map +1 -0
- package/models/components/censeyejobslistresponse.js +57 -0
- package/models/components/censeyejobslistresponse.js.map +1 -0
- package/models/components/endpointscan.d.ts +2 -0
- package/models/components/endpointscan.d.ts.map +1 -1
- package/models/components/endpointscan.js +2 -0
- package/models/components/endpointscan.js.map +1 -1
- package/models/components/endpointscanstate.d.ts +2 -0
- package/models/components/endpointscanstate.d.ts.map +1 -1
- package/models/components/endpointscanstate.js +2 -0
- package/models/components/endpointscanstate.js.map +1 -1
- package/models/components/greynoise.d.ts +4 -0
- package/models/components/greynoise.d.ts.map +1 -1
- package/models/components/greynoise.js +6 -0
- package/models/components/greynoise.js.map +1 -1
- package/models/components/index.d.ts +6 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +6 -0
- package/models/components/index.js.map +1 -1
- package/models/components/mcp.d.ts +18 -0
- package/models/components/mcp.d.ts.map +1 -0
- package/models/components/mcp.js +66 -0
- package/models/components/mcp.js.map +1 -0
- package/models/components/mcpprompt.d.ts +10 -0
- package/models/components/mcpprompt.d.ts.map +1 -0
- package/models/components/mcpprompt.js +50 -0
- package/models/components/mcpprompt.js.map +1 -0
- package/models/components/mcpresource.d.ts +14 -0
- package/models/components/mcpresource.d.ts.map +1 -0
- package/models/components/mcpresource.js +59 -0
- package/models/components/mcpresource.js.map +1 -0
- package/models/components/mcptool.d.ts +11 -0
- package/models/components/mcptool.d.ts.map +1 -0
- package/models/components/mcptool.js +51 -0
- package/models/components/mcptool.js.map +1 -0
- package/models/components/responseenvelopecenseyejobslistresponse.d.ts +11 -0
- package/models/components/responseenvelopecenseyejobslistresponse.d.ts.map +1 -0
- package/models/components/responseenvelopecenseyejobslistresponse.js +51 -0
- package/models/components/responseenvelopecenseyejobslistresponse.js.map +1 -0
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/v3threathuntingcenseyejobslist.d.ts +55 -0
- package/models/operations/v3threathuntingcenseyejobslist.d.ts.map +1 -0
- package/models/operations/v3threathuntingcenseyejobslist.js +80 -0
- package/models/operations/v3threathuntingcenseyejobslist.js.map +1 -0
- package/package.json +1 -1
- package/sdk/adversaryinvestigation.d.ts +54 -0
- package/sdk/adversaryinvestigation.d.ts.map +1 -0
- package/sdk/adversaryinvestigation.js +82 -0
- package/sdk/adversaryinvestigation.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/threathunting.d.ts +14 -7
- package/sdk/threathunting.d.ts.map +1 -1
- package/sdk/threathunting.js +17 -7
- package/sdk/threathunting.js.map +1 -1
- package/src/funcs/accountManagementGetMemberCreditUsage.ts +3 -1
- package/src/funcs/accountManagementGetOrganizationCreditUsage.ts +3 -1
- package/src/funcs/accountManagementGetOrganizationCredits.ts +3 -1
- package/src/funcs/accountManagementGetOrganizationDetails.ts +3 -1
- package/src/funcs/accountManagementGetUserCredits.ts +3 -1
- package/src/funcs/accountManagementGetUserCreditsUsage.ts +3 -1
- package/src/funcs/accountManagementInviteUserToOrganization.ts +3 -1
- package/src/funcs/accountManagementListOrganizationMembers.ts +3 -1
- package/src/funcs/accountManagementRemoveOrganizationMember.ts +3 -1
- package/src/funcs/accountManagementUpdateOrganizationMember.ts +3 -1
- package/src/funcs/collectionsAggregate.ts +3 -1
- package/src/funcs/collectionsCreate.ts +3 -1
- package/src/funcs/collectionsDelete.ts +3 -1
- package/src/funcs/collectionsGet.ts +3 -1
- package/src/funcs/collectionsList.ts +3 -1
- package/src/funcs/collectionsListEvents.ts +3 -1
- package/src/funcs/collectionsSearch.ts +3 -1
- package/src/funcs/collectionsUpdate.ts +3 -1
- package/src/funcs/globalDataAggregate.ts +3 -1
- package/src/funcs/globalDataConvertLegacySearchQueries.ts +3 -1
- package/src/funcs/globalDataCreateTrackedScan.ts +3 -1
- package/src/funcs/globalDataGetCertificate.ts +3 -1
- package/src/funcs/globalDataGetCertificateRaw.ts +3 -1
- package/src/funcs/globalDataGetCertificates.ts +3 -1
- package/src/funcs/globalDataGetCertificatesRaw.ts +3 -1
- package/src/funcs/globalDataGetHost.ts +3 -1
- package/src/funcs/globalDataGetHostTimeline.ts +3 -1
- package/src/funcs/globalDataGetHosts.ts +3 -1
- package/src/funcs/globalDataGetTrackedScan.ts +3 -1
- package/src/funcs/globalDataGetWebProperties.ts +3 -1
- package/src/funcs/globalDataGetWebProperty.ts +3 -1
- package/src/funcs/globalDataListServicesOnHost.ts +3 -1
- package/src/funcs/globalDataSearch.ts +3 -1
- package/src/funcs/threatHuntingCreateCenseyeJob.ts +4 -2
- package/src/funcs/threatHuntingCreateTrackedScan.ts +4 -2
- package/src/funcs/threatHuntingGetCenseyeJob.ts +4 -2
- package/src/funcs/threatHuntingGetCenseyeJobResults.ts +4 -2
- package/src/funcs/threatHuntingGetHostObservationsWithCertificate.ts +4 -2
- package/src/funcs/threatHuntingGetTrackedScanThreatHunting.ts +3 -1
- package/src/funcs/threatHuntingListCenseyeJobs.ts +199 -0
- package/src/funcs/threatHuntingListThreats.ts +4 -2
- package/src/funcs/threatHuntingValueCounts.ts +4 -2
- package/src/lib/config.ts +4 -4
- package/src/lib/encodings.ts +9 -0
- package/src/lib/sdks.ts +3 -6
- package/src/models/components/censeyejobslistresponse.ts +45 -0
- package/src/models/components/endpointscan.ts +3 -0
- package/src/models/components/endpointscanstate.ts +3 -0
- package/src/models/components/greynoise.ts +10 -0
- package/src/models/components/index.ts +6 -0
- package/src/models/components/mcp.ts +48 -0
- package/src/models/components/mcpprompt.ts +31 -0
- package/src/models/components/mcpresource.ts +44 -0
- package/src/models/components/mcptool.ts +30 -0
- package/src/models/components/responseenvelopecenseyejobslistresponse.ts +41 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/v3threathuntingcenseyejobslist.ts +115 -0
- package/src/sdk/adversaryinvestigation.ts +138 -0
- package/src/sdk/sdk.ts +8 -0
- package/src/sdk/threathunting.ts +25 -7
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -154,7 +155,8 @@ async function $do(
|
|
|
154
155
|
|
|
155
156
|
const doResult = await client._do(req, {
|
|
156
157
|
context,
|
|
157
|
-
|
|
158
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
159
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
158
160
|
retryConfig: context.retryConfig,
|
|
159
161
|
retryCodes: context.retryCodes,
|
|
160
162
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
6
|
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -145,7 +146,8 @@ async function $do(
|
|
|
145
146
|
|
|
146
147
|
const doResult = await client._do(req, {
|
|
147
148
|
context,
|
|
148
|
-
|
|
149
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
150
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
149
151
|
retryConfig: context.retryConfig,
|
|
150
152
|
retryCodes: context.retryCodes,
|
|
151
153
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -150,7 +151,8 @@ async function $do(
|
|
|
150
151
|
|
|
151
152
|
const doResult = await client._do(req, {
|
|
152
153
|
context,
|
|
153
|
-
|
|
154
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
155
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
154
156
|
retryConfig: context.retryConfig,
|
|
155
157
|
retryCodes: context.retryCodes,
|
|
156
158
|
});
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
6
7
|
import * as M from "../lib/matchers.js";
|
|
7
8
|
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { RequestOptions } from "../lib/sdks.js";
|
|
@@ -117,7 +118,8 @@ async function $do(
|
|
|
117
118
|
|
|
118
119
|
const doResult = await client._do(req, {
|
|
119
120
|
context,
|
|
120
|
-
|
|
121
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
122
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
121
123
|
retryConfig: context.retryConfig,
|
|
122
124
|
retryCodes: context.retryCodes,
|
|
123
125
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -144,7 +145,8 @@ async function $do(
|
|
|
144
145
|
|
|
145
146
|
const doResult = await client._do(req, {
|
|
146
147
|
context,
|
|
147
|
-
|
|
148
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
149
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
148
150
|
retryConfig: context.retryConfig,
|
|
149
151
|
retryCodes: context.retryCodes,
|
|
150
152
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
6
|
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -158,7 +159,8 @@ async function $do(
|
|
|
158
159
|
|
|
159
160
|
const doResult = await client._do(req, {
|
|
160
161
|
context,
|
|
161
|
-
|
|
162
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
163
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
162
164
|
retryConfig: context.retryConfig,
|
|
163
165
|
retryCodes: context.retryCodes,
|
|
164
166
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -151,7 +152,8 @@ async function $do(
|
|
|
151
152
|
|
|
152
153
|
const doResult = await client._do(req, {
|
|
153
154
|
context,
|
|
154
|
-
|
|
155
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
156
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
155
157
|
retryConfig: context.retryConfig,
|
|
156
158
|
retryCodes: context.retryCodes,
|
|
157
159
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
6
|
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -159,7 +160,8 @@ async function $do(
|
|
|
159
160
|
|
|
160
161
|
const doResult = await client._do(req, {
|
|
161
162
|
context,
|
|
162
|
-
|
|
163
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
164
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
163
165
|
retryConfig: context.retryConfig,
|
|
164
166
|
retryCodes: context.retryCodes,
|
|
165
167
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
6
|
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -162,7 +163,8 @@ async function $do(
|
|
|
162
163
|
|
|
163
164
|
const doResult = await client._do(req, {
|
|
164
165
|
context,
|
|
165
|
-
|
|
166
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
167
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
166
168
|
retryConfig: context.retryConfig,
|
|
167
169
|
retryCodes: context.retryCodes,
|
|
168
170
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -154,7 +155,8 @@ async function $do(
|
|
|
154
155
|
|
|
155
156
|
const doResult = await client._do(req, {
|
|
156
157
|
context,
|
|
157
|
-
|
|
158
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
159
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
158
160
|
retryConfig: context.retryConfig,
|
|
159
161
|
retryCodes: context.retryCodes,
|
|
160
162
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeJSON } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -144,7 +145,8 @@ async function $do(
|
|
|
144
145
|
|
|
145
146
|
const doResult = await client._do(req, {
|
|
146
147
|
context,
|
|
147
|
-
|
|
148
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
149
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
148
150
|
retryConfig: context.retryConfig,
|
|
149
151
|
retryCodes: context.retryCodes,
|
|
150
152
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -153,7 +154,8 @@ async function $do(
|
|
|
153
154
|
|
|
154
155
|
const doResult = await client._do(req, {
|
|
155
156
|
context,
|
|
156
|
-
|
|
157
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
158
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
157
159
|
retryConfig: context.retryConfig,
|
|
158
160
|
retryCodes: context.retryCodes,
|
|
159
161
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -147,7 +148,8 @@ async function $do(
|
|
|
147
148
|
|
|
148
149
|
const doResult = await client._do(req, {
|
|
149
150
|
context,
|
|
150
|
-
|
|
151
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
152
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
151
153
|
retryConfig: context.retryConfig,
|
|
152
154
|
retryCodes: context.retryCodes,
|
|
153
155
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -144,7 +145,8 @@ async function $do(
|
|
|
144
145
|
|
|
145
146
|
const doResult = await client._do(req, {
|
|
146
147
|
context,
|
|
147
|
-
|
|
148
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
149
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
148
150
|
retryConfig: context.retryConfig,
|
|
149
151
|
retryCodes: context.retryCodes,
|
|
150
152
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -156,7 +157,8 @@ async function $do(
|
|
|
156
157
|
|
|
157
158
|
const doResult = await client._do(req, {
|
|
158
159
|
context,
|
|
159
|
-
|
|
160
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
161
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
160
162
|
retryConfig: context.retryConfig,
|
|
161
163
|
retryCodes: context.retryCodes,
|
|
162
164
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -152,7 +153,8 @@ async function $do(
|
|
|
152
153
|
|
|
153
154
|
const doResult = await client._do(req, {
|
|
154
155
|
context,
|
|
155
|
-
|
|
156
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
157
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
156
158
|
retryConfig: context.retryConfig,
|
|
157
159
|
retryCodes: context.retryCodes,
|
|
158
160
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -150,7 +151,8 @@ async function $do(
|
|
|
150
151
|
|
|
151
152
|
const doResult = await client._do(req, {
|
|
152
153
|
context,
|
|
153
|
-
|
|
154
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
155
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
154
156
|
retryConfig: context.retryConfig,
|
|
155
157
|
retryCodes: context.retryCodes,
|
|
156
158
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeJSON } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -144,7 +145,8 @@ async function $do(
|
|
|
144
145
|
|
|
145
146
|
const doResult = await client._do(req, {
|
|
146
147
|
context,
|
|
147
|
-
|
|
148
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
149
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
148
150
|
retryConfig: context.retryConfig,
|
|
149
151
|
retryCodes: context.retryCodes,
|
|
150
152
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeJSON } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -144,7 +145,8 @@ async function $do(
|
|
|
144
145
|
|
|
145
146
|
const doResult = await client._do(req, {
|
|
146
147
|
context,
|
|
147
|
-
|
|
148
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
149
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
148
150
|
retryConfig: context.retryConfig,
|
|
149
151
|
retryCodes: context.retryCodes,
|
|
150
152
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeJSON } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -144,7 +145,8 @@ async function $do(
|
|
|
144
145
|
|
|
145
146
|
const doResult = await client._do(req, {
|
|
146
147
|
context,
|
|
147
|
-
|
|
148
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
149
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
148
150
|
retryConfig: context.retryConfig,
|
|
149
151
|
retryCodes: context.retryCodes,
|
|
150
152
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -151,7 +152,8 @@ async function $do(
|
|
|
151
152
|
|
|
152
153
|
const doResult = await client._do(req, {
|
|
153
154
|
context,
|
|
154
|
-
|
|
155
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
156
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
155
157
|
retryConfig: context.retryConfig,
|
|
156
158
|
retryCodes: context.retryCodes,
|
|
157
159
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -151,7 +152,8 @@ async function $do(
|
|
|
151
152
|
|
|
152
153
|
const doResult = await client._do(req, {
|
|
153
154
|
context,
|
|
154
|
-
|
|
155
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
156
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
155
157
|
retryConfig: context.retryConfig,
|
|
156
158
|
retryCodes: context.retryCodes,
|
|
157
159
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeJSON } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -145,7 +146,8 @@ async function $do(
|
|
|
145
146
|
|
|
146
147
|
const doResult = await client._do(req, {
|
|
147
148
|
context,
|
|
148
|
-
|
|
149
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
150
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
149
151
|
retryConfig: context.retryConfig,
|
|
150
152
|
retryCodes: context.retryCodes,
|
|
151
153
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeJSON } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -145,7 +146,8 @@ async function $do(
|
|
|
145
146
|
|
|
146
147
|
const doResult = await client._do(req, {
|
|
147
148
|
context,
|
|
148
|
-
|
|
149
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
150
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
149
151
|
retryConfig: context.retryConfig,
|
|
150
152
|
retryCodes: context.retryCodes,
|
|
151
153
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -148,7 +149,8 @@ async function $do(
|
|
|
148
149
|
|
|
149
150
|
const doResult = await client._do(req, {
|
|
150
151
|
context,
|
|
151
|
-
|
|
152
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
153
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
152
154
|
retryConfig: context.retryConfig,
|
|
153
155
|
retryCodes: context.retryCodes,
|
|
154
156
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -153,7 +154,8 @@ async function $do(
|
|
|
153
154
|
|
|
154
155
|
const doResult = await client._do(req, {
|
|
155
156
|
context,
|
|
156
|
-
|
|
157
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
158
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
157
159
|
retryConfig: context.retryConfig,
|
|
158
160
|
retryCodes: context.retryCodes,
|
|
159
161
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeJSON } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -146,7 +147,8 @@ async function $do(
|
|
|
146
147
|
|
|
147
148
|
const doResult = await client._do(req, {
|
|
148
149
|
context,
|
|
149
|
-
|
|
150
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
151
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
150
152
|
retryConfig: context.retryConfig,
|
|
151
153
|
retryCodes: context.retryCodes,
|
|
152
154
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -147,7 +148,8 @@ async function $do(
|
|
|
147
148
|
|
|
148
149
|
const doResult = await client._do(req, {
|
|
149
150
|
context,
|
|
150
|
-
|
|
151
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
152
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
151
153
|
retryConfig: context.retryConfig,
|
|
152
154
|
retryCodes: context.retryCodes,
|
|
153
155
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeJSON } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -145,7 +146,8 @@ async function $do(
|
|
|
145
146
|
|
|
146
147
|
const doResult = await client._do(req, {
|
|
147
148
|
context,
|
|
148
|
-
|
|
149
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
150
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
149
151
|
retryConfig: context.retryConfig,
|
|
150
152
|
retryCodes: context.retryCodes,
|
|
151
153
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -152,7 +153,8 @@ async function $do(
|
|
|
152
153
|
|
|
153
154
|
const doResult = await client._do(req, {
|
|
154
155
|
context,
|
|
155
|
-
|
|
156
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
157
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
156
158
|
retryConfig: context.retryConfig,
|
|
157
159
|
retryCodes: context.retryCodes,
|
|
158
160
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -157,7 +158,8 @@ async function $do(
|
|
|
157
158
|
|
|
158
159
|
const doResult = await client._do(req, {
|
|
159
160
|
context,
|
|
160
|
-
|
|
161
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
162
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
161
163
|
retryConfig: context.retryConfig,
|
|
162
164
|
retryCodes: context.retryCodes,
|
|
163
165
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeJSON } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -144,7 +145,8 @@ async function $do(
|
|
|
144
145
|
|
|
145
146
|
const doResult = await client._do(req, {
|
|
146
147
|
context,
|
|
147
|
-
|
|
148
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
149
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
148
150
|
retryConfig: context.retryConfig,
|
|
149
151
|
retryCodes: context.retryCodes,
|
|
150
152
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeJSON } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -29,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
30
|
* CensEye: Create a pivot analysis job
|
|
30
31
|
*
|
|
31
32
|
* @remarks
|
|
32
|
-
* Create an asynchronous CensEye pivot analysis job for a host, web property, or certificate. The job extracts
|
|
33
|
+
* Create an asynchronous CensEye pivot analysis job for a host, web property, or certificate. The job extracts default pivot fields from the target asset and counts matching documents for each field-value pair. Poll the job status endpoint to track progress, then retrieve results when complete.<br><br>To use this endpoint, your organization must have access to the Adversary Investigation module.<br><br>This endpoint costs 44 credits to execute for a host, 28 credits to execute for a web property, and 7 credits to execute for a certificate.
|
|
33
34
|
*/
|
|
34
35
|
export function threatHuntingCreateCenseyeJob(
|
|
35
36
|
client: SDKCore,
|
|
@@ -146,7 +147,8 @@ async function $do(
|
|
|
146
147
|
|
|
147
148
|
const doResult = await client._do(req, {
|
|
148
149
|
context,
|
|
149
|
-
|
|
150
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
151
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
150
152
|
retryConfig: context.retryConfig,
|
|
151
153
|
retryCodes: context.retryCodes,
|
|
152
154
|
});
|