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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/README.md +3 -2
  2. package/dist/credential-sets/index.d.mts +2 -0
  3. package/dist/credential-sets/index.mjs +4 -0
  4. package/dist/docusign-jwt.credential-set-B0sXS-5i.mjs +39 -0
  5. package/dist/docusign-jwt.credential-set-Bz99DTgx.d.mts +90 -0
  6. package/dist/docusign.credential-set-DRhK9ICD.mjs +183 -0
  7. package/dist/index.d.mts +4 -1
  8. package/dist/index.mjs +6 -1
  9. package/dist/operations/index.d.mts +2 -0
  10. package/dist/operations/index.mjs +3 -0
  11. package/dist/void-envelope.operation-Bim49UXq.mjs +8192 -0
  12. package/dist/void-envelope.operation-D-onxqe_.d.mts +18203 -0
  13. package/package.json +9 -225
  14. package/dist/_official/index.d.mts +0 -89
  15. package/dist/_official/index.mjs +0 -3
  16. package/dist/_runtime/index.d.mts +0 -1
  17. package/dist/_runtime/index.mjs +0 -1
  18. package/dist/account-custom-fields.d.mts +0 -65
  19. package/dist/account-custom-fields.mjs +0 -63
  20. package/dist/account-stamps.d.mts +0 -164
  21. package/dist/account-stamps.mjs +0 -144
  22. package/dist/account-tabs.d.mts +0 -90
  23. package/dist/account-tabs.mjs +0 -80
  24. package/dist/account.d.mts +0 -233
  25. package/dist/account.mjs +0 -207
  26. package/dist/admin.d.mts +0 -18
  27. package/dist/admin.mjs +0 -20
  28. package/dist/auth.d.mts +0 -37
  29. package/dist/auth.mjs +0 -53
  30. package/dist/bcc-archive.d.mts +0 -64
  31. package/dist/bcc-archive.mjs +0 -70
  32. package/dist/billing.d.mts +0 -217
  33. package/dist/billing.mjs +0 -208
  34. package/dist/brands.d.mts +0 -192
  35. package/dist/brands.mjs +0 -157
  36. package/dist/bulk-send.d.mts +0 -137
  37. package/dist/bulk-send.mjs +0 -115
  38. package/dist/chunked-uploads.d.mts +0 -78
  39. package/dist/chunked-uploads.mjs +0 -74
  40. package/dist/click.d.mts +0 -18
  41. package/dist/click.mjs +0 -20
  42. package/dist/client.d.mts +0 -47
  43. package/dist/client.mjs +0 -286
  44. package/dist/clm.d.mts +0 -18
  45. package/dist/clm.mjs +0 -20
  46. package/dist/cloud-storage.d.mts +0 -122
  47. package/dist/cloud-storage.mjs +0 -115
  48. package/dist/connect.d.mts +0 -252
  49. package/dist/connect.mjs +0 -217
  50. package/dist/connection.d.mts +0 -2
  51. package/dist/connection.mjs +0 -3
  52. package/dist/contacts.d.mts +0 -80
  53. package/dist/contacts.mjs +0 -79
  54. package/dist/enote.d.mts +0 -44
  55. package/dist/enote.mjs +0 -45
  56. package/dist/envelope-attachments.d.mts +0 -86
  57. package/dist/envelope-attachments.mjs +0 -76
  58. package/dist/envelope-custom-fields.d.mts +0 -166
  59. package/dist/envelope-custom-fields.mjs +0 -92
  60. package/dist/envelope-documents.d.mts +0 -271
  61. package/dist/envelope-documents.mjs +0 -219
  62. package/dist/envelope-email.d.mts +0 -65
  63. package/dist/envelope-email.mjs +0 -60
  64. package/dist/envelope-lock.d.mts +0 -65
  65. package/dist/envelope-lock.mjs +0 -60
  66. package/dist/envelope-logs.d.mts +0 -126
  67. package/dist/envelope-logs.mjs +0 -126
  68. package/dist/envelope-notifications.d.mts +0 -47
  69. package/dist/envelope-notifications.mjs +0 -44
  70. package/dist/envelope-recipients.d.mts +0 -171
  71. package/dist/envelope-recipients.mjs +0 -136
  72. package/dist/envelope-tabs.d.mts +0 -52
  73. package/dist/envelope-tabs.mjs +0 -49
  74. package/dist/envelope-views.d.mts +0 -99
  75. package/dist/envelope-views.mjs +0 -88
  76. package/dist/envelope-workflow.d.mts +0 -208
  77. package/dist/envelope-workflow.mjs +0 -176
  78. package/dist/envelopes.d.mts +0 -430
  79. package/dist/envelopes.mjs +0 -190
  80. package/dist/errors.d.mts +0 -48
  81. package/dist/errors.mjs +0 -76
  82. package/dist/events.d.mts +0 -192
  83. package/dist/events.mjs +0 -146
  84. package/dist/factory-DFejlPDe.mjs +0 -7
  85. package/dist/groups.d.mts +0 -191
  86. package/dist/groups.mjs +0 -146
  87. package/dist/integration-BcEp_dFX.mjs +0 -365
  88. package/dist/integration-CdIRNjCz.d.mts +0 -72
  89. package/dist/messaging.d.mts +0 -1
  90. package/dist/messaging.mjs +0 -1
  91. package/dist/monitor.d.mts +0 -18
  92. package/dist/monitor.mjs +0 -20
  93. package/dist/notary.d.mts +0 -129
  94. package/dist/notary.mjs +0 -122
  95. package/dist/operation-helpers-Bqp7KoLi.mjs +0 -102
  96. package/dist/permission-profiles.d.mts +0 -78
  97. package/dist/permission-profiles.mjs +0 -70
  98. package/dist/power-forms.d.mts +0 -51
  99. package/dist/power-forms.mjs +0 -62
  100. package/dist/rooms.d.mts +0 -18
  101. package/dist/rooms.mjs +0 -28
  102. package/dist/shared-DTUCJayR.mjs +0 -27
  103. package/dist/signing-groups.d.mts +0 -139
  104. package/dist/signing-groups.mjs +0 -117
  105. package/dist/template-custom-fields.d.mts +0 -199
  106. package/dist/template-custom-fields.mjs +0 -107
  107. package/dist/template-documents.d.mts +0 -132
  108. package/dist/template-documents.mjs +0 -109
  109. package/dist/template-lock.d.mts +0 -65
  110. package/dist/template-lock.mjs +0 -60
  111. package/dist/template-sharing.d.mts +0 -129
  112. package/dist/template-sharing.mjs +0 -108
  113. package/dist/template-workflow.d.mts +0 -184
  114. package/dist/template-workflow.mjs +0 -152
  115. package/dist/templates.d.mts +0 -158
  116. package/dist/templates.mjs +0 -110
  117. package/dist/user-authorizations.d.mts +0 -129
  118. package/dist/user-authorizations.mjs +0 -133
  119. package/dist/user-custom-settings.d.mts +0 -81
  120. package/dist/user-custom-settings.mjs +0 -69
  121. package/dist/user-profile.d.mts +0 -109
  122. package/dist/user-profile.mjs +0 -106
  123. package/dist/user-signatures.d.mts +0 -208
  124. package/dist/user-signatures.mjs +0 -180
  125. package/dist/users.d.mts +0 -128
  126. package/dist/users.mjs +0 -98
  127. package/dist/verification.d.mts +0 -19
  128. package/dist/verification.mjs +0 -59
  129. package/dist/workspaces.d.mts +0 -173
  130. package/dist/workspaces.mjs +0 -143
