@keystrokehq/docusign 0.0.15 → 0.0.16-integration-id-canonicalization.1
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 +3 -2
- package/dist/credential-sets/index.d.mts +2 -0
- package/dist/credential-sets/index.mjs +4 -0
- package/dist/docusign-jwt.credential-set-B0sXS-5i.mjs +39 -0
- package/dist/docusign-jwt.credential-set-BrMnF4Ok.d.mts +63 -0
- package/dist/docusign.credential-set-BloJ2PrK.mjs +51 -0
- package/dist/index.d.mts +4 -1
- package/dist/index.mjs +6 -1
- package/dist/operations/index.d.mts +2 -0
- package/dist/operations/index.mjs +3 -0
- package/dist/void-envelope.operation-B0nzxjWT.d.mts +8752 -0
- package/dist/void-envelope.operation-CfaS-zI7.mjs +8192 -0
- package/package.json +11 -227
- package/dist/_official/index.d.mts +0 -75
- package/dist/_official/index.mjs +0 -3
- package/dist/_runtime/index.d.mts +0 -1
- package/dist/_runtime/index.mjs +0 -1
- package/dist/account-custom-fields.d.mts +0 -48
- package/dist/account-custom-fields.mjs +0 -63
- package/dist/account-stamps.d.mts +0 -119
- package/dist/account-stamps.mjs +0 -144
- package/dist/account-tabs.d.mts +0 -65
- package/dist/account-tabs.mjs +0 -80
- package/dist/account.d.mts +0 -160
- package/dist/account.mjs +0 -207
- package/dist/admin.d.mts +0 -13
- package/dist/admin.mjs +0 -20
- package/dist/auth.d.mts +0 -28
- package/dist/auth.mjs +0 -64
- package/dist/bcc-archive.d.mts +0 -47
- package/dist/bcc-archive.mjs +0 -70
- package/dist/billing.d.mts +0 -152
- package/dist/billing.mjs +0 -208
- package/dist/brands.d.mts +0 -147
- package/dist/brands.mjs +0 -157
- package/dist/bulk-send.d.mts +0 -104
- package/dist/bulk-send.mjs +0 -115
- package/dist/chunked-uploads.d.mts +0 -57
- package/dist/chunked-uploads.mjs +0 -74
- package/dist/click.d.mts +0 -13
- package/dist/click.mjs +0 -20
- package/dist/client.d.mts +0 -47
- package/dist/client.mjs +0 -286
- package/dist/clm.d.mts +0 -13
- package/dist/clm.mjs +0 -20
- package/dist/cloud-storage.d.mts +0 -93
- package/dist/cloud-storage.mjs +0 -115
- package/dist/connect.d.mts +0 -183
- package/dist/connect.mjs +0 -217
- package/dist/connection.d.mts +0 -2
- package/dist/connection.mjs +0 -3
- package/dist/contacts.d.mts +0 -59
- package/dist/contacts.mjs +0 -79
- package/dist/enote.d.mts +0 -31
- package/dist/enote.mjs +0 -45
- package/dist/envelope-attachments.d.mts +0 -65
- package/dist/envelope-attachments.mjs +0 -76
- package/dist/envelope-custom-fields.d.mts +0 -137
- package/dist/envelope-custom-fields.mjs +0 -92
- package/dist/envelope-documents.d.mts +0 -206
- package/dist/envelope-documents.mjs +0 -219
- package/dist/envelope-email.d.mts +0 -48
- package/dist/envelope-email.mjs +0 -60
- package/dist/envelope-lock.d.mts +0 -48
- package/dist/envelope-lock.mjs +0 -60
- package/dist/envelope-logs.d.mts +0 -89
- package/dist/envelope-logs.mjs +0 -126
- package/dist/envelope-notifications.d.mts +0 -34
- package/dist/envelope-notifications.mjs +0 -44
- package/dist/envelope-recipients.d.mts +0 -126
- package/dist/envelope-recipients.mjs +0 -136
- package/dist/envelope-tabs.d.mts +0 -39
- package/dist/envelope-tabs.mjs +0 -49
- package/dist/envelope-views.d.mts +0 -74
- package/dist/envelope-views.mjs +0 -88
- package/dist/envelope-workflow.d.mts +0 -151
- package/dist/envelope-workflow.mjs +0 -176
- package/dist/envelopes.d.mts +0 -377
- package/dist/envelopes.mjs +0 -190
- package/dist/errors.d.mts +0 -48
- package/dist/errors.mjs +0 -76
- package/dist/events.d.mts +0 -192
- package/dist/events.mjs +0 -146
- package/dist/factory-5kY-Jnda.mjs +0 -8
- package/dist/groups.d.mts +0 -150
- package/dist/groups.mjs +0 -146
- package/dist/integration-H05G5JY8.mjs +0 -112
- package/dist/integration-Mk1ScWT6.d.mts +0 -30
- package/dist/messaging.d.mts +0 -1
- package/dist/messaging.mjs +0 -1
- package/dist/monitor.d.mts +0 -13
- package/dist/monitor.mjs +0 -20
- package/dist/notary.d.mts +0 -92
- package/dist/notary.mjs +0 -122
- package/dist/operation-helpers-D25WHTo1.mjs +0 -102
- package/dist/permission-profiles.d.mts +0 -57
- package/dist/permission-profiles.mjs +0 -70
- package/dist/power-forms.d.mts +0 -38
- package/dist/power-forms.mjs +0 -62
- package/dist/rooms.d.mts +0 -13
- package/dist/rooms.mjs +0 -28
- package/dist/shared-DTUCJayR.mjs +0 -27
- package/dist/signing-groups.d.mts +0 -102
- package/dist/signing-groups.mjs +0 -117
- package/dist/template-custom-fields.d.mts +0 -166
- package/dist/template-custom-fields.mjs +0 -107
- package/dist/template-documents.d.mts +0 -99
- package/dist/template-documents.mjs +0 -109
- package/dist/template-lock.d.mts +0 -48
- package/dist/template-lock.mjs +0 -60
- package/dist/template-sharing.d.mts +0 -96
- package/dist/template-sharing.mjs +0 -108
- package/dist/template-workflow.d.mts +0 -135
- package/dist/template-workflow.mjs +0 -152
- package/dist/templates.d.mts +0 -129
- package/dist/templates.mjs +0 -110
- package/dist/user-authorizations.d.mts +0 -96
- package/dist/user-authorizations.mjs +0 -133
- package/dist/user-custom-settings.d.mts +0 -60
- package/dist/user-custom-settings.mjs +0 -69
- package/dist/user-profile.d.mts +0 -80
- package/dist/user-profile.mjs +0 -106
- package/dist/user-signatures.d.mts +0 -155
- package/dist/user-signatures.mjs +0 -180
- package/dist/users.d.mts +0 -103
- package/dist/users.mjs +0 -98
- package/dist/verification.d.mts +0 -19
- package/dist/verification.mjs +0 -59
- package/dist/workspaces.d.mts +0 -128
- package/dist/workspaces.mjs +0 -143
package/dist/workspaces.d.mts
DELETED
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
3
|
-
|
|
4
|
-
//#region src/workspaces.d.ts
|
|
5
|
-
declare const createACollaborativeWorkspace: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
6
|
-
workspace: z.ZodObject<{
|
|
7
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
8
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
9
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
10
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
11
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
12
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
13
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
14
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
15
|
-
}, z.core.$strip>>], undefined>;
|
|
16
|
-
declare const listWorkspaces: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
17
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
18
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
19
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
20
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
21
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
22
|
-
}, z.core.$strip>>], undefined>;
|
|
23
|
-
declare const retrievePropertiesAboutWorkspace: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
24
|
-
workspaceId: z.ZodString;
|
|
25
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
27
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
28
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
29
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
30
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
31
|
-
}, z.core.$strip>>], undefined>;
|
|
32
|
-
declare const updateWorkspaceInformation: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
33
|
-
workspaceId: z.ZodString;
|
|
34
|
-
workspace: z.ZodObject<{
|
|
35
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
36
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
37
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
38
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
39
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
40
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
41
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
42
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
43
|
-
}, z.core.$strip>>], undefined>;
|
|
44
|
-
declare const deleteExistingWorkspaceLogically: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
45
|
-
workspaceId: z.ZodString;
|
|
46
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
47
|
-
success: z.ZodBoolean;
|
|
48
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
49
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
50
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
51
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
52
|
-
}, z.core.$strip>>], undefined>;
|
|
53
|
-
declare const addFileToWorkspace: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
54
|
-
workspaceId: z.ZodString;
|
|
55
|
-
folderId: z.ZodString;
|
|
56
|
-
file: z.ZodObject<{
|
|
57
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
58
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
59
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
60
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
61
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
62
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
63
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
64
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
65
|
-
}, z.core.$strip>>], undefined>;
|
|
66
|
-
declare const getWorkspaceFile: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
67
|
-
workspaceId: z.ZodString;
|
|
68
|
-
folderId: z.ZodString;
|
|
69
|
-
fileId: z.ZodString;
|
|
70
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
71
|
-
contentType: z.ZodOptional<z.ZodString>;
|
|
72
|
-
contentDisposition: z.ZodOptional<z.ZodString>;
|
|
73
|
-
status: z.ZodNumber;
|
|
74
|
-
body: z.ZodString;
|
|
75
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
76
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
77
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
78
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
79
|
-
}, z.core.$strip>>], undefined>;
|
|
80
|
-
declare const listWorkspaceFilePages: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
81
|
-
workspaceId: z.ZodString;
|
|
82
|
-
folderId: z.ZodString;
|
|
83
|
-
fileId: z.ZodString;
|
|
84
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
85
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
86
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
87
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
88
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
89
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
90
|
-
}, z.core.$strip>>], undefined>;
|
|
91
|
-
declare const getWorkspaceFolderContents: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
92
|
-
workspaceId: z.ZodString;
|
|
93
|
-
folderId: z.ZodString;
|
|
94
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
95
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
96
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
97
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
98
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
99
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
100
|
-
}, z.core.$strip>>], undefined>;
|
|
101
|
-
declare const deleteWorkspaceFilesOrFolders: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
102
|
-
workspaceId: z.ZodString;
|
|
103
|
-
items: z.ZodArray<z.ZodObject<{
|
|
104
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
105
|
-
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
106
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
107
|
-
success: z.ZodBoolean;
|
|
108
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
109
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
110
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
111
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
112
|
-
}, z.core.$strip>>], undefined>;
|
|
113
|
-
declare const updateWorkspaceItemMetadata: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
114
|
-
workspaceId: z.ZodString;
|
|
115
|
-
folderId: z.ZodString;
|
|
116
|
-
fileId: z.ZodString;
|
|
117
|
-
metadata: z.ZodObject<{
|
|
118
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
119
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
120
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
121
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
122
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
123
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
124
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
125
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
126
|
-
}, z.core.$strip>>], undefined>;
|
|
127
|
-
//#endregion
|
|
128
|
-
export { addFileToWorkspace, createACollaborativeWorkspace, deleteExistingWorkspaceLogically, deleteWorkspaceFilesOrFolders, getWorkspaceFile, getWorkspaceFolderContents, listWorkspaceFilePages, listWorkspaces, retrievePropertiesAboutWorkspace, updateWorkspaceInformation, updateWorkspaceItemMetadata };
|
package/dist/workspaces.mjs
DELETED
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { docusignGenericObjectSchema, docusignLooseObjectSchema, docusignSuccessSchema } from "./schemas/index.mjs";
|
|
2
|
-
import { r as defineRestOperation, t as defineBinaryOperation } from "./operation-helpers-D25WHTo1.mjs";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
|
|
5
|
-
//#region src/workspaces.ts
|
|
6
|
-
/**
|
|
7
|
-
* Collaborative workspaces. Covers PLAN.md § 6.37.
|
|
8
|
-
*/
|
|
9
|
-
const workspaceId = z.object({ workspaceId: z.string().min(1) });
|
|
10
|
-
const workspaceItem = workspaceId.extend({ folderId: z.string().min(1) });
|
|
11
|
-
const workspaceFile = workspaceItem.extend({ fileId: z.string().min(1) });
|
|
12
|
-
const binaryResponseSchema = docusignLooseObjectSchema({
|
|
13
|
-
contentType: z.string().optional(),
|
|
14
|
-
contentDisposition: z.string().optional(),
|
|
15
|
-
status: z.number(),
|
|
16
|
-
body: z.string()
|
|
17
|
-
});
|
|
18
|
-
const createACollaborativeWorkspace = defineRestOperation({
|
|
19
|
-
id: "docusign.create-a-collaborative-workspace",
|
|
20
|
-
slug: "DOCUSIGN_CREATE_A_COLLABORATIVE_WORKSPACE",
|
|
21
|
-
name: "Create Collaborative Workspace",
|
|
22
|
-
description: "Create a new collaborative workspace.",
|
|
23
|
-
needsApproval: true,
|
|
24
|
-
method: "POST",
|
|
25
|
-
path: "/workspaces",
|
|
26
|
-
input: z.object({ workspace: docusignLooseObjectSchema() }),
|
|
27
|
-
output: docusignGenericObjectSchema,
|
|
28
|
-
body: (input) => input.workspace
|
|
29
|
-
});
|
|
30
|
-
const listWorkspaces = defineRestOperation({
|
|
31
|
-
id: "docusign.list-workspaces",
|
|
32
|
-
slug: "DOCUSIGN_LIST_WORKSPACES",
|
|
33
|
-
name: "List Workspaces",
|
|
34
|
-
description: "List collaborative workspaces.",
|
|
35
|
-
method: "GET",
|
|
36
|
-
path: "/workspaces",
|
|
37
|
-
input: z.object({}),
|
|
38
|
-
output: docusignGenericObjectSchema
|
|
39
|
-
});
|
|
40
|
-
const retrievePropertiesAboutWorkspace = defineRestOperation({
|
|
41
|
-
id: "docusign.retrieve-properties-about-workspace",
|
|
42
|
-
slug: "DOCUSIGN_RETRIEVE_PROPERTIES_ABOUT_WORKSPACE",
|
|
43
|
-
name: "Retrieve Workspace Properties",
|
|
44
|
-
description: "Retrieve properties for a workspace.",
|
|
45
|
-
method: "GET",
|
|
46
|
-
path: (ctx) => `/workspaces/${ctx.encode(String(ctx.input.workspaceId))}`,
|
|
47
|
-
input: workspaceId,
|
|
48
|
-
output: docusignGenericObjectSchema
|
|
49
|
-
});
|
|
50
|
-
const updateWorkspaceInformation = defineRestOperation({
|
|
51
|
-
id: "docusign.update-workspace-information",
|
|
52
|
-
slug: "DOCUSIGN_UPDATE_WORKSPACE_INFORMATION",
|
|
53
|
-
name: "Update Workspace Information",
|
|
54
|
-
description: "Update workspace information.",
|
|
55
|
-
needsApproval: true,
|
|
56
|
-
method: "PUT",
|
|
57
|
-
path: (ctx) => `/workspaces/${ctx.encode(String(ctx.input.workspaceId))}`,
|
|
58
|
-
input: workspaceId.extend({ workspace: docusignLooseObjectSchema() }),
|
|
59
|
-
output: docusignGenericObjectSchema,
|
|
60
|
-
body: (input) => input.workspace
|
|
61
|
-
});
|
|
62
|
-
const deleteExistingWorkspaceLogically = defineRestOperation({
|
|
63
|
-
id: "docusign.delete-existing-workspace-logically",
|
|
64
|
-
slug: "DOCUSIGN_DELETE_EXISTING_WORKSPACE_LOGICALLY",
|
|
65
|
-
name: "Logically Delete Workspace",
|
|
66
|
-
description: "Soft-delete a workspace.",
|
|
67
|
-
needsApproval: true,
|
|
68
|
-
method: "DELETE",
|
|
69
|
-
path: (ctx) => `/workspaces/${ctx.encode(String(ctx.input.workspaceId))}`,
|
|
70
|
-
input: workspaceId,
|
|
71
|
-
output: docusignSuccessSchema,
|
|
72
|
-
transformResponse: () => ({ success: true })
|
|
73
|
-
});
|
|
74
|
-
const addFileToWorkspace = defineRestOperation({
|
|
75
|
-
id: "docusign.add-file-to-workspace",
|
|
76
|
-
slug: "DOCUSIGN_ADD_FILE_TO_WORKSPACE",
|
|
77
|
-
name: "Add File To Workspace",
|
|
78
|
-
description: "Upload a file into a workspace folder.",
|
|
79
|
-
needsApproval: true,
|
|
80
|
-
method: "POST",
|
|
81
|
-
path: (ctx) => `/workspaces/${ctx.encode(String(ctx.input.workspaceId))}/folders/${ctx.encode(String(ctx.input.folderId))}/files`,
|
|
82
|
-
input: workspaceItem.extend({ file: docusignLooseObjectSchema() }),
|
|
83
|
-
output: docusignGenericObjectSchema,
|
|
84
|
-
body: (input) => input.file
|
|
85
|
-
});
|
|
86
|
-
const getWorkspaceFile = defineBinaryOperation({
|
|
87
|
-
id: "docusign.get-workspace-file",
|
|
88
|
-
slug: "DOCUSIGN_GET_WORKSPACE_FILE",
|
|
89
|
-
name: "Get Workspace File",
|
|
90
|
-
description: "Download a file from a workspace folder.",
|
|
91
|
-
method: "GET",
|
|
92
|
-
path: (ctx) => `/workspaces/${ctx.encode(String(ctx.input.workspaceId))}/folders/${ctx.encode(String(ctx.input.folderId))}/files/${ctx.encode(String(ctx.input.fileId))}`,
|
|
93
|
-
input: workspaceFile,
|
|
94
|
-
output: binaryResponseSchema
|
|
95
|
-
});
|
|
96
|
-
const listWorkspaceFilePages = defineRestOperation({
|
|
97
|
-
id: "docusign.list-workspace-file-pages",
|
|
98
|
-
slug: "DOCUSIGN_LIST_WORKSPACE_FILE_PAGES",
|
|
99
|
-
name: "List Workspace File Pages",
|
|
100
|
-
description: "List page images for a workspace file.",
|
|
101
|
-
method: "GET",
|
|
102
|
-
path: (ctx) => `/workspaces/${ctx.encode(String(ctx.input.workspaceId))}/folders/${ctx.encode(String(ctx.input.folderId))}/files/${ctx.encode(String(ctx.input.fileId))}/pages`,
|
|
103
|
-
input: workspaceFile,
|
|
104
|
-
output: docusignGenericObjectSchema
|
|
105
|
-
});
|
|
106
|
-
const getWorkspaceFolderContents = defineRestOperation({
|
|
107
|
-
id: "docusign.get-workspace-folder-contents",
|
|
108
|
-
slug: "DOCUSIGN_GET_WORKSPACE_FOLDER_CONTENTS",
|
|
109
|
-
name: "Get Workspace Folder Contents",
|
|
110
|
-
description: "List the contents of a workspace folder.",
|
|
111
|
-
method: "GET",
|
|
112
|
-
path: (ctx) => `/workspaces/${ctx.encode(String(ctx.input.workspaceId))}/folders/${ctx.encode(String(ctx.input.folderId))}`,
|
|
113
|
-
input: workspaceItem,
|
|
114
|
-
output: docusignGenericObjectSchema
|
|
115
|
-
});
|
|
116
|
-
const deleteWorkspaceFilesOrFolders = defineRestOperation({
|
|
117
|
-
id: "docusign.delete-workspace-files-or-folders",
|
|
118
|
-
slug: "DOCUSIGN_DELETE_WORKSPACE_FILES_OR_FOLDERS",
|
|
119
|
-
name: "Delete Workspace Files Or Folders",
|
|
120
|
-
description: "Delete files or folders from a workspace.",
|
|
121
|
-
needsApproval: true,
|
|
122
|
-
method: "PUT",
|
|
123
|
-
path: (ctx) => `/workspaces/${ctx.encode(String(ctx.input.workspaceId))}/items`,
|
|
124
|
-
input: workspaceId.extend({ items: z.array(docusignLooseObjectSchema()).min(1) }),
|
|
125
|
-
output: docusignSuccessSchema,
|
|
126
|
-
body: (input) => ({ items: input.items }),
|
|
127
|
-
transformResponse: () => ({ success: true })
|
|
128
|
-
});
|
|
129
|
-
const updateWorkspaceItemMetadata = defineRestOperation({
|
|
130
|
-
id: "docusign.update-workspace-item-metadata",
|
|
131
|
-
slug: "DOCUSIGN_UPDATE_WORKSPACE_ITEM_METADATA",
|
|
132
|
-
name: "Update Workspace Item Metadata",
|
|
133
|
-
description: "Update metadata on a workspace item.",
|
|
134
|
-
needsApproval: true,
|
|
135
|
-
method: "PUT",
|
|
136
|
-
path: (ctx) => `/workspaces/${ctx.encode(String(ctx.input.workspaceId))}/folders/${ctx.encode(String(ctx.input.folderId))}/files/${ctx.encode(String(ctx.input.fileId))}`,
|
|
137
|
-
input: workspaceFile.extend({ metadata: docusignLooseObjectSchema() }),
|
|
138
|
-
output: docusignGenericObjectSchema,
|
|
139
|
-
body: (input) => input.metadata
|
|
140
|
-
});
|
|
141
|
-
|
|
142
|
-
//#endregion
|
|
143
|
-
export { addFileToWorkspace, createACollaborativeWorkspace, deleteExistingWorkspaceLogically, deleteWorkspaceFilesOrFolders, getWorkspaceFile, getWorkspaceFolderContents, listWorkspaceFilePages, listWorkspaces, retrievePropertiesAboutWorkspace, updateWorkspaceInformation, updateWorkspaceItemMetadata };
|