@keystrokehq/docusign 0.0.11 → 0.0.16-integration-id-canonicalization.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/README.md +3 -2
  2. package/dist/credential-sets/index.d.mts +2 -0
  3. package/dist/credential-sets/index.mjs +4 -0
  4. package/dist/docusign-jwt.credential-set-B0sXS-5i.mjs +39 -0
  5. package/dist/docusign-jwt.credential-set-Bz99DTgx.d.mts +90 -0
  6. package/dist/docusign.credential-set-DRhK9ICD.mjs +183 -0
  7. package/dist/index.d.mts +4 -1
  8. package/dist/index.mjs +6 -1
  9. package/dist/operations/index.d.mts +2 -0
  10. package/dist/operations/index.mjs +3 -0
  11. package/dist/void-envelope.operation-Bim49UXq.mjs +8192 -0
  12. package/dist/void-envelope.operation-D-onxqe_.d.mts +18203 -0
  13. package/package.json +9 -225
  14. package/dist/_official/index.d.mts +0 -89
  15. package/dist/_official/index.mjs +0 -3
  16. package/dist/_runtime/index.d.mts +0 -1
  17. package/dist/_runtime/index.mjs +0 -1
  18. package/dist/account-custom-fields.d.mts +0 -65
  19. package/dist/account-custom-fields.mjs +0 -63
  20. package/dist/account-stamps.d.mts +0 -164
  21. package/dist/account-stamps.mjs +0 -144
  22. package/dist/account-tabs.d.mts +0 -90
  23. package/dist/account-tabs.mjs +0 -80
  24. package/dist/account.d.mts +0 -233
  25. package/dist/account.mjs +0 -207
  26. package/dist/admin.d.mts +0 -18
  27. package/dist/admin.mjs +0 -20
  28. package/dist/auth.d.mts +0 -37
  29. package/dist/auth.mjs +0 -53
  30. package/dist/bcc-archive.d.mts +0 -64
  31. package/dist/bcc-archive.mjs +0 -70
  32. package/dist/billing.d.mts +0 -217
  33. package/dist/billing.mjs +0 -208
  34. package/dist/brands.d.mts +0 -192
  35. package/dist/brands.mjs +0 -157
  36. package/dist/bulk-send.d.mts +0 -137
  37. package/dist/bulk-send.mjs +0 -115
  38. package/dist/chunked-uploads.d.mts +0 -78
  39. package/dist/chunked-uploads.mjs +0 -74
  40. package/dist/click.d.mts +0 -18
  41. package/dist/click.mjs +0 -20
  42. package/dist/client.d.mts +0 -47
  43. package/dist/client.mjs +0 -286
  44. package/dist/clm.d.mts +0 -18
  45. package/dist/clm.mjs +0 -20
  46. package/dist/cloud-storage.d.mts +0 -122
  47. package/dist/cloud-storage.mjs +0 -115
  48. package/dist/connect.d.mts +0 -252
  49. package/dist/connect.mjs +0 -217
  50. package/dist/connection.d.mts +0 -2
  51. package/dist/connection.mjs +0 -3
  52. package/dist/contacts.d.mts +0 -80
  53. package/dist/contacts.mjs +0 -79
  54. package/dist/enote.d.mts +0 -44
  55. package/dist/enote.mjs +0 -45
  56. package/dist/envelope-attachments.d.mts +0 -86
  57. package/dist/envelope-attachments.mjs +0 -76
  58. package/dist/envelope-custom-fields.d.mts +0 -166
  59. package/dist/envelope-custom-fields.mjs +0 -92
  60. package/dist/envelope-documents.d.mts +0 -271
  61. package/dist/envelope-documents.mjs +0 -219
  62. package/dist/envelope-email.d.mts +0 -65
  63. package/dist/envelope-email.mjs +0 -60
  64. package/dist/envelope-lock.d.mts +0 -65
  65. package/dist/envelope-lock.mjs +0 -60
  66. package/dist/envelope-logs.d.mts +0 -126
  67. package/dist/envelope-logs.mjs +0 -126
  68. package/dist/envelope-notifications.d.mts +0 -47
  69. package/dist/envelope-notifications.mjs +0 -44
  70. package/dist/envelope-recipients.d.mts +0 -171
  71. package/dist/envelope-recipients.mjs +0 -136
  72. package/dist/envelope-tabs.d.mts +0 -52
  73. package/dist/envelope-tabs.mjs +0 -49
  74. package/dist/envelope-views.d.mts +0 -99
  75. package/dist/envelope-views.mjs +0 -88
  76. package/dist/envelope-workflow.d.mts +0 -208
  77. package/dist/envelope-workflow.mjs +0 -176
  78. package/dist/envelopes.d.mts +0 -430
  79. package/dist/envelopes.mjs +0 -190
  80. package/dist/errors.d.mts +0 -48
  81. package/dist/errors.mjs +0 -76
  82. package/dist/events.d.mts +0 -192
  83. package/dist/events.mjs +0 -146
  84. package/dist/factory-DFejlPDe.mjs +0 -7
  85. package/dist/groups.d.mts +0 -191
  86. package/dist/groups.mjs +0 -146
  87. package/dist/integration-BcEp_dFX.mjs +0 -365
  88. package/dist/integration-CdIRNjCz.d.mts +0 -72
  89. package/dist/messaging.d.mts +0 -1
  90. package/dist/messaging.mjs +0 -1
  91. package/dist/monitor.d.mts +0 -18
  92. package/dist/monitor.mjs +0 -20
  93. package/dist/notary.d.mts +0 -129
  94. package/dist/notary.mjs +0 -122
  95. package/dist/operation-helpers-Bqp7KoLi.mjs +0 -102
  96. package/dist/permission-profiles.d.mts +0 -78
  97. package/dist/permission-profiles.mjs +0 -70
  98. package/dist/power-forms.d.mts +0 -51
  99. package/dist/power-forms.mjs +0 -62
  100. package/dist/rooms.d.mts +0 -18
  101. package/dist/rooms.mjs +0 -28
  102. package/dist/shared-DTUCJayR.mjs +0 -27
  103. package/dist/signing-groups.d.mts +0 -139
  104. package/dist/signing-groups.mjs +0 -117
  105. package/dist/template-custom-fields.d.mts +0 -199
  106. package/dist/template-custom-fields.mjs +0 -107
  107. package/dist/template-documents.d.mts +0 -132
  108. package/dist/template-documents.mjs +0 -109
  109. package/dist/template-lock.d.mts +0 -65
  110. package/dist/template-lock.mjs +0 -60
  111. package/dist/template-sharing.d.mts +0 -129
  112. package/dist/template-sharing.mjs +0 -108
  113. package/dist/template-workflow.d.mts +0 -184
  114. package/dist/template-workflow.mjs +0 -152
  115. package/dist/templates.d.mts +0 -158
  116. package/dist/templates.mjs +0 -110
  117. package/dist/user-authorizations.d.mts +0 -129
  118. package/dist/user-authorizations.mjs +0 -133
  119. package/dist/user-custom-settings.d.mts +0 -81
  120. package/dist/user-custom-settings.mjs +0 -69
  121. package/dist/user-profile.d.mts +0 -109
  122. package/dist/user-profile.mjs +0 -106
  123. package/dist/user-signatures.d.mts +0 -208
  124. package/dist/user-signatures.mjs +0 -180
  125. package/dist/users.d.mts +0 -128
  126. package/dist/users.mjs +0 -98
  127. package/dist/verification.d.mts +0 -19
  128. package/dist/verification.mjs +0 -59
  129. package/dist/workspaces.d.mts +0 -173
  130. package/dist/workspaces.mjs +0 -143
