@webitel/api-services 0.0.22 → 0.0.24
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.
- package/package.json +2 -2
- package/src/gen/_docs/.nojekyll +1 -0
- package/src/gen/_docs/html/assets/navigation.js +1 -1
- package/src/gen/_docs/html/assets/search.js +1 -1
- package/src/gen/_docs/html/functions/cases_cases.api.gen.getCases.html +1 -1
- package/src/gen/_docs/html/functions/cases_cases.msw.api.gen.getUpdateCase2MockHandler.html +1 -1
- package/src/gen/_docs/html/functions/cases_cases.msw.api.gen.getUpdateCase2ResponseMock.html +1 -1
- package/src/gen/_docs/html/functions/cases_cases.msw.api.gen.getUpdateCaseMockHandler.html +1 -1
- package/src/gen/_docs/html/functions/cases_cases.msw.api.gen.getUpdateCaseResponseMock.html +1 -1
- package/src/gen/_docs/html/functions/file-service_file-service.api.gen.getFileService.html +1 -1
- package/src/gen/_docs/html/functions/file-service_file-service.msw.api.gen.getFileServiceUploadP2PVideoMockHandler.html +1 -0
- package/src/gen/_docs/html/functions/file-service_file-service.msw.api.gen.getFileServiceUploadP2PVideoResponseMock.html +1 -0
- package/src/gen/_docs/html/index.html +1 -1
- package/src/gen/_docs/html/interfaces/_models_storageICEServers.StorageICEServers.html +9 -0
- package/src/gen/_docs/html/interfaces/_models_storageUploadP2PVideoRequest.StorageUploadP2PVideoRequest.html +5 -0
- package/src/gen/_docs/html/interfaces/_models_storageUploadP2PVideoResponse.StorageUploadP2PVideoResponse.html +6 -0
- package/src/gen/_docs/html/interfaces/_models_webitelCasesFieldChange.WebitelCasesFieldChange.html +8 -0
- package/src/gen/_docs/html/interfaces/_models_webitelCasesUpdateCaseResponse.WebitelCasesUpdateCaseResponse.html +3 -0
- package/src/gen/_docs/html/modules/_models.html +1 -1
- package/src/gen/_docs/html/modules/_models_storageICEServers.html +1 -0
- package/src/gen/_docs/html/modules/_models_storageUploadP2PVideoRequest.html +1 -0
- package/src/gen/_docs/html/modules/_models_storageUploadP2PVideoResponse.html +1 -0
- package/src/gen/_docs/html/modules/_models_webitelCasesFieldChange.html +1 -0
- package/src/gen/_docs/html/modules/_models_webitelCasesUpdateCaseResponse.html +1 -0
- package/src/gen/_docs/html/modules/cases_cases.zod.gen.html +2 -2
- package/src/gen/_docs/html/modules/file-service_file-service.api.gen.html +1 -1
- package/src/gen/_docs/html/modules/file-service_file-service.msw.api.gen.html +1 -1
- package/src/gen/_docs/html/modules/file-service_file-service.zod.gen.html +1 -1
- package/src/gen/_docs/html/modules/index.html +1 -1
- package/src/gen/_docs/html/types/cases_cases.api.gen.UpdateCase2Result.html +1 -1
- package/src/gen/_docs/html/types/cases_cases.api.gen.UpdateCaseResult.html +1 -1
- package/src/gen/_docs/html/types/file-service_file-service.api.gen.FileServiceUploadP2PVideoResult.html +1 -0
- package/src/gen/_docs/html/variables/_models_engineTriggerObjectType.EngineTriggerObjectType.html +1 -1
- package/src/gen/_docs/html/variables/_models_fileServiceSearchFilesChannelItem.FileServiceSearchFilesChannelItem.html +1 -1
- package/src/gen/_docs/html/variables/_models_storageUploadFileChannel.StorageUploadFileChannel.html +1 -1
- package/src/gen/_docs/html/variables/cases_cases.zod.gen.updateCase2Response.html +1 -1
- package/src/gen/_docs/html/variables/cases_cases.zod.gen.updateCase2ResponseCaseRelatedDataItemRelationTypeDefault.html +1 -0
- package/src/gen/_docs/html/variables/cases_cases.zod.gen.updateCase2ResponseCaseSourceTypeDefault.html +1 -0
- package/src/gen/_docs/html/variables/cases_cases.zod.gen.updateCaseResponse.html +1 -1
- package/src/gen/_docs/html/variables/cases_cases.zod.gen.updateCaseResponseCaseRelatedDataItemRelationTypeDefault.html +1 -0
- package/src/gen/_docs/html/variables/cases_cases.zod.gen.updateCaseResponseCaseSourceTypeDefault.html +1 -0
- package/src/gen/_docs/html/variables/file-policies-service_file-policies-service.zod.gen.filePoliciesServiceCreateFilePolicyBody.html +1 -1
- package/src/gen/_docs/html/variables/file-policies-service_file-policies-service.zod.gen.filePoliciesServiceCreateFilePolicyResponse.html +1 -1
- package/src/gen/_docs/html/variables/file-policies-service_file-policies-service.zod.gen.filePoliciesServiceDeleteFilePolicyResponse.html +1 -1
- package/src/gen/_docs/html/variables/file-policies-service_file-policies-service.zod.gen.filePoliciesServicePatchFilePolicyBody.html +1 -1
- package/src/gen/_docs/html/variables/file-policies-service_file-policies-service.zod.gen.filePoliciesServicePatchFilePolicyResponse.html +1 -1
- package/src/gen/_docs/html/variables/file-policies-service_file-policies-service.zod.gen.filePoliciesServiceReadFilePolicyResponse.html +1 -1
- package/src/gen/_docs/html/variables/file-policies-service_file-policies-service.zod.gen.filePoliciesServiceSearchFilePoliciesResponse.html +1 -1
- package/src/gen/_docs/html/variables/file-policies-service_file-policies-service.zod.gen.filePoliciesServiceUpdateFilePolicyBody.html +1 -1
- package/src/gen/_docs/html/variables/file-policies-service_file-policies-service.zod.gen.filePoliciesServiceUpdateFilePolicyResponse.html +1 -1
- package/src/gen/_docs/html/variables/file-service_file-service.zod.gen.fileServiceSearchFilesQueryParams.html +1 -1
- package/src/gen/_docs/html/variables/file-service_file-service.zod.gen.fileServiceSearchFilesResponse.html +1 -1
- package/src/gen/_docs/html/variables/file-service_file-service.zod.gen.fileServiceUploadP2PVideoBody.html +1 -0
- package/src/gen/_docs/html/variables/file-service_file-service.zod.gen.fileServiceUploadP2PVideoResponse.html +1 -0
- package/src/gen/_docs/html/variables/trigger-service_trigger-service.zod.gen.createTriggerBody.html +1 -1
- package/src/gen/_docs/html/variables/trigger-service_trigger-service.zod.gen.createTriggerResponse.html +1 -1
- package/src/gen/_docs/html/variables/trigger-service_trigger-service.zod.gen.deleteTriggerResponse.html +1 -1
- package/src/gen/_docs/html/variables/trigger-service_trigger-service.zod.gen.patchTriggerBody.html +1 -1
- package/src/gen/_docs/html/variables/trigger-service_trigger-service.zod.gen.patchTriggerResponse.html +1 -1
- package/src/gen/_docs/html/variables/trigger-service_trigger-service.zod.gen.readTriggerResponse.html +1 -1
- package/src/gen/_docs/html/variables/trigger-service_trigger-service.zod.gen.searchTriggerResponse.html +1 -1
- package/src/gen/_docs/html/variables/trigger-service_trigger-service.zod.gen.updateTriggerBody.html +1 -1
- package/src/gen/_docs/html/variables/trigger-service_trigger-service.zod.gen.updateTriggerResponse.html +1 -1
- package/src/gen/_models/engineTriggerObjectType.ts +1 -0
- package/src/gen/_models/fileServiceSearchFilesChannelItem.ts +2 -0
- package/src/gen/_models/index.ts +5 -0
- package/src/gen/_models/storageICEServers.ts +13 -0
- package/src/gen/_models/storageUploadFileChannel.ts +2 -0
- package/src/gen/_models/storageUploadP2PVideoRequest.ts +14 -0
- package/src/gen/_models/storageUploadP2PVideoResponse.ts +10 -0
- package/src/gen/_models/webitelCasesFieldChange.ts +12 -0
- package/src/gen/_models/webitelCasesUpdateCaseResponse.ts +13 -0
- package/src/gen/cases/cases.api.gen.ts +9 -4
- package/src/gen/cases/cases.msw.api.gen.ts +1153 -1061
- package/src/gen/cases/cases.zod.gen.ts +1009 -975
- package/src/gen/file-policies-service/file-policies-service.zod.gen.ts +18 -0
- package/src/gen/file-service/file-service.api.gen.ts +21 -1
- package/src/gen/file-service/file-service.msw.api.gen.ts +41 -1
- package/src/gen/file-service/file-service.zod.gen.ts +24 -0
- package/src/gen/trigger-service/trigger-service.zod.gen.ts +9 -0
- package/types/gen/_models/casesCaseCustom.d.ts +12 -0
- package/types/gen/_models/casesInputCaseCustom.d.ts +12 -0
- package/types/gen/_models/casesInputCreateCaseCustom.d.ts +12 -0
- package/types/gen/_models/engineTriggerObjectType.d.ts +1 -0
- package/types/gen/_models/fileServiceSearchFilesChannelItem.d.ts +2 -0
- package/types/gen/_models/googlerpcStatus.d.ts +4 -4
- package/types/gen/_models/index.d.ts +5 -0
- package/types/gen/_models/protobufNullValue.d.ts +18 -0
- package/types/gen/_models/storageICEServers.d.ts +12 -0
- package/types/gen/_models/storageUploadFileChannel.d.ts +2 -0
- package/types/gen/_models/storageUploadP2PVideoRequest.d.ts +13 -0
- package/types/gen/_models/storageUploadP2PVideoResponse.d.ts +9 -0
- package/types/gen/_models/webitelCasesFieldChange.d.ts +11 -0
- package/types/gen/_models/webitelCasesUpdateCaseResponse.d.ts +12 -0
- package/types/gen/_models/webitelcasesStatus.d.ts +2 -2
- package/types/gen/cases/cases.api.gen.d.ts +5 -5
- package/types/gen/cases/cases.msw.api.gen.d.ts +5 -5
- package/types/gen/cases/cases.zod.gen.d.ts +410 -396
- package/types/gen/file-policies-service/file-policies-service.zod.gen.d.ts +18 -0
- package/types/gen/file-service/file-service.api.gen.d.ts +3 -1
- package/types/gen/file-service/file-service.msw.api.gen.d.ts +3 -1
- package/types/gen/file-service/file-service.zod.gen.d.ts +18 -0
- package/types/gen/trigger-service/trigger-service.zod.gen.d.ts +9 -0
- package/src/gen/_docs/html/variables/cases_cases.zod.gen.updateCase2ResponseRelatedDataItemRelationTypeDefault.html +0 -1
- package/src/gen/_docs/html/variables/cases_cases.zod.gen.updateCase2ResponseSourceTypeDefault.html +0 -1
- package/src/gen/_docs/html/variables/cases_cases.zod.gen.updateCaseResponseRelatedDataItemRelationTypeDefault.html +0 -1
- package/src/gen/_docs/html/variables/cases_cases.zod.gen.updateCaseResponseSourceTypeDefault.html +0 -1
- package/types/gen/_models/googleRpcStatus.d.ts +0 -12
- package/types/gen/_models/webitelCasesStatus.d.ts +0 -16
|
@@ -2196,1035 +2196,1069 @@ export const updateCase2Body = zod.object({
|
|
|
2196
2196
|
.optional(),
|
|
2197
2197
|
});
|
|
2198
2198
|
|
|
2199
|
-
export const
|
|
2199
|
+
export const updateCase2ResponseCaseRelatedDataItemRelationTypeDefault =
|
|
2200
2200
|
'RELATION_TYPE_UNSPECIFIED';
|
|
2201
|
-
export const
|
|
2201
|
+
export const updateCase2ResponseCaseSourceTypeDefault = 'TYPE_UNSPECIFIED';
|
|
2202
2202
|
|
|
2203
|
-
export const updateCase2Response = zod
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2203
|
+
export const updateCase2Response = zod.object({
|
|
2204
|
+
case: zod
|
|
2205
|
+
.object({
|
|
2206
|
+
assignee: zod
|
|
2207
|
+
.object({
|
|
2208
|
+
id: zod.string().optional(),
|
|
2209
|
+
name: zod.string().optional(),
|
|
2210
|
+
})
|
|
2211
|
+
.optional(),
|
|
2212
|
+
author: zod
|
|
2213
|
+
.object({
|
|
2214
|
+
id: zod.string().optional(),
|
|
2215
|
+
name: zod.string().optional(),
|
|
2216
|
+
})
|
|
2217
|
+
.optional(),
|
|
2218
|
+
closeReason: zod
|
|
2219
|
+
.object({
|
|
2220
|
+
id: zod.string().optional(),
|
|
2221
|
+
name: zod.string().optional(),
|
|
2222
|
+
})
|
|
2223
|
+
.optional(),
|
|
2224
|
+
closeReasonGroup: zod
|
|
2225
|
+
.object({
|
|
2226
|
+
id: zod.string().optional(),
|
|
2227
|
+
name: zod.string().optional(),
|
|
2228
|
+
})
|
|
2229
|
+
.optional(),
|
|
2230
|
+
closeResult: zod.string().optional(),
|
|
2231
|
+
comments: zod
|
|
2232
|
+
.object({
|
|
2233
|
+
items: zod
|
|
2234
|
+
.array(
|
|
2235
|
+
zod
|
|
2236
|
+
.object({
|
|
2237
|
+
author: zod
|
|
2238
|
+
.object({
|
|
2239
|
+
id: zod.string().optional(),
|
|
2240
|
+
name: zod.string().optional(),
|
|
2241
|
+
})
|
|
2242
|
+
.optional(),
|
|
2243
|
+
canEdit: zod
|
|
2244
|
+
.boolean()
|
|
2245
|
+
.optional()
|
|
2246
|
+
.describe(
|
|
2247
|
+
'Indicates if the comment can be edited by current user.',
|
|
2248
|
+
),
|
|
2249
|
+
caseId: zod
|
|
2250
|
+
.string()
|
|
2251
|
+
.optional()
|
|
2252
|
+
.describe('Optional relation to the associated case.'),
|
|
2253
|
+
createdAt: zod
|
|
2254
|
+
.string()
|
|
2255
|
+
.optional()
|
|
2256
|
+
.describe(
|
|
2257
|
+
'Timestamp (in milliseconds) of when the comment was created.',
|
|
2258
|
+
),
|
|
2259
|
+
createdBy: zod
|
|
2260
|
+
.object({
|
|
2261
|
+
id: zod.string().optional(),
|
|
2262
|
+
name: zod.string().optional(),
|
|
2263
|
+
})
|
|
2264
|
+
.optional(),
|
|
2265
|
+
edited: zod
|
|
2266
|
+
.boolean()
|
|
2267
|
+
.optional()
|
|
2268
|
+
.describe(
|
|
2269
|
+
'Indicates if the comment was edited; true if created_at < updated_at.',
|
|
2270
|
+
),
|
|
2271
|
+
etag: zod.string().optional(),
|
|
2272
|
+
id: zod
|
|
2273
|
+
.string()
|
|
2274
|
+
.optional()
|
|
2275
|
+
.describe(
|
|
2276
|
+
'Main identifier for read, update, and delete operations.',
|
|
2277
|
+
),
|
|
2278
|
+
roleIds: zod.array(zod.string()).optional(),
|
|
2279
|
+
text: zod
|
|
2280
|
+
.string()
|
|
2281
|
+
.optional()
|
|
2282
|
+
.describe('The content of the comment.'),
|
|
2283
|
+
updatedAt: zod
|
|
2284
|
+
.string()
|
|
2285
|
+
.optional()
|
|
2286
|
+
.describe(
|
|
2287
|
+
'Timestamp (in milliseconds) of the last update.',
|
|
2288
|
+
),
|
|
2289
|
+
updatedBy: zod
|
|
2290
|
+
.object({
|
|
2291
|
+
id: zod.string().optional(),
|
|
2292
|
+
name: zod.string().optional(),
|
|
2293
|
+
})
|
|
2294
|
+
.optional(),
|
|
2295
|
+
ver: zod
|
|
2296
|
+
.number()
|
|
2297
|
+
.optional()
|
|
2298
|
+
.describe(
|
|
2299
|
+
'Version number of the comment, used for concurrency control.',
|
|
2300
|
+
),
|
|
2301
|
+
})
|
|
2302
|
+
.describe('Represents a comment associated with a case.'),
|
|
2303
|
+
)
|
|
2304
|
+
.optional()
|
|
2305
|
+
.describe('List of comments on the current page.'),
|
|
2306
|
+
next: zod
|
|
2307
|
+
.boolean()
|
|
2308
|
+
.optional()
|
|
2309
|
+
.describe('Flag to indicate if more pages are available.'),
|
|
2310
|
+
page: zod.string().optional().describe('Current page number.'),
|
|
2311
|
+
})
|
|
2312
|
+
.optional()
|
|
2313
|
+
.describe('Contains a paginated list of comments.'),
|
|
2314
|
+
contactInfo: zod
|
|
2315
|
+
.string()
|
|
2316
|
+
.optional()
|
|
2317
|
+
.describe('Contact information for the case.'),
|
|
2318
|
+
createdAt: zod
|
|
2319
|
+
.string()
|
|
2320
|
+
.optional()
|
|
2321
|
+
.describe('Creation timestamp (in milliseconds since Unix epoch).'),
|
|
2322
|
+
createdBy: zod
|
|
2323
|
+
.object({
|
|
2324
|
+
id: zod.string().optional(),
|
|
2325
|
+
name: zod.string().optional(),
|
|
2326
|
+
})
|
|
2327
|
+
.optional(),
|
|
2328
|
+
custom: zod
|
|
2329
|
+
.object({})
|
|
2330
|
+
.optional()
|
|
2331
|
+
.describe('Custom data extension fields ..'),
|
|
2332
|
+
dc: zod.string().optional(),
|
|
2333
|
+
description: zod
|
|
2334
|
+
.string()
|
|
2335
|
+
.optional()
|
|
2336
|
+
.describe('Detailed description of the case.'),
|
|
2337
|
+
differenceInReaction: zod.string().optional(),
|
|
2338
|
+
differenceInResolve: zod.string().optional(),
|
|
2339
|
+
etag: zod.string().optional().describe('Unique etag identifier.'),
|
|
2340
|
+
files: zod
|
|
2341
|
+
.object({
|
|
2342
|
+
items: zod
|
|
2343
|
+
.array(
|
|
2344
|
+
zod
|
|
2345
|
+
.object({
|
|
2346
|
+
author: zod
|
|
2347
|
+
.object({
|
|
2348
|
+
id: zod.string().optional(),
|
|
2349
|
+
name: zod.string().optional(),
|
|
2350
|
+
})
|
|
2351
|
+
.optional(),
|
|
2352
|
+
createdAt: zod
|
|
2353
|
+
.string()
|
|
2354
|
+
.optional()
|
|
2355
|
+
.describe('Creation timestamp in Unix milliseconds.'),
|
|
2356
|
+
createdBy: zod
|
|
2357
|
+
.object({
|
|
2358
|
+
id: zod.string().optional(),
|
|
2359
|
+
name: zod.string().optional(),
|
|
2360
|
+
})
|
|
2361
|
+
.optional(),
|
|
2362
|
+
id: zod.string().optional().describe('Storage file ID.'),
|
|
2363
|
+
mime: zod
|
|
2364
|
+
.string()
|
|
2365
|
+
.optional()
|
|
2366
|
+
.describe('MIME type of the file.'),
|
|
2367
|
+
name: zod.string().optional().describe('File name.'),
|
|
2368
|
+
size: zod.string().optional().describe('File size in bytes.'),
|
|
2369
|
+
url: zod.string().optional(),
|
|
2370
|
+
})
|
|
2371
|
+
.describe('Metadata for a file associated with a case.'),
|
|
2372
|
+
)
|
|
2373
|
+
.optional()
|
|
2374
|
+
.describe('List of case files.'),
|
|
2375
|
+
next: zod
|
|
2376
|
+
.boolean()
|
|
2377
|
+
.optional()
|
|
2378
|
+
.describe('Indicator if there is a next page.'),
|
|
2379
|
+
page: zod.string().optional().describe('Current page number.'),
|
|
2380
|
+
})
|
|
2381
|
+
.optional()
|
|
2382
|
+
.describe('Contains a list of case files with pagination.'),
|
|
2383
|
+
group: zod
|
|
2384
|
+
.object({
|
|
2385
|
+
id: zod.string().optional(),
|
|
2386
|
+
name: zod.string().optional(),
|
|
2387
|
+
type: zod.string().optional(),
|
|
2388
|
+
})
|
|
2389
|
+
.optional(),
|
|
2390
|
+
id: zod.string().optional().describe('Unique case ID.'),
|
|
2391
|
+
impacted: zod
|
|
2392
|
+
.object({
|
|
2393
|
+
id: zod.string().optional(),
|
|
2394
|
+
name: zod.string().optional(),
|
|
2395
|
+
})
|
|
2396
|
+
.optional(),
|
|
2397
|
+
links: zod
|
|
2398
|
+
.object({
|
|
2399
|
+
items: zod
|
|
2400
|
+
.array(
|
|
2401
|
+
zod.object({
|
|
2236
2402
|
author: zod
|
|
2237
2403
|
.object({
|
|
2238
2404
|
id: zod.string().optional(),
|
|
2239
2405
|
name: zod.string().optional(),
|
|
2240
2406
|
})
|
|
2241
2407
|
.optional(),
|
|
2242
|
-
|
|
2243
|
-
.boolean()
|
|
2244
|
-
.optional()
|
|
2245
|
-
.describe(
|
|
2246
|
-
'Indicates if the comment can be edited by current user.',
|
|
2247
|
-
),
|
|
2248
|
-
caseId: zod
|
|
2249
|
-
.string()
|
|
2250
|
-
.optional()
|
|
2251
|
-
.describe('Optional relation to the associated case.'),
|
|
2252
|
-
createdAt: zod
|
|
2253
|
-
.string()
|
|
2254
|
-
.optional()
|
|
2255
|
-
.describe(
|
|
2256
|
-
'Timestamp (in milliseconds) of when the comment was created.',
|
|
2257
|
-
),
|
|
2408
|
+
createdAt: zod.string().optional(),
|
|
2258
2409
|
createdBy: zod
|
|
2259
2410
|
.object({
|
|
2260
2411
|
id: zod.string().optional(),
|
|
2261
2412
|
name: zod.string().optional(),
|
|
2262
2413
|
})
|
|
2263
2414
|
.optional(),
|
|
2264
|
-
edited: zod
|
|
2265
|
-
.boolean()
|
|
2266
|
-
.optional()
|
|
2267
|
-
.describe(
|
|
2268
|
-
'Indicates if the comment was edited; true if created_at < updated_at.',
|
|
2269
|
-
),
|
|
2270
2415
|
etag: zod.string().optional(),
|
|
2271
|
-
id: zod
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
.describe(
|
|
2275
|
-
'Main identifier for read, update, and delete operations.',
|
|
2276
|
-
),
|
|
2277
|
-
roleIds: zod.array(zod.string()).optional(),
|
|
2278
|
-
text: zod
|
|
2279
|
-
.string()
|
|
2280
|
-
.optional()
|
|
2281
|
-
.describe('The content of the comment.'),
|
|
2282
|
-
updatedAt: zod
|
|
2283
|
-
.string()
|
|
2284
|
-
.optional()
|
|
2285
|
-
.describe('Timestamp (in milliseconds) of the last update.'),
|
|
2416
|
+
id: zod.string().optional(),
|
|
2417
|
+
name: zod.string().optional(),
|
|
2418
|
+
updatedAt: zod.string().optional(),
|
|
2286
2419
|
updatedBy: zod
|
|
2287
2420
|
.object({
|
|
2288
2421
|
id: zod.string().optional(),
|
|
2289
2422
|
name: zod.string().optional(),
|
|
2290
2423
|
})
|
|
2291
2424
|
.optional(),
|
|
2292
|
-
ver: zod
|
|
2293
|
-
.number()
|
|
2294
|
-
.optional()
|
|
2295
|
-
.describe(
|
|
2296
|
-
'Version number of the comment, used for concurrency control.',
|
|
2297
|
-
),
|
|
2298
|
-
})
|
|
2299
|
-
.describe('Represents a comment associated with a case.'),
|
|
2300
|
-
)
|
|
2301
|
-
.optional()
|
|
2302
|
-
.describe('List of comments on the current page.'),
|
|
2303
|
-
next: zod
|
|
2304
|
-
.boolean()
|
|
2305
|
-
.optional()
|
|
2306
|
-
.describe('Flag to indicate if more pages are available.'),
|
|
2307
|
-
page: zod.string().optional().describe('Current page number.'),
|
|
2308
|
-
})
|
|
2309
|
-
.optional()
|
|
2310
|
-
.describe('Contains a paginated list of comments.'),
|
|
2311
|
-
contactInfo: zod
|
|
2312
|
-
.string()
|
|
2313
|
-
.optional()
|
|
2314
|
-
.describe('Contact information for the case.'),
|
|
2315
|
-
createdAt: zod
|
|
2316
|
-
.string()
|
|
2317
|
-
.optional()
|
|
2318
|
-
.describe('Creation timestamp (in milliseconds since Unix epoch).'),
|
|
2319
|
-
createdBy: zod
|
|
2320
|
-
.object({
|
|
2321
|
-
id: zod.string().optional(),
|
|
2322
|
-
name: zod.string().optional(),
|
|
2323
|
-
})
|
|
2324
|
-
.optional(),
|
|
2325
|
-
custom: zod
|
|
2326
|
-
.object({})
|
|
2327
|
-
.optional()
|
|
2328
|
-
.describe('Custom data extension fields ..'),
|
|
2329
|
-
dc: zod.string().optional(),
|
|
2330
|
-
description: zod
|
|
2331
|
-
.string()
|
|
2332
|
-
.optional()
|
|
2333
|
-
.describe('Detailed description of the case.'),
|
|
2334
|
-
differenceInReaction: zod.string().optional(),
|
|
2335
|
-
differenceInResolve: zod.string().optional(),
|
|
2336
|
-
etag: zod.string().optional().describe('Unique etag identifier.'),
|
|
2337
|
-
files: zod
|
|
2338
|
-
.object({
|
|
2339
|
-
items: zod
|
|
2340
|
-
.array(
|
|
2341
|
-
zod
|
|
2342
|
-
.object({
|
|
2343
|
-
author: zod
|
|
2344
|
-
.object({
|
|
2345
|
-
id: zod.string().optional(),
|
|
2346
|
-
name: zod.string().optional(),
|
|
2347
|
-
})
|
|
2348
|
-
.optional(),
|
|
2349
|
-
createdAt: zod
|
|
2350
|
-
.string()
|
|
2351
|
-
.optional()
|
|
2352
|
-
.describe('Creation timestamp in Unix milliseconds.'),
|
|
2353
|
-
createdBy: zod
|
|
2354
|
-
.object({
|
|
2355
|
-
id: zod.string().optional(),
|
|
2356
|
-
name: zod.string().optional(),
|
|
2357
|
-
})
|
|
2358
|
-
.optional(),
|
|
2359
|
-
id: zod.string().optional().describe('Storage file ID.'),
|
|
2360
|
-
mime: zod
|
|
2361
|
-
.string()
|
|
2362
|
-
.optional()
|
|
2363
|
-
.describe('MIME type of the file.'),
|
|
2364
|
-
name: zod.string().optional().describe('File name.'),
|
|
2365
|
-
size: zod.string().optional().describe('File size in bytes.'),
|
|
2366
2425
|
url: zod.string().optional(),
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
.
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
.optional(),
|
|
2394
|
-
links: zod
|
|
2395
|
-
.object({
|
|
2396
|
-
items: zod
|
|
2397
|
-
.array(
|
|
2398
|
-
zod.object({
|
|
2399
|
-
author: zod
|
|
2400
|
-
.object({
|
|
2401
|
-
id: zod.string().optional(),
|
|
2402
|
-
name: zod.string().optional(),
|
|
2403
|
-
})
|
|
2404
|
-
.optional(),
|
|
2405
|
-
createdAt: zod.string().optional(),
|
|
2406
|
-
createdBy: zod
|
|
2407
|
-
.object({
|
|
2408
|
-
id: zod.string().optional(),
|
|
2409
|
-
name: zod.string().optional(),
|
|
2410
|
-
})
|
|
2411
|
-
.optional(),
|
|
2412
|
-
etag: zod.string().optional(),
|
|
2426
|
+
ver: zod.number().optional(),
|
|
2427
|
+
}),
|
|
2428
|
+
)
|
|
2429
|
+
.optional(),
|
|
2430
|
+
next: zod.boolean().optional(),
|
|
2431
|
+
page: zod.string().optional(),
|
|
2432
|
+
})
|
|
2433
|
+
.optional(),
|
|
2434
|
+
name: zod
|
|
2435
|
+
.string()
|
|
2436
|
+
.optional()
|
|
2437
|
+
.describe('Name of the case (may serve as an ID in docs).'),
|
|
2438
|
+
plannedReactionAt: zod
|
|
2439
|
+
.string()
|
|
2440
|
+
.optional()
|
|
2441
|
+
.describe('Planned reaction time (in milliseconds).'),
|
|
2442
|
+
plannedResolveAt: zod
|
|
2443
|
+
.string()
|
|
2444
|
+
.optional()
|
|
2445
|
+
.describe('Planned resolution time (in milliseconds).'),
|
|
2446
|
+
priority: zod
|
|
2447
|
+
.object({
|
|
2448
|
+
color: zod.string().optional(),
|
|
2449
|
+
createdAt: zod.string().optional(),
|
|
2450
|
+
createdBy: zod
|
|
2451
|
+
.object({
|
|
2413
2452
|
id: zod.string().optional(),
|
|
2414
2453
|
name: zod.string().optional(),
|
|
2415
|
-
|
|
2416
|
-
|
|
2454
|
+
})
|
|
2455
|
+
.optional(),
|
|
2456
|
+
description: zod.string().optional(),
|
|
2457
|
+
id: zod.string().optional(),
|
|
2458
|
+
name: zod.string().optional(),
|
|
2459
|
+
updatedAt: zod.string().optional(),
|
|
2460
|
+
updatedBy: zod
|
|
2461
|
+
.object({
|
|
2462
|
+
id: zod.string().optional(),
|
|
2463
|
+
name: zod.string().optional(),
|
|
2464
|
+
})
|
|
2465
|
+
.optional(),
|
|
2466
|
+
})
|
|
2467
|
+
.optional(),
|
|
2468
|
+
rating: zod.string().optional(),
|
|
2469
|
+
ratingComment: zod.string().optional(),
|
|
2470
|
+
reactedAt: zod.string().optional(),
|
|
2471
|
+
related: zod
|
|
2472
|
+
.object({
|
|
2473
|
+
data: zod
|
|
2474
|
+
.array(
|
|
2475
|
+
zod
|
|
2417
2476
|
.object({
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
})
|
|
2516
|
-
.optional()
|
|
2517
|
-
.describe(
|
|
2518
|
-
'RelatedCaseLookup is created specifically to include the subject field.',
|
|
2519
|
-
),
|
|
2520
|
-
relationType: zod
|
|
2521
|
-
.enum([
|
|
2522
|
-
'RELATION_TYPE_UNSPECIFIED',
|
|
2523
|
-
'DUPLICATES',
|
|
2524
|
-
'IS_DUPLICATED_BY',
|
|
2525
|
-
'BLOCKS',
|
|
2526
|
-
'IS_BLOCKED_BY',
|
|
2527
|
-
'CAUSES',
|
|
2528
|
-
'IS_CAUSED_BY',
|
|
2529
|
-
'IS_CHILD_OF',
|
|
2530
|
-
'IS_PARENT_OF',
|
|
2531
|
-
'RELATES_TO',
|
|
2532
|
-
])
|
|
2533
|
-
.default(
|
|
2534
|
-
updateCase2ResponseRelatedDataItemRelationTypeDefault,
|
|
2535
|
-
)
|
|
2536
|
-
.describe('Enum for relation types between cases.'),
|
|
2537
|
-
updatedAt: zod
|
|
2538
|
-
.string()
|
|
2539
|
-
.optional()
|
|
2540
|
-
.describe('Timestamp (in milliseconds) of the last update.'),
|
|
2541
|
-
updatedBy: zod
|
|
2542
|
-
.object({
|
|
2543
|
-
id: zod.string().optional(),
|
|
2544
|
-
name: zod.string().optional(),
|
|
2545
|
-
})
|
|
2546
|
-
.optional(),
|
|
2547
|
-
ver: zod
|
|
2548
|
-
.number()
|
|
2549
|
-
.optional()
|
|
2550
|
-
.describe(
|
|
2551
|
-
'Version number of the related case, used for concurrency control.',
|
|
2552
|
-
),
|
|
2553
|
-
})
|
|
2554
|
-
.describe(
|
|
2555
|
-
'Represents a related case with its relationship details.',
|
|
2556
|
-
),
|
|
2557
|
-
)
|
|
2558
|
-
.optional()
|
|
2559
|
-
.describe('List of related cases on the current page.'),
|
|
2560
|
-
next: zod
|
|
2561
|
-
.boolean()
|
|
2562
|
-
.optional()
|
|
2563
|
-
.describe('Flag to indicate if more pages are available.'),
|
|
2564
|
-
page: zod.string().optional().describe('Current page number.'),
|
|
2565
|
-
})
|
|
2566
|
-
.optional()
|
|
2567
|
-
.describe('Paginated list of related cases.'),
|
|
2568
|
-
reporter: zod
|
|
2569
|
-
.object({
|
|
2570
|
-
id: zod.string().optional(),
|
|
2571
|
-
name: zod.string().optional(),
|
|
2572
|
-
})
|
|
2573
|
-
.optional(),
|
|
2574
|
-
resolvedAt: zod.string().optional(),
|
|
2575
|
-
roleIds: zod.array(zod.string()).optional(),
|
|
2576
|
-
service: zod
|
|
2577
|
-
.object({
|
|
2578
|
-
id: zod.string().optional(),
|
|
2579
|
-
name: zod.string().optional(),
|
|
2580
|
-
})
|
|
2581
|
-
.optional(),
|
|
2582
|
-
sla: zod
|
|
2583
|
-
.object({
|
|
2584
|
-
id: zod.string().optional(),
|
|
2585
|
-
name: zod.string().optional(),
|
|
2586
|
-
})
|
|
2587
|
-
.optional(),
|
|
2588
|
-
slaCondition: zod
|
|
2589
|
-
.object({
|
|
2590
|
-
id: zod.string().optional(),
|
|
2591
|
-
name: zod.string().optional(),
|
|
2592
|
-
})
|
|
2593
|
-
.optional(),
|
|
2594
|
-
source: zod
|
|
2595
|
-
.object({
|
|
2596
|
-
id: zod.string().optional(),
|
|
2597
|
-
name: zod.string().optional(),
|
|
2598
|
-
type: zod
|
|
2599
|
-
.enum([
|
|
2600
|
-
'TYPE_UNSPECIFIED',
|
|
2601
|
-
'CALL',
|
|
2602
|
-
'CHAT',
|
|
2603
|
-
'SOCIAL_MEDIA',
|
|
2604
|
-
'EMAIL',
|
|
2605
|
-
'API',
|
|
2606
|
-
'MANUAL',
|
|
2607
|
-
])
|
|
2608
|
-
.default(updateCase2ResponseSourceTypeDefault)
|
|
2609
|
-
.describe(
|
|
2610
|
-
'Represents a source type for the source entity.\n\n - TYPE_UNSPECIFIED: Unspecified source type.\n - CALL: Phone call source type.\n - CHAT: Chat source type.\n - SOCIAL_MEDIA: Social media source type.\n - EMAIL: Email source type.\n - API: API source type.\n - MANUAL: Manual source type.',
|
|
2611
|
-
),
|
|
2612
|
-
})
|
|
2613
|
-
.optional(),
|
|
2614
|
-
status: zod
|
|
2615
|
-
.object({
|
|
2616
|
-
id: zod.string().optional(),
|
|
2617
|
-
name: zod.string().optional(),
|
|
2618
|
-
})
|
|
2619
|
-
.optional(),
|
|
2620
|
-
statusCondition: zod
|
|
2621
|
-
.object({
|
|
2622
|
-
createdAt: zod.string().optional(),
|
|
2623
|
-
createdBy: zod
|
|
2624
|
-
.object({
|
|
2625
|
-
id: zod.string().optional(),
|
|
2626
|
-
name: zod.string().optional(),
|
|
2627
|
-
})
|
|
2628
|
-
.optional(),
|
|
2629
|
-
description: zod.string().optional(),
|
|
2630
|
-
final: zod.boolean().optional(),
|
|
2631
|
-
id: zod.string().optional(),
|
|
2632
|
-
initial: zod.boolean().optional(),
|
|
2633
|
-
name: zod.string().optional(),
|
|
2634
|
-
statusId: zod.string().optional(),
|
|
2635
|
-
updatedAt: zod.string().optional(),
|
|
2636
|
-
updatedBy: zod
|
|
2637
|
-
.object({
|
|
2638
|
-
id: zod.string().optional(),
|
|
2639
|
-
name: zod.string().optional(),
|
|
2640
|
-
})
|
|
2641
|
-
.optional(),
|
|
2642
|
-
})
|
|
2643
|
-
.optional(),
|
|
2644
|
-
subject: zod.string().optional().describe('Subject of the case.'),
|
|
2645
|
-
updatedAt: zod
|
|
2646
|
-
.string()
|
|
2647
|
-
.optional()
|
|
2648
|
-
.describe('Last update timestamp (in milliseconds since Unix epoch).'),
|
|
2649
|
-
updatedBy: zod
|
|
2650
|
-
.object({
|
|
2651
|
-
id: zod.string().optional(),
|
|
2652
|
-
name: zod.string().optional(),
|
|
2653
|
-
})
|
|
2654
|
-
.optional(),
|
|
2655
|
-
ver: zod.number().optional().describe('Version number of the case.'),
|
|
2656
|
-
})
|
|
2657
|
-
.describe('Message representing a case.');
|
|
2658
|
-
|
|
2659
|
-
/**
|
|
2660
|
-
* @summary RPC method for updating an existing case.
|
|
2661
|
-
*/
|
|
2662
|
-
export const updateCaseParams = zod.object({
|
|
2663
|
-
'input.etag': zod.string(),
|
|
2664
|
-
});
|
|
2665
|
-
|
|
2666
|
-
export const updateCaseQueryParams = zod.object({
|
|
2667
|
-
xJsonMask: zod
|
|
2668
|
-
.array(zod.string())
|
|
2669
|
-
.optional()
|
|
2670
|
-
.describe('List of JSON fields to update.'),
|
|
2671
|
-
fields: zod
|
|
2672
|
-
.array(zod.string())
|
|
2673
|
-
.optional()
|
|
2674
|
-
.describe('List of fields to include in the response.'),
|
|
2675
|
-
});
|
|
2676
|
-
|
|
2677
|
-
export const updateCaseBody = zod.object({
|
|
2678
|
-
assignee: zod
|
|
2679
|
-
.object({
|
|
2680
|
-
id: zod.string().optional(),
|
|
2681
|
-
name: zod.string().optional(),
|
|
2682
|
-
})
|
|
2683
|
-
.optional(),
|
|
2684
|
-
closeReason: zod
|
|
2685
|
-
.object({
|
|
2686
|
-
id: zod.string().optional(),
|
|
2687
|
-
name: zod.string().optional(),
|
|
2688
|
-
})
|
|
2689
|
-
.optional(),
|
|
2690
|
-
closeResult: zod.string().optional(),
|
|
2691
|
-
contactInfo: zod.string().optional(),
|
|
2692
|
-
custom: zod.object({}).optional().describe('Custom data extension fields ..'),
|
|
2693
|
-
description: zod.string().optional(),
|
|
2694
|
-
group: zod
|
|
2695
|
-
.object({
|
|
2696
|
-
id: zod.string().optional(),
|
|
2697
|
-
name: zod.string().optional(),
|
|
2698
|
-
})
|
|
2699
|
-
.optional(),
|
|
2700
|
-
impacted: zod
|
|
2701
|
-
.object({
|
|
2702
|
-
id: zod.string().optional(),
|
|
2703
|
-
name: zod.string().optional(),
|
|
2704
|
-
})
|
|
2705
|
-
.optional(),
|
|
2706
|
-
priority: zod
|
|
2707
|
-
.object({
|
|
2708
|
-
id: zod.string().optional(),
|
|
2709
|
-
name: zod.string().optional(),
|
|
2710
|
-
})
|
|
2711
|
-
.optional(),
|
|
2712
|
-
rating: zod.string().optional(),
|
|
2713
|
-
ratingComment: zod.string().optional(),
|
|
2714
|
-
reporter: zod
|
|
2715
|
-
.object({
|
|
2716
|
-
id: zod.string().optional(),
|
|
2717
|
-
name: zod.string().optional(),
|
|
2718
|
-
})
|
|
2719
|
-
.optional(),
|
|
2720
|
-
service: zod
|
|
2721
|
-
.object({
|
|
2722
|
-
id: zod.string().optional(),
|
|
2723
|
-
name: zod.string().optional(),
|
|
2724
|
-
})
|
|
2725
|
-
.optional(),
|
|
2726
|
-
source: zod
|
|
2727
|
-
.object({
|
|
2728
|
-
id: zod.string().optional(),
|
|
2729
|
-
name: zod.string().optional(),
|
|
2730
|
-
})
|
|
2731
|
-
.optional(),
|
|
2732
|
-
status: zod
|
|
2733
|
-
.object({
|
|
2734
|
-
id: zod.string().optional(),
|
|
2735
|
-
name: zod.string().optional(),
|
|
2736
|
-
})
|
|
2737
|
-
.optional(),
|
|
2738
|
-
statusCondition: zod
|
|
2739
|
-
.object({
|
|
2740
|
-
createdAt: zod.string().optional(),
|
|
2741
|
-
createdBy: zod
|
|
2477
|
+
createdAt: zod
|
|
2478
|
+
.string()
|
|
2479
|
+
.optional()
|
|
2480
|
+
.describe(
|
|
2481
|
+
'Timestamp (in milliseconds) of when the relation was created.',
|
|
2482
|
+
),
|
|
2483
|
+
createdBy: zod
|
|
2484
|
+
.object({
|
|
2485
|
+
id: zod.string().optional(),
|
|
2486
|
+
name: zod.string().optional(),
|
|
2487
|
+
})
|
|
2488
|
+
.optional(),
|
|
2489
|
+
etag: zod
|
|
2490
|
+
.string()
|
|
2491
|
+
.optional()
|
|
2492
|
+
.describe('Etag for the related case entity.'),
|
|
2493
|
+
id: zod
|
|
2494
|
+
.string()
|
|
2495
|
+
.optional()
|
|
2496
|
+
.describe('Unique identifier for the related case.'),
|
|
2497
|
+
primaryCase: zod
|
|
2498
|
+
.object({
|
|
2499
|
+
color: zod.string().optional(),
|
|
2500
|
+
etag: zod.string().optional(),
|
|
2501
|
+
id: zod.string().optional(),
|
|
2502
|
+
name: zod.string().optional(),
|
|
2503
|
+
subject: zod.string().optional(),
|
|
2504
|
+
ver: zod.number().optional(),
|
|
2505
|
+
})
|
|
2506
|
+
.optional()
|
|
2507
|
+
.describe(
|
|
2508
|
+
'RelatedCaseLookup is created specifically to include the subject field.',
|
|
2509
|
+
),
|
|
2510
|
+
relatedCase: zod
|
|
2511
|
+
.object({
|
|
2512
|
+
color: zod.string().optional(),
|
|
2513
|
+
etag: zod.string().optional(),
|
|
2514
|
+
id: zod.string().optional(),
|
|
2515
|
+
name: zod.string().optional(),
|
|
2516
|
+
subject: zod.string().optional(),
|
|
2517
|
+
ver: zod.number().optional(),
|
|
2518
|
+
})
|
|
2519
|
+
.optional()
|
|
2520
|
+
.describe(
|
|
2521
|
+
'RelatedCaseLookup is created specifically to include the subject field.',
|
|
2522
|
+
),
|
|
2523
|
+
relationType: zod
|
|
2524
|
+
.enum([
|
|
2525
|
+
'RELATION_TYPE_UNSPECIFIED',
|
|
2526
|
+
'DUPLICATES',
|
|
2527
|
+
'IS_DUPLICATED_BY',
|
|
2528
|
+
'BLOCKS',
|
|
2529
|
+
'IS_BLOCKED_BY',
|
|
2530
|
+
'CAUSES',
|
|
2531
|
+
'IS_CAUSED_BY',
|
|
2532
|
+
'IS_CHILD_OF',
|
|
2533
|
+
'IS_PARENT_OF',
|
|
2534
|
+
'RELATES_TO',
|
|
2535
|
+
])
|
|
2536
|
+
.default(
|
|
2537
|
+
updateCase2ResponseCaseRelatedDataItemRelationTypeDefault,
|
|
2538
|
+
)
|
|
2539
|
+
.describe('Enum for relation types between cases.'),
|
|
2540
|
+
updatedAt: zod
|
|
2541
|
+
.string()
|
|
2542
|
+
.optional()
|
|
2543
|
+
.describe(
|
|
2544
|
+
'Timestamp (in milliseconds) of the last update.',
|
|
2545
|
+
),
|
|
2546
|
+
updatedBy: zod
|
|
2547
|
+
.object({
|
|
2548
|
+
id: zod.string().optional(),
|
|
2549
|
+
name: zod.string().optional(),
|
|
2550
|
+
})
|
|
2551
|
+
.optional(),
|
|
2552
|
+
ver: zod
|
|
2553
|
+
.number()
|
|
2554
|
+
.optional()
|
|
2555
|
+
.describe(
|
|
2556
|
+
'Version number of the related case, used for concurrency control.',
|
|
2557
|
+
),
|
|
2558
|
+
})
|
|
2559
|
+
.describe(
|
|
2560
|
+
'Represents a related case with its relationship details.',
|
|
2561
|
+
),
|
|
2562
|
+
)
|
|
2563
|
+
.optional()
|
|
2564
|
+
.describe('List of related cases on the current page.'),
|
|
2565
|
+
next: zod
|
|
2566
|
+
.boolean()
|
|
2567
|
+
.optional()
|
|
2568
|
+
.describe('Flag to indicate if more pages are available.'),
|
|
2569
|
+
page: zod.string().optional().describe('Current page number.'),
|
|
2570
|
+
})
|
|
2571
|
+
.optional()
|
|
2572
|
+
.describe('Paginated list of related cases.'),
|
|
2573
|
+
reporter: zod
|
|
2742
2574
|
.object({
|
|
2743
2575
|
id: zod.string().optional(),
|
|
2744
2576
|
name: zod.string().optional(),
|
|
2745
2577
|
})
|
|
2746
2578
|
.optional(),
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
initial: zod.boolean().optional(),
|
|
2751
|
-
name: zod.string().optional(),
|
|
2752
|
-
statusId: zod.string().optional(),
|
|
2753
|
-
updatedAt: zod.string().optional(),
|
|
2754
|
-
updatedBy: zod
|
|
2579
|
+
resolvedAt: zod.string().optional(),
|
|
2580
|
+
roleIds: zod.array(zod.string()).optional(),
|
|
2581
|
+
service: zod
|
|
2755
2582
|
.object({
|
|
2756
2583
|
id: zod.string().optional(),
|
|
2757
2584
|
name: zod.string().optional(),
|
|
2758
2585
|
})
|
|
2759
2586
|
.optional(),
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
.object({
|
|
2804
|
-
items: zod
|
|
2805
|
-
.array(
|
|
2806
|
-
zod
|
|
2807
|
-
.object({
|
|
2808
|
-
author: zod
|
|
2809
|
-
.object({
|
|
2810
|
-
id: zod.string().optional(),
|
|
2811
|
-
name: zod.string().optional(),
|
|
2812
|
-
})
|
|
2813
|
-
.optional(),
|
|
2814
|
-
canEdit: zod
|
|
2815
|
-
.boolean()
|
|
2816
|
-
.optional()
|
|
2817
|
-
.describe(
|
|
2818
|
-
'Indicates if the comment can be edited by current user.',
|
|
2819
|
-
),
|
|
2820
|
-
caseId: zod
|
|
2821
|
-
.string()
|
|
2822
|
-
.optional()
|
|
2823
|
-
.describe('Optional relation to the associated case.'),
|
|
2824
|
-
createdAt: zod
|
|
2825
|
-
.string()
|
|
2826
|
-
.optional()
|
|
2827
|
-
.describe(
|
|
2828
|
-
'Timestamp (in milliseconds) of when the comment was created.',
|
|
2829
|
-
),
|
|
2830
|
-
createdBy: zod
|
|
2831
|
-
.object({
|
|
2832
|
-
id: zod.string().optional(),
|
|
2833
|
-
name: zod.string().optional(),
|
|
2834
|
-
})
|
|
2835
|
-
.optional(),
|
|
2836
|
-
edited: zod
|
|
2837
|
-
.boolean()
|
|
2838
|
-
.optional()
|
|
2839
|
-
.describe(
|
|
2840
|
-
'Indicates if the comment was edited; true if created_at < updated_at.',
|
|
2841
|
-
),
|
|
2842
|
-
etag: zod.string().optional(),
|
|
2843
|
-
id: zod
|
|
2844
|
-
.string()
|
|
2845
|
-
.optional()
|
|
2846
|
-
.describe(
|
|
2847
|
-
'Main identifier for read, update, and delete operations.',
|
|
2848
|
-
),
|
|
2849
|
-
roleIds: zod.array(zod.string()).optional(),
|
|
2850
|
-
text: zod
|
|
2851
|
-
.string()
|
|
2852
|
-
.optional()
|
|
2853
|
-
.describe('The content of the comment.'),
|
|
2854
|
-
updatedAt: zod
|
|
2855
|
-
.string()
|
|
2856
|
-
.optional()
|
|
2857
|
-
.describe('Timestamp (in milliseconds) of the last update.'),
|
|
2858
|
-
updatedBy: zod
|
|
2859
|
-
.object({
|
|
2860
|
-
id: zod.string().optional(),
|
|
2861
|
-
name: zod.string().optional(),
|
|
2862
|
-
})
|
|
2863
|
-
.optional(),
|
|
2864
|
-
ver: zod
|
|
2865
|
-
.number()
|
|
2866
|
-
.optional()
|
|
2867
|
-
.describe(
|
|
2868
|
-
'Version number of the comment, used for concurrency control.',
|
|
2869
|
-
),
|
|
2870
|
-
})
|
|
2871
|
-
.describe('Represents a comment associated with a case.'),
|
|
2872
|
-
)
|
|
2873
|
-
.optional()
|
|
2874
|
-
.describe('List of comments on the current page.'),
|
|
2875
|
-
next: zod
|
|
2876
|
-
.boolean()
|
|
2877
|
-
.optional()
|
|
2878
|
-
.describe('Flag to indicate if more pages are available.'),
|
|
2879
|
-
page: zod.string().optional().describe('Current page number.'),
|
|
2880
|
-
})
|
|
2881
|
-
.optional()
|
|
2882
|
-
.describe('Contains a paginated list of comments.'),
|
|
2883
|
-
contactInfo: zod
|
|
2884
|
-
.string()
|
|
2885
|
-
.optional()
|
|
2886
|
-
.describe('Contact information for the case.'),
|
|
2887
|
-
createdAt: zod
|
|
2888
|
-
.string()
|
|
2889
|
-
.optional()
|
|
2890
|
-
.describe('Creation timestamp (in milliseconds since Unix epoch).'),
|
|
2891
|
-
createdBy: zod
|
|
2892
|
-
.object({
|
|
2893
|
-
id: zod.string().optional(),
|
|
2894
|
-
name: zod.string().optional(),
|
|
2895
|
-
})
|
|
2896
|
-
.optional(),
|
|
2897
|
-
custom: zod
|
|
2898
|
-
.object({})
|
|
2899
|
-
.optional()
|
|
2900
|
-
.describe('Custom data extension fields ..'),
|
|
2901
|
-
dc: zod.string().optional(),
|
|
2902
|
-
description: zod
|
|
2903
|
-
.string()
|
|
2904
|
-
.optional()
|
|
2905
|
-
.describe('Detailed description of the case.'),
|
|
2906
|
-
differenceInReaction: zod.string().optional(),
|
|
2907
|
-
differenceInResolve: zod.string().optional(),
|
|
2908
|
-
etag: zod.string().optional().describe('Unique etag identifier.'),
|
|
2909
|
-
files: zod
|
|
2910
|
-
.object({
|
|
2911
|
-
items: zod
|
|
2912
|
-
.array(
|
|
2913
|
-
zod
|
|
2914
|
-
.object({
|
|
2915
|
-
author: zod
|
|
2916
|
-
.object({
|
|
2917
|
-
id: zod.string().optional(),
|
|
2918
|
-
name: zod.string().optional(),
|
|
2919
|
-
})
|
|
2920
|
-
.optional(),
|
|
2921
|
-
createdAt: zod
|
|
2922
|
-
.string()
|
|
2923
|
-
.optional()
|
|
2924
|
-
.describe('Creation timestamp in Unix milliseconds.'),
|
|
2925
|
-
createdBy: zod
|
|
2926
|
-
.object({
|
|
2927
|
-
id: zod.string().optional(),
|
|
2928
|
-
name: zod.string().optional(),
|
|
2929
|
-
})
|
|
2930
|
-
.optional(),
|
|
2931
|
-
id: zod.string().optional().describe('Storage file ID.'),
|
|
2932
|
-
mime: zod
|
|
2933
|
-
.string()
|
|
2934
|
-
.optional()
|
|
2935
|
-
.describe('MIME type of the file.'),
|
|
2936
|
-
name: zod.string().optional().describe('File name.'),
|
|
2937
|
-
size: zod.string().optional().describe('File size in bytes.'),
|
|
2938
|
-
url: zod.string().optional(),
|
|
2939
|
-
})
|
|
2940
|
-
.describe('Metadata for a file associated with a case.'),
|
|
2941
|
-
)
|
|
2942
|
-
.optional()
|
|
2943
|
-
.describe('List of case files.'),
|
|
2944
|
-
next: zod
|
|
2945
|
-
.boolean()
|
|
2946
|
-
.optional()
|
|
2947
|
-
.describe('Indicator if there is a next page.'),
|
|
2948
|
-
page: zod.string().optional().describe('Current page number.'),
|
|
2949
|
-
})
|
|
2950
|
-
.optional()
|
|
2951
|
-
.describe('Contains a list of case files with pagination.'),
|
|
2952
|
-
group: zod
|
|
2953
|
-
.object({
|
|
2954
|
-
id: zod.string().optional(),
|
|
2955
|
-
name: zod.string().optional(),
|
|
2956
|
-
type: zod.string().optional(),
|
|
2957
|
-
})
|
|
2958
|
-
.optional(),
|
|
2959
|
-
id: zod.string().optional().describe('Unique case ID.'),
|
|
2960
|
-
impacted: zod
|
|
2961
|
-
.object({
|
|
2962
|
-
id: zod.string().optional(),
|
|
2963
|
-
name: zod.string().optional(),
|
|
2964
|
-
})
|
|
2965
|
-
.optional(),
|
|
2966
|
-
links: zod
|
|
2967
|
-
.object({
|
|
2968
|
-
items: zod
|
|
2969
|
-
.array(
|
|
2970
|
-
zod.object({
|
|
2971
|
-
author: zod
|
|
2972
|
-
.object({
|
|
2973
|
-
id: zod.string().optional(),
|
|
2974
|
-
name: zod.string().optional(),
|
|
2975
|
-
})
|
|
2976
|
-
.optional(),
|
|
2977
|
-
createdAt: zod.string().optional(),
|
|
2978
|
-
createdBy: zod
|
|
2979
|
-
.object({
|
|
2980
|
-
id: zod.string().optional(),
|
|
2981
|
-
name: zod.string().optional(),
|
|
2982
|
-
})
|
|
2983
|
-
.optional(),
|
|
2984
|
-
etag: zod.string().optional(),
|
|
2587
|
+
sla: zod
|
|
2588
|
+
.object({
|
|
2589
|
+
id: zod.string().optional(),
|
|
2590
|
+
name: zod.string().optional(),
|
|
2591
|
+
})
|
|
2592
|
+
.optional(),
|
|
2593
|
+
slaCondition: zod
|
|
2594
|
+
.object({
|
|
2595
|
+
id: zod.string().optional(),
|
|
2596
|
+
name: zod.string().optional(),
|
|
2597
|
+
})
|
|
2598
|
+
.optional(),
|
|
2599
|
+
source: zod
|
|
2600
|
+
.object({
|
|
2601
|
+
id: zod.string().optional(),
|
|
2602
|
+
name: zod.string().optional(),
|
|
2603
|
+
type: zod
|
|
2604
|
+
.enum([
|
|
2605
|
+
'TYPE_UNSPECIFIED',
|
|
2606
|
+
'CALL',
|
|
2607
|
+
'CHAT',
|
|
2608
|
+
'SOCIAL_MEDIA',
|
|
2609
|
+
'EMAIL',
|
|
2610
|
+
'API',
|
|
2611
|
+
'MANUAL',
|
|
2612
|
+
])
|
|
2613
|
+
.default(updateCase2ResponseCaseSourceTypeDefault)
|
|
2614
|
+
.describe(
|
|
2615
|
+
'Represents a source type for the source entity.\n\n - TYPE_UNSPECIFIED: Unspecified source type.\n - CALL: Phone call source type.\n - CHAT: Chat source type.\n - SOCIAL_MEDIA: Social media source type.\n - EMAIL: Email source type.\n - API: API source type.\n - MANUAL: Manual source type.',
|
|
2616
|
+
),
|
|
2617
|
+
})
|
|
2618
|
+
.optional(),
|
|
2619
|
+
status: zod
|
|
2620
|
+
.object({
|
|
2621
|
+
id: zod.string().optional(),
|
|
2622
|
+
name: zod.string().optional(),
|
|
2623
|
+
})
|
|
2624
|
+
.optional(),
|
|
2625
|
+
statusCondition: zod
|
|
2626
|
+
.object({
|
|
2627
|
+
createdAt: zod.string().optional(),
|
|
2628
|
+
createdBy: zod
|
|
2629
|
+
.object({
|
|
2985
2630
|
id: zod.string().optional(),
|
|
2986
2631
|
name: zod.string().optional(),
|
|
2987
|
-
|
|
2988
|
-
|
|
2632
|
+
})
|
|
2633
|
+
.optional(),
|
|
2634
|
+
description: zod.string().optional(),
|
|
2635
|
+
final: zod.boolean().optional(),
|
|
2636
|
+
id: zod.string().optional(),
|
|
2637
|
+
initial: zod.boolean().optional(),
|
|
2638
|
+
name: zod.string().optional(),
|
|
2639
|
+
statusId: zod.string().optional(),
|
|
2640
|
+
updatedAt: zod.string().optional(),
|
|
2641
|
+
updatedBy: zod
|
|
2642
|
+
.object({
|
|
2643
|
+
id: zod.string().optional(),
|
|
2644
|
+
name: zod.string().optional(),
|
|
2645
|
+
})
|
|
2646
|
+
.optional(),
|
|
2647
|
+
})
|
|
2648
|
+
.optional(),
|
|
2649
|
+
subject: zod.string().optional().describe('Subject of the case.'),
|
|
2650
|
+
updatedAt: zod
|
|
2651
|
+
.string()
|
|
2652
|
+
.optional()
|
|
2653
|
+
.describe('Last update timestamp (in milliseconds since Unix epoch).'),
|
|
2654
|
+
updatedBy: zod
|
|
2655
|
+
.object({
|
|
2656
|
+
id: zod.string().optional(),
|
|
2657
|
+
name: zod.string().optional(),
|
|
2658
|
+
})
|
|
2659
|
+
.optional(),
|
|
2660
|
+
ver: zod.number().optional().describe('Version number of the case.'),
|
|
2661
|
+
})
|
|
2662
|
+
.optional()
|
|
2663
|
+
.describe('Message representing a case.'),
|
|
2664
|
+
changes: zod
|
|
2665
|
+
.array(
|
|
2666
|
+
zod.object({
|
|
2667
|
+
field: zod.string().optional(),
|
|
2668
|
+
newValue: zod.any().optional(),
|
|
2669
|
+
oldValue: zod.any().optional(),
|
|
2670
|
+
}),
|
|
2671
|
+
)
|
|
2672
|
+
.optional(),
|
|
2673
|
+
});
|
|
2674
|
+
|
|
2675
|
+
/**
|
|
2676
|
+
* @summary RPC method for updating an existing case.
|
|
2677
|
+
*/
|
|
2678
|
+
export const updateCaseParams = zod.object({
|
|
2679
|
+
'input.etag': zod.string(),
|
|
2680
|
+
});
|
|
2681
|
+
|
|
2682
|
+
export const updateCaseQueryParams = zod.object({
|
|
2683
|
+
xJsonMask: zod
|
|
2684
|
+
.array(zod.string())
|
|
2685
|
+
.optional()
|
|
2686
|
+
.describe('List of JSON fields to update.'),
|
|
2687
|
+
fields: zod
|
|
2688
|
+
.array(zod.string())
|
|
2689
|
+
.optional()
|
|
2690
|
+
.describe('List of fields to include in the response.'),
|
|
2691
|
+
});
|
|
2692
|
+
|
|
2693
|
+
export const updateCaseBody = zod.object({
|
|
2694
|
+
assignee: zod
|
|
2695
|
+
.object({
|
|
2696
|
+
id: zod.string().optional(),
|
|
2697
|
+
name: zod.string().optional(),
|
|
2698
|
+
})
|
|
2699
|
+
.optional(),
|
|
2700
|
+
closeReason: zod
|
|
2701
|
+
.object({
|
|
2702
|
+
id: zod.string().optional(),
|
|
2703
|
+
name: zod.string().optional(),
|
|
2704
|
+
})
|
|
2705
|
+
.optional(),
|
|
2706
|
+
closeResult: zod.string().optional(),
|
|
2707
|
+
contactInfo: zod.string().optional(),
|
|
2708
|
+
custom: zod.object({}).optional().describe('Custom data extension fields ..'),
|
|
2709
|
+
description: zod.string().optional(),
|
|
2710
|
+
group: zod
|
|
2711
|
+
.object({
|
|
2712
|
+
id: zod.string().optional(),
|
|
2713
|
+
name: zod.string().optional(),
|
|
2714
|
+
})
|
|
2715
|
+
.optional(),
|
|
2716
|
+
impacted: zod
|
|
2717
|
+
.object({
|
|
2718
|
+
id: zod.string().optional(),
|
|
2719
|
+
name: zod.string().optional(),
|
|
2720
|
+
})
|
|
2721
|
+
.optional(),
|
|
2722
|
+
priority: zod
|
|
2723
|
+
.object({
|
|
2724
|
+
id: zod.string().optional(),
|
|
2725
|
+
name: zod.string().optional(),
|
|
2726
|
+
})
|
|
2727
|
+
.optional(),
|
|
2728
|
+
rating: zod.string().optional(),
|
|
2729
|
+
ratingComment: zod.string().optional(),
|
|
2730
|
+
reporter: zod
|
|
2731
|
+
.object({
|
|
2732
|
+
id: zod.string().optional(),
|
|
2733
|
+
name: zod.string().optional(),
|
|
2734
|
+
})
|
|
2735
|
+
.optional(),
|
|
2736
|
+
service: zod
|
|
2737
|
+
.object({
|
|
2738
|
+
id: zod.string().optional(),
|
|
2739
|
+
name: zod.string().optional(),
|
|
2740
|
+
})
|
|
2741
|
+
.optional(),
|
|
2742
|
+
source: zod
|
|
2743
|
+
.object({
|
|
2744
|
+
id: zod.string().optional(),
|
|
2745
|
+
name: zod.string().optional(),
|
|
2746
|
+
})
|
|
2747
|
+
.optional(),
|
|
2748
|
+
status: zod
|
|
2749
|
+
.object({
|
|
2750
|
+
id: zod.string().optional(),
|
|
2751
|
+
name: zod.string().optional(),
|
|
2752
|
+
})
|
|
2753
|
+
.optional(),
|
|
2754
|
+
statusCondition: zod
|
|
2755
|
+
.object({
|
|
2756
|
+
createdAt: zod.string().optional(),
|
|
2757
|
+
createdBy: zod
|
|
2758
|
+
.object({
|
|
2759
|
+
id: zod.string().optional(),
|
|
2760
|
+
name: zod.string().optional(),
|
|
2761
|
+
})
|
|
2762
|
+
.optional(),
|
|
2763
|
+
description: zod.string().optional(),
|
|
2764
|
+
final: zod.boolean().optional(),
|
|
2765
|
+
id: zod.string().optional(),
|
|
2766
|
+
initial: zod.boolean().optional(),
|
|
2767
|
+
name: zod.string().optional(),
|
|
2768
|
+
statusId: zod.string().optional(),
|
|
2769
|
+
updatedAt: zod.string().optional(),
|
|
2770
|
+
updatedBy: zod
|
|
2771
|
+
.object({
|
|
2772
|
+
id: zod.string().optional(),
|
|
2773
|
+
name: zod.string().optional(),
|
|
2774
|
+
})
|
|
2775
|
+
.optional(),
|
|
2776
|
+
})
|
|
2777
|
+
.optional(),
|
|
2778
|
+
subject: zod.string().optional(),
|
|
2779
|
+
userId: zod
|
|
2780
|
+
.object({
|
|
2781
|
+
id: zod.string().optional(),
|
|
2782
|
+
name: zod.string().optional(),
|
|
2783
|
+
})
|
|
2784
|
+
.optional(),
|
|
2785
|
+
});
|
|
2786
|
+
|
|
2787
|
+
export const updateCaseResponseCaseRelatedDataItemRelationTypeDefault =
|
|
2788
|
+
'RELATION_TYPE_UNSPECIFIED';
|
|
2789
|
+
export const updateCaseResponseCaseSourceTypeDefault = 'TYPE_UNSPECIFIED';
|
|
2790
|
+
|
|
2791
|
+
export const updateCaseResponse = zod.object({
|
|
2792
|
+
case: zod
|
|
2793
|
+
.object({
|
|
2794
|
+
assignee: zod
|
|
2795
|
+
.object({
|
|
2796
|
+
id: zod.string().optional(),
|
|
2797
|
+
name: zod.string().optional(),
|
|
2798
|
+
})
|
|
2799
|
+
.optional(),
|
|
2800
|
+
author: zod
|
|
2801
|
+
.object({
|
|
2802
|
+
id: zod.string().optional(),
|
|
2803
|
+
name: zod.string().optional(),
|
|
2804
|
+
})
|
|
2805
|
+
.optional(),
|
|
2806
|
+
closeReason: zod
|
|
2807
|
+
.object({
|
|
2808
|
+
id: zod.string().optional(),
|
|
2809
|
+
name: zod.string().optional(),
|
|
2810
|
+
})
|
|
2811
|
+
.optional(),
|
|
2812
|
+
closeReasonGroup: zod
|
|
2813
|
+
.object({
|
|
2814
|
+
id: zod.string().optional(),
|
|
2815
|
+
name: zod.string().optional(),
|
|
2816
|
+
})
|
|
2817
|
+
.optional(),
|
|
2818
|
+
closeResult: zod.string().optional(),
|
|
2819
|
+
comments: zod
|
|
2820
|
+
.object({
|
|
2821
|
+
items: zod
|
|
2822
|
+
.array(
|
|
2823
|
+
zod
|
|
2989
2824
|
.object({
|
|
2990
|
-
|
|
2991
|
-
|
|
2825
|
+
author: zod
|
|
2826
|
+
.object({
|
|
2827
|
+
id: zod.string().optional(),
|
|
2828
|
+
name: zod.string().optional(),
|
|
2829
|
+
})
|
|
2830
|
+
.optional(),
|
|
2831
|
+
canEdit: zod
|
|
2832
|
+
.boolean()
|
|
2833
|
+
.optional()
|
|
2834
|
+
.describe(
|
|
2835
|
+
'Indicates if the comment can be edited by current user.',
|
|
2836
|
+
),
|
|
2837
|
+
caseId: zod
|
|
2838
|
+
.string()
|
|
2839
|
+
.optional()
|
|
2840
|
+
.describe('Optional relation to the associated case.'),
|
|
2841
|
+
createdAt: zod
|
|
2842
|
+
.string()
|
|
2843
|
+
.optional()
|
|
2844
|
+
.describe(
|
|
2845
|
+
'Timestamp (in milliseconds) of when the comment was created.',
|
|
2846
|
+
),
|
|
2847
|
+
createdBy: zod
|
|
2848
|
+
.object({
|
|
2849
|
+
id: zod.string().optional(),
|
|
2850
|
+
name: zod.string().optional(),
|
|
2851
|
+
})
|
|
2852
|
+
.optional(),
|
|
2853
|
+
edited: zod
|
|
2854
|
+
.boolean()
|
|
2855
|
+
.optional()
|
|
2856
|
+
.describe(
|
|
2857
|
+
'Indicates if the comment was edited; true if created_at < updated_at.',
|
|
2858
|
+
),
|
|
2859
|
+
etag: zod.string().optional(),
|
|
2860
|
+
id: zod
|
|
2861
|
+
.string()
|
|
2862
|
+
.optional()
|
|
2863
|
+
.describe(
|
|
2864
|
+
'Main identifier for read, update, and delete operations.',
|
|
2865
|
+
),
|
|
2866
|
+
roleIds: zod.array(zod.string()).optional(),
|
|
2867
|
+
text: zod
|
|
2868
|
+
.string()
|
|
2869
|
+
.optional()
|
|
2870
|
+
.describe('The content of the comment.'),
|
|
2871
|
+
updatedAt: zod
|
|
2872
|
+
.string()
|
|
2873
|
+
.optional()
|
|
2874
|
+
.describe(
|
|
2875
|
+
'Timestamp (in milliseconds) of the last update.',
|
|
2876
|
+
),
|
|
2877
|
+
updatedBy: zod
|
|
2878
|
+
.object({
|
|
2879
|
+
id: zod.string().optional(),
|
|
2880
|
+
name: zod.string().optional(),
|
|
2881
|
+
})
|
|
2882
|
+
.optional(),
|
|
2883
|
+
ver: zod
|
|
2884
|
+
.number()
|
|
2885
|
+
.optional()
|
|
2886
|
+
.describe(
|
|
2887
|
+
'Version number of the comment, used for concurrency control.',
|
|
2888
|
+
),
|
|
2992
2889
|
})
|
|
2993
|
-
.
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
2890
|
+
.describe('Represents a comment associated with a case.'),
|
|
2891
|
+
)
|
|
2892
|
+
.optional()
|
|
2893
|
+
.describe('List of comments on the current page.'),
|
|
2894
|
+
next: zod
|
|
2895
|
+
.boolean()
|
|
2896
|
+
.optional()
|
|
2897
|
+
.describe('Flag to indicate if more pages are available.'),
|
|
2898
|
+
page: zod.string().optional().describe('Current page number.'),
|
|
2899
|
+
})
|
|
2900
|
+
.optional()
|
|
2901
|
+
.describe('Contains a paginated list of comments.'),
|
|
2902
|
+
contactInfo: zod
|
|
2903
|
+
.string()
|
|
2904
|
+
.optional()
|
|
2905
|
+
.describe('Contact information for the case.'),
|
|
2906
|
+
createdAt: zod
|
|
2907
|
+
.string()
|
|
2908
|
+
.optional()
|
|
2909
|
+
.describe('Creation timestamp (in milliseconds since Unix epoch).'),
|
|
2910
|
+
createdBy: zod
|
|
2911
|
+
.object({
|
|
2912
|
+
id: zod.string().optional(),
|
|
2913
|
+
name: zod.string().optional(),
|
|
2914
|
+
})
|
|
2915
|
+
.optional(),
|
|
2916
|
+
custom: zod
|
|
2917
|
+
.object({})
|
|
2918
|
+
.optional()
|
|
2919
|
+
.describe('Custom data extension fields ..'),
|
|
2920
|
+
dc: zod.string().optional(),
|
|
2921
|
+
description: zod
|
|
2922
|
+
.string()
|
|
2923
|
+
.optional()
|
|
2924
|
+
.describe('Detailed description of the case.'),
|
|
2925
|
+
differenceInReaction: zod.string().optional(),
|
|
2926
|
+
differenceInResolve: zod.string().optional(),
|
|
2927
|
+
etag: zod.string().optional().describe('Unique etag identifier.'),
|
|
2928
|
+
files: zod
|
|
2929
|
+
.object({
|
|
2930
|
+
items: zod
|
|
2931
|
+
.array(
|
|
2932
|
+
zod
|
|
2933
|
+
.object({
|
|
2934
|
+
author: zod
|
|
2935
|
+
.object({
|
|
2936
|
+
id: zod.string().optional(),
|
|
2937
|
+
name: zod.string().optional(),
|
|
2938
|
+
})
|
|
2939
|
+
.optional(),
|
|
2940
|
+
createdAt: zod
|
|
2941
|
+
.string()
|
|
2942
|
+
.optional()
|
|
2943
|
+
.describe('Creation timestamp in Unix milliseconds.'),
|
|
2944
|
+
createdBy: zod
|
|
2945
|
+
.object({
|
|
2946
|
+
id: zod.string().optional(),
|
|
2947
|
+
name: zod.string().optional(),
|
|
2948
|
+
})
|
|
2949
|
+
.optional(),
|
|
2950
|
+
id: zod.string().optional().describe('Storage file ID.'),
|
|
2951
|
+
mime: zod
|
|
2952
|
+
.string()
|
|
2953
|
+
.optional()
|
|
2954
|
+
.describe('MIME type of the file.'),
|
|
2955
|
+
name: zod.string().optional().describe('File name.'),
|
|
2956
|
+
size: zod.string().optional().describe('File size in bytes.'),
|
|
2957
|
+
url: zod.string().optional(),
|
|
2958
|
+
})
|
|
2959
|
+
.describe('Metadata for a file associated with a case.'),
|
|
2960
|
+
)
|
|
2961
|
+
.optional()
|
|
2962
|
+
.describe('List of case files.'),
|
|
2963
|
+
next: zod
|
|
2964
|
+
.boolean()
|
|
2965
|
+
.optional()
|
|
2966
|
+
.describe('Indicator if there is a next page.'),
|
|
2967
|
+
page: zod.string().optional().describe('Current page number.'),
|
|
2968
|
+
})
|
|
2969
|
+
.optional()
|
|
2970
|
+
.describe('Contains a list of case files with pagination.'),
|
|
2971
|
+
group: zod
|
|
2972
|
+
.object({
|
|
2973
|
+
id: zod.string().optional(),
|
|
2974
|
+
name: zod.string().optional(),
|
|
2975
|
+
type: zod.string().optional(),
|
|
2976
|
+
})
|
|
2977
|
+
.optional(),
|
|
2978
|
+
id: zod.string().optional().describe('Unique case ID.'),
|
|
2979
|
+
impacted: zod
|
|
2980
|
+
.object({
|
|
2981
|
+
id: zod.string().optional(),
|
|
2982
|
+
name: zod.string().optional(),
|
|
2983
|
+
})
|
|
2984
|
+
.optional(),
|
|
2985
|
+
links: zod
|
|
2986
|
+
.object({
|
|
2987
|
+
items: zod
|
|
2988
|
+
.array(
|
|
2989
|
+
zod.object({
|
|
2990
|
+
author: zod
|
|
3053
2991
|
.object({
|
|
3054
2992
|
id: zod.string().optional(),
|
|
3055
2993
|
name: zod.string().optional(),
|
|
3056
2994
|
})
|
|
3057
2995
|
.optional(),
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
.optional()
|
|
3061
|
-
.describe('Etag for the related case entity.'),
|
|
3062
|
-
id: zod
|
|
3063
|
-
.string()
|
|
3064
|
-
.optional()
|
|
3065
|
-
.describe('Unique identifier for the related case.'),
|
|
3066
|
-
primaryCase: zod
|
|
3067
|
-
.object({
|
|
3068
|
-
color: zod.string().optional(),
|
|
3069
|
-
etag: zod.string().optional(),
|
|
3070
|
-
id: zod.string().optional(),
|
|
3071
|
-
name: zod.string().optional(),
|
|
3072
|
-
subject: zod.string().optional(),
|
|
3073
|
-
ver: zod.number().optional(),
|
|
3074
|
-
})
|
|
3075
|
-
.optional()
|
|
3076
|
-
.describe(
|
|
3077
|
-
'RelatedCaseLookup is created specifically to include the subject field.',
|
|
3078
|
-
),
|
|
3079
|
-
relatedCase: zod
|
|
2996
|
+
createdAt: zod.string().optional(),
|
|
2997
|
+
createdBy: zod
|
|
3080
2998
|
.object({
|
|
3081
|
-
color: zod.string().optional(),
|
|
3082
|
-
etag: zod.string().optional(),
|
|
3083
2999
|
id: zod.string().optional(),
|
|
3084
3000
|
name: zod.string().optional(),
|
|
3085
|
-
subject: zod.string().optional(),
|
|
3086
|
-
ver: zod.number().optional(),
|
|
3087
3001
|
})
|
|
3088
|
-
.optional()
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
.enum([
|
|
3094
|
-
'RELATION_TYPE_UNSPECIFIED',
|
|
3095
|
-
'DUPLICATES',
|
|
3096
|
-
'IS_DUPLICATED_BY',
|
|
3097
|
-
'BLOCKS',
|
|
3098
|
-
'IS_BLOCKED_BY',
|
|
3099
|
-
'CAUSES',
|
|
3100
|
-
'IS_CAUSED_BY',
|
|
3101
|
-
'IS_CHILD_OF',
|
|
3102
|
-
'IS_PARENT_OF',
|
|
3103
|
-
'RELATES_TO',
|
|
3104
|
-
])
|
|
3105
|
-
.default(updateCaseResponseRelatedDataItemRelationTypeDefault)
|
|
3106
|
-
.describe('Enum for relation types between cases.'),
|
|
3107
|
-
updatedAt: zod
|
|
3108
|
-
.string()
|
|
3109
|
-
.optional()
|
|
3110
|
-
.describe('Timestamp (in milliseconds) of the last update.'),
|
|
3002
|
+
.optional(),
|
|
3003
|
+
etag: zod.string().optional(),
|
|
3004
|
+
id: zod.string().optional(),
|
|
3005
|
+
name: zod.string().optional(),
|
|
3006
|
+
updatedAt: zod.string().optional(),
|
|
3111
3007
|
updatedBy: zod
|
|
3112
3008
|
.object({
|
|
3113
3009
|
id: zod.string().optional(),
|
|
3114
3010
|
name: zod.string().optional(),
|
|
3115
3011
|
})
|
|
3116
3012
|
.optional(),
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3013
|
+
url: zod.string().optional(),
|
|
3014
|
+
ver: zod.number().optional(),
|
|
3015
|
+
}),
|
|
3016
|
+
)
|
|
3017
|
+
.optional(),
|
|
3018
|
+
next: zod.boolean().optional(),
|
|
3019
|
+
page: zod.string().optional(),
|
|
3020
|
+
})
|
|
3021
|
+
.optional(),
|
|
3022
|
+
name: zod
|
|
3023
|
+
.string()
|
|
3024
|
+
.optional()
|
|
3025
|
+
.describe('Name of the case (may serve as an ID in docs).'),
|
|
3026
|
+
plannedReactionAt: zod
|
|
3027
|
+
.string()
|
|
3028
|
+
.optional()
|
|
3029
|
+
.describe('Planned reaction time (in milliseconds).'),
|
|
3030
|
+
plannedResolveAt: zod
|
|
3031
|
+
.string()
|
|
3032
|
+
.optional()
|
|
3033
|
+
.describe('Planned resolution time (in milliseconds).'),
|
|
3034
|
+
priority: zod
|
|
3035
|
+
.object({
|
|
3036
|
+
color: zod.string().optional(),
|
|
3037
|
+
createdAt: zod.string().optional(),
|
|
3038
|
+
createdBy: zod
|
|
3039
|
+
.object({
|
|
3040
|
+
id: zod.string().optional(),
|
|
3041
|
+
name: zod.string().optional(),
|
|
3042
|
+
})
|
|
3043
|
+
.optional(),
|
|
3044
|
+
description: zod.string().optional(),
|
|
3045
|
+
id: zod.string().optional(),
|
|
3046
|
+
name: zod.string().optional(),
|
|
3047
|
+
updatedAt: zod.string().optional(),
|
|
3048
|
+
updatedBy: zod
|
|
3049
|
+
.object({
|
|
3050
|
+
id: zod.string().optional(),
|
|
3051
|
+
name: zod.string().optional(),
|
|
3052
|
+
})
|
|
3053
|
+
.optional(),
|
|
3054
|
+
})
|
|
3055
|
+
.optional(),
|
|
3056
|
+
rating: zod.string().optional(),
|
|
3057
|
+
ratingComment: zod.string().optional(),
|
|
3058
|
+
reactedAt: zod.string().optional(),
|
|
3059
|
+
related: zod
|
|
3060
|
+
.object({
|
|
3061
|
+
data: zod
|
|
3062
|
+
.array(
|
|
3063
|
+
zod
|
|
3064
|
+
.object({
|
|
3065
|
+
createdAt: zod
|
|
3066
|
+
.string()
|
|
3067
|
+
.optional()
|
|
3068
|
+
.describe(
|
|
3069
|
+
'Timestamp (in milliseconds) of when the relation was created.',
|
|
3070
|
+
),
|
|
3071
|
+
createdBy: zod
|
|
3072
|
+
.object({
|
|
3073
|
+
id: zod.string().optional(),
|
|
3074
|
+
name: zod.string().optional(),
|
|
3075
|
+
})
|
|
3076
|
+
.optional(),
|
|
3077
|
+
etag: zod
|
|
3078
|
+
.string()
|
|
3079
|
+
.optional()
|
|
3080
|
+
.describe('Etag for the related case entity.'),
|
|
3081
|
+
id: zod
|
|
3082
|
+
.string()
|
|
3083
|
+
.optional()
|
|
3084
|
+
.describe('Unique identifier for the related case.'),
|
|
3085
|
+
primaryCase: zod
|
|
3086
|
+
.object({
|
|
3087
|
+
color: zod.string().optional(),
|
|
3088
|
+
etag: zod.string().optional(),
|
|
3089
|
+
id: zod.string().optional(),
|
|
3090
|
+
name: zod.string().optional(),
|
|
3091
|
+
subject: zod.string().optional(),
|
|
3092
|
+
ver: zod.number().optional(),
|
|
3093
|
+
})
|
|
3094
|
+
.optional()
|
|
3095
|
+
.describe(
|
|
3096
|
+
'RelatedCaseLookup is created specifically to include the subject field.',
|
|
3097
|
+
),
|
|
3098
|
+
relatedCase: zod
|
|
3099
|
+
.object({
|
|
3100
|
+
color: zod.string().optional(),
|
|
3101
|
+
etag: zod.string().optional(),
|
|
3102
|
+
id: zod.string().optional(),
|
|
3103
|
+
name: zod.string().optional(),
|
|
3104
|
+
subject: zod.string().optional(),
|
|
3105
|
+
ver: zod.number().optional(),
|
|
3106
|
+
})
|
|
3107
|
+
.optional()
|
|
3108
|
+
.describe(
|
|
3109
|
+
'RelatedCaseLookup is created specifically to include the subject field.',
|
|
3110
|
+
),
|
|
3111
|
+
relationType: zod
|
|
3112
|
+
.enum([
|
|
3113
|
+
'RELATION_TYPE_UNSPECIFIED',
|
|
3114
|
+
'DUPLICATES',
|
|
3115
|
+
'IS_DUPLICATED_BY',
|
|
3116
|
+
'BLOCKS',
|
|
3117
|
+
'IS_BLOCKED_BY',
|
|
3118
|
+
'CAUSES',
|
|
3119
|
+
'IS_CAUSED_BY',
|
|
3120
|
+
'IS_CHILD_OF',
|
|
3121
|
+
'IS_PARENT_OF',
|
|
3122
|
+
'RELATES_TO',
|
|
3123
|
+
])
|
|
3124
|
+
.default(
|
|
3125
|
+
updateCaseResponseCaseRelatedDataItemRelationTypeDefault,
|
|
3126
|
+
)
|
|
3127
|
+
.describe('Enum for relation types between cases.'),
|
|
3128
|
+
updatedAt: zod
|
|
3129
|
+
.string()
|
|
3130
|
+
.optional()
|
|
3131
|
+
.describe(
|
|
3132
|
+
'Timestamp (in milliseconds) of the last update.',
|
|
3133
|
+
),
|
|
3134
|
+
updatedBy: zod
|
|
3135
|
+
.object({
|
|
3136
|
+
id: zod.string().optional(),
|
|
3137
|
+
name: zod.string().optional(),
|
|
3138
|
+
})
|
|
3139
|
+
.optional(),
|
|
3140
|
+
ver: zod
|
|
3141
|
+
.number()
|
|
3142
|
+
.optional()
|
|
3143
|
+
.describe(
|
|
3144
|
+
'Version number of the related case, used for concurrency control.',
|
|
3145
|
+
),
|
|
3146
|
+
})
|
|
3147
|
+
.describe(
|
|
3148
|
+
'Represents a related case with its relationship details.',
|
|
3149
|
+
),
|
|
3150
|
+
)
|
|
3151
|
+
.optional()
|
|
3152
|
+
.describe('List of related cases on the current page.'),
|
|
3153
|
+
next: zod
|
|
3154
|
+
.boolean()
|
|
3155
|
+
.optional()
|
|
3156
|
+
.describe('Flag to indicate if more pages are available.'),
|
|
3157
|
+
page: zod.string().optional().describe('Current page number.'),
|
|
3158
|
+
})
|
|
3159
|
+
.optional()
|
|
3160
|
+
.describe('Paginated list of related cases.'),
|
|
3161
|
+
reporter: zod
|
|
3162
|
+
.object({
|
|
3163
|
+
id: zod.string().optional(),
|
|
3164
|
+
name: zod.string().optional(),
|
|
3165
|
+
})
|
|
3166
|
+
.optional(),
|
|
3167
|
+
resolvedAt: zod.string().optional(),
|
|
3168
|
+
roleIds: zod.array(zod.string()).optional(),
|
|
3169
|
+
service: zod
|
|
3170
|
+
.object({
|
|
3171
|
+
id: zod.string().optional(),
|
|
3172
|
+
name: zod.string().optional(),
|
|
3173
|
+
})
|
|
3174
|
+
.optional(),
|
|
3175
|
+
sla: zod
|
|
3176
|
+
.object({
|
|
3177
|
+
id: zod.string().optional(),
|
|
3178
|
+
name: zod.string().optional(),
|
|
3179
|
+
})
|
|
3180
|
+
.optional(),
|
|
3181
|
+
slaCondition: zod
|
|
3182
|
+
.object({
|
|
3183
|
+
id: zod.string().optional(),
|
|
3184
|
+
name: zod.string().optional(),
|
|
3185
|
+
})
|
|
3186
|
+
.optional(),
|
|
3187
|
+
source: zod
|
|
3188
|
+
.object({
|
|
3189
|
+
id: zod.string().optional(),
|
|
3190
|
+
name: zod.string().optional(),
|
|
3191
|
+
type: zod
|
|
3192
|
+
.enum([
|
|
3193
|
+
'TYPE_UNSPECIFIED',
|
|
3194
|
+
'CALL',
|
|
3195
|
+
'CHAT',
|
|
3196
|
+
'SOCIAL_MEDIA',
|
|
3197
|
+
'EMAIL',
|
|
3198
|
+
'API',
|
|
3199
|
+
'MANUAL',
|
|
3200
|
+
])
|
|
3201
|
+
.default(updateCaseResponseCaseSourceTypeDefault)
|
|
3202
|
+
.describe(
|
|
3203
|
+
'Represents a source type for the source entity.\n\n - TYPE_UNSPECIFIED: Unspecified source type.\n - CALL: Phone call source type.\n - CHAT: Chat source type.\n - SOCIAL_MEDIA: Social media source type.\n - EMAIL: Email source type.\n - API: API source type.\n - MANUAL: Manual source type.',
|
|
3204
|
+
),
|
|
3205
|
+
})
|
|
3206
|
+
.optional(),
|
|
3207
|
+
status: zod
|
|
3208
|
+
.object({
|
|
3209
|
+
id: zod.string().optional(),
|
|
3210
|
+
name: zod.string().optional(),
|
|
3211
|
+
})
|
|
3212
|
+
.optional(),
|
|
3213
|
+
statusCondition: zod
|
|
3214
|
+
.object({
|
|
3215
|
+
createdAt: zod.string().optional(),
|
|
3216
|
+
createdBy: zod
|
|
3217
|
+
.object({
|
|
3218
|
+
id: zod.string().optional(),
|
|
3219
|
+
name: zod.string().optional(),
|
|
3220
|
+
})
|
|
3221
|
+
.optional(),
|
|
3222
|
+
description: zod.string().optional(),
|
|
3223
|
+
final: zod.boolean().optional(),
|
|
3224
|
+
id: zod.string().optional(),
|
|
3225
|
+
initial: zod.boolean().optional(),
|
|
3226
|
+
name: zod.string().optional(),
|
|
3227
|
+
statusId: zod.string().optional(),
|
|
3228
|
+
updatedAt: zod.string().optional(),
|
|
3229
|
+
updatedBy: zod
|
|
3230
|
+
.object({
|
|
3231
|
+
id: zod.string().optional(),
|
|
3232
|
+
name: zod.string().optional(),
|
|
3233
|
+
})
|
|
3234
|
+
.optional(),
|
|
3235
|
+
})
|
|
3236
|
+
.optional(),
|
|
3237
|
+
subject: zod.string().optional().describe('Subject of the case.'),
|
|
3238
|
+
updatedAt: zod
|
|
3239
|
+
.string()
|
|
3240
|
+
.optional()
|
|
3241
|
+
.describe('Last update timestamp (in milliseconds since Unix epoch).'),
|
|
3242
|
+
updatedBy: zod
|
|
3243
|
+
.object({
|
|
3244
|
+
id: zod.string().optional(),
|
|
3245
|
+
name: zod.string().optional(),
|
|
3246
|
+
})
|
|
3247
|
+
.optional(),
|
|
3248
|
+
ver: zod.number().optional().describe('Version number of the case.'),
|
|
3249
|
+
})
|
|
3250
|
+
.optional()
|
|
3251
|
+
.describe('Message representing a case.'),
|
|
3252
|
+
changes: zod
|
|
3253
|
+
.array(
|
|
3254
|
+
zod.object({
|
|
3255
|
+
field: zod.string().optional(),
|
|
3256
|
+
newValue: zod.any().optional(),
|
|
3257
|
+
oldValue: zod.any().optional(),
|
|
3258
|
+
}),
|
|
3259
|
+
)
|
|
3260
|
+
.optional(),
|
|
3261
|
+
});
|
|
3228
3262
|
|
|
3229
3263
|
/**
|
|
3230
3264
|
* @summary RPC method for searching cases.
|