@keystrokehq/docusign 0.0.11 → 0.0.16-integration-id-canonicalization.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 +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-Bz99DTgx.d.mts +90 -0
- package/dist/docusign.credential-set-DRhK9ICD.mjs +183 -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-Bim49UXq.mjs +8192 -0
- package/dist/void-envelope.operation-D-onxqe_.d.mts +18203 -0
- package/package.json +9 -225
- package/dist/_official/index.d.mts +0 -89
- 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 -65
- package/dist/account-custom-fields.mjs +0 -63
- package/dist/account-stamps.d.mts +0 -164
- package/dist/account-stamps.mjs +0 -144
- package/dist/account-tabs.d.mts +0 -90
- package/dist/account-tabs.mjs +0 -80
- package/dist/account.d.mts +0 -233
- package/dist/account.mjs +0 -207
- package/dist/admin.d.mts +0 -18
- package/dist/admin.mjs +0 -20
- package/dist/auth.d.mts +0 -37
- package/dist/auth.mjs +0 -53
- package/dist/bcc-archive.d.mts +0 -64
- package/dist/bcc-archive.mjs +0 -70
- package/dist/billing.d.mts +0 -217
- package/dist/billing.mjs +0 -208
- package/dist/brands.d.mts +0 -192
- package/dist/brands.mjs +0 -157
- package/dist/bulk-send.d.mts +0 -137
- package/dist/bulk-send.mjs +0 -115
- package/dist/chunked-uploads.d.mts +0 -78
- package/dist/chunked-uploads.mjs +0 -74
- package/dist/click.d.mts +0 -18
- 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 -18
- package/dist/clm.mjs +0 -20
- package/dist/cloud-storage.d.mts +0 -122
- package/dist/cloud-storage.mjs +0 -115
- package/dist/connect.d.mts +0 -252
- 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 -80
- package/dist/contacts.mjs +0 -79
- package/dist/enote.d.mts +0 -44
- package/dist/enote.mjs +0 -45
- package/dist/envelope-attachments.d.mts +0 -86
- package/dist/envelope-attachments.mjs +0 -76
- package/dist/envelope-custom-fields.d.mts +0 -166
- package/dist/envelope-custom-fields.mjs +0 -92
- package/dist/envelope-documents.d.mts +0 -271
- package/dist/envelope-documents.mjs +0 -219
- package/dist/envelope-email.d.mts +0 -65
- package/dist/envelope-email.mjs +0 -60
- package/dist/envelope-lock.d.mts +0 -65
- package/dist/envelope-lock.mjs +0 -60
- package/dist/envelope-logs.d.mts +0 -126
- package/dist/envelope-logs.mjs +0 -126
- package/dist/envelope-notifications.d.mts +0 -47
- package/dist/envelope-notifications.mjs +0 -44
- package/dist/envelope-recipients.d.mts +0 -171
- package/dist/envelope-recipients.mjs +0 -136
- package/dist/envelope-tabs.d.mts +0 -52
- package/dist/envelope-tabs.mjs +0 -49
- package/dist/envelope-views.d.mts +0 -99
- package/dist/envelope-views.mjs +0 -88
- package/dist/envelope-workflow.d.mts +0 -208
- package/dist/envelope-workflow.mjs +0 -176
- package/dist/envelopes.d.mts +0 -430
- 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-DFejlPDe.mjs +0 -7
- package/dist/groups.d.mts +0 -191
- package/dist/groups.mjs +0 -146
- package/dist/integration-BcEp_dFX.mjs +0 -365
- package/dist/integration-CdIRNjCz.d.mts +0 -72
- package/dist/messaging.d.mts +0 -1
- package/dist/messaging.mjs +0 -1
- package/dist/monitor.d.mts +0 -18
- package/dist/monitor.mjs +0 -20
- package/dist/notary.d.mts +0 -129
- package/dist/notary.mjs +0 -122
- package/dist/operation-helpers-Bqp7KoLi.mjs +0 -102
- package/dist/permission-profiles.d.mts +0 -78
- package/dist/permission-profiles.mjs +0 -70
- package/dist/power-forms.d.mts +0 -51
- package/dist/power-forms.mjs +0 -62
- package/dist/rooms.d.mts +0 -18
- package/dist/rooms.mjs +0 -28
- package/dist/shared-DTUCJayR.mjs +0 -27
- package/dist/signing-groups.d.mts +0 -139
- package/dist/signing-groups.mjs +0 -117
- package/dist/template-custom-fields.d.mts +0 -199
- package/dist/template-custom-fields.mjs +0 -107
- package/dist/template-documents.d.mts +0 -132
- package/dist/template-documents.mjs +0 -109
- package/dist/template-lock.d.mts +0 -65
- package/dist/template-lock.mjs +0 -60
- package/dist/template-sharing.d.mts +0 -129
- package/dist/template-sharing.mjs +0 -108
- package/dist/template-workflow.d.mts +0 -184
- package/dist/template-workflow.mjs +0 -152
- package/dist/templates.d.mts +0 -158
- package/dist/templates.mjs +0 -110
- package/dist/user-authorizations.d.mts +0 -129
- package/dist/user-authorizations.mjs +0 -133
- package/dist/user-custom-settings.d.mts +0 -81
- package/dist/user-custom-settings.mjs +0 -69
- package/dist/user-profile.d.mts +0 -109
- package/dist/user-profile.mjs +0 -106
- package/dist/user-signatures.d.mts +0 -208
- package/dist/user-signatures.mjs +0 -180
- package/dist/users.d.mts +0 -128
- 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 -173
- package/dist/workspaces.mjs +0 -143
package/dist/brands.mjs
DELETED
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import { docusignBrandListSchema, docusignGenericObjectSchema, docusignLooseObjectSchema, docusignSuccessSchema } from "./schemas/index.mjs";
|
|
2
|
-
import { r as defineRestOperation, t as defineBinaryOperation } from "./operation-helpers-Bqp7KoLi.mjs";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
|
|
5
|
-
//#region src/brands.ts
|
|
6
|
-
/**
|
|
7
|
-
* Account brands (brand CRUD, logos, resource files). Covers PLAN.md § 6.30.
|
|
8
|
-
*/
|
|
9
|
-
const brandId = z.object({ brandId: z.string().min(1) });
|
|
10
|
-
const brandLogoId = brandId.extend({ logoType: z.enum([
|
|
11
|
-
"primary",
|
|
12
|
-
"secondary",
|
|
13
|
-
"email"
|
|
14
|
-
]) });
|
|
15
|
-
const brandResourceId = brandId.extend({ resourceContentType: z.string().min(1) });
|
|
16
|
-
const binaryResponseSchema = docusignLooseObjectSchema({
|
|
17
|
-
contentType: z.string().optional(),
|
|
18
|
-
contentDisposition: z.string().optional(),
|
|
19
|
-
status: z.number(),
|
|
20
|
-
body: z.string()
|
|
21
|
-
});
|
|
22
|
-
const createBrandProfilesForAccount = defineRestOperation({
|
|
23
|
-
id: "docusign.create-brand-profiles-for-account",
|
|
24
|
-
slug: "DOCUSIGN_CREATE_BRAND_PROFILES_FOR_ACCOUNT",
|
|
25
|
-
name: "Create Brand Profiles",
|
|
26
|
-
description: "Create new brand profiles on the account.",
|
|
27
|
-
needsApproval: true,
|
|
28
|
-
method: "POST",
|
|
29
|
-
path: "/brands",
|
|
30
|
-
input: z.object({ brands: z.array(docusignLooseObjectSchema()).min(1) }),
|
|
31
|
-
output: docusignBrandListSchema,
|
|
32
|
-
body: (input) => ({ brands: input.brands })
|
|
33
|
-
});
|
|
34
|
-
const listBrandsForAccount = defineRestOperation({
|
|
35
|
-
id: "docusign.list-brands-for-account",
|
|
36
|
-
slug: "DOCUSIGN_LIST_BRANDS_FOR_ACCOUNT",
|
|
37
|
-
name: "List Brands For Account",
|
|
38
|
-
description: "List brand profiles on the account.",
|
|
39
|
-
method: "GET",
|
|
40
|
-
path: "/brands",
|
|
41
|
-
input: z.object({
|
|
42
|
-
excludeDistributorBrand: z.boolean().optional(),
|
|
43
|
-
includeLogos: z.boolean().optional()
|
|
44
|
-
}),
|
|
45
|
-
output: docusignBrandListSchema,
|
|
46
|
-
query: (input) => ({
|
|
47
|
-
exclude_distributor_brand: input.excludeDistributorBrand,
|
|
48
|
-
include_logos: input.includeLogos
|
|
49
|
-
})
|
|
50
|
-
});
|
|
51
|
-
const retrieveAccountBrandInformation = defineRestOperation({
|
|
52
|
-
id: "docusign.retrieve-account-brand-information",
|
|
53
|
-
slug: "DOCUSIGN_RETRIEVE_ACCOUNT_BRAND_INFORMATION",
|
|
54
|
-
name: "Retrieve Brand Information",
|
|
55
|
-
description: "Retrieve a specific account brand.",
|
|
56
|
-
method: "GET",
|
|
57
|
-
path: (ctx) => `/brands/${ctx.encode(String(ctx.input.brandId))}`,
|
|
58
|
-
input: brandId.extend({ include: z.array(z.string()).optional() }),
|
|
59
|
-
output: docusignGenericObjectSchema,
|
|
60
|
-
query: (input) => ({ include: input.include })
|
|
61
|
-
});
|
|
62
|
-
const updateAccountBrandSettings = defineRestOperation({
|
|
63
|
-
id: "docusign.update-account-brand-settings",
|
|
64
|
-
slug: "DOCUSIGN_UPDATE_ACCOUNT_BRAND_SETTINGS",
|
|
65
|
-
name: "Update Brand Settings",
|
|
66
|
-
description: "Update an account brand.",
|
|
67
|
-
needsApproval: true,
|
|
68
|
-
method: "PUT",
|
|
69
|
-
path: (ctx) => `/brands/${ctx.encode(String(ctx.input.brandId))}`,
|
|
70
|
-
input: brandId.extend({ brand: docusignLooseObjectSchema() }),
|
|
71
|
-
output: docusignGenericObjectSchema,
|
|
72
|
-
body: (input) => input.brand
|
|
73
|
-
});
|
|
74
|
-
const deleteAccountBrand = defineRestOperation({
|
|
75
|
-
id: "docusign.delete-account-brand",
|
|
76
|
-
slug: "DOCUSIGN_DELETE_ACCOUNT_BRAND",
|
|
77
|
-
name: "Delete Account Brand",
|
|
78
|
-
description: "Delete a single account brand.",
|
|
79
|
-
needsApproval: true,
|
|
80
|
-
method: "DELETE",
|
|
81
|
-
path: (ctx) => `/brands/${ctx.encode(String(ctx.input.brandId))}`,
|
|
82
|
-
input: brandId,
|
|
83
|
-
output: docusignSuccessSchema,
|
|
84
|
-
transformResponse: () => ({ success: true })
|
|
85
|
-
});
|
|
86
|
-
const deleteBrandProfiles = defineRestOperation({
|
|
87
|
-
id: "docusign.delete-brand-profiles",
|
|
88
|
-
slug: "DOCUSIGN_DELETE_BRAND_PROFILES",
|
|
89
|
-
name: "Delete Brand Profiles",
|
|
90
|
-
description: "Delete multiple brand profiles.",
|
|
91
|
-
needsApproval: true,
|
|
92
|
-
method: "DELETE",
|
|
93
|
-
path: "/brands",
|
|
94
|
-
input: z.object({ brands: z.array(docusignLooseObjectSchema()).min(1) }),
|
|
95
|
-
output: docusignSuccessSchema,
|
|
96
|
-
body: (input) => ({ brands: input.brands }),
|
|
97
|
-
transformResponse: () => ({ success: true })
|
|
98
|
-
});
|
|
99
|
-
const exportBrandToXmlFile = defineBinaryOperation({
|
|
100
|
-
id: "docusign.export-brand-to-xml-file",
|
|
101
|
-
slug: "DOCUSIGN_EXPORT_BRAND_TO_XMLFILE",
|
|
102
|
-
name: "Export Brand To XML",
|
|
103
|
-
description: "Download a brand as XML.",
|
|
104
|
-
method: "GET",
|
|
105
|
-
path: (ctx) => `/brands/${ctx.encode(String(ctx.input.brandId))}/file`,
|
|
106
|
-
input: brandId,
|
|
107
|
-
accept: "application/xml",
|
|
108
|
-
output: binaryResponseSchema
|
|
109
|
-
});
|
|
110
|
-
const getBrandLogoByType = defineBinaryOperation({
|
|
111
|
-
id: "docusign.get-brand-logo-by-type",
|
|
112
|
-
slug: "DOCUSIGN_GET_BRAND_LOGO_BY_TYPE",
|
|
113
|
-
name: "Get Brand Logo By Type",
|
|
114
|
-
description: "Download a brand logo by type.",
|
|
115
|
-
method: "GET",
|
|
116
|
-
path: (ctx) => `/brands/${ctx.encode(String(ctx.input.brandId))}/logos/${ctx.encode(String(ctx.input.logoType))}`,
|
|
117
|
-
input: brandLogoId,
|
|
118
|
-
accept: "image/png",
|
|
119
|
-
output: binaryResponseSchema
|
|
120
|
-
});
|
|
121
|
-
const deleteBrandLogoByType = defineRestOperation({
|
|
122
|
-
id: "docusign.delete-brand-logo-by-type",
|
|
123
|
-
slug: "DOCUSIGN_DELETE_BRAND_LOGO_BY_TYPE",
|
|
124
|
-
name: "Delete Brand Logo By Type",
|
|
125
|
-
description: "Delete a brand logo by type.",
|
|
126
|
-
needsApproval: true,
|
|
127
|
-
method: "DELETE",
|
|
128
|
-
path: (ctx) => `/brands/${ctx.encode(String(ctx.input.brandId))}/logos/${ctx.encode(String(ctx.input.logoType))}`,
|
|
129
|
-
input: brandLogoId,
|
|
130
|
-
output: docusignSuccessSchema,
|
|
131
|
-
transformResponse: () => ({ success: true })
|
|
132
|
-
});
|
|
133
|
-
const getSpecificBrandResourceFile = defineBinaryOperation({
|
|
134
|
-
id: "docusign.get-specific-brand-resource-file",
|
|
135
|
-
slug: "DOCUSIGN_GET_SPECIFIC_BRAND_RESOURCE_FILE",
|
|
136
|
-
name: "Get Brand Resource File",
|
|
137
|
-
description: "Download a specific brand resource file by resource type.",
|
|
138
|
-
method: "GET",
|
|
139
|
-
path: (ctx) => `/brands/${ctx.encode(String(ctx.input.brandId))}/resources/${ctx.encode(String(ctx.input.resourceContentType))}`,
|
|
140
|
-
input: brandResourceId.extend({ langcode: z.string().optional() }),
|
|
141
|
-
accept: "application/xml",
|
|
142
|
-
output: binaryResponseSchema,
|
|
143
|
-
query: (input) => ({ langcode: input.langcode })
|
|
144
|
-
});
|
|
145
|
-
const returnBrandResourceMetadataForAccount = defineRestOperation({
|
|
146
|
-
id: "docusign.return-brand-resource-metadata-for-account",
|
|
147
|
-
slug: "DOCUSIGN_RETURN_BRAND_RESOURCE_METADATA_FOR_ACCOUNT",
|
|
148
|
-
name: "Return Brand Resource Metadata",
|
|
149
|
-
description: "List metadata about all brand resources.",
|
|
150
|
-
method: "GET",
|
|
151
|
-
path: (ctx) => `/brands/${ctx.encode(String(ctx.input.brandId))}/resources`,
|
|
152
|
-
input: brandId,
|
|
153
|
-
output: docusignGenericObjectSchema
|
|
154
|
-
});
|
|
155
|
-
|
|
156
|
-
//#endregion
|
|
157
|
-
export { createBrandProfilesForAccount, deleteAccountBrand, deleteBrandLogoByType, deleteBrandProfiles, exportBrandToXmlFile, getBrandLogoByType, getSpecificBrandResourceFile, listBrandsForAccount, retrieveAccountBrandInformation, returnBrandResourceMetadataForAccount, updateAccountBrandSettings };
|
package/dist/bulk-send.d.mts
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
|
-
|
|
5
|
-
//#region src/bulk-send.d.ts
|
|
6
|
-
declare const createBulkSendRequest: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
7
|
-
bulkSendListId: z.ZodString;
|
|
8
|
-
request: z.ZodObject<{
|
|
9
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
10
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
11
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
12
|
-
batchId: z.ZodOptional<z.ZodString>;
|
|
13
|
-
batchName: z.ZodOptional<z.ZodString>;
|
|
14
|
-
status: z.ZodOptional<z.ZodString>;
|
|
15
|
-
totalCount: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
16
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
17
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
18
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
19
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
20
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
21
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
22
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
23
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
24
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
25
|
-
declare const createBulkSendTestRequest: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
26
|
-
bulkSendListId: z.ZodString;
|
|
27
|
-
request: z.ZodObject<{
|
|
28
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
29
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
32
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
33
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
34
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
35
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
36
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
37
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
38
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
39
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
40
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
41
|
-
declare const applyActionToBulkSendEnvelopes: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
42
|
-
batchId: z.ZodString;
|
|
43
|
-
action: z.ZodEnum<{
|
|
44
|
-
void: "void";
|
|
45
|
-
correct: "correct";
|
|
46
|
-
resend: "resend";
|
|
47
|
-
}>;
|
|
48
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
49
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
50
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
51
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
52
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
53
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
54
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
55
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
56
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
57
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
58
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
59
|
-
declare const listBulkSendBatchSummaries: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
60
|
-
startPosition: z.ZodOptional<z.ZodNumber>;
|
|
61
|
-
count: z.ZodOptional<z.ZodNumber>;
|
|
62
|
-
batchIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
63
|
-
status: z.ZodOptional<z.ZodString>;
|
|
64
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
65
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
66
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
67
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
68
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
69
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
70
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
71
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
72
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
73
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
74
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
75
|
-
declare const getBulkSendBatchStatus: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
76
|
-
batchId: z.ZodString;
|
|
77
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
78
|
-
batchId: z.ZodOptional<z.ZodString>;
|
|
79
|
-
batchName: z.ZodOptional<z.ZodString>;
|
|
80
|
-
status: z.ZodOptional<z.ZodString>;
|
|
81
|
-
totalCount: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
82
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
83
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
84
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
85
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
86
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<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>], undefined>;
|
|
91
|
-
declare const getBulkSendListsInformation: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
92
|
-
bulkSendListId: z.ZodOptional<z.ZodString>;
|
|
93
|
-
name: z.ZodOptional<z.ZodString>;
|
|
94
|
-
bulkRecipients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
95
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
96
|
-
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
97
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
98
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
99
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
100
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
101
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
102
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
103
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
104
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
105
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
106
|
-
declare const removeBulkSendList: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
107
|
-
bulkSendListId: z.ZodString;
|
|
108
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
109
|
-
success: z.ZodBoolean;
|
|
110
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
111
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
112
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
113
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
114
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
115
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
116
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
117
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
118
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
119
|
-
declare const updateBulkSendBatchName: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
120
|
-
batchId: z.ZodString;
|
|
121
|
-
batchName: z.ZodString;
|
|
122
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
123
|
-
batchId: z.ZodOptional<z.ZodString>;
|
|
124
|
-
batchName: z.ZodOptional<z.ZodString>;
|
|
125
|
-
status: z.ZodOptional<z.ZodString>;
|
|
126
|
-
totalCount: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
127
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
128
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
129
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
130
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
131
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
132
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
133
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
134
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
135
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
136
|
-
//#endregion
|
|
137
|
-
export { applyActionToBulkSendEnvelopes, createBulkSendRequest, createBulkSendTestRequest, getBulkSendBatchStatus, getBulkSendListsInformation, listBulkSendBatchSummaries, removeBulkSendList, updateBulkSendBatchName };
|
package/dist/bulk-send.mjs
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { docusignBulkSendBatchSchema, docusignBulkSendListSchema, docusignGenericObjectSchema, docusignListPaginationInputSchema, docusignLooseObjectSchema, docusignSuccessSchema } from "./schemas/index.mjs";
|
|
2
|
-
import { r as defineRestOperation } from "./operation-helpers-Bqp7KoLi.mjs";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
|
|
5
|
-
//#region src/bulk-send.ts
|
|
6
|
-
/**
|
|
7
|
-
* Bulk send. Covers PLAN.md § 6.17.
|
|
8
|
-
*/
|
|
9
|
-
const batchId = z.object({ batchId: z.string().min(1) });
|
|
10
|
-
const listId = z.object({ bulkSendListId: z.string().min(1) });
|
|
11
|
-
const createBulkSendRequest = defineRestOperation({
|
|
12
|
-
id: "docusign.create-bulk-send-request",
|
|
13
|
-
slug: "DOCUSIGN_CREATE_BULK_SEND_REQUEST",
|
|
14
|
-
name: "Create Bulk Send Request",
|
|
15
|
-
description: "Send an envelope in bulk to a pre-saved recipient list.",
|
|
16
|
-
needsApproval: true,
|
|
17
|
-
method: "POST",
|
|
18
|
-
path: (ctx) => `/bulk_send_lists/${ctx.encode(String(ctx.input.bulkSendListId))}/send`,
|
|
19
|
-
input: listId.extend({ request: docusignLooseObjectSchema() }),
|
|
20
|
-
output: docusignBulkSendBatchSchema,
|
|
21
|
-
body: (input) => input.request
|
|
22
|
-
});
|
|
23
|
-
const createBulkSendTestRequest = defineRestOperation({
|
|
24
|
-
id: "docusign.create-bulk-send-test-request",
|
|
25
|
-
slug: "DOCUSIGN_CREATE_BULK_SEND_TEST_REQUEST",
|
|
26
|
-
name: "Create Bulk Send Test Request",
|
|
27
|
-
description: "Dry-run a bulk send against a recipient list.",
|
|
28
|
-
needsApproval: true,
|
|
29
|
-
method: "POST",
|
|
30
|
-
path: (ctx) => `/bulk_send_lists/${ctx.encode(String(ctx.input.bulkSendListId))}/test`,
|
|
31
|
-
input: listId.extend({ request: docusignLooseObjectSchema() }),
|
|
32
|
-
output: docusignGenericObjectSchema,
|
|
33
|
-
body: (input) => input.request
|
|
34
|
-
});
|
|
35
|
-
const applyActionToBulkSendEnvelopes = defineRestOperation({
|
|
36
|
-
id: "docusign.apply-action-to-bulk-send-envelopes",
|
|
37
|
-
slug: "DOCUSIGN_APPLY_ACTION_TO_BULK_SEND_ENVELOPES",
|
|
38
|
-
name: "Apply Action To Bulk Send Envelopes",
|
|
39
|
-
description: "Apply an action (e.g. resume, stop) to all envelopes in a bulk send batch.",
|
|
40
|
-
needsApproval: true,
|
|
41
|
-
method: "PUT",
|
|
42
|
-
path: (ctx) => `/bulk_send_batch/${ctx.encode(String(ctx.input.batchId))}/${ctx.encode(String(ctx.input.action))}`,
|
|
43
|
-
input: batchId.extend({ action: z.enum([
|
|
44
|
-
"resend",
|
|
45
|
-
"correct",
|
|
46
|
-
"void"
|
|
47
|
-
]) }),
|
|
48
|
-
output: docusignGenericObjectSchema
|
|
49
|
-
});
|
|
50
|
-
const listBulkSendBatchSummaries = defineRestOperation({
|
|
51
|
-
id: "docusign.list-bulk-send-batch-summaries",
|
|
52
|
-
slug: "DOCUSIGN_LIST_BULK_SEND_BATCH_SUMMARIES",
|
|
53
|
-
name: "List Bulk Send Batch Summaries",
|
|
54
|
-
description: "List bulk send batches for the account.",
|
|
55
|
-
method: "GET",
|
|
56
|
-
path: "/bulk_send_batch",
|
|
57
|
-
input: docusignListPaginationInputSchema.extend({
|
|
58
|
-
batchIds: z.array(z.string()).optional(),
|
|
59
|
-
status: z.string().optional()
|
|
60
|
-
}),
|
|
61
|
-
output: docusignGenericObjectSchema,
|
|
62
|
-
query: (input) => ({
|
|
63
|
-
start_position: input.startPosition,
|
|
64
|
-
count: input.count,
|
|
65
|
-
batch_ids: input.batchIds,
|
|
66
|
-
status: input.status
|
|
67
|
-
})
|
|
68
|
-
});
|
|
69
|
-
const getBulkSendBatchStatus = defineRestOperation({
|
|
70
|
-
id: "docusign.get-bulk-send-batch-status",
|
|
71
|
-
slug: "DOCUSIGN_GET_BULK_SEND_BATCH_STATUS",
|
|
72
|
-
name: "Get Bulk Send Batch Status",
|
|
73
|
-
description: "Fetch the status of a single bulk send batch.",
|
|
74
|
-
method: "GET",
|
|
75
|
-
path: (ctx) => `/bulk_send_batch/${ctx.encode(String(ctx.input.batchId))}`,
|
|
76
|
-
input: batchId,
|
|
77
|
-
output: docusignBulkSendBatchSchema
|
|
78
|
-
});
|
|
79
|
-
const getBulkSendListsInformation = defineRestOperation({
|
|
80
|
-
id: "docusign.get-bulk-send-lists-information",
|
|
81
|
-
slug: "DOCUSIGN_GET_BULK_SEND_LISTS_INFORMATION",
|
|
82
|
-
name: "Get Bulk Send Lists Information",
|
|
83
|
-
description: "List saved bulk send recipient lists.",
|
|
84
|
-
method: "GET",
|
|
85
|
-
path: "/bulk_send_lists",
|
|
86
|
-
input: z.object({}),
|
|
87
|
-
output: docusignBulkSendListSchema
|
|
88
|
-
});
|
|
89
|
-
const removeBulkSendList = defineRestOperation({
|
|
90
|
-
id: "docusign.remove-bulk-send-list",
|
|
91
|
-
slug: "DOCUSIGN_REMOVE_BULK_SEND_LIST",
|
|
92
|
-
name: "Remove Bulk Send List",
|
|
93
|
-
description: "Remove a saved bulk send recipient list.",
|
|
94
|
-
needsApproval: true,
|
|
95
|
-
method: "DELETE",
|
|
96
|
-
path: (ctx) => `/bulk_send_lists/${ctx.encode(String(ctx.input.bulkSendListId))}`,
|
|
97
|
-
input: listId,
|
|
98
|
-
output: docusignSuccessSchema,
|
|
99
|
-
transformResponse: () => ({ success: true })
|
|
100
|
-
});
|
|
101
|
-
const updateBulkSendBatchName = defineRestOperation({
|
|
102
|
-
id: "docusign.update-bulk-send-batch-name",
|
|
103
|
-
slug: "DOCUSIGN_UPDATE_BULK_SEND_BATCH_NAME",
|
|
104
|
-
name: "Update Bulk Send Batch Name",
|
|
105
|
-
description: "Rename a bulk send batch.",
|
|
106
|
-
needsApproval: true,
|
|
107
|
-
method: "PUT",
|
|
108
|
-
path: (ctx) => `/bulk_send_batch/${ctx.encode(String(ctx.input.batchId))}`,
|
|
109
|
-
input: batchId.extend({ batchName: z.string().min(1) }),
|
|
110
|
-
output: docusignBulkSendBatchSchema,
|
|
111
|
-
body: (input) => ({ batchName: input.batchName })
|
|
112
|
-
});
|
|
113
|
-
|
|
114
|
-
//#endregion
|
|
115
|
-
export { applyActionToBulkSendEnvelopes, createBulkSendRequest, createBulkSendTestRequest, getBulkSendBatchStatus, getBulkSendListsInformation, listBulkSendBatchSummaries, removeBulkSendList, updateBulkSendBatchName };
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
|
-
|
|
5
|
-
//#region src/chunked-uploads.d.ts
|
|
6
|
-
declare const initiateNewChunkedUpload: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
7
|
-
chunkedUpload: z.ZodObject<{
|
|
8
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
9
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
10
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
11
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
12
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
13
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
14
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
15
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
16
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
17
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
18
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
19
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
20
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
21
|
-
declare const addPartToChunkedUpload: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
22
|
-
chunkedUploadId: z.ZodString;
|
|
23
|
-
chunkedUploadPartSeq: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
24
|
-
data: 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<"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>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
32
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
33
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
34
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
35
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
36
|
-
declare const commitChunkedUploadForEnvelopes: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
37
|
-
chunkedUploadId: z.ZodString;
|
|
38
|
-
action: z.ZodOptional<z.ZodLiteral<"commit">>;
|
|
39
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
41
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
42
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
43
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
44
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
45
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
46
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
47
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
48
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
49
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
50
|
-
declare const deleteChunkedUpload: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
51
|
-
chunkedUploadId: z.ZodString;
|
|
52
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
-
success: z.ZodBoolean;
|
|
54
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
55
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
56
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
57
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
58
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
59
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
60
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
61
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
62
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
63
|
-
declare const retrieveChunkedUploadMetadata: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
64
|
-
chunkedUploadId: z.ZodString;
|
|
65
|
-
include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
66
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
67
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
68
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
69
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
70
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
71
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
72
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
73
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
74
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
75
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
76
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
77
|
-
//#endregion
|
|
78
|
-
export { addPartToChunkedUpload, commitChunkedUploadForEnvelopes, deleteChunkedUpload, initiateNewChunkedUpload, retrieveChunkedUploadMetadata };
|
package/dist/chunked-uploads.mjs
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { docusignGenericObjectSchema, docusignLooseObjectSchema, docusignSuccessSchema } from "./schemas/index.mjs";
|
|
2
|
-
import { r as defineRestOperation } from "./operation-helpers-Bqp7KoLi.mjs";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
|
|
5
|
-
//#region src/chunked-uploads.ts
|
|
6
|
-
/**
|
|
7
|
-
* Chunked uploads. Covers PLAN.md § 6.18.
|
|
8
|
-
*/
|
|
9
|
-
const chunkedId = z.object({ chunkedUploadId: z.string().min(1) });
|
|
10
|
-
const initiateNewChunkedUpload = defineRestOperation({
|
|
11
|
-
id: "docusign.initiate-new-chunked-upload",
|
|
12
|
-
slug: "DOCUSIGN_INITIATE_NEW_CHUNKED_UPLOAD",
|
|
13
|
-
name: "Initiate New Chunked Upload",
|
|
14
|
-
description: "Initiate a new chunked upload session.",
|
|
15
|
-
needsApproval: true,
|
|
16
|
-
method: "POST",
|
|
17
|
-
path: "/chunked_uploads",
|
|
18
|
-
input: z.object({ chunkedUpload: docusignLooseObjectSchema() }),
|
|
19
|
-
output: docusignGenericObjectSchema,
|
|
20
|
-
body: (input) => input.chunkedUpload
|
|
21
|
-
});
|
|
22
|
-
const addPartToChunkedUpload = defineRestOperation({
|
|
23
|
-
id: "docusign.add-part-to-chunked-upload",
|
|
24
|
-
slug: "DOCUSIGN_ADD_PART_TO_CHUNKED_UPLOAD",
|
|
25
|
-
name: "Add Part To Chunked Upload",
|
|
26
|
-
description: "Append a part (sequential chunk) to an ongoing chunked upload.",
|
|
27
|
-
needsApproval: true,
|
|
28
|
-
method: "PUT",
|
|
29
|
-
path: (ctx) => `/chunked_uploads/${ctx.encode(String(ctx.input.chunkedUploadId))}/${ctx.encode(String(ctx.input.chunkedUploadPartSeq))}`,
|
|
30
|
-
input: chunkedId.extend({
|
|
31
|
-
chunkedUploadPartSeq: z.union([z.string(), z.number().int().nonnegative()]),
|
|
32
|
-
data: z.string().min(1)
|
|
33
|
-
}),
|
|
34
|
-
output: docusignGenericObjectSchema,
|
|
35
|
-
body: (input) => ({ data: input.data })
|
|
36
|
-
});
|
|
37
|
-
const commitChunkedUploadForEnvelopes = defineRestOperation({
|
|
38
|
-
id: "docusign.commit-chunked-upload-for-envelopes",
|
|
39
|
-
slug: "DOCUSIGN_COMMIT_CHUNKED_UPLOAD_FOR_ENVELOPES",
|
|
40
|
-
name: "Commit Chunked Upload For Envelopes",
|
|
41
|
-
description: "Commit a completed chunked upload so envelopes can reference it.",
|
|
42
|
-
needsApproval: true,
|
|
43
|
-
method: "PUT",
|
|
44
|
-
path: (ctx) => `/chunked_uploads/${ctx.encode(String(ctx.input.chunkedUploadId))}`,
|
|
45
|
-
input: chunkedId.extend({ action: z.literal("commit").optional() }),
|
|
46
|
-
output: docusignGenericObjectSchema,
|
|
47
|
-
query: () => ({ action: "commit" })
|
|
48
|
-
});
|
|
49
|
-
const deleteChunkedUpload = defineRestOperation({
|
|
50
|
-
id: "docusign.delete-chunked-upload",
|
|
51
|
-
slug: "DOCUSIGN_DELETE_CHUNKED_UPLOAD",
|
|
52
|
-
name: "Delete Chunked Upload",
|
|
53
|
-
description: "Delete an in-progress chunked upload.",
|
|
54
|
-
needsApproval: true,
|
|
55
|
-
method: "DELETE",
|
|
56
|
-
path: (ctx) => `/chunked_uploads/${ctx.encode(String(ctx.input.chunkedUploadId))}`,
|
|
57
|
-
input: chunkedId,
|
|
58
|
-
output: docusignSuccessSchema,
|
|
59
|
-
transformResponse: () => ({ success: true })
|
|
60
|
-
});
|
|
61
|
-
const retrieveChunkedUploadMetadata = defineRestOperation({
|
|
62
|
-
id: "docusign.retrieve-chunked-upload-metadata",
|
|
63
|
-
slug: "DOCUSIGN_RETRIEVE_CHUNKED_UPLOAD_METADATA",
|
|
64
|
-
name: "Retrieve Chunked Upload Metadata",
|
|
65
|
-
description: "Retrieve metadata for an in-progress chunked upload.",
|
|
66
|
-
method: "GET",
|
|
67
|
-
path: (ctx) => `/chunked_uploads/${ctx.encode(String(ctx.input.chunkedUploadId))}`,
|
|
68
|
-
input: chunkedId.extend({ include: z.array(z.string()).optional() }),
|
|
69
|
-
output: docusignGenericObjectSchema,
|
|
70
|
-
query: (input) => ({ include: input.include })
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
//#endregion
|
|
74
|
-
export { addPartToChunkedUpload, commitChunkedUploadForEnvelopes, deleteChunkedUpload, initiateNewChunkedUpload, retrieveChunkedUploadMetadata };
|
package/dist/click.d.mts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
|
-
|
|
5
|
-
//#region src/click.d.ts
|
|
6
|
-
declare const clickNotImplemented: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, z.ZodObject<{
|
|
7
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
8
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
9
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
10
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
11
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
12
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
13
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
14
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
15
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
16
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
17
|
-
//#endregion
|
|
18
|
-
export { clickNotImplemented };
|
package/dist/click.mjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { docusignGenericObjectSchema } from "./schemas/index.mjs";
|
|
2
|
-
import { n as definePlanGatedOperation } from "./operation-helpers-Bqp7KoLi.mjs";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
|
|
5
|
-
//#region src/click.ts
|
|
6
|
-
/**
|
|
7
|
-
* DocuSign Click (clickwrap) — plan-gated in v1.
|
|
8
|
-
*/
|
|
9
|
-
const clickNotImplemented = definePlanGatedOperation({
|
|
10
|
-
id: "docusign.click-not-implemented",
|
|
11
|
-
slug: "DOCUSIGN_CLICK_NOT_IMPLEMENTED",
|
|
12
|
-
name: "DocuSign Click (not implemented)",
|
|
13
|
-
description: "Placeholder for DocuSign Click (clickwrap) API.",
|
|
14
|
-
input: z.object({}).catchall(z.unknown()),
|
|
15
|
-
output: docusignGenericObjectSchema,
|
|
16
|
-
reason: "DocuSign Click requires `click.manage` / `click.send` scopes and a Click-licensed account."
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
//#endregion
|
|
20
|
-
export { clickNotImplemented };
|
package/dist/client.d.mts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { t as DocusignCredentials } from "./integration-CdIRNjCz.mjs";
|
|
2
|
-
|
|
3
|
-
//#region src/client.d.ts
|
|
4
|
-
type DocusignQueryValue = string | number | boolean | ReadonlyArray<string | number | boolean> | undefined;
|
|
5
|
-
type DocusignHttpMethod = 'DELETE' | 'GET' | 'PATCH' | 'POST' | 'PUT';
|
|
6
|
-
interface DocusignRequestInit {
|
|
7
|
-
readonly method?: DocusignHttpMethod;
|
|
8
|
-
readonly path: string;
|
|
9
|
-
readonly query?: Record<string, DocusignQueryValue>;
|
|
10
|
-
readonly body?: unknown;
|
|
11
|
-
readonly accept?: string;
|
|
12
|
-
readonly headers?: Record<string, string>;
|
|
13
|
-
/** Skip the `/restapi/v2.1/accounts/{accountId}` prefix (e.g. `/oauth/userinfo`). */
|
|
14
|
-
readonly accountScoped?: boolean;
|
|
15
|
-
}
|
|
16
|
-
interface DocusignMultipartPart {
|
|
17
|
-
readonly name: string;
|
|
18
|
-
readonly filename?: string;
|
|
19
|
-
readonly contentType: string;
|
|
20
|
-
readonly content: string | Uint8Array | Record<string, unknown>;
|
|
21
|
-
/** When true, the `content` is a JSON value that should be serialized. */
|
|
22
|
-
readonly serializeAsJson?: boolean;
|
|
23
|
-
}
|
|
24
|
-
interface DocusignBinaryResponse {
|
|
25
|
-
readonly body: Uint8Array;
|
|
26
|
-
readonly contentType: string | undefined;
|
|
27
|
-
readonly contentDisposition: string | undefined;
|
|
28
|
-
readonly status: number;
|
|
29
|
-
readonly headers: Record<string, string>;
|
|
30
|
-
}
|
|
31
|
-
interface DocusignClient {
|
|
32
|
-
readonly accountId: string;
|
|
33
|
-
readonly baseUri: string;
|
|
34
|
-
request<T>(init: DocusignRequestInit): Promise<T>;
|
|
35
|
-
requestBinary(init: DocusignRequestInit): Promise<DocusignBinaryResponse>;
|
|
36
|
-
requestMultipart<T>(init: Omit<DocusignRequestInit, 'body' | 'headers'> & {
|
|
37
|
-
readonly parts: readonly DocusignMultipartPart[];
|
|
38
|
-
readonly headers?: Record<string, string>;
|
|
39
|
-
}): Promise<T>;
|
|
40
|
-
listAll<T>(init: DocusignRequestInit, options: {
|
|
41
|
-
readonly items: (payload: unknown) => readonly T[];
|
|
42
|
-
}): AsyncGenerator<T, void, void>;
|
|
43
|
-
}
|
|
44
|
-
declare function createDocusignClient(credentials: DocusignCredentials): DocusignClient;
|
|
45
|
-
type DocusignClientType = ReturnType<typeof createDocusignClient>;
|
|
46
|
-
//#endregion
|
|
47
|
-
export { DocusignBinaryResponse, DocusignClient, DocusignClientType, DocusignHttpMethod, DocusignMultipartPart, DocusignQueryValue, DocusignRequestInit, createDocusignClient };
|