@keystrokehq/docusign 0.0.15 → 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 +11 -226
  14. package/dist/_official/index.d.mts +0 -75
  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 -48
  19. package/dist/account-custom-fields.mjs +0 -63
  20. package/dist/account-stamps.d.mts +0 -119
  21. package/dist/account-stamps.mjs +0 -144
  22. package/dist/account-tabs.d.mts +0 -65
  23. package/dist/account-tabs.mjs +0 -80
  24. package/dist/account.d.mts +0 -160
  25. package/dist/account.mjs +0 -207
  26. package/dist/admin.d.mts +0 -13
  27. package/dist/admin.mjs +0 -20
  28. package/dist/auth.d.mts +0 -28
  29. package/dist/auth.mjs +0 -64
  30. package/dist/bcc-archive.d.mts +0 -47
  31. package/dist/bcc-archive.mjs +0 -70
  32. package/dist/billing.d.mts +0 -152
  33. package/dist/billing.mjs +0 -208
  34. package/dist/brands.d.mts +0 -147
  35. package/dist/brands.mjs +0 -157
  36. package/dist/bulk-send.d.mts +0 -104
  37. package/dist/bulk-send.mjs +0 -115
  38. package/dist/chunked-uploads.d.mts +0 -57
  39. package/dist/chunked-uploads.mjs +0 -74
  40. package/dist/click.d.mts +0 -13
  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 -13
  45. package/dist/clm.mjs +0 -20
  46. package/dist/cloud-storage.d.mts +0 -93
  47. package/dist/cloud-storage.mjs +0 -115
  48. package/dist/connect.d.mts +0 -183
  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 -59
  53. package/dist/contacts.mjs +0 -79
  54. package/dist/enote.d.mts +0 -31
  55. package/dist/enote.mjs +0 -45
  56. package/dist/envelope-attachments.d.mts +0 -65
  57. package/dist/envelope-attachments.mjs +0 -76
  58. package/dist/envelope-custom-fields.d.mts +0 -137
  59. package/dist/envelope-custom-fields.mjs +0 -92
  60. package/dist/envelope-documents.d.mts +0 -206
  61. package/dist/envelope-documents.mjs +0 -219
  62. package/dist/envelope-email.d.mts +0 -48
  63. package/dist/envelope-email.mjs +0 -60
  64. package/dist/envelope-lock.d.mts +0 -48
  65. package/dist/envelope-lock.mjs +0 -60
  66. package/dist/envelope-logs.d.mts +0 -89
  67. package/dist/envelope-logs.mjs +0 -126
  68. package/dist/envelope-notifications.d.mts +0 -34
  69. package/dist/envelope-notifications.mjs +0 -44
  70. package/dist/envelope-recipients.d.mts +0 -126
  71. package/dist/envelope-recipients.mjs +0 -136
  72. package/dist/envelope-tabs.d.mts +0 -39
  73. package/dist/envelope-tabs.mjs +0 -49
  74. package/dist/envelope-views.d.mts +0 -74
  75. package/dist/envelope-views.mjs +0 -88
  76. package/dist/envelope-workflow.d.mts +0 -151
  77. package/dist/envelope-workflow.mjs +0 -176
  78. package/dist/envelopes.d.mts +0 -377
  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-5kY-Jnda.mjs +0 -8
  85. package/dist/groups.d.mts +0 -150
  86. package/dist/groups.mjs +0 -146
  87. package/dist/integration-H05G5JY8.mjs +0 -112
  88. package/dist/integration-Mk1ScWT6.d.mts +0 -30
  89. package/dist/messaging.d.mts +0 -1
  90. package/dist/messaging.mjs +0 -1
  91. package/dist/monitor.d.mts +0 -13
  92. package/dist/monitor.mjs +0 -20
  93. package/dist/notary.d.mts +0 -92
  94. package/dist/notary.mjs +0 -122
  95. package/dist/operation-helpers-D25WHTo1.mjs +0 -102
  96. package/dist/permission-profiles.d.mts +0 -57
  97. package/dist/permission-profiles.mjs +0 -70
  98. package/dist/power-forms.d.mts +0 -38
  99. package/dist/power-forms.mjs +0 -62
  100. package/dist/rooms.d.mts +0 -13
  101. package/dist/rooms.mjs +0 -28
  102. package/dist/shared-DTUCJayR.mjs +0 -27
  103. package/dist/signing-groups.d.mts +0 -102
  104. package/dist/signing-groups.mjs +0 -117
  105. package/dist/template-custom-fields.d.mts +0 -166
  106. package/dist/template-custom-fields.mjs +0 -107
  107. package/dist/template-documents.d.mts +0 -99
  108. package/dist/template-documents.mjs +0 -109
  109. package/dist/template-lock.d.mts +0 -48
  110. package/dist/template-lock.mjs +0 -60
  111. package/dist/template-sharing.d.mts +0 -96
  112. package/dist/template-sharing.mjs +0 -108
  113. package/dist/template-workflow.d.mts +0 -135
  114. package/dist/template-workflow.mjs +0 -152
  115. package/dist/templates.d.mts +0 -129
  116. package/dist/templates.mjs +0 -110
  117. package/dist/user-authorizations.d.mts +0 -96
  118. package/dist/user-authorizations.mjs +0 -133
  119. package/dist/user-custom-settings.d.mts +0 -60
  120. package/dist/user-custom-settings.mjs +0 -69
  121. package/dist/user-profile.d.mts +0 -80
  122. package/dist/user-profile.mjs +0 -106
  123. package/dist/user-signatures.d.mts +0 -155
  124. package/dist/user-signatures.mjs +0 -180
  125. package/dist/users.d.mts +0 -103
  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 -128
  130. package/dist/workspaces.mjs +0 -143
