@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,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/monitor.ts
6
+ /**
7
+ * DocuSign Monitor — plan-gated in v1.
8
+ */
9
+ const monitorNotImplemented = definePlanGatedOperation({
10
+ id: "monitor_not_implemented",
11
+ slug: "DOCUSIGN_MONITOR_NOT_IMPLEMENTED",
12
+ name: "DocuSign Monitor (not implemented)",
13
+ description: "Placeholder for DocuSign Monitor (security event stream).",
14
+ input: z.object({}).catchall(z.unknown()),
15
+ output: docusignGenericObjectSchema,
16
+ reason: "DocuSign Monitor requires a dedicated Monitor license and a separate host (`https://lens.docusign.net`)."
17
+ });
18
+
19
+ //#endregion
20
+ export { monitorNotImplemented };
@@ -0,0 +1,129 @@
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/notary.d.ts
6
+ declare const registerCurrentUserAsNotary: _keystrokehq_core0.Operation<z.ZodObject<{
7
+ notary: 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 getNotaryUserSettings: _keystrokehq_core0.Operation<z.ZodObject<{
22
+ includeJurisdictions: z.ZodOptional<z.ZodBoolean>;
23
+ }, z.core.$strip>, z.ZodObject<{
24
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
25
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
26
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
27
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
28
+ DOCUSIGN_BASE_URI: z.ZodURL;
29
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
30
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
31
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
32
+ DOCUSIGN_BASE_URI: z.ZodURL;
33
+ }, z.core.$strip>>[] | undefined>], undefined>;
34
+ declare const updateUserNotaryInformation: _keystrokehq_core0.Operation<z.ZodObject<{
35
+ notary: z.ZodObject<{
36
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
37
+ }, z.core.$catchall<z.ZodUnknown>>;
38
+ }, 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 createNotaryJurisdictionObject: _keystrokehq_core0.Operation<z.ZodObject<{
50
+ jurisdiction: 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 getNotaryJurisdictionObject: _keystrokehq_core0.Operation<z.ZodObject<{
65
+ jurisdictionId: 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
+ declare const getNotaryJurisdictionsForUser: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
78
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
79
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
80
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
81
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
82
+ DOCUSIGN_BASE_URI: z.ZodURL;
83
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
84
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
85
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
86
+ DOCUSIGN_BASE_URI: z.ZodURL;
87
+ }, z.core.$strip>>[] | undefined>], undefined>;
88
+ declare const updateNotaryJurisdictionInfo: _keystrokehq_core0.Operation<z.ZodObject<{
89
+ jurisdictionId: z.ZodString;
90
+ jurisdiction: z.ZodObject<{
91
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
92
+ }, z.core.$catchall<z.ZodUnknown>>;
93
+ }, z.core.$strip>, z.ZodObject<{
94
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
95
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
96
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
97
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
98
+ DOCUSIGN_BASE_URI: z.ZodURL;
99
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
100
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
101
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
102
+ DOCUSIGN_BASE_URI: z.ZodURL;
103
+ }, z.core.$strip>>[] | undefined>], undefined>;
104
+ declare const deleteNotaryJurisdiction: _keystrokehq_core0.Operation<z.ZodObject<{
105
+ jurisdictionId: z.ZodString;
106
+ }, z.core.$strip>, z.ZodObject<{
107
+ success: z.ZodBoolean;
108
+ }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
109
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
110
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
111
+ DOCUSIGN_BASE_URI: z.ZodURL;
112
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
113
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
114
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
115
+ DOCUSIGN_BASE_URI: z.ZodURL;
116
+ }, z.core.$strip>>[] | undefined>], undefined>;
117
+ declare const listRegisteredNotaryJurisdictions: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
118
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
119
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
120
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
121
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
122
+ DOCUSIGN_BASE_URI: z.ZodURL;
123
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
124
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
125
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
126
+ DOCUSIGN_BASE_URI: z.ZodURL;
127
+ }, z.core.$strip>>[] | undefined>], undefined>;
128
+ //#endregion
129
+ export { createNotaryJurisdictionObject, deleteNotaryJurisdiction, getNotaryJurisdictionObject, getNotaryJurisdictionsForUser, getNotaryUserSettings, listRegisteredNotaryJurisdictions, registerCurrentUserAsNotary, updateNotaryJurisdictionInfo, updateUserNotaryInformation };
@@ -0,0 +1,122 @@
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/notary.ts
6
+ /**
7
+ * Notary registration + jurisdictions. Covers PLAN.md § 6.38.
8
+ */
9
+ const jurisdictionId = z.object({ jurisdictionId: z.string().min(1) });
10
+ const registerCurrentUserAsNotary = defineRestOperation({
11
+ id: "register_current_user_as_notary",
12
+ slug: "DOCUSIGN_REGISTER_CURRENT_USER_AS_NOTARY",
13
+ name: "Register Current User As Notary",
14
+ description: "Register the current user as a notary.",
15
+ needsApproval: true,
16
+ method: "POST",
17
+ path: "/current_user/notary",
18
+ input: z.object({ notary: docusignLooseObjectSchema() }),
19
+ output: docusignGenericObjectSchema,
20
+ body: (input) => input.notary,
21
+ accountScoped: false
22
+ });
23
+ const getNotaryUserSettings = defineRestOperation({
24
+ id: "get_notary_user_settings",
25
+ slug: "DOCUSIGN_GET_NOTARY_USER_SETTINGS",
26
+ name: "Get Notary User Settings",
27
+ description: "Retrieve notary user settings.",
28
+ method: "GET",
29
+ path: "/current_user/notary",
30
+ input: z.object({ includeJurisdictions: z.boolean().optional() }),
31
+ output: docusignGenericObjectSchema,
32
+ accountScoped: false,
33
+ query: (input) => ({ include_jurisdictions: input.includeJurisdictions })
34
+ });
35
+ const updateUserNotaryInformation = defineRestOperation({
36
+ id: "update_user_notary_information",
37
+ slug: "DOCUSIGN_UPDATE_USER_NOTARY_INFORMATION",
38
+ name: "Update Notary User Information",
39
+ description: "Update notary user information.",
40
+ needsApproval: true,
41
+ method: "PUT",
42
+ path: "/current_user/notary",
43
+ input: z.object({ notary: docusignLooseObjectSchema() }),
44
+ output: docusignGenericObjectSchema,
45
+ body: (input) => input.notary,
46
+ accountScoped: false
47
+ });
48
+ const createNotaryJurisdictionObject = defineRestOperation({
49
+ id: "create_notary_jurisdiction_object",
50
+ slug: "DOCUSIGN_CREATE_NOTARY_JURISDICTION_OBJECT",
51
+ name: "Create Notary Jurisdiction",
52
+ description: "Add a notary jurisdiction for the current user.",
53
+ needsApproval: true,
54
+ method: "POST",
55
+ path: "/current_user/notary/jurisdictions",
56
+ input: z.object({ jurisdiction: docusignLooseObjectSchema() }),
57
+ output: docusignGenericObjectSchema,
58
+ body: (input) => input.jurisdiction,
59
+ accountScoped: false
60
+ });
61
+ const getNotaryJurisdictionObject = defineRestOperation({
62
+ id: "get_notary_jurisdiction_object",
63
+ slug: "DOCUSIGN_GET_NOTARY_JURISDICTION_OBJECT",
64
+ name: "Get Notary Jurisdiction",
65
+ description: "Retrieve a notary jurisdiction by id.",
66
+ method: "GET",
67
+ path: (ctx) => `/current_user/notary/jurisdictions/${ctx.encode(String(ctx.input.jurisdictionId))}`,
68
+ input: jurisdictionId,
69
+ output: docusignGenericObjectSchema,
70
+ accountScoped: false
71
+ });
72
+ const getNotaryJurisdictionsForUser = defineRestOperation({
73
+ id: "get_notary_jurisdictions_for_user",
74
+ slug: "DOCUSIGN_GET_NOTARY_JURISDICTIONS_FOR_USER",
75
+ name: "Get Notary Jurisdictions",
76
+ description: "List notary jurisdictions for the current user.",
77
+ method: "GET",
78
+ path: "/current_user/notary/jurisdictions",
79
+ input: z.object({}),
80
+ output: docusignGenericObjectSchema,
81
+ accountScoped: false
82
+ });
83
+ const updateNotaryJurisdictionInfo = defineRestOperation({
84
+ id: "update_notary_jurisdiction_info",
85
+ slug: "DOCUSIGN_UPDATE_NOTARY_JURISDICTION_INFO",
86
+ name: "Update Notary Jurisdiction",
87
+ description: "Update a notary jurisdiction.",
88
+ needsApproval: true,
89
+ method: "PUT",
90
+ path: (ctx) => `/current_user/notary/jurisdictions/${ctx.encode(String(ctx.input.jurisdictionId))}`,
91
+ input: jurisdictionId.extend({ jurisdiction: docusignLooseObjectSchema() }),
92
+ output: docusignGenericObjectSchema,
93
+ body: (input) => input.jurisdiction,
94
+ accountScoped: false
95
+ });
96
+ const deleteNotaryJurisdiction = defineRestOperation({
97
+ id: "delete_notary_jurisdiction",
98
+ slug: "DOCUSIGN_DELETE_NOTARY_JURISDICTION",
99
+ name: "Delete Notary Jurisdiction",
100
+ description: "Delete a notary jurisdiction.",
101
+ needsApproval: true,
102
+ method: "DELETE",
103
+ path: (ctx) => `/current_user/notary/jurisdictions/${ctx.encode(String(ctx.input.jurisdictionId))}`,
104
+ input: jurisdictionId,
105
+ output: docusignSuccessSchema,
106
+ accountScoped: false,
107
+ transformResponse: () => ({ success: true })
108
+ });
109
+ const listRegisteredNotaryJurisdictions = defineRestOperation({
110
+ id: "list_registered_notary_jurisdictions",
111
+ slug: "DOCUSIGN_LIST_REGISTERED_NOTARY_JURISDICTIONS",
112
+ name: "List Registered Notary Jurisdictions",
113
+ description: "List jurisdictions that DocuSign supports for notary work.",
114
+ method: "GET",
115
+ path: "/notary/jurisdictions",
116
+ input: z.object({}),
117
+ output: docusignGenericObjectSchema,
118
+ accountScoped: false
119
+ });
120
+
121
+ //#endregion
122
+ export { createNotaryJurisdictionObject, deleteNotaryJurisdiction, getNotaryJurisdictionObject, getNotaryJurisdictionsForUser, getNotaryUserSettings, listRegisteredNotaryJurisdictions, registerCurrentUserAsNotary, updateNotaryJurisdictionInfo, updateUserNotaryInformation };
@@ -0,0 +1,102 @@
1
+ import { DocusignApiError } from "./errors.mjs";
2
+ import { n as omitUndefined, t as encodeDocusignPathSegment } from "./shared-DTUCJayR.mjs";
3
+ import { createDocusignClient } from "./client.mjs";
4
+ import { t as docusignOperation } from "./factory-wViQTjgN.mjs";
5
+
6
+ //#region src/operation-helpers.ts
7
+ function defineRestOperation(config) {
8
+ const op = docusignOperation({
9
+ id: config.id,
10
+ name: config.name,
11
+ description: config.description,
12
+ input: config.input,
13
+ output: config.output,
14
+ needsApproval: config.needsApproval,
15
+ run: async (input, credentials) => {
16
+ const client = createDocusignClient(credentials);
17
+ const path = resolvePath(config.path, input);
18
+ const response = await client.request({
19
+ method: config.method,
20
+ path,
21
+ query: normalizeQuery(config.query?.(input)),
22
+ body: config.body?.(input),
23
+ accept: config.accept,
24
+ accountScoped: config.accountScoped
25
+ });
26
+ const transformed = config.transformResponse ? config.transformResponse(response, input) : response;
27
+ return config.output.parse(transformed);
28
+ }
29
+ });
30
+ markSlug(op, config.slug);
31
+ return op;
32
+ }
33
+ function defineBinaryOperation(config) {
34
+ const op = docusignOperation({
35
+ id: config.id,
36
+ name: config.name,
37
+ description: config.description,
38
+ input: config.input,
39
+ output: config.output,
40
+ run: async (input, credentials) => {
41
+ const client = createDocusignClient(credentials);
42
+ const path = resolvePath(config.path, input);
43
+ const response = await client.requestBinary({
44
+ method: config.method,
45
+ path,
46
+ query: normalizeQuery(config.query?.(input)),
47
+ body: config.body?.(input),
48
+ accept: config.accept,
49
+ accountScoped: config.accountScoped
50
+ });
51
+ const parsed = {
52
+ contentType: response.contentType,
53
+ contentDisposition: response.contentDisposition,
54
+ status: response.status,
55
+ body: base64FromBytes(response.body)
56
+ };
57
+ return config.output.parse(parsed);
58
+ }
59
+ });
60
+ markSlug(op, config.slug);
61
+ return op;
62
+ }
63
+ function definePlanGatedOperation(config) {
64
+ const op = docusignOperation({
65
+ id: config.id,
66
+ name: config.name,
67
+ description: config.description,
68
+ input: config.input,
69
+ output: config.output,
70
+ needsApproval: config.needsApproval,
71
+ run: async () => {
72
+ throw DocusignApiError.notImplemented({
73
+ slug: config.slug,
74
+ reason: config.reason,
75
+ kind: config.kind ?? "plan_gated"
76
+ });
77
+ }
78
+ });
79
+ markSlug(op, config.slug);
80
+ return op;
81
+ }
82
+ function resolvePath(path, input) {
83
+ if (typeof path === "string") return path;
84
+ return path({
85
+ input,
86
+ encode: encodeDocusignPathSegment
87
+ });
88
+ }
89
+ function normalizeQuery(query) {
90
+ if (!query) return void 0;
91
+ return omitUndefined(query);
92
+ }
93
+ function base64FromBytes(bytes) {
94
+ return Buffer.from(bytes).toString("base64");
95
+ }
96
+ const slugRegistry = /* @__PURE__ */ new WeakMap();
97
+ function markSlug(op, slug) {
98
+ slugRegistry.set(op, slug);
99
+ }
100
+
101
+ //#endregion
102
+ export { definePlanGatedOperation as n, defineRestOperation as r, defineBinaryOperation as t };
@@ -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/permission-profiles.d.ts
6
+ declare const createNewAccountPermissionProfile: _keystrokehq_core0.Operation<z.ZodObject<{
7
+ profile: 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 getListOfAccountPermissionProfiles: _keystrokehq_core0.Operation<z.ZodObject<{
22
+ include: z.ZodOptional<z.ZodArray<z.ZodString>>;
23
+ }, z.core.$strip>, z.ZodObject<{
24
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
25
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
26
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
27
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
28
+ DOCUSIGN_BASE_URI: z.ZodURL;
29
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
30
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
31
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
32
+ DOCUSIGN_BASE_URI: z.ZodURL;
33
+ }, z.core.$strip>>[] | undefined>], undefined>;
34
+ declare const getPermissionProfileForAccount: _keystrokehq_core0.Operation<z.ZodObject<{
35
+ permissionProfileId: z.ZodString;
36
+ include: z.ZodOptional<z.ZodArray<z.ZodString>>;
37
+ }, z.core.$strip>, z.ZodObject<{
38
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
39
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
40
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
41
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
42
+ DOCUSIGN_BASE_URI: z.ZodURL;
43
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<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>], undefined>;
48
+ declare const updatePermissionProfileSettings: _keystrokehq_core0.Operation<z.ZodObject<{
49
+ permissionProfileId: z.ZodString;
50
+ profile: 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 deleteAccountPermissionProfile: _keystrokehq_core0.Operation<z.ZodObject<{
65
+ permissionProfileId: z.ZodString;
66
+ }, z.core.$strip>, z.ZodObject<{
67
+ success: z.ZodBoolean;
68
+ }, z.core.$strip>, 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 { createNewAccountPermissionProfile, deleteAccountPermissionProfile, getListOfAccountPermissionProfiles, getPermissionProfileForAccount, updatePermissionProfileSettings };
@@ -0,0 +1,70 @@
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/permission-profiles.ts
6
+ /**
7
+ * Permission profiles. Covers PLAN.md § 6.29.
8
+ */
9
+ const permissionProfileId = z.object({ permissionProfileId: z.string().min(1) });
10
+ const createNewAccountPermissionProfile = defineRestOperation({
11
+ id: "create_new_account_permission_profile",
12
+ slug: "DOCUSIGN_CREATE_NEW_ACCOUNT_PERMISSION_PROFILE",
13
+ name: "Create Permission Profile",
14
+ description: "Create a new permission profile on the account.",
15
+ needsApproval: true,
16
+ method: "POST",
17
+ path: "/permission_profiles",
18
+ input: z.object({ profile: docusignLooseObjectSchema() }),
19
+ output: docusignGenericObjectSchema,
20
+ body: (input) => input.profile
21
+ });
22
+ const getListOfAccountPermissionProfiles = defineRestOperation({
23
+ id: "get_list_of_account_permission_profiles",
24
+ slug: "DOCUSIGN_GET_LIST_OF_ACCOUNT_PERMISSION_PROFILES",
25
+ name: "List Permission Profiles",
26
+ description: "List permission profiles on the account.",
27
+ method: "GET",
28
+ path: "/permission_profiles",
29
+ input: z.object({ include: z.array(z.string()).optional() }),
30
+ output: docusignGenericObjectSchema,
31
+ query: (input) => ({ include: input.include })
32
+ });
33
+ const getPermissionProfileForAccount = defineRestOperation({
34
+ id: "get_permission_profile_for_account",
35
+ slug: "DOCUSIGN_GET_PERMISSION_PROFILE_FOR_ACCOUNT",
36
+ name: "Get Permission Profile",
37
+ description: "Retrieve a single permission profile by id.",
38
+ method: "GET",
39
+ path: (ctx) => `/permission_profiles/${ctx.encode(String(ctx.input.permissionProfileId))}`,
40
+ input: permissionProfileId.extend({ include: z.array(z.string()).optional() }),
41
+ output: docusignGenericObjectSchema,
42
+ query: (input) => ({ include: input.include })
43
+ });
44
+ const updatePermissionProfileSettings = defineRestOperation({
45
+ id: "update_permission_profile_settings",
46
+ slug: "DOCUSIGN_UPDATE_PERMISSION_PROFILE_SETTINGS",
47
+ name: "Update Permission Profile Settings",
48
+ description: "Update a permission profile.",
49
+ needsApproval: true,
50
+ method: "PUT",
51
+ path: (ctx) => `/permission_profiles/${ctx.encode(String(ctx.input.permissionProfileId))}`,
52
+ input: permissionProfileId.extend({ profile: docusignLooseObjectSchema() }),
53
+ output: docusignGenericObjectSchema,
54
+ body: (input) => input.profile
55
+ });
56
+ const deleteAccountPermissionProfile = defineRestOperation({
57
+ id: "delete_account_permission_profile",
58
+ slug: "DOCUSIGN_DELETE_ACCOUNT_PERMISSION_PROFILE",
59
+ name: "Delete Permission Profile",
60
+ description: "Delete a permission profile.",
61
+ needsApproval: true,
62
+ method: "DELETE",
63
+ path: (ctx) => `/permission_profiles/${ctx.encode(String(ctx.input.permissionProfileId))}`,
64
+ input: permissionProfileId,
65
+ output: docusignSuccessSchema,
66
+ transformResponse: () => ({ success: true })
67
+ });
68
+
69
+ //#endregion
70
+ export { createNewAccountPermissionProfile, deleteAccountPermissionProfile, getListOfAccountPermissionProfiles, getPermissionProfileForAccount, updatePermissionProfileSettings };
@@ -0,0 +1,51 @@
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/power-forms.d.ts
6
+ declare const getPowerFormSenders: _keystrokehq_core0.Operation<z.ZodObject<{
7
+ startPosition: z.ZodOptional<z.ZodNumber>;
8
+ count: z.ZodOptional<z.ZodNumber>;
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<"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>, readonly _keystrokehq_core_credential_set0.CredentialConnection<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>], undefined>;
20
+ declare const retrievePowerFormDataEntries: _keystrokehq_core0.Operation<z.ZodObject<{
21
+ powerFormId: z.ZodString;
22
+ fromDate: z.ZodOptional<z.ZodString>;
23
+ toDate: z.ZodOptional<z.ZodString>;
24
+ dataLayout: z.ZodOptional<z.ZodString>;
25
+ status: z.ZodOptional<z.ZodString>;
26
+ }, z.core.$strip>, z.ZodObject<{
27
+ [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
28
+ }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
29
+ DOCUSIGN_ACCESS_TOKEN: z.ZodString;
30
+ DOCUSIGN_ACCOUNT_ID: z.ZodString;
31
+ DOCUSIGN_BASE_URI: z.ZodURL;
32
+ }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<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>], undefined>;
37
+ declare const deletePowerFormById: _keystrokehq_core0.Operation<z.ZodObject<{
38
+ powerFormId: z.ZodString;
39
+ }, z.core.$strip>, z.ZodObject<{
40
+ success: z.ZodBoolean;
41
+ }, z.core.$strip>, 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
+ //#endregion
51
+ export { deletePowerFormById, getPowerFormSenders, retrievePowerFormDataEntries };
@@ -0,0 +1,62 @@
1
+ import { docusignGenericObjectSchema, docusignSuccessSchema } from "./schemas/index.mjs";
2
+ import { r as defineRestOperation } from "./operation-helpers-BMTArRh9.mjs";
3
+ import { z } from "zod";
4
+
5
+ //#region src/power-forms.ts
6
+ /**
7
+ * Power forms. Covers PLAN.md § 6.19.
8
+ */
9
+ const powerFormId = z.object({ powerFormId: z.string().min(1) });
10
+ const getPowerFormSenders = defineRestOperation({
11
+ id: "get_power_form_senders",
12
+ slug: "DOCUSIGN_GET_POWER_FORM_SENDERS",
13
+ name: "Get PowerForm Senders",
14
+ description: "List users authorized to send the configured PowerForms.",
15
+ method: "GET",
16
+ path: "/powerforms/senders",
17
+ input: z.object({
18
+ startPosition: z.number().int().nonnegative().optional(),
19
+ count: z.number().int().positive().optional()
20
+ }),
21
+ output: docusignGenericObjectSchema,
22
+ query: (input) => ({
23
+ start_position: input.startPosition,
24
+ count: input.count
25
+ })
26
+ });
27
+ const retrievePowerFormDataEntries = defineRestOperation({
28
+ id: "retrieve_power_form_data_entries",
29
+ slug: "DOCUSIGN_RETRIEVE_POWER_FORM_DATA_ENTRIES",
30
+ name: "Retrieve PowerForm Data Entries",
31
+ description: "Retrieve data entries submitted via a PowerForm.",
32
+ method: "GET",
33
+ path: (ctx) => `/powerforms/${ctx.encode(String(ctx.input.powerFormId))}/form_data`,
34
+ input: powerFormId.extend({
35
+ fromDate: z.string().optional(),
36
+ toDate: z.string().optional(),
37
+ dataLayout: z.string().optional(),
38
+ status: z.string().optional()
39
+ }),
40
+ output: docusignGenericObjectSchema,
41
+ query: (input) => ({
42
+ from_date: input.fromDate,
43
+ to_date: input.toDate,
44
+ data_layout: input.dataLayout,
45
+ status: input.status
46
+ })
47
+ });
48
+ const deletePowerFormById = defineRestOperation({
49
+ id: "delete_power_form_by_id",
50
+ slug: "DOCUSIGN_DELETE_POWER_FORM_BY_ID",
51
+ name: "Delete PowerForm By Id",
52
+ description: "Delete a single PowerForm.",
53
+ needsApproval: true,
54
+ method: "DELETE",
55
+ path: (ctx) => `/powerforms/${ctx.encode(String(ctx.input.powerFormId))}`,
56
+ input: powerFormId,
57
+ output: docusignSuccessSchema,
58
+ transformResponse: () => ({ success: true })
59
+ });
60
+
61
+ //#endregion
62
+ export { deletePowerFormById, getPowerFormSenders, retrievePowerFormDataEntries };