@steamsets/client-ts 0.15.4 → 0.16.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/README.md +0 -42
- package/docs/sdks/settings/README.md +1 -1
- package/funcs/settingsSubscribeEmail.js +2 -2
- package/funcs/settingsSubscribeEmail.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/connection.d.ts +3 -3
- package/models/components/index.d.ts +0 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +0 -1
- package/models/components/index.js.map +1 -1
- package/models/components/v1admingetaccountresponsebody.d.ts +13 -7
- package/models/components/v1admingetaccountresponsebody.d.ts.map +1 -1
- package/models/components/v1admingetaccountresponsebody.js +3 -0
- package/models/components/v1admingetaccountresponsebody.js.map +1 -1
- package/models/components/v1emailsubscriptionrequestbody.d.ts +3 -3
- package/models/components/v1emailsubscriptionrequestbody.d.ts.map +1 -1
- package/models/components/v1emailsubscriptionrequestbody.js +2 -2
- package/models/components/v1emailsubscriptionrequestbody.js.map +1 -1
- package/models/components/v1getsessionbody.d.ts +2 -2
- package/models/components/v1loginresponsebody.d.ts +2 -2
- package/models/components/v1updatesettingsrequestbody.d.ts +2 -2
- package/models/components/v1updatesettingsrequestbody.d.ts.map +1 -1
- package/models/components/v1updatesettingsrequestbody.js +2 -2
- package/models/components/v1updatesettingsrequestbody.js.map +1 -1
- package/models/operations/index.d.ts +0 -1
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -1
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/sdk.d.ts +0 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +0 -4
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/settingsSubscribeEmail.ts +2 -2
- package/src/lib/config.ts +3 -3
- package/src/models/components/connection.ts +3 -3
- package/src/models/components/index.ts +0 -1
- package/src/models/components/v1admingetaccountresponsebody.ts +20 -7
- package/src/models/components/v1emailsubscriptionrequestbody.ts +5 -5
- package/src/models/components/v1getsessionbody.ts +2 -2
- package/src/models/components/v1loginresponsebody.ts +2 -2
- package/src/models/components/v1updatesettingsrequestbody.ts +4 -4
- package/src/models/operations/index.ts +0 -1
- package/src/sdk/sdk.ts +0 -6
- package/docs/sdks/webhooks/README.md +0 -84
- package/funcs/webhooksResend.d.ts +0 -9
- package/funcs/webhooksResend.d.ts.map +0 -1
- package/funcs/webhooksResend.js +0 -114
- package/funcs/webhooksResend.js.map +0 -1
- package/models/components/errormodel.d.ts +0 -63
- package/models/components/errormodel.d.ts.map +0 -1
- package/models/components/errormodel.js +0 -81
- package/models/components/errormodel.js.map +0 -1
- package/models/operations/resendwebhook.d.ts +0 -66
- package/models/operations/resendwebhook.d.ts.map +0 -1
- package/models/operations/resendwebhook.js +0 -130
- package/models/operations/resendwebhook.js.map +0 -1
- package/sdk/webhooks.d.ts +0 -6
- package/sdk/webhooks.d.ts.map +0 -1
- package/sdk/webhooks.js +0 -16
- package/sdk/webhooks.js.map +0 -1
- package/src/funcs/webhooksResend.ts +0 -153
- package/src/models/components/errormodel.ts +0 -122
- package/src/models/operations/resendwebhook.ts +0 -179
- package/src/sdk/webhooks.ts +0 -21
|
@@ -1,179 +0,0 @@
|
|
|
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 ResendWebhookRequest = {
|
|
13
|
-
webhookId?: string | undefined;
|
|
14
|
-
webhookTimestamp?: string | undefined;
|
|
15
|
-
webhookSignature?: string | undefined;
|
|
16
|
-
requestBody: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export type ResendWebhookResponse = {
|
|
20
|
-
httpMeta: components.HTTPMetadata;
|
|
21
|
-
/**
|
|
22
|
-
* Error
|
|
23
|
-
*/
|
|
24
|
-
errorModel?: components.ErrorModel | undefined;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
/** @internal */
|
|
28
|
-
export const ResendWebhookRequest$inboundSchema: z.ZodType<
|
|
29
|
-
ResendWebhookRequest,
|
|
30
|
-
z.ZodTypeDef,
|
|
31
|
-
unknown
|
|
32
|
-
> = z.object({
|
|
33
|
-
"webhook-id": z.string().optional(),
|
|
34
|
-
"webhook-timestamp": z.string().optional(),
|
|
35
|
-
"webhook-signature": z.string().optional(),
|
|
36
|
-
RequestBody: z.union([
|
|
37
|
-
z.instanceof(ReadableStream<Uint8Array>),
|
|
38
|
-
z.instanceof(Blob),
|
|
39
|
-
z.instanceof(ArrayBuffer),
|
|
40
|
-
z.instanceof(Uint8Array),
|
|
41
|
-
]),
|
|
42
|
-
}).transform((v) => {
|
|
43
|
-
return remap$(v, {
|
|
44
|
-
"webhook-id": "webhookId",
|
|
45
|
-
"webhook-timestamp": "webhookTimestamp",
|
|
46
|
-
"webhook-signature": "webhookSignature",
|
|
47
|
-
"RequestBody": "requestBody",
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
/** @internal */
|
|
52
|
-
export type ResendWebhookRequest$Outbound = {
|
|
53
|
-
"webhook-id"?: string | undefined;
|
|
54
|
-
"webhook-timestamp"?: string | undefined;
|
|
55
|
-
"webhook-signature"?: string | undefined;
|
|
56
|
-
RequestBody: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
/** @internal */
|
|
60
|
-
export const ResendWebhookRequest$outboundSchema: z.ZodType<
|
|
61
|
-
ResendWebhookRequest$Outbound,
|
|
62
|
-
z.ZodTypeDef,
|
|
63
|
-
ResendWebhookRequest
|
|
64
|
-
> = z.object({
|
|
65
|
-
webhookId: z.string().optional(),
|
|
66
|
-
webhookTimestamp: z.string().optional(),
|
|
67
|
-
webhookSignature: z.string().optional(),
|
|
68
|
-
requestBody: z.union([
|
|
69
|
-
z.instanceof(ReadableStream<Uint8Array>),
|
|
70
|
-
z.instanceof(Blob),
|
|
71
|
-
z.instanceof(ArrayBuffer),
|
|
72
|
-
z.instanceof(Uint8Array),
|
|
73
|
-
]),
|
|
74
|
-
}).transform((v) => {
|
|
75
|
-
return remap$(v, {
|
|
76
|
-
webhookId: "webhook-id",
|
|
77
|
-
webhookTimestamp: "webhook-timestamp",
|
|
78
|
-
webhookSignature: "webhook-signature",
|
|
79
|
-
requestBody: "RequestBody",
|
|
80
|
-
});
|
|
81
|
-
});
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* @internal
|
|
85
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
86
|
-
*/
|
|
87
|
-
export namespace ResendWebhookRequest$ {
|
|
88
|
-
/** @deprecated use `ResendWebhookRequest$inboundSchema` instead. */
|
|
89
|
-
export const inboundSchema = ResendWebhookRequest$inboundSchema;
|
|
90
|
-
/** @deprecated use `ResendWebhookRequest$outboundSchema` instead. */
|
|
91
|
-
export const outboundSchema = ResendWebhookRequest$outboundSchema;
|
|
92
|
-
/** @deprecated use `ResendWebhookRequest$Outbound` instead. */
|
|
93
|
-
export type Outbound = ResendWebhookRequest$Outbound;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export function resendWebhookRequestToJSON(
|
|
97
|
-
resendWebhookRequest: ResendWebhookRequest,
|
|
98
|
-
): string {
|
|
99
|
-
return JSON.stringify(
|
|
100
|
-
ResendWebhookRequest$outboundSchema.parse(resendWebhookRequest),
|
|
101
|
-
);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export function resendWebhookRequestFromJSON(
|
|
105
|
-
jsonString: string,
|
|
106
|
-
): SafeParseResult<ResendWebhookRequest, SDKValidationError> {
|
|
107
|
-
return safeParse(
|
|
108
|
-
jsonString,
|
|
109
|
-
(x) => ResendWebhookRequest$inboundSchema.parse(JSON.parse(x)),
|
|
110
|
-
`Failed to parse 'ResendWebhookRequest' from JSON`,
|
|
111
|
-
);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
/** @internal */
|
|
115
|
-
export const ResendWebhookResponse$inboundSchema: z.ZodType<
|
|
116
|
-
ResendWebhookResponse,
|
|
117
|
-
z.ZodTypeDef,
|
|
118
|
-
unknown
|
|
119
|
-
> = z.object({
|
|
120
|
-
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
121
|
-
ErrorModel: components.ErrorModel$inboundSchema.optional(),
|
|
122
|
-
}).transform((v) => {
|
|
123
|
-
return remap$(v, {
|
|
124
|
-
"HttpMeta": "httpMeta",
|
|
125
|
-
"ErrorModel": "errorModel",
|
|
126
|
-
});
|
|
127
|
-
});
|
|
128
|
-
|
|
129
|
-
/** @internal */
|
|
130
|
-
export type ResendWebhookResponse$Outbound = {
|
|
131
|
-
HttpMeta: components.HTTPMetadata$Outbound;
|
|
132
|
-
ErrorModel?: components.ErrorModel$Outbound | undefined;
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
/** @internal */
|
|
136
|
-
export const ResendWebhookResponse$outboundSchema: z.ZodType<
|
|
137
|
-
ResendWebhookResponse$Outbound,
|
|
138
|
-
z.ZodTypeDef,
|
|
139
|
-
ResendWebhookResponse
|
|
140
|
-
> = z.object({
|
|
141
|
-
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
142
|
-
errorModel: components.ErrorModel$outboundSchema.optional(),
|
|
143
|
-
}).transform((v) => {
|
|
144
|
-
return remap$(v, {
|
|
145
|
-
httpMeta: "HttpMeta",
|
|
146
|
-
errorModel: "ErrorModel",
|
|
147
|
-
});
|
|
148
|
-
});
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* @internal
|
|
152
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
153
|
-
*/
|
|
154
|
-
export namespace ResendWebhookResponse$ {
|
|
155
|
-
/** @deprecated use `ResendWebhookResponse$inboundSchema` instead. */
|
|
156
|
-
export const inboundSchema = ResendWebhookResponse$inboundSchema;
|
|
157
|
-
/** @deprecated use `ResendWebhookResponse$outboundSchema` instead. */
|
|
158
|
-
export const outboundSchema = ResendWebhookResponse$outboundSchema;
|
|
159
|
-
/** @deprecated use `ResendWebhookResponse$Outbound` instead. */
|
|
160
|
-
export type Outbound = ResendWebhookResponse$Outbound;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
export function resendWebhookResponseToJSON(
|
|
164
|
-
resendWebhookResponse: ResendWebhookResponse,
|
|
165
|
-
): string {
|
|
166
|
-
return JSON.stringify(
|
|
167
|
-
ResendWebhookResponse$outboundSchema.parse(resendWebhookResponse),
|
|
168
|
-
);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
export function resendWebhookResponseFromJSON(
|
|
172
|
-
jsonString: string,
|
|
173
|
-
): SafeParseResult<ResendWebhookResponse, SDKValidationError> {
|
|
174
|
-
return safeParse(
|
|
175
|
-
jsonString,
|
|
176
|
-
(x) => ResendWebhookResponse$inboundSchema.parse(JSON.parse(x)),
|
|
177
|
-
`Failed to parse 'ResendWebhookResponse' from JSON`,
|
|
178
|
-
);
|
|
179
|
-
}
|
package/src/sdk/webhooks.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { webhooksResend } from "../funcs/webhooksResend.js";
|
|
6
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
|
-
import * as operations from "../models/operations/index.js";
|
|
8
|
-
import { unwrapAsync } from "../types/fp.js";
|
|
9
|
-
|
|
10
|
-
export class Webhooks extends ClientSDK {
|
|
11
|
-
async resend(
|
|
12
|
-
request: operations.ResendWebhookRequest,
|
|
13
|
-
options?: RequestOptions,
|
|
14
|
-
): Promise<operations.ResendWebhookResponse> {
|
|
15
|
-
return unwrapAsync(webhooksResend(
|
|
16
|
-
this,
|
|
17
|
-
request,
|
|
18
|
-
options,
|
|
19
|
-
));
|
|
20
|
-
}
|
|
21
|
-
}
|