@keystrokehq/docusign 0.0.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.
Files changed (126) hide show
  1. package/README.md +248 -0
  2. package/dist/_official/index.d.mts +3 -0
  3. package/dist/_official/index.mjs +3 -0
  4. package/dist/_runtime/index.d.mts +1 -0
  5. package/dist/_runtime/index.mjs +1 -0
  6. package/dist/account-custom-fields.d.mts +65 -0
  7. package/dist/account-custom-fields.mjs +63 -0
  8. package/dist/account-stamps.d.mts +164 -0
  9. package/dist/account-stamps.mjs +144 -0
  10. package/dist/account-tabs.d.mts +90 -0
  11. package/dist/account-tabs.mjs +80 -0
  12. package/dist/account.d.mts +233 -0
  13. package/dist/account.mjs +207 -0
  14. package/dist/admin.d.mts +18 -0
  15. package/dist/admin.mjs +20 -0
  16. package/dist/auth.d.mts +37 -0
  17. package/dist/auth.mjs +53 -0
  18. package/dist/bcc-archive.d.mts +64 -0
  19. package/dist/bcc-archive.mjs +70 -0
  20. package/dist/billing.d.mts +217 -0
  21. package/dist/billing.mjs +208 -0
  22. package/dist/brands.d.mts +192 -0
  23. package/dist/brands.mjs +157 -0
  24. package/dist/bulk-send.d.mts +137 -0
  25. package/dist/bulk-send.mjs +115 -0
  26. package/dist/chunked-uploads.d.mts +78 -0
  27. package/dist/chunked-uploads.mjs +74 -0
  28. package/dist/click.d.mts +18 -0
  29. package/dist/click.mjs +20 -0
  30. package/dist/client.d.mts +47 -0
  31. package/dist/client.mjs +286 -0
  32. package/dist/clm.d.mts +18 -0
  33. package/dist/clm.mjs +20 -0
  34. package/dist/cloud-storage.d.mts +122 -0
  35. package/dist/cloud-storage.mjs +115 -0
  36. package/dist/connect.d.mts +252 -0
  37. package/dist/connect.mjs +217 -0
  38. package/dist/connection.d.mts +2 -0
  39. package/dist/connection.mjs +3 -0
  40. package/dist/contacts.d.mts +80 -0
  41. package/dist/contacts.mjs +79 -0
  42. package/dist/enote.d.mts +44 -0
  43. package/dist/enote.mjs +45 -0
  44. package/dist/envelope-attachments.d.mts +86 -0
  45. package/dist/envelope-attachments.mjs +76 -0
  46. package/dist/envelope-custom-fields.d.mts +166 -0
  47. package/dist/envelope-custom-fields.mjs +92 -0
  48. package/dist/envelope-documents.d.mts +271 -0
  49. package/dist/envelope-documents.mjs +219 -0
  50. package/dist/envelope-email.d.mts +65 -0
  51. package/dist/envelope-email.mjs +60 -0
  52. package/dist/envelope-lock.d.mts +65 -0
  53. package/dist/envelope-lock.mjs +60 -0
  54. package/dist/envelope-logs.d.mts +126 -0
  55. package/dist/envelope-logs.mjs +126 -0
  56. package/dist/envelope-notifications.d.mts +47 -0
  57. package/dist/envelope-notifications.mjs +44 -0
  58. package/dist/envelope-recipients.d.mts +171 -0
  59. package/dist/envelope-recipients.mjs +136 -0
  60. package/dist/envelope-tabs.d.mts +52 -0
  61. package/dist/envelope-tabs.mjs +49 -0
  62. package/dist/envelope-views.d.mts +99 -0
  63. package/dist/envelope-views.mjs +88 -0
  64. package/dist/envelope-workflow.d.mts +208 -0
  65. package/dist/envelope-workflow.mjs +176 -0
  66. package/dist/envelopes.d.mts +430 -0
  67. package/dist/envelopes.mjs +190 -0
  68. package/dist/errors.d.mts +48 -0
  69. package/dist/errors.mjs +76 -0
  70. package/dist/events.d.mts +192 -0
  71. package/dist/events.mjs +146 -0
  72. package/dist/factory-wViQTjgN.mjs +8 -0
  73. package/dist/groups.d.mts +191 -0
  74. package/dist/groups.mjs +146 -0
  75. package/dist/index.d.mts +1 -0
  76. package/dist/index.mjs +1 -0
  77. package/dist/integration-CmRztL9R.mjs +229 -0
  78. package/dist/integration-DqwHRkRh.d.mts +73 -0
  79. package/dist/messaging.d.mts +1 -0
  80. package/dist/messaging.mjs +1 -0
  81. package/dist/monitor.d.mts +18 -0
  82. package/dist/monitor.mjs +20 -0
  83. package/dist/notary.d.mts +129 -0
  84. package/dist/notary.mjs +122 -0
  85. package/dist/operation-helpers-BMTArRh9.mjs +102 -0
  86. package/dist/permission-profiles.d.mts +78 -0
  87. package/dist/permission-profiles.mjs +70 -0
  88. package/dist/power-forms.d.mts +51 -0
  89. package/dist/power-forms.mjs +62 -0
  90. package/dist/provider-app-CWp1SuI4.d.mts +88 -0
  91. package/dist/rooms.d.mts +18 -0
  92. package/dist/rooms.mjs +28 -0
  93. package/dist/schemas/index.d.mts +581 -0
  94. package/dist/schemas/index.mjs +309 -0
  95. package/dist/shared-DTUCJayR.mjs +27 -0
  96. package/dist/signing-groups.d.mts +139 -0
  97. package/dist/signing-groups.mjs +117 -0
  98. package/dist/template-custom-fields.d.mts +199 -0
  99. package/dist/template-custom-fields.mjs +107 -0
  100. package/dist/template-documents.d.mts +132 -0
  101. package/dist/template-documents.mjs +109 -0
  102. package/dist/template-lock.d.mts +65 -0
  103. package/dist/template-lock.mjs +60 -0
  104. package/dist/template-sharing.d.mts +129 -0
  105. package/dist/template-sharing.mjs +108 -0
  106. package/dist/template-workflow.d.mts +184 -0
  107. package/dist/template-workflow.mjs +152 -0
  108. package/dist/templates.d.mts +158 -0
  109. package/dist/templates.mjs +110 -0
  110. package/dist/triggers.d.mts +43 -0
  111. package/dist/triggers.mjs +91 -0
  112. package/dist/user-authorizations.d.mts +129 -0
  113. package/dist/user-authorizations.mjs +133 -0
  114. package/dist/user-custom-settings.d.mts +81 -0
  115. package/dist/user-custom-settings.mjs +69 -0
  116. package/dist/user-profile.d.mts +109 -0
  117. package/dist/user-profile.mjs +106 -0
  118. package/dist/user-signatures.d.mts +208 -0
  119. package/dist/user-signatures.mjs +180 -0
  120. package/dist/users.d.mts +128 -0
  121. package/dist/users.mjs +98 -0
  122. package/dist/verification.d.mts +19 -0
  123. package/dist/verification.mjs +59 -0
  124. package/dist/workspaces.d.mts +173 -0
  125. package/dist/workspaces.mjs +143 -0
  126. package/package.json +291 -0
