@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,144 @@
1
+ import { 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/account-stamps.ts
6
+ /**
7
+ * Account stamps + watermark. Covers PLAN.md § 6.34.
8
+ */
9
+ const stampId = z.object({ stampId: z.string().min(1) });
10
+ const binaryResponseSchema = docusignLooseObjectSchema({
11
+ contentType: z.string().optional(),
12
+ contentDisposition: z.string().optional(),
13
+ status: z.number(),
14
+ body: z.string()
15
+ });
16
+ const addOrUpdateAccountStamps = defineRestOperation({
17
+ id: "add_or_update_account_stamps",
18
+ slug: "DOCUSIGN_ADD_OR_UPDATE_ACCOUNT_STAMPS",
19
+ name: "Add Or Update Account Stamps",
20
+ description: "Add or update account stamp configurations.",
21
+ needsApproval: true,
22
+ method: "PUT",
23
+ path: "/stamps",
24
+ input: z.object({ stamps: z.array(docusignLooseObjectSchema()).min(1) }),
25
+ output: docusignGenericObjectSchema,
26
+ body: (input) => ({ stamps: input.stamps })
27
+ });
28
+ const retrieveAvailableAccountStamps = defineRestOperation({
29
+ id: "retrieve_available_account_stamps",
30
+ slug: "DOCUSIGN_RETRIEVE_AVAILABLE_ACCOUNT_STAMPS",
31
+ name: "Retrieve Available Account Stamps",
32
+ description: "Retrieve the available account stamps.",
33
+ method: "GET",
34
+ path: "/stamps",
35
+ input: z.object({ status: z.string().optional() }),
36
+ output: docusignGenericObjectSchema,
37
+ query: (input) => ({ status: input.status })
38
+ });
39
+ const getSpecifiedAccountStampInfo = defineRestOperation({
40
+ id: "get_specified_account_stamp_info",
41
+ slug: "DOCUSIGN_GET_SPECIFIED_ACCOUNT_STAMP_INFO",
42
+ name: "Get Account Stamp Info",
43
+ description: "Retrieve metadata for a specific account stamp.",
44
+ method: "GET",
45
+ path: (ctx) => `/stamps/${ctx.encode(String(ctx.input.stampId))}`,
46
+ input: stampId,
47
+ output: docusignGenericObjectSchema
48
+ });
49
+ const getAccountStampImage = defineBinaryOperation({
50
+ id: "get_account_stamp_image",
51
+ slug: "DOCUSIGN_GET_ACCOUNT_STAMP_IMAGE",
52
+ name: "Get Account Stamp Image",
53
+ description: "Download the image for an account stamp.",
54
+ method: "GET",
55
+ path: (ctx) => `/stamps/${ctx.encode(String(ctx.input.stampId))}/${ctx.encode(String(ctx.input.stampFormat ?? "image"))}`,
56
+ input: stampId.extend({ stampFormat: z.string().optional() }),
57
+ accept: "image/png",
58
+ output: binaryResponseSchema
59
+ });
60
+ const updateAccountStampById = defineRestOperation({
61
+ id: "update_account_stamp_by_id",
62
+ slug: "DOCUSIGN_UPDATE_ACCOUNT_STAMP_BY_ID",
63
+ name: "Update Account Stamp By Id",
64
+ description: "Update a specific account stamp.",
65
+ needsApproval: true,
66
+ method: "PUT",
67
+ path: (ctx) => `/stamps/${ctx.encode(String(ctx.input.stampId))}`,
68
+ input: stampId.extend({ stamp: docusignLooseObjectSchema() }),
69
+ output: docusignGenericObjectSchema,
70
+ body: (input) => input.stamp
71
+ });
72
+ const updateAccountStamps = defineRestOperation({
73
+ id: "update_account_stamps",
74
+ slug: "DOCUSIGN_UPDATE_ACCOUNT_STAMPS",
75
+ name: "Update Account Stamps",
76
+ description: "Batch update account stamps.",
77
+ needsApproval: true,
78
+ method: "POST",
79
+ path: "/stamps",
80
+ input: z.object({ stamps: z.array(docusignLooseObjectSchema()).min(1) }),
81
+ output: docusignGenericObjectSchema,
82
+ body: (input) => ({ stamps: input.stamps })
83
+ });
84
+ const deleteAccountStamp = defineRestOperation({
85
+ id: "delete_account_stamp",
86
+ slug: "DOCUSIGN_DELETE_ACCOUNT_STAMP",
87
+ name: "Delete Account Stamp",
88
+ description: "Delete a single account stamp.",
89
+ needsApproval: true,
90
+ method: "DELETE",
91
+ path: (ctx) => `/stamps/${ctx.encode(String(ctx.input.stampId))}`,
92
+ input: stampId,
93
+ output: docusignSuccessSchema,
94
+ transformResponse: () => ({ success: true })
95
+ });
96
+ const deleteStampImageForAccount = defineRestOperation({
97
+ id: "delete_stamp_image_for_account",
98
+ slug: "DOCUSIGN_DELETE_STAMP_IMAGE_FOR_ACCOUNT",
99
+ name: "Delete Stamp Image",
100
+ description: "Delete the image for an account stamp.",
101
+ needsApproval: true,
102
+ method: "DELETE",
103
+ path: (ctx) => `/stamps/${ctx.encode(String(ctx.input.stampId))}/${ctx.encode(String(ctx.input.stampFormat ?? "image"))}`,
104
+ input: stampId.extend({ stampFormat: z.string().optional() }),
105
+ output: docusignSuccessSchema,
106
+ transformResponse: () => ({ success: true })
107
+ });
108
+ const getWatermarkDetailsForAccount = defineRestOperation({
109
+ id: "get_watermark_details_for_account",
110
+ slug: "DOCUSIGN_GET_WATERMARK_DETAILS_FOR_ACCOUNT",
111
+ name: "Get Watermark Details",
112
+ description: "Retrieve watermark details for the account.",
113
+ method: "GET",
114
+ path: "/watermark",
115
+ input: z.object({}),
116
+ output: docusignGenericObjectSchema
117
+ });
118
+ const updateAccountWatermarkInformation = defineRestOperation({
119
+ id: "update_account_watermark_information",
120
+ slug: "DOCUSIGN_UPDATE_ACCOUNT_WATERMARK_INFORMATION",
121
+ name: "Update Account Watermark",
122
+ description: "Update the account watermark.",
123
+ needsApproval: true,
124
+ method: "PUT",
125
+ path: "/watermark",
126
+ input: z.object({ watermark: docusignLooseObjectSchema() }),
127
+ output: docusignGenericObjectSchema,
128
+ body: (input) => input.watermark
129
+ });
130
+ const updateAccountWatermarkPreview = defineRestOperation({
131
+ id: "update_account_watermark_preview",
132
+ slug: "DOCUSIGN_UPDATE_ACCOUNT_WATERMARK_PREVIEW",
133
+ name: "Update Account Watermark Preview",
134
+ description: "Preview a watermark update.",
135
+ needsApproval: true,
136
+ method: "PUT",
137
+ path: "/watermark/preview",
138
+ input: z.object({ watermark: docusignLooseObjectSchema() }),
139
+ output: docusignGenericObjectSchema,
140
+ body: (input) => input.watermark
141
+ });
142
+
143
+ //#endregion
144
+ export { addOrUpdateAccountStamps, deleteAccountStamp, deleteStampImageForAccount, getAccountStampImage, getSpecifiedAccountStampInfo, getWatermarkDetailsForAccount, retrieveAvailableAccountStamps, updateAccountStampById, updateAccountStamps, updateAccountWatermarkInformation, updateAccountWatermarkPreview };
@@ -0,0 +1,90 @@
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/account-tabs.d.ts
6
+ declare const getTabSettingsForAccount: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, 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
+ declare const modifyTabSettingsForAccount: _keystrokehq_core0.Operation<z.ZodObject<{
18
+ tabSettings: z.ZodObject<{
19
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
20
+ }, z.core.$catchall<z.ZodUnknown>>;
21
+ }, z.core.$strip>, z.ZodObject<{
22
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
23
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
24
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
25
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
26
+ DOCUSIGN_BASE_URI: z.ZodURL;
27
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<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>], undefined>;
32
+ declare const createCustomTabWithProperties: _keystrokehq_core0.Operation<z.ZodObject<{
33
+ tab: z.ZodObject<{
34
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
35
+ }, z.core.$catchall<z.ZodUnknown>>;
36
+ }, z.core.$strip>, z.ZodObject<{
37
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
38
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
39
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
40
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
41
+ DOCUSIGN_BASE_URI: z.ZodURL;
42
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
43
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
44
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
45
+ DOCUSIGN_BASE_URI: z.ZodURL;
46
+ }, z.core.$strip>>[] | undefined>], undefined>;
47
+ declare const retrieveCustomTabInformation: _keystrokehq_core0.Operation<z.ZodObject<{
48
+ customTabId: 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<"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>, readonly _keystrokehq_core_credential_set0.CredentialConnection<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>], undefined>;
60
+ declare const updateCustomTabInformationForAccount: _keystrokehq_core0.Operation<z.ZodObject<{
61
+ customTabId: z.ZodString;
62
+ tab: z.ZodObject<{
63
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
64
+ }, z.core.$catchall<z.ZodUnknown>>;
65
+ }, z.core.$strip>, z.ZodObject<{
66
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
67
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
68
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
69
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
70
+ DOCUSIGN_BASE_URI: z.ZodURL;
71
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
72
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
73
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
74
+ DOCUSIGN_BASE_URI: z.ZodURL;
75
+ }, z.core.$strip>>[] | undefined>], undefined>;
76
+ declare const deleteCustomTabInformation: _keystrokehq_core0.Operation<z.ZodObject<{
77
+ customTabId: z.ZodString;
78
+ }, z.core.$strip>, z.ZodObject<{
79
+ success: z.ZodBoolean;
80
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
81
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
82
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
83
+ DOCUSIGN_BASE_URI: z.ZodURL;
84
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
85
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
86
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
87
+ DOCUSIGN_BASE_URI: z.ZodURL;
88
+ }, z.core.$strip>>[] | undefined>], undefined>;
89
+ //#endregion
90
+ export { createCustomTabWithProperties, deleteCustomTabInformation, getTabSettingsForAccount, modifyTabSettingsForAccount, retrieveCustomTabInformation, updateCustomTabInformationForAccount };
@@ -0,0 +1,80 @@
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/account-tabs.ts
6
+ /**
7
+ * Account tabs + custom tabs. Covers PLAN.md § 6.33.
8
+ */
9
+ const customTabId = z.object({ customTabId: z.string().min(1) });
10
+ const getTabSettingsForAccount = defineRestOperation({
11
+ id: "get_tab_settings_for_account",
12
+ slug: "DOCUSIGN_GET_TAB_SETTINGS_FOR_ACCOUNT",
13
+ name: "Get Tab Settings For Account",
14
+ description: "Retrieve tab settings for the account.",
15
+ method: "GET",
16
+ path: "/settings/tabs",
17
+ input: z.object({}),
18
+ output: docusignGenericObjectSchema
19
+ });
20
+ const modifyTabSettingsForAccount = defineRestOperation({
21
+ id: "modify_tab_settings_for_account",
22
+ slug: "DOCUSIGN_MODIFY_TAB_SETTINGS_FOR_ACCOUNT",
23
+ name: "Modify Tab Settings",
24
+ description: "Update tab settings for the account.",
25
+ needsApproval: true,
26
+ method: "PUT",
27
+ path: "/settings/tabs",
28
+ input: z.object({ tabSettings: docusignLooseObjectSchema() }),
29
+ output: docusignGenericObjectSchema,
30
+ body: (input) => input.tabSettings
31
+ });
32
+ const createCustomTabWithProperties = defineRestOperation({
33
+ id: "create_custom_tab_with_properties",
34
+ slug: "DOCUSIGN_CREATE_CUSTOM_TAB_WITH_PROPERTIES",
35
+ name: "Create Custom Tab",
36
+ description: "Create a custom tab on the account.",
37
+ needsApproval: true,
38
+ method: "POST",
39
+ path: "/tab_definitions",
40
+ input: z.object({ tab: docusignLooseObjectSchema() }),
41
+ output: docusignGenericObjectSchema,
42
+ body: (input) => input.tab
43
+ });
44
+ const retrieveCustomTabInformation = defineRestOperation({
45
+ id: "retrieve_custom_tab_information",
46
+ slug: "DOCUSIGN_RETRIEVE_CUSTOM_TAB_INFORMATION",
47
+ name: "Retrieve Custom Tab Information",
48
+ description: "Retrieve information for a specific custom tab definition.",
49
+ method: "GET",
50
+ path: (ctx) => `/tab_definitions/${ctx.encode(String(ctx.input.customTabId))}`,
51
+ input: customTabId,
52
+ output: docusignGenericObjectSchema
53
+ });
54
+ const updateCustomTabInformationForAccount = defineRestOperation({
55
+ id: "update_custom_tab_information_for_account",
56
+ slug: "DOCUSIGN_UPDATE_CUSTOM_TAB_INFORMATION_FOR_ACCOUNT",
57
+ name: "Update Custom Tab Information",
58
+ description: "Update a custom tab definition.",
59
+ needsApproval: true,
60
+ method: "PUT",
61
+ path: (ctx) => `/tab_definitions/${ctx.encode(String(ctx.input.customTabId))}`,
62
+ input: customTabId.extend({ tab: docusignLooseObjectSchema() }),
63
+ output: docusignGenericObjectSchema,
64
+ body: (input) => input.tab
65
+ });
66
+ const deleteCustomTabInformation = defineRestOperation({
67
+ id: "delete_custom_tab_information",
68
+ slug: "DOCUSIGN_DELETE_CUSTOM_TAB_INFORMATION",
69
+ name: "Delete Custom Tab Information",
70
+ description: "Delete a custom tab definition.",
71
+ needsApproval: true,
72
+ method: "DELETE",
73
+ path: (ctx) => `/tab_definitions/${ctx.encode(String(ctx.input.customTabId))}`,
74
+ input: customTabId,
75
+ output: docusignSuccessSchema,
76
+ transformResponse: () => ({ success: true })
77
+ });
78
+
79
+ //#endregion
80
+ export { createCustomTabWithProperties, deleteCustomTabInformation, getTabSettingsForAccount, modifyTabSettingsForAccount, retrieveCustomTabInformation, updateCustomTabInformationForAccount };
@@ -0,0 +1,233 @@
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/account.d.ts
6
+ declare const retrieveAccountInformationForSpecifiedAccount: _keystrokehq_core0.Operation<z.ZodObject<{
7
+ includeAccountSettings: z.ZodOptional<z.ZodBoolean>;
8
+ }, z.core.$strip>, z.ZodObject<{
9
+ accountIdGuid: z.ZodOptional<z.ZodString>;
10
+ accountName: z.ZodOptional<z.ZodString>;
11
+ billingPeriodEndDate: z.ZodOptional<z.ZodString>;
12
+ billingPeriodEnvelopesAllowed: z.ZodOptional<z.ZodString>;
13
+ billingPeriodEnvelopesSent: z.ZodOptional<z.ZodString>;
14
+ planClassification: z.ZodOptional<z.ZodString>;
15
+ planName: z.ZodOptional<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 deleteSpecifiedAccount: _keystrokehq_core0.Operation<z.ZodObject<{
26
+ redactUserData: z.ZodOptional<z.ZodBoolean>;
27
+ }, z.core.$strip>, z.ZodObject<{
28
+ success: z.ZodBoolean;
29
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
30
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
31
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
32
+ DOCUSIGN_BASE_URI: z.ZodURL;
33
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<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>], undefined>;
38
+ declare const retrieveAccountSettingsInformation: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
39
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
40
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
41
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
42
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
43
+ DOCUSIGN_BASE_URI: z.ZodURL;
44
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
45
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
46
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
47
+ DOCUSIGN_BASE_URI: z.ZodURL;
48
+ }, z.core.$strip>>[] | undefined>], undefined>;
49
+ declare const updateAccountSettings: _keystrokehq_core0.Operation<z.ZodObject<{
50
+ accountSettings: 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<"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>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
60
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
61
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
62
+ DOCUSIGN_BASE_URI: z.ZodURL;
63
+ }, z.core.$strip>>[] | undefined>], undefined>;
64
+ declare const getAccountPasswordRules: _keystrokehq_core0.Operation<z.ZodObject<{}, 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 retrieveAccountPasswordRules: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
76
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
77
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
78
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
79
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
80
+ DOCUSIGN_BASE_URI: z.ZodURL;
81
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
82
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
83
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
84
+ DOCUSIGN_BASE_URI: z.ZodURL;
85
+ }, z.core.$strip>>[] | undefined>], undefined>;
86
+ declare const updateAccountPasswordRules: _keystrokehq_core0.Operation<z.ZodObject<{
87
+ passwordRules: z.ZodObject<{
88
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
89
+ }, z.core.$catchall<z.ZodUnknown>>;
90
+ }, z.core.$strip>, z.ZodObject<{
91
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
92
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
93
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
94
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
95
+ DOCUSIGN_BASE_URI: z.ZodURL;
96
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
97
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
98
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
99
+ DOCUSIGN_BASE_URI: z.ZodURL;
100
+ }, z.core.$strip>>[] | undefined>], undefined>;
101
+ declare const retrieveAccountProvisioningInfo: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
102
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
103
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
104
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
105
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
106
+ DOCUSIGN_BASE_URI: z.ZodURL;
107
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
108
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
109
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
110
+ DOCUSIGN_BASE_URI: z.ZodURL;
111
+ }, z.core.$strip>>[] | undefined>], undefined>;
112
+ declare const retrieveAccountSealProviders: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
113
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
114
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
115
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
116
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
117
+ DOCUSIGN_BASE_URI: z.ZodURL;
118
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<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>], undefined>;
123
+ declare const retrieveAccountEnvelopePurgeConfig: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
124
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
125
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
126
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
127
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
128
+ DOCUSIGN_BASE_URI: z.ZodURL;
129
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
130
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
131
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
132
+ DOCUSIGN_BASE_URI: z.ZodURL;
133
+ }, z.core.$strip>>[] | undefined>], undefined>;
134
+ declare const setEnvelopePurgeConfigForAccount: _keystrokehq_core0.Operation<z.ZodObject<{
135
+ config: z.ZodObject<{
136
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
137
+ }, z.core.$catchall<z.ZodUnknown>>;
138
+ }, z.core.$strip>, z.ZodObject<{
139
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
140
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
141
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
142
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
143
+ DOCUSIGN_BASE_URI: z.ZodURL;
144
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
145
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
146
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
147
+ DOCUSIGN_BASE_URI: z.ZodURL;
148
+ }, z.core.$strip>>[] | undefined>], undefined>;
149
+ declare const retrieveAccountVerificationWorkflows: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
150
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
151
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
152
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
153
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
154
+ DOCUSIGN_BASE_URI: z.ZodURL;
155
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
156
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
157
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
158
+ DOCUSIGN_BASE_URI: z.ZodURL;
159
+ }, z.core.$strip>>[] | undefined>], undefined>;
160
+ declare const listSignatureProvidersForAccount: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
161
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
162
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
163
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
164
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
165
+ DOCUSIGN_BASE_URI: z.ZodURL;
166
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
167
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
168
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
169
+ DOCUSIGN_BASE_URI: z.ZodURL;
170
+ }, z.core.$strip>>[] | undefined>], undefined>;
171
+ declare const getSupportedLanguagesForRecipients: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
172
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
173
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
174
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
175
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
176
+ DOCUSIGN_BASE_URI: z.ZodURL;
177
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
178
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
179
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
180
+ DOCUSIGN_BASE_URI: z.ZodURL;
181
+ }, z.core.$strip>>[] | undefined>], undefined>;
182
+ declare const getUnsupportedFileTypesList: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
183
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
184
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
185
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
186
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
187
+ DOCUSIGN_BASE_URI: z.ZodURL;
188
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
189
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
190
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
191
+ DOCUSIGN_BASE_URI: z.ZodURL;
192
+ }, z.core.$strip>>[] | undefined>], undefined>;
193
+ declare const modifyAccountNotificationSettings: _keystrokehq_core0.Operation<z.ZodObject<{
194
+ notifications: z.ZodObject<{
195
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
196
+ }, z.core.$catchall<z.ZodUnknown>>;
197
+ }, z.core.$strip>, z.ZodObject<{
198
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
199
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
200
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
201
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
202
+ DOCUSIGN_BASE_URI: z.ZodURL;
203
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
204
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
205
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
206
+ DOCUSIGN_BASE_URI: z.ZodURL;
207
+ }, z.core.$strip>>[] | undefined>], undefined>;
208
+ declare const listResourcesForRestVersionSpecified: _keystrokehq_core0.Operation<z.ZodObject<{
209
+ version: z.ZodOptional<z.ZodString>;
210
+ }, z.core.$strip>, z.ZodObject<{
211
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
212
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
213
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
214
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
215
+ DOCUSIGN_BASE_URI: z.ZodURL;
216
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
217
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
218
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
219
+ DOCUSIGN_BASE_URI: z.ZodURL;
220
+ }, z.core.$strip>>[] | undefined>], undefined>;
221
+ declare const retrieveRestApiVersions: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
222
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
223
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
224
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
225
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
226
+ DOCUSIGN_BASE_URI: z.ZodURL;
227
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
228
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
229
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
230
+ DOCUSIGN_BASE_URI: z.ZodURL;
231
+ }, z.core.$strip>>[] | undefined>], undefined>;
232
+ //#endregion
233
+ export { deleteSpecifiedAccount, getAccountPasswordRules, getSupportedLanguagesForRecipients, getUnsupportedFileTypesList, listResourcesForRestVersionSpecified, listSignatureProvidersForAccount, modifyAccountNotificationSettings, retrieveAccountEnvelopePurgeConfig, retrieveAccountInformationForSpecifiedAccount, retrieveAccountPasswordRules, retrieveAccountProvisioningInfo, retrieveAccountSealProviders, retrieveAccountSettingsInformation, retrieveAccountVerificationWorkflows, retrieveRestApiVersions, setEnvelopePurgeConfigForAccount, updateAccountPasswordRules, updateAccountSettings };