@keystrokehq/docusign 0.0.15 → 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 +11 -226
- 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/brands.d.mts
DELETED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
3
|
-
|
|
4
|
-
//#region src/brands.d.ts
|
|
5
|
-
declare const createBrandProfilesForAccount: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
6
|
-
brands: z.ZodArray<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
|
-
brands: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11
|
-
brandId: z.ZodOptional<z.ZodString>;
|
|
12
|
-
brandName: z.ZodOptional<z.ZodString>;
|
|
13
|
-
brandCompany: z.ZodOptional<z.ZodString>;
|
|
14
|
-
isOverridingCompanyName: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
-
defaultBrandLanguage: z.ZodOptional<z.ZodString>;
|
|
16
|
-
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
17
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
18
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
19
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
20
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
21
|
-
}, z.core.$strip>>], undefined>;
|
|
22
|
-
declare const listBrandsForAccount: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
23
|
-
excludeDistributorBrand: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
-
includeLogos: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
-
brands: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
27
|
-
brandId: z.ZodOptional<z.ZodString>;
|
|
28
|
-
brandName: z.ZodOptional<z.ZodString>;
|
|
29
|
-
brandCompany: z.ZodOptional<z.ZodString>;
|
|
30
|
-
isOverridingCompanyName: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
-
defaultBrandLanguage: z.ZodOptional<z.ZodString>;
|
|
32
|
-
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
33
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
34
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
35
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
36
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
37
|
-
}, z.core.$strip>>], undefined>;
|
|
38
|
-
declare const retrieveAccountBrandInformation: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
39
|
-
brandId: z.ZodString;
|
|
40
|
-
include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
41
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
43
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
44
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
45
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
46
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
47
|
-
}, z.core.$strip>>], undefined>;
|
|
48
|
-
declare const updateAccountBrandSettings: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
49
|
-
brandId: z.ZodString;
|
|
50
|
-
brand: z.ZodObject<{
|
|
51
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
52
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
53
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
54
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
55
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
56
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
57
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
58
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
59
|
-
}, z.core.$strip>>], undefined>;
|
|
60
|
-
declare const deleteAccountBrand: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
61
|
-
brandId: z.ZodString;
|
|
62
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
-
success: z.ZodBoolean;
|
|
64
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
65
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
66
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
67
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
68
|
-
}, z.core.$strip>>], undefined>;
|
|
69
|
-
declare const deleteBrandProfiles: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
70
|
-
brands: z.ZodArray<z.ZodObject<{
|
|
71
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
72
|
-
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
73
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
74
|
-
success: z.ZodBoolean;
|
|
75
|
-
}, z.core.$strip>, 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 exportBrandToXmlFile: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
81
|
-
brandId: z.ZodString;
|
|
82
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
83
|
-
contentType: z.ZodOptional<z.ZodString>;
|
|
84
|
-
contentDisposition: z.ZodOptional<z.ZodString>;
|
|
85
|
-
status: z.ZodNumber;
|
|
86
|
-
body: z.ZodString;
|
|
87
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
88
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
89
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
90
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
91
|
-
}, z.core.$strip>>], undefined>;
|
|
92
|
-
declare const getBrandLogoByType: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
93
|
-
brandId: z.ZodString;
|
|
94
|
-
logoType: z.ZodEnum<{
|
|
95
|
-
email: "email";
|
|
96
|
-
primary: "primary";
|
|
97
|
-
secondary: "secondary";
|
|
98
|
-
}>;
|
|
99
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
100
|
-
contentType: z.ZodOptional<z.ZodString>;
|
|
101
|
-
contentDisposition: z.ZodOptional<z.ZodString>;
|
|
102
|
-
status: z.ZodNumber;
|
|
103
|
-
body: z.ZodString;
|
|
104
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
105
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
106
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
107
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
108
|
-
}, z.core.$strip>>], undefined>;
|
|
109
|
-
declare const deleteBrandLogoByType: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
110
|
-
brandId: z.ZodString;
|
|
111
|
-
logoType: z.ZodEnum<{
|
|
112
|
-
email: "email";
|
|
113
|
-
primary: "primary";
|
|
114
|
-
secondary: "secondary";
|
|
115
|
-
}>;
|
|
116
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
117
|
-
success: z.ZodBoolean;
|
|
118
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
119
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
120
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
121
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
122
|
-
}, z.core.$strip>>], undefined>;
|
|
123
|
-
declare const getSpecificBrandResourceFile: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
124
|
-
brandId: z.ZodString;
|
|
125
|
-
resourceContentType: z.ZodString;
|
|
126
|
-
langcode: z.ZodOptional<z.ZodString>;
|
|
127
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
128
|
-
contentType: z.ZodOptional<z.ZodString>;
|
|
129
|
-
contentDisposition: z.ZodOptional<z.ZodString>;
|
|
130
|
-
status: z.ZodNumber;
|
|
131
|
-
body: z.ZodString;
|
|
132
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
133
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
134
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
135
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
136
|
-
}, z.core.$strip>>], undefined>;
|
|
137
|
-
declare const returnBrandResourceMetadataForAccount: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
138
|
-
brandId: z.ZodString;
|
|
139
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
140
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
141
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
142
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
143
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
144
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
145
|
-
}, z.core.$strip>>], undefined>;
|
|
146
|
-
//#endregion
|
|
147
|
-
export { createBrandProfilesForAccount, deleteAccountBrand, deleteBrandLogoByType, deleteBrandProfiles, exportBrandToXmlFile, getBrandLogoByType, getSpecificBrandResourceFile, listBrandsForAccount, retrieveAccountBrandInformation, returnBrandResourceMetadataForAccount, updateAccountBrandSettings };
|
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-D25WHTo1.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,104 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
3
|
-
|
|
4
|
-
//#region src/bulk-send.d.ts
|
|
5
|
-
declare const createBulkSendRequest: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
6
|
-
bulkSendListId: z.ZodString;
|
|
7
|
-
request: 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
|
-
batchId: z.ZodOptional<z.ZodString>;
|
|
12
|
-
batchName: z.ZodOptional<z.ZodString>;
|
|
13
|
-
status: z.ZodOptional<z.ZodString>;
|
|
14
|
-
totalCount: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
15
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
16
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
17
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
18
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
19
|
-
}, z.core.$strip>>], undefined>;
|
|
20
|
-
declare const createBulkSendTestRequest: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
21
|
-
bulkSendListId: z.ZodString;
|
|
22
|
-
request: z.ZodObject<{
|
|
23
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
24
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
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 applyActionToBulkSendEnvelopes: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
33
|
-
batchId: z.ZodString;
|
|
34
|
-
action: z.ZodEnum<{
|
|
35
|
-
void: "void";
|
|
36
|
-
correct: "correct";
|
|
37
|
-
resend: "resend";
|
|
38
|
-
}>;
|
|
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<"keystroke: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>>], undefined>;
|
|
46
|
-
declare const listBulkSendBatchSummaries: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
47
|
-
startPosition: z.ZodOptional<z.ZodNumber>;
|
|
48
|
-
count: z.ZodOptional<z.ZodNumber>;
|
|
49
|
-
batchIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
50
|
-
status: z.ZodOptional<z.ZodString>;
|
|
51
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
52
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
53
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
54
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
55
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
56
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
57
|
-
}, z.core.$strip>>], undefined>;
|
|
58
|
-
declare const getBulkSendBatchStatus: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
59
|
-
batchId: z.ZodString;
|
|
60
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
-
batchId: z.ZodOptional<z.ZodString>;
|
|
62
|
-
batchName: z.ZodOptional<z.ZodString>;
|
|
63
|
-
status: z.ZodOptional<z.ZodString>;
|
|
64
|
-
totalCount: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
65
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
66
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
67
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
68
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
69
|
-
}, z.core.$strip>>], undefined>;
|
|
70
|
-
declare const getBulkSendListsInformation: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
71
|
-
bulkSendListId: z.ZodOptional<z.ZodString>;
|
|
72
|
-
name: z.ZodOptional<z.ZodString>;
|
|
73
|
-
bulkRecipients: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
74
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
75
|
-
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
76
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
77
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
78
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
79
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
80
|
-
}, z.core.$strip>>], undefined>;
|
|
81
|
-
declare const removeBulkSendList: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
82
|
-
bulkSendListId: z.ZodString;
|
|
83
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
84
|
-
success: z.ZodBoolean;
|
|
85
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
86
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
87
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
88
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
89
|
-
}, z.core.$strip>>], undefined>;
|
|
90
|
-
declare const updateBulkSendBatchName: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
91
|
-
batchId: z.ZodString;
|
|
92
|
-
batchName: z.ZodString;
|
|
93
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
94
|
-
batchId: z.ZodOptional<z.ZodString>;
|
|
95
|
-
batchName: z.ZodOptional<z.ZodString>;
|
|
96
|
-
status: z.ZodOptional<z.ZodString>;
|
|
97
|
-
totalCount: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
98
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
99
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
100
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
101
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
102
|
-
}, z.core.$strip>>], undefined>;
|
|
103
|
-
//#endregion
|
|
104
|
-
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-D25WHTo1.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,57 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
3
|
-
|
|
4
|
-
//#region src/chunked-uploads.d.ts
|
|
5
|
-
declare const initiateNewChunkedUpload: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
6
|
-
chunkedUpload: 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 addPartToChunkedUpload: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
17
|
-
chunkedUploadId: z.ZodString;
|
|
18
|
-
chunkedUploadPartSeq: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
19
|
-
data: z.ZodString;
|
|
20
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
22
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
23
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
24
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
25
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
26
|
-
}, z.core.$strip>>], undefined>;
|
|
27
|
-
declare const commitChunkedUploadForEnvelopes: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
28
|
-
chunkedUploadId: z.ZodString;
|
|
29
|
-
action: z.ZodOptional<z.ZodLiteral<"commit">>;
|
|
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<"keystroke: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>>], undefined>;
|
|
37
|
-
declare const deleteChunkedUpload: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
38
|
-
chunkedUploadId: z.ZodString;
|
|
39
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
-
success: z.ZodBoolean;
|
|
41
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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>>], undefined>;
|
|
46
|
-
declare const retrieveChunkedUploadMetadata: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
47
|
-
chunkedUploadId: z.ZodString;
|
|
48
|
-
include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
49
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
50
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
51
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
52
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
53
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
54
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
55
|
-
}, z.core.$strip>>], undefined>;
|
|
56
|
-
//#endregion
|
|
57
|
-
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-D25WHTo1.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,13 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
3
|
-
|
|
4
|
-
//#region src/click.d.ts
|
|
5
|
-
declare const clickNotImplemented: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$catchall<z.ZodUnknown>>, z.ZodObject<{
|
|
6
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
7
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
8
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
9
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
10
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
11
|
-
}, z.core.$strip>>], undefined>;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { clickNotImplemented };
|