@cloudfleet/sdk 0.0.1-da678d2 → 0.0.1-dc16042
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/dist/@tanstack/react-query.gen.d.ts +1125 -0
- package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
- package/dist/@tanstack/react-query.gen.js +1129 -0
- package/dist/@tanstack/react-query.gen.js.map +1 -0
- package/dist/client/client.gen.d.ts.map +1 -1
- package/dist/client/client.gen.js +108 -123
- package/dist/client/client.gen.js.map +1 -1
- package/dist/client/types.gen.d.ts +7 -4
- package/dist/client/types.gen.d.ts.map +1 -1
- package/dist/client/utils.gen.d.ts +5 -1
- package/dist/client/utils.gen.d.ts.map +1 -1
- package/dist/client/utils.gen.js +1 -1
- package/dist/client/utils.gen.js.map +1 -1
- package/dist/client.gen.d.ts +1 -1
- package/dist/client.gen.d.ts.map +1 -1
- package/dist/core/bodySerializer.gen.d.ts +4 -4
- package/dist/core/bodySerializer.gen.d.ts.map +1 -1
- package/dist/core/bodySerializer.gen.js.map +1 -1
- package/dist/core/serverSentEvents.gen.d.ts +1 -1
- package/dist/core/serverSentEvents.gen.d.ts.map +1 -1
- package/dist/core/serverSentEvents.gen.js +3 -4
- package/dist/core/serverSentEvents.gen.js.map +1 -1
- package/dist/core/types.gen.d.ts +1 -1
- package/dist/core/utils.gen.js +1 -1
- package/dist/core/utils.gen.js.map +1 -1
- package/dist/schemas.gen.d.ts +415 -27
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +503 -29
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +41 -3
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +67 -0
- package/dist/sdk.gen.js.map +1 -1
- package/dist/services/kubernetes/api.d.ts +8 -8
- package/dist/types.gen.d.ts +358 -16
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +672 -568
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +251 -312
- package/dist/zod.gen.js.map +1 -1
- package/package.json +23 -4
package/dist/schemas.gen.js
CHANGED
|
@@ -642,7 +642,7 @@ export const ClusterSchema = {
|
|
|
642
642
|
{
|
|
643
643
|
type: 'string',
|
|
644
644
|
format: 'uri',
|
|
645
|
-
description: 'URL of the Kubernetes cluster control plane. This is the endpoint that kubectl uses to connect to the cluster.',
|
|
645
|
+
description: 'URL signed by the private CA of the Kubernetes cluster control plane. This is the endpoint that kubectl uses to connect to the cluster. (Deprecated, use endpoint_public instead)',
|
|
646
646
|
example: 'https://2ae6557c-c61f-49c6-b4c1-a65473470a03.staging.cfke.cloudfleet.dev:6443'
|
|
647
647
|
},
|
|
648
648
|
{
|
|
@@ -653,6 +653,22 @@ export const ClusterSchema = {
|
|
|
653
653
|
}
|
|
654
654
|
]
|
|
655
655
|
},
|
|
656
|
+
endpoint_public: {
|
|
657
|
+
anyOf: [
|
|
658
|
+
{
|
|
659
|
+
type: 'string',
|
|
660
|
+
format: 'uri',
|
|
661
|
+
description: 'URL signed by a public CA of the Kubernetes cluster control plane. This is the endpoint that kubectl uses to connect to the cluster.',
|
|
662
|
+
example: 'https://2ae6557c-c61f-49c6-b4c1-a65473470a03.staging.cfke.io'
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
type: 'string',
|
|
666
|
+
enum: [
|
|
667
|
+
''
|
|
668
|
+
]
|
|
669
|
+
}
|
|
670
|
+
]
|
|
671
|
+
},
|
|
656
672
|
certificate_ca: {
|
|
657
673
|
type: 'string',
|
|
658
674
|
description: 'Certificate authority data for the kubernetes cluster. This is the root certificate authority for the cluster.',
|
|
@@ -1351,18 +1367,6 @@ export const OrganizationSchema = {
|
|
|
1351
1367
|
minItems: 1,
|
|
1352
1368
|
description: 'List of CFKE control plane versions available for the organization.'
|
|
1353
1369
|
},
|
|
1354
|
-
copilot_user_hourly_tokens: {
|
|
1355
|
-
type: 'integer',
|
|
1356
|
-
minimum: 0,
|
|
1357
|
-
description: 'User-level maximum number of tokens Cloudfleet Copilot can process per hour.',
|
|
1358
|
-
example: 42000
|
|
1359
|
-
},
|
|
1360
|
-
copilot_organization_hourly_tokens: {
|
|
1361
|
-
type: 'integer',
|
|
1362
|
-
minimum: 0,
|
|
1363
|
-
description: 'Organization-level maximum number of tokens Cloudfleet Copilot can process per hour.',
|
|
1364
|
-
example: 242000
|
|
1365
|
-
},
|
|
1366
1370
|
cfcr_storage_gb: {
|
|
1367
1371
|
type: 'integer',
|
|
1368
1372
|
minimum: -1,
|
|
@@ -1379,8 +1383,6 @@ export const OrganizationSchema = {
|
|
|
1379
1383
|
'cluster_tiers',
|
|
1380
1384
|
'regions',
|
|
1381
1385
|
'versions',
|
|
1382
|
-
'copilot_user_hourly_tokens',
|
|
1383
|
-
'copilot_organization_hourly_tokens',
|
|
1384
1386
|
'cfcr_storage_gb'
|
|
1385
1387
|
],
|
|
1386
1388
|
additionalProperties: false,
|
|
@@ -1551,18 +1553,6 @@ export const PlatformQuotaSchema = {
|
|
|
1551
1553
|
minItems: 1,
|
|
1552
1554
|
description: 'List of CFKE control plane versions available for the organization.'
|
|
1553
1555
|
},
|
|
1554
|
-
copilot_user_hourly_tokens: {
|
|
1555
|
-
type: 'integer',
|
|
1556
|
-
minimum: 0,
|
|
1557
|
-
description: 'User-level maximum number of tokens Cloudfleet Copilot can process per hour.',
|
|
1558
|
-
example: 42000
|
|
1559
|
-
},
|
|
1560
|
-
copilot_organization_hourly_tokens: {
|
|
1561
|
-
type: 'integer',
|
|
1562
|
-
minimum: 0,
|
|
1563
|
-
description: 'Organization-level maximum number of tokens Cloudfleet Copilot can process per hour.',
|
|
1564
|
-
example: 242000
|
|
1565
|
-
},
|
|
1566
1556
|
cfcr_storage_gb: {
|
|
1567
1557
|
type: 'integer',
|
|
1568
1558
|
minimum: -1,
|
|
@@ -1579,8 +1569,6 @@ export const PlatformQuotaSchema = {
|
|
|
1579
1569
|
'cluster_tiers',
|
|
1580
1570
|
'regions',
|
|
1581
1571
|
'versions',
|
|
1582
|
-
'copilot_user_hourly_tokens',
|
|
1583
|
-
'copilot_organization_hourly_tokens',
|
|
1584
1572
|
'cfcr_storage_gb'
|
|
1585
1573
|
],
|
|
1586
1574
|
additionalProperties: false
|
|
@@ -1850,6 +1838,492 @@ export const RegistryTagSchema = {
|
|
|
1850
1838
|
],
|
|
1851
1839
|
additionalProperties: false
|
|
1852
1840
|
};
|
|
1841
|
+
export const TicketAttachmentSchema = {
|
|
1842
|
+
type: 'object',
|
|
1843
|
+
properties: {
|
|
1844
|
+
id: {
|
|
1845
|
+
type: 'string',
|
|
1846
|
+
description: 'Unique identifier of the attachment (Mongo ObjectId).',
|
|
1847
|
+
example: '60c72b2f9f1b2c001f8e4d3c'
|
|
1848
|
+
},
|
|
1849
|
+
filename: {
|
|
1850
|
+
type: 'string',
|
|
1851
|
+
description: 'Original filename as uploaded.',
|
|
1852
|
+
example: 'debug.log'
|
|
1853
|
+
},
|
|
1854
|
+
content_type: {
|
|
1855
|
+
type: 'string',
|
|
1856
|
+
description: 'MIME content type of the attachment.',
|
|
1857
|
+
example: 'text/plain'
|
|
1858
|
+
},
|
|
1859
|
+
size: {
|
|
1860
|
+
type: 'integer',
|
|
1861
|
+
description: 'Size of the attachment in bytes.',
|
|
1862
|
+
example: 12345
|
|
1863
|
+
}
|
|
1864
|
+
},
|
|
1865
|
+
required: [
|
|
1866
|
+
'id',
|
|
1867
|
+
'filename',
|
|
1868
|
+
'content_type',
|
|
1869
|
+
'size'
|
|
1870
|
+
],
|
|
1871
|
+
additionalProperties: false
|
|
1872
|
+
};
|
|
1873
|
+
export const TicketCreateInputSchema = {
|
|
1874
|
+
type: 'object',
|
|
1875
|
+
properties: {
|
|
1876
|
+
category: {
|
|
1877
|
+
type: 'string',
|
|
1878
|
+
description: 'Ticket category. Drives auto-assignment and may carry a subcategory in `properties`.',
|
|
1879
|
+
example: 'technical',
|
|
1880
|
+
enum: [
|
|
1881
|
+
'billing',
|
|
1882
|
+
'technical',
|
|
1883
|
+
'general'
|
|
1884
|
+
]
|
|
1885
|
+
},
|
|
1886
|
+
body: {
|
|
1887
|
+
type: 'string',
|
|
1888
|
+
maxLength: 50000,
|
|
1889
|
+
minLength: 1,
|
|
1890
|
+
pattern: '\\S',
|
|
1891
|
+
description: 'Initial message body in markdown. There is no separate subject — the first message body is the description.',
|
|
1892
|
+
example: 'My cluster cannot reach the registry. Logs attached.'
|
|
1893
|
+
},
|
|
1894
|
+
properties: {
|
|
1895
|
+
type: 'object',
|
|
1896
|
+
additionalProperties: true,
|
|
1897
|
+
description: 'Free-form key/value bag set by the UI (e.g. `subcategory`, `cluster_id`, `cluster_name`, `region`).',
|
|
1898
|
+
example: {
|
|
1899
|
+
subcategory: 'cluster-question',
|
|
1900
|
+
cluster_id: '60c72b2f9f1b2c001f8e4d3a'
|
|
1901
|
+
}
|
|
1902
|
+
}
|
|
1903
|
+
},
|
|
1904
|
+
required: [
|
|
1905
|
+
'category',
|
|
1906
|
+
'body'
|
|
1907
|
+
],
|
|
1908
|
+
additionalProperties: false
|
|
1909
|
+
};
|
|
1910
|
+
export const TicketListResponseSchema = {
|
|
1911
|
+
type: 'object',
|
|
1912
|
+
properties: {
|
|
1913
|
+
items: {
|
|
1914
|
+
type: 'array',
|
|
1915
|
+
items: {
|
|
1916
|
+
type: 'object',
|
|
1917
|
+
properties: {
|
|
1918
|
+
id: {
|
|
1919
|
+
type: 'string',
|
|
1920
|
+
description: 'Unique identifier of the ticket (Mongo ObjectId).',
|
|
1921
|
+
example: '60c72b2f9f1b2c001f8e4d3a'
|
|
1922
|
+
},
|
|
1923
|
+
status: {
|
|
1924
|
+
type: 'string',
|
|
1925
|
+
description: 'Current state of the ticket.',
|
|
1926
|
+
example: 'waiting_on_us',
|
|
1927
|
+
enum: [
|
|
1928
|
+
'waiting_on_us',
|
|
1929
|
+
'waiting_on_user',
|
|
1930
|
+
'closed'
|
|
1931
|
+
]
|
|
1932
|
+
},
|
|
1933
|
+
category: {
|
|
1934
|
+
type: 'string',
|
|
1935
|
+
description: 'Ticket category.',
|
|
1936
|
+
example: 'technical',
|
|
1937
|
+
enum: [
|
|
1938
|
+
'billing',
|
|
1939
|
+
'technical',
|
|
1940
|
+
'general'
|
|
1941
|
+
]
|
|
1942
|
+
},
|
|
1943
|
+
summary: {
|
|
1944
|
+
type: 'string',
|
|
1945
|
+
description: 'First 128 characters of the initial message body, with markdown formatting and newlines stripped. Used for ticket list previews.',
|
|
1946
|
+
example: 'My cluster cannot reach the registry. Logs attached.'
|
|
1947
|
+
},
|
|
1948
|
+
closed_at: {
|
|
1949
|
+
type: 'string',
|
|
1950
|
+
format: 'date-time',
|
|
1951
|
+
nullable: true,
|
|
1952
|
+
description: 'Closure timestamp. Null while the ticket is open.',
|
|
1953
|
+
example: '2026-05-18T16:08:14.338Z'
|
|
1954
|
+
},
|
|
1955
|
+
date_created: {
|
|
1956
|
+
type: 'string',
|
|
1957
|
+
format: 'date-time',
|
|
1958
|
+
description: 'Creation date of the ticket. ISO 8601 UTC.',
|
|
1959
|
+
example: '2026-05-11T16:08:14.338Z'
|
|
1960
|
+
},
|
|
1961
|
+
date_updated: {
|
|
1962
|
+
type: 'string',
|
|
1963
|
+
format: 'date-time',
|
|
1964
|
+
description: 'Last update date of the ticket. ISO 8601 UTC.',
|
|
1965
|
+
example: '2026-05-11T16:08:14.338Z'
|
|
1966
|
+
},
|
|
1967
|
+
messages: {
|
|
1968
|
+
type: 'array',
|
|
1969
|
+
items: {
|
|
1970
|
+
type: 'object',
|
|
1971
|
+
properties: {
|
|
1972
|
+
id: {
|
|
1973
|
+
type: 'string',
|
|
1974
|
+
description: 'Unique identifier of the message (Mongo ObjectId).',
|
|
1975
|
+
example: '60c72b2f9f1b2c001f8e4d3b'
|
|
1976
|
+
},
|
|
1977
|
+
type: {
|
|
1978
|
+
type: 'string',
|
|
1979
|
+
description: 'Message type. Internal notes are filtered out of customer-facing responses.',
|
|
1980
|
+
example: 'customer_reply',
|
|
1981
|
+
enum: [
|
|
1982
|
+
'customer_reply',
|
|
1983
|
+
'agent_reply'
|
|
1984
|
+
]
|
|
1985
|
+
},
|
|
1986
|
+
body: {
|
|
1987
|
+
type: 'string',
|
|
1988
|
+
description: 'Message body in markdown.',
|
|
1989
|
+
example: 'Thanks — that resolved it on my side.'
|
|
1990
|
+
},
|
|
1991
|
+
author_first_name: {
|
|
1992
|
+
type: 'string',
|
|
1993
|
+
nullable: true,
|
|
1994
|
+
description: 'First name of the author. Null when not provided.',
|
|
1995
|
+
example: 'Jane'
|
|
1996
|
+
},
|
|
1997
|
+
author_last_name: {
|
|
1998
|
+
type: 'string',
|
|
1999
|
+
nullable: true,
|
|
2000
|
+
description: 'Last name of the author. Null when not provided.',
|
|
2001
|
+
example: 'Doe'
|
|
2002
|
+
},
|
|
2003
|
+
attachments: {
|
|
2004
|
+
type: 'array',
|
|
2005
|
+
items: {
|
|
2006
|
+
type: 'object',
|
|
2007
|
+
properties: {
|
|
2008
|
+
id: {
|
|
2009
|
+
type: 'string',
|
|
2010
|
+
description: 'Unique identifier of the attachment (Mongo ObjectId).',
|
|
2011
|
+
example: '60c72b2f9f1b2c001f8e4d3c'
|
|
2012
|
+
},
|
|
2013
|
+
filename: {
|
|
2014
|
+
type: 'string',
|
|
2015
|
+
description: 'Original filename as uploaded.',
|
|
2016
|
+
example: 'debug.log'
|
|
2017
|
+
},
|
|
2018
|
+
content_type: {
|
|
2019
|
+
type: 'string',
|
|
2020
|
+
description: 'MIME content type of the attachment.',
|
|
2021
|
+
example: 'text/plain'
|
|
2022
|
+
},
|
|
2023
|
+
size: {
|
|
2024
|
+
type: 'integer',
|
|
2025
|
+
description: 'Size of the attachment in bytes.',
|
|
2026
|
+
example: 12345
|
|
2027
|
+
}
|
|
2028
|
+
},
|
|
2029
|
+
required: [
|
|
2030
|
+
'id',
|
|
2031
|
+
'filename',
|
|
2032
|
+
'content_type',
|
|
2033
|
+
'size'
|
|
2034
|
+
],
|
|
2035
|
+
additionalProperties: false
|
|
2036
|
+
},
|
|
2037
|
+
description: 'Attachments associated with this message.',
|
|
2038
|
+
example: []
|
|
2039
|
+
},
|
|
2040
|
+
date_created: {
|
|
2041
|
+
type: 'string',
|
|
2042
|
+
format: 'date-time',
|
|
2043
|
+
description: 'Creation date of the message. ISO 8601 UTC.',
|
|
2044
|
+
example: '2026-05-11T16:08:14.338Z'
|
|
2045
|
+
}
|
|
2046
|
+
},
|
|
2047
|
+
required: [
|
|
2048
|
+
'id',
|
|
2049
|
+
'type',
|
|
2050
|
+
'body',
|
|
2051
|
+
'date_created'
|
|
2052
|
+
],
|
|
2053
|
+
additionalProperties: false
|
|
2054
|
+
},
|
|
2055
|
+
description: 'Messages on the ticket in chronological order. Internal notes are excluded. Returned by the detail endpoint only.'
|
|
2056
|
+
}
|
|
2057
|
+
},
|
|
2058
|
+
required: [
|
|
2059
|
+
'id',
|
|
2060
|
+
'status',
|
|
2061
|
+
'category',
|
|
2062
|
+
'summary',
|
|
2063
|
+
'date_created',
|
|
2064
|
+
'date_updated'
|
|
2065
|
+
],
|
|
2066
|
+
additionalProperties: false
|
|
2067
|
+
},
|
|
2068
|
+
description: 'Tickets for the organization, ordered newest first. Messages are omitted from list responses.'
|
|
2069
|
+
}
|
|
2070
|
+
},
|
|
2071
|
+
required: [
|
|
2072
|
+
'items'
|
|
2073
|
+
],
|
|
2074
|
+
additionalProperties: false
|
|
2075
|
+
};
|
|
2076
|
+
export const TicketMessageInputSchema = {
|
|
2077
|
+
type: 'object',
|
|
2078
|
+
properties: {
|
|
2079
|
+
body: {
|
|
2080
|
+
type: 'string',
|
|
2081
|
+
maxLength: 50000,
|
|
2082
|
+
minLength: 1,
|
|
2083
|
+
pattern: '\\S',
|
|
2084
|
+
description: 'Reply body in markdown.',
|
|
2085
|
+
example: 'Thanks — that resolved it on my side.'
|
|
2086
|
+
}
|
|
2087
|
+
},
|
|
2088
|
+
required: [
|
|
2089
|
+
'body'
|
|
2090
|
+
],
|
|
2091
|
+
additionalProperties: false
|
|
2092
|
+
};
|
|
2093
|
+
export const TicketMessageSchema = {
|
|
2094
|
+
type: 'object',
|
|
2095
|
+
properties: {
|
|
2096
|
+
id: {
|
|
2097
|
+
type: 'string',
|
|
2098
|
+
description: 'Unique identifier of the message (Mongo ObjectId).',
|
|
2099
|
+
example: '60c72b2f9f1b2c001f8e4d3b'
|
|
2100
|
+
},
|
|
2101
|
+
type: {
|
|
2102
|
+
type: 'string',
|
|
2103
|
+
description: 'Message type. Internal notes are filtered out of customer-facing responses.',
|
|
2104
|
+
example: 'customer_reply',
|
|
2105
|
+
enum: [
|
|
2106
|
+
'customer_reply',
|
|
2107
|
+
'agent_reply'
|
|
2108
|
+
]
|
|
2109
|
+
},
|
|
2110
|
+
body: {
|
|
2111
|
+
type: 'string',
|
|
2112
|
+
description: 'Message body in markdown.',
|
|
2113
|
+
example: 'Thanks — that resolved it on my side.'
|
|
2114
|
+
},
|
|
2115
|
+
author_first_name: {
|
|
2116
|
+
type: 'string',
|
|
2117
|
+
description: 'First name of the author. Null when not provided.',
|
|
2118
|
+
example: 'Jane'
|
|
2119
|
+
},
|
|
2120
|
+
author_last_name: {
|
|
2121
|
+
type: 'string',
|
|
2122
|
+
description: 'Last name of the author. Null when not provided.',
|
|
2123
|
+
example: 'Doe'
|
|
2124
|
+
},
|
|
2125
|
+
attachments: {
|
|
2126
|
+
type: 'array',
|
|
2127
|
+
items: {
|
|
2128
|
+
type: 'object',
|
|
2129
|
+
properties: {
|
|
2130
|
+
id: {
|
|
2131
|
+
type: 'string',
|
|
2132
|
+
description: 'Unique identifier of the attachment (Mongo ObjectId).',
|
|
2133
|
+
example: '60c72b2f9f1b2c001f8e4d3c'
|
|
2134
|
+
},
|
|
2135
|
+
filename: {
|
|
2136
|
+
type: 'string',
|
|
2137
|
+
description: 'Original filename as uploaded.',
|
|
2138
|
+
example: 'debug.log'
|
|
2139
|
+
},
|
|
2140
|
+
content_type: {
|
|
2141
|
+
type: 'string',
|
|
2142
|
+
description: 'MIME content type of the attachment.',
|
|
2143
|
+
example: 'text/plain'
|
|
2144
|
+
},
|
|
2145
|
+
size: {
|
|
2146
|
+
type: 'integer',
|
|
2147
|
+
description: 'Size of the attachment in bytes.',
|
|
2148
|
+
example: 12345
|
|
2149
|
+
}
|
|
2150
|
+
},
|
|
2151
|
+
required: [
|
|
2152
|
+
'id',
|
|
2153
|
+
'filename',
|
|
2154
|
+
'content_type',
|
|
2155
|
+
'size'
|
|
2156
|
+
],
|
|
2157
|
+
additionalProperties: false
|
|
2158
|
+
},
|
|
2159
|
+
description: 'Attachments associated with this message.',
|
|
2160
|
+
example: []
|
|
2161
|
+
},
|
|
2162
|
+
date_created: {
|
|
2163
|
+
type: 'string',
|
|
2164
|
+
format: 'date-time',
|
|
2165
|
+
description: 'Creation date of the message. ISO 8601 UTC.',
|
|
2166
|
+
example: '2026-05-11T16:08:14.338Z'
|
|
2167
|
+
}
|
|
2168
|
+
},
|
|
2169
|
+
required: [
|
|
2170
|
+
'id',
|
|
2171
|
+
'type',
|
|
2172
|
+
'body',
|
|
2173
|
+
'date_created'
|
|
2174
|
+
],
|
|
2175
|
+
additionalProperties: false
|
|
2176
|
+
};
|
|
2177
|
+
export const TicketSchema = {
|
|
2178
|
+
type: 'object',
|
|
2179
|
+
properties: {
|
|
2180
|
+
id: {
|
|
2181
|
+
type: 'string',
|
|
2182
|
+
description: 'Unique identifier of the ticket (Mongo ObjectId).',
|
|
2183
|
+
example: '60c72b2f9f1b2c001f8e4d3a'
|
|
2184
|
+
},
|
|
2185
|
+
status: {
|
|
2186
|
+
type: 'string',
|
|
2187
|
+
description: 'Current state of the ticket.',
|
|
2188
|
+
example: 'waiting_on_us',
|
|
2189
|
+
enum: [
|
|
2190
|
+
'waiting_on_us',
|
|
2191
|
+
'waiting_on_user',
|
|
2192
|
+
'closed'
|
|
2193
|
+
]
|
|
2194
|
+
},
|
|
2195
|
+
category: {
|
|
2196
|
+
type: 'string',
|
|
2197
|
+
description: 'Ticket category.',
|
|
2198
|
+
example: 'technical',
|
|
2199
|
+
enum: [
|
|
2200
|
+
'billing',
|
|
2201
|
+
'technical',
|
|
2202
|
+
'general'
|
|
2203
|
+
]
|
|
2204
|
+
},
|
|
2205
|
+
summary: {
|
|
2206
|
+
type: 'string',
|
|
2207
|
+
description: 'First 128 characters of the initial message body, with markdown formatting and newlines stripped. Used for ticket list previews.',
|
|
2208
|
+
example: 'My cluster cannot reach the registry. Logs attached.'
|
|
2209
|
+
},
|
|
2210
|
+
closed_at: {
|
|
2211
|
+
type: 'string',
|
|
2212
|
+
format: 'date-time',
|
|
2213
|
+
description: 'Closure timestamp. Null while the ticket is open.',
|
|
2214
|
+
example: '2026-05-18T16:08:14.338Z'
|
|
2215
|
+
},
|
|
2216
|
+
date_created: {
|
|
2217
|
+
type: 'string',
|
|
2218
|
+
format: 'date-time',
|
|
2219
|
+
description: 'Creation date of the ticket. ISO 8601 UTC.',
|
|
2220
|
+
example: '2026-05-11T16:08:14.338Z'
|
|
2221
|
+
},
|
|
2222
|
+
date_updated: {
|
|
2223
|
+
type: 'string',
|
|
2224
|
+
format: 'date-time',
|
|
2225
|
+
description: 'Last update date of the ticket. ISO 8601 UTC.',
|
|
2226
|
+
example: '2026-05-11T16:08:14.338Z'
|
|
2227
|
+
},
|
|
2228
|
+
messages: {
|
|
2229
|
+
type: 'array',
|
|
2230
|
+
items: {
|
|
2231
|
+
type: 'object',
|
|
2232
|
+
properties: {
|
|
2233
|
+
id: {
|
|
2234
|
+
type: 'string',
|
|
2235
|
+
description: 'Unique identifier of the message (Mongo ObjectId).',
|
|
2236
|
+
example: '60c72b2f9f1b2c001f8e4d3b'
|
|
2237
|
+
},
|
|
2238
|
+
type: {
|
|
2239
|
+
type: 'string',
|
|
2240
|
+
description: 'Message type. Internal notes are filtered out of customer-facing responses.',
|
|
2241
|
+
example: 'customer_reply',
|
|
2242
|
+
enum: [
|
|
2243
|
+
'customer_reply',
|
|
2244
|
+
'agent_reply'
|
|
2245
|
+
]
|
|
2246
|
+
},
|
|
2247
|
+
body: {
|
|
2248
|
+
type: 'string',
|
|
2249
|
+
description: 'Message body in markdown.',
|
|
2250
|
+
example: 'Thanks — that resolved it on my side.'
|
|
2251
|
+
},
|
|
2252
|
+
author_first_name: {
|
|
2253
|
+
type: 'string',
|
|
2254
|
+
description: 'First name of the author. Null when not provided.',
|
|
2255
|
+
example: 'Jane'
|
|
2256
|
+
},
|
|
2257
|
+
author_last_name: {
|
|
2258
|
+
type: 'string',
|
|
2259
|
+
description: 'Last name of the author. Null when not provided.',
|
|
2260
|
+
example: 'Doe'
|
|
2261
|
+
},
|
|
2262
|
+
attachments: {
|
|
2263
|
+
type: 'array',
|
|
2264
|
+
items: {
|
|
2265
|
+
type: 'object',
|
|
2266
|
+
properties: {
|
|
2267
|
+
id: {
|
|
2268
|
+
type: 'string',
|
|
2269
|
+
description: 'Unique identifier of the attachment (Mongo ObjectId).',
|
|
2270
|
+
example: '60c72b2f9f1b2c001f8e4d3c'
|
|
2271
|
+
},
|
|
2272
|
+
filename: {
|
|
2273
|
+
type: 'string',
|
|
2274
|
+
description: 'Original filename as uploaded.',
|
|
2275
|
+
example: 'debug.log'
|
|
2276
|
+
},
|
|
2277
|
+
content_type: {
|
|
2278
|
+
type: 'string',
|
|
2279
|
+
description: 'MIME content type of the attachment.',
|
|
2280
|
+
example: 'text/plain'
|
|
2281
|
+
},
|
|
2282
|
+
size: {
|
|
2283
|
+
type: 'integer',
|
|
2284
|
+
description: 'Size of the attachment in bytes.',
|
|
2285
|
+
example: 12345
|
|
2286
|
+
}
|
|
2287
|
+
},
|
|
2288
|
+
required: [
|
|
2289
|
+
'id',
|
|
2290
|
+
'filename',
|
|
2291
|
+
'content_type',
|
|
2292
|
+
'size'
|
|
2293
|
+
],
|
|
2294
|
+
additionalProperties: false
|
|
2295
|
+
},
|
|
2296
|
+
description: 'Attachments associated with this message.',
|
|
2297
|
+
example: []
|
|
2298
|
+
},
|
|
2299
|
+
date_created: {
|
|
2300
|
+
type: 'string',
|
|
2301
|
+
format: 'date-time',
|
|
2302
|
+
description: 'Creation date of the message. ISO 8601 UTC.',
|
|
2303
|
+
example: '2026-05-11T16:08:14.338Z'
|
|
2304
|
+
}
|
|
2305
|
+
},
|
|
2306
|
+
required: [
|
|
2307
|
+
'id',
|
|
2308
|
+
'type',
|
|
2309
|
+
'body',
|
|
2310
|
+
'date_created'
|
|
2311
|
+
],
|
|
2312
|
+
additionalProperties: false
|
|
2313
|
+
},
|
|
2314
|
+
description: 'Messages on the ticket in chronological order. Internal notes are excluded. Returned by the detail endpoint only.'
|
|
2315
|
+
}
|
|
2316
|
+
},
|
|
2317
|
+
required: [
|
|
2318
|
+
'id',
|
|
2319
|
+
'status',
|
|
2320
|
+
'category',
|
|
2321
|
+
'summary',
|
|
2322
|
+
'date_created',
|
|
2323
|
+
'date_updated'
|
|
2324
|
+
],
|
|
2325
|
+
additionalProperties: false
|
|
2326
|
+
};
|
|
1853
2327
|
export const TokenCreateInputSchema = {
|
|
1854
2328
|
type: 'object',
|
|
1855
2329
|
properties: {
|