@crevio/sdk 0.6.0 → 0.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -40
- package/dist/commonjs/funcs/accessCheck.d.ts +19 -0
- package/dist/commonjs/funcs/accessCheck.d.ts.map +1 -0
- package/dist/commonjs/funcs/accessCheck.js +129 -0
- package/dist/commonjs/funcs/accessCheck.js.map +1 -0
- package/dist/commonjs/funcs/experiencesFilesCreate.d.ts +1 -1
- package/dist/commonjs/funcs/experiencesFilesCreate.d.ts.map +1 -1
- package/dist/commonjs/funcs/experiencesFilesCreate.js +3 -24
- package/dist/commonjs/funcs/experiencesFilesCreate.js.map +1 -1
- package/dist/commonjs/funcs/lessonsFilesCreate.d.ts +1 -1
- package/dist/commonjs/funcs/lessonsFilesCreate.d.ts.map +1 -1
- package/dist/commonjs/funcs/lessonsFilesCreate.js +3 -24
- package/dist/commonjs/funcs/lessonsFilesCreate.js.map +1 -1
- package/dist/commonjs/funcs/usersGet.d.ts +19 -0
- package/dist/commonjs/funcs/usersGet.d.ts.map +1 -0
- package/dist/commonjs/funcs/usersGet.js +125 -0
- package/dist/commonjs/funcs/usersGet.js.map +1 -0
- package/dist/commonjs/index.d.ts +1 -0
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +1 -0
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/verify-user-token.d.ts +35 -0
- package/dist/commonjs/lib/verify-user-token.d.ts.map +1 -0
- package/dist/commonjs/lib/verify-user-token.js +75 -0
- package/dist/commonjs/lib/verify-user-token.js.map +1 -0
- package/dist/commonjs/models/accesscheck.d.ts +13 -0
- package/dist/commonjs/models/accesscheck.d.ts.map +1 -0
- package/dist/commonjs/models/accesscheck.js +60 -0
- package/dist/commonjs/models/accesscheck.js.map +1 -0
- package/dist/commonjs/models/booking.d.ts +7 -7
- package/dist/commonjs/models/booking.d.ts.map +1 -1
- package/dist/commonjs/models/booking.js +9 -9
- package/dist/commonjs/models/booking.js.map +1 -1
- package/dist/commonjs/models/eventtype.d.ts +22 -51
- package/dist/commonjs/models/eventtype.d.ts.map +1 -1
- package/dist/commonjs/models/eventtype.js +22 -73
- package/dist/commonjs/models/eventtype.js.map +1 -1
- package/dist/commonjs/models/formation.d.ts +5 -25
- package/dist/commonjs/models/formation.d.ts.map +1 -1
- package/dist/commonjs/models/formation.js +6 -37
- package/dist/commonjs/models/formation.js.map +1 -1
- package/dist/commonjs/models/formationdocument.d.ts +2 -10
- package/dist/commonjs/models/formationdocument.d.ts.map +1 -1
- package/dist/commonjs/models/formationdocument.js +3 -16
- package/dist/commonjs/models/formationdocument.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +2 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +2 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/me.d.ts +1 -1
- package/dist/commonjs/models/me.d.ts.map +1 -1
- package/dist/commonjs/models/me.js +1 -1
- package/dist/commonjs/models/me.js.map +1 -1
- package/dist/commonjs/models/operations/checkaccess.d.ts +20 -0
- package/dist/commonjs/models/operations/checkaccess.d.ts.map +1 -0
- package/dist/commonjs/models/operations/checkaccess.js +55 -0
- package/dist/commonjs/models/operations/checkaccess.js.map +1 -0
- package/dist/commonjs/models/operations/createdigitaldownloadfile.d.ts +3 -15
- package/dist/commonjs/models/operations/createdigitaldownloadfile.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createdigitaldownloadfile.js +6 -16
- package/dist/commonjs/models/operations/createdigitaldownloadfile.js.map +1 -1
- package/dist/commonjs/models/operations/createlessonfile.d.ts +3 -15
- package/dist/commonjs/models/operations/createlessonfile.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createlessonfile.js +6 -16
- package/dist/commonjs/models/operations/createlessonfile.js.map +1 -1
- package/dist/commonjs/models/operations/getuser.d.ts +15 -0
- package/dist/commonjs/models/operations/getuser.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getuser.js +49 -0
- package/dist/commonjs/models/operations/getuser.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +2 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +2 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/retryformationpayment.d.ts +5 -25
- package/dist/commonjs/models/operations/retryformationpayment.d.ts.map +1 -1
- package/dist/commonjs/models/operations/retryformationpayment.js +6 -36
- package/dist/commonjs/models/operations/retryformationpayment.js.map +1 -1
- package/dist/commonjs/models/operations/submitformation.d.ts +5 -25
- package/dist/commonjs/models/operations/submitformation.d.ts.map +1 -1
- package/dist/commonjs/models/operations/submitformation.js +6 -36
- package/dist/commonjs/models/operations/submitformation.js.map +1 -1
- package/dist/commonjs/models/user.d.ts +14 -0
- package/dist/commonjs/models/user.d.ts.map +1 -0
- package/dist/commonjs/models/user.js +61 -0
- package/dist/commonjs/models/user.js.map +1 -0
- package/dist/commonjs/sdk/access.d.ts +13 -0
- package/dist/commonjs/sdk/access.d.ts.map +1 -0
- package/dist/commonjs/sdk/access.js +22 -0
- package/dist/commonjs/sdk/access.js.map +1 -0
- package/dist/commonjs/sdk/experiencesfiles.d.ts +1 -1
- package/dist/commonjs/sdk/experiencesfiles.js +1 -1
- package/dist/commonjs/sdk/lessonsfiles.d.ts +1 -1
- package/dist/commonjs/sdk/lessonsfiles.js +1 -1
- package/dist/commonjs/sdk/sdk.d.ts +6 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +8 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/users.d.ts +13 -0
- package/dist/commonjs/sdk/users.d.ts.map +1 -0
- package/dist/commonjs/sdk/users.js +22 -0
- package/dist/commonjs/sdk/users.js.map +1 -0
- package/dist/esm/funcs/accessCheck.d.ts +19 -0
- package/dist/esm/funcs/accessCheck.d.ts.map +1 -0
- package/dist/esm/funcs/accessCheck.js +93 -0
- package/dist/esm/funcs/accessCheck.js.map +1 -0
- package/dist/esm/funcs/experiencesFilesCreate.d.ts +1 -1
- package/dist/esm/funcs/experiencesFilesCreate.d.ts.map +1 -1
- package/dist/esm/funcs/experiencesFilesCreate.js +4 -25
- package/dist/esm/funcs/experiencesFilesCreate.js.map +1 -1
- package/dist/esm/funcs/lessonsFilesCreate.d.ts +1 -1
- package/dist/esm/funcs/lessonsFilesCreate.d.ts.map +1 -1
- package/dist/esm/funcs/lessonsFilesCreate.js +4 -25
- package/dist/esm/funcs/lessonsFilesCreate.js.map +1 -1
- package/dist/esm/funcs/usersGet.d.ts +19 -0
- package/dist/esm/funcs/usersGet.d.ts.map +1 -0
- package/dist/esm/funcs/usersGet.js +89 -0
- package/dist/esm/funcs/usersGet.js.map +1 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/verify-user-token.d.ts +35 -0
- package/dist/esm/lib/verify-user-token.d.ts.map +1 -0
- package/dist/esm/lib/verify-user-token.js +72 -0
- package/dist/esm/lib/verify-user-token.js.map +1 -0
- package/dist/esm/models/accesscheck.d.ts +13 -0
- package/dist/esm/models/accesscheck.d.ts.map +1 -0
- package/dist/esm/models/accesscheck.js +23 -0
- package/dist/esm/models/accesscheck.js.map +1 -0
- package/dist/esm/models/booking.d.ts +7 -7
- package/dist/esm/models/booking.d.ts.map +1 -1
- package/dist/esm/models/booking.js +7 -7
- package/dist/esm/models/booking.js.map +1 -1
- package/dist/esm/models/eventtype.d.ts +22 -51
- package/dist/esm/models/eventtype.d.ts.map +1 -1
- package/dist/esm/models/eventtype.js +21 -62
- package/dist/esm/models/eventtype.js.map +1 -1
- package/dist/esm/models/formation.d.ts +5 -25
- package/dist/esm/models/formation.d.ts.map +1 -1
- package/dist/esm/models/formation.js +5 -31
- package/dist/esm/models/formation.js.map +1 -1
- package/dist/esm/models/formationdocument.d.ts +2 -10
- package/dist/esm/models/formationdocument.d.ts.map +1 -1
- package/dist/esm/models/formationdocument.js +2 -13
- package/dist/esm/models/formationdocument.js.map +1 -1
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +2 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/me.d.ts +1 -1
- package/dist/esm/models/me.d.ts.map +1 -1
- package/dist/esm/models/me.js +1 -1
- package/dist/esm/models/me.js.map +1 -1
- package/dist/esm/models/operations/checkaccess.d.ts +20 -0
- package/dist/esm/models/operations/checkaccess.d.ts.map +1 -0
- package/dist/esm/models/operations/checkaccess.js +18 -0
- package/dist/esm/models/operations/checkaccess.js.map +1 -0
- package/dist/esm/models/operations/createdigitaldownloadfile.d.ts +3 -15
- package/dist/esm/models/operations/createdigitaldownloadfile.d.ts.map +1 -1
- package/dist/esm/models/operations/createdigitaldownloadfile.js +5 -14
- package/dist/esm/models/operations/createdigitaldownloadfile.js.map +1 -1
- package/dist/esm/models/operations/createlessonfile.d.ts +3 -15
- package/dist/esm/models/operations/createlessonfile.d.ts.map +1 -1
- package/dist/esm/models/operations/createlessonfile.js +5 -14
- package/dist/esm/models/operations/createlessonfile.js.map +1 -1
- package/dist/esm/models/operations/getuser.d.ts +15 -0
- package/dist/esm/models/operations/getuser.d.ts.map +1 -0
- package/dist/esm/models/operations/getuser.js +12 -0
- package/dist/esm/models/operations/getuser.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +2 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +2 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/retryformationpayment.d.ts +5 -25
- package/dist/esm/models/operations/retryformationpayment.d.ts.map +1 -1
- package/dist/esm/models/operations/retryformationpayment.js +5 -30
- package/dist/esm/models/operations/retryformationpayment.js.map +1 -1
- package/dist/esm/models/operations/submitformation.d.ts +5 -25
- package/dist/esm/models/operations/submitformation.d.ts.map +1 -1
- package/dist/esm/models/operations/submitformation.js +5 -30
- package/dist/esm/models/operations/submitformation.js.map +1 -1
- package/dist/esm/models/user.d.ts +14 -0
- package/dist/esm/models/user.d.ts.map +1 -0
- package/dist/esm/models/user.js +24 -0
- package/dist/esm/models/user.js.map +1 -0
- package/dist/esm/sdk/access.d.ts +13 -0
- package/dist/esm/sdk/access.d.ts.map +1 -0
- package/dist/esm/sdk/access.js +18 -0
- package/dist/esm/sdk/access.js.map +1 -0
- package/dist/esm/sdk/experiencesfiles.d.ts +1 -1
- package/dist/esm/sdk/experiencesfiles.js +1 -1
- package/dist/esm/sdk/lessonsfiles.d.ts +1 -1
- package/dist/esm/sdk/lessonsfiles.js +1 -1
- package/dist/esm/sdk/sdk.d.ts +6 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +8 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/users.d.ts +13 -0
- package/dist/esm/sdk/users.d.ts.map +1 -0
- package/dist/esm/sdk/users.js +18 -0
- package/dist/esm/sdk/users.js.map +1 -0
- package/jsr.json +1 -1
- package/package.json +2 -1
- package/src/funcs/accessCheck.ts +182 -0
- package/src/funcs/experiencesFilesCreate.ts +4 -38
- package/src/funcs/lessonsFilesCreate.ts +4 -38
- package/src/funcs/usersGet.ts +178 -0
- package/src/index.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/verify-user-token.ts +118 -0
- package/src/models/accesscheck.ts +44 -0
- package/src/models/booking.ts +15 -15
- package/src/models/eventtype.ts +37 -212
- package/src/models/formation.ts +10 -102
- package/src/models/formationdocument.ts +4 -39
- package/src/models/index.ts +2 -0
- package/src/models/me.ts +2 -2
- package/src/models/operations/checkaccess.ts +45 -0
- package/src/models/operations/createdigitaldownloadfile.ts +8 -40
- package/src/models/operations/createlessonfile.ts +8 -38
- package/src/models/operations/getuser.ts +30 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/retryformationpayment.ts +10 -105
- package/src/models/operations/submitformation.ts +10 -105
- package/src/models/user.ts +42 -0
- package/src/sdk/access.ts +28 -0
- package/src/sdk/experiencesfiles.ts +1 -1
- package/src/sdk/lessonsfiles.ts +1 -1
- package/src/sdk/sdk.ts +12 -0
- package/src/sdk/users.ts +28 -0
|
@@ -5,16 +5,11 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
|
|
8
|
-
export type CreateDigitalDownloadFileFile = {
|
|
9
|
-
fileName: string;
|
|
10
|
-
content: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
8
|
export type CreateDigitalDownloadFileRequestBody = {
|
|
14
9
|
/**
|
|
15
|
-
*
|
|
10
|
+
* Ids of files already uploaded via POST /files (e.g. "file_abc123") to attach as deliverables
|
|
16
11
|
*/
|
|
17
|
-
|
|
12
|
+
fileIds: Array<string>;
|
|
18
13
|
};
|
|
19
14
|
|
|
20
15
|
export type CreateDigitalDownloadFileRequest = {
|
|
@@ -25,40 +20,9 @@ export type CreateDigitalDownloadFileRequest = {
|
|
|
25
20
|
requestBody: CreateDigitalDownloadFileRequestBody;
|
|
26
21
|
};
|
|
27
22
|
|
|
28
|
-
/** @internal */
|
|
29
|
-
export type CreateDigitalDownloadFileFile$Outbound = {
|
|
30
|
-
fileName: string;
|
|
31
|
-
content: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
/** @internal */
|
|
35
|
-
export const CreateDigitalDownloadFileFile$outboundSchema: z.ZodType<
|
|
36
|
-
CreateDigitalDownloadFileFile$Outbound,
|
|
37
|
-
z.ZodTypeDef,
|
|
38
|
-
CreateDigitalDownloadFileFile
|
|
39
|
-
> = z.object({
|
|
40
|
-
fileName: z.string(),
|
|
41
|
-
content: z.union([
|
|
42
|
-
z.instanceof(ReadableStream<Uint8Array>),
|
|
43
|
-
z.instanceof(Blob),
|
|
44
|
-
z.instanceof(ArrayBuffer),
|
|
45
|
-
z.instanceof(Uint8Array),
|
|
46
|
-
]),
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
export function createDigitalDownloadFileFileToJSON(
|
|
50
|
-
createDigitalDownloadFileFile: CreateDigitalDownloadFileFile,
|
|
51
|
-
): string {
|
|
52
|
-
return JSON.stringify(
|
|
53
|
-
CreateDigitalDownloadFileFile$outboundSchema.parse(
|
|
54
|
-
createDigitalDownloadFileFile,
|
|
55
|
-
),
|
|
56
|
-
);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
23
|
/** @internal */
|
|
60
24
|
export type CreateDigitalDownloadFileRequestBody$Outbound = {
|
|
61
|
-
|
|
25
|
+
file_ids: Array<string>;
|
|
62
26
|
};
|
|
63
27
|
|
|
64
28
|
/** @internal */
|
|
@@ -67,7 +31,11 @@ export const CreateDigitalDownloadFileRequestBody$outboundSchema: z.ZodType<
|
|
|
67
31
|
z.ZodTypeDef,
|
|
68
32
|
CreateDigitalDownloadFileRequestBody
|
|
69
33
|
> = z.object({
|
|
70
|
-
|
|
34
|
+
fileIds: z.array(z.string()),
|
|
35
|
+
}).transform((v) => {
|
|
36
|
+
return remap$(v, {
|
|
37
|
+
fileIds: "file_ids",
|
|
38
|
+
});
|
|
71
39
|
});
|
|
72
40
|
|
|
73
41
|
export function createDigitalDownloadFileRequestBodyToJSON(
|
|
@@ -5,16 +5,11 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
|
|
8
|
-
export type CreateLessonFileFile = {
|
|
9
|
-
fileName: string;
|
|
10
|
-
content: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
8
|
export type CreateLessonFileRequestBody = {
|
|
14
9
|
/**
|
|
15
|
-
*
|
|
10
|
+
* Ids of files already uploaded via POST /files (e.g. "file_abc123") to attach to the lesson
|
|
16
11
|
*/
|
|
17
|
-
|
|
12
|
+
fileIds: Array<string>;
|
|
18
13
|
};
|
|
19
14
|
|
|
20
15
|
export type CreateLessonFileRequest = {
|
|
@@ -25,38 +20,9 @@ export type CreateLessonFileRequest = {
|
|
|
25
20
|
requestBody: CreateLessonFileRequestBody;
|
|
26
21
|
};
|
|
27
22
|
|
|
28
|
-
/** @internal */
|
|
29
|
-
export type CreateLessonFileFile$Outbound = {
|
|
30
|
-
fileName: string;
|
|
31
|
-
content: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
/** @internal */
|
|
35
|
-
export const CreateLessonFileFile$outboundSchema: z.ZodType<
|
|
36
|
-
CreateLessonFileFile$Outbound,
|
|
37
|
-
z.ZodTypeDef,
|
|
38
|
-
CreateLessonFileFile
|
|
39
|
-
> = z.object({
|
|
40
|
-
fileName: z.string(),
|
|
41
|
-
content: z.union([
|
|
42
|
-
z.instanceof(ReadableStream<Uint8Array>),
|
|
43
|
-
z.instanceof(Blob),
|
|
44
|
-
z.instanceof(ArrayBuffer),
|
|
45
|
-
z.instanceof(Uint8Array),
|
|
46
|
-
]),
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
export function createLessonFileFileToJSON(
|
|
50
|
-
createLessonFileFile: CreateLessonFileFile,
|
|
51
|
-
): string {
|
|
52
|
-
return JSON.stringify(
|
|
53
|
-
CreateLessonFileFile$outboundSchema.parse(createLessonFileFile),
|
|
54
|
-
);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
23
|
/** @internal */
|
|
58
24
|
export type CreateLessonFileRequestBody$Outbound = {
|
|
59
|
-
|
|
25
|
+
file_ids: Array<string>;
|
|
60
26
|
};
|
|
61
27
|
|
|
62
28
|
/** @internal */
|
|
@@ -65,7 +31,11 @@ export const CreateLessonFileRequestBody$outboundSchema: z.ZodType<
|
|
|
65
31
|
z.ZodTypeDef,
|
|
66
32
|
CreateLessonFileRequestBody
|
|
67
33
|
> = z.object({
|
|
68
|
-
|
|
34
|
+
fileIds: z.array(z.string()),
|
|
35
|
+
}).transform((v) => {
|
|
36
|
+
return remap$(v, {
|
|
37
|
+
fileIds: "file_ids",
|
|
38
|
+
});
|
|
69
39
|
});
|
|
70
40
|
|
|
71
41
|
export function createLessonFileRequestBodyToJSON(
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
export type GetUserRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
|
|
10
|
+
*/
|
|
11
|
+
id: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type GetUserRequest$Outbound = {
|
|
16
|
+
id: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const GetUserRequest$outboundSchema: z.ZodType<
|
|
21
|
+
GetUserRequest$Outbound,
|
|
22
|
+
z.ZodTypeDef,
|
|
23
|
+
GetUserRequest
|
|
24
|
+
> = z.object({
|
|
25
|
+
id: z.string(),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export function getUserRequestToJSON(getUserRequest: GetUserRequest): string {
|
|
29
|
+
return JSON.stringify(GetUserRequest$outboundSchema.parse(getUserRequest));
|
|
30
|
+
}
|
|
@@ -66,6 +66,7 @@ export * from "./assigndomain.js";
|
|
|
66
66
|
export * from "./cancelbooking.js";
|
|
67
67
|
export * from "./canceljob.js";
|
|
68
68
|
export * from "./cancelsubscription.js";
|
|
69
|
+
export * from "./checkaccess.js";
|
|
69
70
|
export * from "./confirmfileupload.js";
|
|
70
71
|
export * from "./connectdomain.js";
|
|
71
72
|
export * from "./connectsocialaccount.js";
|
|
@@ -211,6 +212,7 @@ export * from "./getsubscription.js";
|
|
|
211
212
|
export * from "./gettag.js";
|
|
212
213
|
export * from "./gettask.js";
|
|
213
214
|
export * from "./gettaskrun.js";
|
|
215
|
+
export * from "./getuser.js";
|
|
214
216
|
export * from "./getvideojob.js";
|
|
215
217
|
export * from "./getwebhookendpoint.js";
|
|
216
218
|
export * from "./getwebhookevent.js";
|
|
@@ -35,20 +35,10 @@ export type RetryFormationPaymentEntityType = ClosedEnum<
|
|
|
35
35
|
typeof RetryFormationPaymentEntityType
|
|
36
36
|
>;
|
|
37
37
|
|
|
38
|
-
export type RetryFormationPaymentState = {};
|
|
39
|
-
|
|
40
|
-
export type RetryFormationPaymentNaicsCode = {};
|
|
41
|
-
|
|
42
|
-
export type RetryFormationPaymentDescription = {};
|
|
43
|
-
|
|
44
38
|
export type RetryFormationPaymentResponsibleParty = {};
|
|
45
39
|
|
|
46
40
|
export type RetryFormationPaymentMailingAddress = {};
|
|
47
41
|
|
|
48
|
-
export type RetryFormationPaymentCreatedAt = {};
|
|
49
|
-
|
|
50
|
-
export type RetryFormationPaymentUpdatedAt = {};
|
|
51
|
-
|
|
52
42
|
export const RetryFormationPaymentPaymentStatus = {
|
|
53
43
|
Unpaid: "unpaid",
|
|
54
44
|
Paid: "paid",
|
|
@@ -66,9 +56,9 @@ export type RetryFormationPaymentResponse = {
|
|
|
66
56
|
object: string;
|
|
67
57
|
status: RetryFormationPaymentStatus;
|
|
68
58
|
entityType: RetryFormationPaymentEntityType;
|
|
69
|
-
state:
|
|
70
|
-
naicsCode:
|
|
71
|
-
description:
|
|
59
|
+
state: string;
|
|
60
|
+
naicsCode: string;
|
|
61
|
+
description: string;
|
|
72
62
|
nameOptions: Array<any>;
|
|
73
63
|
members: Array<any>;
|
|
74
64
|
responsibleParty: RetryFormationPaymentResponsibleParty;
|
|
@@ -79,8 +69,8 @@ export type RetryFormationPaymentResponse = {
|
|
|
79
69
|
doolaError: string | null;
|
|
80
70
|
stripeCheckoutSessionId: string | null;
|
|
81
71
|
submittedAt: string | null;
|
|
82
|
-
createdAt:
|
|
83
|
-
updatedAt:
|
|
72
|
+
createdAt: Date;
|
|
73
|
+
updatedAt: Date;
|
|
84
74
|
doolaCompanyId: string | null;
|
|
85
75
|
verificationId: string | null;
|
|
86
76
|
paymentStatus: RetryFormationPaymentPaymentStatus;
|
|
@@ -129,57 +119,6 @@ export const RetryFormationPaymentEntityType$inboundSchema: z.ZodNativeEnum<
|
|
|
129
119
|
typeof RetryFormationPaymentEntityType
|
|
130
120
|
> = z.nativeEnum(RetryFormationPaymentEntityType);
|
|
131
121
|
|
|
132
|
-
/** @internal */
|
|
133
|
-
export const RetryFormationPaymentState$inboundSchema: z.ZodType<
|
|
134
|
-
RetryFormationPaymentState,
|
|
135
|
-
z.ZodTypeDef,
|
|
136
|
-
unknown
|
|
137
|
-
> = z.object({});
|
|
138
|
-
|
|
139
|
-
export function retryFormationPaymentStateFromJSON(
|
|
140
|
-
jsonString: string,
|
|
141
|
-
): SafeParseResult<RetryFormationPaymentState, SDKValidationError> {
|
|
142
|
-
return safeParse(
|
|
143
|
-
jsonString,
|
|
144
|
-
(x) => RetryFormationPaymentState$inboundSchema.parse(JSON.parse(x)),
|
|
145
|
-
`Failed to parse 'RetryFormationPaymentState' from JSON`,
|
|
146
|
-
);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
/** @internal */
|
|
150
|
-
export const RetryFormationPaymentNaicsCode$inboundSchema: z.ZodType<
|
|
151
|
-
RetryFormationPaymentNaicsCode,
|
|
152
|
-
z.ZodTypeDef,
|
|
153
|
-
unknown
|
|
154
|
-
> = z.object({});
|
|
155
|
-
|
|
156
|
-
export function retryFormationPaymentNaicsCodeFromJSON(
|
|
157
|
-
jsonString: string,
|
|
158
|
-
): SafeParseResult<RetryFormationPaymentNaicsCode, SDKValidationError> {
|
|
159
|
-
return safeParse(
|
|
160
|
-
jsonString,
|
|
161
|
-
(x) => RetryFormationPaymentNaicsCode$inboundSchema.parse(JSON.parse(x)),
|
|
162
|
-
`Failed to parse 'RetryFormationPaymentNaicsCode' from JSON`,
|
|
163
|
-
);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
/** @internal */
|
|
167
|
-
export const RetryFormationPaymentDescription$inboundSchema: z.ZodType<
|
|
168
|
-
RetryFormationPaymentDescription,
|
|
169
|
-
z.ZodTypeDef,
|
|
170
|
-
unknown
|
|
171
|
-
> = z.object({});
|
|
172
|
-
|
|
173
|
-
export function retryFormationPaymentDescriptionFromJSON(
|
|
174
|
-
jsonString: string,
|
|
175
|
-
): SafeParseResult<RetryFormationPaymentDescription, SDKValidationError> {
|
|
176
|
-
return safeParse(
|
|
177
|
-
jsonString,
|
|
178
|
-
(x) => RetryFormationPaymentDescription$inboundSchema.parse(JSON.parse(x)),
|
|
179
|
-
`Failed to parse 'RetryFormationPaymentDescription' from JSON`,
|
|
180
|
-
);
|
|
181
|
-
}
|
|
182
|
-
|
|
183
122
|
/** @internal */
|
|
184
123
|
export const RetryFormationPaymentResponsibleParty$inboundSchema: z.ZodType<
|
|
185
124
|
RetryFormationPaymentResponsibleParty,
|
|
@@ -216,40 +155,6 @@ export function retryFormationPaymentMailingAddressFromJSON(
|
|
|
216
155
|
);
|
|
217
156
|
}
|
|
218
157
|
|
|
219
|
-
/** @internal */
|
|
220
|
-
export const RetryFormationPaymentCreatedAt$inboundSchema: z.ZodType<
|
|
221
|
-
RetryFormationPaymentCreatedAt,
|
|
222
|
-
z.ZodTypeDef,
|
|
223
|
-
unknown
|
|
224
|
-
> = z.object({});
|
|
225
|
-
|
|
226
|
-
export function retryFormationPaymentCreatedAtFromJSON(
|
|
227
|
-
jsonString: string,
|
|
228
|
-
): SafeParseResult<RetryFormationPaymentCreatedAt, SDKValidationError> {
|
|
229
|
-
return safeParse(
|
|
230
|
-
jsonString,
|
|
231
|
-
(x) => RetryFormationPaymentCreatedAt$inboundSchema.parse(JSON.parse(x)),
|
|
232
|
-
`Failed to parse 'RetryFormationPaymentCreatedAt' from JSON`,
|
|
233
|
-
);
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
/** @internal */
|
|
237
|
-
export const RetryFormationPaymentUpdatedAt$inboundSchema: z.ZodType<
|
|
238
|
-
RetryFormationPaymentUpdatedAt,
|
|
239
|
-
z.ZodTypeDef,
|
|
240
|
-
unknown
|
|
241
|
-
> = z.object({});
|
|
242
|
-
|
|
243
|
-
export function retryFormationPaymentUpdatedAtFromJSON(
|
|
244
|
-
jsonString: string,
|
|
245
|
-
): SafeParseResult<RetryFormationPaymentUpdatedAt, SDKValidationError> {
|
|
246
|
-
return safeParse(
|
|
247
|
-
jsonString,
|
|
248
|
-
(x) => RetryFormationPaymentUpdatedAt$inboundSchema.parse(JSON.parse(x)),
|
|
249
|
-
`Failed to parse 'RetryFormationPaymentUpdatedAt' from JSON`,
|
|
250
|
-
);
|
|
251
|
-
}
|
|
252
|
-
|
|
253
158
|
/** @internal */
|
|
254
159
|
export const RetryFormationPaymentPaymentStatus$inboundSchema: z.ZodNativeEnum<
|
|
255
160
|
typeof RetryFormationPaymentPaymentStatus
|
|
@@ -265,9 +170,9 @@ export const RetryFormationPaymentResponse$inboundSchema: z.ZodType<
|
|
|
265
170
|
object: z.string(),
|
|
266
171
|
status: RetryFormationPaymentStatus$inboundSchema,
|
|
267
172
|
entity_type: RetryFormationPaymentEntityType$inboundSchema,
|
|
268
|
-
state: z.
|
|
269
|
-
naics_code: z.
|
|
270
|
-
description: z.
|
|
173
|
+
state: z.string(),
|
|
174
|
+
naics_code: z.string(),
|
|
175
|
+
description: z.string(),
|
|
271
176
|
name_options: z.array(z.any()),
|
|
272
177
|
members: z.array(z.any()),
|
|
273
178
|
responsible_party: z.lazy(() =>
|
|
@@ -282,8 +187,8 @@ export const RetryFormationPaymentResponse$inboundSchema: z.ZodType<
|
|
|
282
187
|
doola_error: z.nullable(z.string()),
|
|
283
188
|
stripe_checkout_session_id: z.nullable(z.string()),
|
|
284
189
|
submitted_at: z.nullable(z.string()),
|
|
285
|
-
created_at: z.
|
|
286
|
-
updated_at: z.
|
|
190
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
191
|
+
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
287
192
|
doola_company_id: z.nullable(z.string()),
|
|
288
193
|
verification_id: z.nullable(z.string()),
|
|
289
194
|
payment_status: RetryFormationPaymentPaymentStatus$inboundSchema,
|
|
@@ -141,20 +141,10 @@ export type SubmitFormationEntityTypeResponse = ClosedEnum<
|
|
|
141
141
|
typeof SubmitFormationEntityTypeResponse
|
|
142
142
|
>;
|
|
143
143
|
|
|
144
|
-
export type SubmitFormationState = {};
|
|
145
|
-
|
|
146
|
-
export type SubmitFormationNaicsCode = {};
|
|
147
|
-
|
|
148
|
-
export type SubmitFormationDescription = {};
|
|
149
|
-
|
|
150
144
|
export type SubmitFormationResponsiblePartyResponse = {};
|
|
151
145
|
|
|
152
146
|
export type SubmitFormationMailingAddressResponse = {};
|
|
153
147
|
|
|
154
|
-
export type SubmitFormationCreatedAt = {};
|
|
155
|
-
|
|
156
|
-
export type SubmitFormationUpdatedAt = {};
|
|
157
|
-
|
|
158
148
|
export const SubmitFormationPaymentStatus = {
|
|
159
149
|
Unpaid: "unpaid",
|
|
160
150
|
Paid: "paid",
|
|
@@ -172,9 +162,9 @@ export type SubmitFormationResponse = {
|
|
|
172
162
|
object: string;
|
|
173
163
|
status: SubmitFormationStatus;
|
|
174
164
|
entityType: SubmitFormationEntityTypeResponse;
|
|
175
|
-
state:
|
|
176
|
-
naicsCode:
|
|
177
|
-
description:
|
|
165
|
+
state: string;
|
|
166
|
+
naicsCode: string;
|
|
167
|
+
description: string;
|
|
178
168
|
nameOptions: Array<any>;
|
|
179
169
|
members: Array<any>;
|
|
180
170
|
responsibleParty: SubmitFormationResponsiblePartyResponse;
|
|
@@ -185,8 +175,8 @@ export type SubmitFormationResponse = {
|
|
|
185
175
|
doolaError: string | null;
|
|
186
176
|
stripeCheckoutSessionId: string | null;
|
|
187
177
|
submittedAt: string | null;
|
|
188
|
-
createdAt:
|
|
189
|
-
updatedAt:
|
|
178
|
+
createdAt: Date;
|
|
179
|
+
updatedAt: Date;
|
|
190
180
|
doolaCompanyId: string | null;
|
|
191
181
|
verificationId: string | null;
|
|
192
182
|
paymentStatus: SubmitFormationPaymentStatus;
|
|
@@ -478,57 +468,6 @@ export const SubmitFormationEntityTypeResponse$inboundSchema: z.ZodNativeEnum<
|
|
|
478
468
|
typeof SubmitFormationEntityTypeResponse
|
|
479
469
|
> = z.nativeEnum(SubmitFormationEntityTypeResponse);
|
|
480
470
|
|
|
481
|
-
/** @internal */
|
|
482
|
-
export const SubmitFormationState$inboundSchema: z.ZodType<
|
|
483
|
-
SubmitFormationState,
|
|
484
|
-
z.ZodTypeDef,
|
|
485
|
-
unknown
|
|
486
|
-
> = z.object({});
|
|
487
|
-
|
|
488
|
-
export function submitFormationStateFromJSON(
|
|
489
|
-
jsonString: string,
|
|
490
|
-
): SafeParseResult<SubmitFormationState, SDKValidationError> {
|
|
491
|
-
return safeParse(
|
|
492
|
-
jsonString,
|
|
493
|
-
(x) => SubmitFormationState$inboundSchema.parse(JSON.parse(x)),
|
|
494
|
-
`Failed to parse 'SubmitFormationState' from JSON`,
|
|
495
|
-
);
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
/** @internal */
|
|
499
|
-
export const SubmitFormationNaicsCode$inboundSchema: z.ZodType<
|
|
500
|
-
SubmitFormationNaicsCode,
|
|
501
|
-
z.ZodTypeDef,
|
|
502
|
-
unknown
|
|
503
|
-
> = z.object({});
|
|
504
|
-
|
|
505
|
-
export function submitFormationNaicsCodeFromJSON(
|
|
506
|
-
jsonString: string,
|
|
507
|
-
): SafeParseResult<SubmitFormationNaicsCode, SDKValidationError> {
|
|
508
|
-
return safeParse(
|
|
509
|
-
jsonString,
|
|
510
|
-
(x) => SubmitFormationNaicsCode$inboundSchema.parse(JSON.parse(x)),
|
|
511
|
-
`Failed to parse 'SubmitFormationNaicsCode' from JSON`,
|
|
512
|
-
);
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
/** @internal */
|
|
516
|
-
export const SubmitFormationDescription$inboundSchema: z.ZodType<
|
|
517
|
-
SubmitFormationDescription,
|
|
518
|
-
z.ZodTypeDef,
|
|
519
|
-
unknown
|
|
520
|
-
> = z.object({});
|
|
521
|
-
|
|
522
|
-
export function submitFormationDescriptionFromJSON(
|
|
523
|
-
jsonString: string,
|
|
524
|
-
): SafeParseResult<SubmitFormationDescription, SDKValidationError> {
|
|
525
|
-
return safeParse(
|
|
526
|
-
jsonString,
|
|
527
|
-
(x) => SubmitFormationDescription$inboundSchema.parse(JSON.parse(x)),
|
|
528
|
-
`Failed to parse 'SubmitFormationDescription' from JSON`,
|
|
529
|
-
);
|
|
530
|
-
}
|
|
531
|
-
|
|
532
471
|
/** @internal */
|
|
533
472
|
export const SubmitFormationResponsiblePartyResponse$inboundSchema: z.ZodType<
|
|
534
473
|
SubmitFormationResponsiblePartyResponse,
|
|
@@ -570,40 +509,6 @@ export function submitFormationMailingAddressResponseFromJSON(
|
|
|
570
509
|
);
|
|
571
510
|
}
|
|
572
511
|
|
|
573
|
-
/** @internal */
|
|
574
|
-
export const SubmitFormationCreatedAt$inboundSchema: z.ZodType<
|
|
575
|
-
SubmitFormationCreatedAt,
|
|
576
|
-
z.ZodTypeDef,
|
|
577
|
-
unknown
|
|
578
|
-
> = z.object({});
|
|
579
|
-
|
|
580
|
-
export function submitFormationCreatedAtFromJSON(
|
|
581
|
-
jsonString: string,
|
|
582
|
-
): SafeParseResult<SubmitFormationCreatedAt, SDKValidationError> {
|
|
583
|
-
return safeParse(
|
|
584
|
-
jsonString,
|
|
585
|
-
(x) => SubmitFormationCreatedAt$inboundSchema.parse(JSON.parse(x)),
|
|
586
|
-
`Failed to parse 'SubmitFormationCreatedAt' from JSON`,
|
|
587
|
-
);
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
/** @internal */
|
|
591
|
-
export const SubmitFormationUpdatedAt$inboundSchema: z.ZodType<
|
|
592
|
-
SubmitFormationUpdatedAt,
|
|
593
|
-
z.ZodTypeDef,
|
|
594
|
-
unknown
|
|
595
|
-
> = z.object({});
|
|
596
|
-
|
|
597
|
-
export function submitFormationUpdatedAtFromJSON(
|
|
598
|
-
jsonString: string,
|
|
599
|
-
): SafeParseResult<SubmitFormationUpdatedAt, SDKValidationError> {
|
|
600
|
-
return safeParse(
|
|
601
|
-
jsonString,
|
|
602
|
-
(x) => SubmitFormationUpdatedAt$inboundSchema.parse(JSON.parse(x)),
|
|
603
|
-
`Failed to parse 'SubmitFormationUpdatedAt' from JSON`,
|
|
604
|
-
);
|
|
605
|
-
}
|
|
606
|
-
|
|
607
512
|
/** @internal */
|
|
608
513
|
export const SubmitFormationPaymentStatus$inboundSchema: z.ZodNativeEnum<
|
|
609
514
|
typeof SubmitFormationPaymentStatus
|
|
@@ -619,9 +524,9 @@ export const SubmitFormationResponse$inboundSchema: z.ZodType<
|
|
|
619
524
|
object: z.string(),
|
|
620
525
|
status: SubmitFormationStatus$inboundSchema,
|
|
621
526
|
entity_type: SubmitFormationEntityTypeResponse$inboundSchema,
|
|
622
|
-
state: z.
|
|
623
|
-
naics_code: z.
|
|
624
|
-
description: z.
|
|
527
|
+
state: z.string(),
|
|
528
|
+
naics_code: z.string(),
|
|
529
|
+
description: z.string(),
|
|
625
530
|
name_options: z.array(z.any()),
|
|
626
531
|
members: z.array(z.any()),
|
|
627
532
|
responsible_party: z.lazy(() =>
|
|
@@ -636,8 +541,8 @@ export const SubmitFormationResponse$inboundSchema: z.ZodType<
|
|
|
636
541
|
doola_error: z.nullable(z.string()),
|
|
637
542
|
stripe_checkout_session_id: z.nullable(z.string()),
|
|
638
543
|
submitted_at: z.nullable(z.string()),
|
|
639
|
-
created_at: z.
|
|
640
|
-
updated_at: z.
|
|
544
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
545
|
+
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
641
546
|
doola_company_id: z.nullable(z.string()),
|
|
642
547
|
verification_id: z.nullable(z.string()),
|
|
643
548
|
payment_status: SubmitFormationPaymentStatus$inboundSchema,
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
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
|
+
|
|
11
|
+
export type User = {
|
|
12
|
+
object: string;
|
|
13
|
+
id: string;
|
|
14
|
+
firstName: string | null;
|
|
15
|
+
lastName: string | null;
|
|
16
|
+
email: string | null;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const User$inboundSchema: z.ZodType<User, z.ZodTypeDef, unknown> = z
|
|
21
|
+
.object({
|
|
22
|
+
object: z.string(),
|
|
23
|
+
id: z.string(),
|
|
24
|
+
first_name: z.nullable(z.string()),
|
|
25
|
+
last_name: z.nullable(z.string()),
|
|
26
|
+
email: z.nullable(z.string()),
|
|
27
|
+
}).transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
"first_name": "firstName",
|
|
30
|
+
"last_name": "lastName",
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
export function userFromJSON(
|
|
35
|
+
jsonString: string,
|
|
36
|
+
): SafeParseResult<User, SDKValidationError> {
|
|
37
|
+
return safeParse(
|
|
38
|
+
jsonString,
|
|
39
|
+
(x) => User$inboundSchema.parse(JSON.parse(x)),
|
|
40
|
+
`Failed to parse 'User' from JSON`,
|
|
41
|
+
);
|
|
42
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { accessCheck } from "../funcs/accessCheck.js";
|
|
6
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
|
+
import * as models from "../models/index.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
10
|
+
|
|
11
|
+
export class Access extends ClientSDK {
|
|
12
|
+
/**
|
|
13
|
+
* Check access
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* Returns whether a buyer (user_… or cus_… id) has access to a resource (the account acct_…, a prod_…, or an exp_…) and at what level (no_access, customer, admin). Powers entitlement gating on deployed sites.
|
|
17
|
+
*/
|
|
18
|
+
async check(
|
|
19
|
+
request: operations.CheckAccessRequest,
|
|
20
|
+
options?: RequestOptions,
|
|
21
|
+
): Promise<models.AccessCheck> {
|
|
22
|
+
return unwrapAsync(accessCheck(
|
|
23
|
+
this,
|
|
24
|
+
request,
|
|
25
|
+
options,
|
|
26
|
+
));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -32,7 +32,7 @@ export class ExperiencesFiles extends ClientSDK {
|
|
|
32
32
|
* Upload digital download files
|
|
33
33
|
*
|
|
34
34
|
* @remarks
|
|
35
|
-
* Attaches
|
|
35
|
+
* Attaches already-uploaded files to a digital download experience as deliverables. Upload the bytes first with `POST /files` (presigned upload), then reference the resulting ids here: `{ "file_ids": ["file_..."] }`. Appends to the existing set and de-duplicates, so re-sending an already-attached id is a safe no-op. Returns the full file list.
|
|
36
36
|
*/
|
|
37
37
|
async create(
|
|
38
38
|
request: operations.CreateDigitalDownloadFileRequest,
|
package/src/sdk/lessonsfiles.ts
CHANGED
|
@@ -32,7 +32,7 @@ export class LessonsFiles extends ClientSDK {
|
|
|
32
32
|
* Upload lesson files
|
|
33
33
|
*
|
|
34
34
|
* @remarks
|
|
35
|
-
* Attaches
|
|
35
|
+
* Attaches already-uploaded files to a lesson. Upload the bytes first with `POST /files` (presigned upload), then reference the resulting ids here: `{ "file_ids": ["file_..."] }`. Appends to the existing set and de-duplicates, so re-sending an already-attached id is a safe no-op. Returns the full file list.
|
|
36
36
|
*/
|
|
37
37
|
async create(
|
|
38
38
|
request: operations.CreateLessonFileRequest,
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { ClientSDK } from "../lib/sdks.js";
|
|
6
|
+
import { Access } from "./access.js";
|
|
6
7
|
import { Account } from "./account.js";
|
|
7
8
|
import { Ads } from "./ads.js";
|
|
8
9
|
import { ApiKeys } from "./apikeys.js";
|
|
@@ -61,6 +62,7 @@ import { TaskRuns } from "./taskruns.js";
|
|
|
61
62
|
import { Tasks } from "./tasks.js";
|
|
62
63
|
import { Topics } from "./topics.js";
|
|
63
64
|
import { Usage } from "./usage.js";
|
|
65
|
+
import { Users } from "./users.js";
|
|
64
66
|
import { Video } from "./video.js";
|
|
65
67
|
import { Web } from "./web.js";
|
|
66
68
|
import { WebhookEndpoints } from "./webhookendpoints.js";
|
|
@@ -376,4 +378,14 @@ export class Crevio extends ClientSDK {
|
|
|
376
378
|
get webhookEvents(): WebhookEvents {
|
|
377
379
|
return (this._webhookEvents ??= new WebhookEvents(this._options));
|
|
378
380
|
}
|
|
381
|
+
|
|
382
|
+
private _access?: Access;
|
|
383
|
+
get access(): Access {
|
|
384
|
+
return (this._access ??= new Access(this._options));
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
private _users?: Users;
|
|
388
|
+
get users(): Users {
|
|
389
|
+
return (this._users ??= new Users(this._options));
|
|
390
|
+
}
|
|
379
391
|
}
|
package/src/sdk/users.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { usersGet } from "../funcs/usersGet.js";
|
|
6
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
|
+
import * as models from "../models/index.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
10
|
+
|
|
11
|
+
export class Users extends ClientSDK {
|
|
12
|
+
/**
|
|
13
|
+
* Get user
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* Returns the profile (first/last name, email) of a buyer signed in on a deployed site, resolved from their user_… id or username. Scoped to the account; pair with getUser/verifyUserToken on the site.
|
|
17
|
+
*/
|
|
18
|
+
async get(
|
|
19
|
+
request: operations.GetUserRequest,
|
|
20
|
+
options?: RequestOptions,
|
|
21
|
+
): Promise<models.User> {
|
|
22
|
+
return unwrapAsync(usersGet(
|
|
23
|
+
this,
|
|
24
|
+
request,
|
|
25
|
+
options,
|
|
26
|
+
));
|
|
27
|
+
}
|
|
28
|
+
}
|