@steamsets/client-ts 0.22.15 → 0.22.16
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 +0 -7
- package/docs/sdks/account/README.md +8 -2
- package/docs/sdks/admin/README.md +4 -91
- package/docs/sdks/app/README.md +2 -2
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/models/components/index.d.ts +0 -6
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +0 -6
- package/models/components/index.js.map +1 -1
- package/models/components/v1leaderboardbadge.d.ts +0 -3
- package/models/components/v1leaderboardbadge.d.ts.map +1 -1
- package/models/components/v1leaderboardbadge.js +0 -3
- package/models/components/v1leaderboardbadge.js.map +1 -1
- package/models/operations/index.d.ts +0 -2
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -2
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/admin.d.ts +0 -4
- package/sdk/admin.d.ts.map +1 -1
- package/sdk/admin.js +0 -8
- package/sdk/admin.js.map +1 -1
- package/sdk/location.d.ts +6 -0
- package/sdk/location.d.ts.map +1 -1
- package/sdk/location.js +6 -0
- package/sdk/location.js.map +1 -1
- package/sdk/stats.d.ts +6 -0
- package/sdk/stats.d.ts.map +1 -1
- package/sdk/stats.js +6 -0
- package/sdk/stats.js.map +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/index.ts +0 -6
- package/src/models/components/v1leaderboardbadge.ts +0 -10
- package/src/models/operations/index.ts +0 -2
- package/src/sdk/admin.ts +0 -18
- package/src/sdk/location.ts +6 -0
- package/src/sdk/stats.ts +6 -0
- package/docs/sdks/events/README.md +0 -79
- package/funcs/adminEventsGet.d.ts +0 -11
- package/funcs/adminEventsGet.d.ts.map +0 -1
- package/funcs/adminEventsGet.js +0 -107
- package/funcs/adminEventsGet.js.map +0 -1
- package/funcs/adminUpdateEvent.d.ts +0 -12
- package/funcs/adminUpdateEvent.d.ts.map +0 -1
- package/funcs/adminUpdateEvent.js +0 -118
- package/funcs/adminUpdateEvent.js.map +0 -1
- package/models/components/v1admingeteventsresponsebody.d.ts +0 -35
- package/models/components/v1admingeteventsresponsebody.d.ts.map +0 -1
- package/models/components/v1admingeteventsresponsebody.js +0 -71
- package/models/components/v1admingeteventsresponsebody.js.map +0 -1
- package/models/components/v1adminupdateeventrequestbody.d.ts +0 -38
- package/models/components/v1adminupdateeventrequestbody.d.ts.map +0 -1
- package/models/components/v1adminupdateeventrequestbody.js +0 -62
- package/models/components/v1adminupdateeventrequestbody.js.map +0 -1
- package/models/components/v1adminupdateeventresponsebody.d.ts +0 -32
- package/models/components/v1adminupdateeventresponsebody.d.ts.map +0 -1
- package/models/components/v1adminupdateeventresponsebody.js +0 -68
- package/models/components/v1adminupdateeventresponsebody.js.map +0 -1
- package/models/components/v1appeventmapping.d.ts +0 -37
- package/models/components/v1appeventmapping.d.ts.map +0 -1
- package/models/components/v1appeventmapping.js +0 -61
- package/models/components/v1appeventmapping.js.map +0 -1
- package/models/components/v1event.d.ts +0 -88
- package/models/components/v1event.d.ts.map +0 -1
- package/models/components/v1event.js +0 -82
- package/models/components/v1event.js.map +0 -1
- package/models/components/v1leaderboardbadgeevent.d.ts +0 -77
- package/models/components/v1leaderboardbadgeevent.d.ts.map +0 -1
- package/models/components/v1leaderboardbadgeevent.js +0 -77
- package/models/components/v1leaderboardbadgeevent.js.map +0 -1
- package/models/operations/adminv1getevents.d.ts +0 -35
- package/models/operations/adminv1getevents.d.ts.map +0 -1
- package/models/operations/adminv1getevents.js +0 -75
- package/models/operations/adminv1getevents.js.map +0 -1
- package/models/operations/adminv1updateevent.d.ts +0 -35
- package/models/operations/adminv1updateevent.d.ts.map +0 -1
- package/models/operations/adminv1updateevent.js +0 -75
- package/models/operations/adminv1updateevent.js.map +0 -1
- package/sdk/events.d.ts +0 -6
- package/sdk/events.d.ts.map +0 -1
- package/sdk/events.js +0 -16
- package/sdk/events.js.map +0 -1
- package/src/funcs/adminEventsGet.ts +0 -160
- package/src/funcs/adminUpdateEvent.ts +0 -180
- package/src/models/components/v1admingeteventsresponsebody.ts +0 -90
- package/src/models/components/v1adminupdateeventrequestbody.ts +0 -84
- package/src/models/components/v1adminupdateeventresponsebody.ts +0 -80
- package/src/models/components/v1appeventmapping.ts +0 -76
- package/src/models/components/v1event.ts +0 -145
- package/src/models/components/v1leaderboardbadgeevent.ts +0 -132
- package/src/models/operations/adminv1getevents.ts +0 -91
- package/src/models/operations/adminv1updateevent.ts +0 -91
- package/src/sdk/events.ts +0 -19
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.V1LeaderboardBadgeEvent$ = exports.V1LeaderboardBadgeEvent$outboundSchema = exports.V1LeaderboardBadgeEvent$inboundSchema = void 0;
|
|
30
|
-
exports.v1LeaderboardBadgeEventToJSON = v1LeaderboardBadgeEventToJSON;
|
|
31
|
-
exports.v1LeaderboardBadgeEventFromJSON = v1LeaderboardBadgeEventFromJSON;
|
|
32
|
-
const z = __importStar(require("zod"));
|
|
33
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
34
|
-
/** @internal */
|
|
35
|
-
exports.V1LeaderboardBadgeEvent$inboundSchema = z.object({
|
|
36
|
-
bodyImage: z.string(),
|
|
37
|
-
downvotes: z.number().int(),
|
|
38
|
-
endsAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
39
|
-
gid: z.string(),
|
|
40
|
-
headerImage: z.string(),
|
|
41
|
-
name: z.string(),
|
|
42
|
-
postedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
43
|
-
startsAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
44
|
-
title: z.string(),
|
|
45
|
-
upvotes: z.number().int(),
|
|
46
|
-
});
|
|
47
|
-
/** @internal */
|
|
48
|
-
exports.V1LeaderboardBadgeEvent$outboundSchema = z.object({
|
|
49
|
-
bodyImage: z.string(),
|
|
50
|
-
downvotes: z.number().int(),
|
|
51
|
-
endsAt: z.date().transform(v => v.toISOString()),
|
|
52
|
-
gid: z.string(),
|
|
53
|
-
headerImage: z.string(),
|
|
54
|
-
name: z.string(),
|
|
55
|
-
postedAt: z.date().transform(v => v.toISOString()),
|
|
56
|
-
startsAt: z.date().transform(v => v.toISOString()),
|
|
57
|
-
title: z.string(),
|
|
58
|
-
upvotes: z.number().int(),
|
|
59
|
-
});
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
63
|
-
*/
|
|
64
|
-
var V1LeaderboardBadgeEvent$;
|
|
65
|
-
(function (V1LeaderboardBadgeEvent$) {
|
|
66
|
-
/** @deprecated use `V1LeaderboardBadgeEvent$inboundSchema` instead. */
|
|
67
|
-
V1LeaderboardBadgeEvent$.inboundSchema = exports.V1LeaderboardBadgeEvent$inboundSchema;
|
|
68
|
-
/** @deprecated use `V1LeaderboardBadgeEvent$outboundSchema` instead. */
|
|
69
|
-
V1LeaderboardBadgeEvent$.outboundSchema = exports.V1LeaderboardBadgeEvent$outboundSchema;
|
|
70
|
-
})(V1LeaderboardBadgeEvent$ || (exports.V1LeaderboardBadgeEvent$ = V1LeaderboardBadgeEvent$ = {}));
|
|
71
|
-
function v1LeaderboardBadgeEventToJSON(v1LeaderboardBadgeEvent) {
|
|
72
|
-
return JSON.stringify(exports.V1LeaderboardBadgeEvent$outboundSchema.parse(v1LeaderboardBadgeEvent));
|
|
73
|
-
}
|
|
74
|
-
function v1LeaderboardBadgeEventFromJSON(jsonString) {
|
|
75
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.V1LeaderboardBadgeEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'V1LeaderboardBadgeEvent' from JSON`);
|
|
76
|
-
}
|
|
77
|
-
//# sourceMappingURL=v1leaderboardbadgeevent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"v1leaderboardbadgeevent.js","sourceRoot":"","sources":["../../src/models/components/v1leaderboardbadgeevent.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAiHH,sEAMC;AAED,0EAQC;AA/HD,uCAAyB;AACzB,qDAAiD;AA+CjD,gBAAgB;AACH,QAAA,qCAAqC,GAI9C,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE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AAC,MAAM,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IAClD,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IAClD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CAC1B,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,wBAAwB,CAOxC;AAPD,WAAiB,wBAAwB;IACvC,uEAAuE;IAC1D,sCAAa,GAAG,6CAAqC,CAAC;IACnE,wEAAwE;IAC3D,uCAAc,GAAG,8CAAsC,CAAC;AAGvE,CAAC,EAPgB,wBAAwB,wCAAxB,wBAAwB,QAOxC;AAED,SAAgB,6BAA6B,CAC3C,uBAAgD;IAEhD,OAAO,IAAI,CAAC,SAAS,CACnB,8CAAsC,CAAC,KAAK,CAAC,uBAAuB,CAAC,CACtE,CAAC;AACJ,CAAC;AAED,SAAgB,+BAA+B,CAC7C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,6CAAqC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjE,qDAAqD,CACtD,CAAC;AACJ,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import * as components from "../components/index.js";
|
|
4
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
-
export type AdminV1GetEventsResponse = {
|
|
6
|
-
httpMeta: components.HTTPMetadata;
|
|
7
|
-
/**
|
|
8
|
-
* OK
|
|
9
|
-
*/
|
|
10
|
-
v1AdminGetEventsResponseBody?: components.V1AdminGetEventsResponseBody | undefined;
|
|
11
|
-
};
|
|
12
|
-
/** @internal */
|
|
13
|
-
export declare const AdminV1GetEventsResponse$inboundSchema: z.ZodType<AdminV1GetEventsResponse, z.ZodTypeDef, unknown>;
|
|
14
|
-
/** @internal */
|
|
15
|
-
export type AdminV1GetEventsResponse$Outbound = {
|
|
16
|
-
HttpMeta: components.HTTPMetadata$Outbound;
|
|
17
|
-
V1AdminGetEventsResponseBody?: components.V1AdminGetEventsResponseBody$Outbound | undefined;
|
|
18
|
-
};
|
|
19
|
-
/** @internal */
|
|
20
|
-
export declare const AdminV1GetEventsResponse$outboundSchema: z.ZodType<AdminV1GetEventsResponse$Outbound, z.ZodTypeDef, AdminV1GetEventsResponse>;
|
|
21
|
-
/**
|
|
22
|
-
* @internal
|
|
23
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
24
|
-
*/
|
|
25
|
-
export declare namespace AdminV1GetEventsResponse$ {
|
|
26
|
-
/** @deprecated use `AdminV1GetEventsResponse$inboundSchema` instead. */
|
|
27
|
-
const inboundSchema: z.ZodType<AdminV1GetEventsResponse, z.ZodTypeDef, unknown>;
|
|
28
|
-
/** @deprecated use `AdminV1GetEventsResponse$outboundSchema` instead. */
|
|
29
|
-
const outboundSchema: z.ZodType<AdminV1GetEventsResponse$Outbound, z.ZodTypeDef, AdminV1GetEventsResponse>;
|
|
30
|
-
/** @deprecated use `AdminV1GetEventsResponse$Outbound` instead. */
|
|
31
|
-
type Outbound = AdminV1GetEventsResponse$Outbound;
|
|
32
|
-
}
|
|
33
|
-
export declare function adminV1GetEventsResponseToJSON(adminV1GetEventsResponse: AdminV1GetEventsResponse): string;
|
|
34
|
-
export declare function adminV1GetEventsResponseFromJSON(jsonString: string): SafeParseResult<AdminV1GetEventsResponse, SDKValidationError>;
|
|
35
|
-
//# sourceMappingURL=adminv1getevents.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|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kBAAkB,CAAC,CAM/D"}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.AdminV1GetEventsResponse$ = exports.AdminV1GetEventsResponse$outboundSchema = exports.AdminV1GetEventsResponse$inboundSchema = void 0;
|
|
30
|
-
exports.adminV1GetEventsResponseToJSON = adminV1GetEventsResponseToJSON;
|
|
31
|
-
exports.adminV1GetEventsResponseFromJSON = adminV1GetEventsResponseFromJSON;
|
|
32
|
-
const z = __importStar(require("zod"));
|
|
33
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
34
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
35
|
-
const components = __importStar(require("../components/index.js"));
|
|
36
|
-
/** @internal */
|
|
37
|
-
exports.AdminV1GetEventsResponse$inboundSchema = z.object({
|
|
38
|
-
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
39
|
-
V1AdminGetEventsResponseBody: components
|
|
40
|
-
.V1AdminGetEventsResponseBody$inboundSchema.optional(),
|
|
41
|
-
}).transform((v) => {
|
|
42
|
-
return (0, primitives_js_1.remap)(v, {
|
|
43
|
-
"HttpMeta": "httpMeta",
|
|
44
|
-
"V1AdminGetEventsResponseBody": "v1AdminGetEventsResponseBody",
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
/** @internal */
|
|
48
|
-
exports.AdminV1GetEventsResponse$outboundSchema = z.object({
|
|
49
|
-
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
50
|
-
v1AdminGetEventsResponseBody: components
|
|
51
|
-
.V1AdminGetEventsResponseBody$outboundSchema.optional(),
|
|
52
|
-
}).transform((v) => {
|
|
53
|
-
return (0, primitives_js_1.remap)(v, {
|
|
54
|
-
httpMeta: "HttpMeta",
|
|
55
|
-
v1AdminGetEventsResponseBody: "V1AdminGetEventsResponseBody",
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
61
|
-
*/
|
|
62
|
-
var AdminV1GetEventsResponse$;
|
|
63
|
-
(function (AdminV1GetEventsResponse$) {
|
|
64
|
-
/** @deprecated use `AdminV1GetEventsResponse$inboundSchema` instead. */
|
|
65
|
-
AdminV1GetEventsResponse$.inboundSchema = exports.AdminV1GetEventsResponse$inboundSchema;
|
|
66
|
-
/** @deprecated use `AdminV1GetEventsResponse$outboundSchema` instead. */
|
|
67
|
-
AdminV1GetEventsResponse$.outboundSchema = exports.AdminV1GetEventsResponse$outboundSchema;
|
|
68
|
-
})(AdminV1GetEventsResponse$ || (exports.AdminV1GetEventsResponse$ = AdminV1GetEventsResponse$ = {}));
|
|
69
|
-
function adminV1GetEventsResponseToJSON(adminV1GetEventsResponse) {
|
|
70
|
-
return JSON.stringify(exports.AdminV1GetEventsResponse$outboundSchema.parse(adminV1GetEventsResponse));
|
|
71
|
-
}
|
|
72
|
-
function adminV1GetEventsResponseFromJSON(jsonString) {
|
|
73
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AdminV1GetEventsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AdminV1GetEventsResponse' from JSON`);
|
|
74
|
-
}
|
|
75
|
-
//# sourceMappingURL=adminv1getevents.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"adminv1getevents.js","sourceRoot":"","sources":["../../src/models/operations/adminv1getevents.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAwEH,wEAMC;AAED,4EAQC;AAtFD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AAarD,gBAAgB;AACH,QAAA,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,UAAU,CAAC,0BAA0B;IAC/C,4BAA4B,EAAE,UAAU;SACrC,0CAA0C,CAAC,QAAQ,EAAE;CACzD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,UAAU,EAAE,UAAU;QACtB,8BAA8B,EAAE,8BAA8B;KAC/D,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAUH,gBAAgB;AACH,QAAA,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,UAAU,CAAC,2BAA2B;IAChD,4BAA4B,EAAE,UAAU;SACrC,2CAA2C,CAAC,QAAQ,EAAE;CAC1D,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,QAAQ,EAAE,UAAU;QACpB,4BAA4B,EAAE,8BAA8B;KAC7D,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,yBAAyB,CAOzC;AAPD,WAAiB,yBAAyB;IACxC,wEAAwE;IAC3D,uCAAa,GAAG,8CAAsC,CAAC;IACpE,yEAAyE;IAC5D,wCAAc,GAAG,+CAAuC,CAAC;AAGxE,CAAC,EAPgB,yBAAyB,yCAAzB,yBAAyB,QAOzC;AAED,SAAgB,8BAA8B,CAC5C,wBAAkD;IAElD,OAAO,IAAI,CAAC,SAAS,CACnB,+CAAuC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CACxE,CAAC;AACJ,CAAC;AAED,SAAgB,gCAAgC,CAC9C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8CAAsC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClE,sDAAsD,CACvD,CAAC;AACJ,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import * as components from "../components/index.js";
|
|
4
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
-
export type AdminV1UpdateEventResponse = {
|
|
6
|
-
httpMeta: components.HTTPMetadata;
|
|
7
|
-
/**
|
|
8
|
-
* OK
|
|
9
|
-
*/
|
|
10
|
-
v1AdminUpdateEventResponseBody?: components.V1AdminUpdateEventResponseBody | undefined;
|
|
11
|
-
};
|
|
12
|
-
/** @internal */
|
|
13
|
-
export declare const AdminV1UpdateEventResponse$inboundSchema: z.ZodType<AdminV1UpdateEventResponse, z.ZodTypeDef, unknown>;
|
|
14
|
-
/** @internal */
|
|
15
|
-
export type AdminV1UpdateEventResponse$Outbound = {
|
|
16
|
-
HttpMeta: components.HTTPMetadata$Outbound;
|
|
17
|
-
V1AdminUpdateEventResponseBody?: components.V1AdminUpdateEventResponseBody$Outbound | undefined;
|
|
18
|
-
};
|
|
19
|
-
/** @internal */
|
|
20
|
-
export declare const AdminV1UpdateEventResponse$outboundSchema: z.ZodType<AdminV1UpdateEventResponse$Outbound, z.ZodTypeDef, AdminV1UpdateEventResponse>;
|
|
21
|
-
/**
|
|
22
|
-
* @internal
|
|
23
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
24
|
-
*/
|
|
25
|
-
export declare namespace AdminV1UpdateEventResponse$ {
|
|
26
|
-
/** @deprecated use `AdminV1UpdateEventResponse$inboundSchema` instead. */
|
|
27
|
-
const inboundSchema: z.ZodType<AdminV1UpdateEventResponse, z.ZodTypeDef, unknown>;
|
|
28
|
-
/** @deprecated use `AdminV1UpdateEventResponse$outboundSchema` instead. */
|
|
29
|
-
const outboundSchema: z.ZodType<AdminV1UpdateEventResponse$Outbound, z.ZodTypeDef, AdminV1UpdateEventResponse>;
|
|
30
|
-
/** @deprecated use `AdminV1UpdateEventResponse$Outbound` instead. */
|
|
31
|
-
type Outbound = AdminV1UpdateEventResponse$Outbound;
|
|
32
|
-
}
|
|
33
|
-
export declare function adminV1UpdateEventResponseToJSON(adminV1UpdateEventResponse: AdminV1UpdateEventResponse): string;
|
|
34
|
-
export declare function adminV1UpdateEventResponseFromJSON(jsonString: string): SafeParseResult<AdminV1UpdateEventResponse, SDKValidationError>;
|
|
35
|
-
//# sourceMappingURL=adminv1updateevent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"adminv1updateevent.d.ts","sourceRoot":"","sources":["../../src/models/operations/adminv1updateevent.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAA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com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.AdminV1UpdateEventResponse$ = exports.AdminV1UpdateEventResponse$outboundSchema = exports.AdminV1UpdateEventResponse$inboundSchema = void 0;
|
|
30
|
-
exports.adminV1UpdateEventResponseToJSON = adminV1UpdateEventResponseToJSON;
|
|
31
|
-
exports.adminV1UpdateEventResponseFromJSON = adminV1UpdateEventResponseFromJSON;
|
|
32
|
-
const z = __importStar(require("zod"));
|
|
33
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
34
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
35
|
-
const components = __importStar(require("../components/index.js"));
|
|
36
|
-
/** @internal */
|
|
37
|
-
exports.AdminV1UpdateEventResponse$inboundSchema = z.object({
|
|
38
|
-
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
39
|
-
V1AdminUpdateEventResponseBody: components
|
|
40
|
-
.V1AdminUpdateEventResponseBody$inboundSchema.optional(),
|
|
41
|
-
}).transform((v) => {
|
|
42
|
-
return (0, primitives_js_1.remap)(v, {
|
|
43
|
-
"HttpMeta": "httpMeta",
|
|
44
|
-
"V1AdminUpdateEventResponseBody": "v1AdminUpdateEventResponseBody",
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
/** @internal */
|
|
48
|
-
exports.AdminV1UpdateEventResponse$outboundSchema = z.object({
|
|
49
|
-
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
50
|
-
v1AdminUpdateEventResponseBody: components
|
|
51
|
-
.V1AdminUpdateEventResponseBody$outboundSchema.optional(),
|
|
52
|
-
}).transform((v) => {
|
|
53
|
-
return (0, primitives_js_1.remap)(v, {
|
|
54
|
-
httpMeta: "HttpMeta",
|
|
55
|
-
v1AdminUpdateEventResponseBody: "V1AdminUpdateEventResponseBody",
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
61
|
-
*/
|
|
62
|
-
var AdminV1UpdateEventResponse$;
|
|
63
|
-
(function (AdminV1UpdateEventResponse$) {
|
|
64
|
-
/** @deprecated use `AdminV1UpdateEventResponse$inboundSchema` instead. */
|
|
65
|
-
AdminV1UpdateEventResponse$.inboundSchema = exports.AdminV1UpdateEventResponse$inboundSchema;
|
|
66
|
-
/** @deprecated use `AdminV1UpdateEventResponse$outboundSchema` instead. */
|
|
67
|
-
AdminV1UpdateEventResponse$.outboundSchema = exports.AdminV1UpdateEventResponse$outboundSchema;
|
|
68
|
-
})(AdminV1UpdateEventResponse$ || (exports.AdminV1UpdateEventResponse$ = AdminV1UpdateEventResponse$ = {}));
|
|
69
|
-
function adminV1UpdateEventResponseToJSON(adminV1UpdateEventResponse) {
|
|
70
|
-
return JSON.stringify(exports.AdminV1UpdateEventResponse$outboundSchema.parse(adminV1UpdateEventResponse));
|
|
71
|
-
}
|
|
72
|
-
function adminV1UpdateEventResponseFromJSON(jsonString) {
|
|
73
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AdminV1UpdateEventResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AdminV1UpdateEventResponse' from JSON`);
|
|
74
|
-
}
|
|
75
|
-
//# sourceMappingURL=adminv1updateevent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"adminv1updateevent.js","sourceRoot":"","sources":["../../src/models/operations/adminv1updateevent.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAwEH,4EAMC;AAED,gFAQC;AAtFD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AAarD,gBAAgB;AACH,QAAA,wCAAwC,GAIjD,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,UAAU,CAAC,0BAA0B;IAC/C,8BAA8B,EAAE,UAAU;SACvC,4CAA4C,CAAC,QAAQ,EAAE;CAC3D,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,UAAU,EAAE,UAAU;QACtB,gCAAgC,EAAE,gCAAgC;KACnE,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAUH,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,UAAU,CAAC,2BAA2B;IAChD,8BAA8B,EAAE,UAAU;SACvC,6CAA6C,CAAC,QAAQ,EAAE;CAC5D,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,QAAQ,EAAE,UAAU;QACpB,8BAA8B,EAAE,gCAAgC;KACjE,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,2BAA2B,CAO3C;AAPD,WAAiB,2BAA2B;IAC1C,0EAA0E;IAC7D,yCAAa,GAAG,gDAAwC,CAAC;IACtE,2EAA2E;IAC9D,0CAAc,GAAG,iDAAyC,CAAC;AAG1E,CAAC,EAPgB,2BAA2B,2CAA3B,2BAA2B,QAO3C;AAED,SAAgB,gCAAgC,CAC9C,0BAAsD;IAEtD,OAAO,IAAI,CAAC,SAAS,CACnB,iDAAyC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAC5E,CAAC;AACJ,CAAC;AAED,SAAgB,kCAAkC,CAChD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gDAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC"}
|
package/sdk/events.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
-
import * as operations from "../models/operations/index.js";
|
|
3
|
-
export declare class Events extends ClientSDK {
|
|
4
|
-
get(options?: RequestOptions): Promise<operations.AdminV1GetEventsResponse>;
|
|
5
|
-
}
|
|
6
|
-
//# sourceMappingURL=events.d.ts.map
|
package/sdk/events.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/sdk/events.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,MAAO,SAAQ,SAAS;IAC7B,GAAG,CACP,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,wBAAwB,CAAC;CAMhD"}
|
package/sdk/events.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Events = void 0;
|
|
7
|
-
const adminEventsGet_js_1 = require("../funcs/adminEventsGet.js");
|
|
8
|
-
const sdks_js_1 = require("../lib/sdks.js");
|
|
9
|
-
const fp_js_1 = require("../types/fp.js");
|
|
10
|
-
class Events extends sdks_js_1.ClientSDK {
|
|
11
|
-
async get(options) {
|
|
12
|
-
return (0, fp_js_1.unwrapAsync)((0, adminEventsGet_js_1.adminEventsGet)(this, options));
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.Events = Events;
|
|
16
|
-
//# sourceMappingURL=events.js.map
|
package/sdk/events.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../src/sdk/events.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,kEAA4D;AAC5D,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,MAAO,SAAQ,mBAAS;IACnC,KAAK,CAAC,GAAG,CACP,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kCAAc,EAC/B,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AATD,wBASC"}
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { SteamSetsCore } from "../core.js";
|
|
6
|
-
import * as M from "../lib/matchers.js";
|
|
7
|
-
import { compactMap } from "../lib/primitives.js";
|
|
8
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
9
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
10
|
-
import { pathToFunc } from "../lib/url.js";
|
|
11
|
-
import {
|
|
12
|
-
ConnectionError,
|
|
13
|
-
InvalidRequestError,
|
|
14
|
-
RequestAbortedError,
|
|
15
|
-
RequestTimeoutError,
|
|
16
|
-
UnexpectedClientError,
|
|
17
|
-
} from "../models/errors/httpclienterrors.js";
|
|
18
|
-
import * as errors from "../models/errors/index.js";
|
|
19
|
-
import { SDKError } from "../models/errors/sdkerror.js";
|
|
20
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
21
|
-
import * as operations from "../models/operations/index.js";
|
|
22
|
-
import { APICall, APIPromise } from "../types/async.js";
|
|
23
|
-
import { Result } from "../types/fp.js";
|
|
24
|
-
|
|
25
|
-
export function adminEventsGet(
|
|
26
|
-
client: SteamSetsCore,
|
|
27
|
-
options?: RequestOptions,
|
|
28
|
-
): APIPromise<
|
|
29
|
-
Result<
|
|
30
|
-
operations.AdminV1GetEventsResponse,
|
|
31
|
-
| errors.ErrorModel
|
|
32
|
-
| errors.ErrorModel
|
|
33
|
-
| SDKError
|
|
34
|
-
| SDKValidationError
|
|
35
|
-
| UnexpectedClientError
|
|
36
|
-
| InvalidRequestError
|
|
37
|
-
| RequestAbortedError
|
|
38
|
-
| RequestTimeoutError
|
|
39
|
-
| ConnectionError
|
|
40
|
-
>
|
|
41
|
-
> {
|
|
42
|
-
return new APIPromise($do(
|
|
43
|
-
client,
|
|
44
|
-
options,
|
|
45
|
-
));
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
async function $do(
|
|
49
|
-
client: SteamSetsCore,
|
|
50
|
-
options?: RequestOptions,
|
|
51
|
-
): Promise<
|
|
52
|
-
[
|
|
53
|
-
Result<
|
|
54
|
-
operations.AdminV1GetEventsResponse,
|
|
55
|
-
| errors.ErrorModel
|
|
56
|
-
| errors.ErrorModel
|
|
57
|
-
| SDKError
|
|
58
|
-
| SDKValidationError
|
|
59
|
-
| UnexpectedClientError
|
|
60
|
-
| InvalidRequestError
|
|
61
|
-
| RequestAbortedError
|
|
62
|
-
| RequestTimeoutError
|
|
63
|
-
| ConnectionError
|
|
64
|
-
>,
|
|
65
|
-
APICall,
|
|
66
|
-
]
|
|
67
|
-
> {
|
|
68
|
-
const path = pathToFunc("/admin.v1.AdminService/GetEvents")();
|
|
69
|
-
|
|
70
|
-
const headers = new Headers(compactMap({
|
|
71
|
-
Accept: "application/json",
|
|
72
|
-
}));
|
|
73
|
-
|
|
74
|
-
const secConfig = await extractSecurity(client._options.token);
|
|
75
|
-
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
76
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
77
|
-
|
|
78
|
-
const context = {
|
|
79
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
80
|
-
operationID: "admin.v1.get-events",
|
|
81
|
-
oAuth2Scopes: [],
|
|
82
|
-
|
|
83
|
-
resolvedSecurity: requestSecurity,
|
|
84
|
-
|
|
85
|
-
securitySource: client._options.token,
|
|
86
|
-
retryConfig: options?.retries
|
|
87
|
-
|| client._options.retryConfig
|
|
88
|
-
|| {
|
|
89
|
-
strategy: "backoff",
|
|
90
|
-
backoff: {
|
|
91
|
-
initialInterval: 500,
|
|
92
|
-
maxInterval: 5000,
|
|
93
|
-
exponent: 1.5,
|
|
94
|
-
maxElapsedTime: 60000,
|
|
95
|
-
},
|
|
96
|
-
retryConnectionErrors: true,
|
|
97
|
-
}
|
|
98
|
-
|| { strategy: "none" },
|
|
99
|
-
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
const requestRes = client._createRequest(context, {
|
|
103
|
-
security: requestSecurity,
|
|
104
|
-
method: "POST",
|
|
105
|
-
baseURL: options?.serverURL,
|
|
106
|
-
path: path,
|
|
107
|
-
headers: headers,
|
|
108
|
-
uaHeader: "x-speakeasy-user-agent",
|
|
109
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
110
|
-
}, options);
|
|
111
|
-
if (!requestRes.ok) {
|
|
112
|
-
return [requestRes, { status: "invalid" }];
|
|
113
|
-
}
|
|
114
|
-
const req = requestRes.value;
|
|
115
|
-
|
|
116
|
-
const doResult = await client._do(req, {
|
|
117
|
-
context,
|
|
118
|
-
errorCodes: ["403", "404", "429", "4XX", "500", "5XX"],
|
|
119
|
-
retryConfig: context.retryConfig,
|
|
120
|
-
retryCodes: context.retryCodes,
|
|
121
|
-
});
|
|
122
|
-
if (!doResult.ok) {
|
|
123
|
-
return [doResult, { status: "request-error", request: req }];
|
|
124
|
-
}
|
|
125
|
-
const response = doResult.value;
|
|
126
|
-
|
|
127
|
-
const responseFields = {
|
|
128
|
-
HttpMeta: { Response: response, Request: req },
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
const [result] = await M.match<
|
|
132
|
-
operations.AdminV1GetEventsResponse,
|
|
133
|
-
| errors.ErrorModel
|
|
134
|
-
| errors.ErrorModel
|
|
135
|
-
| SDKError
|
|
136
|
-
| SDKValidationError
|
|
137
|
-
| UnexpectedClientError
|
|
138
|
-
| InvalidRequestError
|
|
139
|
-
| RequestAbortedError
|
|
140
|
-
| RequestTimeoutError
|
|
141
|
-
| ConnectionError
|
|
142
|
-
>(
|
|
143
|
-
M.json(200, operations.AdminV1GetEventsResponse$inboundSchema, {
|
|
144
|
-
key: "V1AdminGetEventsResponseBody",
|
|
145
|
-
}),
|
|
146
|
-
M.jsonErr([403, 404, 429], errors.ErrorModel$inboundSchema, {
|
|
147
|
-
ctype: "application/problem+json",
|
|
148
|
-
}),
|
|
149
|
-
M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
150
|
-
ctype: "application/problem+json",
|
|
151
|
-
}),
|
|
152
|
-
M.fail("4XX"),
|
|
153
|
-
M.fail("5XX"),
|
|
154
|
-
)(response, req, { extraFields: responseFields });
|
|
155
|
-
if (!result.ok) {
|
|
156
|
-
return [result, { status: "complete", request: req, response }];
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
return [result, { status: "complete", request: req, response }];
|
|
160
|
-
}
|