package/dist/notary.mjs DELETED
@@ -1,122 +0,0 @@
1
- import { docusignGenericObjectSchema, docusignLooseObjectSchema, docusignSuccessSchema } from "./schemas/index.mjs";
2
- import { r as defineRestOperation } from "./operation-helpers-Bqp7KoLi.mjs";
3
- import { z } from "zod";
4
-
5
- //#region src/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: "docusign.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: "docusign.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: "docusign.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: "docusign.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: "docusign.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: "docusign.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: "docusign.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: "docusign.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: "docusign.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 };
@@ -1,102 +0,0 @@
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-DFejlPDe.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 };
@@ -1,78 +0,0 @@
1
- import * as _keystrokehq_core0 from "@keystrokehq/core";
2
- import { z } from "zod";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
-
5
- //#region src/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 };
@@ -1,70 +0,0 @@
1
- import { docusignGenericObjectSchema, docusignLooseObjectSchema, docusignSuccessSchema } from "./schemas/index.mjs";
2
- import { r as defineRestOperation } from "./operation-helpers-Bqp7KoLi.mjs";
3
- import { z } from "zod";
4
-
5
- //#region src/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: "docusign.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: "docusign.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: "docusign.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: "docusign.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: "docusign.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 };
@@ -1,51 +0,0 @@
1
- import * as _keystrokehq_core0 from "@keystrokehq/core";
2
- import { z } from "zod";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
-
5
- //#region src/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 };
@@ -1,62 +0,0 @@
1
- import { docusignGenericObjectSchema, docusignSuccessSchema } from "./schemas/index.mjs";
2
- import { r as defineRestOperation } from "./operation-helpers-Bqp7KoLi.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: "docusign.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: "docusign.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: "docusign.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 };
package/dist/rooms.d.mts DELETED
@@ -1,18 +0,0 @@
1
- import * as _keystrokehq_core0 from "@keystrokehq/core";
2
- import { z } from "zod";
3
- import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
4
-
5
- //#region src/rooms.d.ts
6
- declare const roomsNotImplemented: _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 { roomsNotImplemented };
package/dist/rooms.mjs DELETED
@@ -1,28 +0,0 @@
1
- import { docusignGenericObjectSchema } from "./schemas/index.mjs";
2
- import { n as definePlanGatedOperation } from "./operation-helpers-Bqp7KoLi.mjs";
3
- import { z } from "zod";
4
-
5
- //#region src/rooms.ts
6
- /**
7
- * DocuSign Rooms API — plan-gated in v1.
8
- *
9
- * Rooms requires a separate product entitlement and different host
10
- * (`https://{server}.rooms.docusign.com/restapi/v2`). These operations are
11
- * declared so the slug surface stays complete, but each throws a typed
12
- * `plan_gated` error until the Rooms client is enabled.
13
- *
14
- * See `IMPLEMENTATION_NOTES.md` § 2 / § 7 Q1 for the rationale.
15
- */
16
- const genericInput = z.object({}).catchall(z.unknown());
17
- const roomsNotImplemented = definePlanGatedOperation({
18
- id: "docusign.rooms-not-implemented",
19
- slug: "DOCUSIGN_ROOMS_NOT_IMPLEMENTED",
20
- name: "DocuSign Rooms (not implemented)",
21
- description: "Placeholder for the DocuSign Rooms API. Ships disabled until Rooms is enabled on the account and the Rooms client wiring lands (follow-up PR).",
22
- input: genericInput,
23
- output: docusignGenericObjectSchema,
24
- reason: "DocuSign Rooms is a plan-gated product with a different base host and has not been enabled on this Keystroke deployment yet."
25
- });
26
-
27
- //#endregion
28
- export { roomsNotImplemented };
@@ -1,27 +0,0 @@
1
- //#region src/shared.ts
2
- function omitUndefined(value) {
3
- return Object.fromEntries(Object.entries(value).filter(([, entry]) => entry !== void 0));
4
- }
5
- /**
6
- * DocuSign envelope and document ids are occasionally base64 with slashes.
7
- * Double-encode to survive path routing layers that collapse `/` segments.
8
- */
9
- function encodeDocusignPathSegment(segment) {
10
- const encoded = encodeURIComponent(segment);
11
- if (segment.includes("/")) return encodeURIComponent(encoded);
12
- return encoded;
13
- }
14
- function toQueryValue(value) {
15
- if (value === void 0 || value === null) return void 0;
16
- if (typeof value === "boolean") return value ? "true" : "false";
17
- if (typeof value === "number") return Number.isFinite(value) ? String(value) : void 0;
18
- if (typeof value === "string") return value;
19
- if (Array.isArray(value)) {
20
- const items = value.filter((item) => typeof item === "string" || typeof item === "number" || typeof item === "boolean");
21
- if (items.length === 0) return void 0;
22
- return items.map(String).join(",");
23
- }
24
- }
25
-
26
- //#endregion
27
- export { omitUndefined as n, toQueryValue as r, encodeDocusignPathSegment as t };