package/dist/groups.d.mts DELETED
@@ -1,191 +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/groups.d.ts
6
- declare const createGroupsForAccount: _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
- resultSetSize: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
12
- totalSetSize: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
13
- startPosition: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
14
- endPosition: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
15
- nextUri: z.ZodOptional<z.ZodString>;
16
- previousUri: z.ZodOptional<z.ZodString>;
17
- groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
18
- groupId: z.ZodOptional<z.ZodString>;
19
- groupName: z.ZodOptional<z.ZodString>;
20
- groupType: z.ZodOptional<z.ZodString>;
21
- permissionProfileId: z.ZodOptional<z.ZodString>;
22
- }, z.core.$catchall<z.ZodUnknown>>>>;
23
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
24
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
25
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
26
- DOCUSIGN_BASE_URI: z.ZodURL;
27
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
28
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
29
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
30
- DOCUSIGN_BASE_URI: z.ZodURL;
31
- }, z.core.$strip>>[] | undefined>], undefined>;
32
- declare const getGroupsInformationForAccount: _keystrokehq_core0.Operation<z.ZodObject<{
33
- startPosition: z.ZodOptional<z.ZodNumber>;
34
- count: z.ZodOptional<z.ZodNumber>;
35
- groupType: z.ZodOptional<z.ZodString>;
36
- searchText: z.ZodOptional<z.ZodString>;
37
- }, z.core.$strip>, z.ZodObject<{
38
- resultSetSize: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
39
- totalSetSize: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
40
- startPosition: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
41
- endPosition: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
42
- nextUri: z.ZodOptional<z.ZodString>;
43
- previousUri: z.ZodOptional<z.ZodString>;
44
- groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
45
- groupId: z.ZodOptional<z.ZodString>;
46
- groupName: z.ZodOptional<z.ZodString>;
47
- groupType: z.ZodOptional<z.ZodString>;
48
- permissionProfileId: z.ZodOptional<z.ZodString>;
49
- }, z.core.$catchall<z.ZodUnknown>>>>;
50
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
51
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
52
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
53
- DOCUSIGN_BASE_URI: z.ZodURL;
54
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<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>], undefined>;
59
- declare const updateGroupInformation: _keystrokehq_core0.Operation<z.ZodObject<{
60
- groups: z.ZodArray<z.ZodObject<{
61
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
62
- }, z.core.$catchall<z.ZodUnknown>>>;
63
- }, z.core.$strip>, z.ZodObject<{
64
- resultSetSize: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
65
- totalSetSize: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
66
- startPosition: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
67
- endPosition: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
68
- nextUri: z.ZodOptional<z.ZodString>;
69
- previousUri: z.ZodOptional<z.ZodString>;
70
- groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
71
- groupId: z.ZodOptional<z.ZodString>;
72
- groupName: z.ZodOptional<z.ZodString>;
73
- groupType: z.ZodOptional<z.ZodString>;
74
- permissionProfileId: z.ZodOptional<z.ZodString>;
75
- }, z.core.$catchall<z.ZodUnknown>>>>;
76
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
77
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
78
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
79
- DOCUSIGN_BASE_URI: z.ZodURL;
80
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<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>], undefined>;
85
- declare const deleteUserGroup: _keystrokehq_core0.Operation<z.ZodObject<{
86
- groups: z.ZodArray<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
- success: z.ZodBoolean;
91
- }, z.core.$strip>, 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 addUsersToExistingGroup: _keystrokehq_core0.Operation<z.ZodObject<{
101
- groupId: z.ZodString;
102
- users: z.ZodArray<z.ZodObject<{
103
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
104
- }, z.core.$catchall<z.ZodUnknown>>>;
105
- }, z.core.$strip>, z.ZodObject<{
106
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
107
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
108
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
109
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
110
- DOCUSIGN_BASE_URI: z.ZodURL;
111
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
112
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
113
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
114
- DOCUSIGN_BASE_URI: z.ZodURL;
115
- }, z.core.$strip>>[] | undefined>], undefined>;
116
- declare const getUsersInGroup: _keystrokehq_core0.Operation<z.ZodObject<{
117
- groupId: z.ZodString;
118
- startPosition: z.ZodOptional<z.ZodNumber>;
119
- count: z.ZodOptional<z.ZodNumber>;
120
- }, z.core.$strip>, z.ZodObject<{
121
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
122
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
123
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
124
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
125
- DOCUSIGN_BASE_URI: z.ZodURL;
126
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
127
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
128
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
129
- DOCUSIGN_BASE_URI: z.ZodURL;
130
- }, z.core.$strip>>[] | undefined>], undefined>;
131
- declare const deleteUsersFromGroup: _keystrokehq_core0.Operation<z.ZodObject<{
132
- groupId: z.ZodString;
133
- users: z.ZodArray<z.ZodObject<{
134
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
135
- }, z.core.$catchall<z.ZodUnknown>>>;
136
- }, z.core.$strip>, z.ZodObject<{
137
- success: z.ZodBoolean;
138
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
139
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
140
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
141
- DOCUSIGN_BASE_URI: z.ZodURL;
142
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
143
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
144
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
145
- DOCUSIGN_BASE_URI: z.ZodURL;
146
- }, z.core.$strip>>[] | undefined>], undefined>;
147
- declare const addExistingBrandToGroup: _keystrokehq_core0.Operation<z.ZodObject<{
148
- groupId: z.ZodString;
149
- brands: z.ZodArray<z.ZodObject<{
150
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
151
- }, z.core.$catchall<z.ZodUnknown>>>;
152
- }, z.core.$strip>, z.ZodObject<{
153
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
154
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
155
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
156
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
157
- DOCUSIGN_BASE_URI: z.ZodURL;
158
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
159
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
160
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
161
- DOCUSIGN_BASE_URI: z.ZodURL;
162
- }, z.core.$strip>>[] | undefined>], undefined>;
163
- declare const deleteBrandFromGroup: _keystrokehq_core0.Operation<z.ZodObject<{
164
- groupId: z.ZodString;
165
- brandId: z.ZodString;
166
- }, z.core.$strip>, z.ZodObject<{
167
- success: z.ZodBoolean;
168
- }, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
169
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
170
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
171
- DOCUSIGN_BASE_URI: z.ZodURL;
172
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
173
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
174
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
175
- DOCUSIGN_BASE_URI: z.ZodURL;
176
- }, z.core.$strip>>[] | undefined>], undefined>;
177
- declare const getBrandsInformationForGroup: _keystrokehq_core0.Operation<z.ZodObject<{
178
- groupId: z.ZodString;
179
- }, z.core.$strip>, z.ZodObject<{
180
- [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
181
- }, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
182
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
183
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
184
- DOCUSIGN_BASE_URI: z.ZodURL;
185
- }, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
186
- DOCUSIGN_ACCESS_TOKEN: z.ZodString;
187
- DOCUSIGN_ACCOUNT_ID: z.ZodString;
188
- DOCUSIGN_BASE_URI: z.ZodURL;
189
- }, z.core.$strip>>[] | undefined>], undefined>;
190
- //#endregion
191
- export { addExistingBrandToGroup, addUsersToExistingGroup, createGroupsForAccount, deleteBrandFromGroup, deleteUserGroup, deleteUsersFromGroup, getBrandsInformationForGroup, getGroupsInformationForAccount, getUsersInGroup, updateGroupInformation };
package/dist/groups.mjs DELETED
@@ -1,146 +0,0 @@
1
- import { docusignGenericObjectSchema, docusignGroupListSchema, docusignListPaginationInputSchema, 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/groups.ts
6
- /**
7
- * Account groups (groups + brands + users). Covers PLAN.md § 6.28.
8
- */
9
- const groupId = z.object({ groupId: z.string().min(1) });
10
- const groupBrand = groupId.extend({ brandId: z.string().min(1) });
11
- const createGroupsForAccount = defineRestOperation({
12
- id: "docusign.create-groups-for-account",
13
- slug: "DOCUSIGN_CREATE_GROUPS_FOR_ACCOUNT",
14
- name: "Create Groups For Account",
15
- description: "Create new groups on the account.",
16
- needsApproval: true,
17
- method: "POST",
18
- path: "/groups",
19
- input: z.object({ groups: z.array(docusignLooseObjectSchema()).min(1) }),
20
- output: docusignGroupListSchema,
21
- body: (input) => ({ groups: input.groups })
22
- });
23
- const getGroupsInformationForAccount = defineRestOperation({
24
- id: "docusign.get-groups-information-for-account",
25
- slug: "DOCUSIGN_GET_GROUPS_INFORMATION_FOR_ACCOUNT",
26
- name: "Get Groups For Account",
27
- description: "List groups on the account.",
28
- method: "GET",
29
- path: "/groups",
30
- input: docusignListPaginationInputSchema.extend({
31
- groupType: z.string().optional(),
32
- searchText: z.string().optional()
33
- }),
34
- output: docusignGroupListSchema,
35
- query: (input) => ({
36
- start_position: input.startPosition,
37
- count: input.count,
38
- group_type: input.groupType,
39
- search_text: input.searchText
40
- })
41
- });
42
- const updateGroupInformation = defineRestOperation({
43
- id: "docusign.update-group-information",
44
- slug: "DOCUSIGN_UPDATE_GROUP_INFORMATION",
45
- name: "Update Group Information",
46
- description: "Update information on a group.",
47
- needsApproval: true,
48
- method: "PUT",
49
- path: "/groups",
50
- input: z.object({ groups: z.array(docusignLooseObjectSchema()).min(1) }),
51
- output: docusignGroupListSchema,
52
- body: (input) => ({ groups: input.groups })
53
- });
54
- const deleteUserGroup = defineRestOperation({
55
- id: "docusign.delete-user-group",
56
- slug: "DOCUSIGN_DELETE_USER_GROUP",
57
- name: "Delete User Group",
58
- description: "Delete groups by id.",
59
- needsApproval: true,
60
- method: "DELETE",
61
- path: "/groups",
62
- input: z.object({ groups: z.array(docusignLooseObjectSchema()).min(1) }),
63
- output: docusignSuccessSchema,
64
- body: (input) => ({ groups: input.groups }),
65
- transformResponse: () => ({ success: true })
66
- });
67
- const addUsersToExistingGroup = defineRestOperation({
68
- id: "docusign.add-users-to-existing-group",
69
- slug: "DOCUSIGN_ADD_USERS_TO_EXISTING_GROUP",
70
- name: "Add Users To Existing Group",
71
- description: "Add users to an existing group.",
72
- needsApproval: true,
73
- method: "PUT",
74
- path: (ctx) => `/groups/${ctx.encode(String(ctx.input.groupId))}/users`,
75
- input: groupId.extend({ users: z.array(docusignLooseObjectSchema()).min(1) }),
76
- output: docusignGenericObjectSchema,
77
- body: (input) => ({ users: input.users })
78
- });
79
- const getUsersInGroup = defineRestOperation({
80
- id: "docusign.get-users-in-group",
81
- slug: "DOCUSIGN_GET_USERS_IN_GROUP",
82
- name: "Get Users In Group",
83
- description: "List users in a group.",
84
- method: "GET",
85
- path: (ctx) => `/groups/${ctx.encode(String(ctx.input.groupId))}/users`,
86
- input: groupId.extend({
87
- startPosition: z.number().int().nonnegative().optional(),
88
- count: z.number().int().positive().optional()
89
- }),
90
- output: docusignGenericObjectSchema,
91
- query: (input) => ({
92
- start_position: input.startPosition,
93
- count: input.count
94
- })
95
- });
96
- const deleteUsersFromGroup = defineRestOperation({
97
- id: "docusign.delete-users-from-group",
98
- slug: "DOCUSIGN_DELETE_USERS_FROM_GROUP",
99
- name: "Delete Users From Group",
100
- description: "Remove users from a group.",
101
- needsApproval: true,
102
- method: "DELETE",
103
- path: (ctx) => `/groups/${ctx.encode(String(ctx.input.groupId))}/users`,
104
- input: groupId.extend({ users: z.array(docusignLooseObjectSchema()).min(1) }),
105
- output: docusignSuccessSchema,
106
- body: (input) => ({ users: input.users }),
107
- transformResponse: () => ({ success: true })
108
- });
109
- const addExistingBrandToGroup = defineRestOperation({
110
- id: "docusign.add-existing-brand-to-group",
111
- slug: "DOCUSIGN_ADD_EXISTING_BRAND_TO_GROUP",
112
- name: "Add Existing Brand To Group",
113
- description: "Associate an existing brand with a group.",
114
- needsApproval: true,
115
- method: "PUT",
116
- path: (ctx) => `/groups/${ctx.encode(String(ctx.input.groupId))}/brands`,
117
- input: groupId.extend({ brands: z.array(docusignLooseObjectSchema()).min(1) }),
118
- output: docusignGenericObjectSchema,
119
- body: (input) => ({ brands: input.brands })
120
- });
121
- const deleteBrandFromGroup = defineRestOperation({
122
- id: "docusign.delete-brand-from-group",
123
- slug: "DOCUSIGN_DELETE_BRAND_FROM_GROUP",
124
- name: "Delete Brand From Group",
125
- description: "Disassociate a brand from a group.",
126
- needsApproval: true,
127
- method: "DELETE",
128
- path: (ctx) => `/groups/${ctx.encode(String(ctx.input.groupId))}/brands`,
129
- input: groupBrand,
130
- output: docusignSuccessSchema,
131
- body: (input) => ({ brands: [{ brandId: input.brandId }] }),
132
- transformResponse: () => ({ success: true })
133
- });
134
- const getBrandsInformationForGroup = defineRestOperation({
135
- id: "docusign.get-brands-information-for-group",
136
- slug: "DOCUSIGN_GET_BRANDS_INFORMATION_FOR_GROUP",
137
- name: "Get Brands For Group",
138
- description: "List brands associated with a group.",
139
- method: "GET",
140
- path: (ctx) => `/groups/${ctx.encode(String(ctx.input.groupId))}/brands`,
141
- input: groupId,
142
- output: docusignGenericObjectSchema
143
- });
144
-
145
- //#endregion
146
- export { addExistingBrandToGroup, addUsersToExistingGroup, createGroupsForAccount, deleteBrandFromGroup, deleteUserGroup, deleteUsersFromGroup, getBrandsInformationForGroup, getGroupsInformationForAccount, getUsersInGroup, updateGroupInformation };