@executor-js/plugin-openapi 1.5.14 → 1.5.16

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.
Files changed (62) hide show
  1. package/dist/AddOpenApiSource-U7AYB224.js +369 -0
  2. package/dist/AddOpenApiSource-U7AYB224.js.map +1 -0
  3. package/dist/{OpenApiAccountsPanel-Y2RGBSSL.js → OpenApiAccountsPanel-GHFHHE6P.js} +15 -39
  4. package/dist/OpenApiAccountsPanel-GHFHHE6P.js.map +1 -0
  5. package/dist/{UpdateSpecSection-MIZ5GLBM.js → UpdateSpecSection-PLCBUU4I.js} +4 -4
  6. package/dist/UpdateSpecSection-PLCBUU4I.js.map +1 -0
  7. package/dist/api/group.d.ts +0 -21
  8. package/dist/api/index.d.ts +0 -21
  9. package/dist/{chunk-PNOEE3ET.js → chunk-3FM2SWM4.js} +643 -569
  10. package/dist/chunk-3FM2SWM4.js.map +1 -0
  11. package/dist/chunk-CKBX4SXK.js +95 -0
  12. package/dist/chunk-CKBX4SXK.js.map +1 -0
  13. package/dist/{chunk-GS5YN6J4.js → chunk-CPPTKUOW.js} +5 -14
  14. package/dist/chunk-CPPTKUOW.js.map +1 -0
  15. package/dist/{chunk-RFSMGUBJ.js → chunk-KVPUDOJZ.js} +83 -8
  16. package/dist/chunk-KVPUDOJZ.js.map +1 -0
  17. package/dist/{chunk-PAHWRRS3.js → chunk-QQFCICLX.js} +4 -13
  18. package/dist/chunk-QQFCICLX.js.map +1 -0
  19. package/dist/client.js +4 -5
  20. package/dist/client.js.map +1 -1
  21. package/dist/core.js +25 -15
  22. package/dist/core.js.map +1 -1
  23. package/dist/index.js +4 -5
  24. package/dist/index.js.map +1 -1
  25. package/dist/react/atoms.d.ts +0 -22
  26. package/dist/react/client.d.ts +0 -21
  27. package/dist/react/index.d.ts +2 -0
  28. package/dist/sdk/backing.d.ts +54 -0
  29. package/dist/sdk/config.d.ts +0 -2
  30. package/dist/sdk/derive-auth.d.ts +5 -3
  31. package/dist/sdk/extract.d.ts +12 -1
  32. package/dist/sdk/index.d.ts +2 -1
  33. package/dist/sdk/invoke.d.ts +12 -1
  34. package/dist/sdk/plugin.d.ts +4 -10
  35. package/dist/sdk/presets.d.ts +0 -1
  36. package/dist/sdk/preview.d.ts +79 -0
  37. package/dist/sdk/types.d.ts +53 -0
  38. package/dist/testing/index.d.ts +0 -6
  39. package/package.json +6 -5
  40. package/dist/AddOpenApiSource-7TI5XUUY.js +0 -765
  41. package/dist/AddOpenApiSource-7TI5XUUY.js.map +0 -1
  42. package/dist/OpenApiAccountsPanel-Y2RGBSSL.js.map +0 -1
  43. package/dist/UpdateSpecSection-MIZ5GLBM.js.map +0 -1
  44. package/dist/chunk-GS5YN6J4.js.map +0 -1
  45. package/dist/chunk-I2XDCVVM.js +0 -712
  46. package/dist/chunk-I2XDCVVM.js.map +0 -1
  47. package/dist/chunk-MZWZQ24W.js +0 -226
  48. package/dist/chunk-MZWZQ24W.js.map +0 -1
  49. package/dist/chunk-PAHWRRS3.js.map +0 -1
  50. package/dist/chunk-PNOEE3ET.js.map +0 -1
  51. package/dist/chunk-RFSMGUBJ.js.map +0 -1
  52. package/dist/react/GoogleProductPicker.d.ts +0 -9
  53. package/dist/sdk/google-discovery.d.ts +0 -43
  54. package/dist/sdk/google-discovery.test.d.ts +0 -1
  55. package/dist/sdk/google-oauth-batches.d.ts +0 -13
  56. package/dist/sdk/google-oauth-batches.test.d.ts +0 -1
  57. package/dist/sdk/google-oauth-scopes.d.ts +0 -3
  58. package/dist/sdk/google-oauth-scopes.test.d.ts +0 -1
  59. package/dist/sdk/google-presets.d.ts +0 -16
  60. package/dist/sdk/google-presets.test.d.ts +0 -1
  61. package/dist/sdk/google-product-picker-scopes.test.d.ts +0 -1
  62. /package/dist/sdk/{google-bundle.test.d.ts → store.test.d.ts} +0 -0
