@steamsets/client-ts 0.34.3 → 0.34.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 +10 -1
- package/funcs/accountSubscribe.d.ts +15 -0
- package/funcs/accountSubscribe.d.ts.map +1 -0
- package/funcs/accountSubscribe.js +136 -0
- package/funcs/accountSubscribe.js.map +1 -0
- package/funcs/siteSubscribe.d.ts +20 -0
- package/funcs/siteSubscribe.d.ts.map +1 -0
- package/funcs/siteSubscribe.js +128 -0
- package/funcs/siteSubscribe.js.map +1 -0
- 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/accountsubscribeheartbeat.d.ts +10 -0
- package/models/components/accountsubscribeheartbeat.d.ts.map +1 -0
- package/models/components/accountsubscribeheartbeat.js +50 -0
- package/models/components/accountsubscribeheartbeat.js.map +1 -0
- package/models/components/eventaccountupdateddata.d.ts +11 -0
- package/models/components/eventaccountupdateddata.d.ts.map +1 -0
- package/models/components/eventaccountupdateddata.js +51 -0
- package/models/components/eventaccountupdateddata.js.map +1 -0
- package/models/components/eventaccountviewtickdata.d.ts +11 -0
- package/models/components/eventaccountviewtickdata.d.ts.map +1 -0
- package/models/components/eventaccountviewtickdata.js +51 -0
- package/models/components/eventaccountviewtickdata.js.map +1 -0
- package/models/components/index.d.ts +5 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +5 -0
- package/models/components/index.js.map +1 -1
- package/models/components/maintenancechanged.d.ts +11 -0
- package/models/components/maintenancechanged.d.ts.map +1 -0
- package/models/components/maintenancechanged.js +51 -0
- package/models/components/maintenancechanged.js.map +1 -0
- package/models/components/sitesubscribeheartbeat.d.ts +10 -0
- package/models/components/sitesubscribeheartbeat.d.ts.map +1 -0
- package/models/components/sitesubscribeheartbeat.js +50 -0
- package/models/components/sitesubscribeheartbeat.js.map +1 -0
- package/models/operations/accountsubscribe.d.ts +90 -0
- package/models/operations/accountsubscribe.d.ts.map +1 -0
- package/models/operations/accountsubscribe.js +146 -0
- package/models/operations/accountsubscribe.js.map +1 -0
- package/models/operations/badgepricingsubscribe.d.ts +5 -5
- package/models/operations/badgepricingsubscribe.d.ts.map +1 -1
- package/models/operations/badgepricingsubscribe.js +7 -7
- package/models/operations/badgepricingsubscribe.js.map +1 -1
- package/models/operations/index.d.ts +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/sitesubscribe.d.ts +63 -0
- package/models/operations/sitesubscribe.d.ts.map +1 -0
- package/models/operations/sitesubscribe.js +119 -0
- package/models/operations/sitesubscribe.js.map +1 -0
- package/package.json +1 -1
- package/sdk/account.d.ts +4 -0
- package/sdk/account.d.ts.map +1 -1
- package/sdk/account.js +7 -0
- package/sdk/account.js.map +1 -1
- 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/site.d.ts +13 -0
- package/sdk/site.d.ts.map +1 -0
- package/sdk/site.js +21 -0
- package/sdk/site.js.map +1 -0
- package/src/funcs/accountSubscribe.ts +190 -0
- package/src/funcs/siteSubscribe.ts +168 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/accountsubscribeheartbeat.ts +31 -0
- package/src/models/components/eventaccountupdateddata.ts +33 -0
- package/src/models/components/eventaccountviewtickdata.ts +33 -0
- package/src/models/components/index.ts +5 -0
- package/src/models/components/maintenancechanged.ts +35 -0
- package/src/models/components/sitesubscribeheartbeat.ts +31 -0
- package/src/models/operations/accountsubscribe.ts +251 -0
- package/src/models/operations/badgepricingsubscribe.ts +11 -11
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/sitesubscribe.ts +191 -0
- package/src/sdk/account.ts +15 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/site.ts +24 -0
package/README.md
CHANGED
|
@@ -108,6 +108,7 @@ run();
|
|
|
108
108
|
* [refreshInventory](docs/sdks/account/README.md#refreshinventory) - Refresh inventory
|
|
109
109
|
* [refreshSession](docs/sdks/account/README.md#refreshsession) - Refresh session token
|
|
110
110
|
* [sendEmailVerification](docs/sdks/account/README.md#sendemailverification) - Send email verification
|
|
111
|
+
* [subscribe](docs/sdks/account/README.md#subscribe) - Server-sent-events stream of per-account updates (queue status, view ticks).
|
|
111
112
|
* [subscribeEmail](docs/sdks/account/README.md#subscribeemail) - Subscribe to email notifications
|
|
112
113
|
* [updateConnection](docs/sdks/account/README.md#updateconnection) - Update OAuth connection
|
|
113
114
|
* [updateDeveloperApp](docs/sdks/account/README.md#updatedeveloperapp) - Update developer application
|
|
@@ -218,6 +219,10 @@ run();
|
|
|
218
219
|
|
|
219
220
|
* [searchGetTrending](docs/sdks/search/README.md#searchgettrending) - Top search queries in a window, by unique searcher count
|
|
220
221
|
|
|
222
|
+
### [Site](docs/sdks/site/README.md)
|
|
223
|
+
|
|
224
|
+
* [subscribe](docs/sdks/site/README.md#subscribe) - Server-sent-events stream of site-wide broadcasts (maintenance, announcements, etc).
|
|
225
|
+
|
|
221
226
|
### [Staff](docs/sdks/staff/README.md)
|
|
222
227
|
|
|
223
228
|
* [list](docs/sdks/staff/README.md#list) - List staff members
|
|
@@ -247,7 +252,9 @@ const steamSets = new SteamSets({
|
|
|
247
252
|
});
|
|
248
253
|
|
|
249
254
|
async function run() {
|
|
250
|
-
const result = await steamSets.
|
|
255
|
+
const result = await steamSets.account.subscribe({
|
|
256
|
+
accountId: 442779,
|
|
257
|
+
});
|
|
251
258
|
|
|
252
259
|
if (result.serverSentEvents == null) {
|
|
253
260
|
throw new Error("failed to create stream: received null value");
|
|
@@ -681,6 +688,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
681
688
|
- [`accountRefreshInventory`](docs/sdks/account/README.md#refreshinventory) - Refresh inventory
|
|
682
689
|
- [`accountRefreshSession`](docs/sdks/account/README.md#refreshsession) - Refresh session token
|
|
683
690
|
- [`accountSendEmailVerification`](docs/sdks/account/README.md#sendemailverification) - Send email verification
|
|
691
|
+
- [`accountSubscribe`](docs/sdks/account/README.md#subscribe) - Server-sent-events stream of per-account updates (queue status, view ticks).
|
|
684
692
|
- [`accountSubscribeEmail`](docs/sdks/account/README.md#subscribeemail) - Subscribe to email notifications
|
|
685
693
|
- [`accountUpdateConnection`](docs/sdks/account/README.md#updateconnection) - Update OAuth connection
|
|
686
694
|
- [`accountUpdateDeveloperApp`](docs/sdks/account/README.md#updatedeveloperapp) - Update developer application
|
|
@@ -742,6 +750,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
742
750
|
- [`locationGet`](docs/sdks/location/README.md#get) - List available locations
|
|
743
751
|
- [`maintenanceList`](docs/sdks/maintenance/README.md#list) - List currently active maintenance events
|
|
744
752
|
- [`searchSearchGetTrending`](docs/sdks/search/README.md#searchgettrending) - Top search queries in a window, by unique searcher count
|
|
753
|
+
- [`siteSubscribe`](docs/sdks/site/README.md#subscribe) - Server-sent-events stream of site-wide broadcasts (maintenance, announcements, etc).
|
|
745
754
|
- [`staffList`](docs/sdks/staff/README.md#list) - List staff members
|
|
746
755
|
- [`statsGet`](docs/sdks/stats/README.md#get) - Get platform statistics
|
|
747
756
|
- [`statsSubscribe`](docs/sdks/stats/README.md#subscribe) - Server-sent-events stream of platform stats. Emits a snapshot, then deltas as the queues commit them.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SteamSetsCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
4
|
+
import * as errors from "../models/errors/index.js";
|
|
5
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
6
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
7
|
+
import { SteamSetsError } from "../models/errors/steamsetserror.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { APIPromise } from "../types/async.js";
|
|
10
|
+
import { Result } from "../types/fp.js";
|
|
11
|
+
/**
|
|
12
|
+
* Server-sent-events stream of per-account updates (queue status, view ticks).
|
|
13
|
+
*/
|
|
14
|
+
export declare function accountSubscribe(client: SteamSetsCore, request: operations.AccountSubscribeRequest, options?: RequestOptions): APIPromise<Result<operations.AccountSubscribeResponse, errors.ErrorModel | SteamSetsError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
15
|
+
//# sourceMappingURL=accountSubscribe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountSubscribe.d.ts","sourceRoot":"","sources":["../src/funcs/accountSubscribe.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAM3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,uBAAuB,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,wBAAwB,EACjC,MAAM,CAAC,UAAU,GACjB,cAAc,GACd,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -0,0 +1,136 @@
|
|
|
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 () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.accountSubscribe = accountSubscribe;
|
|
40
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
41
|
+
const http_js_1 = require("../lib/http.js");
|
|
42
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
43
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
44
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
45
|
+
const security_js_1 = require("../lib/security.js");
|
|
46
|
+
const url_js_1 = require("../lib/url.js");
|
|
47
|
+
const errors = __importStar(require("../models/errors/index.js"));
|
|
48
|
+
const operations = __importStar(require("../models/operations/index.js"));
|
|
49
|
+
const async_js_1 = require("../types/async.js");
|
|
50
|
+
/**
|
|
51
|
+
* Server-sent-events stream of per-account updates (queue status, view ticks).
|
|
52
|
+
*/
|
|
53
|
+
function accountSubscribe(client, request, options) {
|
|
54
|
+
return new async_js_1.APIPromise($do(client, request, options));
|
|
55
|
+
}
|
|
56
|
+
async function $do(client, request, options) {
|
|
57
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.AccountSubscribeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
58
|
+
if (!parsed.ok) {
|
|
59
|
+
return [parsed, { status: "invalid" }];
|
|
60
|
+
}
|
|
61
|
+
const payload = parsed.value;
|
|
62
|
+
const body = null;
|
|
63
|
+
const path = (0, url_js_1.pathToFunc)("/v1/account.subscribe")();
|
|
64
|
+
const query = (0, encodings_js_1.encodeFormQuery)({
|
|
65
|
+
"accountId": payload.accountId,
|
|
66
|
+
}, { explode: false });
|
|
67
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
68
|
+
Accept: "text/event-stream",
|
|
69
|
+
}));
|
|
70
|
+
const secConfig = await (0, security_js_1.extractSecurity)(client._options.token);
|
|
71
|
+
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
72
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
73
|
+
const context = {
|
|
74
|
+
options: client._options,
|
|
75
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
76
|
+
operationID: "account.subscribe",
|
|
77
|
+
oAuth2Scopes: null,
|
|
78
|
+
resolvedSecurity: requestSecurity,
|
|
79
|
+
securitySource: client._options.token,
|
|
80
|
+
retryConfig: options?.retries
|
|
81
|
+
|| client._options.retryConfig
|
|
82
|
+
|| {
|
|
83
|
+
strategy: "backoff",
|
|
84
|
+
backoff: {
|
|
85
|
+
initialInterval: 500,
|
|
86
|
+
maxInterval: 5000,
|
|
87
|
+
exponent: 1.5,
|
|
88
|
+
maxElapsedTime: 60000,
|
|
89
|
+
},
|
|
90
|
+
retryConnectionErrors: true,
|
|
91
|
+
}
|
|
92
|
+
|| { strategy: "none" },
|
|
93
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
94
|
+
};
|
|
95
|
+
const requestRes = client._createRequest(context, {
|
|
96
|
+
security: requestSecurity,
|
|
97
|
+
method: "GET",
|
|
98
|
+
baseURL: options?.serverURL,
|
|
99
|
+
path: path,
|
|
100
|
+
headers: headers,
|
|
101
|
+
query: query,
|
|
102
|
+
body: body,
|
|
103
|
+
uaHeader: "x-speakeasy-user-agent",
|
|
104
|
+
userAgent: client._options.userAgent,
|
|
105
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
106
|
+
}, options);
|
|
107
|
+
if (!requestRes.ok) {
|
|
108
|
+
return [requestRes, { status: "invalid" }];
|
|
109
|
+
}
|
|
110
|
+
const req = requestRes.value;
|
|
111
|
+
const doResult = await client._do(req, {
|
|
112
|
+
context,
|
|
113
|
+
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
114
|
+
retryConfig: context.retryConfig,
|
|
115
|
+
retryCodes: context.retryCodes,
|
|
116
|
+
});
|
|
117
|
+
if (!doResult.ok) {
|
|
118
|
+
return [doResult, { status: "request-error", request: req }];
|
|
119
|
+
}
|
|
120
|
+
const response = doResult.value;
|
|
121
|
+
const responseFields = {
|
|
122
|
+
HttpMeta: { Response: response, Request: req },
|
|
123
|
+
};
|
|
124
|
+
const [result] = await M.match(M.sse(200, operations.AccountSubscribeResponse$inboundSchema, {
|
|
125
|
+
key: "Server Sent Events",
|
|
126
|
+
}), M.jsonErr([400, 401, 403, 404, 422], errors.ErrorModel$inboundSchema, {
|
|
127
|
+
ctype: "application/problem+json",
|
|
128
|
+
}), M.jsonErr(500, errors.ErrorModel$inboundSchema, {
|
|
129
|
+
ctype: "application/problem+json",
|
|
130
|
+
}), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
131
|
+
if (!result.ok) {
|
|
132
|
+
return [result, { status: "complete", request: req, response }];
|
|
133
|
+
}
|
|
134
|
+
return [result, { status: "complete", request: req, response }];
|
|
135
|
+
}
|
|
136
|
+
//# sourceMappingURL=accountSubscribe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountSubscribe.js","sourceRoot":"","sources":["../src/funcs/accountSubscribe.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BH,4CAuBC;AAjDD,sDAAsD;AACtD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAIpD,0EAA4D;AAC5D,gDAAwD;AAGxD;;GAEG;AACH,SAAgB,gBAAgB,CAC9B,MAAqB,EACrB,OAA2C,EAC3C,OAAwB;IAexB,OAAO,IAAI,qBAAU,CAAC,GAA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CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SteamSetsCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
4
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
5
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
6
|
+
import { SteamSetsError } from "../models/errors/steamsetserror.js";
|
|
7
|
+
import * as operations from "../models/operations/index.js";
|
|
8
|
+
import { APIPromise } from "../types/async.js";
|
|
9
|
+
import { Result } from "../types/fp.js";
|
|
10
|
+
export declare enum SubscribeAcceptEnum {
|
|
11
|
+
applicationProblemPlusJson = "application/problem+json",
|
|
12
|
+
textEventStream = "text/event-stream"
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Server-sent-events stream of site-wide broadcasts (maintenance, announcements, etc).
|
|
16
|
+
*/
|
|
17
|
+
export declare function siteSubscribe(client: SteamSetsCore, options?: RequestOptions & {
|
|
18
|
+
acceptHeaderOverride?: SubscribeAcceptEnum;
|
|
19
|
+
}): APIPromise<Result<operations.SiteSubscribeResponse, SteamSetsError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
20
|
+
//# sourceMappingURL=siteSubscribe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"siteSubscribe.d.ts","sourceRoot":"","sources":["../src/funcs/siteSubscribe.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAI3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,oBAAY,mBAAmB;IAC7B,0BAA0B,6BAA6B;IACvD,eAAe,sBAAsB;CACtC;AAED;;GAEG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,aAAa,EACrB,OAAO,CAAC,EAAE,cAAc,GAAG;IAAE,oBAAoB,CAAC,EAAE,mBAAmB,CAAA;CAAE,GACxE,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,qBAAqB,EAC9B,cAAc,GACd,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAKA"}
|
|
@@ -0,0 +1,128 @@
|
|
|
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 () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.SubscribeAcceptEnum = void 0;
|
|
40
|
+
exports.siteSubscribe = siteSubscribe;
|
|
41
|
+
const http_js_1 = require("../lib/http.js");
|
|
42
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
43
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
44
|
+
const security_js_1 = require("../lib/security.js");
|
|
45
|
+
const url_js_1 = require("../lib/url.js");
|
|
46
|
+
const operations = __importStar(require("../models/operations/index.js"));
|
|
47
|
+
const async_js_1 = require("../types/async.js");
|
|
48
|
+
var SubscribeAcceptEnum;
|
|
49
|
+
(function (SubscribeAcceptEnum) {
|
|
50
|
+
SubscribeAcceptEnum["applicationProblemPlusJson"] = "application/problem+json";
|
|
51
|
+
SubscribeAcceptEnum["textEventStream"] = "text/event-stream";
|
|
52
|
+
})(SubscribeAcceptEnum || (exports.SubscribeAcceptEnum = SubscribeAcceptEnum = {}));
|
|
53
|
+
/**
|
|
54
|
+
* Server-sent-events stream of site-wide broadcasts (maintenance, announcements, etc).
|
|
55
|
+
*/
|
|
56
|
+
function siteSubscribe(client, options) {
|
|
57
|
+
return new async_js_1.APIPromise($do(client, options));
|
|
58
|
+
}
|
|
59
|
+
async function $do(client, options) {
|
|
60
|
+
const path = (0, url_js_1.pathToFunc)("/v1/site.subscribe")();
|
|
61
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
62
|
+
Accept: options?.acceptHeaderOverride
|
|
63
|
+
|| "application/problem+json;q=1, text/event-stream;q=0",
|
|
64
|
+
}));
|
|
65
|
+
const secConfig = await (0, security_js_1.extractSecurity)(client._options.token);
|
|
66
|
+
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
67
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
68
|
+
const context = {
|
|
69
|
+
options: client._options,
|
|
70
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
71
|
+
operationID: "site.subscribe",
|
|
72
|
+
oAuth2Scopes: null,
|
|
73
|
+
resolvedSecurity: requestSecurity,
|
|
74
|
+
securitySource: client._options.token,
|
|
75
|
+
retryConfig: options?.retries
|
|
76
|
+
|| client._options.retryConfig
|
|
77
|
+
|| {
|
|
78
|
+
strategy: "backoff",
|
|
79
|
+
backoff: {
|
|
80
|
+
initialInterval: 500,
|
|
81
|
+
maxInterval: 5000,
|
|
82
|
+
exponent: 1.5,
|
|
83
|
+
maxElapsedTime: 60000,
|
|
84
|
+
},
|
|
85
|
+
retryConnectionErrors: true,
|
|
86
|
+
}
|
|
87
|
+
|| { strategy: "none" },
|
|
88
|
+
retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
|
|
89
|
+
};
|
|
90
|
+
const requestRes = client._createRequest(context, {
|
|
91
|
+
security: requestSecurity,
|
|
92
|
+
method: "GET",
|
|
93
|
+
baseURL: options?.serverURL,
|
|
94
|
+
path: path,
|
|
95
|
+
headers: headers,
|
|
96
|
+
uaHeader: "x-speakeasy-user-agent",
|
|
97
|
+
userAgent: client._options.userAgent,
|
|
98
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
99
|
+
}, options);
|
|
100
|
+
if (!requestRes.ok) {
|
|
101
|
+
return [requestRes, { status: "invalid" }];
|
|
102
|
+
}
|
|
103
|
+
const req = requestRes.value;
|
|
104
|
+
const doResult = await client._do(req, {
|
|
105
|
+
context,
|
|
106
|
+
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
107
|
+
retryConfig: context.retryConfig,
|
|
108
|
+
retryCodes: context.retryCodes,
|
|
109
|
+
});
|
|
110
|
+
if (!doResult.ok) {
|
|
111
|
+
return [doResult, { status: "request-error", request: req }];
|
|
112
|
+
}
|
|
113
|
+
const response = doResult.value;
|
|
114
|
+
const responseFields = {
|
|
115
|
+
HttpMeta: { Response: response, Request: req },
|
|
116
|
+
};
|
|
117
|
+
const [result] = await M.match(M.sse(200, operations.SiteSubscribeResponse$inboundSchema, {
|
|
118
|
+
key: "Server Sent Events",
|
|
119
|
+
}), M.fail("4XX"), M.fail("5XX"), M.json("default", operations.SiteSubscribeResponse$inboundSchema, {
|
|
120
|
+
ctype: "application/problem+json",
|
|
121
|
+
key: "ErrorModel",
|
|
122
|
+
}))(response, req, { extraFields: responseFields });
|
|
123
|
+
if (!result.ok) {
|
|
124
|
+
return [result, { status: "complete", request: req, response }];
|
|
125
|
+
}
|
|
126
|
+
return [result, { status: "complete", request: req, response }];
|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AE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
package/jsr.json
CHANGED
package/lib/config.d.ts
CHANGED
|
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "1.0.0";
|
|
34
|
-
readonly sdkVersion: "0.34.
|
|
35
|
-
readonly genVersion: "2.
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.34.
|
|
34
|
+
readonly sdkVersion: "0.34.5";
|
|
35
|
+
readonly genVersion: "2.882.0";
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.34.5 2.882.0 1.0.0 @steamsets/client-ts";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -29,8 +29,8 @@ function serverURLFromOptions(options) {
|
|
|
29
29
|
exports.SDK_METADATA = {
|
|
30
30
|
language: "typescript",
|
|
31
31
|
openapiDocVersion: "1.0.0",
|
|
32
|
-
sdkVersion: "0.34.
|
|
33
|
-
genVersion: "2.
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 0.34.
|
|
32
|
+
sdkVersion: "0.34.5",
|
|
33
|
+
genVersion: "2.882.0",
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 0.34.5 2.882.0 1.0.0 @steamsets/client-ts",
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=config.js.map
|
package/lib/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAuCH,oDAeC;AAjDD,qCAA8C;AAE9C;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB,2BAA2B;IAC3B,uBAAuB;CACf,C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wBAAwB,SAAS,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,SAAS,GAAG,kBAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,GAAG,IAAA,mBAAU,EAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAEY,QAAA,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,OAAO;IAC1B,UAAU,EAAE,QAAQ;IACpB,UAAU,EAAE,SAAS;IACrB,SAAS,EACP,oEAAoE;CAC9D,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type AccountSubscribeHeartbeat = {
|
|
5
|
+
heartbeat: number;
|
|
6
|
+
};
|
|
7
|
+
/** @internal */
|
|
8
|
+
export declare const AccountSubscribeHeartbeat$inboundSchema: z.ZodType<AccountSubscribeHeartbeat, z.ZodTypeDef, unknown>;
|
|
9
|
+
export declare function accountSubscribeHeartbeatFromJSON(jsonString: string): SafeParseResult<AccountSubscribeHeartbeat, SDKValidationError>;
|
|
10
|
+
//# sourceMappingURL=accountsubscribeheartbeat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountsubscribeheartbeat.d.ts","sourceRoot":"","sources":["../../src/models/components/accountsubscribeheartbeat.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,yBAAyB,GAAG;IACtC,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AAEH,wBAAgB,iCAAiC,CAC/C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,yBAAyB,EAAE,kBAAkB,CAAC,CAMhE"}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.AccountSubscribeHeartbeat$inboundSchema = void 0;
|
|
40
|
+
exports.accountSubscribeHeartbeatFromJSON = accountSubscribeHeartbeatFromJSON;
|
|
41
|
+
const z = __importStar(require("zod/v3"));
|
|
42
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
43
|
+
/** @internal */
|
|
44
|
+
exports.AccountSubscribeHeartbeat$inboundSchema = z.object({
|
|
45
|
+
heartbeat: z.number().int(),
|
|
46
|
+
});
|
|
47
|
+
function accountSubscribeHeartbeatFromJSON(jsonString) {
|
|
48
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AccountSubscribeHeartbeat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AccountSubscribeHeartbeat' from JSON`);
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=accountsubscribeheartbeat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountsubscribeheartbeat.js","sourceRoot":"","sources":["../../src/models/components/accountsubscribeheartbeat.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBH,8EAQC;AA1BD,0CAA4B;AAC5B,qDAAiD;AAQjD,gBAAgB;AACH,QAAA,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CAC5B,CAAC,CAAC;AAEH,SAAgB,iCAAiC,CAC/C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,+CAAuC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACnE,uDAAuD,CACxD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type EventAccountUpdatedData = {
|
|
5
|
+
accountId: number;
|
|
6
|
+
status: string;
|
|
7
|
+
};
|
|
8
|
+
/** @internal */
|
|
9
|
+
export declare const EventAccountUpdatedData$inboundSchema: z.ZodType<EventAccountUpdatedData, z.ZodTypeDef, unknown>;
|
|
10
|
+
export declare function eventAccountUpdatedDataFromJSON(jsonString: string): SafeParseResult<EventAccountUpdatedData, SDKValidationError>;
|
|
11
|
+
//# sourceMappingURL=eventaccountupdateddata.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventaccountupdateddata.d.ts","sourceRoot":"","sources":["../../src/models/components/eventaccountupdateddata.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,uBAAuB,GAAG;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,uBAAuB,EAAE,kBAAkB,CAAC,CAM9D"}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.EventAccountUpdatedData$inboundSchema = void 0;
|
|
40
|
+
exports.eventAccountUpdatedDataFromJSON = eventAccountUpdatedDataFromJSON;
|
|
41
|
+
const z = __importStar(require("zod/v3"));
|
|
42
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
43
|
+
/** @internal */
|
|
44
|
+
exports.EventAccountUpdatedData$inboundSchema = z.object({
|
|
45
|
+
accountId: z.number().int(),
|
|
46
|
+
status: z.string(),
|
|
47
|
+
});
|
|
48
|
+
function eventAccountUpdatedDataFromJSON(jsonString) {
|
|
49
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.EventAccountUpdatedData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EventAccountUpdatedData' from JSON`);
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=eventaccountupdateddata.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventaccountupdateddata.js","sourceRoot":"","sources":["../../src/models/components/eventaccountupdateddata.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBH,0EAQC;AA5BD,0CAA4B;AAC5B,qDAAiD;AASjD,gBAAgB;AACH,QAAA,qCAAqC,GAI9C,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC3B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAEH,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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type EventAccountViewTickData = {
|
|
5
|
+
accountId: number;
|
|
6
|
+
totalDelta: number;
|
|
7
|
+
};
|
|
8
|
+
/** @internal */
|
|
9
|
+
export declare const EventAccountViewTickData$inboundSchema: z.ZodType<EventAccountViewTickData, z.ZodTypeDef, unknown>;
|
|
10
|
+
export declare function eventAccountViewTickDataFromJSON(jsonString: string): SafeParseResult<EventAccountViewTickData, SDKValidationError>;
|
|
11
|
+
//# sourceMappingURL=eventaccountviewtickdata.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventaccountviewtickdata.d.ts","sourceRoot":"","sources":["../../src/models/components/eventaccountviewtickdata.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,wBAAwB,GAAG;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,wBAAwB,EAAE,kBAAkB,CAAC,CAM/D"}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.EventAccountViewTickData$inboundSchema = void 0;
|
|
40
|
+
exports.eventAccountViewTickDataFromJSON = eventAccountViewTickDataFromJSON;
|
|
41
|
+
const z = __importStar(require("zod/v3"));
|
|
42
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
43
|
+
/** @internal */
|
|
44
|
+
exports.EventAccountViewTickData$inboundSchema = z.object({
|
|
45
|
+
accountId: z.number().int(),
|
|
46
|
+
totalDelta: z.number().int(),
|
|
47
|
+
});
|
|
48
|
+
function eventAccountViewTickDataFromJSON(jsonString) {
|
|
49
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.EventAccountViewTickData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EventAccountViewTickData' from JSON`);
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=eventaccountviewtickdata.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventaccountviewtickdata.js","sourceRoot":"","sources":["../../src/models/components/eventaccountviewtickdata.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBH,4EAQC;AA5BD,0CAA4B;AAC5B,qDAAiD;AASjD,gBAAgB;AACH,QAAA,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC3B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CAC7B,CAAC,CAAC;AAEH,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"}
|