@steamsets/client-ts 0.14.28 → 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 +83 -30
- package/docs/sdks/account/README.md +254 -98
- package/docs/sdks/internal/README.md +224 -68
- package/docs/sdks/settings/README.md +197 -41
- 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/accountAccountV1SettingsEmailVerify.d.ts +11 -0
- 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/{accountVerifyEmail.d.ts → accountAccountV1SettingsUpdateRole.d.ts} +2 -2
- package/funcs/accountAccountV1SettingsUpdateRole.d.ts.map +1 -0
- package/funcs/accountAccountV1SettingsUpdateRole.js +113 -0
- package/funcs/accountAccountV1SettingsUpdateRole.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/internalAccountV1SettingsEmailVerify.d.ts +11 -0
- 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/{internalVerifyEmail.d.ts → internalAccountV1SettingsUpdateRole.d.ts} +2 -2
- package/funcs/internalAccountV1SettingsUpdateRole.d.ts.map +1 -0
- package/funcs/internalAccountV1SettingsUpdateRole.js +113 -0
- package/funcs/internalAccountV1SettingsUpdateRole.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/funcs/settingsAccountV1SettingsUpdateRole.d.ts +11 -0
- package/funcs/settingsAccountV1SettingsUpdateRole.d.ts.map +1 -0
- package/funcs/settingsAccountV1SettingsUpdateRole.js +113 -0
- package/funcs/settingsAccountV1SettingsUpdateRole.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 +3 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +3 -0
- package/models/components/index.js.map +1 -1
- package/models/components/v1accountinforesponsebody.d.ts +8 -0
- package/models/components/v1accountinforesponsebody.d.ts.map +1 -1
- package/models/components/v1accountinforesponsebody.js +3 -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/components/v1updaterolerequestbody.d.ts +76 -0
- package/models/components/v1updaterolerequestbody.d.ts.map +1 -0
- package/models/components/v1updaterolerequestbody.js +85 -0
- package/models/components/v1updaterolerequestbody.js.map +1 -0
- package/models/components/v1updatesettingsrequestbody.d.ts +0 -49
- package/models/components/v1updatesettingsrequestbody.d.ts.map +1 -1
- package/models/components/v1updatesettingsrequestbody.js +1 -29
- package/models/components/v1updatesettingsrequestbody.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/accountv1settingsemailverify.js +73 -0
- package/models/operations/accountv1settingsemailverify.js.map +1 -0
- package/models/operations/accountv1settingsupdaterole.d.ts +36 -0
- package/models/operations/{accountv1settingsverfyemail.d.ts.map → accountv1settingsupdaterole.d.ts.map} +1 -1
- package/models/operations/{accountv1settingsverfyemail.js → accountv1settingsupdaterole.js} +17 -17
- package/models/operations/{accountv1settingsverfyemail.js.map → accountv1settingsupdaterole.js.map} +1 -1
- package/models/operations/index.d.ts +5 -2
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +5 -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 +4 -2
- package/sdk/account.d.ts.map +1 -1
- package/sdk/account.js +16 -8
- package/sdk/account.js.map +1 -1
- package/sdk/internal.d.ts +4 -2
- package/sdk/internal.d.ts.map +1 -1
- package/sdk/internal.js +16 -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 +4 -2
- package/sdk/settings.d.ts.map +1 -1
- package/sdk/settings.js +15 -7
- 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/accountAccountV1SettingsUpdateRole.ts +149 -0
- 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/internalAccountV1SettingsUpdateRole.ts +149 -0
- 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/funcs/settingsAccountV1SettingsUpdateRole.ts +149 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/errormodel.ts +122 -0
- package/src/models/components/index.ts +3 -0
- package/src/models/components/v1accountinforesponsebody.ts +10 -0
- package/src/models/components/v1emailsubscriptionrequestbody.ts +78 -0
- package/src/models/components/v1getsettingsbody.ts +7 -0
- package/src/models/components/v1updaterolerequestbody.ts +109 -0
- package/src/models/components/v1updatesettingsrequestbody.ts +0 -47
- package/src/models/operations/{accountv1settingssendemailverification.ts → accountv1settingsemailsendverification.ts} +46 -46
- package/src/models/operations/accountv1settingsemailsubscribe.ts +174 -0
- package/src/models/operations/accountv1settingsemailverify.ts +87 -0
- package/src/models/operations/{accountv1settingsverfyemail.ts → accountv1settingsupdaterole.ts} +22 -22
- package/src/models/operations/index.ts +5 -2
- package/src/models/operations/resendwebhook.ts +179 -0
- package/src/sdk/account.ts +45 -21
- package/src/sdk/internal.ts +45 -21
- package/src/sdk/sdk.ts +20 -6
- package/src/sdk/settings.ts +41 -17
- 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
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
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 AccountV1SettingsEmailVerifyResponse = {
|
|
13
|
+
httpMeta: components.HTTPMetadata;
|
|
14
|
+
headers: { [k: string]: Array<string> };
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const AccountV1SettingsEmailVerifyResponse$inboundSchema: z.ZodType<
|
|
19
|
+
AccountV1SettingsEmailVerifyResponse,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
24
|
+
Headers: z.record(z.array(z.string())),
|
|
25
|
+
}).transform((v) => {
|
|
26
|
+
return remap$(v, {
|
|
27
|
+
"HttpMeta": "httpMeta",
|
|
28
|
+
"Headers": "headers",
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export type AccountV1SettingsEmailVerifyResponse$Outbound = {
|
|
34
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
35
|
+
Headers: { [k: string]: Array<string> };
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const AccountV1SettingsEmailVerifyResponse$outboundSchema: z.ZodType<
|
|
40
|
+
AccountV1SettingsEmailVerifyResponse$Outbound,
|
|
41
|
+
z.ZodTypeDef,
|
|
42
|
+
AccountV1SettingsEmailVerifyResponse
|
|
43
|
+
> = z.object({
|
|
44
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
45
|
+
headers: z.record(z.array(z.string())),
|
|
46
|
+
}).transform((v) => {
|
|
47
|
+
return remap$(v, {
|
|
48
|
+
httpMeta: "HttpMeta",
|
|
49
|
+
headers: "Headers",
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
|
+
*/
|
|
57
|
+
export namespace AccountV1SettingsEmailVerifyResponse$ {
|
|
58
|
+
/** @deprecated use `AccountV1SettingsEmailVerifyResponse$inboundSchema` instead. */
|
|
59
|
+
export const inboundSchema =
|
|
60
|
+
AccountV1SettingsEmailVerifyResponse$inboundSchema;
|
|
61
|
+
/** @deprecated use `AccountV1SettingsEmailVerifyResponse$outboundSchema` instead. */
|
|
62
|
+
export const outboundSchema =
|
|
63
|
+
AccountV1SettingsEmailVerifyResponse$outboundSchema;
|
|
64
|
+
/** @deprecated use `AccountV1SettingsEmailVerifyResponse$Outbound` instead. */
|
|
65
|
+
export type Outbound = AccountV1SettingsEmailVerifyResponse$Outbound;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function accountV1SettingsEmailVerifyResponseToJSON(
|
|
69
|
+
accountV1SettingsEmailVerifyResponse: AccountV1SettingsEmailVerifyResponse,
|
|
70
|
+
): string {
|
|
71
|
+
return JSON.stringify(
|
|
72
|
+
AccountV1SettingsEmailVerifyResponse$outboundSchema.parse(
|
|
73
|
+
accountV1SettingsEmailVerifyResponse,
|
|
74
|
+
),
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function accountV1SettingsEmailVerifyResponseFromJSON(
|
|
79
|
+
jsonString: string,
|
|
80
|
+
): SafeParseResult<AccountV1SettingsEmailVerifyResponse, SDKValidationError> {
|
|
81
|
+
return safeParse(
|
|
82
|
+
jsonString,
|
|
83
|
+
(x) =>
|
|
84
|
+
AccountV1SettingsEmailVerifyResponse$inboundSchema.parse(JSON.parse(x)),
|
|
85
|
+
`Failed to parse 'AccountV1SettingsEmailVerifyResponse' from JSON`,
|
|
86
|
+
);
|
|
87
|
+
}
|
package/src/models/operations/{accountv1settingsverfyemail.ts → accountv1settingsupdaterole.ts}
RENAMED
|
@@ -9,14 +9,14 @@ 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 AccountV1SettingsUpdateRoleResponse = {
|
|
13
13
|
httpMeta: components.HTTPMetadata;
|
|
14
14
|
headers: { [k: string]: Array<string> };
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
/** @internal */
|
|
18
|
-
export const
|
|
19
|
-
|
|
18
|
+
export const AccountV1SettingsUpdateRoleResponse$inboundSchema: z.ZodType<
|
|
19
|
+
AccountV1SettingsUpdateRoleResponse,
|
|
20
20
|
z.ZodTypeDef,
|
|
21
21
|
unknown
|
|
22
22
|
> = z.object({
|
|
@@ -30,16 +30,16 @@ export const AccountV1SettingsVerfyEmailResponse$inboundSchema: z.ZodType<
|
|
|
30
30
|
});
|
|
31
31
|
|
|
32
32
|
/** @internal */
|
|
33
|
-
export type
|
|
33
|
+
export type AccountV1SettingsUpdateRoleResponse$Outbound = {
|
|
34
34
|
HttpMeta: components.HTTPMetadata$Outbound;
|
|
35
35
|
Headers: { [k: string]: Array<string> };
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
/** @internal */
|
|
39
|
-
export const
|
|
40
|
-
|
|
39
|
+
export const AccountV1SettingsUpdateRoleResponse$outboundSchema: z.ZodType<
|
|
40
|
+
AccountV1SettingsUpdateRoleResponse$Outbound,
|
|
41
41
|
z.ZodTypeDef,
|
|
42
|
-
|
|
42
|
+
AccountV1SettingsUpdateRoleResponse
|
|
43
43
|
> = z.object({
|
|
44
44
|
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
45
45
|
headers: z.record(z.array(z.string())),
|
|
@@ -54,34 +54,34 @@ export const AccountV1SettingsVerfyEmailResponse$outboundSchema: z.ZodType<
|
|
|
54
54
|
* @internal
|
|
55
55
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
56
|
*/
|
|
57
|
-
export namespace
|
|
58
|
-
/** @deprecated use `
|
|
57
|
+
export namespace AccountV1SettingsUpdateRoleResponse$ {
|
|
58
|
+
/** @deprecated use `AccountV1SettingsUpdateRoleResponse$inboundSchema` instead. */
|
|
59
59
|
export const inboundSchema =
|
|
60
|
-
|
|
61
|
-
/** @deprecated use `
|
|
60
|
+
AccountV1SettingsUpdateRoleResponse$inboundSchema;
|
|
61
|
+
/** @deprecated use `AccountV1SettingsUpdateRoleResponse$outboundSchema` instead. */
|
|
62
62
|
export const outboundSchema =
|
|
63
|
-
|
|
64
|
-
/** @deprecated use `
|
|
65
|
-
export type Outbound =
|
|
63
|
+
AccountV1SettingsUpdateRoleResponse$outboundSchema;
|
|
64
|
+
/** @deprecated use `AccountV1SettingsUpdateRoleResponse$Outbound` instead. */
|
|
65
|
+
export type Outbound = AccountV1SettingsUpdateRoleResponse$Outbound;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
export function
|
|
69
|
-
|
|
68
|
+
export function accountV1SettingsUpdateRoleResponseToJSON(
|
|
69
|
+
accountV1SettingsUpdateRoleResponse: AccountV1SettingsUpdateRoleResponse,
|
|
70
70
|
): string {
|
|
71
71
|
return JSON.stringify(
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
AccountV1SettingsUpdateRoleResponse$outboundSchema.parse(
|
|
73
|
+
accountV1SettingsUpdateRoleResponse,
|
|
74
74
|
),
|
|
75
75
|
);
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
export function
|
|
78
|
+
export function accountV1SettingsUpdateRoleResponseFromJSON(
|
|
79
79
|
jsonString: string,
|
|
80
|
-
): SafeParseResult<
|
|
80
|
+
): SafeParseResult<AccountV1SettingsUpdateRoleResponse, SDKValidationError> {
|
|
81
81
|
return safeParse(
|
|
82
82
|
jsonString,
|
|
83
83
|
(x) =>
|
|
84
|
-
|
|
85
|
-
`Failed to parse '
|
|
84
|
+
AccountV1SettingsUpdateRoleResponse$inboundSchema.parse(JSON.parse(x)),
|
|
85
|
+
`Failed to parse 'AccountV1SettingsUpdateRoleResponse' from JSON`,
|
|
86
86
|
);
|
|
87
87
|
}
|
|
@@ -29,10 +29,12 @@ export * from "./accountv1sessionlogin.js";
|
|
|
29
29
|
export * from "./accountv1settingsdeveloperappcreate.js";
|
|
30
30
|
export * from "./accountv1settingsdeveloperappdelete.js";
|
|
31
31
|
export * from "./accountv1settingsdeveloperappupdate.js";
|
|
32
|
+
export * from "./accountv1settingsemailsendverification.js";
|
|
33
|
+
export * from "./accountv1settingsemailsubscribe.js";
|
|
34
|
+
export * from "./accountv1settingsemailverify.js";
|
|
32
35
|
export * from "./accountv1settingsget.js";
|
|
33
|
-
export * from "./accountv1settingssendemailverification.js";
|
|
34
36
|
export * from "./accountv1settingsupdate.js";
|
|
35
|
-
export * from "./
|
|
37
|
+
export * from "./accountv1settingsupdaterole.js";
|
|
36
38
|
export * from "./adminv1getaccount.js";
|
|
37
39
|
export * from "./adminv1getevents.js";
|
|
38
40
|
export * from "./adminv1updateevent.js";
|
|
@@ -46,4 +48,5 @@ export * from "./leaderboardv1getbadges.js";
|
|
|
46
48
|
export * from "./leaderboardv1getgroup.js";
|
|
47
49
|
export * from "./liveness.js";
|
|
48
50
|
export * from "./locationv1locationget.js";
|
|
51
|
+
export * from "./resendwebhook.js";
|
|
49
52
|
export * from "./statsv1statsget.js";
|