@cloudfleet/sdk 0.9.4 → 0.9.6

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.
@@ -1822,6 +1822,492 @@ export const RegistryTagSchema = {
1822
1822
  ],
1823
1823
  additionalProperties: false
1824
1824
  };
1825
+ export const TicketAttachmentSchema = {
1826
+ type: 'object',
1827
+ properties: {
1828
+ id: {
1829
+ type: 'string',
1830
+ description: 'Unique identifier of the attachment (Mongo ObjectId).',
1831
+ example: '60c72b2f9f1b2c001f8e4d3c'
1832
+ },
1833
+ filename: {
1834
+ type: 'string',
1835
+ description: 'Original filename as uploaded.',
1836
+ example: 'debug.log'
1837
+ },
1838
+ content_type: {
1839
+ type: 'string',
1840
+ description: 'MIME content type of the attachment.',
1841
+ example: 'text/plain'
1842
+ },
1843
+ size: {
1844
+ type: 'integer',
1845
+ description: 'Size of the attachment in bytes.',
1846
+ example: 12345
1847
+ }
1848
+ },
1849
+ required: [
1850
+ 'id',
1851
+ 'filename',
1852
+ 'content_type',
1853
+ 'size'
1854
+ ],
1855
+ additionalProperties: false
1856
+ };
1857
+ export const TicketCreateInputSchema = {
1858
+ type: 'object',
1859
+ properties: {
1860
+ category: {
1861
+ type: 'string',
1862
+ description: 'Ticket category. Drives auto-assignment and may carry a subcategory in `properties`.',
1863
+ example: 'technical',
1864
+ enum: [
1865
+ 'billing',
1866
+ 'technical',
1867
+ 'general'
1868
+ ]
1869
+ },
1870
+ body: {
1871
+ type: 'string',
1872
+ maxLength: 50000,
1873
+ minLength: 1,
1874
+ pattern: '\\S',
1875
+ description: 'Initial message body in markdown. There is no separate subject — the first message body is the description.',
1876
+ example: 'My cluster cannot reach the registry. Logs attached.'
1877
+ },
1878
+ properties: {
1879
+ type: 'object',
1880
+ additionalProperties: true,
1881
+ description: 'Free-form key/value bag set by the UI (e.g. `subcategory`, `cluster_id`, `cluster_name`, `region`).',
1882
+ example: {
1883
+ subcategory: 'cluster-question',
1884
+ cluster_id: '60c72b2f9f1b2c001f8e4d3a'
1885
+ }
1886
+ }
1887
+ },
1888
+ required: [
1889
+ 'category',
1890
+ 'body'
1891
+ ],
1892
+ additionalProperties: false
1893
+ };
1894
+ export const TicketListResponseSchema = {
1895
+ type: 'object',
1896
+ properties: {
1897
+ items: {
1898
+ type: 'array',
1899
+ items: {
1900
+ type: 'object',
1901
+ properties: {
1902
+ id: {
1903
+ type: 'string',
1904
+ description: 'Unique identifier of the ticket (Mongo ObjectId).',
1905
+ example: '60c72b2f9f1b2c001f8e4d3a'
1906
+ },
1907
+ status: {
1908
+ type: 'string',
1909
+ description: 'Current state of the ticket.',
1910
+ example: 'waiting_on_us',
1911
+ enum: [
1912
+ 'waiting_on_us',
1913
+ 'waiting_on_user',
1914
+ 'closed'
1915
+ ]
1916
+ },
1917
+ category: {
1918
+ type: 'string',
1919
+ description: 'Ticket category.',
1920
+ example: 'technical',
1921
+ enum: [
1922
+ 'billing',
1923
+ 'technical',
1924
+ 'general'
1925
+ ]
1926
+ },
1927
+ summary: {
1928
+ type: 'string',
1929
+ description: 'First 128 characters of the initial message body, with markdown formatting and newlines stripped. Used for ticket list previews.',
1930
+ example: 'My cluster cannot reach the registry. Logs attached.'
1931
+ },
1932
+ closed_at: {
1933
+ type: 'string',
1934
+ format: 'date-time',
1935
+ nullable: true,
1936
+ description: 'Closure timestamp. Null while the ticket is open.',
1937
+ example: '2026-05-18T16:08:14.338Z'
1938
+ },
1939
+ date_created: {
1940
+ type: 'string',
1941
+ format: 'date-time',
1942
+ description: 'Creation date of the ticket. ISO 8601 UTC.',
1943
+ example: '2026-05-11T16:08:14.338Z'
1944
+ },
1945
+ date_updated: {
1946
+ type: 'string',
1947
+ format: 'date-time',
1948
+ description: 'Last update date of the ticket. ISO 8601 UTC.',
1949
+ example: '2026-05-11T16:08:14.338Z'
1950
+ },
1951
+ messages: {
1952
+ type: 'array',
1953
+ items: {
1954
+ type: 'object',
1955
+ properties: {
1956
+ id: {
1957
+ type: 'string',
1958
+ description: 'Unique identifier of the message (Mongo ObjectId).',
1959
+ example: '60c72b2f9f1b2c001f8e4d3b'
1960
+ },
1961
+ type: {
1962
+ type: 'string',
1963
+ description: 'Message type. Internal notes are filtered out of customer-facing responses.',
1964
+ example: 'customer_reply',
1965
+ enum: [
1966
+ 'customer_reply',
1967
+ 'agent_reply'
1968
+ ]
1969
+ },
1970
+ body: {
1971
+ type: 'string',
1972
+ description: 'Message body in markdown.',
1973
+ example: 'Thanks — that resolved it on my side.'
1974
+ },
1975
+ author_first_name: {
1976
+ type: 'string',
1977
+ nullable: true,
1978
+ description: 'First name of the author. Null when not provided.',
1979
+ example: 'Jane'
1980
+ },
1981
+ author_last_name: {
1982
+ type: 'string',
1983
+ nullable: true,
1984
+ description: 'Last name of the author. Null when not provided.',
1985
+ example: 'Doe'
1986
+ },
1987
+ attachments: {
1988
+ type: 'array',
1989
+ items: {
1990
+ type: 'object',
1991
+ properties: {
1992
+ id: {
1993
+ type: 'string',
1994
+ description: 'Unique identifier of the attachment (Mongo ObjectId).',
1995
+ example: '60c72b2f9f1b2c001f8e4d3c'
1996
+ },
1997
+ filename: {
1998
+ type: 'string',
1999
+ description: 'Original filename as uploaded.',
2000
+ example: 'debug.log'
2001
+ },
2002
+ content_type: {
2003
+ type: 'string',
2004
+ description: 'MIME content type of the attachment.',
2005
+ example: 'text/plain'
2006
+ },
2007
+ size: {
2008
+ type: 'integer',
2009
+ description: 'Size of the attachment in bytes.',
2010
+ example: 12345
2011
+ }
2012
+ },
2013
+ required: [
2014
+ 'id',
2015
+ 'filename',
2016
+ 'content_type',
2017
+ 'size'
2018
+ ],
2019
+ additionalProperties: false
2020
+ },
2021
+ description: 'Attachments associated with this message.',
2022
+ example: []
2023
+ },
2024
+ date_created: {
2025
+ type: 'string',
2026
+ format: 'date-time',
2027
+ description: 'Creation date of the message. ISO 8601 UTC.',
2028
+ example: '2026-05-11T16:08:14.338Z'
2029
+ }
2030
+ },
2031
+ required: [
2032
+ 'id',
2033
+ 'type',
2034
+ 'body',
2035
+ 'date_created'
2036
+ ],
2037
+ additionalProperties: false
2038
+ },
2039
+ description: 'Messages on the ticket in chronological order. Internal notes are excluded. Returned by the detail endpoint only.'
2040
+ }
2041
+ },
2042
+ required: [
2043
+ 'id',
2044
+ 'status',
2045
+ 'category',
2046
+ 'summary',
2047
+ 'date_created',
2048
+ 'date_updated'
2049
+ ],
2050
+ additionalProperties: false
2051
+ },
2052
+ description: 'Tickets for the organization, ordered newest first. Messages are omitted from list responses.'
2053
+ }
2054
+ },
2055
+ required: [
2056
+ 'items'
2057
+ ],
2058
+ additionalProperties: false
2059
+ };
2060
+ export const TicketMessageInputSchema = {
2061
+ type: 'object',
2062
+ properties: {
2063
+ body: {
2064
+ type: 'string',
2065
+ maxLength: 50000,
2066
+ minLength: 1,
2067
+ pattern: '\\S',
2068
+ description: 'Reply body in markdown.',
2069
+ example: 'Thanks — that resolved it on my side.'
2070
+ }
2071
+ },
2072
+ required: [
2073
+ 'body'
2074
+ ],
2075
+ additionalProperties: false
2076
+ };
2077
+ export const TicketMessageSchema = {
2078
+ type: 'object',
2079
+ properties: {
2080
+ id: {
2081
+ type: 'string',
2082
+ description: 'Unique identifier of the message (Mongo ObjectId).',
2083
+ example: '60c72b2f9f1b2c001f8e4d3b'
2084
+ },
2085
+ type: {
2086
+ type: 'string',
2087
+ description: 'Message type. Internal notes are filtered out of customer-facing responses.',
2088
+ example: 'customer_reply',
2089
+ enum: [
2090
+ 'customer_reply',
2091
+ 'agent_reply'
2092
+ ]
2093
+ },
2094
+ body: {
2095
+ type: 'string',
2096
+ description: 'Message body in markdown.',
2097
+ example: 'Thanks — that resolved it on my side.'
2098
+ },
2099
+ author_first_name: {
2100
+ type: 'string',
2101
+ description: 'First name of the author. Null when not provided.',
2102
+ example: 'Jane'
2103
+ },
2104
+ author_last_name: {
2105
+ type: 'string',
2106
+ description: 'Last name of the author. Null when not provided.',
2107
+ example: 'Doe'
2108
+ },
2109
+ attachments: {
2110
+ type: 'array',
2111
+ items: {
2112
+ type: 'object',
2113
+ properties: {
2114
+ id: {
2115
+ type: 'string',
2116
+ description: 'Unique identifier of the attachment (Mongo ObjectId).',
2117
+ example: '60c72b2f9f1b2c001f8e4d3c'
2118
+ },
2119
+ filename: {
2120
+ type: 'string',
2121
+ description: 'Original filename as uploaded.',
2122
+ example: 'debug.log'
2123
+ },
2124
+ content_type: {
2125
+ type: 'string',
2126
+ description: 'MIME content type of the attachment.',
2127
+ example: 'text/plain'
2128
+ },
2129
+ size: {
2130
+ type: 'integer',
2131
+ description: 'Size of the attachment in bytes.',
2132
+ example: 12345
2133
+ }
2134
+ },
2135
+ required: [
2136
+ 'id',
2137
+ 'filename',
2138
+ 'content_type',
2139
+ 'size'
2140
+ ],
2141
+ additionalProperties: false
2142
+ },
2143
+ description: 'Attachments associated with this message.',
2144
+ example: []
2145
+ },
2146
+ date_created: {
2147
+ type: 'string',
2148
+ format: 'date-time',
2149
+ description: 'Creation date of the message. ISO 8601 UTC.',
2150
+ example: '2026-05-11T16:08:14.338Z'
2151
+ }
2152
+ },
2153
+ required: [
2154
+ 'id',
2155
+ 'type',
2156
+ 'body',
2157
+ 'date_created'
2158
+ ],
2159
+ additionalProperties: false
2160
+ };
2161
+ export const TicketSchema = {
2162
+ type: 'object',
2163
+ properties: {
2164
+ id: {
2165
+ type: 'string',
2166
+ description: 'Unique identifier of the ticket (Mongo ObjectId).',
2167
+ example: '60c72b2f9f1b2c001f8e4d3a'
2168
+ },
2169
+ status: {
2170
+ type: 'string',
2171
+ description: 'Current state of the ticket.',
2172
+ example: 'waiting_on_us',
2173
+ enum: [
2174
+ 'waiting_on_us',
2175
+ 'waiting_on_user',
2176
+ 'closed'
2177
+ ]
2178
+ },
2179
+ category: {
2180
+ type: 'string',
2181
+ description: 'Ticket category.',
2182
+ example: 'technical',
2183
+ enum: [
2184
+ 'billing',
2185
+ 'technical',
2186
+ 'general'
2187
+ ]
2188
+ },
2189
+ summary: {
2190
+ type: 'string',
2191
+ description: 'First 128 characters of the initial message body, with markdown formatting and newlines stripped. Used for ticket list previews.',
2192
+ example: 'My cluster cannot reach the registry. Logs attached.'
2193
+ },
2194
+ closed_at: {
2195
+ type: 'string',
2196
+ format: 'date-time',
2197
+ description: 'Closure timestamp. Null while the ticket is open.',
2198
+ example: '2026-05-18T16:08:14.338Z'
2199
+ },
2200
+ date_created: {
2201
+ type: 'string',
2202
+ format: 'date-time',
2203
+ description: 'Creation date of the ticket. ISO 8601 UTC.',
2204
+ example: '2026-05-11T16:08:14.338Z'
2205
+ },
2206
+ date_updated: {
2207
+ type: 'string',
2208
+ format: 'date-time',
2209
+ description: 'Last update date of the ticket. ISO 8601 UTC.',
2210
+ example: '2026-05-11T16:08:14.338Z'
2211
+ },
2212
+ messages: {
2213
+ type: 'array',
2214
+ items: {
2215
+ type: 'object',
2216
+ properties: {
2217
+ id: {
2218
+ type: 'string',
2219
+ description: 'Unique identifier of the message (Mongo ObjectId).',
2220
+ example: '60c72b2f9f1b2c001f8e4d3b'
2221
+ },
2222
+ type: {
2223
+ type: 'string',
2224
+ description: 'Message type. Internal notes are filtered out of customer-facing responses.',
2225
+ example: 'customer_reply',
2226
+ enum: [
2227
+ 'customer_reply',
2228
+ 'agent_reply'
2229
+ ]
2230
+ },
2231
+ body: {
2232
+ type: 'string',
2233
+ description: 'Message body in markdown.',
2234
+ example: 'Thanks — that resolved it on my side.'
2235
+ },
2236
+ author_first_name: {
2237
+ type: 'string',
2238
+ description: 'First name of the author. Null when not provided.',
2239
+ example: 'Jane'
2240
+ },
2241
+ author_last_name: {
2242
+ type: 'string',
2243
+ description: 'Last name of the author. Null when not provided.',
2244
+ example: 'Doe'
2245
+ },
2246
+ attachments: {
2247
+ type: 'array',
2248
+ items: {
2249
+ type: 'object',
2250
+ properties: {
2251
+ id: {
2252
+ type: 'string',
2253
+ description: 'Unique identifier of the attachment (Mongo ObjectId).',
2254
+ example: '60c72b2f9f1b2c001f8e4d3c'
2255
+ },
2256
+ filename: {
2257
+ type: 'string',
2258
+ description: 'Original filename as uploaded.',
2259
+ example: 'debug.log'
2260
+ },
2261
+ content_type: {
2262
+ type: 'string',
2263
+ description: 'MIME content type of the attachment.',
2264
+ example: 'text/plain'
2265
+ },
2266
+ size: {
2267
+ type: 'integer',
2268
+ description: 'Size of the attachment in bytes.',
2269
+ example: 12345
2270
+ }
2271
+ },
2272
+ required: [
2273
+ 'id',
2274
+ 'filename',
2275
+ 'content_type',
2276
+ 'size'
2277
+ ],
2278
+ additionalProperties: false
2279
+ },
2280
+ description: 'Attachments associated with this message.',
2281
+ example: []
2282
+ },
2283
+ date_created: {
2284
+ type: 'string',
2285
+ format: 'date-time',
2286
+ description: 'Creation date of the message. ISO 8601 UTC.',
2287
+ example: '2026-05-11T16:08:14.338Z'
2288
+ }
2289
+ },
2290
+ required: [
2291
+ 'id',
2292
+ 'type',
2293
+ 'body',
2294
+ 'date_created'
2295
+ ],
2296
+ additionalProperties: false
2297
+ },
2298
+ description: 'Messages on the ticket in chronological order. Internal notes are excluded. Returned by the detail endpoint only.'
2299
+ }
2300
+ },
2301
+ required: [
2302
+ 'id',
2303
+ 'status',
2304
+ 'category',
2305
+ 'summary',
2306
+ 'date_created',
2307
+ 'date_updated'
2308
+ ],
2309
+ additionalProperties: false
2310
+ };
1825
2311
  export const TokenCreateInputSchema = {
1826
2312
  type: 'object',
1827
2313
  properties: {