apps 0.0.1-beta.83 → 0.0.1-beta.84

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.
@@ -17,7 +17,8 @@ export declare function errorResponses(document: OpenApiDocument, operation: Jso
17
17
  */
18
18
  export declare const compileOpenApiDocument: (entry: OpenApiImport, inputDocument: JsonObject, options?: {
19
19
  readonly baseUrl?: string;
20
- readonly allowedOrigin?: string;
20
+ /** The origins operations may address; every other operation is left out. */
21
+ readonly allowedOrigin?: string | readonly string[];
21
22
  /** Inserted between every operation's server and path; see `prefixParameters`. */
22
23
  readonly pathPrefix?: string;
23
24
  readonly securitySchemes?: Readonly<Record<string, JsonObject>>;
@@ -133,7 +134,7 @@ export declare const compileOpenApiDocument: (entry: OpenApiImport, inputDocumen
133
134
  readonly [x: string]: Schema.Json;
134
135
  };
135
136
  };
136
- pinnedOrigin: string | undefined;
137
+ pinnedOrigins: string[];
137
138
  fallback: readonly {
138
139
  readonly [x: string]: readonly string[];
139
140
  }[] | undefined;
@@ -14,7 +14,11 @@ export interface OpenapiSourceOptions extends Omit<OpenapiToolsOptions, "operati
14
14
  } | {
15
15
  readonly document: JsonObject;
16
16
  };
17
- readonly allowedOrigin: string;
17
+ /**
18
+ * The origin that may receive credentials, or several origins of one service, such as its API
19
+ * and upload hosts. Operations on any other origin are left out.
20
+ */
21
+ readonly allowedOrigin: string | readonly string[];
18
22
  readonly securitySchemes: Readonly<Record<string, JsonObject>>;
19
23
  readonly baseUrl?: string;
20
24
  /**