@steamsets/client-ts 0.31.0 → 0.31.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 +15 -4
- package/examples/package-lock.json +1 -1
- package/funcs/{accountAccountListInventorySets.d.ts → accountListInventorySets.d.ts} +2 -2
- package/funcs/accountListInventorySets.d.ts.map +1 -0
- package/funcs/{accountAccountListInventorySets.js → accountListInventorySets.js} +3 -3
- package/funcs/accountListInventorySets.js.map +1 -0
- package/funcs/{accountAccountRefreshInventory.d.ts → accountRefreshInventory.d.ts} +2 -2
- package/funcs/accountRefreshInventory.d.ts.map +1 -0
- package/funcs/{accountAccountRefreshInventory.js → accountRefreshInventory.js} +3 -3
- package/funcs/accountRefreshInventory.js.map +1 -0
- package/funcs/adminGetAccount.d.ts +16 -0
- package/funcs/adminGetAccount.d.ts.map +1 -0
- package/funcs/adminGetAccount.js +133 -0
- package/funcs/adminGetAccount.js.map +1 -0
- package/funcs/adminRemoveVanity.d.ts +16 -0
- package/funcs/adminRemoveVanity.d.ts.map +1 -0
- package/funcs/adminRemoveVanity.js +133 -0
- package/funcs/adminRemoveVanity.js.map +1 -0
- package/funcs/adminUpdateResources.d.ts +16 -0
- package/funcs/adminUpdateResources.d.ts.map +1 -0
- package/funcs/adminUpdateResources.js +131 -0
- package/funcs/adminUpdateResources.js.map +1 -0
- package/funcs/adminUpdateRoles.d.ts +16 -0
- package/funcs/adminUpdateRoles.d.ts.map +1 -0
- package/funcs/adminUpdateRoles.js +131 -0
- package/funcs/adminUpdateRoles.js.map +1 -0
- package/hooks/hooks.d.ts.map +1 -1
- package/hooks/hooks.js +2 -0
- package/hooks/hooks.js.map +1 -1
- package/hooks/registration.d.ts +3 -0
- package/hooks/registration.d.ts.map +1 -0
- package/hooks/registration.js +15 -0
- package/hooks/registration.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/historyvalue.d.ts +17 -0
- package/models/components/historyvalue.d.ts.map +1 -0
- package/models/components/historyvalue.js +51 -0
- package/models/components/historyvalue.js.map +1 -0
- package/models/components/index.d.ts +8 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +8 -0
- package/models/components/index.js.map +1 -1
- package/models/components/resource.d.ts +10 -0
- package/models/components/resource.d.ts.map +1 -1
- package/models/components/resource.js +12 -1
- package/models/components/resource.js.map +1 -1
- package/models/components/v1accountlocationupdate.d.ts +19 -0
- package/models/components/v1accountlocationupdate.d.ts.map +1 -0
- package/models/components/v1accountlocationupdate.js +56 -0
- package/models/components/v1accountlocationupdate.js.map +1 -0
- package/models/components/v1accountnameupdate.d.ts +15 -0
- package/models/components/v1accountnameupdate.d.ts.map +1 -0
- package/models/components/v1accountnameupdate.js +52 -0
- package/models/components/v1accountnameupdate.js.map +1 -0
- package/models/components/v1accountvanityupdate.d.ts +15 -0
- package/models/components/v1accountvanityupdate.d.ts.map +1 -0
- package/models/components/v1accountvanityupdate.js +52 -0
- package/models/components/v1accountvanityupdate.js.map +1 -0
- package/models/components/v1admingetaccountresponsebody.d.ts +104 -0
- package/models/components/v1admingetaccountresponsebody.d.ts.map +1 -0
- package/models/components/v1admingetaccountresponsebody.js +90 -0
- package/models/components/v1admingetaccountresponsebody.js.map +1 -0
- package/models/components/v1adminremovevanityresponsebody.d.ts +13 -0
- package/models/components/v1adminremovevanityresponsebody.d.ts.map +1 -0
- package/models/components/v1adminremovevanityresponsebody.js +55 -0
- package/models/components/v1adminremovevanityresponsebody.js.map +1 -0
- package/models/components/v1adminupdateresourcesrequestbody.d.ts +22 -0
- package/models/components/v1adminupdateresourcesrequestbody.d.ts.map +1 -0
- package/models/components/v1adminupdateresourcesrequestbody.js +54 -0
- package/models/components/v1adminupdateresourcesrequestbody.js.map +1 -0
- package/models/components/v1adminupdaterolesrequestbody.d.ts +45 -0
- package/models/components/v1adminupdaterolesrequestbody.d.ts.map +1 -0
- package/models/components/v1adminupdaterolesrequestbody.js +78 -0
- package/models/components/v1adminupdaterolesrequestbody.js.map +1 -0
- package/models/operations/admingetaccount.d.ts +15 -0
- package/models/operations/admingetaccount.d.ts.map +1 -0
- package/models/operations/admingetaccount.js +59 -0
- package/models/operations/admingetaccount.js.map +1 -0
- package/models/operations/adminremovevanity.d.ts +15 -0
- package/models/operations/adminremovevanity.d.ts.map +1 -0
- package/models/operations/adminremovevanity.js +59 -0
- package/models/operations/adminremovevanity.js.map +1 -0
- package/models/operations/adminupdateresources.d.ts +11 -0
- package/models/operations/adminupdateresources.d.ts.map +1 -0
- package/models/operations/adminupdateresources.js +56 -0
- package/models/operations/adminupdateresources.js.map +1 -0
- package/models/operations/adminupdateroles.d.ts +11 -0
- package/models/operations/adminupdateroles.d.ts.map +1 -0
- package/models/operations/adminupdateroles.js +56 -0
- package/models/operations/adminupdateroles.js.map +1 -0
- package/models/operations/index.d.ts +4 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +4 -0
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/account.d.ts +2 -2
- package/sdk/account.d.ts.map +1 -1
- package/sdk/account.js +6 -6
- package/sdk/account.js.map +1 -1
- package/sdk/admin.d.ts +22 -0
- package/sdk/admin.d.ts.map +1 -0
- package/sdk/admin.js +40 -0
- package/sdk/admin.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/src/funcs/{accountAccountListInventorySets.ts → accountListInventorySets.ts} +1 -1
- package/src/funcs/{accountAccountRefreshInventory.ts → accountRefreshInventory.ts} +1 -1
- package/src/funcs/adminGetAccount.ts +185 -0
- package/src/funcs/adminRemoveVanity.ts +185 -0
- package/src/funcs/adminUpdateResources.ts +184 -0
- package/src/funcs/adminUpdateRoles.ts +184 -0
- package/src/hooks/hooks.ts +3 -0
- package/src/hooks/registration.ts +14 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/historyvalue.ts +39 -0
- package/src/models/components/index.ts +8 -0
- package/src/models/components/resource.ts +22 -0
- package/src/models/components/v1accountlocationupdate.ts +45 -0
- package/src/models/components/v1accountnameupdate.ts +37 -0
- package/src/models/components/v1accountvanityupdate.ts +37 -0
- package/src/models/components/v1admingetaccountresponsebody.ts +163 -0
- package/src/models/components/v1adminremovevanityresponsebody.ts +39 -0
- package/src/models/components/v1adminupdateresourcesrequestbody.ts +57 -0
- package/src/models/components/v1adminupdaterolesrequestbody.ts +80 -0
- package/src/models/operations/admingetaccount.ts +46 -0
- package/src/models/operations/adminremovevanity.ts +46 -0
- package/src/models/operations/adminupdateresources.ts +37 -0
- package/src/models/operations/adminupdateroles.ts +37 -0
- package/src/models/operations/index.ts +4 -0
- package/src/sdk/account.ts +6 -6
- package/src/sdk/admin.ts +70 -0
- package/src/sdk/sdk.ts +6 -0
- package/funcs/accountAccountListInventorySets.d.ts.map +0 -1
- package/funcs/accountAccountListInventorySets.js.map +0 -1
- package/funcs/accountAccountRefreshInventory.d.ts.map +0 -1
- package/funcs/accountAccountRefreshInventory.js.map +0 -1
|
@@ -36,7 +36,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.Resource$inboundSchema = exports.ResourceResource$inboundSchema = exports.ResourceResource = void 0;
|
|
39
|
+
exports.Resource$outboundSchema = exports.Resource$inboundSchema = exports.ResourceResource$outboundSchema = exports.ResourceResource$inboundSchema = exports.ResourceResource = void 0;
|
|
40
|
+
exports.resourceToJSON = resourceToJSON;
|
|
40
41
|
exports.resourceFromJSON = resourceFromJSON;
|
|
41
42
|
const z = __importStar(require("zod/v3"));
|
|
42
43
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
@@ -59,10 +60,20 @@ exports.ResourceResource = {
|
|
|
59
60
|
/** @internal */
|
|
60
61
|
exports.ResourceResource$inboundSchema = z.nativeEnum(exports.ResourceResource);
|
|
61
62
|
/** @internal */
|
|
63
|
+
exports.ResourceResource$outboundSchema = exports.ResourceResource$inboundSchema;
|
|
64
|
+
/** @internal */
|
|
62
65
|
exports.Resource$inboundSchema = z.object({
|
|
63
66
|
resource: exports.ResourceResource$inboundSchema,
|
|
64
67
|
value: z.string(),
|
|
65
68
|
});
|
|
69
|
+
/** @internal */
|
|
70
|
+
exports.Resource$outboundSchema = z.object({
|
|
71
|
+
resource: exports.ResourceResource$outboundSchema,
|
|
72
|
+
value: z.string(),
|
|
73
|
+
});
|
|
74
|
+
function resourceToJSON(resource) {
|
|
75
|
+
return JSON.stringify(exports.Resource$outboundSchema.parse(resource));
|
|
76
|
+
}
|
|
66
77
|
function resourceFromJSON(jsonString) {
|
|
67
78
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Resource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Resource' from JSON`);
|
|
68
79
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource.js","sourceRoot":"","sources":["../../src/models/components/resource.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"resource.js","sourceRoot":"","sources":["../../src/models/components/resource.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoEH,wCAEC;AACD,4CAQC;AA7ED,0CAA4B;AAC5B,qDAAiD;AAKpC,QAAA,gBAAgB,GAAG;IAC9B,cAAc,EAAE,iBAAiB;IACjC,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,cAAc;IAC3B,UAAU,EAAE,YAAY;IACxB,oBAAoB,EAAE,yBAAyB;IAC/C,qBAAqB,EAAE,yBAAyB;IAChD,cAAc,EAAE,iBAAiB;IACjC,kBAAkB,EAAE,sBAAsB;IAC1C,oBAAoB,EAAE,wBAAwB;IAC9C,WAAW,EAAE,cAAc;IAC3B,MAAM,EAAE,QAAQ;IAChB,aAAa,EAAE,gBAAgB;IAC/B,aAAa,EAAE,gBAAgB;IAC/B,eAAe,EAAE,mBAAmB;CAC5B,CAAC;AAWX,gBAAgB;AACH,QAAA,8BAA8B,GAEvC,CAAC,CAAC,UAAU,CAAC,wBAAgB,CAAC,CAAC;AACnC,gBAAgB;AACH,QAAA,+BAA+B,GAExC,sCAA8B,CAAC;AAEnC,gBAAgB;AACH,QAAA,sBAAsB,GAI/B,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,sCAA8B;IACxC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,uBAAuB,GAIhC,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,uCAA+B;IACzC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAEH,SAAgB,cAAc,CAAC,QAAkB;IAC/C,OAAO,IAAI,CAAC,SAAS,CAAC,+BAAuB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;AACjE,CAAC;AACD,SAAgB,gBAAgB,CAC9B,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8BAAsB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClD,sCAAsC,CACvC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { HistoryValue } from "./historyvalue.js";
|
|
5
|
+
export type V1AccountLocationUpdate = {
|
|
6
|
+
city: HistoryValue;
|
|
7
|
+
countryCode: HistoryValue;
|
|
8
|
+
countryName: HistoryValue;
|
|
9
|
+
region: HistoryValue;
|
|
10
|
+
state: HistoryValue;
|
|
11
|
+
/**
|
|
12
|
+
* The time the location was updated
|
|
13
|
+
*/
|
|
14
|
+
updatedAt: Date;
|
|
15
|
+
};
|
|
16
|
+
/** @internal */
|
|
17
|
+
export declare const V1AccountLocationUpdate$inboundSchema: z.ZodType<V1AccountLocationUpdate, z.ZodTypeDef, unknown>;
|
|
18
|
+
export declare function v1AccountLocationUpdateFromJSON(jsonString: string): SafeParseResult<V1AccountLocationUpdate, SDKValidationError>;
|
|
19
|
+
//# sourceMappingURL=v1accountlocationupdate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1accountlocationupdate.d.ts","sourceRoot":"","sources":["../../src/models/components/v1accountlocationupdate.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;AACrE,OAAO,EAAE,YAAY,EAA8B,MAAM,mBAAmB,CAAC;AAE7E,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,YAAY,CAAC;IACnB,WAAW,EAAE,YAAY,CAAC;IAC1B,WAAW,EAAE,YAAY,CAAC;IAC1B,MAAM,EAAE,YAAY,CAAC;IACrB,KAAK,EAAE,YAAY,CAAC;IACpB;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;CACjB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,OAAO,CAQP,CAAC;AAEH,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,uBAAuB,EAAE,kBAAkB,CAAC,CAM9D"}
|
|
@@ -0,0 +1,56 @@
|
|
|
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.V1AccountLocationUpdate$inboundSchema = void 0;
|
|
40
|
+
exports.v1AccountLocationUpdateFromJSON = v1AccountLocationUpdateFromJSON;
|
|
41
|
+
const z = __importStar(require("zod/v3"));
|
|
42
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
43
|
+
const historyvalue_js_1 = require("./historyvalue.js");
|
|
44
|
+
/** @internal */
|
|
45
|
+
exports.V1AccountLocationUpdate$inboundSchema = z.object({
|
|
46
|
+
city: historyvalue_js_1.HistoryValue$inboundSchema,
|
|
47
|
+
countryCode: historyvalue_js_1.HistoryValue$inboundSchema,
|
|
48
|
+
countryName: historyvalue_js_1.HistoryValue$inboundSchema,
|
|
49
|
+
region: historyvalue_js_1.HistoryValue$inboundSchema,
|
|
50
|
+
state: historyvalue_js_1.HistoryValue$inboundSchema,
|
|
51
|
+
updatedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
52
|
+
});
|
|
53
|
+
function v1AccountLocationUpdateFromJSON(jsonString) {
|
|
54
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.V1AccountLocationUpdate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'V1AccountLocationUpdate' from JSON`);
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=v1accountlocationupdate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1accountlocationupdate.js","sourceRoot":"","sources":["../../src/models/components/v1accountlocationupdate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCH,0EAQC;AAxCD,0CAA4B;AAC5B,qDAAiD;AAGjD,uDAA6E;AAc7E,gBAAgB;AACH,QAAA,qCAAqC,GAI9C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,4CAA0B;IAChC,WAAW,EAAE,4CAA0B;IACvC,WAAW,EAAE,4CAA0B;IACvC,MAAM,EAAE,4CAA0B;IAClC,KAAK,EAAE,4CAA0B;IACjC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;CAC7E,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,15 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { HistoryValue } from "./historyvalue.js";
|
|
5
|
+
export type V1AccountNameUpdate = {
|
|
6
|
+
name: HistoryValue;
|
|
7
|
+
/**
|
|
8
|
+
* The time the name was updated
|
|
9
|
+
*/
|
|
10
|
+
updatedAt: Date;
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export declare const V1AccountNameUpdate$inboundSchema: z.ZodType<V1AccountNameUpdate, z.ZodTypeDef, unknown>;
|
|
14
|
+
export declare function v1AccountNameUpdateFromJSON(jsonString: string): SafeParseResult<V1AccountNameUpdate, SDKValidationError>;
|
|
15
|
+
//# sourceMappingURL=v1accountnameupdate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1accountnameupdate.d.ts","sourceRoot":"","sources":["../../src/models/components/v1accountnameupdate.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;AACrE,OAAO,EAAE,YAAY,EAA8B,MAAM,mBAAmB,CAAC;AAE7E,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,YAAY,CAAC;IACnB;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;CACjB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,mBAAmB,EACnB,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
|
|
@@ -0,0 +1,52 @@
|
|
|
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.V1AccountNameUpdate$inboundSchema = void 0;
|
|
40
|
+
exports.v1AccountNameUpdateFromJSON = v1AccountNameUpdateFromJSON;
|
|
41
|
+
const z = __importStar(require("zod/v3"));
|
|
42
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
43
|
+
const historyvalue_js_1 = require("./historyvalue.js");
|
|
44
|
+
/** @internal */
|
|
45
|
+
exports.V1AccountNameUpdate$inboundSchema = z.object({
|
|
46
|
+
name: historyvalue_js_1.HistoryValue$inboundSchema,
|
|
47
|
+
updatedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
48
|
+
});
|
|
49
|
+
function v1AccountNameUpdateFromJSON(jsonString) {
|
|
50
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.V1AccountNameUpdate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'V1AccountNameUpdate' from JSON`);
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=v1accountnameupdate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1accountnameupdate.js","sourceRoot":"","sources":["../../src/models/components/v1accountnameupdate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BH,kEAQC;AAhCD,0CAA4B;AAC5B,qDAAiD;AAGjD,uDAA6E;AAU7E,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,4CAA0B;IAChC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;CAC7E,CAAC,CAAC;AAEH,SAAgB,2BAA2B,CACzC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yCAAiC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7D,iDAAiD,CAClD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { HistoryValue } from "./historyvalue.js";
|
|
5
|
+
export type V1AccountVanityUpdate = {
|
|
6
|
+
/**
|
|
7
|
+
* The time the vanity was updated
|
|
8
|
+
*/
|
|
9
|
+
updatedAt: Date;
|
|
10
|
+
vanity: HistoryValue;
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export declare const V1AccountVanityUpdate$inboundSchema: z.ZodType<V1AccountVanityUpdate, z.ZodTypeDef, unknown>;
|
|
14
|
+
export declare function v1AccountVanityUpdateFromJSON(jsonString: string): SafeParseResult<V1AccountVanityUpdate, SDKValidationError>;
|
|
15
|
+
//# sourceMappingURL=v1accountvanityupdate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1accountvanityupdate.d.ts","sourceRoot":"","sources":["../../src/models/components/v1accountvanityupdate.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;AACrE,OAAO,EAAE,YAAY,EAA8B,MAAM,mBAAmB,CAAC;AAE7E,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB,MAAM,EAAE,YAAY,CAAC;CACtB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
|
|
@@ -0,0 +1,52 @@
|
|
|
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.V1AccountVanityUpdate$inboundSchema = void 0;
|
|
40
|
+
exports.v1AccountVanityUpdateFromJSON = v1AccountVanityUpdateFromJSON;
|
|
41
|
+
const z = __importStar(require("zod/v3"));
|
|
42
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
43
|
+
const historyvalue_js_1 = require("./historyvalue.js");
|
|
44
|
+
/** @internal */
|
|
45
|
+
exports.V1AccountVanityUpdate$inboundSchema = z.object({
|
|
46
|
+
updatedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
47
|
+
vanity: historyvalue_js_1.HistoryValue$inboundSchema,
|
|
48
|
+
});
|
|
49
|
+
function v1AccountVanityUpdateFromJSON(jsonString) {
|
|
50
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.V1AccountVanityUpdate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'V1AccountVanityUpdate' from JSON`);
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=v1accountvanityupdate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1accountvanityupdate.js","sourceRoot":"","sources":["../../src/models/components/v1accountvanityupdate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BH,sEAQC;AAhCD,0CAA4B;AAC5B,qDAAiD;AAGjD,uDAA6E;AAU7E,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;IAC5E,MAAM,EAAE,4CAA0B;CACnC,CAAC,CAAC;AAEH,SAAgB,6BAA6B,CAC3C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2CAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
import { Connection } from "./connection.js";
|
|
6
|
+
import { DeveloperApp } from "./developerapp.js";
|
|
7
|
+
import { Resource } from "./resource.js";
|
|
8
|
+
import { Role } from "./role.js";
|
|
9
|
+
import { Session } from "./session.js";
|
|
10
|
+
import { V1AccountLocationUpdate } from "./v1accountlocationupdate.js";
|
|
11
|
+
import { V1AccountNameUpdate } from "./v1accountnameupdate.js";
|
|
12
|
+
import { V1AccountVanityUpdate } from "./v1accountvanityupdate.js";
|
|
13
|
+
/**
|
|
14
|
+
* The privacy of the account
|
|
15
|
+
*/
|
|
16
|
+
export declare const V1AdminGetAccountResponseBodyPrivacy: {
|
|
17
|
+
readonly Private: "private";
|
|
18
|
+
readonly Public: "public";
|
|
19
|
+
readonly FriendsOnly: "friends_only";
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* The privacy of the account
|
|
23
|
+
*/
|
|
24
|
+
export type V1AdminGetAccountResponseBodyPrivacy = ClosedEnum<typeof V1AdminGetAccountResponseBodyPrivacy>;
|
|
25
|
+
export type V1AdminGetAccountResponseBody = {
|
|
26
|
+
/**
|
|
27
|
+
* A URL to the JSON Schema for this object.
|
|
28
|
+
*/
|
|
29
|
+
dollarSchema?: string | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* The avatar of the account
|
|
32
|
+
*/
|
|
33
|
+
avatar: string;
|
|
34
|
+
/**
|
|
35
|
+
* The city of the account
|
|
36
|
+
*/
|
|
37
|
+
city: string | null;
|
|
38
|
+
/**
|
|
39
|
+
* The connections the account has
|
|
40
|
+
*/
|
|
41
|
+
connections: Array<Connection> | null;
|
|
42
|
+
/**
|
|
43
|
+
* The country code of the account
|
|
44
|
+
*/
|
|
45
|
+
country: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* The developer apps the account has
|
|
48
|
+
*/
|
|
49
|
+
developerApps: Array<DeveloperApp> | null;
|
|
50
|
+
/**
|
|
51
|
+
* The email of the account
|
|
52
|
+
*/
|
|
53
|
+
email: string | null;
|
|
54
|
+
/**
|
|
55
|
+
* The location updates the account has
|
|
56
|
+
*/
|
|
57
|
+
locationUpdates: Array<V1AccountLocationUpdate> | null;
|
|
58
|
+
/**
|
|
59
|
+
* The name of the account
|
|
60
|
+
*/
|
|
61
|
+
name: string;
|
|
62
|
+
/**
|
|
63
|
+
* The name updates the account has
|
|
64
|
+
*/
|
|
65
|
+
nameUpdates: Array<V1AccountNameUpdate> | null;
|
|
66
|
+
/**
|
|
67
|
+
* The privacy of the account
|
|
68
|
+
*/
|
|
69
|
+
privacy: V1AdminGetAccountResponseBodyPrivacy;
|
|
70
|
+
/**
|
|
71
|
+
* The region of the account
|
|
72
|
+
*/
|
|
73
|
+
region: string | null;
|
|
74
|
+
/**
|
|
75
|
+
* The resources the account has (permissions)
|
|
76
|
+
*/
|
|
77
|
+
resources: Array<Resource> | null;
|
|
78
|
+
/**
|
|
79
|
+
* The roles the account has
|
|
80
|
+
*/
|
|
81
|
+
roles: Array<Role> | null;
|
|
82
|
+
/**
|
|
83
|
+
* The sessions the account has
|
|
84
|
+
*/
|
|
85
|
+
sessions: Array<Session> | null;
|
|
86
|
+
/**
|
|
87
|
+
* The state of the account
|
|
88
|
+
*/
|
|
89
|
+
state: string | null;
|
|
90
|
+
/**
|
|
91
|
+
* The vanity of the account
|
|
92
|
+
*/
|
|
93
|
+
vanity: string | null;
|
|
94
|
+
/**
|
|
95
|
+
* The vanity updates the account has
|
|
96
|
+
*/
|
|
97
|
+
vanityUpdates: Array<V1AccountVanityUpdate> | null;
|
|
98
|
+
};
|
|
99
|
+
/** @internal */
|
|
100
|
+
export declare const V1AdminGetAccountResponseBodyPrivacy$inboundSchema: z.ZodNativeEnum<typeof V1AdminGetAccountResponseBodyPrivacy>;
|
|
101
|
+
/** @internal */
|
|
102
|
+
export declare const V1AdminGetAccountResponseBody$inboundSchema: z.ZodType<V1AdminGetAccountResponseBody, z.ZodTypeDef, unknown>;
|
|
103
|
+
export declare function v1AdminGetAccountResponseBodyFromJSON(jsonString: string): SafeParseResult<V1AdminGetAccountResponseBody, SDKValidationError>;
|
|
104
|
+
//# sourceMappingURL=v1admingetaccountresponsebody.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1admingetaccountresponsebody.d.ts","sourceRoot":"","sources":["../../src/models/components/v1admingetaccountresponsebody.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,UAAU,EAA4B,MAAM,iBAAiB,CAAC;AACvE,OAAO,EAAE,YAAY,EAA8B,MAAM,mBAAmB,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAA0B,MAAM,eAAe,CAAC;AACjE,OAAO,EAAE,IAAI,EAAsB,MAAM,WAAW,CAAC;AACrD,OAAO,EAAE,OAAO,EAAyB,MAAM,cAAc,CAAC;AAC9D,OAAO,EACL,uBAAuB,EAExB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,EAEtB,MAAM,4BAA4B,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,oCAAoC;;;;CAIvC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,oCAAoC,GAAG,UAAU,CAC3D,OAAO,oCAAoC,CAC5C,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB;;OAEG;IACH,WAAW,EAAE,KAAK,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC;IACtC;;OAEG;IACH,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;OAEG;IACH,aAAa,EAAE,KAAK,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;IAC1C;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB;;OAEG;IACH,eAAe,EAAE,KAAK,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC;IACvD;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,EAAE,KAAK,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC;IAC/C;;OAEG;IACH,OAAO,EAAE,oCAAoC,CAAC;IAC9C;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB;;OAEG;IACH,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC;IAClC;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC1B;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IAChC;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB;;OAEG;IACH,aAAa,EAAE,KAAK,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC;CACpD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kDAAkD,EAC7D,CAAC,CAAC,aAAa,CAAC,OAAO,oCAAoC,CAE1D,CAAC;AAEJ,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,OAAO,CACjE,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,OAAO,CAwBP,CAAC;AAEH,wBAAgB,qCAAqC,CACnD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,6BAA6B,EAAE,kBAAkB,CAAC,CAMpE"}
|
|
@@ -0,0 +1,90 @@
|
|
|
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.V1AdminGetAccountResponseBody$inboundSchema = exports.V1AdminGetAccountResponseBodyPrivacy$inboundSchema = exports.V1AdminGetAccountResponseBodyPrivacy = void 0;
|
|
40
|
+
exports.v1AdminGetAccountResponseBodyFromJSON = v1AdminGetAccountResponseBodyFromJSON;
|
|
41
|
+
const z = __importStar(require("zod/v3"));
|
|
42
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
const connection_js_1 = require("./connection.js");
|
|
45
|
+
const developerapp_js_1 = require("./developerapp.js");
|
|
46
|
+
const resource_js_1 = require("./resource.js");
|
|
47
|
+
const role_js_1 = require("./role.js");
|
|
48
|
+
const session_js_1 = require("./session.js");
|
|
49
|
+
const v1accountlocationupdate_js_1 = require("./v1accountlocationupdate.js");
|
|
50
|
+
const v1accountnameupdate_js_1 = require("./v1accountnameupdate.js");
|
|
51
|
+
const v1accountvanityupdate_js_1 = require("./v1accountvanityupdate.js");
|
|
52
|
+
/**
|
|
53
|
+
* The privacy of the account
|
|
54
|
+
*/
|
|
55
|
+
exports.V1AdminGetAccountResponseBodyPrivacy = {
|
|
56
|
+
Private: "private",
|
|
57
|
+
Public: "public",
|
|
58
|
+
FriendsOnly: "friends_only",
|
|
59
|
+
};
|
|
60
|
+
/** @internal */
|
|
61
|
+
exports.V1AdminGetAccountResponseBodyPrivacy$inboundSchema = z.nativeEnum(exports.V1AdminGetAccountResponseBodyPrivacy);
|
|
62
|
+
/** @internal */
|
|
63
|
+
exports.V1AdminGetAccountResponseBody$inboundSchema = z.object({
|
|
64
|
+
$schema: z.string().optional(),
|
|
65
|
+
avatar: z.string(),
|
|
66
|
+
city: z.nullable(z.string()),
|
|
67
|
+
connections: z.nullable(z.array(connection_js_1.Connection$inboundSchema)),
|
|
68
|
+
country: z.nullable(z.string()),
|
|
69
|
+
developerApps: z.nullable(z.array(developerapp_js_1.DeveloperApp$inboundSchema)),
|
|
70
|
+
email: z.nullable(z.string()),
|
|
71
|
+
locationUpdates: z.nullable(z.array(v1accountlocationupdate_js_1.V1AccountLocationUpdate$inboundSchema)),
|
|
72
|
+
name: z.string(),
|
|
73
|
+
nameUpdates: z.nullable(z.array(v1accountnameupdate_js_1.V1AccountNameUpdate$inboundSchema)),
|
|
74
|
+
privacy: exports.V1AdminGetAccountResponseBodyPrivacy$inboundSchema,
|
|
75
|
+
region: z.nullable(z.string()),
|
|
76
|
+
resources: z.nullable(z.array(resource_js_1.Resource$inboundSchema)),
|
|
77
|
+
roles: z.nullable(z.array(role_js_1.Role$inboundSchema)),
|
|
78
|
+
sessions: z.nullable(z.array(session_js_1.Session$inboundSchema)),
|
|
79
|
+
state: z.nullable(z.string()),
|
|
80
|
+
vanity: z.nullable(z.string()),
|
|
81
|
+
vanityUpdates: z.nullable(z.array(v1accountvanityupdate_js_1.V1AccountVanityUpdate$inboundSchema)),
|
|
82
|
+
}).transform((v) => {
|
|
83
|
+
return (0, primitives_js_1.remap)(v, {
|
|
84
|
+
"$schema": "dollarSchema",
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
function v1AdminGetAccountResponseBodyFromJSON(jsonString) {
|
|
88
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.V1AdminGetAccountResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'V1AdminGetAccountResponseBody' from JSON`);
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=v1admingetaccountresponsebody.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1admingetaccountresponsebody.js","sourceRoot":"","sources":["../../src/models/components/v1admingetaccountresponsebody.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwJH,sFAQC;AA9JD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAIjD,mDAAuE;AACvE,uDAA6E;AAC7E,+CAAiE;AACjE,uCAAqD;AACrD,6CAA8D;AAC9D,6EAGsC;AACtC,qEAGkC;AAClC,yEAGoC;AAEpC;;GAEG;AACU,QAAA,oCAAoC,GAAG;IAClD,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,cAAc;CACnB,CAAC;AAmFX,gBAAgB;AACH,QAAA,kDAAkD,GACE,CAAC,CAAC,UAAU,CACzE,4CAAoC,CACrC,CAAC;AAEJ,gBAAgB;AACH,QAAA,2CAA2C,GAIpD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC5B,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,wCAAwB,CAAC,CAAC;IAC1D,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC/B,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,4CAA0B,CAAC,CAAC;IAC9D,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC7B,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,kEAAqC,CAAC,CAAC;IAC3E,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,0DAAiC,CAAC,CAAC;IACnE,OAAO,EAAE,0DAAkD;IAC3D,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC9B,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,oCAAsB,CAAC,CAAC;IACtD,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,4BAAkB,CAAC,CAAC;IAC9C,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,kCAAqB,CAAC,CAAC;IACpD,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC7B,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC9B,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,8DAAmC,CAAC,CAAC;CACxE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,cAAc;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,qCAAqC,CACnD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mDAA2C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvE,2DAA2D,CAC5D,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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 V1AdminRemoveVanityResponseBody = {
|
|
5
|
+
/**
|
|
6
|
+
* A URL to the JSON Schema for this object.
|
|
7
|
+
*/
|
|
8
|
+
dollarSchema?: string | undefined;
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export declare const V1AdminRemoveVanityResponseBody$inboundSchema: z.ZodType<V1AdminRemoveVanityResponseBody, z.ZodTypeDef, unknown>;
|
|
12
|
+
export declare function v1AdminRemoveVanityResponseBodyFromJSON(jsonString: string): SafeParseResult<V1AdminRemoveVanityResponseBody, SDKValidationError>;
|
|
13
|
+
//# sourceMappingURL=v1adminremovevanityresponsebody.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1adminremovevanityresponsebody.d.ts","sourceRoot":"","sources":["../../src/models/components/v1adminremovevanityresponsebody.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,+BAA+B,GAAG;IAC5C;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6CAA6C,EAAE,CAAC,CAAC,OAAO,CACnE,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AAEH,wBAAgB,uCAAuC,CACrD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,+BAA+B,EAAE,kBAAkB,CAAC,CAMtE"}
|
|
@@ -0,0 +1,55 @@
|
|
|
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.V1AdminRemoveVanityResponseBody$inboundSchema = void 0;
|
|
40
|
+
exports.v1AdminRemoveVanityResponseBodyFromJSON = v1AdminRemoveVanityResponseBodyFromJSON;
|
|
41
|
+
const z = __importStar(require("zod/v3"));
|
|
42
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
/** @internal */
|
|
45
|
+
exports.V1AdminRemoveVanityResponseBody$inboundSchema = z.object({
|
|
46
|
+
$schema: z.string().optional(),
|
|
47
|
+
}).transform((v) => {
|
|
48
|
+
return (0, primitives_js_1.remap)(v, {
|
|
49
|
+
"$schema": "dollarSchema",
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
function v1AdminRemoveVanityResponseBodyFromJSON(jsonString) {
|
|
53
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.V1AdminRemoveVanityResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'V1AdminRemoveVanityResponseBody' from JSON`);
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=v1adminremovevanityresponsebody.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1adminremovevanityresponsebody.js","sourceRoot":"","sources":["../../src/models/components/v1adminremovevanityresponsebody.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BH,0FAQC;AAlCD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAWjD,gBAAgB;AACH,QAAA,6CAA6C,GAItD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,cAAc;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,uCAAuC,CACrD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qDAA6C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzE,6DAA6D,CAC9D,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { IDSearch, IDSearch$Outbound } from "./idsearch.js";
|
|
3
|
+
import { Resource, Resource$Outbound } from "./resource.js";
|
|
4
|
+
import { VanitySearch, VanitySearch$Outbound } from "./vanitysearch.js";
|
|
5
|
+
export type V1AdminUpdateResourcesRequestBody = {
|
|
6
|
+
id?: IDSearch | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* The resources to add for this account
|
|
9
|
+
*/
|
|
10
|
+
resources: Array<Resource> | null;
|
|
11
|
+
vanity?: VanitySearch | undefined;
|
|
12
|
+
};
|
|
13
|
+
/** @internal */
|
|
14
|
+
export type V1AdminUpdateResourcesRequestBody$Outbound = {
|
|
15
|
+
id?: IDSearch$Outbound | undefined;
|
|
16
|
+
resources: Array<Resource$Outbound> | null;
|
|
17
|
+
vanity?: VanitySearch$Outbound | undefined;
|
|
18
|
+
};
|
|
19
|
+
/** @internal */
|
|
20
|
+
export declare const V1AdminUpdateResourcesRequestBody$outboundSchema: z.ZodType<V1AdminUpdateResourcesRequestBody$Outbound, z.ZodTypeDef, V1AdminUpdateResourcesRequestBody>;
|
|
21
|
+
export declare function v1AdminUpdateResourcesRequestBodyToJSON(v1AdminUpdateResourcesRequestBody: V1AdminUpdateResourcesRequestBody): string;
|
|
22
|
+
//# sourceMappingURL=v1adminupdateresourcesrequestbody.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1adminupdateresourcesrequestbody.d.ts","sourceRoot":"","sources":["../../src/models/components/v1adminupdateresourcesrequestbody.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EACL,QAAQ,EACR,iBAAiB,EAElB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,QAAQ,EACR,iBAAiB,EAElB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,YAAY,EACZ,qBAAqB,EAEtB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MAAM,iCAAiC,GAAG;IAC9C,EAAE,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC;IAClC,MAAM,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,0CAA0C,GAAG;IACvD,EAAE,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACnC,SAAS,EAAE,KAAK,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC;IAC3C,MAAM,CAAC,EAAE,qBAAqB,GAAG,SAAS,CAAC;CAC5C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gDAAgD,EAAE,CAAC,CAAC,OAAO,CACtE,0CAA0C,EAC1C,CAAC,CAAC,UAAU,EACZ,iCAAiC,CAKjC,CAAC;AAEH,wBAAgB,uCAAuC,CACrD,iCAAiC,EAAE,iCAAiC,GACnE,MAAM,CAMR"}
|