@steamsets/client-ts 0.14.29 → 0.15.0
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 +4 -4
- package/README.md +77 -30
- package/docs/sdks/account/README.md +204 -121
- package/docs/sdks/internal/README.md +166 -83
- package/docs/sdks/settings/README.md +132 -49
- package/docs/sdks/steamsets/README.md +78 -0
- package/funcs/accountAccountV1SettingsEmailSendVerification.d.ts +10 -0
- package/funcs/accountAccountV1SettingsEmailSendVerification.d.ts.map +1 -0
- package/funcs/{settingsSendEmailVerification.js → accountAccountV1SettingsEmailSendVerification.js} +7 -7
- package/funcs/accountAccountV1SettingsEmailSendVerification.js.map +1 -0
- package/funcs/{accountSendEmailVerification.d.ts → accountAccountV1SettingsEmailSubscribe.d.ts} +2 -2
- package/funcs/accountAccountV1SettingsEmailSubscribe.d.ts.map +1 -0
- package/funcs/accountAccountV1SettingsEmailSubscribe.js +113 -0
- package/funcs/accountAccountV1SettingsEmailSubscribe.js.map +1 -0
- package/funcs/{accountVerifyEmail.d.ts → accountAccountV1SettingsEmailVerify.d.ts} +2 -2
- package/funcs/accountAccountV1SettingsEmailVerify.d.ts.map +1 -0
- package/funcs/{accountVerifyEmail.js → accountAccountV1SettingsEmailVerify.js} +6 -6
- package/funcs/accountAccountV1SettingsEmailVerify.js.map +1 -0
- package/funcs/internalAccountV1SettingsEmailSendVerification.d.ts +10 -0
- package/funcs/internalAccountV1SettingsEmailSendVerification.d.ts.map +1 -0
- package/funcs/{internalSendEmailVerification.js → internalAccountV1SettingsEmailSendVerification.js} +7 -7
- package/funcs/internalAccountV1SettingsEmailSendVerification.js.map +1 -0
- package/funcs/{internalSendEmailVerification.d.ts → internalAccountV1SettingsEmailSubscribe.d.ts} +2 -2
- package/funcs/internalAccountV1SettingsEmailSubscribe.d.ts.map +1 -0
- package/funcs/internalAccountV1SettingsEmailSubscribe.js +113 -0
- package/funcs/internalAccountV1SettingsEmailSubscribe.js.map +1 -0
- package/funcs/{internalVerifyEmail.d.ts → internalAccountV1SettingsEmailVerify.d.ts} +2 -2
- package/funcs/internalAccountV1SettingsEmailVerify.d.ts.map +1 -0
- package/funcs/{settingsVerifyEmail.js → internalAccountV1SettingsEmailVerify.js} +6 -6
- package/funcs/internalAccountV1SettingsEmailVerify.js.map +1 -0
- package/funcs/{settingsVerifyEmail.d.ts → resendWebhook.d.ts} +2 -4
- package/funcs/resendWebhook.d.ts.map +1 -0
- package/funcs/resendWebhook.js +114 -0
- package/funcs/resendWebhook.js.map +1 -0
- package/funcs/settingsAccountV1SettingsEmailSendVerification.d.ts +10 -0
- package/funcs/settingsAccountV1SettingsEmailSendVerification.d.ts.map +1 -0
- package/funcs/{accountSendEmailVerification.js → settingsAccountV1SettingsEmailSendVerification.js} +7 -7
- package/funcs/settingsAccountV1SettingsEmailSendVerification.js.map +1 -0
- package/funcs/{settingsSendEmailVerification.d.ts → settingsAccountV1SettingsEmailSubscribe.d.ts} +2 -2
- package/funcs/settingsAccountV1SettingsEmailSubscribe.d.ts.map +1 -0
- package/funcs/settingsAccountV1SettingsEmailSubscribe.js +113 -0
- package/funcs/settingsAccountV1SettingsEmailSubscribe.js.map +1 -0
- package/funcs/settingsAccountV1SettingsEmailVerify.d.ts +11 -0
- package/funcs/settingsAccountV1SettingsEmailVerify.d.ts.map +1 -0
- package/funcs/{internalVerifyEmail.js → settingsAccountV1SettingsEmailVerify.js} +6 -6
- package/funcs/settingsAccountV1SettingsEmailVerify.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/lib/config.js.map +1 -1
- package/models/components/errormodel.d.ts +63 -0
- package/models/components/errormodel.d.ts.map +1 -0
- package/models/components/errormodel.js +81 -0
- package/models/components/errormodel.js.map +1 -0
- package/models/components/index.d.ts +2 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -0
- package/models/components/index.js.map +1 -1
- package/models/components/v1accountinforesponsebody.d.ts +3 -0
- package/models/components/v1accountinforesponsebody.d.ts.map +1 -1
- package/models/components/v1accountinforesponsebody.js +1 -0
- package/models/components/v1accountinforesponsebody.js.map +1 -1
- package/models/components/v1emailsubscriptionrequestbody.d.ts +37 -0
- package/models/components/v1emailsubscriptionrequestbody.d.ts.map +1 -0
- package/models/components/v1emailsubscriptionrequestbody.js +61 -0
- package/models/components/v1emailsubscriptionrequestbody.js.map +1 -0
- package/models/components/v1getsettingsbody.d.ts +5 -0
- package/models/components/v1getsettingsbody.d.ts.map +1 -1
- package/models/components/v1getsettingsbody.js +2 -0
- package/models/components/v1getsettingsbody.js.map +1 -1
- package/models/operations/accountv1settingsemailsendverification.d.ts +61 -0
- package/models/operations/{accountv1settingssendemailverification.d.ts.map → accountv1settingsemailsendverification.d.ts.map} +1 -1
- package/models/operations/accountv1settingsemailsendverification.js +108 -0
- package/models/operations/{accountv1settingssendemailverification.js.map → accountv1settingsemailsendverification.js.map} +1 -1
- package/models/operations/accountv1settingsemailsubscribe.d.ts +63 -0
- package/models/operations/accountv1settingsemailsubscribe.d.ts.map +1 -0
- package/models/operations/accountv1settingsemailsubscribe.js +112 -0
- package/models/operations/accountv1settingsemailsubscribe.js.map +1 -0
- package/models/operations/accountv1settingsemailverify.d.ts +36 -0
- package/models/operations/accountv1settingsemailverify.d.ts.map +1 -0
- package/models/operations/{accountv1settingsverfyemail.js → accountv1settingsemailverify.js} +17 -17
- package/models/operations/accountv1settingsemailverify.js.map +1 -0
- package/models/operations/index.d.ts +4 -2
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +4 -2
- package/models/operations/index.js.map +1 -1
- package/models/operations/resendwebhook.d.ts +66 -0
- package/models/operations/resendwebhook.d.ts.map +1 -0
- package/models/operations/resendwebhook.js +130 -0
- package/models/operations/resendwebhook.js.map +1 -0
- package/package.json +1 -1
- package/sdk/account.d.ts +3 -2
- package/sdk/account.d.ts.map +1 -1
- package/sdk/account.js +12 -8
- package/sdk/account.js.map +1 -1
- package/sdk/internal.d.ts +3 -2
- package/sdk/internal.d.ts.map +1 -1
- package/sdk/internal.js +12 -8
- package/sdk/internal.js.map +1 -1
- package/sdk/sdk.d.ts +5 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +8 -3
- package/sdk/sdk.js.map +1 -1
- package/sdk/settings.d.ts +3 -2
- package/sdk/settings.d.ts.map +1 -1
- package/sdk/settings.js +12 -8
- package/sdk/settings.js.map +1 -1
- package/src/funcs/{internalSendEmailVerification.ts → accountAccountV1SettingsEmailSendVerification.ts} +8 -8
- package/src/funcs/accountAccountV1SettingsEmailSubscribe.ts +160 -0
- package/src/funcs/{settingsVerifyEmail.ts → accountAccountV1SettingsEmailVerify.ts} +6 -6
- package/src/funcs/{accountSendEmailVerification.ts → internalAccountV1SettingsEmailSendVerification.ts} +8 -8
- package/src/funcs/internalAccountV1SettingsEmailSubscribe.ts +160 -0
- package/src/funcs/{internalVerifyEmail.ts → internalAccountV1SettingsEmailVerify.ts} +6 -6
- package/src/funcs/resendWebhook.ts +153 -0
- package/src/funcs/{settingsSendEmailVerification.ts → settingsAccountV1SettingsEmailSendVerification.ts} +8 -8
- package/src/funcs/settingsAccountV1SettingsEmailSubscribe.ts +160 -0
- package/src/funcs/{accountVerifyEmail.ts → settingsAccountV1SettingsEmailVerify.ts} +6 -6
- package/src/lib/config.ts +2 -2
- package/src/models/components/errormodel.ts +122 -0
- package/src/models/components/index.ts +2 -0
- package/src/models/components/v1accountinforesponsebody.ts +1 -0
- package/src/models/components/v1emailsubscriptionrequestbody.ts +78 -0
- package/src/models/components/v1getsettingsbody.ts +7 -0
- package/src/models/operations/{accountv1settingssendemailverification.ts → accountv1settingsemailsendverification.ts} +46 -46
- package/src/models/operations/accountv1settingsemailsubscribe.ts +174 -0
- package/src/models/operations/{accountv1settingsverfyemail.ts → accountv1settingsemailverify.ts} +22 -22
- package/src/models/operations/index.ts +4 -2
- package/src/models/operations/resendwebhook.ts +179 -0
- package/src/sdk/account.ts +36 -24
- package/src/sdk/internal.ts +36 -24
- package/src/sdk/sdk.ts +20 -6
- package/src/sdk/settings.ts +32 -20
- package/funcs/accountSendEmailVerification.d.ts.map +0 -1
- package/funcs/accountSendEmailVerification.js.map +0 -1
- package/funcs/accountVerifyEmail.d.ts.map +0 -1
- package/funcs/accountVerifyEmail.js.map +0 -1
- package/funcs/internalSendEmailVerification.d.ts.map +0 -1
- package/funcs/internalSendEmailVerification.js.map +0 -1
- package/funcs/internalVerifyEmail.d.ts.map +0 -1
- package/funcs/internalVerifyEmail.js.map +0 -1
- package/funcs/settingsSendEmailVerification.d.ts.map +0 -1
- package/funcs/settingsSendEmailVerification.js.map +0 -1
- package/funcs/settingsVerifyEmail.d.ts.map +0 -1
- package/funcs/settingsVerifyEmail.js.map +0 -1
- package/models/operations/accountv1settingssendemailverification.d.ts +0 -61
- package/models/operations/accountv1settingssendemailverification.js +0 -108
- package/models/operations/accountv1settingsverfyemail.d.ts +0 -36
- package/models/operations/accountv1settingsverfyemail.d.ts.map +0 -1
- package/models/operations/accountv1settingsverfyemail.js.map +0 -1
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
ErrorDetail,
|
|
12
|
+
ErrorDetail$inboundSchema,
|
|
13
|
+
ErrorDetail$Outbound,
|
|
14
|
+
ErrorDetail$outboundSchema,
|
|
15
|
+
} from "./errordetail.js";
|
|
16
|
+
|
|
17
|
+
export type ErrorModel = {
|
|
18
|
+
/**
|
|
19
|
+
* A URL to the JSON Schema for this object.
|
|
20
|
+
*/
|
|
21
|
+
dollarSchema?: string | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* A human-readable explanation specific to this occurrence of the problem.
|
|
24
|
+
*/
|
|
25
|
+
detail?: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Optional list of individual error details
|
|
28
|
+
*/
|
|
29
|
+
errors?: Array<ErrorDetail> | null | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* A URI reference that identifies the specific occurrence of the problem.
|
|
32
|
+
*/
|
|
33
|
+
instance?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* HTTP status code
|
|
36
|
+
*/
|
|
37
|
+
status?: number | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
|
|
40
|
+
*/
|
|
41
|
+
title?: string | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* A URI reference to human-readable documentation for the error.
|
|
44
|
+
*/
|
|
45
|
+
type?: string | undefined;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const ErrorModel$inboundSchema: z.ZodType<
|
|
50
|
+
ErrorModel,
|
|
51
|
+
z.ZodTypeDef,
|
|
52
|
+
unknown
|
|
53
|
+
> = z.object({
|
|
54
|
+
$schema: z.string().optional(),
|
|
55
|
+
detail: z.string().optional(),
|
|
56
|
+
errors: z.nullable(z.array(ErrorDetail$inboundSchema)).optional(),
|
|
57
|
+
instance: z.string().optional(),
|
|
58
|
+
status: z.number().int().optional(),
|
|
59
|
+
title: z.string().optional(),
|
|
60
|
+
type: z.string().default("about:blank"),
|
|
61
|
+
}).transform((v) => {
|
|
62
|
+
return remap$(v, {
|
|
63
|
+
"$schema": "dollarSchema",
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
/** @internal */
|
|
68
|
+
export type ErrorModel$Outbound = {
|
|
69
|
+
$schema?: string | undefined;
|
|
70
|
+
detail?: string | undefined;
|
|
71
|
+
errors?: Array<ErrorDetail$Outbound> | null | undefined;
|
|
72
|
+
instance?: string | undefined;
|
|
73
|
+
status?: number | undefined;
|
|
74
|
+
title?: string | undefined;
|
|
75
|
+
type: string;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
/** @internal */
|
|
79
|
+
export const ErrorModel$outboundSchema: z.ZodType<
|
|
80
|
+
ErrorModel$Outbound,
|
|
81
|
+
z.ZodTypeDef,
|
|
82
|
+
ErrorModel
|
|
83
|
+
> = z.object({
|
|
84
|
+
dollarSchema: z.string().optional(),
|
|
85
|
+
detail: z.string().optional(),
|
|
86
|
+
errors: z.nullable(z.array(ErrorDetail$outboundSchema)).optional(),
|
|
87
|
+
instance: z.string().optional(),
|
|
88
|
+
status: z.number().int().optional(),
|
|
89
|
+
title: z.string().optional(),
|
|
90
|
+
type: z.string().default("about:blank"),
|
|
91
|
+
}).transform((v) => {
|
|
92
|
+
return remap$(v, {
|
|
93
|
+
dollarSchema: "$schema",
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @internal
|
|
99
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
100
|
+
*/
|
|
101
|
+
export namespace ErrorModel$ {
|
|
102
|
+
/** @deprecated use `ErrorModel$inboundSchema` instead. */
|
|
103
|
+
export const inboundSchema = ErrorModel$inboundSchema;
|
|
104
|
+
/** @deprecated use `ErrorModel$outboundSchema` instead. */
|
|
105
|
+
export const outboundSchema = ErrorModel$outboundSchema;
|
|
106
|
+
/** @deprecated use `ErrorModel$Outbound` instead. */
|
|
107
|
+
export type Outbound = ErrorModel$Outbound;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function errorModelToJSON(errorModel: ErrorModel): string {
|
|
111
|
+
return JSON.stringify(ErrorModel$outboundSchema.parse(errorModel));
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export function errorModelFromJSON(
|
|
115
|
+
jsonString: string,
|
|
116
|
+
): SafeParseResult<ErrorModel, SDKValidationError> {
|
|
117
|
+
return safeParse(
|
|
118
|
+
jsonString,
|
|
119
|
+
(x) => ErrorModel$inboundSchema.parse(JSON.parse(x)),
|
|
120
|
+
`Failed to parse 'ErrorModel' from JSON`,
|
|
121
|
+
);
|
|
122
|
+
}
|
|
@@ -18,6 +18,7 @@ export * from "./currentcolortag.js";
|
|
|
18
18
|
export * from "./designtag.js";
|
|
19
19
|
export * from "./developerapp.js";
|
|
20
20
|
export * from "./errordetail.js";
|
|
21
|
+
export * from "./errormodel.js";
|
|
21
22
|
export * from "./historyvalue.js";
|
|
22
23
|
export * from "./httpmetadata.js";
|
|
23
24
|
export * from "./idstruct.js";
|
|
@@ -91,6 +92,7 @@ export * from "./v1deletesessionrequestbody.js";
|
|
|
91
92
|
export * from "./v1deletesessionresponsebody.js";
|
|
92
93
|
export * from "./v1developerappcreaterequestbody.js";
|
|
93
94
|
export * from "./v1developerappcreateresponsebody.js";
|
|
95
|
+
export * from "./v1emailsubscriptionrequestbody.js";
|
|
94
96
|
export * from "./v1event.js";
|
|
95
97
|
export * from "./v1getimagesresponsebody.js";
|
|
96
98
|
export * from "./v1getsessionbody.js";
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type V1EmailSubscriptionRequestBody = {
|
|
11
|
+
/**
|
|
12
|
+
* The email address to subscribe to the newsletter (only for the landing page)
|
|
13
|
+
*/
|
|
14
|
+
email: string | null;
|
|
15
|
+
/**
|
|
16
|
+
* Whether the user wants to be subscribed to the newsletter
|
|
17
|
+
*/
|
|
18
|
+
subscribed: boolean;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const V1EmailSubscriptionRequestBody$inboundSchema: z.ZodType<
|
|
23
|
+
V1EmailSubscriptionRequestBody,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
email: z.nullable(z.string()),
|
|
28
|
+
subscribed: z.boolean(),
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type V1EmailSubscriptionRequestBody$Outbound = {
|
|
33
|
+
email: string | null;
|
|
34
|
+
subscribed: boolean;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const V1EmailSubscriptionRequestBody$outboundSchema: z.ZodType<
|
|
39
|
+
V1EmailSubscriptionRequestBody$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
V1EmailSubscriptionRequestBody
|
|
42
|
+
> = z.object({
|
|
43
|
+
email: z.nullable(z.string()),
|
|
44
|
+
subscribed: z.boolean(),
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @internal
|
|
49
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
50
|
+
*/
|
|
51
|
+
export namespace V1EmailSubscriptionRequestBody$ {
|
|
52
|
+
/** @deprecated use `V1EmailSubscriptionRequestBody$inboundSchema` instead. */
|
|
53
|
+
export const inboundSchema = V1EmailSubscriptionRequestBody$inboundSchema;
|
|
54
|
+
/** @deprecated use `V1EmailSubscriptionRequestBody$outboundSchema` instead. */
|
|
55
|
+
export const outboundSchema = V1EmailSubscriptionRequestBody$outboundSchema;
|
|
56
|
+
/** @deprecated use `V1EmailSubscriptionRequestBody$Outbound` instead. */
|
|
57
|
+
export type Outbound = V1EmailSubscriptionRequestBody$Outbound;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function v1EmailSubscriptionRequestBodyToJSON(
|
|
61
|
+
v1EmailSubscriptionRequestBody: V1EmailSubscriptionRequestBody,
|
|
62
|
+
): string {
|
|
63
|
+
return JSON.stringify(
|
|
64
|
+
V1EmailSubscriptionRequestBody$outboundSchema.parse(
|
|
65
|
+
v1EmailSubscriptionRequestBody,
|
|
66
|
+
),
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function v1EmailSubscriptionRequestBodyFromJSON(
|
|
71
|
+
jsonString: string,
|
|
72
|
+
): SafeParseResult<V1EmailSubscriptionRequestBody, SDKValidationError> {
|
|
73
|
+
return safeParse(
|
|
74
|
+
jsonString,
|
|
75
|
+
(x) => V1EmailSubscriptionRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
76
|
+
`Failed to parse 'V1EmailSubscriptionRequestBody' from JSON`,
|
|
77
|
+
);
|
|
78
|
+
}
|
|
@@ -104,6 +104,10 @@ export type V1GetSettingsBody = {
|
|
|
104
104
|
* The sessions the account has
|
|
105
105
|
*/
|
|
106
106
|
sessions: Array<Session> | null;
|
|
107
|
+
/**
|
|
108
|
+
* Whether the account is subscribed to marketing emails
|
|
109
|
+
*/
|
|
110
|
+
subscribed: boolean;
|
|
107
111
|
/**
|
|
108
112
|
* The vanity the account is using
|
|
109
113
|
*/
|
|
@@ -151,6 +155,7 @@ export const V1GetSettingsBody$inboundSchema: z.ZodType<
|
|
|
151
155
|
language: z.string(),
|
|
152
156
|
privacy: V1GetSettingsBodyPrivacy$inboundSchema,
|
|
153
157
|
sessions: z.nullable(z.array(Session$inboundSchema)),
|
|
158
|
+
subscribed: z.boolean(),
|
|
154
159
|
vanity: z.string(),
|
|
155
160
|
vanityAnalytics: z.nullable(V1VanityAnalytics$inboundSchema),
|
|
156
161
|
}).transform((v) => {
|
|
@@ -172,6 +177,7 @@ export type V1GetSettingsBody$Outbound = {
|
|
|
172
177
|
language: string;
|
|
173
178
|
privacy: string;
|
|
174
179
|
sessions: Array<Session$Outbound> | null;
|
|
180
|
+
subscribed: boolean;
|
|
175
181
|
vanity: string;
|
|
176
182
|
vanityAnalytics: V1VanityAnalytics$Outbound | null;
|
|
177
183
|
};
|
|
@@ -193,6 +199,7 @@ export const V1GetSettingsBody$outboundSchema: z.ZodType<
|
|
|
193
199
|
language: z.string(),
|
|
194
200
|
privacy: V1GetSettingsBodyPrivacy$outboundSchema,
|
|
195
201
|
sessions: z.nullable(z.array(Session$outboundSchema)),
|
|
202
|
+
subscribed: z.boolean(),
|
|
196
203
|
vanity: z.string(),
|
|
197
204
|
vanityAnalytics: z.nullable(V1VanityAnalytics$outboundSchema),
|
|
198
205
|
}).transform((v) => {
|
|
@@ -9,19 +9,19 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import * as components from "../components/index.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
export type
|
|
12
|
+
export type AccountV1SettingsEmailSendVerificationRequest = {
|
|
13
13
|
xForwardedFor?: string | undefined;
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
export type
|
|
16
|
+
export type AccountV1SettingsEmailSendVerificationResponse = {
|
|
17
17
|
httpMeta: components.HTTPMetadata;
|
|
18
18
|
headers: { [k: string]: Array<string> };
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
/** @internal */
|
|
22
|
-
export const
|
|
22
|
+
export const AccountV1SettingsEmailSendVerificationRequest$inboundSchema:
|
|
23
23
|
z.ZodType<
|
|
24
|
-
|
|
24
|
+
AccountV1SettingsEmailSendVerificationRequest,
|
|
25
25
|
z.ZodTypeDef,
|
|
26
26
|
unknown
|
|
27
27
|
> = z.object({
|
|
@@ -33,16 +33,16 @@ export const AccountV1SettingsSendEmailVerificationRequest$inboundSchema:
|
|
|
33
33
|
});
|
|
34
34
|
|
|
35
35
|
/** @internal */
|
|
36
|
-
export type
|
|
36
|
+
export type AccountV1SettingsEmailSendVerificationRequest$Outbound = {
|
|
37
37
|
"X-Forwarded-For"?: string | undefined;
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
/** @internal */
|
|
41
|
-
export const
|
|
41
|
+
export const AccountV1SettingsEmailSendVerificationRequest$outboundSchema:
|
|
42
42
|
z.ZodType<
|
|
43
|
-
|
|
43
|
+
AccountV1SettingsEmailSendVerificationRequest$Outbound,
|
|
44
44
|
z.ZodTypeDef,
|
|
45
|
-
|
|
45
|
+
AccountV1SettingsEmailSendVerificationRequest
|
|
46
46
|
> = z.object({
|
|
47
47
|
xForwardedFor: z.string().optional(),
|
|
48
48
|
}).transform((v) => {
|
|
@@ -55,48 +55,48 @@ export const AccountV1SettingsSendEmailVerificationRequest$outboundSchema:
|
|
|
55
55
|
* @internal
|
|
56
56
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
57
57
|
*/
|
|
58
|
-
export namespace
|
|
59
|
-
/** @deprecated use `
|
|
58
|
+
export namespace AccountV1SettingsEmailSendVerificationRequest$ {
|
|
59
|
+
/** @deprecated use `AccountV1SettingsEmailSendVerificationRequest$inboundSchema` instead. */
|
|
60
60
|
export const inboundSchema =
|
|
61
|
-
|
|
62
|
-
/** @deprecated use `
|
|
61
|
+
AccountV1SettingsEmailSendVerificationRequest$inboundSchema;
|
|
62
|
+
/** @deprecated use `AccountV1SettingsEmailSendVerificationRequest$outboundSchema` instead. */
|
|
63
63
|
export const outboundSchema =
|
|
64
|
-
|
|
65
|
-
/** @deprecated use `
|
|
66
|
-
export type Outbound =
|
|
64
|
+
AccountV1SettingsEmailSendVerificationRequest$outboundSchema;
|
|
65
|
+
/** @deprecated use `AccountV1SettingsEmailSendVerificationRequest$Outbound` instead. */
|
|
66
|
+
export type Outbound = AccountV1SettingsEmailSendVerificationRequest$Outbound;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
export function
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
export function accountV1SettingsEmailSendVerificationRequestToJSON(
|
|
70
|
+
accountV1SettingsEmailSendVerificationRequest:
|
|
71
|
+
AccountV1SettingsEmailSendVerificationRequest,
|
|
72
72
|
): string {
|
|
73
73
|
return JSON.stringify(
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
AccountV1SettingsEmailSendVerificationRequest$outboundSchema.parse(
|
|
75
|
+
accountV1SettingsEmailSendVerificationRequest,
|
|
76
76
|
),
|
|
77
77
|
);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
export function
|
|
80
|
+
export function accountV1SettingsEmailSendVerificationRequestFromJSON(
|
|
81
81
|
jsonString: string,
|
|
82
82
|
): SafeParseResult<
|
|
83
|
-
|
|
83
|
+
AccountV1SettingsEmailSendVerificationRequest,
|
|
84
84
|
SDKValidationError
|
|
85
85
|
> {
|
|
86
86
|
return safeParse(
|
|
87
87
|
jsonString,
|
|
88
88
|
(x) =>
|
|
89
|
-
|
|
89
|
+
AccountV1SettingsEmailSendVerificationRequest$inboundSchema.parse(
|
|
90
90
|
JSON.parse(x),
|
|
91
91
|
),
|
|
92
|
-
`Failed to parse '
|
|
92
|
+
`Failed to parse 'AccountV1SettingsEmailSendVerificationRequest' from JSON`,
|
|
93
93
|
);
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
/** @internal */
|
|
97
|
-
export const
|
|
97
|
+
export const AccountV1SettingsEmailSendVerificationResponse$inboundSchema:
|
|
98
98
|
z.ZodType<
|
|
99
|
-
|
|
99
|
+
AccountV1SettingsEmailSendVerificationResponse,
|
|
100
100
|
z.ZodTypeDef,
|
|
101
101
|
unknown
|
|
102
102
|
> = z.object({
|
|
@@ -110,17 +110,17 @@ export const AccountV1SettingsSendEmailVerificationResponse$inboundSchema:
|
|
|
110
110
|
});
|
|
111
111
|
|
|
112
112
|
/** @internal */
|
|
113
|
-
export type
|
|
113
|
+
export type AccountV1SettingsEmailSendVerificationResponse$Outbound = {
|
|
114
114
|
HttpMeta: components.HTTPMetadata$Outbound;
|
|
115
115
|
Headers: { [k: string]: Array<string> };
|
|
116
116
|
};
|
|
117
117
|
|
|
118
118
|
/** @internal */
|
|
119
|
-
export const
|
|
119
|
+
export const AccountV1SettingsEmailSendVerificationResponse$outboundSchema:
|
|
120
120
|
z.ZodType<
|
|
121
|
-
|
|
121
|
+
AccountV1SettingsEmailSendVerificationResponse$Outbound,
|
|
122
122
|
z.ZodTypeDef,
|
|
123
|
-
|
|
123
|
+
AccountV1SettingsEmailSendVerificationResponse
|
|
124
124
|
> = z.object({
|
|
125
125
|
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
126
126
|
headers: z.record(z.array(z.string())),
|
|
@@ -135,41 +135,41 @@ export const AccountV1SettingsSendEmailVerificationResponse$outboundSchema:
|
|
|
135
135
|
* @internal
|
|
136
136
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
137
137
|
*/
|
|
138
|
-
export namespace
|
|
139
|
-
/** @deprecated use `
|
|
138
|
+
export namespace AccountV1SettingsEmailSendVerificationResponse$ {
|
|
139
|
+
/** @deprecated use `AccountV1SettingsEmailSendVerificationResponse$inboundSchema` instead. */
|
|
140
140
|
export const inboundSchema =
|
|
141
|
-
|
|
142
|
-
/** @deprecated use `
|
|
141
|
+
AccountV1SettingsEmailSendVerificationResponse$inboundSchema;
|
|
142
|
+
/** @deprecated use `AccountV1SettingsEmailSendVerificationResponse$outboundSchema` instead. */
|
|
143
143
|
export const outboundSchema =
|
|
144
|
-
|
|
145
|
-
/** @deprecated use `
|
|
144
|
+
AccountV1SettingsEmailSendVerificationResponse$outboundSchema;
|
|
145
|
+
/** @deprecated use `AccountV1SettingsEmailSendVerificationResponse$Outbound` instead. */
|
|
146
146
|
export type Outbound =
|
|
147
|
-
|
|
147
|
+
AccountV1SettingsEmailSendVerificationResponse$Outbound;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
export function
|
|
151
|
-
|
|
152
|
-
|
|
150
|
+
export function accountV1SettingsEmailSendVerificationResponseToJSON(
|
|
151
|
+
accountV1SettingsEmailSendVerificationResponse:
|
|
152
|
+
AccountV1SettingsEmailSendVerificationResponse,
|
|
153
153
|
): string {
|
|
154
154
|
return JSON.stringify(
|
|
155
|
-
|
|
156
|
-
|
|
155
|
+
AccountV1SettingsEmailSendVerificationResponse$outboundSchema.parse(
|
|
156
|
+
accountV1SettingsEmailSendVerificationResponse,
|
|
157
157
|
),
|
|
158
158
|
);
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
export function
|
|
161
|
+
export function accountV1SettingsEmailSendVerificationResponseFromJSON(
|
|
162
162
|
jsonString: string,
|
|
163
163
|
): SafeParseResult<
|
|
164
|
-
|
|
164
|
+
AccountV1SettingsEmailSendVerificationResponse,
|
|
165
165
|
SDKValidationError
|
|
166
166
|
> {
|
|
167
167
|
return safeParse(
|
|
168
168
|
jsonString,
|
|
169
169
|
(x) =>
|
|
170
|
-
|
|
170
|
+
AccountV1SettingsEmailSendVerificationResponse$inboundSchema.parse(
|
|
171
171
|
JSON.parse(x),
|
|
172
172
|
),
|
|
173
|
-
`Failed to parse '
|
|
173
|
+
`Failed to parse 'AccountV1SettingsEmailSendVerificationResponse' from JSON`,
|
|
174
174
|
);
|
|
175
175
|
}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type AccountV1SettingsEmailSubscribeRequest = {
|
|
13
|
+
xForwardedFor?: string | undefined;
|
|
14
|
+
v1EmailSubscriptionRequestBody: components.V1EmailSubscriptionRequestBody;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export type AccountV1SettingsEmailSubscribeResponse = {
|
|
18
|
+
httpMeta: components.HTTPMetadata;
|
|
19
|
+
headers: { [k: string]: Array<string> };
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const AccountV1SettingsEmailSubscribeRequest$inboundSchema: z.ZodType<
|
|
24
|
+
AccountV1SettingsEmailSubscribeRequest,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.object({
|
|
28
|
+
"X-Forwarded-For": z.string().optional(),
|
|
29
|
+
V1EmailSubscriptionRequestBody:
|
|
30
|
+
components.V1EmailSubscriptionRequestBody$inboundSchema,
|
|
31
|
+
}).transform((v) => {
|
|
32
|
+
return remap$(v, {
|
|
33
|
+
"X-Forwarded-For": "xForwardedFor",
|
|
34
|
+
"V1EmailSubscriptionRequestBody": "v1EmailSubscriptionRequestBody",
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type AccountV1SettingsEmailSubscribeRequest$Outbound = {
|
|
40
|
+
"X-Forwarded-For"?: string | undefined;
|
|
41
|
+
V1EmailSubscriptionRequestBody:
|
|
42
|
+
components.V1EmailSubscriptionRequestBody$Outbound;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const AccountV1SettingsEmailSubscribeRequest$outboundSchema: z.ZodType<
|
|
47
|
+
AccountV1SettingsEmailSubscribeRequest$Outbound,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
AccountV1SettingsEmailSubscribeRequest
|
|
50
|
+
> = z.object({
|
|
51
|
+
xForwardedFor: z.string().optional(),
|
|
52
|
+
v1EmailSubscriptionRequestBody:
|
|
53
|
+
components.V1EmailSubscriptionRequestBody$outboundSchema,
|
|
54
|
+
}).transform((v) => {
|
|
55
|
+
return remap$(v, {
|
|
56
|
+
xForwardedFor: "X-Forwarded-For",
|
|
57
|
+
v1EmailSubscriptionRequestBody: "V1EmailSubscriptionRequestBody",
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @internal
|
|
63
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
64
|
+
*/
|
|
65
|
+
export namespace AccountV1SettingsEmailSubscribeRequest$ {
|
|
66
|
+
/** @deprecated use `AccountV1SettingsEmailSubscribeRequest$inboundSchema` instead. */
|
|
67
|
+
export const inboundSchema =
|
|
68
|
+
AccountV1SettingsEmailSubscribeRequest$inboundSchema;
|
|
69
|
+
/** @deprecated use `AccountV1SettingsEmailSubscribeRequest$outboundSchema` instead. */
|
|
70
|
+
export const outboundSchema =
|
|
71
|
+
AccountV1SettingsEmailSubscribeRequest$outboundSchema;
|
|
72
|
+
/** @deprecated use `AccountV1SettingsEmailSubscribeRequest$Outbound` instead. */
|
|
73
|
+
export type Outbound = AccountV1SettingsEmailSubscribeRequest$Outbound;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function accountV1SettingsEmailSubscribeRequestToJSON(
|
|
77
|
+
accountV1SettingsEmailSubscribeRequest:
|
|
78
|
+
AccountV1SettingsEmailSubscribeRequest,
|
|
79
|
+
): string {
|
|
80
|
+
return JSON.stringify(
|
|
81
|
+
AccountV1SettingsEmailSubscribeRequest$outboundSchema.parse(
|
|
82
|
+
accountV1SettingsEmailSubscribeRequest,
|
|
83
|
+
),
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function accountV1SettingsEmailSubscribeRequestFromJSON(
|
|
88
|
+
jsonString: string,
|
|
89
|
+
): SafeParseResult<AccountV1SettingsEmailSubscribeRequest, SDKValidationError> {
|
|
90
|
+
return safeParse(
|
|
91
|
+
jsonString,
|
|
92
|
+
(x) =>
|
|
93
|
+
AccountV1SettingsEmailSubscribeRequest$inboundSchema.parse(JSON.parse(x)),
|
|
94
|
+
`Failed to parse 'AccountV1SettingsEmailSubscribeRequest' from JSON`,
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/** @internal */
|
|
99
|
+
export const AccountV1SettingsEmailSubscribeResponse$inboundSchema: z.ZodType<
|
|
100
|
+
AccountV1SettingsEmailSubscribeResponse,
|
|
101
|
+
z.ZodTypeDef,
|
|
102
|
+
unknown
|
|
103
|
+
> = z.object({
|
|
104
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
105
|
+
Headers: z.record(z.array(z.string())),
|
|
106
|
+
}).transform((v) => {
|
|
107
|
+
return remap$(v, {
|
|
108
|
+
"HttpMeta": "httpMeta",
|
|
109
|
+
"Headers": "headers",
|
|
110
|
+
});
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
/** @internal */
|
|
114
|
+
export type AccountV1SettingsEmailSubscribeResponse$Outbound = {
|
|
115
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
116
|
+
Headers: { [k: string]: Array<string> };
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
/** @internal */
|
|
120
|
+
export const AccountV1SettingsEmailSubscribeResponse$outboundSchema: z.ZodType<
|
|
121
|
+
AccountV1SettingsEmailSubscribeResponse$Outbound,
|
|
122
|
+
z.ZodTypeDef,
|
|
123
|
+
AccountV1SettingsEmailSubscribeResponse
|
|
124
|
+
> = z.object({
|
|
125
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
126
|
+
headers: z.record(z.array(z.string())),
|
|
127
|
+
}).transform((v) => {
|
|
128
|
+
return remap$(v, {
|
|
129
|
+
httpMeta: "HttpMeta",
|
|
130
|
+
headers: "Headers",
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @internal
|
|
136
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
137
|
+
*/
|
|
138
|
+
export namespace AccountV1SettingsEmailSubscribeResponse$ {
|
|
139
|
+
/** @deprecated use `AccountV1SettingsEmailSubscribeResponse$inboundSchema` instead. */
|
|
140
|
+
export const inboundSchema =
|
|
141
|
+
AccountV1SettingsEmailSubscribeResponse$inboundSchema;
|
|
142
|
+
/** @deprecated use `AccountV1SettingsEmailSubscribeResponse$outboundSchema` instead. */
|
|
143
|
+
export const outboundSchema =
|
|
144
|
+
AccountV1SettingsEmailSubscribeResponse$outboundSchema;
|
|
145
|
+
/** @deprecated use `AccountV1SettingsEmailSubscribeResponse$Outbound` instead. */
|
|
146
|
+
export type Outbound = AccountV1SettingsEmailSubscribeResponse$Outbound;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export function accountV1SettingsEmailSubscribeResponseToJSON(
|
|
150
|
+
accountV1SettingsEmailSubscribeResponse:
|
|
151
|
+
AccountV1SettingsEmailSubscribeResponse,
|
|
152
|
+
): string {
|
|
153
|
+
return JSON.stringify(
|
|
154
|
+
AccountV1SettingsEmailSubscribeResponse$outboundSchema.parse(
|
|
155
|
+
accountV1SettingsEmailSubscribeResponse,
|
|
156
|
+
),
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export function accountV1SettingsEmailSubscribeResponseFromJSON(
|
|
161
|
+
jsonString: string,
|
|
162
|
+
): SafeParseResult<
|
|
163
|
+
AccountV1SettingsEmailSubscribeResponse,
|
|
164
|
+
SDKValidationError
|
|
165
|
+
> {
|
|
166
|
+
return safeParse(
|
|
167
|
+
jsonString,
|
|
168
|
+
(x) =>
|
|
169
|
+
AccountV1SettingsEmailSubscribeResponse$inboundSchema.parse(
|
|
170
|
+
JSON.parse(x),
|
|
171
|
+
),
|
|
172
|
+
`Failed to parse 'AccountV1SettingsEmailSubscribeResponse' from JSON`,
|
|
173
|
+
);
|
|
174
|
+
}
|