@yaklabs-ai/plugin-protocol 0.27.1 → 0.29.0
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/README.md +1 -1
- package/THIRD-PARTY-INVENTORY.json +1 -1
- package/dist/index.d.ts +37 -58
- package/dist/index.js +19 -16
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -3908,8 +3908,23 @@ export declare const KAY_PLUGIN_PROTOCOL_VERSION: "kay.plugin.v1";
|
|
|
3908
3908
|
* hosted module's code and manifest must agree on it, and the daemon reads it to find an
|
|
3909
3909
|
* external-CLI scheme without running the module. A module that runs in the daemon is unchanged,
|
|
3910
3910
|
* so this is additive; a plugin whose manifest sets `authScheme` declares ^0.27.1.
|
|
3911
|
+
*
|
|
3912
|
+
* 0.28.0 makes "whose credential is this?" one call (#15714). `api.auth.registerAccountLookup`
|
|
3913
|
+
* replaces `registerValidator` and `registerAccountResolver`: it takes the credential, its fields and
|
|
3914
|
+
* a cancel signal, and returns every account the credential reaches. A manifest says `account:
|
|
3915
|
+
* "lookup"` on any `oauth2` or `api-key` scheme the plugin answers for, in place of `validates: true`
|
|
3916
|
+
* and the `"resolveAccountId"` and `"resolveAccounts"` values, and a `pkce` scheme on a client the
|
|
3917
|
+
* host holds may name one too. A plugin using a removed member or value stops loading until it is
|
|
3918
|
+
* rebuilt; a code search found none outside this repo. A plugin with a sign-in declares ^0.28.0. 0.26.3 and 0.27.1
|
|
3919
|
+
* stay served for a plugin that uses none of these.
|
|
3920
|
+
*
|
|
3921
|
+
* 0.29.0 replaces `servedSimulators` (`KayServedSimulators`, a lookup by adapter id) with
|
|
3922
|
+
* `simulator` on both targets (#14929): what the plugin's own simulator built, handed over once by
|
|
3923
|
+
* whichever process runs the plugin. A plugin's simulator file exports `createPluginSimulator`
|
|
3924
|
+
* (`KayPluginSimulatorFactory`). A clean break: only this repo's plugins read the old member, and
|
|
3925
|
+
* a plugin with no simulator is unaffected, so 0.28.0 stays served.
|
|
3911
3926
|
*/
|
|
3912
|
-
export declare const KAY_PLUGIN_SDK_VERSION: "0.
|
|
3927
|
+
export declare const KAY_PLUGIN_SDK_VERSION: "0.29.0";
|
|
3913
3928
|
|
|
3914
3929
|
export declare const KAY_PLUGIN_TARGET_NAMES: readonly ["kay.agent", "kay.app", "kay.ui"];
|
|
3915
3930
|
|
|
@@ -5498,10 +5513,7 @@ export declare const KayPluginManifestV1: z.ZodObject<{
|
|
|
5498
5513
|
exchange: z.ZodLiteral<"pkce">;
|
|
5499
5514
|
clientId: z.ZodOptional<z.ZodString>;
|
|
5500
5515
|
clientSecret: z.ZodOptional<z.ZodString>;
|
|
5501
|
-
account: z.ZodOptional<z.
|
|
5502
|
-
resolveAccountId: "resolveAccountId";
|
|
5503
|
-
resolveAccounts: "resolveAccounts";
|
|
5504
|
-
}>>;
|
|
5516
|
+
account: z.ZodOptional<z.ZodLiteral<"lookup">>;
|
|
5505
5517
|
clientSuppliers: z.ZodArray<z.ZodEnum<{
|
|
5506
5518
|
user: "user";
|
|
5507
5519
|
kay: "kay";
|
|
@@ -5533,10 +5545,7 @@ export declare const KayPluginManifestV1: z.ZodObject<{
|
|
|
5533
5545
|
exchange: z.ZodLiteral<"confidential">;
|
|
5534
5546
|
clientSuppliers: z.ZodOptional<z.ZodTuple<[z.ZodLiteral<"kay">], null>>;
|
|
5535
5547
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5536
|
-
account: z.ZodUnion<readonly [z.
|
|
5537
|
-
resolveAccountId: "resolveAccountId";
|
|
5538
|
-
resolveAccounts: "resolveAccounts";
|
|
5539
|
-
}>, z.ZodLiteral<"sign-in">]>;
|
|
5548
|
+
account: z.ZodUnion<readonly [z.ZodLiteral<"lookup">, z.ZodLiteral<"sign-in">]>;
|
|
5540
5549
|
authorizationUrl: z.ZodURL;
|
|
5541
5550
|
tokenUrl: z.ZodURL;
|
|
5542
5551
|
extraAuthorizeParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -5570,7 +5579,7 @@ export declare const KayPluginManifestV1: z.ZodObject<{
|
|
|
5570
5579
|
instructions: z.ZodString;
|
|
5571
5580
|
url: z.ZodURL;
|
|
5572
5581
|
}, z.core.$strict>>;
|
|
5573
|
-
|
|
5582
|
+
account: z.ZodOptional<z.ZodLiteral<"lookup">>;
|
|
5574
5583
|
displayName: z.ZodOptional<z.ZodString>;
|
|
5575
5584
|
agentHint: z.ZodOptional<z.ZodString>;
|
|
5576
5585
|
summary: z.ZodOptional<z.ZodString>;
|
|
@@ -6742,10 +6751,7 @@ export declare const PluginAuthManifest: z.ZodObject<{
|
|
|
6742
6751
|
exchange: z.ZodLiteral<"pkce">;
|
|
6743
6752
|
clientId: z.ZodOptional<z.ZodString>;
|
|
6744
6753
|
clientSecret: z.ZodOptional<z.ZodString>;
|
|
6745
|
-
account: z.ZodOptional<z.
|
|
6746
|
-
resolveAccountId: "resolveAccountId";
|
|
6747
|
-
resolveAccounts: "resolveAccounts";
|
|
6748
|
-
}>>;
|
|
6754
|
+
account: z.ZodOptional<z.ZodLiteral<"lookup">>;
|
|
6749
6755
|
clientSuppliers: z.ZodArray<z.ZodEnum<{
|
|
6750
6756
|
user: "user";
|
|
6751
6757
|
kay: "kay";
|
|
@@ -6777,10 +6783,7 @@ export declare const PluginAuthManifest: z.ZodObject<{
|
|
|
6777
6783
|
exchange: z.ZodLiteral<"confidential">;
|
|
6778
6784
|
clientSuppliers: z.ZodOptional<z.ZodTuple<[z.ZodLiteral<"kay">], null>>;
|
|
6779
6785
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6780
|
-
account: z.ZodUnion<readonly [z.
|
|
6781
|
-
resolveAccountId: "resolveAccountId";
|
|
6782
|
-
resolveAccounts: "resolveAccounts";
|
|
6783
|
-
}>, z.ZodLiteral<"sign-in">]>;
|
|
6786
|
+
account: z.ZodUnion<readonly [z.ZodLiteral<"lookup">, z.ZodLiteral<"sign-in">]>;
|
|
6784
6787
|
authorizationUrl: z.ZodURL;
|
|
6785
6788
|
tokenUrl: z.ZodURL;
|
|
6786
6789
|
extraAuthorizeParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -6814,7 +6817,7 @@ export declare const PluginAuthManifest: z.ZodObject<{
|
|
|
6814
6817
|
instructions: z.ZodString;
|
|
6815
6818
|
url: z.ZodURL;
|
|
6816
6819
|
}, z.core.$strict>>;
|
|
6817
|
-
|
|
6820
|
+
account: z.ZodOptional<z.ZodLiteral<"lookup">>;
|
|
6818
6821
|
displayName: z.ZodOptional<z.ZodString>;
|
|
6819
6822
|
agentHint: z.ZodOptional<z.ZodString>;
|
|
6820
6823
|
summary: z.ZodOptional<z.ZodString>;
|
|
@@ -6903,10 +6906,7 @@ export declare const PluginAuthScheme: z.ZodDiscriminatedUnion<[z.ZodDiscriminat
|
|
|
6903
6906
|
exchange: z.ZodLiteral<"pkce">;
|
|
6904
6907
|
clientId: z.ZodOptional<z.ZodString>;
|
|
6905
6908
|
clientSecret: z.ZodOptional<z.ZodString>;
|
|
6906
|
-
account: z.ZodOptional<z.
|
|
6907
|
-
resolveAccountId: "resolveAccountId";
|
|
6908
|
-
resolveAccounts: "resolveAccounts";
|
|
6909
|
-
}>>;
|
|
6909
|
+
account: z.ZodOptional<z.ZodLiteral<"lookup">>;
|
|
6910
6910
|
clientSuppliers: z.ZodArray<z.ZodEnum<{
|
|
6911
6911
|
user: "user";
|
|
6912
6912
|
kay: "kay";
|
|
@@ -6938,10 +6938,7 @@ export declare const PluginAuthScheme: z.ZodDiscriminatedUnion<[z.ZodDiscriminat
|
|
|
6938
6938
|
exchange: z.ZodLiteral<"confidential">;
|
|
6939
6939
|
clientSuppliers: z.ZodOptional<z.ZodTuple<[z.ZodLiteral<"kay">], null>>;
|
|
6940
6940
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6941
|
-
account: z.ZodUnion<readonly [z.
|
|
6942
|
-
resolveAccountId: "resolveAccountId";
|
|
6943
|
-
resolveAccounts: "resolveAccounts";
|
|
6944
|
-
}>, z.ZodLiteral<"sign-in">]>;
|
|
6941
|
+
account: z.ZodUnion<readonly [z.ZodLiteral<"lookup">, z.ZodLiteral<"sign-in">]>;
|
|
6945
6942
|
authorizationUrl: z.ZodURL;
|
|
6946
6943
|
tokenUrl: z.ZodURL;
|
|
6947
6944
|
extraAuthorizeParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -6975,7 +6972,7 @@ export declare const PluginAuthScheme: z.ZodDiscriminatedUnion<[z.ZodDiscriminat
|
|
|
6975
6972
|
instructions: z.ZodString;
|
|
6976
6973
|
url: z.ZodURL;
|
|
6977
6974
|
}, z.core.$strict>>;
|
|
6978
|
-
|
|
6975
|
+
account: z.ZodOptional<z.ZodLiteral<"lookup">>;
|
|
6979
6976
|
displayName: z.ZodOptional<z.ZodString>;
|
|
6980
6977
|
agentHint: z.ZodOptional<z.ZodString>;
|
|
6981
6978
|
summary: z.ZodOptional<z.ZodString>;
|
|
@@ -7045,10 +7042,7 @@ export declare const PluginAuthService: z.ZodObject<{
|
|
|
7045
7042
|
exchange: z.ZodLiteral<"pkce">;
|
|
7046
7043
|
clientId: z.ZodOptional<z.ZodString>;
|
|
7047
7044
|
clientSecret: z.ZodOptional<z.ZodString>;
|
|
7048
|
-
account: z.ZodOptional<z.
|
|
7049
|
-
resolveAccountId: "resolveAccountId";
|
|
7050
|
-
resolveAccounts: "resolveAccounts";
|
|
7051
|
-
}>>;
|
|
7045
|
+
account: z.ZodOptional<z.ZodLiteral<"lookup">>;
|
|
7052
7046
|
clientSuppliers: z.ZodArray<z.ZodEnum<{
|
|
7053
7047
|
user: "user";
|
|
7054
7048
|
kay: "kay";
|
|
@@ -7080,10 +7074,7 @@ export declare const PluginAuthService: z.ZodObject<{
|
|
|
7080
7074
|
exchange: z.ZodLiteral<"confidential">;
|
|
7081
7075
|
clientSuppliers: z.ZodOptional<z.ZodTuple<[z.ZodLiteral<"kay">], null>>;
|
|
7082
7076
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7083
|
-
account: z.ZodUnion<readonly [z.
|
|
7084
|
-
resolveAccountId: "resolveAccountId";
|
|
7085
|
-
resolveAccounts: "resolveAccounts";
|
|
7086
|
-
}>, z.ZodLiteral<"sign-in">]>;
|
|
7077
|
+
account: z.ZodUnion<readonly [z.ZodLiteral<"lookup">, z.ZodLiteral<"sign-in">]>;
|
|
7087
7078
|
authorizationUrl: z.ZodURL;
|
|
7088
7079
|
tokenUrl: z.ZodURL;
|
|
7089
7080
|
extraAuthorizeParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -7117,7 +7108,7 @@ export declare const PluginAuthService: z.ZodObject<{
|
|
|
7117
7108
|
instructions: z.ZodString;
|
|
7118
7109
|
url: z.ZodURL;
|
|
7119
7110
|
}, z.core.$strict>>;
|
|
7120
|
-
|
|
7111
|
+
account: z.ZodOptional<z.ZodLiteral<"lookup">>;
|
|
7121
7112
|
displayName: z.ZodOptional<z.ZodString>;
|
|
7122
7113
|
agentHint: z.ZodOptional<z.ZodString>;
|
|
7123
7114
|
summary: z.ZodOptional<z.ZodString>;
|
|
@@ -10593,10 +10584,7 @@ export declare const ResolvedPluginAuthScheme: z.ZodDiscriminatedUnion<[z.ZodDis
|
|
|
10593
10584
|
}>>;
|
|
10594
10585
|
clientId: z.ZodOptional<z.ZodString>;
|
|
10595
10586
|
clientSecret: z.ZodOptional<z.ZodString>;
|
|
10596
|
-
account: z.ZodOptional<z.
|
|
10597
|
-
resolveAccountId: "resolveAccountId";
|
|
10598
|
-
resolveAccounts: "resolveAccounts";
|
|
10599
|
-
}>>;
|
|
10587
|
+
account: z.ZodOptional<z.ZodLiteral<"lookup">>;
|
|
10600
10588
|
localId: z.ZodString;
|
|
10601
10589
|
globalId: z.ZodString;
|
|
10602
10590
|
kind: z.ZodLiteral<"oauth2">;
|
|
@@ -10625,8 +10613,7 @@ export declare const ResolvedPluginAuthScheme: z.ZodDiscriminatedUnion<[z.ZodDis
|
|
|
10625
10613
|
exchange: z.ZodLiteral<"confidential">;
|
|
10626
10614
|
clientSuppliers: z.ZodTuple<[z.ZodLiteral<"kay">], null>;
|
|
10627
10615
|
account: z.ZodEnum<{
|
|
10628
|
-
|
|
10629
|
-
resolveAccounts: "resolveAccounts";
|
|
10616
|
+
lookup: "lookup";
|
|
10630
10617
|
"sign-in": "sign-in";
|
|
10631
10618
|
}>;
|
|
10632
10619
|
localId: z.ZodString;
|
|
@@ -10667,7 +10654,7 @@ export declare const ResolvedPluginAuthScheme: z.ZodDiscriminatedUnion<[z.ZodDis
|
|
|
10667
10654
|
instructions: z.ZodString;
|
|
10668
10655
|
url: z.ZodURL;
|
|
10669
10656
|
}, z.core.$strict>>;
|
|
10670
|
-
|
|
10657
|
+
account: z.ZodOptional<z.ZodLiteral<"lookup">>;
|
|
10671
10658
|
displayName: z.ZodOptional<z.ZodString>;
|
|
10672
10659
|
agentHint: z.ZodOptional<z.ZodString>;
|
|
10673
10660
|
summary: z.ZodOptional<z.ZodString>;
|
|
@@ -10742,10 +10729,7 @@ export declare const ResolvedPluginAuthService: z.ZodObject<{
|
|
|
10742
10729
|
}>>;
|
|
10743
10730
|
clientId: z.ZodOptional<z.ZodString>;
|
|
10744
10731
|
clientSecret: z.ZodOptional<z.ZodString>;
|
|
10745
|
-
account: z.ZodOptional<z.
|
|
10746
|
-
resolveAccountId: "resolveAccountId";
|
|
10747
|
-
resolveAccounts: "resolveAccounts";
|
|
10748
|
-
}>>;
|
|
10732
|
+
account: z.ZodOptional<z.ZodLiteral<"lookup">>;
|
|
10749
10733
|
localId: z.ZodString;
|
|
10750
10734
|
globalId: z.ZodString;
|
|
10751
10735
|
kind: z.ZodLiteral<"oauth2">;
|
|
@@ -10774,8 +10758,7 @@ export declare const ResolvedPluginAuthService: z.ZodObject<{
|
|
|
10774
10758
|
exchange: z.ZodLiteral<"confidential">;
|
|
10775
10759
|
clientSuppliers: z.ZodTuple<[z.ZodLiteral<"kay">], null>;
|
|
10776
10760
|
account: z.ZodEnum<{
|
|
10777
|
-
|
|
10778
|
-
resolveAccounts: "resolveAccounts";
|
|
10761
|
+
lookup: "lookup";
|
|
10779
10762
|
"sign-in": "sign-in";
|
|
10780
10763
|
}>;
|
|
10781
10764
|
localId: z.ZodString;
|
|
@@ -10816,7 +10799,7 @@ export declare const ResolvedPluginAuthService: z.ZodObject<{
|
|
|
10816
10799
|
instructions: z.ZodString;
|
|
10817
10800
|
url: z.ZodURL;
|
|
10818
10801
|
}, z.core.$strict>>;
|
|
10819
|
-
|
|
10802
|
+
account: z.ZodOptional<z.ZodLiteral<"lookup">>;
|
|
10820
10803
|
displayName: z.ZodOptional<z.ZodString>;
|
|
10821
10804
|
agentHint: z.ZodOptional<z.ZodString>;
|
|
10822
10805
|
summary: z.ZodOptional<z.ZodString>;
|
|
@@ -10964,10 +10947,7 @@ export declare const ResolvedPluginContractV1: z.ZodObject<{
|
|
|
10964
10947
|
}>>;
|
|
10965
10948
|
clientId: z.ZodOptional<z.ZodString>;
|
|
10966
10949
|
clientSecret: z.ZodOptional<z.ZodString>;
|
|
10967
|
-
account: z.ZodOptional<z.
|
|
10968
|
-
resolveAccountId: "resolveAccountId";
|
|
10969
|
-
resolveAccounts: "resolveAccounts";
|
|
10970
|
-
}>>;
|
|
10950
|
+
account: z.ZodOptional<z.ZodLiteral<"lookup">>;
|
|
10971
10951
|
localId: z.ZodString;
|
|
10972
10952
|
globalId: z.ZodString;
|
|
10973
10953
|
kind: z.ZodLiteral<"oauth2">;
|
|
@@ -10996,8 +10976,7 @@ export declare const ResolvedPluginContractV1: z.ZodObject<{
|
|
|
10996
10976
|
exchange: z.ZodLiteral<"confidential">;
|
|
10997
10977
|
clientSuppliers: z.ZodTuple<[z.ZodLiteral<"kay">], null>;
|
|
10998
10978
|
account: z.ZodEnum<{
|
|
10999
|
-
|
|
11000
|
-
resolveAccounts: "resolveAccounts";
|
|
10979
|
+
lookup: "lookup";
|
|
11001
10980
|
"sign-in": "sign-in";
|
|
11002
10981
|
}>;
|
|
11003
10982
|
localId: z.ZodString;
|
|
@@ -11038,7 +11017,7 @@ export declare const ResolvedPluginContractV1: z.ZodObject<{
|
|
|
11038
11017
|
instructions: z.ZodString;
|
|
11039
11018
|
url: z.ZodURL;
|
|
11040
11019
|
}, z.core.$strict>>;
|
|
11041
|
-
|
|
11020
|
+
account: z.ZodOptional<z.ZodLiteral<"lookup">>;
|
|
11042
11021
|
displayName: z.ZodOptional<z.ZodString>;
|
|
11043
11022
|
agentHint: z.ZodOptional<z.ZodString>;
|
|
11044
11023
|
summary: z.ZodOptional<z.ZodString>;
|
package/dist/index.js
CHANGED
|
@@ -222,8 +222,12 @@ var JsonSchema = z4.record(z4.string(), JsonValue);
|
|
|
222
222
|
// packages/plugin-protocol/dist/common.js
|
|
223
223
|
var KAY_PLUGIN_PROTOCOL_VERSION = "kay.plugin.v1";
|
|
224
224
|
var KAY_PLUGIN_PROTOCOL_PACKAGE_NAME = "@bonsai/plugin-protocol";
|
|
225
|
-
var KAY_PLUGIN_SDK_VERSION = "0.
|
|
226
|
-
var KAY_PLUGIN_COMPATIBLE_SDK_VERSIONS = [
|
|
225
|
+
var KAY_PLUGIN_SDK_VERSION = "0.29.0";
|
|
226
|
+
var KAY_PLUGIN_COMPATIBLE_SDK_VERSIONS = [
|
|
227
|
+
"0.26.3",
|
|
228
|
+
"0.27.1",
|
|
229
|
+
"0.28.0"
|
|
230
|
+
];
|
|
227
231
|
var KAY_PLUGIN_TARGET_NAMES = [
|
|
228
232
|
"kay.agent",
|
|
229
233
|
"kay.app",
|
|
@@ -3916,10 +3920,7 @@ function createManifestSchemas(canonical) {
|
|
|
3916
3920
|
/** Provider-specific query parameters added to the authorize URL. */
|
|
3917
3921
|
extraAuthorizeParams: z13.record(NonEmptyString3, z13.string()).optional()
|
|
3918
3922
|
};
|
|
3919
|
-
const PluginAuthSchemeAccountLookup = z13.
|
|
3920
|
-
"resolveAccountId",
|
|
3921
|
-
"resolveAccounts"
|
|
3922
|
-
]);
|
|
3923
|
+
const PluginAuthSchemeAccountLookup = z13.literal("lookup");
|
|
3923
3924
|
const PluginAuthSchemeOAuthPkce = z13.strictObject({
|
|
3924
3925
|
...PluginProvisioningField,
|
|
3925
3926
|
...PluginAuthSchemeDescriptionFields,
|
|
@@ -3939,7 +3940,8 @@ function createManifestSchemas(canonical) {
|
|
|
3939
3940
|
clientSecret: NonEmptyString3.optional(),
|
|
3940
3941
|
/**
|
|
3941
3942
|
* Where the account comes from (see {@link PluginAuthSchemeAccountLookup}); required with a
|
|
3942
|
-
* `clientId`. A scheme without one
|
|
3943
|
+
* `clientId`. A scheme without one runs on a client the host holds and may name a lookup too
|
|
3944
|
+
* (Google, Microsoft); naming none leaves the record under the placeholder account.
|
|
3943
3945
|
*/
|
|
3944
3946
|
account: PluginAuthSchemeAccountLookup.optional(),
|
|
3945
3947
|
/**
|
|
@@ -3960,8 +3962,8 @@ function createManifestSchemas(canonical) {
|
|
|
3960
3962
|
}).refine((scheme) => scheme.clientSecret === void 0 || scheme.clientId !== void 0, {
|
|
3961
3963
|
message: "clientSecret needs the clientId it belongs to",
|
|
3962
3964
|
path: ["clientSecret"]
|
|
3963
|
-
}).refine((scheme) => scheme.
|
|
3964
|
-
message: "a scheme with its own clientId names where its account comes from (`account`)
|
|
3965
|
+
}).refine((scheme) => scheme.clientId === void 0 || scheme.account !== void 0, {
|
|
3966
|
+
message: "a scheme with its own clientId names where its account comes from (`account`)",
|
|
3965
3967
|
path: ["account"]
|
|
3966
3968
|
});
|
|
3967
3969
|
const PluginAuthSchemeOAuthConfidential = z13.strictObject({
|
|
@@ -4001,10 +4003,11 @@ function createManifestSchemas(canonical) {
|
|
|
4001
4003
|
/** Where and how the person creates the key outside Bonsai. */
|
|
4002
4004
|
setup: z13.strictObject({ instructions: NonEmptyString3, url: HttpsUrl2 }).optional(),
|
|
4003
4005
|
/**
|
|
4004
|
-
*
|
|
4005
|
-
* (`api.auth.
|
|
4006
|
+
* `"lookup"`: the plugin checks a key before it is saved and names its account, with the function
|
|
4007
|
+
* it registers (`api.auth.registerAccountLookup`). Absent: the key is saved unchecked, under the
|
|
4008
|
+
* caller's account or the placeholder.
|
|
4006
4009
|
*/
|
|
4007
|
-
|
|
4010
|
+
account: PluginAuthSchemeAccountLookup.optional()
|
|
4008
4011
|
});
|
|
4009
4012
|
const PluginAuthSchemeDelegated = z13.strictObject({
|
|
4010
4013
|
...PluginAuthSchemeDescriptionFields,
|
|
@@ -5190,13 +5193,13 @@ function createResolvedContractSchemas(canonical) {
|
|
|
5190
5193
|
clientSuppliers: z14.array(PluginOAuthClientSupplier2).nonempty(),
|
|
5191
5194
|
clientId: NonEmptyString3.optional(),
|
|
5192
5195
|
clientSecret: NonEmptyString3.optional(),
|
|
5193
|
-
account: z14.
|
|
5196
|
+
account: z14.literal("lookup").optional()
|
|
5194
5197
|
});
|
|
5195
5198
|
const ResolvedPluginAuthSchemeOAuthConfidential = z14.strictObject({
|
|
5196
5199
|
...ResolvedPluginAuthSchemeOAuthBase,
|
|
5197
5200
|
exchange: z14.literal("confidential"),
|
|
5198
5201
|
clientSuppliers: z14.tuple([z14.literal("kay")]),
|
|
5199
|
-
account: z14.enum(["
|
|
5202
|
+
account: z14.enum(["lookup", "sign-in"])
|
|
5200
5203
|
});
|
|
5201
5204
|
const ResolvedPluginAuthSchemeOAuth2 = z14.discriminatedUnion("exchange", [
|
|
5202
5205
|
ResolvedPluginAuthSchemeOAuthPkce,
|
|
@@ -5213,7 +5216,7 @@ function createResolvedContractSchemas(canonical) {
|
|
|
5213
5216
|
inputLabel: NonEmptyString3,
|
|
5214
5217
|
fields: z14.array(z14.strictObject({ id: z14.string(), label: z14.string() })).optional(),
|
|
5215
5218
|
setup: z14.strictObject({ instructions: z14.string(), url: HttpsUrl2 }).optional(),
|
|
5216
|
-
|
|
5219
|
+
account: z14.literal("lookup").optional()
|
|
5217
5220
|
});
|
|
5218
5221
|
const ResolvedPluginAuthSchemeDelegated = z14.strictObject({
|
|
5219
5222
|
...ResolvedPluginAuthSchemeDescriptionFields,
|
|
@@ -5577,7 +5580,7 @@ function resolveAuthServices(namespace, manifest) {
|
|
|
5577
5580
|
inputLabel: scheme.inputLabel ?? `${service.displayName} API key`,
|
|
5578
5581
|
...scheme.fields === void 0 ? {} : { fields: scheme.fields.map((field) => ({ ...field })) },
|
|
5579
5582
|
...scheme.setup === void 0 ? {} : { setup: { ...scheme.setup } },
|
|
5580
|
-
...scheme.
|
|
5583
|
+
...scheme.account === void 0 ? {} : { account: scheme.account },
|
|
5581
5584
|
...scopesField,
|
|
5582
5585
|
...descriptionFields,
|
|
5583
5586
|
...provisioningField
|
package/package.json
CHANGED