@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/account.mjs DELETED
@@ -1,207 +0,0 @@
1
- import { docusignAccountSchema, 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/account.ts
6
- /**
7
- * Account core (settings, password rules, seal, envelope purge, admin misc).
8
- * Covers PLAN.md § 6.31.
9
- */
10
- const retrieveAccountInformationForSpecifiedAccount = defineRestOperation({
11
- id: "docusign.retrieve-account-information-for-specified-account",
12
- slug: "DOCUSIGN_RETRIEVE_ACCOUNT_INFORMATION_FOR_SPECIFIED_ACCOUNT",
13
- name: "Retrieve Account Information",
14
- description: "Retrieve information about the connected DocuSign account.",
15
- method: "GET",
16
- path: "",
17
- input: z.object({ includeAccountSettings: z.boolean().optional() }),
18
- output: docusignAccountSchema,
19
- query: (input) => ({ include_account_settings: input.includeAccountSettings })
20
- });
21
- const deleteSpecifiedAccount = defineRestOperation({
22
- id: "docusign.delete-specified-account",
23
- slug: "DOCUSIGN_DELETE_SPECIFIED_ACCOUNT",
24
- name: "Delete Account",
25
- description: "Close the connected DocuSign account (admin only).",
26
- needsApproval: true,
27
- method: "DELETE",
28
- path: "",
29
- input: z.object({ redactUserData: z.boolean().optional() }),
30
- output: docusignSuccessSchema,
31
- query: (input) => ({ redact_user_data: input.redactUserData }),
32
- transformResponse: () => ({ success: true })
33
- });
34
- const retrieveAccountSettingsInformation = defineRestOperation({
35
- id: "docusign.retrieve-account-settings-information",
36
- slug: "DOCUSIGN_RETRIEVE_ACCOUNT_SETTINGS_INFORMATION",
37
- name: "Retrieve Account Settings",
38
- description: "Retrieve account settings.",
39
- method: "GET",
40
- path: "/settings",
41
- input: z.object({}),
42
- output: docusignGenericObjectSchema
43
- });
44
- const updateAccountSettings = defineRestOperation({
45
- id: "docusign.update-account-settings",
46
- slug: "DOCUSIGN_UPDATE_ACCOUNT_SETTINGS",
47
- name: "Update Account Settings",
48
- description: "Update account settings.",
49
- needsApproval: true,
50
- method: "PUT",
51
- path: "/settings",
52
- input: z.object({ accountSettings: docusignLooseObjectSchema() }),
53
- output: docusignGenericObjectSchema,
54
- body: (input) => input.accountSettings
55
- });
56
- const getAccountPasswordRules = defineRestOperation({
57
- id: "docusign.get-account-password-rules",
58
- slug: "DOCUSIGN_GET_ACCOUNT_PASSWORD_RULES",
59
- name: "Get Account Password Rules",
60
- description: "Retrieve password rules on the account.",
61
- method: "GET",
62
- path: "/settings/password_rules",
63
- input: z.object({}),
64
- output: docusignGenericObjectSchema
65
- });
66
- const retrieveAccountPasswordRules = defineRestOperation({
67
- id: "docusign.retrieve-account-password-rules",
68
- slug: "DOCUSIGN_RETRIEVE_ACCOUNT_PASSWORD_RULES",
69
- name: "Retrieve Account Password Rules",
70
- description: "Alias: retrieve password rules on the account.",
71
- method: "GET",
72
- path: "/settings/password_rules",
73
- input: z.object({}),
74
- output: docusignGenericObjectSchema
75
- });
76
- const updateAccountPasswordRules = defineRestOperation({
77
- id: "docusign.update-account-password-rules",
78
- slug: "DOCUSIGN_UPDATE_ACCOUNT_PASSWORD_RULES",
79
- name: "Update Account Password Rules",
80
- description: "Update password rules on the account.",
81
- needsApproval: true,
82
- method: "PUT",
83
- path: "/settings/password_rules",
84
- input: z.object({ passwordRules: docusignLooseObjectSchema() }),
85
- output: docusignGenericObjectSchema,
86
- body: (input) => input.passwordRules
87
- });
88
- const retrieveAccountProvisioningInfo = defineRestOperation({
89
- id: "docusign.retrieve-account-provisioning-info",
90
- slug: "DOCUSIGN_RETRIEVE_ACCOUNT_PROVISIONING_INFO",
91
- name: "Retrieve Account Provisioning Info",
92
- description: "Retrieve provisioning info for the account.",
93
- method: "GET",
94
- path: "/provisioning",
95
- input: z.object({}),
96
- output: docusignGenericObjectSchema,
97
- accountScoped: false
98
- });
99
- const retrieveAccountSealProviders = defineRestOperation({
100
- id: "docusign.retrieve-account-seal-providers",
101
- slug: "DOCUSIGN_RETRIEVE_ACCOUNT_SEAL_PROVIDERS",
102
- name: "Retrieve Account Seal Providers",
103
- description: "Retrieve seal providers configured on the account.",
104
- method: "GET",
105
- path: "/seals",
106
- input: z.object({}),
107
- output: docusignGenericObjectSchema
108
- });
109
- const retrieveAccountEnvelopePurgeConfig = defineRestOperation({
110
- id: "docusign.retrieve-account-envelope-purge-config",
111
- slug: "DOCUSIGN_RETRIEVE_ACCOUNT_ENVELOPE_PURGE_CONFIG",
112
- name: "Retrieve Envelope Purge Config",
113
- description: "Retrieve the envelope-purge configuration.",
114
- method: "GET",
115
- path: "/settings/envelope_purge_configuration",
116
- input: z.object({}),
117
- output: docusignGenericObjectSchema
118
- });
119
- const setEnvelopePurgeConfigForAccount = defineRestOperation({
120
- id: "docusign.set-envelope-purge-config-for-account",
121
- slug: "DOCUSIGN_SET_ENVELOPE_PURGE_CONFIG_FOR_ACCOUNT",
122
- name: "Set Envelope Purge Config",
123
- description: "Update the envelope-purge configuration.",
124
- needsApproval: true,
125
- method: "PUT",
126
- path: "/settings/envelope_purge_configuration",
127
- input: z.object({ config: docusignLooseObjectSchema() }),
128
- output: docusignGenericObjectSchema,
129
- body: (input) => input.config
130
- });
131
- const retrieveAccountVerificationWorkflows = defineRestOperation({
132
- id: "docusign.retrieve-account-verification-workflows",
133
- slug: "DOCUSIGN_RETRIEVE_ACCOUNT_VERIFICATION_WORKFLOWS",
134
- name: "Retrieve Account Verification Workflows",
135
- description: "Retrieve verification workflows (identity) on the account.",
136
- method: "GET",
137
- path: "/identity_verification",
138
- input: z.object({}),
139
- output: docusignGenericObjectSchema
140
- });
141
- const listSignatureProvidersForAccount = defineRestOperation({
142
- id: "docusign.list-signature-providers-for-account",
143
- slug: "DOCUSIGN_LIST_SIGNATURE_PROVIDERS_FOR_ACCOUNT",
144
- name: "List Signature Providers",
145
- description: "List signature providers available to the account.",
146
- method: "GET",
147
- path: "/signatureProviders",
148
- input: z.object({}),
149
- output: docusignGenericObjectSchema
150
- });
151
- const getSupportedLanguagesForRecipients = defineRestOperation({
152
- id: "docusign.get-supported-languages-for-recipients",
153
- slug: "DOCUSIGN_GET_SUPPORTED_LANGUAGES_FOR_RECIPIENTS",
154
- name: "Get Supported Languages",
155
- description: "Return the list of supported recipient languages.",
156
- method: "GET",
157
- path: "/supported_languages",
158
- input: z.object({}),
159
- output: docusignGenericObjectSchema
160
- });
161
- const getUnsupportedFileTypesList = defineRestOperation({
162
- id: "docusign.get-unsupported-file-types-list",
163
- slug: "DOCUSIGN_GET_UNSUPPORTED_FILE_TYPES_LIST",
164
- name: "Get Unsupported File Types",
165
- description: "Return the list of unsupported file types for envelope documents.",
166
- method: "GET",
167
- path: "/unsupported_file_types",
168
- input: z.object({}),
169
- output: docusignGenericObjectSchema
170
- });
171
- const modifyAccountNotificationSettings = defineRestOperation({
172
- id: "docusign.modify-account-notification-settings",
173
- slug: "DOCUSIGN_MODIFY_ACCOUNT_NOTIFICATION_SETTINGS",
174
- name: "Modify Account Notification Settings",
175
- description: "Modify account-level notification defaults.",
176
- needsApproval: true,
177
- method: "PUT",
178
- path: "/settings/notification_defaults",
179
- input: z.object({ notifications: docusignLooseObjectSchema() }),
180
- output: docusignGenericObjectSchema,
181
- body: (input) => input.notifications
182
- });
183
- const listResourcesForRestVersionSpecified = defineRestOperation({
184
- id: "docusign.list-resources-for-rest-version-specified",
185
- slug: "DOCUSIGN_LIST_RESOURCES_FOR_RESTVERSION_SPECIFIED",
186
- name: "List REST Resources",
187
- description: "List resources available for a REST version.",
188
- method: "GET",
189
- path: "",
190
- input: z.object({ version: z.string().optional() }),
191
- output: docusignGenericObjectSchema,
192
- accountScoped: false
193
- });
194
- const retrieveRestApiVersions = defineRestOperation({
195
- id: "docusign.retrieve-rest-api-versions",
196
- slug: "DOCUSIGN_RETRIEVE_REST_API_VERSIONS",
197
- name: "Retrieve REST API Versions",
198
- description: "List available REST API versions.",
199
- method: "GET",
200
- path: "/service_information",
201
- input: z.object({}),
202
- output: docusignGenericObjectSchema,
203
- accountScoped: false
204
- });
205
-
206
- //#endregion
207
- export { deleteSpecifiedAccount, getAccountPasswordRules, getSupportedLanguagesForRecipients, getUnsupportedFileTypesList, listResourcesForRestVersionSpecified, listSignatureProvidersForAccount, modifyAccountNotificationSettings, retrieveAccountEnvelopePurgeConfig, retrieveAccountInformationForSpecifiedAccount, retrieveAccountPasswordRules, retrieveAccountProvisioningInfo, retrieveAccountSealProviders, retrieveAccountSettingsInformation, retrieveAccountVerificationWorkflows, retrieveRestApiVersions, setEnvelopePurgeConfigForAccount, updateAccountPasswordRules, updateAccountSettings };
package/dist/admin.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/admin.d.ts
6
- declare const adminNotImplemented: _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 { adminNotImplemented };
package/dist/admin.mjs DELETED
@@ -1,20 +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/admin.ts
6
- /**
7
- * DocuSign Admin API — plan-gated in v1.
8
- */
9
- const adminNotImplemented = definePlanGatedOperation({
10
- id: "docusign.admin-not-implemented",
11
- slug: "DOCUSIGN_ADMIN_NOT_IMPLEMENTED",
12
- name: "DocuSign Admin (not implemented)",
13
- description: "Placeholder for DocuSign Admin API (cross-account SSO, domains, permissions).",
14
- input: z.object({}).catchall(z.unknown()),
15
- output: docusignGenericObjectSchema,
16
- reason: "DocuSign Admin API requires `organization_read`, `permission_read`, etc. scopes that are not enabled on this connection."
17
- });
18
-
19
- //#endregion
20
- export { adminNotImplemented };
package/dist/auth.d.mts DELETED
@@ -1,37 +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/auth.d.ts
6
- declare const retrieveDocusignUserinfo: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
7
- sub: z.ZodOptional<z.ZodString>;
8
- email: z.ZodOptional<z.ZodString>;
9
- accounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
10
- account_id: z.ZodOptional<z.ZodString>;
11
- account_name: z.ZodOptional<z.ZodString>;
12
- base_uri: z.ZodOptional<z.ZodString>;
13
- is_default: z.ZodOptional<z.ZodBoolean>;
14
- }, z.core.$catchall<z.ZodUnknown>>>>;
15
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
16
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
17
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
18
- DOCUSIGN_BASE_URI: z.ZodURL;
19
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
20
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
21
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
22
- DOCUSIGN_BASE_URI: z.ZodURL;
23
- }, z.core.$strip>>[] | undefined>], undefined>;
24
- declare const resolveCurrentAccount: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
25
- accountId: z.ZodString;
26
- baseUri: z.ZodString;
27
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
28
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
29
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
30
- DOCUSIGN_BASE_URI: z.ZodURL;
31
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
32
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
33
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
34
- DOCUSIGN_BASE_URI: z.ZodURL;
35
- }, z.core.$strip>>[] | undefined>], undefined>;
36
- //#endregion
37
- export { resolveCurrentAccount, retrieveDocusignUserinfo };
package/dist/auth.mjs DELETED
@@ -1,53 +0,0 @@
1
- import { a as fetchDocusignUserinfo, i as DOCUSIGN_USERINFO_URL } from "./integration-BcEp_dFX.mjs";
2
- import { createDocusignClient } from "./client.mjs";
3
- import { docusignLooseObjectSchema } from "./schemas/index.mjs";
4
- import { t as docusignOperation } from "./factory-DFejlPDe.mjs";
5
- import { z } from "zod";
6
-
7
- //#region src/auth.ts
8
- /**
9
- * Auth helpers — exposed as operations so users can call DocuSign userinfo /
10
- * account resolution directly from the workflow surface if needed.
11
- *
12
- * These back the `auth` subpath and exist in addition to the OAuth hooks that
13
- * fire automatically during connect/refresh (see `./oauth-connection.ts`).
14
- */
15
- const retrieveDocusignUserinfo = docusignOperation({
16
- id: "docusign.retrieve-docusign-userinfo",
17
- name: "Retrieve DocuSign Userinfo",
18
- description: `Call ${DOCUSIGN_USERINFO_URL} with the stored access token to re-resolve the connected user's accounts, names, and base URIs.`,
19
- input: z.object({}),
20
- output: docusignLooseObjectSchema({
21
- sub: z.string().optional(),
22
- email: z.string().optional(),
23
- accounts: z.array(docusignLooseObjectSchema({
24
- account_id: z.string().optional(),
25
- account_name: z.string().optional(),
26
- base_uri: z.string().optional(),
27
- is_default: z.boolean().optional()
28
- })).optional()
29
- }),
30
- run: async (_input, credentials) => {
31
- return { ...await fetchDocusignUserinfo(credentials.DOCUSIGN_ACCESS_TOKEN) };
32
- }
33
- });
34
- const resolveCurrentAccount = docusignOperation({
35
- id: "docusign.resolve-current-account",
36
- name: "Resolve Current Account",
37
- description: "Return the active `accountId` + `baseUri` pair stored on the connection. Useful for downstream operations that need to construct account-scoped URLs themselves.",
38
- input: z.object({}),
39
- output: docusignLooseObjectSchema({
40
- accountId: z.string(),
41
- baseUri: z.string()
42
- }),
43
- run: async (_input, credentials) => {
44
- const client = createDocusignClient(credentials);
45
- return {
46
- accountId: client.accountId,
47
- baseUri: client.baseUri
48
- };
49
- }
50
- });
51
-
52
- //#endregion
53
- export { resolveCurrentAccount, retrieveDocusignUserinfo };
@@ -1,64 +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/bcc-archive.d.ts
6
- declare const createBccEmailArchiveConfiguration: _keystrokehq_core0.Operation<z.ZodObject<{
7
- bccEmailArchive: 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 getBccEmailArchiveConfigurations: _keystrokehq_core0.Operation<z.ZodObject<{
22
- startPosition: z.ZodOptional<z.ZodNumber>;
23
- count: z.ZodOptional<z.ZodNumber>;
24
- }, z.core.$strip>, z.ZodObject<{
25
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
26
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
27
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
28
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
29
- DOCUSIGN_BASE_URI: z.ZodURL;
30
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
31
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
32
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
33
- DOCUSIGN_BASE_URI: z.ZodURL;
34
- }, z.core.$strip>>[] | undefined>], undefined>;
35
- declare const getBccEmailArchiveHistory: _keystrokehq_core0.Operation<z.ZodObject<{
36
- bccEmailArchiveId: z.ZodString;
37
- startPosition: z.ZodOptional<z.ZodNumber>;
38
- count: z.ZodOptional<z.ZodNumber>;
39
- }, z.core.$strip>, z.ZodObject<{
40
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
41
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
42
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
43
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
44
- DOCUSIGN_BASE_URI: z.ZodURL;
45
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
46
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
47
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
48
- DOCUSIGN_BASE_URI: z.ZodURL;
49
- }, z.core.$strip>>[] | undefined>], undefined>;
50
- declare const deleteBccEmailArchiveConfiguration: _keystrokehq_core0.Operation<z.ZodObject<{
51
- bccEmailArchiveId: z.ZodString;
52
- }, z.core.$strip>, z.ZodObject<{
53
- success: z.ZodBoolean;
54
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
55
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
56
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
57
- DOCUSIGN_BASE_URI: z.ZodURL;
58
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
59
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
60
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
61
- DOCUSIGN_BASE_URI: z.ZodURL;
62
- }, z.core.$strip>>[] | undefined>], undefined>;
63
- //#endregion
64
- export { createBccEmailArchiveConfiguration, deleteBccEmailArchiveConfiguration, getBccEmailArchiveConfigurations, getBccEmailArchiveHistory };
@@ -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/bcc-archive.ts
6
- /**
7
- * BCC email archive. Covers PLAN.md § 6.40.
8
- */
9
- const bccId = z.object({ bccEmailArchiveId: z.string().min(1) });
10
- const createBccEmailArchiveConfiguration = defineRestOperation({
11
- id: "docusign.create-bcc-email-archive-configuration",
12
- slug: "DOCUSIGN_CREATE_BCC_EMAIL_ARCHIVE_CONFIGURATION",
13
- name: "Create BCC Email Archive Configuration",
14
- description: "Configure a BCC email archive address for the account.",
15
- needsApproval: true,
16
- method: "POST",
17
- path: "/settings/bcc_email_archives",
18
- input: z.object({ bccEmailArchive: docusignLooseObjectSchema() }),
19
- output: docusignGenericObjectSchema,
20
- body: (input) => input.bccEmailArchive
21
- });
22
- const getBccEmailArchiveConfigurations = defineRestOperation({
23
- id: "docusign.get-bcc-email-archive-configurations",
24
- slug: "DOCUSIGN_GET_BCC_EMAIL_ARCHIVE_CONFIGURATIONS",
25
- name: "Get BCC Email Archive Configurations",
26
- description: "List BCC email archive configurations.",
27
- method: "GET",
28
- path: "/settings/bcc_email_archives",
29
- input: z.object({
30
- startPosition: z.number().int().nonnegative().optional(),
31
- count: z.number().int().positive().optional()
32
- }),
33
- output: docusignGenericObjectSchema,
34
- query: (input) => ({
35
- start_position: input.startPosition,
36
- count: input.count
37
- })
38
- });
39
- const getBccEmailArchiveHistory = defineRestOperation({
40
- id: "docusign.get-bcc-email-archive-history",
41
- slug: "DOCUSIGN_GET_BCCEMAIL_ARCHIVE_HISTORY",
42
- name: "Get BCC Email Archive History",
43
- description: "Retrieve history for a BCC email archive configuration.",
44
- method: "GET",
45
- path: (ctx) => `/settings/bcc_email_archives/${ctx.encode(String(ctx.input.bccEmailArchiveId))}`,
46
- input: bccId.extend({
47
- startPosition: z.number().int().nonnegative().optional(),
48
- count: z.number().int().positive().optional()
49
- }),
50
- output: docusignGenericObjectSchema,
51
- query: (input) => ({
52
- start_position: input.startPosition,
53
- count: input.count
54
- })
55
- });
56
- const deleteBccEmailArchiveConfiguration = defineRestOperation({
57
- id: "docusign.delete-bcc-email-archive-configuration",
58
- slug: "DOCUSIGN_DELETE_BCC_EMAIL_ARCHIVE_CONFIGURATION",
59
- name: "Delete BCC Email Archive Configuration",
60
- description: "Delete a BCC email archive configuration.",
61
- needsApproval: true,
62
- method: "DELETE",
63
- path: (ctx) => `/settings/bcc_email_archives/${ctx.encode(String(ctx.input.bccEmailArchiveId))}`,
64
- input: bccId,
65
- output: docusignSuccessSchema,
66
- transformResponse: () => ({ success: true })
67
- });
68
-
69
- //#endregion
70
- export { createBccEmailArchiveConfiguration, deleteBccEmailArchiveConfiguration, getBccEmailArchiveConfigurations, getBccEmailArchiveHistory };