@aurora-interactive/fankare-api-sdk 0.0.3 → 0.0.4
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/FUNCTIONS.md +2 -0
- package/README.md +13 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/register-request.d.ts +4 -2
- package/esm/models/register-request.d.ts.map +1 -1
- package/esm/models/register-request.js +2 -1
- package/esm/models/register-request.js.map +1 -1
- package/esm/models/user-profile.d.ts +0 -1
- package/esm/models/user-profile.d.ts.map +1 -1
- package/esm/models/user-profile.js +0 -1
- package/esm/models/user-profile.js.map +1 -1
- package/esm/models/user.d.ts +32 -0
- package/esm/models/user.d.ts.map +1 -1
- package/esm/models/user.js +16 -0
- package/esm/models/user.js.map +1 -1
- package/examples/authenticationRegisterUser.example.ts +2 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/register-request.ts +6 -3
- package/src/models/user-profile.ts +0 -2
- package/src/models/user.ts +46 -0
package/FUNCTIONS.md
CHANGED
|
@@ -31,7 +31,9 @@ const fankareSDK = new FankareSDKCore({
|
|
|
31
31
|
async function run() {
|
|
32
32
|
const res = await authenticationRegisterUser(fankareSDK, {
|
|
33
33
|
username: "Nicklaus67",
|
|
34
|
+
email: "Erick_McClure81@hotmail.com",
|
|
34
35
|
password: "4rmpu4fcbiqyYPN",
|
|
36
|
+
displayName: "Abbey80",
|
|
35
37
|
});
|
|
36
38
|
if (res.ok) {
|
|
37
39
|
const { value: result } = res;
|
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ Developer-friendly & type-safe Typescript SDK specifically catered to leverage *
|
|
|
13
13
|
<!-- Start Summary [summary] -->
|
|
14
14
|
## Summary
|
|
15
15
|
|
|
16
|
-
Fankare Multimedia Social Platform API:
|
|
16
|
+
Fankare Multimedia Social Platform API: The inner circle for creators and their biggest fans.
|
|
17
17
|
<!-- End Summary [summary] -->
|
|
18
18
|
|
|
19
19
|
<!-- Start Table of Contents [toc] -->
|
|
@@ -96,7 +96,9 @@ const fankareSDK = new FankareSDK({
|
|
|
96
96
|
async function run() {
|
|
97
97
|
const result = await fankareSDK.authentication.registerUser({
|
|
98
98
|
username: "Nicklaus67",
|
|
99
|
+
email: "Erick_McClure81@hotmail.com",
|
|
99
100
|
password: "4rmpu4fcbiqyYPN",
|
|
101
|
+
displayName: "Abbey80",
|
|
100
102
|
});
|
|
101
103
|
|
|
102
104
|
console.log(result);
|
|
@@ -129,7 +131,9 @@ const fankareSDK = new FankareSDK({
|
|
|
129
131
|
async function run() {
|
|
130
132
|
const result = await fankareSDK.authentication.registerUser({
|
|
131
133
|
username: "Nicklaus67",
|
|
134
|
+
email: "Erick_McClure81@hotmail.com",
|
|
132
135
|
password: "4rmpu4fcbiqyYPN",
|
|
136
|
+
displayName: "Abbey80",
|
|
133
137
|
});
|
|
134
138
|
|
|
135
139
|
console.log(result);
|
|
@@ -243,7 +247,9 @@ const fankareSDK = new FankareSDK({
|
|
|
243
247
|
async function run() {
|
|
244
248
|
const result = await fankareSDK.authentication.registerUser({
|
|
245
249
|
username: "Nicklaus67",
|
|
250
|
+
email: "Erick_McClure81@hotmail.com",
|
|
246
251
|
password: "4rmpu4fcbiqyYPN",
|
|
252
|
+
displayName: "Abbey80",
|
|
247
253
|
}, {
|
|
248
254
|
retries: {
|
|
249
255
|
strategy: "backoff",
|
|
@@ -285,7 +291,9 @@ const fankareSDK = new FankareSDK({
|
|
|
285
291
|
async function run() {
|
|
286
292
|
const result = await fankareSDK.authentication.registerUser({
|
|
287
293
|
username: "Nicklaus67",
|
|
294
|
+
email: "Erick_McClure81@hotmail.com",
|
|
288
295
|
password: "4rmpu4fcbiqyYPN",
|
|
296
|
+
displayName: "Abbey80",
|
|
289
297
|
});
|
|
290
298
|
|
|
291
299
|
console.log(result);
|
|
@@ -322,7 +330,9 @@ async function run() {
|
|
|
322
330
|
try {
|
|
323
331
|
const result = await fankareSDK.authentication.registerUser({
|
|
324
332
|
username: "Nicklaus67",
|
|
333
|
+
email: "Erick_McClure81@hotmail.com",
|
|
325
334
|
password: "4rmpu4fcbiqyYPN",
|
|
335
|
+
displayName: "Abbey80",
|
|
326
336
|
});
|
|
327
337
|
|
|
328
338
|
console.log(result);
|
|
@@ -379,7 +389,9 @@ const fankareSDK = new FankareSDK({
|
|
|
379
389
|
async function run() {
|
|
380
390
|
const result = await fankareSDK.authentication.registerUser({
|
|
381
391
|
username: "Nicklaus67",
|
|
392
|
+
email: "Erick_McClure81@hotmail.com",
|
|
382
393
|
password: "4rmpu4fcbiqyYPN",
|
|
394
|
+
displayName: "Abbey80",
|
|
383
395
|
});
|
|
384
396
|
|
|
385
397
|
console.log(result);
|
package/esm/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.0.
|
|
34
|
+
readonly sdkVersion: "0.0.4";
|
|
35
35
|
readonly genVersion: "2.911.0";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.0.
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.0.4 2.911.0 1.0.0 openapi";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
package/esm/lib/config.js
CHANGED
|
@@ -28,8 +28,8 @@ export function serverURLFromOptions(options) {
|
|
|
28
28
|
export const SDK_METADATA = {
|
|
29
29
|
language: "typescript",
|
|
30
30
|
openapiDocVersion: "1.0.0",
|
|
31
|
-
sdkVersion: "0.0.
|
|
31
|
+
sdkVersion: "0.0.4",
|
|
32
32
|
genVersion: "2.911.0",
|
|
33
|
-
userAgent: "speakeasy-sdk/typescript 0.0.
|
|
33
|
+
userAgent: "speakeasy-sdk/typescript 0.0.4 2.911.0 1.0.0 openapi",
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=config.js.map
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import * as z from "zod/v4-mini";
|
|
2
2
|
export type RegisterRequest = {
|
|
3
3
|
username: string;
|
|
4
|
+
email: string;
|
|
4
5
|
password: string;
|
|
5
|
-
displayName
|
|
6
|
+
displayName: string;
|
|
6
7
|
};
|
|
7
8
|
/** @internal */
|
|
8
9
|
export type RegisterRequest$Outbound = {
|
|
9
10
|
username: string;
|
|
11
|
+
email: string;
|
|
10
12
|
password: string;
|
|
11
|
-
displayName
|
|
13
|
+
displayName: string;
|
|
12
14
|
};
|
|
13
15
|
/** @internal */
|
|
14
16
|
export declare const RegisterRequest$outboundSchema: z.ZodMiniType<RegisterRequest$Outbound, RegisterRequest>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register-request.d.ts","sourceRoot":"","sources":["../../src/models/register-request.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,
|
|
1
|
+
{"version":3,"file":"register-request.d.ts","sourceRoot":"","sources":["../../src/models/register-request.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,wBAAwB,GAAG;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,WAAW,CACxD,wBAAwB,EACxB,eAAe,CAMf,CAAC;AAEH,wBAAgB,qBAAqB,CACnC,eAAe,EAAE,eAAe,GAC/B,MAAM,CAER"}
|
|
@@ -6,8 +6,9 @@ import * as z from "zod/v4-mini";
|
|
|
6
6
|
/** @internal */
|
|
7
7
|
export const RegisterRequest$outboundSchema = z.object({
|
|
8
8
|
username: z.string(),
|
|
9
|
+
email: z.string(),
|
|
9
10
|
password: z.string(),
|
|
10
|
-
displayName: z.
|
|
11
|
+
displayName: z.string(),
|
|
11
12
|
});
|
|
12
13
|
export function registerRequestToJSON(registerRequest) {
|
|
13
14
|
return JSON.stringify(RegisterRequest$outboundSchema.parse(registerRequest));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register-request.js","sourceRoot":"","sources":["../../src/models/register-request.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"register-request.js","sourceRoot":"","sources":["../../src/models/register-request.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAiBjC,gBAAgB;AAChB,MAAM,CAAC,MAAM,8BAA8B,GAGvC,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC;AAEH,MAAM,UAAU,qBAAqB,CACnC,eAAgC,EACxB;IACR,OAAO,IAAI,CAAC,SAAS,CAAC,8BAA8B,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;AAAA,CAC9E"}
|
|
@@ -4,7 +4,6 @@ import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
|
4
4
|
import { User } from "./user.js";
|
|
5
5
|
export type UserProfile = {
|
|
6
6
|
user?: User | undefined;
|
|
7
|
-
avatarUrl?: string | null | undefined;
|
|
8
7
|
followersCount?: number | undefined;
|
|
9
8
|
followingCount?: number | undefined;
|
|
10
9
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-profile.d.ts","sourceRoot":"","sources":["../../src/models/user-profile.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,IAAI,EAAsB,MAAM,WAAW,CAAC;AAErD,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IACxB,
|
|
1
|
+
{"version":3,"file":"user-profile.d.ts","sourceRoot":"","sources":["../../src/models/user-profile.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,IAAI,EAAsB,MAAM,WAAW,CAAC;AAErD,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,WAAW,CAAC,WAAW,EAAE,OAAO,CAKtE,CAAC;AAEL,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAMlD"}
|
|
@@ -10,7 +10,6 @@ import { User$inboundSchema } from "./user.js";
|
|
|
10
10
|
export const UserProfile$inboundSchema = z
|
|
11
11
|
.object({
|
|
12
12
|
user: types.optional(User$inboundSchema),
|
|
13
|
-
avatarUrl: z.optional(z.nullable(types.string())),
|
|
14
13
|
followersCount: types.optional(types.number()),
|
|
15
14
|
followingCount: types.optional(types.number()),
|
|
16
15
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-profile.js","sourceRoot":"","sources":["../../src/models/user-profile.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAAQ,kBAAkB,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"user-profile.js","sourceRoot":"","sources":["../../src/models/user-profile.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAAQ,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAQrD,gBAAgB;AAChB,MAAM,CAAC,MAAM,yBAAyB,GAAwC,CAAC;KAC5E,MAAM,CAAC;IACN,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,kBAAkB,CAAC;IACxC,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAC9C,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;CAC/C,CAAC,CAAC;AAEL,MAAM,UAAU,mBAAmB,CACjC,UAAkB,EACgC;IAClD,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yBAAyB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrD,yCAAyC,CAC1C,CAAC;AAAA,CACH"}
|
package/esm/models/user.d.ts
CHANGED
|
@@ -1,13 +1,45 @@
|
|
|
1
1
|
import * as z from "zod/v4-mini";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
2
3
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
4
|
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
5
|
+
export declare const AccountStatus: {
|
|
6
|
+
readonly Active: "ACTIVE";
|
|
7
|
+
readonly Suspended: "SUSPENDED";
|
|
8
|
+
readonly Deactivated: "DEACTIVATED";
|
|
9
|
+
};
|
|
10
|
+
export type AccountStatus = OpenEnum<typeof AccountStatus>;
|
|
4
11
|
export type User = {
|
|
5
12
|
id?: number | undefined;
|
|
6
13
|
username?: string | undefined;
|
|
14
|
+
email?: string | undefined;
|
|
7
15
|
displayName?: string | undefined;
|
|
16
|
+
bio?: string | null | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Fully qualified URI mapping to the SeaweedFS avatar reference asset path
|
|
19
|
+
*/
|
|
20
|
+
avatarUrl?: string | null | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Fully qualified URI mapping to the SeaweedFS profile header banner path
|
|
23
|
+
*/
|
|
24
|
+
bannerUrl?: string | null | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Flags if this user account can build premium feeds and process media timelines
|
|
27
|
+
*/
|
|
28
|
+
isCreator?: boolean | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* System verified identity indicator badge validation toggle
|
|
31
|
+
*/
|
|
32
|
+
isVerified?: boolean | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Monthly paywall gate pricing valuation tier for premium feed access
|
|
35
|
+
*/
|
|
36
|
+
subscriptionPrice?: number | undefined;
|
|
37
|
+
accountStatus?: AccountStatus | undefined;
|
|
8
38
|
createdAt?: Date | undefined;
|
|
9
39
|
};
|
|
10
40
|
/** @internal */
|
|
41
|
+
export declare const AccountStatus$inboundSchema: z.ZodMiniType<AccountStatus, unknown>;
|
|
42
|
+
/** @internal */
|
|
11
43
|
export declare const User$inboundSchema: z.ZodMiniType<User, unknown>;
|
|
12
44
|
export declare function userFromJSON(jsonString: string): SafeParseResult<User, SDKValidationError>;
|
|
13
45
|
//# sourceMappingURL=user.d.ts.map
|
package/esm/models/user.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/models/user.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/models/user.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,eAAO,MAAM,aAAa;;;;CAIhB,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC,OAAO,aAAa,CAAC,CAAC;AAE3D,MAAM,MAAM,IAAI,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,aAAa,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IAC1C,SAAS,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,WAAW,CACrD,aAAa,EACb,OAAO,CACiC,CAAC;AAE3C,gBAAgB;AAChB,eAAO,MAAM,kBAAkB,EAAE,CAAC,CAAC,WAAW,CAAC,IAAI,EAAE,OAAO,CAa1D,CAAC;AAEH,wBAAgB,YAAY,CAC1B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAM3C"}
|
package/esm/models/user.js
CHANGED
|
@@ -4,12 +4,28 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import * as openEnums from "../types/enums.js";
|
|
7
8
|
import * as types from "../types/primitives.js";
|
|
9
|
+
export const AccountStatus = {
|
|
10
|
+
Active: "ACTIVE",
|
|
11
|
+
Suspended: "SUSPENDED",
|
|
12
|
+
Deactivated: "DEACTIVATED",
|
|
13
|
+
};
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const AccountStatus$inboundSchema = openEnums.inboundSchema(AccountStatus);
|
|
8
16
|
/** @internal */
|
|
9
17
|
export const User$inboundSchema = z.object({
|
|
10
18
|
id: types.optional(types.number()),
|
|
11
19
|
username: types.optional(types.string()),
|
|
20
|
+
email: types.optional(types.string()),
|
|
12
21
|
displayName: types.optional(types.string()),
|
|
22
|
+
bio: z.optional(z.nullable(types.string())),
|
|
23
|
+
avatarUrl: z.optional(z.nullable(types.string())),
|
|
24
|
+
bannerUrl: z.optional(z.nullable(types.string())),
|
|
25
|
+
isCreator: types.optional(types.boolean()),
|
|
26
|
+
isVerified: types.optional(types.boolean()),
|
|
27
|
+
subscriptionPrice: types.optional(types.number()),
|
|
28
|
+
accountStatus: types.optional(AccountStatus$inboundSchema),
|
|
13
29
|
createdAt: types.optional(types.date()),
|
|
14
30
|
});
|
|
15
31
|
export function userFromJSON(jsonString) {
|
package/esm/models/user.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../src/models/user.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../src/models/user.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAG/C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAGhD,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,WAAW;IACtB,WAAW,EAAE,aAAa;CAClB,CAAC;AAiCX,gBAAgB;AAChB,MAAM,CAAC,MAAM,2BAA2B,GAGpC,SAAS,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;AAE3C,gBAAgB;AAChB,MAAM,CAAC,MAAM,kBAAkB,GAAiC,CAAC,CAAC,MAAM,CAAC;IACvE,EAAE,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAClC,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IACxC,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IACrC,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAC3C,GAAG,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;IAC3C,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;IACjD,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;IACjD,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;IAC1C,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;IAC3C,iBAAiB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IACjD,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IAC1D,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;CACxC,CAAC,CAAC;AAEH,MAAM,UAAU,YAAY,CAC1B,UAAkB,EACyB;IAC3C,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9C,kCAAkC,CACnC,CAAC;AAAA,CACH"}
|
|
@@ -21,7 +21,9 @@ const fankareSDK = new FankareSDK({
|
|
|
21
21
|
async function main() {
|
|
22
22
|
const result = await fankareSDK.authentication.registerUser({
|
|
23
23
|
username: "Nicklaus67",
|
|
24
|
+
email: "Erick_McClure81@hotmail.com",
|
|
24
25
|
password: "4rmpu4fcbiqyYPN",
|
|
26
|
+
displayName: "Abbey80",
|
|
25
27
|
});
|
|
26
28
|
|
|
27
29
|
console.log(result);
|
package/jsr.json
CHANGED
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -62,7 +62,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
62
62
|
export const SDK_METADATA = {
|
|
63
63
|
language: "typescript",
|
|
64
64
|
openapiDocVersion: "1.0.0",
|
|
65
|
-
sdkVersion: "0.0.
|
|
65
|
+
sdkVersion: "0.0.4",
|
|
66
66
|
genVersion: "2.911.0",
|
|
67
|
-
userAgent: "speakeasy-sdk/typescript 0.0.
|
|
67
|
+
userAgent: "speakeasy-sdk/typescript 0.0.4 2.911.0 1.0.0 openapi",
|
|
68
68
|
} as const;
|
|
@@ -7,15 +7,17 @@ import * as z from "zod/v4-mini";
|
|
|
7
7
|
|
|
8
8
|
export type RegisterRequest = {
|
|
9
9
|
username: string;
|
|
10
|
+
email: string;
|
|
10
11
|
password: string;
|
|
11
|
-
displayName
|
|
12
|
+
displayName: string;
|
|
12
13
|
};
|
|
13
14
|
|
|
14
15
|
/** @internal */
|
|
15
16
|
export type RegisterRequest$Outbound = {
|
|
16
17
|
username: string;
|
|
18
|
+
email: string;
|
|
17
19
|
password: string;
|
|
18
|
-
displayName
|
|
20
|
+
displayName: string;
|
|
19
21
|
};
|
|
20
22
|
|
|
21
23
|
/** @internal */
|
|
@@ -24,8 +26,9 @@ export const RegisterRequest$outboundSchema: z.ZodMiniType<
|
|
|
24
26
|
RegisterRequest
|
|
25
27
|
> = z.object({
|
|
26
28
|
username: z.string(),
|
|
29
|
+
email: z.string(),
|
|
27
30
|
password: z.string(),
|
|
28
|
-
displayName: z.
|
|
31
|
+
displayName: z.string(),
|
|
29
32
|
});
|
|
30
33
|
|
|
31
34
|
export function registerRequestToJSON(
|
|
@@ -12,7 +12,6 @@ import { User, User$inboundSchema } from "./user.js";
|
|
|
12
12
|
|
|
13
13
|
export type UserProfile = {
|
|
14
14
|
user?: User | undefined;
|
|
15
|
-
avatarUrl?: string | null | undefined;
|
|
16
15
|
followersCount?: number | undefined;
|
|
17
16
|
followingCount?: number | undefined;
|
|
18
17
|
};
|
|
@@ -21,7 +20,6 @@ export type UserProfile = {
|
|
|
21
20
|
export const UserProfile$inboundSchema: z.ZodMiniType<UserProfile, unknown> = z
|
|
22
21
|
.object({
|
|
23
22
|
user: types.optional(User$inboundSchema),
|
|
24
|
-
avatarUrl: z.optional(z.nullable(types.string())),
|
|
25
23
|
followersCount: types.optional(types.number()),
|
|
26
24
|
followingCount: types.optional(types.number()),
|
|
27
25
|
});
|
package/src/models/user.ts
CHANGED
|
@@ -5,22 +5,68 @@
|
|
|
5
5
|
|
|
6
6
|
import * as z from "zod/v4-mini";
|
|
7
7
|
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import * as openEnums from "../types/enums.js";
|
|
9
|
+
import { OpenEnum } from "../types/enums.js";
|
|
8
10
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
11
|
import * as types from "../types/primitives.js";
|
|
10
12
|
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
11
13
|
|
|
14
|
+
export const AccountStatus = {
|
|
15
|
+
Active: "ACTIVE",
|
|
16
|
+
Suspended: "SUSPENDED",
|
|
17
|
+
Deactivated: "DEACTIVATED",
|
|
18
|
+
} as const;
|
|
19
|
+
export type AccountStatus = OpenEnum<typeof AccountStatus>;
|
|
20
|
+
|
|
12
21
|
export type User = {
|
|
13
22
|
id?: number | undefined;
|
|
14
23
|
username?: string | undefined;
|
|
24
|
+
email?: string | undefined;
|
|
15
25
|
displayName?: string | undefined;
|
|
26
|
+
bio?: string | null | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Fully qualified URI mapping to the SeaweedFS avatar reference asset path
|
|
29
|
+
*/
|
|
30
|
+
avatarUrl?: string | null | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Fully qualified URI mapping to the SeaweedFS profile header banner path
|
|
33
|
+
*/
|
|
34
|
+
bannerUrl?: string | null | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Flags if this user account can build premium feeds and process media timelines
|
|
37
|
+
*/
|
|
38
|
+
isCreator?: boolean | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* System verified identity indicator badge validation toggle
|
|
41
|
+
*/
|
|
42
|
+
isVerified?: boolean | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Monthly paywall gate pricing valuation tier for premium feed access
|
|
45
|
+
*/
|
|
46
|
+
subscriptionPrice?: number | undefined;
|
|
47
|
+
accountStatus?: AccountStatus | undefined;
|
|
16
48
|
createdAt?: Date | undefined;
|
|
17
49
|
};
|
|
18
50
|
|
|
51
|
+
/** @internal */
|
|
52
|
+
export const AccountStatus$inboundSchema: z.ZodMiniType<
|
|
53
|
+
AccountStatus,
|
|
54
|
+
unknown
|
|
55
|
+
> = openEnums.inboundSchema(AccountStatus);
|
|
56
|
+
|
|
19
57
|
/** @internal */
|
|
20
58
|
export const User$inboundSchema: z.ZodMiniType<User, unknown> = z.object({
|
|
21
59
|
id: types.optional(types.number()),
|
|
22
60
|
username: types.optional(types.string()),
|
|
61
|
+
email: types.optional(types.string()),
|
|
23
62
|
displayName: types.optional(types.string()),
|
|
63
|
+
bio: z.optional(z.nullable(types.string())),
|
|
64
|
+
avatarUrl: z.optional(z.nullable(types.string())),
|
|
65
|
+
bannerUrl: z.optional(z.nullable(types.string())),
|
|
66
|
+
isCreator: types.optional(types.boolean()),
|
|
67
|
+
isVerified: types.optional(types.boolean()),
|
|
68
|
+
subscriptionPrice: types.optional(types.number()),
|
|
69
|
+
accountStatus: types.optional(AccountStatus$inboundSchema),
|
|
24
70
|
createdAt: types.optional(types.date()),
|
|
25
71
|
});
|
|
26
72
|
|