@@ -0,0 +1,157 @@
1
+ import { docusignBrandListSchema, docusignGenericObjectSchema, docusignLooseObjectSchema, docusignSuccessSchema } from "./schemas/index.mjs";
2
+ import { r as defineRestOperation, t as defineBinaryOperation } from "./operation-helpers-BMTArRh9.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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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 };
@@ -0,0 +1,137 @@
1
+ import { z } from "zod";
2
+ import * as _keystrokehq_core0 from "@keystrokehq/core";
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
+ resend: "resend";
46
+ correct: "correct";
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 };
@@ -0,0 +1,115 @@
1
+ import { docusignBulkSendBatchSchema, docusignBulkSendListSchema, docusignGenericObjectSchema, docusignListPaginationInputSchema, docusignLooseObjectSchema, docusignSuccessSchema } from "./schemas/index.mjs";
2
+ import { r as defineRestOperation } from "./operation-helpers-BMTArRh9.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: "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: "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: "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: "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: "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: "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: "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: "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 };
@@ -0,0 +1,78 @@
1
+ import { z } from "zod";
2
+ import * as _keystrokehq_core0 from "@keystrokehq/core";
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 };
@@ -0,0 +1,74 @@
1
+ import { docusignGenericObjectSchema, docusignLooseObjectSchema, docusignSuccessSchema } from "./schemas/index.mjs";
2
+ import { r as defineRestOperation } from "./operation-helpers-BMTArRh9.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: "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: "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: "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: "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: "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 };
@@ -0,0 +1,18 @@
1
+ import { z } from "zod";
2
+ import * as _keystrokehq_core0 from "@keystrokehq/core";
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 ADDED
@@ -0,0 +1,20 @@
1
+ import { docusignGenericObjectSchema } from "./schemas/index.mjs";
2
+ import { n as definePlanGatedOperation } from "./operation-helpers-BMTArRh9.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: "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 };
@@ -0,0 +1,47 @@
1
+ import { t as DocusignCredentials } from "./integration-DqwHRkRh.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 };