@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
@@ -1,129 +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/user-authorizations.d.ts
6
- declare const createOrUpdateUserAuthorizations: _keystrokehq_core0.Operation<z.ZodObject<{
7
- userId: z.ZodString;
8
- authorizations: z.ZodArray<z.ZodObject<{
9
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
10
- }, z.core.$catchall<z.ZodUnknown>>>;
11
- }, z.core.$strip>, z.ZodObject<{
12
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
13
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
14
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
15
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
16
- DOCUSIGN_BASE_URI: z.ZodURL;
17
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
18
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
19
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
20
- DOCUSIGN_BASE_URI: z.ZodURL;
21
- }, z.core.$strip>>[] | undefined>], undefined>;
22
- declare const createUserAuthorizationForAgentUser: _keystrokehq_core0.Operation<z.ZodObject<{
23
- userId: z.ZodString;
24
- authorization: z.ZodObject<{
25
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
26
- }, z.core.$catchall<z.ZodUnknown>>;
27
- }, z.core.$strip>, z.ZodObject<{
28
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
29
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
30
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
31
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
32
- DOCUSIGN_BASE_URI: z.ZodURL;
33
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
34
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
35
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
36
- DOCUSIGN_BASE_URI: z.ZodURL;
37
- }, z.core.$strip>>[] | undefined>], undefined>;
38
- declare const getUserAuthorizationDetails: _keystrokehq_core0.Operation<z.ZodObject<{
39
- userId: z.ZodString;
40
- authorizationId: z.ZodString;
41
- }, z.core.$strip>, z.ZodObject<{
42
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
43
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
44
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
45
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
46
- DOCUSIGN_BASE_URI: z.ZodURL;
47
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
48
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
49
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
50
- DOCUSIGN_BASE_URI: z.ZodURL;
51
- }, z.core.$strip>>[] | undefined>], undefined>;
52
- declare const getUserAuthorizationsForPrincipal: _keystrokehq_core0.Operation<z.ZodObject<{
53
- userId: z.ZodString;
54
- startPosition: z.ZodOptional<z.ZodNumber>;
55
- count: z.ZodOptional<z.ZodNumber>;
56
- permissions: z.ZodOptional<z.ZodString>;
57
- }, z.core.$strip>, z.ZodObject<{
58
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
59
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
60
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
61
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
62
- DOCUSIGN_BASE_URI: z.ZodURL;
63
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<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>], undefined>;
68
- declare const getAgentUserAuthorizations: _keystrokehq_core0.Operation<z.ZodObject<{
69
- userId: z.ZodString;
70
- startPosition: z.ZodOptional<z.ZodNumber>;
71
- count: z.ZodOptional<z.ZodNumber>;
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<"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>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
79
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
80
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
81
- DOCUSIGN_BASE_URI: z.ZodURL;
82
- }, z.core.$strip>>[] | undefined>], undefined>;
83
- declare const updateUserAuthorizationDates: _keystrokehq_core0.Operation<z.ZodObject<{
84
- userId: z.ZodString;
85
- authorizationId: z.ZodString;
86
- authorization: z.ZodObject<{
87
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
88
- }, z.core.$catchall<z.ZodUnknown>>;
89
- }, z.core.$strip>, z.ZodObject<{
90
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
91
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
92
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
93
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
94
- DOCUSIGN_BASE_URI: z.ZodURL;
95
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
96
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
97
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
98
- DOCUSIGN_BASE_URI: z.ZodURL;
99
- }, z.core.$strip>>[] | undefined>], undefined>;
100
- declare const deleteUserAuthorization: _keystrokehq_core0.Operation<z.ZodObject<{
101
- userId: z.ZodString;
102
- authorizationId: z.ZodString;
103
- }, z.core.$strip>, z.ZodObject<{
104
- success: z.ZodBoolean;
105
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
106
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
107
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
108
- DOCUSIGN_BASE_URI: z.ZodURL;
109
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
110
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
111
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
112
- DOCUSIGN_BASE_URI: z.ZodURL;
113
- }, z.core.$strip>>[] | undefined>], undefined>;
114
- declare const deleteUserAuthorizations: _keystrokehq_core0.Operation<z.ZodObject<{
115
- userId: z.ZodString;
116
- authorizationIdList: z.ZodArray<z.ZodString>;
117
- }, z.core.$strip>, z.ZodObject<{
118
- success: z.ZodBoolean;
119
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
120
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
121
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
122
- DOCUSIGN_BASE_URI: z.ZodURL;
123
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
124
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
125
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
126
- DOCUSIGN_BASE_URI: z.ZodURL;
127
- }, z.core.$strip>>[] | undefined>], undefined>;
128
- //#endregion
129
- export { 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-Bqp7KoLi.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,81 +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/user-custom-settings.d.ts
6
- declare const addOrUpdateUserCustomSettings: _keystrokehq_core0.Operation<z.ZodObject<{
7
- userId: z.ZodString;
8
- customSettings: z.ZodObject<{
9
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
10
- }, z.core.$catchall<z.ZodUnknown>>;
11
- }, z.core.$strip>, z.ZodObject<{
12
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
13
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
14
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
15
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
16
- DOCUSIGN_BASE_URI: z.ZodURL;
17
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
18
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
19
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
20
- DOCUSIGN_BASE_URI: z.ZodURL;
21
- }, z.core.$strip>>[] | undefined>], undefined>;
22
- declare const retrieveCustomUserSettings: _keystrokehq_core0.Operation<z.ZodObject<{
23
- userId: z.ZodString;
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 deleteCustomUserSettings: _keystrokehq_core0.Operation<z.ZodObject<{
36
- userId: z.ZodString;
37
- customSettings: z.ZodObject<{
38
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
39
- }, z.core.$catchall<z.ZodUnknown>>;
40
- }, z.core.$strip>, z.ZodObject<{
41
- success: z.ZodBoolean;
42
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"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>, readonly _keystrokehq_core_credential_set0.CredentialConnection<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>], undefined>;
51
- declare const retrieveUserAccountSettings: _keystrokehq_core0.Operation<z.ZodObject<{
52
- userId: z.ZodString;
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 updateUserAccountSettings: _keystrokehq_core0.Operation<z.ZodObject<{
65
- userId: z.ZodString;
66
- settings: z.ZodObject<{
67
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
68
- }, z.core.$catchall<z.ZodUnknown>>;
69
- }, z.core.$strip>, z.ZodObject<{
70
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
71
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
72
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
73
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
74
- DOCUSIGN_BASE_URI: z.ZodURL;
75
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
76
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
77
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
78
- DOCUSIGN_BASE_URI: z.ZodURL;
79
- }, z.core.$strip>>[] | undefined>], undefined>;
80
- //#endregion
81
- 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-Bqp7KoLi.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,109 +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/user-profile.d.ts
6
- declare const retrieveUserProfileImage: _keystrokehq_core0.Operation<z.ZodObject<{
7
- userId: z.ZodString;
8
- }, z.core.$strip>, z.ZodObject<{
9
- contentType: z.ZodOptional<z.ZodString>;
10
- contentDisposition: z.ZodOptional<z.ZodString>;
11
- status: z.ZodNumber;
12
- body: z.ZodString;
13
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
14
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
15
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
16
- DOCUSIGN_BASE_URI: z.ZodURL;
17
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
18
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
19
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
20
- DOCUSIGN_BASE_URI: z.ZodURL;
21
- }, z.core.$strip>>[] | undefined>], undefined>;
22
- declare const updateUserProfileImage: _keystrokehq_core0.Operation<z.ZodObject<{
23
- userId: z.ZodString;
24
- image: z.ZodString;
25
- }, z.core.$strip>, z.ZodObject<{
26
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
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
- declare const deleteUserProfileImage: _keystrokehq_core0.Operation<z.ZodObject<{
37
- userId: z.ZodString;
38
- }, z.core.$strip>, z.ZodObject<{
39
- success: z.ZodBoolean;
40
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
41
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
42
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
43
- DOCUSIGN_BASE_URI: z.ZodURL;
44
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
45
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
46
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
47
- DOCUSIGN_BASE_URI: z.ZodURL;
48
- }, z.core.$strip>>[] | undefined>], undefined>;
49
- declare const retrieveUserProfileInformation: _keystrokehq_core0.Operation<z.ZodObject<{
50
- userId: z.ZodString;
51
- }, z.core.$strip>, z.ZodObject<{
52
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
53
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
54
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
55
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
56
- DOCUSIGN_BASE_URI: z.ZodURL;
57
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<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>], undefined>;
62
- declare const updateUserProfileInformation: _keystrokehq_core0.Operation<z.ZodObject<{
63
- userId: z.ZodString;
64
- profile: z.ZodObject<{
65
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
66
- }, z.core.$catchall<z.ZodUnknown>>;
67
- }, z.core.$strip>, z.ZodObject<{
68
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
69
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
70
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
71
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
72
- DOCUSIGN_BASE_URI: z.ZodURL;
73
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
74
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
75
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
76
- DOCUSIGN_BASE_URI: z.ZodURL;
77
- }, z.core.$strip>>[] | undefined>], undefined>;
78
- declare const retrieveSharedItemStatusForUsers: _keystrokehq_core0.Operation<z.ZodObject<{
79
- userIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
80
- itemType: z.ZodOptional<z.ZodString>;
81
- shared: z.ZodOptional<z.ZodString>;
82
- }, z.core.$strip>, z.ZodObject<{
83
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
84
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
85
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
86
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
87
- DOCUSIGN_BASE_URI: z.ZodURL;
88
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
89
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
90
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
91
- DOCUSIGN_BASE_URI: z.ZodURL;
92
- }, z.core.$strip>>[] | undefined>], undefined>;
93
- declare const setSharedAccessForUsersAndTemplates: _keystrokehq_core0.Operation<z.ZodObject<{
94
- users: z.ZodArray<z.ZodObject<{
95
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
96
- }, z.core.$catchall<z.ZodUnknown>>>;
97
- }, z.core.$strip>, z.ZodObject<{
98
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
99
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
100
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
101
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
102
- DOCUSIGN_BASE_URI: z.ZodURL;
103
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
104
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
105
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
106
- DOCUSIGN_BASE_URI: z.ZodURL;
107
- }, z.core.$strip>>[] | undefined>], undefined>;
108
- //#endregion
109
- 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-Bqp7KoLi.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 };