@camunda/camunda-api-zod-schemas 0.0.49 → 0.0.50

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.
@@ -109,85 +109,6 @@ declare const authorizationSchema: z.ZodObject<{
109
109
  GLOBAL_LISTENER: "GLOBAL_LISTENER";
110
110
  }>;
111
111
  resourceId: z.ZodString;
112
- permissionTypes: z.ZodArray<z.ZodEnum<{
113
- ACCESS: "ACCESS";
114
- CREATE: "CREATE";
115
- CREATE_BATCH_OPERATION_CANCEL_PROCESS_INSTANCE: "CREATE_BATCH_OPERATION_CANCEL_PROCESS_INSTANCE";
116
- CREATE_BATCH_OPERATION_DELETE_PROCESS_INSTANCE: "CREATE_BATCH_OPERATION_DELETE_PROCESS_INSTANCE";
117
- CREATE_BATCH_OPERATION_MIGRATE_PROCESS_INSTANCE: "CREATE_BATCH_OPERATION_MIGRATE_PROCESS_INSTANCE";
118
- CREATE_BATCH_OPERATION_MODIFY_PROCESS_INSTANCE: "CREATE_BATCH_OPERATION_MODIFY_PROCESS_INSTANCE";
119
- CREATE_BATCH_OPERATION_RESOLVE_INCIDENT: "CREATE_BATCH_OPERATION_RESOLVE_INCIDENT";
120
- CREATE_BATCH_OPERATION_DELETE_DECISION_INSTANCE: "CREATE_BATCH_OPERATION_DELETE_DECISION_INSTANCE";
121
- CREATE_BATCH_OPERATION_DELETE_DECISION_DEFINITION: "CREATE_BATCH_OPERATION_DELETE_DECISION_DEFINITION";
122
- CREATE_BATCH_OPERATION_DELETE_PROCESS_DEFINITION: "CREATE_BATCH_OPERATION_DELETE_PROCESS_DEFINITION";
123
- CREATE_PROCESS_INSTANCE: "CREATE_PROCESS_INSTANCE";
124
- CREATE_DECISION_INSTANCE: "CREATE_DECISION_INSTANCE";
125
- READ: "READ";
126
- READ_PROCESS_INSTANCE: "READ_PROCESS_INSTANCE";
127
- READ_USER_TASK: "READ_USER_TASK";
128
- READ_DECISION_INSTANCE: "READ_DECISION_INSTANCE";
129
- READ_PROCESS_DEFINITION: "READ_PROCESS_DEFINITION";
130
- READ_DECISION_DEFINITION: "READ_DECISION_DEFINITION";
131
- UPDATE: "UPDATE";
132
- UPDATE_PROCESS_INSTANCE: "UPDATE_PROCESS_INSTANCE";
133
- UPDATE_USER_TASK: "UPDATE_USER_TASK";
134
- DELETE: "DELETE";
135
- DELETE_PROCESS: "DELETE_PROCESS";
136
- DELETE_DRD: "DELETE_DRD";
137
- DELETE_FORM: "DELETE_FORM";
138
- DELETE_RESOURCE: "DELETE_RESOURCE";
139
- DELETE_PROCESS_INSTANCE: "DELETE_PROCESS_INSTANCE";
140
- DELETE_DECISION_INSTANCE: "DELETE_DECISION_INSTANCE";
141
- CANCEL_PROCESS_INSTANCE: "CANCEL_PROCESS_INSTANCE";
142
- MODIFY_PROCESS_INSTANCE: "MODIFY_PROCESS_INSTANCE";
143
- CLAIM: "CLAIM";
144
- COMPLETE: "COMPLETE";
145
- CREATE_TASK_LISTENER: "CREATE_TASK_LISTENER";
146
- READ_JOB_METRIC: "READ_JOB_METRIC";
147
- READ_TASK_LISTENER: "READ_TASK_LISTENER";
148
- READ_USAGE_METRIC: "READ_USAGE_METRIC";
149
- UPDATE_TASK_LISTENER: "UPDATE_TASK_LISTENER";
150
- DELETE_TASK_LISTENER: "DELETE_TASK_LISTENER";
151
- EVALUATE: "EVALUATE";
152
- CLAIM_USER_TASK: "CLAIM_USER_TASK";
153
- COMPLETE_USER_TASK: "COMPLETE_USER_TASK";
154
- }>>;
155
- authorizationKey: z.ZodString;
156
- }, z.core.$strip>;
157
- type Authorization = z.infer<typeof authorizationSchema>;
158
- declare const authorizationResultSchema: z.ZodObject<{
159
- ownerId: z.ZodString;
160
- ownerType: z.ZodEnum<{
161
- UNSPECIFIED: "UNSPECIFIED";
162
- MAPPING_RULE: "MAPPING_RULE";
163
- GROUP: "GROUP";
164
- USER: "USER";
165
- ROLE: "ROLE";
166
- CLIENT: "CLIENT";
167
- }>;
168
- resourceType: z.ZodEnum<{
169
- USER_TASK: "USER_TASK";
170
- AUTHORIZATION: "AUTHORIZATION";
171
- MAPPING_RULE: "MAPPING_RULE";
172
- MESSAGE: "MESSAGE";
173
- BATCH: "BATCH";
174
- SYSTEM: "SYSTEM";
175
- TENANT: "TENANT";
176
- RESOURCE: "RESOURCE";
177
- PROCESS_DEFINITION: "PROCESS_DEFINITION";
178
- DECISION_REQUIREMENTS_DEFINITION: "DECISION_REQUIREMENTS_DEFINITION";
179
- DECISION_DEFINITION: "DECISION_DEFINITION";
180
- GROUP: "GROUP";
181
- USER: "USER";
182
- ROLE: "ROLE";
183
- AUDIT_LOG: "AUDIT_LOG";
184
- CLUSTER_VARIABLE: "CLUSTER_VARIABLE";
185
- COMPONENT: "COMPONENT";
186
- DOCUMENT: "DOCUMENT";
187
- EXPRESSION: "EXPRESSION";
188
- GLOBAL_LISTENER: "GLOBAL_LISTENER";
189
- }>;
190
- resourceId: z.ZodNullable<z.ZodString>;
191
112
  resourcePropertyName: z.ZodNullable<z.ZodString>;
192
113
  permissionTypes: z.ZodArray<z.ZodEnum<{
193
114
  ACCESS: "ACCESS";
@@ -234,7 +155,7 @@ declare const authorizationResultSchema: z.ZodObject<{
234
155
  }>>;
235
156
  authorizationKey: z.ZodString;
236
157
  }, z.core.$strip>;
237
- type AuthorizationResult = z.infer<typeof authorizationResultSchema>;
158
+ type Authorization = z.infer<typeof authorizationSchema>;
238
159
  declare const createAuthorizationRequestBodySchema: z.ZodObject<{
239
160
  ownerType: z.ZodEnum<{
240
161
  UNSPECIFIED: "UNSPECIFIED";
@@ -482,7 +403,7 @@ declare const getAuthorizationResponseBodySchema: z.ZodObject<{
482
403
  EXPRESSION: "EXPRESSION";
483
404
  GLOBAL_LISTENER: "GLOBAL_LISTENER";
484
405
  }>;
485
- resourceId: z.ZodNullable<z.ZodString>;
406
+ resourceId: z.ZodString;
486
407
  resourcePropertyName: z.ZodNullable<z.ZodString>;
487
408
  permissionTypes: z.ZodArray<z.ZodEnum<{
488
409
  ACCESS: "ACCESS";
@@ -534,7 +455,7 @@ declare const queryAuthorizationsResponseBodySchema: z.ZodType<import('./common'
534
455
  ownerId: string;
535
456
  ownerType: "UNSPECIFIED" | "MAPPING_RULE" | "GROUP" | "USER" | "ROLE" | "CLIENT";
536
457
  resourceType: "USER_TASK" | "AUTHORIZATION" | "MAPPING_RULE" | "MESSAGE" | "BATCH" | "SYSTEM" | "TENANT" | "RESOURCE" | "PROCESS_DEFINITION" | "DECISION_REQUIREMENTS_DEFINITION" | "DECISION_DEFINITION" | "GROUP" | "USER" | "ROLE" | "AUDIT_LOG" | "CLUSTER_VARIABLE" | "COMPONENT" | "DOCUMENT" | "EXPRESSION" | "GLOBAL_LISTENER";
537
- resourceId: string | null;
458
+ resourceId: string;
538
459
  resourcePropertyName: string | null;
539
460
  permissionTypes: ("ACCESS" | "CREATE" | "CREATE_BATCH_OPERATION_CANCEL_PROCESS_INSTANCE" | "CREATE_BATCH_OPERATION_DELETE_PROCESS_INSTANCE" | "CREATE_BATCH_OPERATION_MIGRATE_PROCESS_INSTANCE" | "CREATE_BATCH_OPERATION_MODIFY_PROCESS_INSTANCE" | "CREATE_BATCH_OPERATION_RESOLVE_INCIDENT" | "CREATE_BATCH_OPERATION_DELETE_DECISION_INSTANCE" | "CREATE_BATCH_OPERATION_DELETE_DECISION_DEFINITION" | "CREATE_BATCH_OPERATION_DELETE_PROCESS_DEFINITION" | "CREATE_PROCESS_INSTANCE" | "CREATE_DECISION_INSTANCE" | "READ" | "READ_PROCESS_INSTANCE" | "READ_USER_TASK" | "READ_DECISION_INSTANCE" | "READ_PROCESS_DEFINITION" | "READ_DECISION_DEFINITION" | "UPDATE" | "UPDATE_PROCESS_INSTANCE" | "UPDATE_USER_TASK" | "DELETE" | "DELETE_PROCESS" | "DELETE_DRD" | "DELETE_FORM" | "DELETE_RESOURCE" | "DELETE_PROCESS_INSTANCE" | "DELETE_DECISION_INSTANCE" | "CANCEL_PROCESS_INSTANCE" | "MODIFY_PROCESS_INSTANCE" | "CLAIM" | "COMPLETE" | "CREATE_TASK_LISTENER" | "READ_JOB_METRIC" | "READ_TASK_LISTENER" | "READ_USAGE_METRIC" | "UPDATE_TASK_LISTENER" | "DELETE_TASK_LISTENER" | "EVALUATE" | "CLAIM_USER_TASK" | "COMPLETE_USER_TASK")[];
540
461
  authorizationKey: string;
@@ -542,7 +463,7 @@ declare const queryAuthorizationsResponseBodySchema: z.ZodType<import('./common'
542
463
  ownerId: string;
543
464
  ownerType: "UNSPECIFIED" | "MAPPING_RULE" | "GROUP" | "USER" | "ROLE" | "CLIENT";
544
465
  resourceType: "USER_TASK" | "AUTHORIZATION" | "MAPPING_RULE" | "MESSAGE" | "BATCH" | "SYSTEM" | "TENANT" | "RESOURCE" | "PROCESS_DEFINITION" | "DECISION_REQUIREMENTS_DEFINITION" | "DECISION_DEFINITION" | "GROUP" | "USER" | "ROLE" | "AUDIT_LOG" | "CLUSTER_VARIABLE" | "COMPONENT" | "DOCUMENT" | "EXPRESSION" | "GLOBAL_LISTENER";
545
- resourceId: string | null;
466
+ resourceId: string;
546
467
  resourcePropertyName: string | null;
547
468
  permissionTypes: ("ACCESS" | "CREATE" | "CREATE_BATCH_OPERATION_CANCEL_PROCESS_INSTANCE" | "CREATE_BATCH_OPERATION_DELETE_PROCESS_INSTANCE" | "CREATE_BATCH_OPERATION_MIGRATE_PROCESS_INSTANCE" | "CREATE_BATCH_OPERATION_MODIFY_PROCESS_INSTANCE" | "CREATE_BATCH_OPERATION_RESOLVE_INCIDENT" | "CREATE_BATCH_OPERATION_DELETE_DECISION_INSTANCE" | "CREATE_BATCH_OPERATION_DELETE_DECISION_DEFINITION" | "CREATE_BATCH_OPERATION_DELETE_PROCESS_DEFINITION" | "CREATE_PROCESS_INSTANCE" | "CREATE_DECISION_INSTANCE" | "READ" | "READ_PROCESS_INSTANCE" | "READ_USER_TASK" | "READ_DECISION_INSTANCE" | "READ_PROCESS_DEFINITION" | "READ_DECISION_DEFINITION" | "UPDATE" | "UPDATE_PROCESS_INSTANCE" | "UPDATE_USER_TASK" | "DELETE" | "DELETE_PROCESS" | "DELETE_DRD" | "DELETE_FORM" | "DELETE_RESOURCE" | "DELETE_PROCESS_INSTANCE" | "DELETE_DECISION_INSTANCE" | "CANCEL_PROCESS_INSTANCE" | "MODIFY_PROCESS_INSTANCE" | "CLAIM" | "COMPLETE" | "CREATE_TASK_LISTENER" | "READ_JOB_METRIC" | "READ_TASK_LISTENER" | "READ_USAGE_METRIC" | "UPDATE_TASK_LISTENER" | "DELETE_TASK_LISTENER" | "EVALUATE" | "CLAIM_USER_TASK" | "COMPLETE_USER_TASK")[];
548
469
  authorizationKey: string;
@@ -559,5 +480,5 @@ declare const deleteAuthorization: Endpoint<{
559
480
  authorizationKey: string;
560
481
  }>;
561
482
  declare const queryAuthorizations: Endpoint;
562
- export { permissionTypeSchema, resourceTypeSchema, ownerTypeSchema, authorizationSchema, authorizationResultSchema, createAuthorizationRequestBodySchema, createAuthorizationResponseBodySchema, updateAuthorizationRequestBodySchema, getAuthorizationResponseBodySchema, queryAuthorizationsRequestBodySchema, queryAuthorizationsResponseBodySchema, createAuthorization, updateAuthorization, getAuthorization, deleteAuthorization, queryAuthorizations, };
563
- export type { PermissionType, ResourceType, OwnerType, Authorization, AuthorizationResult, CreateAuthorizationRequestBody, CreateAuthorizationResponseBody, UpdateAuthorizationRequestBody, GetAuthorizationResponseBody, QueryAuthorizationsRequestBody, QueryAuthorizationsResponseBody, };
483
+ export { permissionTypeSchema, resourceTypeSchema, ownerTypeSchema, authorizationSchema, createAuthorizationRequestBodySchema, createAuthorizationResponseBodySchema, updateAuthorizationRequestBodySchema, getAuthorizationResponseBodySchema, queryAuthorizationsRequestBodySchema, queryAuthorizationsResponseBodySchema, createAuthorization, updateAuthorization, getAuthorization, deleteAuthorization, queryAuthorizations, };
484
+ export type { PermissionType, ResourceType, OwnerType, Authorization, CreateAuthorizationRequestBody, CreateAuthorizationResponseBody, UpdateAuthorizationRequestBody, GetAuthorizationResponseBody, QueryAuthorizationsRequestBody, QueryAuthorizationsResponseBody, };
@@ -71,14 +71,6 @@ const authorizationSchema = z.object({
71
71
  ownerType: ownerTypeSchema,
72
72
  resourceType: resourceTypeSchema,
73
73
  resourceId: z.string(),
74
- permissionTypes: z.array(permissionTypeSchema),
75
- authorizationKey: z.string()
76
- });
77
- const authorizationResultSchema = z.object({
78
- ownerId: z.string(),
79
- ownerType: ownerTypeSchema,
80
- resourceType: resourceTypeSchema,
81
- resourceId: z.string().nullable(),
82
74
  resourcePropertyName: z.string().nullable(),
83
75
  permissionTypes: z.array(permissionTypeSchema),
84
76
  authorizationKey: z.string()
@@ -105,8 +97,8 @@ const queryAuthorizationsRequestBodySchema = getQueryRequestBodySchema({
105
97
  }).shape
106
98
  }).partial()
107
99
  });
108
- const getAuthorizationResponseBodySchema = authorizationResultSchema;
109
- const queryAuthorizationsResponseBodySchema = getQueryResponseBodySchema(authorizationResultSchema);
100
+ const getAuthorizationResponseBodySchema = authorizationSchema;
101
+ const queryAuthorizationsResponseBodySchema = getQueryResponseBodySchema(authorizationSchema);
110
102
  const createAuthorization = {
111
103
  method: "POST",
112
104
  getUrl: () => `/${API_VERSION}/authorizations`
@@ -128,7 +120,6 @@ const queryAuthorizations = {
128
120
  getUrl: () => `/${API_VERSION}/authorizations/search`
129
121
  };
130
122
  export {
131
- authorizationResultSchema,
132
123
  authorizationSchema,
133
124
  createAuthorization,
134
125
  createAuthorizationRequestBodySchema,
@@ -8,7 +8,7 @@ type Group = z.infer<typeof groupSchema>;
8
8
  declare const roleSchema: z.ZodObject<{
9
9
  roleId: z.ZodString;
10
10
  name: z.ZodString;
11
- description: z.ZodString;
11
+ description: z.ZodNullable<z.ZodString>;
12
12
  }, z.core.$strip>;
13
13
  type Role = z.infer<typeof roleSchema>;
14
14
  export { groupSchema, roleSchema };
@@ -7,7 +7,7 @@ const groupSchema = z.object({
7
7
  const roleSchema = z.object({
8
8
  roleId: z.string(),
9
9
  name: z.string(),
10
- description: z.string()
10
+ description: z.string().nullable()
11
11
  });
12
12
  export {
13
13
  groupSchema,
@@ -145,11 +145,13 @@ declare const queryRolesByGroupRequestBodySchema: z.ZodObject<{
145
145
  }, z.core.$strip>;
146
146
  type QueryRolesByGroupRequestBody = z.infer<typeof queryRolesByGroupRequestBodySchema>;
147
147
  declare const queryRolesByGroupResponseBodySchema: z.ZodType<import('./common').QueryResponseBody<{
148
- name: string;
149
148
  roleId: string;
150
- }>, unknown, z.core.$ZodTypeInternals<import('./common').QueryResponseBody<{
151
149
  name: string;
150
+ description: string | null;
151
+ }>, unknown, z.core.$ZodTypeInternals<import('./common').QueryResponseBody<{
152
152
  roleId: string;
153
+ name: string;
154
+ description: string | null;
153
155
  }>, unknown>>;
154
156
  type QueryRolesByGroupResponseBody = z.infer<typeof queryRolesByGroupResponseBodySchema>;
155
157
  declare const queryRolesByGroup: Endpoint<Pick<Group, 'groupId'>>;
package/dist/8.9/group.js CHANGED
@@ -87,7 +87,7 @@ const queryRolesByGroupRequestBodySchema = getQueryRequestBodySchema({
87
87
  name: z.string()
88
88
  }).partial()
89
89
  });
90
- const queryRolesByGroupResponseBodySchema = getQueryResponseBodySchema(roleSchema.pick({ roleId: true, name: true }));
90
+ const queryRolesByGroupResponseBodySchema = getQueryResponseBodySchema(roleSchema);
91
91
  const queryRolesByGroup = {
92
92
  method: "POST",
93
93
  getUrl(params) {
@@ -786,61 +786,61 @@ declare const endpoints: {
786
786
  readonly getRole: import('./common').Endpoint<Pick<{
787
787
  roleId: string;
788
788
  name: string;
789
- description: string;
789
+ description: string | null;
790
790
  }, "roleId">>;
791
791
  readonly updateRole: import('./common').Endpoint<Pick<{
792
792
  roleId: string;
793
793
  name: string;
794
- description: string;
794
+ description: string | null;
795
795
  }, "roleId">>;
796
796
  readonly deleteRole: import('./common').Endpoint<Pick<{
797
797
  roleId: string;
798
798
  name: string;
799
- description: string;
799
+ description: string | null;
800
800
  }, "roleId">>;
801
801
  readonly queryRoles: import('./common').Endpoint<undefined>;
802
802
  readonly queryUsersByRole: import('./common').Endpoint<Pick<{
803
803
  roleId: string;
804
804
  name: string;
805
- description: string;
805
+ description: string | null;
806
806
  }, "roleId">>;
807
807
  readonly queryClientsByRole: import('./common').Endpoint<Pick<{
808
808
  roleId: string;
809
809
  name: string;
810
- description: string;
810
+ description: string | null;
811
811
  }, "roleId">>;
812
812
  readonly assignUserToRole: import('./common').Endpoint<Pick<{
813
813
  roleId: string;
814
814
  name: string;
815
- description: string;
815
+ description: string | null;
816
816
  }, "roleId"> & {
817
817
  username: string;
818
818
  }>;
819
819
  readonly unassignUserFromRole: import('./common').Endpoint<Pick<{
820
820
  roleId: string;
821
821
  name: string;
822
- description: string;
822
+ description: string | null;
823
823
  }, "roleId"> & {
824
824
  username: string;
825
825
  }>;
826
826
  readonly assignClientToRole: import('./common').Endpoint<Pick<{
827
827
  roleId: string;
828
828
  name: string;
829
- description: string;
829
+ description: string | null;
830
830
  }, "roleId"> & {
831
831
  clientId: string;
832
832
  }>;
833
833
  readonly unassignClientFromRole: import('./common').Endpoint<Pick<{
834
834
  roleId: string;
835
835
  name: string;
836
- description: string;
836
+ description: string | null;
837
837
  }, "roleId"> & {
838
838
  clientId: string;
839
839
  }>;
840
840
  readonly assignGroupToRole: import('./common').Endpoint<Pick<{
841
841
  roleId: string;
842
842
  name: string;
843
- description: string;
843
+ description: string | null;
844
844
  }, "roleId"> & Pick<{
845
845
  groupId: string;
846
846
  name: string;
@@ -849,7 +849,7 @@ declare const endpoints: {
849
849
  readonly unassignGroupFromRole: import('./common').Endpoint<Pick<{
850
850
  roleId: string;
851
851
  name: string;
852
- description: string;
852
+ description: string | null;
853
853
  }, "roleId"> & Pick<{
854
854
  groupId: string;
855
855
  name: string;
@@ -858,12 +858,12 @@ declare const endpoints: {
858
858
  readonly queryGroupsByRole: import('./common').Endpoint<Pick<{
859
859
  roleId: string;
860
860
  name: string;
861
- description: string;
861
+ description: string | null;
862
862
  }, "roleId">>;
863
863
  readonly assignMappingToRole: import('./common').Endpoint<Pick<{
864
864
  roleId: string;
865
865
  name: string;
866
- description: string;
866
+ description: string | null;
867
867
  }, "roleId"> & Pick<{
868
868
  mappingRuleId: string;
869
869
  claimName: string;
@@ -873,7 +873,7 @@ declare const endpoints: {
873
873
  readonly unassignMappingFromRole: import('./common').Endpoint<Pick<{
874
874
  roleId: string;
875
875
  name: string;
876
- description: string;
876
+ description: string | null;
877
877
  }, "roleId"> & Pick<{
878
878
  mappingRuleId: string;
879
879
  claimName: string;
@@ -883,7 +883,7 @@ declare const endpoints: {
883
883
  readonly queryMappingRulesByRole: import('./common').Endpoint<Pick<{
884
884
  roleId: string;
885
885
  name: string;
886
- description: string;
886
+ description: string | null;
887
887
  }, "roleId">>;
888
888
  readonly broadcastSignal: import('./common').Endpoint<undefined>;
889
889
  readonly createTenant: import('./common').Endpoint<undefined>;
@@ -1001,7 +1001,7 @@ declare const endpoints: {
1001
1001
  }, "tenantId"> & Pick<{
1002
1002
  roleId: string;
1003
1003
  name: string;
1004
- description: string;
1004
+ description: string | null;
1005
1005
  }, "roleId">>;
1006
1006
  readonly unassignRoleFromTenant: import('./common').Endpoint<Pick<{
1007
1007
  tenantId: string;
@@ -1010,7 +1010,7 @@ declare const endpoints: {
1010
1010
  }, "tenantId"> & Pick<{
1011
1011
  roleId: string;
1012
1012
  name: string;
1013
- description: string;
1013
+ description: string | null;
1014
1014
  }, "roleId">>;
1015
1015
  readonly createUser: import('./common').Endpoint<undefined>;
1016
1016
  readonly queryUsers: import('./common').Endpoint<undefined>;
@@ -1140,7 +1140,7 @@ export { deleteProcessInstanceRequestBodySchema, modifyProcessInstanceRequestBod
1140
1140
  export { getIncidentProcessInstanceStatisticsByErrorRequestBodySchema, getIncidentProcessInstanceStatisticsByErrorResponseBodySchema, incidentProcessInstanceStatisticsByErrorSchema, getIncidentProcessInstanceStatisticsByDefinitionRequestBodySchema, getIncidentProcessInstanceStatisticsByDefinitionResponseBodySchema, incidentProcessInstanceStatisticsByDefinitionSchema, type IncidentProcessInstanceStatisticsByError, type GetIncidentProcessInstanceStatisticsByErrorRequestBody, type GetIncidentProcessInstanceStatisticsByErrorResponseBody, type IncidentProcessInstanceStatisticsByDefinition, type GetIncidentProcessInstanceStatisticsByDefinitionRequestBody, type GetIncidentProcessInstanceStatisticsByDefinitionResponseBody, } from './incident-statistics';
1141
1141
  export { currentUserSchema, getCurrentUser, type CurrentUser } from './authentication';
1142
1142
  export { activityTypeSchema, queryActivatableActivitiesRequestBodySchema, queryActivatableActivitiesResponseBodySchema, activateActivityWithinAdHocSubProcessRequestBodySchema, activateActivityWithinAdHocSubProcessResponseBodySchema, type ActivityType, type QueryActivatableActivitiesRequestBody, type ActivatableActivity, type QueryActivatableActivitiesResponseBody, type ActivateActivityWithinAdHocSubProcessRequestBody, type ActivateActivityWithinAdHocSubProcessResponseBody, } from './ad-hoc-sub-process';
1143
- export { permissionTypeSchema, resourceTypeSchema, ownerTypeSchema, authorizationResultSchema, createAuthorizationRequestBodySchema, createAuthorizationResponseBodySchema, updateAuthorizationRequestBodySchema, getAuthorizationResponseBodySchema, queryAuthorizationsRequestBodySchema, queryAuthorizationsResponseBodySchema, authorizationSchema, type Authorization, type AuthorizationResult, type PermissionType, type ResourceType, type OwnerType, type CreateAuthorizationResponseBody, type GetAuthorizationResponseBody, type QueryAuthorizationsRequestBody, type QueryAuthorizationsResponseBody, type CreateAuthorizationRequestBody, type UpdateAuthorizationRequestBody, } from './authorization';
1143
+ export { permissionTypeSchema, resourceTypeSchema, ownerTypeSchema, createAuthorizationRequestBodySchema, createAuthorizationResponseBodySchema, updateAuthorizationRequestBodySchema, getAuthorizationResponseBodySchema, queryAuthorizationsRequestBodySchema, queryAuthorizationsResponseBodySchema, authorizationSchema, type Authorization, type PermissionType, type ResourceType, type OwnerType, type CreateAuthorizationResponseBody, type GetAuthorizationResponseBody, type QueryAuthorizationsRequestBody, type QueryAuthorizationsResponseBody, type CreateAuthorizationRequestBody, type UpdateAuthorizationRequestBody, } from './authorization';
1144
1144
  export { batchOperationTypeSchema, batchOperationStateSchema, batchOperationItemStateSchema, batchOperationSchema, batchOperationItemSchema, queryBatchOperationsRequestBodySchema, queryBatchOperationsResponseBodySchema, queryBatchOperationItemsRequestBodySchema, queryBatchOperationItemsResponseBodySchema, type BatchOperationType, type BatchOperationState, type BatchOperationItemState, type BatchOperation, type BatchOperationItem, type QueryBatchOperationsRequestBody, type QueryBatchOperationsResponseBody, type QueryBatchOperationItemsRequestBody, type QueryBatchOperationItemsResponseBody, } from './batch-operation';
1145
1145
  export { pinClockRequestBodySchema, type PinClockRequestBody } from './clock';
1146
1146
  export { partitionRoleSchema, partitionHealthSchema, partitionSchema, brokerInfoSchema, getTopologyResponseBodySchema, type PartitionRole, type PartitionHealth, type Partition, type BrokerInfo, type GetTopologyResponseBody, } from './cluster';
package/dist/8.9/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { currentUserSchema, getCurrentUser } from "./authentication.js";
2
2
  import { activateActivityWithinAdHocSubProcessRequestBodySchema, activateActivityWithinAdHocSubProcessResponseBodySchema, activityTypeSchema, queryActivatableActivitiesRequestBodySchema, queryActivatableActivitiesResponseBodySchema } from "./ad-hoc-sub-process.js";
3
- import { authorizationResultSchema, authorizationSchema, createAuthorizationRequestBodySchema, createAuthorizationResponseBodySchema, getAuthorizationResponseBodySchema, ownerTypeSchema, permissionTypeSchema, queryAuthorizationsRequestBodySchema, queryAuthorizationsResponseBodySchema, resourceTypeSchema, updateAuthorizationRequestBodySchema } from "./authorization.js";
3
+ import { authorizationSchema, createAuthorizationRequestBodySchema, createAuthorizationResponseBodySchema, getAuthorizationResponseBodySchema, ownerTypeSchema, permissionTypeSchema, queryAuthorizationsRequestBodySchema, queryAuthorizationsResponseBodySchema, resourceTypeSchema, updateAuthorizationRequestBodySchema } from "./authorization.js";
4
4
  import { batchOperationItemSchema, batchOperationItemStateSchema, batchOperationSchema, batchOperationStateSchema, batchOperationTypeSchema, queryBatchOperationItemsRequestBodySchema, queryBatchOperationItemsResponseBodySchema, queryBatchOperationsRequestBodySchema, queryBatchOperationsResponseBodySchema } from "./batch-operation.js";
5
5
  import { pinClockRequestBodySchema } from "./clock.js";
6
6
  import { brokerInfoSchema, getTopologyResponseBodySchema, partitionHealthSchema, partitionRoleSchema, partitionSchema } from "./cluster.js";
@@ -52,7 +52,6 @@ export {
52
52
  auditLogResultSchema,
53
53
  auditLogSchema,
54
54
  auditLogSortFieldEnum,
55
- authorizationResultSchema,
56
55
  authorizationSchema,
57
56
  batchOperationCreatedResultSchema,
58
57
  batchOperationItemSchema,
@@ -5,24 +5,24 @@ import { MappingRule } from './mapping-rule';
5
5
  declare const createRoleRequestBodySchema: z.ZodObject<{
6
6
  roleId: z.ZodString;
7
7
  name: z.ZodString;
8
- description: z.ZodString;
8
+ description: z.ZodNullable<z.ZodString>;
9
9
  }, z.core.$strip>;
10
10
  type CreateRoleRequestBody = z.infer<typeof createRoleRequestBodySchema>;
11
11
  declare const createRoleResponseBodySchema: z.ZodObject<{
12
12
  roleId: z.ZodString;
13
13
  name: z.ZodString;
14
- description: z.ZodString;
14
+ description: z.ZodNullable<z.ZodString>;
15
15
  }, z.core.$strip>;
16
16
  type CreateRoleResponseBody = z.infer<typeof createRoleResponseBodySchema>;
17
17
  declare const updateRoleRequestBodySchema: z.ZodObject<{
18
- description: z.ZodString;
18
+ description: z.ZodNullable<z.ZodString>;
19
19
  name: z.ZodString;
20
20
  }, z.core.$strip>;
21
21
  type UpdateRoleRequestBody = z.infer<typeof updateRoleRequestBodySchema>;
22
22
  declare const updateRoleResponseBodySchema: z.ZodObject<{
23
23
  roleId: z.ZodString;
24
24
  name: z.ZodString;
25
- description: z.ZodString;
25
+ description: z.ZodNullable<z.ZodString>;
26
26
  }, z.core.$strip>;
27
27
  type UpdateRoleResponseBody = z.infer<typeof updateRoleResponseBodySchema>;
28
28
  declare const queryRolesRequestBodySchema: z.ZodObject<{
@@ -51,11 +51,11 @@ type QueryRolesRequestBody = z.infer<typeof queryRolesRequestBodySchema>;
51
51
  declare const queryRolesResponseBodySchema: z.ZodType<import('./common').QueryResponseBody<{
52
52
  roleId: string;
53
53
  name: string;
54
- description: string;
54
+ description: string | null;
55
55
  }>, unknown, z.core.$ZodTypeInternals<import('./common').QueryResponseBody<{
56
56
  roleId: string;
57
57
  name: string;
58
- description: string;
58
+ description: string | null;
59
59
  }>, unknown>>;
60
60
  type QueryRolesResponseBody = z.infer<typeof queryRolesResponseBodySchema>;
61
61
  declare const queryUsersByRoleRequestBodySchema: z.ZodObject<{
@@ -175,11 +175,11 @@ type QueryRolesByTenantRequestBody = z.infer<typeof queryRolesByTenantRequestBod
175
175
  declare const queryRolesByTenantResponseBodySchema: z.ZodType<import('./common').QueryResponseBody<{
176
176
  roleId: string;
177
177
  name: string;
178
- description: string;
178
+ description: string | null;
179
179
  }>, unknown, z.core.$ZodTypeInternals<import('./common').QueryResponseBody<{
180
180
  roleId: string;
181
181
  name: string;
182
- description: string;
182
+ description: string | null;
183
183
  }>, unknown>>;
184
184
  type QueryRolesByTenantResponseBody = z.infer<typeof queryRolesByTenantResponseBodySchema>;
185
185
  declare const queryMappingRulesByTenantRequestBodySchema: z.ZodObject<{
package/dist/8.9.js CHANGED
@@ -3,7 +3,7 @@ import { currentUserSchema } from "./8.9/authentication.js";
3
3
  import { activateAdHocSubProcessActivities } from "./8.9/ad-hoc-sub-process.js";
4
4
  import { activateActivityWithinAdHocSubProcessRequestBodySchema, activateActivityWithinAdHocSubProcessResponseBodySchema, activityTypeSchema, queryActivatableActivitiesRequestBodySchema, queryActivatableActivitiesResponseBodySchema } from "./8.9/ad-hoc-sub-process.js";
5
5
  import { queryAuthorizations, deleteAuthorization, getAuthorization, updateAuthorization, createAuthorization } from "./8.9/authorization.js";
6
- import { authorizationResultSchema, authorizationSchema, createAuthorizationRequestBodySchema, createAuthorizationResponseBodySchema, getAuthorizationResponseBodySchema, ownerTypeSchema, permissionTypeSchema, queryAuthorizationsRequestBodySchema, queryAuthorizationsResponseBodySchema, resourceTypeSchema, updateAuthorizationRequestBodySchema } from "./8.9/authorization.js";
6
+ import { authorizationSchema, createAuthorizationRequestBodySchema, createAuthorizationResponseBodySchema, getAuthorizationResponseBodySchema, ownerTypeSchema, permissionTypeSchema, queryAuthorizationsRequestBodySchema, queryAuthorizationsResponseBodySchema, resourceTypeSchema, updateAuthorizationRequestBodySchema } from "./8.9/authorization.js";
7
7
  import { queryBatchOperationItems, resumeBatchOperation, suspendBatchOperation, cancelBatchOperation, queryBatchOperations, getBatchOperation } from "./8.9/batch-operation.js";
8
8
  import { batchOperationItemSchema, batchOperationItemStateSchema, batchOperationSchema, batchOperationStateSchema, batchOperationTypeSchema, queryBatchOperationItemsRequestBodySchema, queryBatchOperationItemsResponseBodySchema, queryBatchOperationsRequestBodySchema, queryBatchOperationsResponseBodySchema } from "./8.9/batch-operation.js";
9
9
  import { resetClock, pinClock } from "./8.9/clock.js";
@@ -255,7 +255,6 @@ export {
255
255
  auditLogResultSchema,
256
256
  auditLogSchema,
257
257
  auditLogSortFieldEnum,
258
- authorizationResultSchema,
259
258
  authorizationSchema,
260
259
  batchOperationCreatedResultSchema,
261
260
  batchOperationItemSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/camunda-api-zod-schemas",
3
- "version": "0.0.49",
3
+ "version": "0.0.50",
4
4
  "license": "LicenseRef-Camunda-1.0",
5
5
  "description": "Zod schemas and TypeScript types for Camunda 8 unified API",
6
6
  "author": "Vinicius Goulart <vinicius.goulart@camunda.com>",