@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,139 +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/signing-groups.d.ts
6
- declare const createSigningGroup: _keystrokehq_core0.Operation<z.ZodObject<{
7
- groups: 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<"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 retrieveAccountSigningGroups: _keystrokehq_core0.Operation<z.ZodObject<{
22
- groupType: z.ZodOptional<z.ZodString>;
23
- }, z.core.$strip>, z.ZodObject<{
24
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
25
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
26
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
27
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
28
- DOCUSIGN_BASE_URI: z.ZodURL;
29
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
30
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
31
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
32
- DOCUSIGN_BASE_URI: z.ZodURL;
33
- }, z.core.$strip>>[] | undefined>], undefined>;
34
- declare const getSigningGroupInformation: _keystrokehq_core0.Operation<z.ZodObject<{
35
- signingGroupId: z.ZodString;
36
- }, z.core.$strip>, z.ZodObject<{
37
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
38
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
39
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
40
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
41
- DOCUSIGN_BASE_URI: z.ZodURL;
42
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<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>], undefined>;
47
- declare const updateSigningGroupDetails: _keystrokehq_core0.Operation<z.ZodObject<{
48
- signingGroupId: z.ZodString;
49
- group: 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<"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
- declare const updateSigningGroupNames: _keystrokehq_core0.Operation<z.ZodObject<{
64
- groups: z.ZodArray<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 addMembersToSigningGroup: _keystrokehq_core0.Operation<z.ZodObject<{
79
- signingGroupId: z.ZodString;
80
- users: z.ZodArray<z.ZodObject<{
81
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
82
- }, z.core.$catchall<z.ZodUnknown>>>;
83
- }, z.core.$strip>, z.ZodObject<{
84
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
85
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
86
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
87
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
88
- DOCUSIGN_BASE_URI: z.ZodURL;
89
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
90
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
91
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
92
- DOCUSIGN_BASE_URI: z.ZodURL;
93
- }, z.core.$strip>>[] | undefined>], undefined>;
94
- declare const getMembersOfASigningGroup: _keystrokehq_core0.Operation<z.ZodObject<{
95
- signingGroupId: z.ZodString;
96
- }, z.core.$strip>, z.ZodObject<{
97
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
98
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
99
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
100
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
101
- DOCUSIGN_BASE_URI: z.ZodURL;
102
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
103
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
104
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
105
- DOCUSIGN_BASE_URI: z.ZodURL;
106
- }, z.core.$strip>>[] | undefined>], undefined>;
107
- declare const deleteMembersFromSigningGroup: _keystrokehq_core0.Operation<z.ZodObject<{
108
- signingGroupId: z.ZodString;
109
- users: z.ZodArray<z.ZodObject<{
110
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
111
- }, z.core.$catchall<z.ZodUnknown>>>;
112
- }, z.core.$strip>, z.ZodObject<{
113
- success: z.ZodBoolean;
114
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
115
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
116
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
117
- DOCUSIGN_BASE_URI: z.ZodURL;
118
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
119
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
120
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
121
- DOCUSIGN_BASE_URI: z.ZodURL;
122
- }, z.core.$strip>>[] | undefined>], undefined>;
123
- declare const deleteOneOrMoreSigningGroups: _keystrokehq_core0.Operation<z.ZodObject<{
124
- groups: z.ZodArray<z.ZodObject<{
125
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
126
- }, z.core.$catchall<z.ZodUnknown>>>;
127
- }, z.core.$strip>, z.ZodObject<{
128
- success: z.ZodBoolean;
129
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
130
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
131
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
132
- DOCUSIGN_BASE_URI: z.ZodURL;
133
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
134
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
135
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
136
- DOCUSIGN_BASE_URI: z.ZodURL;
137
- }, z.core.$strip>>[] | undefined>], undefined>;
138
- //#endregion
139
- export { addMembersToSigningGroup, createSigningGroup, deleteMembersFromSigningGroup, deleteOneOrMoreSigningGroups, getMembersOfASigningGroup, getSigningGroupInformation, retrieveAccountSigningGroups, updateSigningGroupDetails, updateSigningGroupNames };
@@ -1,117 +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/signing-groups.ts
6
- /**
7
- * Signing groups + membership. Covers PLAN.md § 6.20.
8
- */
9
- const groupId = z.object({ signingGroupId: z.string().min(1) });
10
- const createSigningGroup = defineRestOperation({
11
- id: "docusign.create-signing-group",
12
- slug: "DOCUSIGN_CREATE_SIGNING_GROUP",
13
- name: "Create Signing Group",
14
- description: "Create a new signing group on the account.",
15
- needsApproval: true,
16
- method: "POST",
17
- path: "/signing_groups",
18
- input: z.object({ groups: z.array(docusignLooseObjectSchema()).min(1) }),
19
- output: docusignGenericObjectSchema,
20
- body: (input) => ({ groups: input.groups })
21
- });
22
- const retrieveAccountSigningGroups = defineRestOperation({
23
- id: "docusign.retrieve-account-signing-groups",
24
- slug: "DOCUSIGN_RETRIEVE_ACCOUNT_SIGNING_GROUPS",
25
- name: "Retrieve Account Signing Groups",
26
- description: "List signing groups on the account.",
27
- method: "GET",
28
- path: "/signing_groups",
29
- input: z.object({ groupType: z.string().optional() }),
30
- output: docusignGenericObjectSchema,
31
- query: (input) => ({ group_type: input.groupType })
32
- });
33
- const getSigningGroupInformation = defineRestOperation({
34
- id: "docusign.get-signing-group-information",
35
- slug: "DOCUSIGN_GET_SIGNING_GROUP_INFORMATION",
36
- name: "Get Signing Group Information",
37
- description: "Retrieve a specific signing group.",
38
- method: "GET",
39
- path: (ctx) => `/signing_groups/${ctx.encode(String(ctx.input.signingGroupId))}`,
40
- input: groupId,
41
- output: docusignGenericObjectSchema
42
- });
43
- const updateSigningGroupDetails = defineRestOperation({
44
- id: "docusign.update-signing-group-details",
45
- slug: "DOCUSIGN_UPDATE_SIGNING_GROUP_DETAILS",
46
- name: "Update Signing Group Details",
47
- description: "Update details of a signing group.",
48
- needsApproval: true,
49
- method: "PUT",
50
- path: (ctx) => `/signing_groups/${ctx.encode(String(ctx.input.signingGroupId))}`,
51
- input: groupId.extend({ group: docusignLooseObjectSchema() }),
52
- output: docusignGenericObjectSchema,
53
- body: (input) => input.group
54
- });
55
- const updateSigningGroupNames = defineRestOperation({
56
- id: "docusign.update-signing-group-names",
57
- slug: "DOCUSIGN_UPDATE_SIGNING_GROUP_NAMES",
58
- name: "Update Signing Group Names",
59
- description: "Update signing group names in bulk.",
60
- needsApproval: true,
61
- method: "PUT",
62
- path: "/signing_groups",
63
- input: z.object({ groups: z.array(docusignLooseObjectSchema()).min(1) }),
64
- output: docusignGenericObjectSchema,
65
- body: (input) => ({ groups: input.groups })
66
- });
67
- const addMembersToSigningGroup = defineRestOperation({
68
- id: "docusign.add-members-to-signing-group",
69
- slug: "DOCUSIGN_ADD_MEMBERS_TO_SIGNING_GROUP",
70
- name: "Add Members To Signing Group",
71
- description: "Add users to a signing group.",
72
- needsApproval: true,
73
- method: "PUT",
74
- path: (ctx) => `/signing_groups/${ctx.encode(String(ctx.input.signingGroupId))}/users`,
75
- input: groupId.extend({ users: z.array(docusignLooseObjectSchema()).min(1) }),
76
- output: docusignGenericObjectSchema,
77
- body: (input) => ({ users: input.users })
78
- });
79
- const getMembersOfASigningGroup = defineRestOperation({
80
- id: "docusign.get-members-of-a-signing-group",
81
- slug: "DOCUSIGN_GET_MEMBERS_OF_A_SIGNING_GROUP",
82
- name: "Get Signing Group Members",
83
- description: "List members of a signing group.",
84
- method: "GET",
85
- path: (ctx) => `/signing_groups/${ctx.encode(String(ctx.input.signingGroupId))}/users`,
86
- input: groupId,
87
- output: docusignGenericObjectSchema
88
- });
89
- const deleteMembersFromSigningGroup = defineRestOperation({
90
- id: "docusign.delete-members-from-signing-group",
91
- slug: "DOCUSIGN_DELETE_MEMBERS_FROM_SIGNING_GROUP",
92
- name: "Delete Signing Group Members",
93
- description: "Remove users from a signing group.",
94
- needsApproval: true,
95
- method: "DELETE",
96
- path: (ctx) => `/signing_groups/${ctx.encode(String(ctx.input.signingGroupId))}/users`,
97
- input: groupId.extend({ users: z.array(docusignLooseObjectSchema()).min(1) }),
98
- output: docusignSuccessSchema,
99
- body: (input) => ({ users: input.users }),
100
- transformResponse: () => ({ success: true })
101
- });
102
- const deleteOneOrMoreSigningGroups = defineRestOperation({
103
- id: "docusign.delete-one-or-more-signing-groups",
104
- slug: "DOCUSIGN_DELETE_ONE_OR_MORE_SIGNING_GROUPS",
105
- name: "Delete One Or More Signing Groups",
106
- description: "Delete one or more signing groups by id.",
107
- needsApproval: true,
108
- method: "DELETE",
109
- path: "/signing_groups",
110
- input: z.object({ groups: z.array(docusignLooseObjectSchema()).min(1) }),
111
- output: docusignSuccessSchema,
112
- body: (input) => ({ groups: input.groups }),
113
- transformResponse: () => ({ success: true })
114
- });
115
-
116
- //#endregion
117
- export { addMembersToSigningGroup, createSigningGroup, deleteMembersFromSigningGroup, deleteOneOrMoreSigningGroups, getMembersOfASigningGroup, getSigningGroupInformation, retrieveAccountSigningGroups, updateSigningGroupDetails, updateSigningGroupNames };
@@ -1,199 +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/template-custom-fields.d.ts
6
- declare const createTemplateDocumentCustomFields: _keystrokehq_core0.Operation<z.ZodObject<{
7
- templateId: z.ZodString;
8
- documentId: z.ZodString;
9
- documentFields: z.ZodArray<z.ZodObject<{
10
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
11
- }, z.core.$catchall<z.ZodUnknown>>>;
12
- }, z.core.$strip>, z.ZodObject<{
13
- textCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
14
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
15
- }, z.core.$catchall<z.ZodUnknown>>>>;
16
- listCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
17
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
18
- }, z.core.$catchall<z.ZodUnknown>>>>;
19
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
20
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
21
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
22
- DOCUSIGN_BASE_URI: z.ZodURL;
23
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
24
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
25
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
26
- DOCUSIGN_BASE_URI: z.ZodURL;
27
- }, z.core.$strip>>[] | undefined>], undefined>;
28
- declare const updateTemplateDocumentCustomFields: _keystrokehq_core0.Operation<z.ZodObject<{
29
- templateId: z.ZodString;
30
- documentId: z.ZodString;
31
- documentFields: z.ZodArray<z.ZodObject<{
32
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
33
- }, z.core.$catchall<z.ZodUnknown>>>;
34
- }, z.core.$strip>, z.ZodObject<{
35
- textCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
36
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
37
- }, z.core.$catchall<z.ZodUnknown>>>>;
38
- listCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
39
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
40
- }, z.core.$catchall<z.ZodUnknown>>>>;
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 deleteCustomDocumentFieldsFromTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
51
- templateId: z.ZodString;
52
- documentId: z.ZodString;
53
- documentFields: z.ZodArray<z.ZodObject<{
54
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
55
- }, z.core.$catchall<z.ZodUnknown>>>;
56
- }, z.core.$strip>, z.ZodObject<{
57
- success: z.ZodBoolean;
58
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
59
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
60
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
61
- DOCUSIGN_BASE_URI: z.ZodURL;
62
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
63
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
64
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
65
- DOCUSIGN_BASE_URI: z.ZodURL;
66
- }, z.core.$strip>>[] | undefined>], undefined>;
67
- declare const createCustomFieldsInTemplateDocument: _keystrokehq_core0.Operation<z.ZodObject<{
68
- templateId: z.ZodString;
69
- documentId: z.ZodString;
70
- customFields: z.ZodObject<{
71
- textCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
72
- name: z.ZodString;
73
- value: z.ZodString;
74
- required: z.ZodOptional<z.ZodBoolean>;
75
- show: z.ZodOptional<z.ZodBoolean>;
76
- }, z.core.$catchall<z.ZodUnknown>>>>;
77
- listCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
78
- name: z.ZodString;
79
- value: z.ZodString;
80
- required: z.ZodOptional<z.ZodBoolean>;
81
- show: z.ZodOptional<z.ZodBoolean>;
82
- listItems: z.ZodOptional<z.ZodArray<z.ZodString>>;
83
- }, z.core.$catchall<z.ZodUnknown>>>>;
84
- }, z.core.$catchall<z.ZodUnknown>>;
85
- }, z.core.$strip>, z.ZodObject<{
86
- textCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
87
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
88
- }, z.core.$catchall<z.ZodUnknown>>>>;
89
- listCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
90
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
91
- }, z.core.$catchall<z.ZodUnknown>>>>;
92
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
93
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
94
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
95
- DOCUSIGN_BASE_URI: z.ZodURL;
96
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
97
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
98
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
99
- DOCUSIGN_BASE_URI: z.ZodURL;
100
- }, z.core.$strip>>[] | undefined>], undefined>;
101
- declare const retrieveCustomFieldsForTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
102
- templateId: z.ZodString;
103
- }, z.core.$strip>, z.ZodObject<{
104
- textCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
105
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
106
- }, z.core.$catchall<z.ZodUnknown>>>>;
107
- listCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
108
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
109
- }, z.core.$catchall<z.ZodUnknown>>>>;
110
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
111
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
112
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
113
- DOCUSIGN_BASE_URI: z.ZodURL;
114
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
115
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
116
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
117
- DOCUSIGN_BASE_URI: z.ZodURL;
118
- }, z.core.$strip>>[] | undefined>], undefined>;
119
- declare const retrieveTemplateCustomFields: _keystrokehq_core0.Operation<z.ZodObject<{
120
- templateId: z.ZodString;
121
- }, z.core.$strip>, z.ZodObject<{
122
- textCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
123
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
124
- }, z.core.$catchall<z.ZodUnknown>>>>;
125
- listCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
126
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
127
- }, z.core.$catchall<z.ZodUnknown>>>>;
128
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
129
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
130
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
131
- DOCUSIGN_BASE_URI: z.ZodURL;
132
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
133
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
134
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
135
- DOCUSIGN_BASE_URI: z.ZodURL;
136
- }, z.core.$strip>>[] | undefined>], undefined>;
137
- declare const updateTemplateCustomFields: _keystrokehq_core0.Operation<z.ZodObject<{
138
- templateId: z.ZodString;
139
- customFields: z.ZodObject<{
140
- textCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
141
- name: z.ZodString;
142
- value: z.ZodString;
143
- required: z.ZodOptional<z.ZodBoolean>;
144
- show: z.ZodOptional<z.ZodBoolean>;
145
- }, z.core.$catchall<z.ZodUnknown>>>>;
146
- listCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
147
- name: z.ZodString;
148
- value: z.ZodString;
149
- required: z.ZodOptional<z.ZodBoolean>;
150
- show: z.ZodOptional<z.ZodBoolean>;
151
- listItems: z.ZodOptional<z.ZodArray<z.ZodString>>;
152
- }, z.core.$catchall<z.ZodUnknown>>>>;
153
- }, z.core.$catchall<z.ZodUnknown>>;
154
- }, z.core.$strip>, z.ZodObject<{
155
- textCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
156
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
157
- }, z.core.$catchall<z.ZodUnknown>>>>;
158
- listCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
159
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
160
- }, z.core.$catchall<z.ZodUnknown>>>>;
161
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
162
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
163
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
164
- DOCUSIGN_BASE_URI: z.ZodURL;
165
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
166
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
167
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
168
- DOCUSIGN_BASE_URI: z.ZodURL;
169
- }, z.core.$strip>>[] | undefined>], undefined>;
170
- declare const deleteCustomFieldsInTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
171
- templateId: z.ZodString;
172
- customFields: z.ZodObject<{
173
- textCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
174
- name: z.ZodString;
175
- value: z.ZodString;
176
- required: z.ZodOptional<z.ZodBoolean>;
177
- show: z.ZodOptional<z.ZodBoolean>;
178
- }, z.core.$catchall<z.ZodUnknown>>>>;
179
- listCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
180
- name: z.ZodString;
181
- value: z.ZodString;
182
- required: z.ZodOptional<z.ZodBoolean>;
183
- show: z.ZodOptional<z.ZodBoolean>;
184
- listItems: z.ZodOptional<z.ZodArray<z.ZodString>>;
185
- }, z.core.$catchall<z.ZodUnknown>>>>;
186
- }, z.core.$catchall<z.ZodUnknown>>;
187
- }, z.core.$strip>, z.ZodObject<{
188
- success: z.ZodBoolean;
189
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
190
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
191
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
192
- DOCUSIGN_BASE_URI: z.ZodURL;
193
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
194
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
195
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
196
- DOCUSIGN_BASE_URI: z.ZodURL;
197
- }, z.core.$strip>>[] | undefined>], undefined>;
198
- //#endregion
199
- export { createCustomFieldsInTemplateDocument, createTemplateDocumentCustomFields, deleteCustomDocumentFieldsFromTemplate, deleteCustomFieldsInTemplate, retrieveCustomFieldsForTemplate, retrieveTemplateCustomFields, updateTemplateCustomFields, updateTemplateDocumentCustomFields };
@@ -1,107 +0,0 @@
1
- import { docusignCustomFieldsInputSchema, docusignCustomFieldsResponseSchema, docusignDocumentIdSchema, docusignLooseObjectSchema, docusignSuccessSchema, docusignTemplateIdSchema } from "./schemas/index.mjs";
2
- import { r as defineRestOperation } from "./operation-helpers-Bqp7KoLi.mjs";
3
- import { z } from "zod";
4
-
5
- //#region src/template-custom-fields.ts
6
- /**
7
- * Template custom fields (template + template document). Covers PLAN.md § 6.14.
8
- */
9
- const tplId = z.object({ templateId: docusignTemplateIdSchema });
10
- const tplDoc = tplId.extend({ documentId: docusignDocumentIdSchema });
11
- const createTemplateDocumentCustomFields = defineRestOperation({
12
- id: "docusign.create-template-document-custom-fields",
13
- slug: "DOCUSIGN_CREATE_TEMPLATE_DOCUMENT_CUSTOM_FIELDS",
14
- name: "Create Template Document Custom Fields",
15
- description: "Attach custom fields to a template document.",
16
- needsApproval: true,
17
- method: "POST",
18
- path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/documents/${ctx.encode(String(ctx.input.documentId))}/fields`,
19
- input: tplDoc.extend({ documentFields: z.array(docusignLooseObjectSchema()).min(1) }),
20
- output: docusignCustomFieldsResponseSchema,
21
- body: (input) => ({ documentFields: input.documentFields })
22
- });
23
- const updateTemplateDocumentCustomFields = defineRestOperation({
24
- id: "docusign.update-template-document-custom-fields",
25
- slug: "DOCUSIGN_UPDATE_TEMPLATE_DOCUMENT_CUSTOM_FIELDS",
26
- name: "Update Template Document Custom Fields",
27
- description: "Update custom fields on a template document.",
28
- needsApproval: true,
29
- method: "PUT",
30
- path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/documents/${ctx.encode(String(ctx.input.documentId))}/fields`,
31
- input: tplDoc.extend({ documentFields: z.array(docusignLooseObjectSchema()).min(1) }),
32
- output: docusignCustomFieldsResponseSchema,
33
- body: (input) => ({ documentFields: input.documentFields })
34
- });
35
- const deleteCustomDocumentFieldsFromTemplate = defineRestOperation({
36
- id: "docusign.delete-custom-document-fields-from-template",
37
- slug: "DOCUSIGN_DELETE_CUSTOM_DOCUMENT_FIELDS_FROM_TEMPLATE",
38
- name: "Delete Custom Document Fields From Template",
39
- description: "Remove custom fields from a template document.",
40
- needsApproval: true,
41
- method: "DELETE",
42
- path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/documents/${ctx.encode(String(ctx.input.documentId))}/fields`,
43
- input: tplDoc.extend({ documentFields: z.array(docusignLooseObjectSchema()).min(1) }),
44
- output: docusignSuccessSchema,
45
- body: (input) => ({ documentFields: input.documentFields }),
46
- transformResponse: () => ({ success: true })
47
- });
48
- const createCustomFieldsInTemplateDocument = defineRestOperation({
49
- id: "docusign.create-custom-fields-in-template-document",
50
- slug: "DOCUSIGN_CREATE_CUSTOM_FIELDS_IN_TEMPLATE_DOCUMENT",
51
- name: "Create Custom Fields In Template Document",
52
- description: "Alias for createTemplateDocumentCustomFields — attach custom fields to a template document.",
53
- needsApproval: true,
54
- method: "POST",
55
- path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/documents/${ctx.encode(String(ctx.input.documentId))}/custom_fields`,
56
- input: tplDoc.extend({ customFields: docusignCustomFieldsInputSchema }),
57
- output: docusignCustomFieldsResponseSchema,
58
- body: (input) => input.customFields
59
- });
60
- const retrieveCustomFieldsForTemplate = defineRestOperation({
61
- id: "docusign.retrieve-custom-fields-for-template",
62
- slug: "DOCUSIGN_RETRIEVE_CUSTOM_FIELDS_FOR_TEMPLATE",
63
- name: "Retrieve Custom Fields For Template",
64
- description: "Retrieve template-level custom fields.",
65
- method: "GET",
66
- path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/custom_fields`,
67
- input: tplId,
68
- output: docusignCustomFieldsResponseSchema
69
- });
70
- const retrieveTemplateCustomFields = defineRestOperation({
71
- id: "docusign.retrieve-template-custom-fields",
72
- slug: "DOCUSIGN_RETRIEVE_TEMPLATE_CUSTOM_FIELDS",
73
- name: "Retrieve Template Custom Fields",
74
- description: "Retrieve the template custom fields (alias).",
75
- method: "GET",
76
- path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/custom_fields`,
77
- input: tplId,
78
- output: docusignCustomFieldsResponseSchema
79
- });
80
- const updateTemplateCustomFields = defineRestOperation({
81
- id: "docusign.update-template-custom-fields",
82
- slug: "DOCUSIGN_UPDATE_TEMPLATE_CUSTOM_FIELDS",
83
- name: "Update Template Custom Fields",
84
- description: "Update the template-level custom fields.",
85
- needsApproval: true,
86
- method: "PUT",
87
- path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/custom_fields`,
88
- input: tplId.extend({ customFields: docusignCustomFieldsInputSchema }),
89
- output: docusignCustomFieldsResponseSchema,
90
- body: (input) => input.customFields
91
- });
92
- const deleteCustomFieldsInTemplate = defineRestOperation({
93
- id: "docusign.delete-custom-fields-in-template",
94
- slug: "DOCUSIGN_DELETE_CUSTOM_FIELDS_IN_TEMPLATE",
95
- name: "Delete Custom Fields In Template",
96
- description: "Delete template-level custom fields.",
97
- needsApproval: true,
98
- method: "DELETE",
99
- path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/custom_fields`,
100
- input: tplId.extend({ customFields: docusignCustomFieldsInputSchema }),
101
- output: docusignSuccessSchema,
102
- body: (input) => input.customFields,
103
- transformResponse: () => ({ success: true })
104
- });
105
-
106
- //#endregion
107
- export { createCustomFieldsInTemplateDocument, createTemplateDocumentCustomFields, deleteCustomDocumentFieldsFromTemplate, deleteCustomFieldsInTemplate, retrieveCustomFieldsForTemplate, retrieveTemplateCustomFields, updateTemplateCustomFields, updateTemplateDocumentCustomFields };