@@ -1,43 +0,0 @@
1
- import { Effect } from "effect";
2
- import { HttpClient } from "effect/unstable/http";
3
- import { OpenApiParseError } from "./errors";
4
- import type { SpecFetchCredentials } from "./parse";
5
- import type { Authentication } from "./types";
6
- export interface GoogleDiscoveryOpenApiConversion {
7
- readonly specText: string;
8
- readonly baseUrl: string;
9
- readonly title: string;
10
- readonly service: string;
11
- readonly version: string;
12
- readonly discoveryUrls?: readonly string[];
13
- /** The v2 oauth auth template the converted integration declares, when the
14
- * Discovery document advertises OAuth2 scopes. */
15
- readonly authenticationTemplate?: readonly Authentication[];
16
- }
17
- export declare const isGoogleDiscoveryUrl: (url: string) => boolean;
18
- export declare const fetchGoogleDiscoveryDocument: (discoveryUrl: string, credentials?: SpecFetchCredentials | undefined) => Effect.Effect<string, OpenApiParseError, HttpClient.HttpClient>;
19
- export declare const convertGoogleDiscoveryToOpenApi: (input: {
20
- readonly discoveryUrl: string;
21
- readonly documentText: string;
22
- }) => Effect.Effect<{
23
- authenticationTemplate?: readonly Authentication[] | undefined;
24
- specText: string;
25
- baseUrl: string;
26
- title: string;
27
- service: string;
28
- version: string;
29
- }, OpenApiParseError, never>;
30
- export declare const convertGoogleDiscoveryBundleToOpenApi: (input: {
31
- readonly documents: readonly {
32
- readonly discoveryUrl: string;
33
- readonly documentText: string;
34
- }[];
35
- }) => Effect.Effect<{
36
- authenticationTemplate?: readonly Authentication[] | undefined;
37
- specText: string;
38
- baseUrl: string;
39
- title: string;
40
- service: string;
41
- version: string;
42
- discoveryUrls: string[];
43
- }, OpenApiParseError, never>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,13 +0,0 @@
1
- import type { GoogleOpenApiOAuthAudience } from "./google-presets";
2
- export type GoogleOAuthBatchInput = {
3
- readonly id: string;
4
- readonly name: string;
5
- readonly oauthAudience: GoogleOpenApiOAuthAudience;
6
- readonly scopes: readonly string[];
7
- };
8
- export type GoogleOAuthConsentBatch = {
9
- readonly id: string;
10
- readonly label: string;
11
- readonly apiScopes: readonly string[];
12
- };
13
- export declare const googleOAuthConsentBatches: (items: readonly GoogleOAuthBatchInput[]) => readonly GoogleOAuthConsentBatch[];
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- export declare const isGoogleUserConsentOAuthScope: (scope: string) => boolean;
2
- export declare const filterGoogleUserConsentOAuthScopes: (scopes: Iterable<string>) => string[];
3
- export declare const compactGoogleOAuthScopes: (scopes: Iterable<string>) => string[];
@@ -1 +0,0 @@
1
- export {};
@@ -1,16 +0,0 @@
1
- import type { OpenApiPreset } from "./presets";
2
- export type GoogleOpenApiOAuthAudience = "standard-user" | "advanced-user" | "workspace-admin" | "unsupported-user";
3
- export type GoogleOpenApiPreset = OpenApiPreset & {
4
- readonly oauthAudience: GoogleOpenApiOAuthAudience;
5
- };
6
- export declare const GOOGLE_BUNDLE_PRESET_ID = "google";
7
- export declare const googleOpenApiBundlePreset: OpenApiPreset;
8
- export declare const googleOpenApiPresets: readonly GoogleOpenApiPreset[];
9
- export declare const googleStandardUserOAuthPresets: GoogleOpenApiPreset[];
10
- export declare const googleOAuthConsentScopes: Readonly<Record<string, readonly string[]>>;
11
- export declare const googleOAuthConsentScopesForPreset: (presetId: string) => readonly string[];
12
- export declare const googlePresetForDiscoveryUrl: (url: string) => GoogleOpenApiPreset | undefined;
13
- /** The distinct caution-tier audiences (`workspace-admin`, `unsupported-user`)
14
- * among the supplied Discovery URLs — the ones whose consent the user should be
15
- * warned about. Returns `[]` when every URL is a standard/advanced API. */
16
- export declare const googleAudienceWarningsForUrls: (urls: readonly string[]) => readonly GoogleOpenApiOAuthAudience[];
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};