@@ -1,110 +0,0 @@
1
- import { docusignEnvelopeIdSchema, docusignGenericObjectSchema, docusignListPaginationInputSchema, docusignLooseObjectSchema, docusignSuccessSchema, docusignTemplateIdSchema, docusignTemplateListSchema, docusignTemplateSchema } from "./schemas/index.mjs";
2
- import { r as defineRestOperation } from "./operation-helpers-D25WHTo1.mjs";
3
- import { z } from "zod";
4
-
5
- //#region src/templates.ts
6
- /**
7
- * Template core. Covers PLAN.md § 6.12.
8
- */
9
- const listAllTemplates = defineRestOperation({
10
- id: "docusign.list-all-templates",
11
- slug: "DOCUSIGN_LIST_ALL_TEMPLATES",
12
- name: "List All Templates",
13
- description: "List templates on the account, optionally filtered by search text and folder.",
14
- method: "GET",
15
- path: "/templates",
16
- input: docusignListPaginationInputSchema.extend({
17
- searchText: z.string().optional(),
18
- folderIds: z.array(z.string()).optional(),
19
- shared: z.enum(["shared_with_me", "all"]).optional(),
20
- orderBy: z.string().optional(),
21
- order: z.enum(["asc", "desc"]).optional()
22
- }),
23
- output: docusignTemplateListSchema,
24
- query: (input) => ({
25
- start_position: input.startPosition,
26
- count: input.count,
27
- search_text: input.searchText,
28
- folder_ids: input.folderIds,
29
- shared: input.shared,
30
- order_by: input.orderBy,
31
- order: input.order
32
- })
33
- });
34
- const getTemplate = defineRestOperation({
35
- id: "docusign.get-template",
36
- slug: "DOCUSIGN_GET_TEMPLATE",
37
- name: "Get Template",
38
- description: "Fetch a DocuSign template by id.",
39
- method: "GET",
40
- path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}`,
41
- input: z.object({
42
- templateId: docusignTemplateIdSchema,
43
- include: z.array(z.string()).optional()
44
- }),
45
- output: docusignTemplateSchema,
46
- query: (input) => ({ include: input.include })
47
- });
48
- const addTemplatesToEnvelope = defineRestOperation({
49
- id: "docusign.add-templates-to-envelope",
50
- slug: "DOCUSIGN_ADD_TEMPLATES_TO_ENVELOPE",
51
- name: "Add Templates To Envelope",
52
- description: "Apply templates to an existing envelope.",
53
- needsApproval: true,
54
- method: "POST",
55
- path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/templates`,
56
- input: z.object({
57
- envelopeId: docusignEnvelopeIdSchema,
58
- documentTemplates: z.array(docusignLooseObjectSchema()).min(1)
59
- }),
60
- output: docusignGenericObjectSchema,
61
- body: (input) => ({ documentTemplates: input.documentTemplates })
62
- });
63
- const getTemplatesUsedInEnvelope = defineRestOperation({
64
- id: "docusign.get-templates-used-in-envelope",
65
- slug: "DOCUSIGN_GET_TEMPLATES_USED_IN_ENVELOPE",
66
- name: "Get Templates Used In Envelope",
67
- description: "List the templates applied to an envelope.",
68
- method: "GET",
69
- path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/templates`,
70
- input: z.object({ envelopeId: docusignEnvelopeIdSchema }),
71
- output: docusignGenericObjectSchema
72
- });
73
- const retrieveAccountFavoriteTemplates = defineRestOperation({
74
- id: "docusign.retrieve-account-favorite-templates",
75
- slug: "DOCUSIGN_RETRIEVE_ACCOUNT_FAVORITE_TEMPLATES",
76
- name: "Retrieve Account Favorite Templates",
77
- description: "List favorite templates on the account.",
78
- method: "GET",
79
- path: "/favorite_templates",
80
- input: z.object({}),
81
- output: docusignGenericObjectSchema
82
- });
83
- const setTemplatesAsAccountFavorites = defineRestOperation({
84
- id: "docusign.set-templates-as-account-favorites",
85
- slug: "DOCUSIGN_SET_TEMPLATES_AS_ACCOUNT_FAVORITES",
86
- name: "Set Templates As Account Favorites",
87
- description: "Mark templates as favorites on the account.",
88
- needsApproval: true,
89
- method: "PUT",
90
- path: "/favorite_templates",
91
- input: z.object({ favoriteTemplates: z.array(docusignLooseObjectSchema()).min(1) }),
92
- output: docusignGenericObjectSchema,
93
- body: (input) => ({ favoriteTemplates: input.favoriteTemplates })
94
- });
95
- const removeTemplatesFromFavorites = defineRestOperation({
96
- id: "docusign.remove-templates-from-favorites",
97
- slug: "DOCUSIGN_REMOVE_TEMPLATES_FROM_FAVORITES",
98
- name: "Remove Templates From Favorites",
99
- description: "Unmark templates as favorites on the account.",
100
- needsApproval: true,
101
- method: "DELETE",
102
- path: "/favorite_templates",
103
- input: z.object({ favoriteTemplates: z.array(docusignLooseObjectSchema()).min(1) }),
104
- output: docusignSuccessSchema,
105
- body: (input) => ({ favoriteTemplates: input.favoriteTemplates }),
106
- transformResponse: () => ({ success: true })
107
- });
108
-
109
- //#endregion
110
- export { addTemplatesToEnvelope, getTemplate, getTemplatesUsedInEnvelope, listAllTemplates, removeTemplatesFromFavorites, retrieveAccountFavoriteTemplates, setTemplatesAsAccountFavorites };
@@ -1,96 +0,0 @@
1
- import { z } from "zod";
2
- import * as _keystrokehq_core0 from "@keystrokehq/core";
3
-
4
- //#region src/user-authorizations.d.ts
5
- declare const createOrUpdateUserAuthorizations: _keystrokehq_core0.Operation<z.ZodObject<{
6
- userId: z.ZodString;
7
- authorizations: z.ZodArray<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<"keystroke: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>>], undefined>;
17
- declare const createUserAuthorizationForAgentUser: _keystrokehq_core0.Operation<z.ZodObject<{
18
- userId: z.ZodString;
19
- authorization: z.ZodObject<{
20
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
21
- }, z.core.$catchall<z.ZodUnknown>>;
22
- }, z.core.$strip>, z.ZodObject<{
23
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
24
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
25
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
26
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
27
- DOCUSIGN_BASE_URI: z.ZodURL;
28
- }, z.core.$strip>>], undefined>;
29
- declare const getUserAuthorizationDetails: _keystrokehq_core0.Operation<z.ZodObject<{
30
- userId: z.ZodString;
31
- authorizationId: z.ZodString;
32
- }, z.core.$strip>, z.ZodObject<{
33
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
34
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
35
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
36
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
37
- DOCUSIGN_BASE_URI: z.ZodURL;
38
- }, z.core.$strip>>], undefined>;
39
- declare const getUserAuthorizationsForPrincipal: _keystrokehq_core0.Operation<z.ZodObject<{
40
- userId: z.ZodString;
41
- startPosition: z.ZodOptional<z.ZodNumber>;
42
- count: z.ZodOptional<z.ZodNumber>;
43
- permissions: z.ZodOptional<z.ZodString>;
44
- }, z.core.$strip>, z.ZodObject<{
45
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
46
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
47
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
48
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
49
- DOCUSIGN_BASE_URI: z.ZodURL;
50
- }, z.core.$strip>>], undefined>;
51
- declare const getAgentUserAuthorizations: _keystrokehq_core0.Operation<z.ZodObject<{
52
- userId: z.ZodString;
53
- startPosition: z.ZodOptional<z.ZodNumber>;
54
- count: z.ZodOptional<z.ZodNumber>;
55
- }, z.core.$strip>, z.ZodObject<{
56
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
57
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
58
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
59
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
60
- DOCUSIGN_BASE_URI: z.ZodURL;
61
- }, z.core.$strip>>], undefined>;
62
- declare const updateUserAuthorizationDates: _keystrokehq_core0.Operation<z.ZodObject<{
63
- userId: z.ZodString;
64
- authorizationId: z.ZodString;
65
- authorization: z.ZodObject<{
66
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
67
- }, z.core.$catchall<z.ZodUnknown>>;
68
- }, z.core.$strip>, z.ZodObject<{
69
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
70
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
71
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
72
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
73
- DOCUSIGN_BASE_URI: z.ZodURL;
74
- }, z.core.$strip>>], undefined>;
75
- declare const deleteUserAuthorization: _keystrokehq_core0.Operation<z.ZodObject<{
76
- userId: z.ZodString;
77
- authorizationId: z.ZodString;
78
- }, z.core.$strip>, z.ZodObject<{
79
- success: z.ZodBoolean;
80
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
81
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
82
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
83
- DOCUSIGN_BASE_URI: z.ZodURL;
84
- }, z.core.$strip>>], undefined>;
85
- declare const deleteUserAuthorizations: _keystrokehq_core0.Operation<z.ZodObject<{
86
- userId: z.ZodString;
87
- authorizationIdList: z.ZodArray<z.ZodString>;
88
- }, z.core.$strip>, z.ZodObject<{
89
- success: z.ZodBoolean;
90
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
91
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
92
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
93
- DOCUSIGN_BASE_URI: z.ZodURL;
94
- }, z.core.$strip>>], undefined>;
95
- //#endregion
96
- export { createOrUpdateUserAuthorizations, createUserAuthorizationForAgentUser, deleteUserAuthorization, deleteUserAuthorizations, getAgentUserAuthorizations, getUserAuthorizationDetails, getUserAuthorizationsForPrincipal, updateUserAuthorizationDates };
@@ -1,133 +0,0 @@
1
- import { docusignGenericObjectSchema, docusignLooseObjectSchema, docusignSuccessSchema } from "./schemas/index.mjs";
2
- import { r as defineRestOperation } from "./operation-helpers-D25WHTo1.mjs";
3
- import { z } from "zod";
4
-
5
- //#region src/user-authorizations.ts
6
- /**
7
- * User authorizations + agent authorizations. Covers PLAN.md § 6.25.
8
- */
9
- const userAuth = z.object({
10
- userId: z.string().min(1),
11
- authorizationId: z.string().min(1)
12
- });
13
- const createOrUpdateUserAuthorizations = defineRestOperation({
14
- id: "docusign.create-or-update-user-authorizations",
15
- slug: "DOCUSIGN_CREATE_OR_UPDATE_USER_AUTHORIZATIONS",
16
- name: "Create Or Update User Authorizations",
17
- description: "Create or update authorizations granted to a user.",
18
- needsApproval: true,
19
- method: "POST",
20
- path: (ctx) => `/users/${ctx.encode(String(ctx.input.userId))}/authorizations`,
21
- input: z.object({
22
- userId: z.string().min(1),
23
- authorizations: z.array(docusignLooseObjectSchema()).min(1)
24
- }),
25
- output: docusignGenericObjectSchema,
26
- body: (input) => ({ authorizations: input.authorizations })
27
- });
28
- const createUserAuthorizationForAgentUser = defineRestOperation({
29
- id: "docusign.create-user-authorization-for-agent-user",
30
- slug: "DOCUSIGN_CREATE_USER_AUTHORIZATION_FOR_AGENT_USER",
31
- name: "Create User Authorization For Agent User",
32
- description: "Create a user authorization with agent user context.",
33
- needsApproval: true,
34
- method: "POST",
35
- path: (ctx) => `/users/${ctx.encode(String(ctx.input.userId))}/authorization`,
36
- input: z.object({
37
- userId: z.string().min(1),
38
- authorization: docusignLooseObjectSchema()
39
- }),
40
- output: docusignGenericObjectSchema,
41
- body: (input) => input.authorization
42
- });
43
- const getUserAuthorizationDetails = defineRestOperation({
44
- id: "docusign.get-user-authorization-details",
45
- slug: "DOCUSIGN_GET_USER_AUTHORIZATION_DETAILS",
46
- name: "Get User Authorization Details",
47
- description: "Get details of a specific user authorization.",
48
- method: "GET",
49
- path: (ctx) => `/users/${ctx.encode(String(ctx.input.userId))}/authorization/${ctx.encode(String(ctx.input.authorizationId))}`,
50
- input: userAuth,
51
- output: docusignGenericObjectSchema
52
- });
53
- const getUserAuthorizationsForPrincipal = defineRestOperation({
54
- id: "docusign.get-user-authorizations-for-principal",
55
- slug: "DOCUSIGN_GET_USER_AUTHORIZATIONS_FOR_PRINCIPAL",
56
- name: "Get User Authorizations For Principal",
57
- description: "List authorizations granted by a principal user.",
58
- method: "GET",
59
- path: (ctx) => `/users/${ctx.encode(String(ctx.input.userId))}/authorizations`,
60
- input: z.object({
61
- userId: z.string().min(1),
62
- startPosition: z.number().int().nonnegative().optional(),
63
- count: z.number().int().positive().optional(),
64
- permissions: z.string().optional()
65
- }),
66
- output: docusignGenericObjectSchema,
67
- query: (input) => ({
68
- start_position: input.startPosition,
69
- count: input.count,
70
- permissions: input.permissions
71
- })
72
- });
73
- const getAgentUserAuthorizations = defineRestOperation({
74
- id: "docusign.get-agent-user-authorizations",
75
- slug: "DOCUSIGN_GET_AGENT_USER_AUTHORIZATIONS",
76
- name: "Get Agent User Authorizations",
77
- description: "List authorizations granted to an agent user.",
78
- method: "GET",
79
- path: (ctx) => `/users/${ctx.encode(String(ctx.input.userId))}/agent_authorizations`,
80
- input: z.object({
81
- userId: z.string().min(1),
82
- startPosition: z.number().int().nonnegative().optional(),
83
- count: z.number().int().positive().optional()
84
- }),
85
- output: docusignGenericObjectSchema,
86
- query: (input) => ({
87
- start_position: input.startPosition,
88
- count: input.count
89
- })
90
- });
91
- const updateUserAuthorizationDates = defineRestOperation({
92
- id: "docusign.update-user-authorization-dates",
93
- slug: "DOCUSIGN_UPDATE_USER_AUTHORIZATION_DATES",
94
- name: "Update User Authorization Dates",
95
- description: "Update the validity window of a user authorization.",
96
- needsApproval: true,
97
- method: "PUT",
98
- path: (ctx) => `/users/${ctx.encode(String(ctx.input.userId))}/authorization/${ctx.encode(String(ctx.input.authorizationId))}`,
99
- input: userAuth.extend({ authorization: docusignLooseObjectSchema() }),
100
- output: docusignGenericObjectSchema,
101
- body: (input) => input.authorization
102
- });
103
- const deleteUserAuthorization = defineRestOperation({
104
- id: "docusign.delete-user-authorization",
105
- slug: "DOCUSIGN_DELETE_USER_AUTHORIZATION",
106
- name: "Delete User Authorization",
107
- description: "Delete a single user authorization.",
108
- needsApproval: true,
109
- method: "DELETE",
110
- path: (ctx) => `/users/${ctx.encode(String(ctx.input.userId))}/authorization/${ctx.encode(String(ctx.input.authorizationId))}`,
111
- input: userAuth,
112
- output: docusignSuccessSchema,
113
- transformResponse: () => ({ success: true })
114
- });
115
- const deleteUserAuthorizations = defineRestOperation({
116
- id: "docusign.delete-user-authorizations",
117
- slug: "DOCUSIGN_DELETE_USER_AUTHORIZATIONS",
118
- name: "Delete User Authorizations",
119
- description: "Bulk delete user authorizations.",
120
- needsApproval: true,
121
- method: "DELETE",
122
- path: (ctx) => `/users/${ctx.encode(String(ctx.input.userId))}/authorizations`,
123
- input: z.object({
124
- userId: z.string().min(1),
125
- authorizationIdList: z.array(z.string().min(1)).min(1)
126
- }),
127
- output: docusignSuccessSchema,
128
- body: (input) => ({ authorizationIdList: input.authorizationIdList }),
129
- transformResponse: () => ({ success: true })
130
- });
131
-
132
- //#endregion
133
- export { createOrUpdateUserAuthorizations, createUserAuthorizationForAgentUser, deleteUserAuthorization, deleteUserAuthorizations, getAgentUserAuthorizations, getUserAuthorizationDetails, getUserAuthorizationsForPrincipal, updateUserAuthorizationDates };
@@ -1,60 +0,0 @@
1
- import { z } from "zod";
2
- import * as _keystrokehq_core0 from "@keystrokehq/core";
3
-
4
- //#region src/user-custom-settings.d.ts
5
- declare const addOrUpdateUserCustomSettings: _keystrokehq_core0.Operation<z.ZodObject<{
6
- userId: z.ZodString;
7
- customSettings: 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<"keystroke: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>>], undefined>;
17
- declare const retrieveCustomUserSettings: _keystrokehq_core0.Operation<z.ZodObject<{
18
- userId: z.ZodString;
19
- }, z.core.$strip>, z.ZodObject<{
20
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
21
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
22
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
23
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
24
- DOCUSIGN_BASE_URI: z.ZodURL;
25
- }, z.core.$strip>>], undefined>;
26
- declare const deleteCustomUserSettings: _keystrokehq_core0.Operation<z.ZodObject<{
27
- userId: z.ZodString;
28
- customSettings: z.ZodObject<{
29
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
30
- }, z.core.$catchall<z.ZodUnknown>>;
31
- }, z.core.$strip>, z.ZodObject<{
32
- success: z.ZodBoolean;
33
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
34
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
35
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
36
- DOCUSIGN_BASE_URI: z.ZodURL;
37
- }, z.core.$strip>>], undefined>;
38
- declare const retrieveUserAccountSettings: _keystrokehq_core0.Operation<z.ZodObject<{
39
- userId: z.ZodString;
40
- }, z.core.$strip>, z.ZodObject<{
41
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
42
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
43
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
44
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
45
- DOCUSIGN_BASE_URI: z.ZodURL;
46
- }, z.core.$strip>>], undefined>;
47
- declare const updateUserAccountSettings: _keystrokehq_core0.Operation<z.ZodObject<{
48
- userId: z.ZodString;
49
- settings: z.ZodObject<{
50
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
51
- }, z.core.$catchall<z.ZodUnknown>>;
52
- }, z.core.$strip>, z.ZodObject<{
53
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
54
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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>>], undefined>;
59
- //#endregion
60
- export { addOrUpdateUserCustomSettings, deleteCustomUserSettings, retrieveCustomUserSettings, retrieveUserAccountSettings, updateUserAccountSettings };
@@ -1,69 +0,0 @@
1
- import { docusignGenericObjectSchema, docusignLooseObjectSchema, docusignSuccessSchema } from "./schemas/index.mjs";
2
- import { r as defineRestOperation } from "./operation-helpers-D25WHTo1.mjs";
3
- import { z } from "zod";
4
-
5
- //#region src/user-custom-settings.ts
6
- /**
7
- * User custom settings + account settings. Covers PLAN.md § 6.26.
8
- */
9
- const userId = z.object({ userId: z.string().min(1) });
10
- const addOrUpdateUserCustomSettings = defineRestOperation({
11
- id: "docusign.add-or-update-user-custom-settings",
12
- slug: "DOCUSIGN_ADD_OR_UPDATE_USER_CUSTOM_SETTINGS",
13
- name: "Add Or Update User Custom Settings",
14
- description: "Add or update custom settings for a user.",
15
- needsApproval: true,
16
- method: "PUT",
17
- path: (ctx) => `/users/${ctx.encode(String(ctx.input.userId))}/custom_settings`,
18
- input: userId.extend({ customSettings: docusignLooseObjectSchema() }),
19
- output: docusignGenericObjectSchema,
20
- body: (input) => input.customSettings
21
- });
22
- const retrieveCustomUserSettings = defineRestOperation({
23
- id: "docusign.retrieve-custom-user-settings",
24
- slug: "DOCUSIGN_RETRIEVE_CUSTOM_USER_SETTINGS",
25
- name: "Retrieve Custom User Settings",
26
- description: "Retrieve the custom settings on a user.",
27
- method: "GET",
28
- path: (ctx) => `/users/${ctx.encode(String(ctx.input.userId))}/custom_settings`,
29
- input: userId,
30
- output: docusignGenericObjectSchema
31
- });
32
- const deleteCustomUserSettings = defineRestOperation({
33
- id: "docusign.delete-custom-user-settings",
34
- slug: "DOCUSIGN_DELETE_CUSTOM_USER_SETTINGS",
35
- name: "Delete Custom User Settings",
36
- description: "Delete the custom settings on a user.",
37
- needsApproval: true,
38
- method: "DELETE",
39
- path: (ctx) => `/users/${ctx.encode(String(ctx.input.userId))}/custom_settings`,
40
- input: userId.extend({ customSettings: docusignLooseObjectSchema() }),
41
- output: docusignSuccessSchema,
42
- body: (input) => input.customSettings,
43
- transformResponse: () => ({ success: true })
44
- });
45
- const retrieveUserAccountSettings = defineRestOperation({
46
- id: "docusign.retrieve-user-account-settings",
47
- slug: "DOCUSIGN_RETRIEVE_USER_ACCOUNT_SETTINGS",
48
- name: "Retrieve User Account Settings",
49
- description: "Retrieve the account-level user settings.",
50
- method: "GET",
51
- path: (ctx) => `/users/${ctx.encode(String(ctx.input.userId))}/settings`,
52
- input: userId,
53
- output: docusignGenericObjectSchema
54
- });
55
- const updateUserAccountSettings = defineRestOperation({
56
- id: "docusign.update-user-account-settings",
57
- slug: "DOCUSIGN_UPDATE_USER_ACCOUNT_SETTINGS",
58
- name: "Update User Account Settings",
59
- description: "Update the account-level user settings.",
60
- needsApproval: true,
61
- method: "PUT",
62
- path: (ctx) => `/users/${ctx.encode(String(ctx.input.userId))}/settings`,
63
- input: userId.extend({ settings: docusignLooseObjectSchema() }),
64
- output: docusignGenericObjectSchema,
65
- body: (input) => input.settings
66
- });
67
-
68
- //#endregion
69
- export { addOrUpdateUserCustomSettings, deleteCustomUserSettings, retrieveCustomUserSettings, retrieveUserAccountSettings, updateUserAccountSettings };
@@ -1,80 +0,0 @@
1
- import { z } from "zod";
2
- import * as _keystrokehq_core0 from "@keystrokehq/core";
3
-
4
- //#region src/user-profile.d.ts
5
- declare const retrieveUserProfileImage: _keystrokehq_core0.Operation<z.ZodObject<{
6
- userId: z.ZodString;
7
- }, z.core.$strip>, z.ZodObject<{
8
- contentType: z.ZodOptional<z.ZodString>;
9
- contentDisposition: z.ZodOptional<z.ZodString>;
10
- status: z.ZodNumber;
11
- body: z.ZodString;
12
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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>>], undefined>;
17
- declare const updateUserProfileImage: _keystrokehq_core0.Operation<z.ZodObject<{
18
- userId: z.ZodString;
19
- image: z.ZodString;
20
- }, z.core.$strip>, z.ZodObject<{
21
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
22
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
23
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
24
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
25
- DOCUSIGN_BASE_URI: z.ZodURL;
26
- }, z.core.$strip>>], undefined>;
27
- declare const deleteUserProfileImage: _keystrokehq_core0.Operation<z.ZodObject<{
28
- userId: z.ZodString;
29
- }, z.core.$strip>, z.ZodObject<{
30
- success: z.ZodBoolean;
31
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", 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>;
36
- declare const retrieveUserProfileInformation: _keystrokehq_core0.Operation<z.ZodObject<{
37
- userId: z.ZodString;
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<"keystroke: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>>], undefined>;
45
- declare const updateUserProfileInformation: _keystrokehq_core0.Operation<z.ZodObject<{
46
- userId: z.ZodString;
47
- profile: z.ZodObject<{
48
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
49
- }, z.core.$catchall<z.ZodUnknown>>;
50
- }, z.core.$strip>, z.ZodObject<{
51
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
52
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
53
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
54
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
55
- DOCUSIGN_BASE_URI: z.ZodURL;
56
- }, z.core.$strip>>], undefined>;
57
- declare const retrieveSharedItemStatusForUsers: _keystrokehq_core0.Operation<z.ZodObject<{
58
- userIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
59
- itemType: z.ZodOptional<z.ZodString>;
60
- shared: z.ZodOptional<z.ZodString>;
61
- }, z.core.$strip>, z.ZodObject<{
62
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
63
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
64
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
65
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
66
- DOCUSIGN_BASE_URI: z.ZodURL;
67
- }, z.core.$strip>>], undefined>;
68
- declare const setSharedAccessForUsersAndTemplates: _keystrokehq_core0.Operation<z.ZodObject<{
69
- users: z.ZodArray<z.ZodObject<{
70
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
71
- }, z.core.$catchall<z.ZodUnknown>>>;
72
- }, z.core.$strip>, z.ZodObject<{
73
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
74
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
75
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
76
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
77
- DOCUSIGN_BASE_URI: z.ZodURL;
78
- }, z.core.$strip>>], undefined>;
79
- //#endregion
80
- export { deleteUserProfileImage, retrieveSharedItemStatusForUsers, retrieveUserProfileImage, retrieveUserProfileInformation, setSharedAccessForUsersAndTemplates, updateUserProfileImage, updateUserProfileInformation };
@@ -1,106 +0,0 @@
1
- import { docusignGenericObjectSchema, docusignLooseObjectSchema, docusignSuccessSchema } from "./schemas/index.mjs";
2
- import { r as defineRestOperation, t as defineBinaryOperation } from "./operation-helpers-D25WHTo1.mjs";
3
- import { z } from "zod";
4
-
5
- //#region src/user-profile.ts
6
- /**
7
- * User profile, profile image, shared access. Covers PLAN.md § 6.24.
8
- */
9
- const userId = z.object({ userId: z.string().min(1) });
10
- const binaryResponseSchema = docusignLooseObjectSchema({
11
- contentType: z.string().optional(),
12
- contentDisposition: z.string().optional(),
13
- status: z.number(),
14
- body: z.string()
15
- });
16
- const retrieveUserProfileImage = defineBinaryOperation({
17
- id: "docusign.retrieve-user-profile-image",
18
- slug: "DOCUSIGN_RETRIEVE_USER_PROFILE_IMAGE",
19
- name: "Retrieve User Profile Image",
20
- description: "Download the user profile image.",
21
- method: "GET",
22
- path: (ctx) => `/users/${ctx.encode(String(ctx.input.userId))}/profile/image`,
23
- input: userId,
24
- accept: "image/png",
25
- output: binaryResponseSchema
26
- });
27
- const updateUserProfileImage = defineRestOperation({
28
- id: "docusign.update-user-profile-image",
29
- slug: "DOCUSIGN_UPDATE_USER_PROFILE_IMAGE",
30
- name: "Update User Profile Image",
31
- description: "Upload a new user profile image.",
32
- needsApproval: true,
33
- method: "PUT",
34
- path: (ctx) => `/users/${ctx.encode(String(ctx.input.userId))}/profile/image`,
35
- input: userId.extend({ image: z.string().min(1) }),
36
- output: docusignGenericObjectSchema,
37
- body: (input) => ({ image: input.image })
38
- });
39
- const deleteUserProfileImage = defineRestOperation({
40
- id: "docusign.delete-user-profile-image",
41
- slug: "DOCUSIGN_DELETE_USER_PROFILE_IMAGE",
42
- name: "Delete User Profile Image",
43
- description: "Delete the user profile image.",
44
- needsApproval: true,
45
- method: "DELETE",
46
- path: (ctx) => `/users/${ctx.encode(String(ctx.input.userId))}/profile/image`,
47
- input: userId,
48
- output: docusignSuccessSchema,
49
- transformResponse: () => ({ success: true })
50
- });
51
- const retrieveUserProfileInformation = defineRestOperation({
52
- id: "docusign.retrieve-user-profile-information",
53
- slug: "DOCUSIGN_RETRIEVE_USER_PROFILE_INFORMATION",
54
- name: "Retrieve User Profile Information",
55
- description: "Retrieve the user profile information.",
56
- method: "GET",
57
- path: (ctx) => `/users/${ctx.encode(String(ctx.input.userId))}/profile`,
58
- input: userId,
59
- output: docusignGenericObjectSchema
60
- });
61
- const updateUserProfileInformation = defineRestOperation({
62
- id: "docusign.update-user-profile-information",
63
- slug: "DOCUSIGN_UPDATE_USER_PROFILE_INFORMATION",
64
- name: "Update User Profile Information",
65
- description: "Update the user profile information.",
66
- needsApproval: true,
67
- method: "PUT",
68
- path: (ctx) => `/users/${ctx.encode(String(ctx.input.userId))}/profile`,
69
- input: userId.extend({ profile: docusignLooseObjectSchema() }),
70
- output: docusignGenericObjectSchema,
71
- body: (input) => input.profile
72
- });
73
- const retrieveSharedItemStatusForUsers = defineRestOperation({
74
- id: "docusign.retrieve-shared-item-status-for-users",
75
- slug: "DOCUSIGN_RETRIEVE_SHARED_ITEM_STATUS_FOR_USERS",
76
- name: "Retrieve Shared Item Status For Users",
77
- description: "Retrieve the shared access status for users on the account.",
78
- method: "GET",
79
- path: "/users/shared_access",
80
- input: z.object({
81
- userIds: z.array(z.string()).optional(),
82
- itemType: z.string().optional(),
83
- shared: z.string().optional()
84
- }),
85
- output: docusignGenericObjectSchema,
86
- query: (input) => ({
87
- user_ids: input.userIds,
88
- item_type: input.itemType,
89
- shared: input.shared
90
- })
91
- });
92
- const setSharedAccessForUsersAndTemplates = defineRestOperation({
93
- id: "docusign.set-shared-access-for-users-and-templates",
94
- slug: "DOCUSIGN_SET_SHARED_ACCESS_FOR_USERS_AND_TEMPLATES",
95
- name: "Set Shared Access For Users And Templates",
96
- description: "Update shared access for users across templates.",
97
- needsApproval: true,
98
- method: "PUT",
99
- path: "/users/shared_access",
100
- input: z.object({ users: z.array(docusignLooseObjectSchema()).min(1) }),
101
- output: docusignGenericObjectSchema,
102
- body: (input) => ({ users: input.users })
103
- });
104
-
105
- //#endregion
106
- export { deleteUserProfileImage, retrieveSharedItemStatusForUsers, retrieveUserProfileImage, retrieveUserProfileInformation, setSharedAccessForUsersAndTemplates, updateUserProfileImage, updateUserProfileInformation };