@7k-inari/api-client 0.8.0-5ee597d → 0.8.0-b5e7e0b

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.
@@ -555,6 +555,27 @@ export interface Connection {
555
555
  scopes: string;
556
556
  }
557
557
 
558
+ export interface ContractMetadata {
559
+ /** A URL to the JSON Schema for this object. */
560
+ readonly $schema?: string;
561
+ /** @nullable */
562
+ pluginContracts: string[] | null;
563
+ serverVersion: string;
564
+ /** @nullable */
565
+ uiHostApis: string[] | null;
566
+ }
567
+
568
+ export interface UIContract {
569
+ hostApi: string;
570
+ sdk: string;
571
+ }
572
+
573
+ export interface Contracts {
574
+ /** @nullable */
575
+ backend?: string[] | null;
576
+ ui?: UIContract;
577
+ }
578
+
558
579
  export interface CreateBrokeredIdPInputBody {
559
580
  /** A URL to the JSON Schema for this object. */
560
581
  readonly $schema?: string;
@@ -1186,7 +1207,10 @@ export interface UiExtensionDescriptor {
1186
1207
  export interface Extension {
1187
1208
  checksum: string;
1188
1209
  clientId?: string;
1210
+ contracts?: Contracts;
1189
1211
  createdAt: string;
1212
+ degradedDetail?: string;
1213
+ degradedReason?: string;
1190
1214
  endpoint: string;
1191
1215
  id: string;
1192
1216
  kind: string;
@@ -2009,6 +2033,7 @@ export interface ListTokensOutputBody {
2009
2033
  }
2010
2034
 
2011
2035
  export interface UiExtensionRemote {
2036
+ contracts?: Contracts;
2012
2037
  description?: string;
2013
2038
  enabled: boolean;
2014
2039
  name: string;
@@ -2315,6 +2340,7 @@ export interface RegisterUiInputBody {
2315
2340
  /** A URL to the JSON Schema for this object. */
2316
2341
  readonly $schema?: string;
2317
2342
  checksum?: string;
2343
+ contracts?: Contracts;
2318
2344
  description?: string;
2319
2345
  enabled?: boolean;
2320
2346
  name: string;
@@ -3673,6 +3699,56 @@ export const getMyPermissions = async ( options?: RequestInit): Promise<getMyPer
3673
3699
 
3674
3700
 
3675
3701
 
3702
+ export type getMetaContractsResponse200 = {
3703
+ data: ContractMetadata
3704
+ status: 200
3705
+ }
3706
+
3707
+ export type getMetaContractsResponseDefault = {
3708
+ data: ErrorModel
3709
+ status: Exclude<HTTPStatusCodes, 200>
3710
+ }
3711
+
3712
+ export type getMetaContractsResponseSuccess = (getMetaContractsResponse200) & {
3713
+ headers: Headers;
3714
+ };
3715
+ export type getMetaContractsResponseError = (getMetaContractsResponseDefault) & {
3716
+ headers: Headers;
3717
+ };
3718
+
3719
+ export type getMetaContractsResponse = (getMetaContractsResponseSuccess | getMetaContractsResponseError)
3720
+
3721
+ export const getGetMetaContractsUrl = () => {
3722
+
3723
+
3724
+
3725
+
3726
+ return `/api/v1/meta/contracts`
3727
+ }
3728
+
3729
+ /**
3730
+ * @summary Get supported extension contracts
3731
+ */
3732
+ export const getMetaContracts = async ( options?: RequestInit): Promise<getMetaContractsResponse> => {
3733
+
3734
+ const res = await fetch(getGetMetaContractsUrl(),
3735
+ {
3736
+ ...options,
3737
+ method: 'GET'
3738
+
3739
+
3740
+ }
3741
+ )
3742
+
3743
+
3744
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
3745
+
3746
+ const data: getMetaContractsResponse['data'] = body ? JSON.parse(body) : {}
3747
+ return { data, status: res.status, headers: res.headers } as getMetaContractsResponse
3748
+ }
3749
+
3750
+
3751
+
3676
3752
  export type listPlatformAdminsResponse200 = {
3677
3753
  data: ListPlatformAdminsOutputBody
3678
3754
  status: 200
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@7k-inari/api-client",
3
- "version": "0.8.0-5ee597d",
3
+ "version": "0.8.0-b5e7e0b",
4
4
  "description": "Generated TypeScript client for the Inari control plane contract (inari-api).",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",