@keystrokehq/keystroke 0.0.173 → 0.0.174

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 (91) hide show
  1. package/dist/action.cjs +2 -3
  2. package/dist/action.d.cts +3 -3
  3. package/dist/action.d.mts +3 -3
  4. package/dist/action.mjs +2 -2
  5. package/dist/agent.cjs +3 -3
  6. package/dist/agent.d.cts +2 -2
  7. package/dist/agent.d.mts +2 -2
  8. package/dist/agent.mjs +3 -3
  9. package/dist/app.cjs +72 -0
  10. package/dist/app.cjs.map +1 -0
  11. package/dist/app.d.cts +58 -0
  12. package/dist/app.d.cts.map +1 -0
  13. package/dist/app.d.mts +58 -0
  14. package/dist/app.d.mts.map +1 -0
  15. package/dist/app.mjs +71 -0
  16. package/dist/app.mjs.map +1 -0
  17. package/dist/client.cjs +3 -1
  18. package/dist/client.cjs.map +1 -1
  19. package/dist/client.d.cts +6 -0
  20. package/dist/client.d.cts.map +1 -1
  21. package/dist/client.d.mts +6 -0
  22. package/dist/client.d.mts.map +1 -1
  23. package/dist/client.mjs +3 -1
  24. package/dist/client.mjs.map +1 -1
  25. package/dist/config.d.cts +1 -1
  26. package/dist/config.d.mts +1 -1
  27. package/dist/credentials.cjs +2 -3
  28. package/dist/credentials.d.cts +2 -2
  29. package/dist/credentials.d.mts +2 -2
  30. package/dist/credentials.mjs +2 -2
  31. package/dist/{dist-Dz0i7l87.cjs → dist-BLADLFrG.cjs} +41 -63
  32. package/dist/dist-BLADLFrG.cjs.map +1 -0
  33. package/dist/{dist-bGasqeNy.mjs → dist-BX0Upt63.mjs} +41 -63
  34. package/dist/dist-BX0Upt63.mjs.map +1 -0
  35. package/dist/{dist--dtTaEXy.cjs → dist-Bwkl4vwe.cjs} +8 -10
  36. package/dist/dist-Bwkl4vwe.cjs.map +1 -0
  37. package/dist/{dist-BF5yN9sB.mjs → dist-CFy63Npi.mjs} +30 -50
  38. package/dist/dist-CFy63Npi.mjs.map +1 -0
  39. package/dist/{dist--zLOSTcG.cjs → dist-DEwBt6Ee.cjs} +31 -63
  40. package/dist/dist-DEwBt6Ee.cjs.map +1 -0
  41. package/dist/{dist-DT5CSOQc.mjs → dist-g-XZ7Tbo.mjs} +8 -10
  42. package/dist/dist-g-XZ7Tbo.mjs.map +1 -0
  43. package/dist/{index-1uEWGKCk.d.mts → index-B8ZRIgPK.d.mts} +12 -9
  44. package/dist/index-B8ZRIgPK.d.mts.map +1 -0
  45. package/dist/{index-s53YoTdO.d.cts → index-CDWAJRJD.d.cts} +2 -2
  46. package/dist/{index-BDPrsenN.d.mts.map → index-CDWAJRJD.d.cts.map} +1 -1
  47. package/dist/{index-BPC4loSM.d.mts → index-CITVigQS.d.mts} +2 -2
  48. package/dist/index-CITVigQS.d.mts.map +1 -0
  49. package/dist/{index-uWH8vj_f.d.cts → index-CUYwOWCh.d.cts} +4 -4
  50. package/dist/{index-uWH8vj_f.d.cts.map → index-CUYwOWCh.d.cts.map} +1 -1
  51. package/dist/{index-DvJmjY4X.d.mts → index-DPyUP9U_.d.mts} +4 -4
  52. package/dist/{index-DvJmjY4X.d.mts.map → index-DPyUP9U_.d.mts.map} +1 -1
  53. package/dist/{index-BDPrsenN.d.mts → index-DT9Ml-7N.d.mts} +2 -2
  54. package/dist/{index-s53YoTdO.d.cts.map → index-DT9Ml-7N.d.mts.map} +1 -1
  55. package/dist/{index-B9hlxKDT.d.cts → index-DjLUdkRo.d.cts} +12 -9
  56. package/dist/index-DjLUdkRo.d.cts.map +1 -0
  57. package/dist/{index-DAzE8I-g.d.cts → index-hf0OTB6M.d.cts} +14 -16
  58. package/dist/index-hf0OTB6M.d.cts.map +1 -0
  59. package/dist/{index-DAzE8I-g.d.mts → index-hf0OTB6M.d.mts} +14 -16
  60. package/dist/index-hf0OTB6M.d.mts.map +1 -0
  61. package/dist/{index-Ugto82oH.d.cts → index-y_2btA4s.d.cts} +2 -2
  62. package/dist/index-y_2btA4s.d.cts.map +1 -0
  63. package/dist/{mistral-GXPqP1mo.cjs → mistral-CC5EGzH4.cjs} +2 -2
  64. package/dist/{mistral-GXPqP1mo.cjs.map → mistral-CC5EGzH4.cjs.map} +1 -1
  65. package/dist/{mistral-D56Ydau-.mjs → mistral-DbKZmAHf.mjs} +2 -2
  66. package/dist/{mistral-D56Ydau-.mjs.map → mistral-DbKZmAHf.mjs.map} +1 -1
  67. package/dist/{sse-U_LwOMpt.mjs → sse-DqYCbW54.mjs} +2 -2
  68. package/dist/{sse-U_LwOMpt.mjs.map → sse-DqYCbW54.mjs.map} +1 -1
  69. package/dist/{sse-D1mtozXN.cjs → sse-dAxMgDEB.cjs} +2 -2
  70. package/dist/{sse-D1mtozXN.cjs.map → sse-dAxMgDEB.cjs.map} +1 -1
  71. package/dist/trigger.cjs +1 -1
  72. package/dist/trigger.d.cts +3 -3
  73. package/dist/trigger.d.mts +3 -3
  74. package/dist/trigger.mjs +1 -1
  75. package/dist/workflow.cjs +1 -1
  76. package/dist/workflow.d.cts +2 -2
  77. package/dist/workflow.d.mts +2 -2
  78. package/dist/workflow.mjs +1 -1
  79. package/package.json +7 -1
  80. package/dist/dist--dtTaEXy.cjs.map +0 -1
  81. package/dist/dist--zLOSTcG.cjs.map +0 -1
  82. package/dist/dist-BF5yN9sB.mjs.map +0 -1
  83. package/dist/dist-DT5CSOQc.mjs.map +0 -1
  84. package/dist/dist-Dz0i7l87.cjs.map +0 -1
  85. package/dist/dist-bGasqeNy.mjs.map +0 -1
  86. package/dist/index-1uEWGKCk.d.mts.map +0 -1
  87. package/dist/index-B9hlxKDT.d.cts.map +0 -1
  88. package/dist/index-BPC4loSM.d.mts.map +0 -1
  89. package/dist/index-DAzE8I-g.d.cts.map +0 -1
  90. package/dist/index-DAzE8I-g.d.mts.map +0 -1
  91. package/dist/index-Ugto82oH.d.cts.map +0 -1
@@ -1,4 +1,4 @@
1
- import { a as CredentialInput, l as CredentialScopeLevel, o as CredentialList, y as ResolvedCredentials } from "./index-DAzE8I-g.cjs";
1
+ import { a as CredentialInput, l as CredentialScopeType, o as CredentialList, v as ResolvedCredentials } from "./index-hf0OTB6M.cjs";
2
2
  import { o as AgentTool } from "./index-BByNfhJU.cjs";
3
3
  import { z } from "zod";
4
4
 
@@ -49,13 +49,11 @@ declare function getActionCredentialRequirements(action: Pick<ActionDefinition<u
49
49
  type StepInvocationState = {
50
50
  action: ActionDefinition<unknown, unknown, unknown>;
51
51
  input: unknown | undefined;
52
- chain?: readonly CredentialScopeLevel[];
53
- selection?: Record<string, string>;
52
+ scope?: CredentialScopeType;
54
53
  id?: string;
55
54
  };
56
55
  type StepInvocation<TOutput> = {
57
- scope(...chain: CredentialScopeLevel[]): StepInvocation<TOutput>;
58
- select(instanceIdOrMap: string | Record<string, string>): StepInvocation<TOutput>;
56
+ scope(scope: CredentialScopeType): StepInvocation<TOutput>;
59
57
  run(input: unknown): StepInvocation<TOutput>;
60
58
  stepId(id: string): StepInvocation<TOutput>;
61
59
  then<TResult1 = TOutput, TResult2 = never>(onfulfilled?: ((value: TOutput) => TResult1 | PromiseLike<TResult1>) | null, onrejected?: ((reason: unknown) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
@@ -67,7 +65,13 @@ type WorkflowActionDefinition<TInput, TOutput, TCredentials = Record<string, nev
67
65
  credentials?: TRequirements;
68
66
  run(input: TInput, credentials: TCredentials): Promise<TOutput>;
69
67
  run(input: TInput): StepInvocation<TOutput>;
70
- scope(...chain: CredentialScopeLevel[]): StepInvocation<TOutput>;
68
+ /**
69
+ * Pin this action's credential(s) to a single scope (e.g. `.scope("user")`). Returns a fresh
70
+ * action with the scope baked into its requirements, so it binds identically as a workflow step
71
+ * (`.scope("user").run(input)`) or an agent tool (`tools: [action.scope("user")]`). Without it,
72
+ * resolution is project default → org default.
73
+ */
74
+ scope(scope: CredentialScopeType): WorkflowActionDefinition<TInput, TOutput, TCredentials, TRequirements>;
71
75
  };
72
76
  declare function defineAction<TInputSchema extends z.ZodType, TOutputSchema extends z.ZodType>(def: ActionDefinitionInput<TInputSchema, TOutputSchema, Record<string, never>> & {
73
77
  credentials?: never;
@@ -121,8 +125,7 @@ type AgentRunOptions = {
121
125
  type WorkflowRunHandle = {
122
126
  actionRunner: (action: unknown, input: unknown, options?: {
123
127
  id?: string;
124
- credentialChain?: readonly string[];
125
- credentialSelection?: Record<string, string>;
128
+ credentialScope?: string;
126
129
  }) => Promise<unknown>;
127
130
  agentRunner?: (agent: unknown, input: {
128
131
  message: string;
@@ -137,4 +140,4 @@ declare function registerWorkflowRunGetter(fn: () => WorkflowRunHandle | undefin
137
140
  declare function getWorkflowRunHandle(): WorkflowRunHandle | undefined; //#endregion
138
141
  //#endregion
139
142
  export { runWithRunSignal as C, runOutsideActionExecution as S, isAction as _, ResolveActionCredentialsFn as a, registerWorkflowRunGetter as b, WorkflowActionDefinition as c, createStepInvocation as d, defineAction as f, getWorkflowRunHandle as g, getRunSignal as h, AgentRunOptions as i, WorkflowRunHandle as l, getActionCredentialRequirements as m, ActionDefinition as n, ResolveActionToolOptions as o, executeAction as p, ActionDefinitionInput as r, StepInvocation as s, ActionCredentialConsumer as t, actionCoreSchema as u, isStepInvocation as v, runWithinActionExecution as w, resolveActionTool as x, isWithinActionExecution as y };
140
- //# sourceMappingURL=index-B9hlxKDT.d.cts.map
143
+ //# sourceMappingURL=index-DjLUdkRo.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-DjLUdkRo.d.cts","names":["z","CREDENTIAL_SCOPE_TYPES","Credential","CredentialAuthKind","CredentialInput","CredentialList","CredentialRequirement","CredentialScopeType","DefineCredentialInput","DefineOAuthCredentialInput","DefineStaticCredentialInput","NormalizeCredential","ResolvedCredentials","credential","credentialInputSchema","defineCredential","isCredentialInput","normalizeCredentialList","toCredentialRequirement","AgentTool","actionCoreSchema","ZodString","ZodOptional","core","$ZodTypeInternals","ZodType","ZodCustom","_$_keystrokehq_shared0","ZodArray","$ZodFunctionArgs","$ZodFunctionOut","ZodFunction","$strip","ZodObject","slug","name","description","input","output","credentials","run","ActionMeta","infer","Omit","ActionIO","TInputSchema","TOutputSchema","TCredentials","AbortSignal","Promise","signal","ctx","ACTION","ActionDefinition","TInput","TOutput","Record","ActionDefinitionInput","isAction","value","getActionCredentialRequirements","Pick","action","StepInvocationState","scope","id","StepInvocation","TResult1","TResult2","PromiseLike","stepId","then","onfulfilled","reason","onrejected","isStepInvocation","createStepInvocation","state","WorkflowActionDefinition","TRequirements","defineAction","def","executeAction","ActionCredentialConsumer","kind","ResolveActionCredentialsFn","T","Partial","requirements","consumer","contextOverride","ResolveActionToolOptions","resolveCredentials","resolveActionTool","options","runWithinActionExecution","actionKey","runOutsideActionExecution","fn","isWithinActionExecution","runWithRunSignal","getRunSignal","AgentRunOptions","runPrompt","WorkflowRunHandle","actionRunner","credentialScope","agentRunner","agent","message","sessionId","agentId","llmRunner","prompt","opts","registerWorkflowRunGetter","getWorkflowRunHandle"],"sources":["../../action/dist/index.d.mts"],"mappings":";;;;;;AAE0D;AAAA,cAI5CoB,gBAAAA,EAAkBpB,CAAAA,CAAEiC,SAAAA;EAChCC,IAAAA,EAAMlC,CAAAA,CAAEqB,SAAAA;EACRc,IAAAA,EAAMnC,CAAAA,CAAEsB,WAAAA,CAAYtB,CAAAA,CAAEqB,SAAAA;EACtBe,WAAAA,EAAapC,CAAAA,CAAEsB,WAAAA,CAAYtB,CAAAA,CAAEqB,SAAAA;EAC7BgB,KAAAA,EAAOrC,CAAAA,CAAE0B,SAAAA,CAAU1B,CAAAA,CAAEyB,OAAAA,mBAA0BzB,CAAAA,CAAEuB,IAAAA,CAAKC,iBAAAA,qBAAsCxB,CAAAA,CAAEyB,OAAAA,mBAA0BzB,CAAAA,CAAEuB,IAAAA,CAAKC,iBAAAA;EAC/Hc,MAAAA,EAAQtC,CAAAA,CAAE0B,SAAAA,CAAU1B,CAAAA,CAAEyB,OAAAA,mBAA0BzB,CAAAA,CAAEuB,IAAAA,CAAKC,iBAAAA,qBAAsCxB,CAAAA,CAA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AAA,IAAeC,KAAAA,WAAgBvE,KAAAA;IAC7BwE,OAAAA;IACAC,SAAAA;IACAC,OAAAA;EAAAA,GACCjB,OAAAA,GAAUQ,eAAAA,KAAoBrD,OAAAA;EACjC+D,SAAAA,IAAaE,IAAAA;IACXD,MAAAA;EAAAA,IACEzD,MAAAA,sBAA4BP,OAAAA;AAAAA;AAAAA,iBAEjBkE,yBAAAA,CAA0BjB,EAAuC,QAA7BM,iBAAiB;AAAA,iBACrDY,oBAAAA,CAAAA,GAAwBZ,iBAAiB"}
@@ -9,38 +9,36 @@ declare const CredentialAuthKindSchema: z.ZodEnum<{
9
9
  oauth_managed: "oauth_managed";
10
10
  keystroke: "keystroke";
11
11
  }>;
12
- /** Where a credential instance is stored (`credential_instances.scope_type`). */
13
12
  /**
14
- * Resolution chain step when an action/tool looks up credentials.
15
- * `selection` uses explicit instance ids; other levels map to {@link CredentialScopeType}.
13
+ * Where a credential instance is stored (`credential_instances.scope_type`), and the only thing an
14
+ * action/tool can pin via `.scope(...)`. There is no resolution chain: when no scope is pinned, the
15
+ * resolver tries the project default, then the org default, then throws.
16
16
  */
17
- declare const CredentialScopeLevelSchema: z.ZodEnum<{
17
+ declare const CredentialScopeTypeSchema: z.ZodEnum<{
18
18
  organization: "organization";
19
19
  user: "user";
20
20
  project: "project";
21
- selection: "selection";
22
21
  }>;
23
22
  type CredentialAuthKind = z.infer<typeof CredentialAuthKindSchema>;
24
- type CredentialScopeLevel = z.infer<typeof CredentialScopeLevelSchema>;
25
- declare const CREDENTIAL_SCOPE_LEVELS: ("organization" | "user" | "project" | "selection")[];
26
- /** Default chain when `credential.static(...).scope()` is called with no args. */
27
- declare const DEFAULT_CREDENTIAL_RESOLUTION_CHAIN: readonly ["organization", "project"];
28
- /** Chain levels that map to a persisted scope (not explicit selection). */
23
+ type CredentialScopeType = z.infer<typeof CredentialScopeTypeSchema>;
24
+ declare const CREDENTIAL_SCOPE_TYPES: ("organization" | "user" | "project")[]; //#endregion
25
+ //#region src/credential-instance-label.d.ts
26
+ /** Human-readable app name from a credential slug (e.g. `google-drive` → `Google Drive`). */
29
27
  //#endregion
30
28
  //#region src/schemas/credential-spec.d.ts
31
29
  type CredentialRequirement = {
32
30
  readonly key: string;
33
31
  readonly kind: CredentialAuthKind;
34
- readonly schema: z.ZodType;
35
- readonly chain: readonly CredentialScopeLevel[];
32
+ readonly schema: z.ZodType; /** Pinned scope. When omitted, the resolver uses the project default, then the org default. */
33
+ readonly scope?: CredentialScopeType;
36
34
  readonly tokenField?: string;
37
35
  };
38
36
  type Credential<K extends string = string, S extends z.ZodType = z.ZodType> = {
39
37
  readonly kind: CredentialAuthKind;
40
38
  readonly key: K;
41
39
  readonly schema: S;
42
- readonly tokenField?: string;
43
- scope(...chain: CredentialScopeLevel[]): CredentialRequirement & {
40
+ readonly tokenField?: string; /** Pin this credential to a single scope. Without it, resolution is project default → org default. */
41
+ scope(scope: CredentialScopeType): CredentialRequirement & {
44
42
  key: K;
45
43
  schema: S;
46
44
  };
@@ -174,5 +172,5 @@ type OAuthTokenRefreshRegistry = {
174
172
  }; //#endregion
175
173
  //#region src/types/openapi.d.ts
176
174
  //#endregion
177
- export { defineCredential as C, toCredentialRequirement as E, credentialInputSchema as S, normalizeCredentialList as T, PromptLlmRunOptions as _, CredentialInput as a, WorkflowEventType as b, CredentialRunContext as c, DefineCredentialInput as d, DefineOAuthCredentialInput as f, OAuthTokenRefreshRegistry as g, OAuthTokenAdapter as h, CredentialConsumer as i, CredentialScopeLevel as l, NormalizeCredential as m, Credential as n, CredentialList as o, DefineStaticCredentialInput as p, CredentialAuthKind as r, CredentialRequirement as s, CREDENTIAL_SCOPE_LEVELS as t, DEFAULT_CREDENTIAL_RESOLUTION_CHAIN as u, PromptLlmThinkingLevel as v, isCredentialInput as w, credential as x, ResolvedCredentials as y };
178
- //# sourceMappingURL=index-DAzE8I-g.d.cts.map
175
+ export { isCredentialInput as C, defineCredential as S, toCredentialRequirement as T, PromptLlmThinkingLevel as _, CredentialInput as a, credential as b, CredentialRunContext as c, DefineOAuthCredentialInput as d, DefineStaticCredentialInput as f, PromptLlmRunOptions as g, OAuthTokenRefreshRegistry as h, CredentialConsumer as i, CredentialScopeType as l, OAuthTokenAdapter as m, Credential as n, CredentialList as o, NormalizeCredential as p, CredentialAuthKind as r, CredentialRequirement as s, CREDENTIAL_SCOPE_TYPES as t, DefineCredentialInput as u, ResolvedCredentials as v, normalizeCredentialList as w, credentialInputSchema as x, WorkflowEventType as y };
176
+ //# sourceMappingURL=index-hf0OTB6M.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-hf0OTB6M.d.cts","names":["ZodError","z","DISCOVERY_CONVENTIONS","agents","flat","nested","helpers","workflows","triggers","openapi","ACTIVE_ORG_COOKIE","ACTIVE_ORG_HEADER","RESERVED_ORGANIZATION_SLUGS","Set","OrganizationSlugSchema","ZodString","OrganizationSlug","infer","ClaimableOrganizationSlugSchema","previewOrganizationSlugFromName","name","slugifyOrganizationName","parseOrganizationSlug","input","ProjectSlugSchema","ProjectSlug","slugifyProjectName","parseProjectSlug","PROJECT_PING_TIMEOUT_MS","PROJECT_REACHABILITY_REQUEST_TIMEOUT_MS","PROJECT_REACHABILITY_RETRY_MS","originFromPublicUrl","value","fallback","listenPortFromUrl","url","listenPortFromPublicUrl","toolParameters","ZodType","Record","schema","ROUTE_MANIFEST_REL_PATH","ROUTE_MANIFEST_HTTP_PATH","StoredRouteManifestSkillSchema","ZodOptional","core","$strip","ZodObject","slug","description","moduleFile","StoredRouteManifestSkill","StoredRouteManifestSchema","ZodLiteral","ZodNumber","ZodUnknown","ZodRecord","ZodBoolean","ZodArray","ZodEnum","ZodDiscriminatedUnion","ZodDefault","version","entries","kind","method","path","agentSlug","model","systemPrompt","toolCount","credentialCount","requestSchema","responseSchema","workflowSlug","workflowName","subscribable","attachmentIds","attachmentSchemas","filterSchema","attachmentId","schedule","pollId","GET","POST","PUT","PATCH","DELETE","plugin","skills","integrations","StoredRouteManifest","parseStoredRouteManifest","OAuthScopeOptionSchema","defaultSelected","required","AppAuthKindSchema","oauth","api_key","AppCatalogEntrySchema","id","category","integrationDescription","authKind","oauthScopes","gateway","capabilities","mentions","reactions","full","none","cards","partial","modals","streaming","drafts","native","buffered","dms","supportedModes","mention","all","dm","resourceNoun","singular","plural","supportsChannelDirectory","webhookPathHint","docsUrl","tagline","ListAppsResponseSchema","apps","OAuthScopeOption","AppAuthKind","AppCatalogEntry","ListAppsResponse","ChannelPlatformKeySchema","slack","ChannelReactionSupportSchema","ChannelCardSupportSchema","ChannelStreamingSupportSchema","ChannelCapabilitiesSchema","ChannelListenModeSchema","ChannelBindingKindSchema","public","private","group","space","AppGatewaySchema","ChannelPlatformSchema","key","appLogoId","fallbackDomain","credentialFields","label","placeholder","helpText","type","password","text","textarea","prefix","ChannelBindingSchema","channelId","channelName","channelKind","mode","subscribeOnMention","createdAt","updatedAt","ChannelConnectionSchema","platform","agentId","accountLabel","accountId","connectedAt","bindings","ChannelDirectoryEntrySchema","memberCount","isArchived","ChannelConnectionListResponseSchema","connections","ChannelDirectoryListResponseSchema","channels","ChannelAccountMetadataSchema","teamName","ChannelAccountSchema","ChannelAccountListResponseSchema","accounts","NewChannelBindingInputSchema","BindChannelBodySchema","binding","UpdateChannelBindingBodySchema","patch","ChannelPlatformKey","ChannelCapabilities","ChannelListenMode","ChannelBindingKind","AppGateway","ChannelPlatform","ChannelBinding","ChannelConnection","ChannelDirectoryEntry","ChannelAccount","ChannelAccountMetadata","NewChannelBindingInput","BindChannelBody","UpdateChannelBindingBody","BindChannelInput","UpdateChannelBindingInput","bindingId","RemoveChannelBindingInput","CredentialAuthKindSchema","oauth_managed","keystroke","CredentialScopeTypeSchema","organization","user","project","CredentialAuthKind","CredentialScopeType","CREDENTIAL_AUTH_KINDS","CREDENTIAL_SCOPE_TYPES","displayCredentialAppName","appId","buildCredentialInstanceLabel","scopeType","appName","projectName","options","resolveUniqueCredentialInstanceLabel","Iterable","baseLabel","takenLabels","disambiguator","AppCredentialScopeSchema","AppCredentialConnectionKindSchema","manual","OAuthPermissionModeSchema","default","restricted","AppCredentialSummarySchema","ZodNullable","scope","lastRefreshedAt","projectId","status","lastUsedAt","isDefault","connectionKind","ownerUserId","ownerName","ownerAvatarUrl","grantedScopes","credentialKeys","keyPreviews","expiresAt","AppCredentialScope","AppCredentialConnectionKind","OAuthPermissionMode","AppCredentialSummary","CredentialTargetsFieldsSchema","projects","createOrganizationCredential","createUserProvidedCredential","CredentialTargetsFields","StartOAuthConnectionInputSchema","scopes","permissionMode","StartOAuthConnectionInput","StartOAuthConnectionResultSchema","connected","redirecting","authorizeUrl","StartOAuthConnectionResult","CreateCredentialsRequestSchema","CreateCredentialsRequest","UpdateCredentialRequestSchema","UpdateCredentialRequest","ListCredentialsResponseSchema","credentials","GetCredentialResponseSchema","credential","CreateCredentialsResponseSchema","ListCredentialsResponse","GetCredentialResponse","CreateCredentialsResponse","McpConnectionStatusSchema","INITIATED","ACTIVE","EXPIRED","FAILED","INACTIVE","REVOKED","McpConnectionStatus","McpAppSchema","connectionId","McpApp","ListMcpAppsResponseSchema","mcpEntityId","scopeId","KeystrokeCredentialSchema","entityId","instanceId","KeystrokeCredential","ExecuteKeystrokeToolRequestSchema","app","tool","arguments","ExecuteKeystrokeToolRequest","TeamRequestTypeSchema","contact","SubmitTeamRequestRequestSchema","message","SubmitTeamRequestResponseSchema","ok","TeamRequestType","SubmitTeamRequestRequest","SubmitTeamRequestResponse","CredentialRequirement","tokenField","Credential","K","S","CredentialInput","CredentialList","isCredentialInput","credentialInputSchema","ZodCustom","NormalizeCredential","T","ResolvedCredentials","R","staticCredential","ZodTypeAny","oauthCredential","accessToken","F","keystrokeCredential","static","DefineStaticCredentialInput","fields","DefineOAuthCredentialInput","DefineKeystrokeCredentialInput","DefineCredentialInput","defineCredential","ReturnType","normalizeCredentialList","list","toCredentialRequirement","item","ValidationErrorDetailSchema","ValidationErrorDetail","ErrorResponseCodeSchema","ZodUnion","slug_taken","slug_reserved","slug_invalid","needs_org_selection","ErrorResponseCode","ErrorResponseSchema","error","code","details","ErrorResponse","validationErrorResponse","summary","parseErrorResponse","body","PromptInputSchema","sessionId","subscriptionId","context","orgId","userId","userIds","selection","thinkingLevel","off","minimal","low","medium","high","xhigh","PromptInput","PromptResponseSchema","messages","PromptResponse","SkipResponseSchema","skipped","HealthResponseSchema","HealthResponse","PlatformInfoResponseSchema","service","PlatformInfoResponse","ConnectProviderSchema","requiresAuth","ConnectProvider","ConnectProvidersResponseSchema","providers","ConnectProvidersResponse","ConnectAuthorizeUrlResponseSchema","ConnectAuthorizeUrlResponse","QueuedRunResponseSchema","runId","QueuedRunResponse","QueuedAgentPromptResponseSchema","QueuedAgentPromptResponse","parsePromptInput","PollRunTargetSchema","attachments","PollRunTarget","PollRunRequestSchema","PollRunRequest","PollAttachmentResultSchema","attachmentKey","workflowKey","queued","PollAttachmentResult","PollRunMultiResponseSchema","results","PollRunMultiResponse","PollRunResponseSchema","PollRunResponse","parsePollRunRequest","RunSourceKindSchema","agent","trigger","workflow","api","RunSourceKind","RunSourceSchema","RunSource","AgentSessionSummarySchema","running","completed","failed","canceled","source","sourceId","messageCount","AgentSessionSummary","AgentSessionRecordSchema","parentSpanId","AgentSessionRecord","AgentSessionListQuerySchema","ZodCoercedNumber","limit","cursor","AgentSessionListQuery","AgentSessionListResponseSchema","items","nextCursor","AgentSessionListResponse","AgentSessionDetailIncludeSchema","events","trace","AgentSessionDetailQuerySchema","include","AgentSessionDetailQuery","parseAgentSessionDetailInclude","AgentSessionDetailInclude","GatewaySessionDetailSchema","threadId","attachmentSlug","GatewaySessionDetail","AgentEventSchema","seq","eventType","payload","AgentEvent","AgentSessionDetailResponseSchema","session","traceId","triggerType","triggerRunId","route","sourcePath","gatewayAttachmentId","gatewayAttachmentKey","spans","refId","startedAt","finishedAt","metadata","logs","spanId","level","data","AgentSessionDetailResponse","GatewayAttachmentRecordSchema","agentKey","teamId","channel","credentialKey","channelIds","registeredAt","GatewayAttachmentListResponseSchema","UpsertGatewayAttachmentBodySchema","AgentListItemSchema","AgentListResponseSchema","GatewayAttachmentRecord","GatewayAttachmentListResponse","UpsertGatewayAttachmentBody","AgentListItem","AgentListResponse","WorkflowEventTypeSchema","run_started","step_completed","step_failed","step_retrying","sleep_scheduled","sleep_completed","hook_created","hook_resumed","run_completed","run_failed","run_canceled","WorkflowEventType","WorkflowRunSummarySchema","pending","sleeping","waiting_hook","cron","webhook","poll","retry","triggeredAt","sourceKind","WorkflowRunSummary","WorkflowRunRecordSchema","parentWorkflowRunId","output","WorkflowRunRecord","WorkflowRunListQuerySchema","WorkflowRunListQuery","WorkflowRunListResponseSchema","WorkflowRunListResponse","WorkflowRunDetailIncludeSchema","steps","WorkflowRunDetailQuerySchema","WorkflowRunDetailQuery","parseWorkflowRunDetailInclude","WorkflowRunDetailInclude","TriggerRunDetailSchema","TriggerRunDetail","TraceResponseSchema","TraceResponse","WorkflowRunDetailResponseSchema","run","actionKey","completedAt","WorkflowRunDetailResponse","HistoryRunKindSchema","HistoryRunStatusSchema","HistoryRunActorSchema","avatarUrl","HistoryRunUsageLineItemSchema","amountUsd","HistoryRunUsageSchema","runDurationMs","lineItems","totalExcludingDurationUsd","HistoryRunSchema","resourceKey","resourceId","resourceName","timeInQueueMs","durationMs","triggerLabel","triggerRaw","ranAs","modelsUsed","otherServicesUsed","totalCostUsd","stepCount","HistoryTraceSpanSchema","HistoryTraceLogSchema","HistoryTraceTriggerSchema","HistoryTraceGatewaySchema","HistoryTraceSchema","HistoryWorkflowStepSchema","HistoryWorkflowRunDetailSchema","usage","HistoryAgentSessionDetailSchema","HistoryRunDetailSchema","HistoryRunListQuerySchema","HistoryRunListResponseSchema","HistoryRunDetailResponseSchema","HistoryRunCancelResponseSchema","HistoryRunKind","HistoryRunStatus","HistoryRunActor","HistoryRunUsageLineItem","HistoryRunUsage","HistoryRun","HistoryTraceSpan","HistoryTraceLog","HistoryTraceTrigger","HistoryTraceGateway","HistoryTrace","HistoryWorkflowStep","HistoryWorkflowRunDetail","HistoryAgentSessionDetail","HistoryRunDetail","HistoryRunListQuery","WorkflowSubscriptionRecordSchema","enabled","WorkflowSubscriptionListResponseSchema","subscriptions","UpsertWorkflowSubscriptionBodySchema","CredentialInstanceRecordSchema","CredentialInstanceListResponseSchema","instances","CreateCredentialInstanceBodySchema","UpdateCredentialInstanceBodySchema","WorkflowSubscriptionRecord","CreateCredentialInstanceBody","UpdateCredentialInstanceBody","TriggerRunWorkflowSummarySchema","TriggerRunWorkflowSummary","TriggerRunSummarySchema","workflowRun","agentSession","TriggerRunSummary","TriggerRunRecordSchema","TriggerRunRecord","TriggerRunListQuerySchema","TriggerRunListQuery","TriggerRunListResponseSchema","TriggerRunListResponse","TriggerRunDetailIncludeSchema","TriggerRunDetailQuerySchema","TriggerRunDetailQuery","parseTriggerRunDetailInclude","TriggerRunDetailInclude","TriggerRunDetailResponseSchema","workflowRuns","agentSessions","TriggerRunDetailResponse","TriggerTypeSchema","TriggerListItemSchema","webhookUrl","targetKind","TriggerListResponseSchema","TriggerListQuerySchema","endpoint","TriggerDetailResponseSchema","TriggerListItem","TriggerListResponse","TriggerListQuery","TriggerDetailResponse","OrganizationMemberRoleSchema","admin","owner","builder","OrganizationMemberRole","OrganizationMemberStatusSchema","invited","active","rejected","suspended","OrganizationMemberStatus","InvitableOrganizationMemberRoleSchema","InvitableOrganizationMemberRole","OrganizationMemberSchema","email","role","joinedAt","lastActiveAt","OrganizationMember","ListOrganizationMembersResponseSchema","members","ListOrganizationMembersResponse","InviteOrganizationMembersRequestSchema","emails","InviteOrganizationMembersRequest","InviteOrganizationMemberResultStatusSchema","sent","already_member","invalid","InviteOrganizationMemberResultStatus","InviteOrganizationMembersResponseSchema","invitationId","InviteOrganizationMembersResponse","UpdateOrganizationMemberRequestSchema","UpdateOrganizationMemberRequest","UpdateOrganizationMemberResponseSchema","member","UpdateOrganizationMemberResponse","OrganizationInvitationSchema","organizationName","organizationSlug","invitedByName","invitedByEmail","OrganizationInvitation","ListOrganizationInvitationsResponseSchema","invitations","ListOrganizationInvitationsResponse","AcceptOrganizationInvitationResponseSchema","AcceptOrganizationInvitationResponse","DeclineOrganizationInvitationResponseSchema","success","DeclineOrganizationInvitationResponse","organizationInvitationAcceptPath","ApiKeyCreatorSchema","deleted","ApiKeyCreator","ApiKeySummarySchema","keyPreview","createdBy","isCreatedByCurrentUser","ApiKeySummary","ListApiKeysResponseSchema","apiKeys","ListApiKeysResponse","CreateApiKeyRequestSchema","CreateApiKeyRequest","CreateApiKeyResponseSchema","secret","CreateApiKeyResponse","ProjectUserRoleSchema","ProjectUserRole","ProjectInvitePermissionSchema","ProjectInvitePermission","ProjectMemberStatusSchema","ProjectMemberStatus","ProjectMemberSchema","image","isCurrentUser","ProjectMember","ListProjectMembersResponseSchema","ListProjectMembersResponse","InviteProjectMembersRequestSchema","InviteProjectMembersRequest","InviteProjectMemberResultStatusSchema","added","not_org_member","InviteProjectMemberResultStatus","InviteProjectMembersResponseSchema","InviteProjectMembersResponse","UpdateProjectMemberRequestSchema","UpdateProjectMemberRequest","UpdateProjectMemberResponseSchema","UpdateProjectMemberResponse","ProjectSettingsSchema","defaultRole","invitePermission","ProjectSettings","UpdateProjectSettingsRequestSchema","UpdateProjectSettingsRequest","ProjectSettingsResponseSchema","settings","ProjectSettingsResponse","UserAvatarSchema","ZodURL","UserAvatar","UserAvatarPatchSchema","storageKey","UserAvatarPatch","PresignUserAvatarRequestSchema","contentType","PresignUserAvatarRequest","PresignUserAvatarResponseSchema","uploadUrl","PresignUserAvatarResponse","UserInterfaceThemeSchema","system","light","dark","UserInterfaceTheme","UserSurfaceContrastSchema","on","UserSurfaceContrast","UserWorkspaceLayoutModeSchema","linear","UserWorkspaceLayoutMode","UserWorkspaceFontSizeSchema","large","UserWorkspaceFontSize","UserSidebarNavIconVisibilitySchema","hidden","visible","UserSidebarNavIconVisibility","UserSidebarFooterChatRowVisibilitySchema","UserSidebarFooterChatRowVisibility","UserWorkspaceFavoriteKindSchema","skill","UserWorkspaceFavoriteKind","UserWorkspaceFavoriteSchema","UserWorkspaceFavorite","UserSidebarPreferencesSchema","navIconVisibility","footerChatRowVisibility","hiddenNavItemIds","topNavItemOrderIds","workspaceNavItemOrderIds","UserSidebarPreferences","UserPreferencesSchema","interfaceTheme","surfaceContrast","layoutMode","fontSize","sidebar","favorites","projectOrderIds","projectDotColors","onboardingTabVisible","UserPreferences","UserSidebarPreferencesPatchSchema","UserPreferencesPatchSchema","UserPreferencesPatch","DEFAULT_USER_PREFERENCES","normalizeUserPreferences","mergeUserPreferences","current","OrganizationLogoVariantSchema","OrganizationLogoVariant","DEFAULT_LOGO_HEIGHT_PX","MIN_LOGO_HEIGHT_PX","MAX_LOGO_HEIGHT_PX","OrganizationSidebarBrandingSchema","customLogoEnabled","customLogoExplicitlyDisabled","logoLightUrl","logoDarkUrl","logoHeightPx","OrganizationSidebarBranding","OrganizationSidebarBrandingPatchSchema","logoLightStorageKey","logoDarkStorageKey","OrganizationSidebarBrandingPatch","PresignOrgLogoRequestSchema","variant","PresignOrgLogoRequest","PresignOrgLogoResponseSchema","PresignOrgLogoResponse","DEFAULT_ORGANIZATION_SIDEBAR_BRANDING","normalizeLogoUrl","normalizeOrganizationSidebarBranding","mergeOrganizationSidebarBranding","Partial","ORGANIZATION_SLUG_TAKEN_MESSAGE","PROJECT_SLUG_TAKEN_MESSAGE","OrganizationSlugErrorCodeSchema","OrganizationSlugErrorCode","SlugAvailabilityReasonSchema","taken","reserved","SlugAvailabilityReason","SlugAvailabilityResponseSchema","available","reason","suggestion","SlugAvailabilityResponse","SlugAvailabilityQuerySchema","excludeOrganizationId","SlugAvailabilityQuery","ProjectSlugAvailabilityReasonSchema","ProjectSlugAvailabilityReason","ProjectSlugAvailabilityResponseSchema","ProjectSlugAvailabilityResponse","ProjectSlugAvailabilityQuerySchema","excludeProjectId","ProjectSlugAvailabilityQuery","validateProjectSlug","valid","validateClaimableOrganizationSlug","organizationSlugErrorCodeFromMessage","ProjectStatusSchema","inactive","starting","ProjectStatus","OrganizationUserRoleSchema","OrganizationUserRole","OrganizationSchema","Organization","ProjectSchema","organizationId","baseUrl","runtimeId","lastError","Project","UserOrganizationSchema","UserOrganization","CurrentOrganizationResponseSchema","CurrentOrganizationResponse","ActiveOrganizationResponseSchema","ActiveOrganizationResponse","ListOrganizationsResponseSchema","organizations","ListOrganizationsResponse","CreateOrganizationRequestSchema","UpdateOrganizationRequestSchema","UpdateOrganizationRequest","CreateOrganizationRequest","CreateOrganizationResponseSchema","CreateOrganizationResponse","ListProjectsResponseSchema","ListProjectsResponse","ProjectListMetricsSchema","agentCount","workflowCount","skillCount","lastDeploymentAt","ProjectListMetrics","ListProjectMetricsResponseSchema","metrics","ListProjectMetricsResponse","CreateProjectRequestSchema","CreateProjectRequest","UpdateProjectRequestSchema","UpdateProjectRequest","CreateProjectResponseSchema","CreateProjectResponse","ProjectResponseSchema","ProjectResponse","ProjectReachabilityResponseSchema","reachable","ProjectReachabilityResponse","parseCreateOrganizationRequest","ProjectArtifactStatusSchema","ready","ProjectArtifactStatus","ProjectArtifactSchema","ProjectArtifact","CreateProjectArtifactResponseSchema","artifact","expiresInSeconds","CreateProjectArtifactResponse","CompleteProjectArtifactResponseSchema","CompleteProjectArtifactResponse","DownloadActiveProjectArtifactResponse","DownloadActiveProjectArtifactResponseSchema","artifactId","downloadUrl","ProjectDeploymentSchema","deployedBy","deployedByEmail","deployedByAvatarUrl","ProjectDeployment","ListProjectDeploymentsResponseSchema","deployments","ListProjectDeploymentsResponse","PLATFORM_RESOURCE_UNSUPPORTED_TEXT","PLATFORM_RESOURCE_UNSUPPORTED_TIMESTAMP","PLATFORM_RESOURCE_UNSUPPORTED_COUNT","AgentSummarySchema","lastRunAt","AgentSummary","WorkflowSummarySchema","WorkflowSummary","SkillSummarySchema","SkillSummary","AgentSummaryListResponseSchema","AgentSummaryDetailResponseSchema","AgentSummaryListResponse","AgentSummaryDetailResponse","WorkflowSummaryListResponseSchema","WorkflowSummaryDetailResponseSchema","WorkflowSummaryListResponse","WorkflowSummaryDetailResponse","SkillSummaryListResponseSchema","SkillSummaryDetailResponseSchema","SkillSummaryListResponse","SkillSummaryDetailResponse","RecentResourceKindSchema","RecentResourceSourceSchema","shared","owned","RecentResourceSchema","resourceKind","lastOpenedAt","lastModifiedAt","RecentResourceKind","RecentResourceSource","RecentResource","RecentResourceListResponseSchema","RecentResourceListResponse","ProjectFileSummarySchema","hash","ProjectFileSummary","ProjectSourceResourceRefSchema","ProjectSourceResourceRef","ProjectSourceResourcesSchema","ProjectSourceResources","ListProjectFilesResponseSchema","files","resources","ListProjectFilesResponse","ProjectSourceFileSchema","contents","ProjectSourceFile","SourceBlobRefSchema","size","SourceBlobRef","PresignProjectSourceRequestSchema","blobs","PresignProjectSourceRequest","PresignedBlobUploadSchema","PresignedBlobUpload","PresignProjectSourceResponseSchema","uploads","PresignProjectSourceResponse","ManifestFileRefSchema","ManifestFileRef","UploadProjectSourceManifestRequestSchema","UploadProjectSourceManifestRequest","UploadProjectSourceResponseSchema","fileCount","UploadProjectSourceResponse","StoredManifestFileSchema","StoredManifestFile","StoredProjectSourceManifestSchema","generatedAt","StoredProjectSourceManifest","projectFileLanguage","projectFileId","PromptLlmThinkingLevel","PromptLlmRunOptions","prompt","outputSchema","temperature","maxTokens","stepId","CredentialRunContext","CredentialConsumer","CredentialSelectionOption","OAuthTokenAdapter","Promise","getAccessToken","OAuthAccessTokenRefreshParams","clientId","clientSecret","refreshToken","OAuthAccessTokenRefreshResult","Date","accessTokenExpiresAt","OAuthAccessTokenRefresher","params","OAuthTokenRefreshRegistry","register","appKey","refresher","get","DiscoveredModule","file","KeystrokeSchedule","OrganizationRow","ProjectRow","UserOrganizationRow","mapOrganization","row","mapProject","mapUserOrganization","OrganizationMemberRow","OrganizationInvitationRow","mapOrganizationMember","mapOrganizationInvitation","ProjectMemberRecord","mapProjectMember","mapProjectSettings","defaultMemberRole","ProjectArtifactRow","mapProjectArtifact","ProjectDeploymentRow","deployedByName","mapProject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A;EAAAA;AAAAA;AAAAA,KAGCurB,6BAAAA;EACHC,QAAAA;EACAC,YAAAA;EACAC,YAAAA;AAAAA;AAAAA,KAEGC,6BAAAA;EACH3rB,WAAAA;EACA0rB,YAAAA;EACAG,oBAAAA,GAAuBD,IAAI;AAAA;AAAA,KAExBE,yBAAAA,IAA6BC,MAAAA,EAAQR,6BAAAA,KAAkCF,OAAAA,CAAQM,6BAAAA;AAAAA,KAC/EK,yBAAAA;EACHC,QAAAA,CAASC,MAAAA,UAAgBC,SAAAA,EAAWL,yBAAAA;EACpCM,GAAAA,CAAIF,MAAAA,WAAiBJ,yBAAyB;AAAA;AAAA"}
@@ -9,38 +9,36 @@ declare const CredentialAuthKindSchema: z.ZodEnum<{
9
9
  oauth_managed: "oauth_managed";
10
10
  keystroke: "keystroke";
11
11
  }>;
12
- /** Where a credential instance is stored (`credential_instances.scope_type`). */
13
12
  /**
14
- * Resolution chain step when an action/tool looks up credentials.
15
- * `selection` uses explicit instance ids; other levels map to {@link CredentialScopeType}.
13
+ * Where a credential instance is stored (`credential_instances.scope_type`), and the only thing an
14
+ * action/tool can pin via `.scope(...)`. There is no resolution chain: when no scope is pinned, the
15
+ * resolver tries the project default, then the org default, then throws.
16
16
  */
17
- declare const CredentialScopeLevelSchema: z.ZodEnum<{
17
+ declare const CredentialScopeTypeSchema: z.ZodEnum<{
18
18
  organization: "organization";
19
19
  user: "user";
20
20
  project: "project";
21
- selection: "selection";
22
21
  }>;
23
22
  type CredentialAuthKind = z.infer<typeof CredentialAuthKindSchema>;
24
- type CredentialScopeLevel = z.infer<typeof CredentialScopeLevelSchema>;
25
- declare const CREDENTIAL_SCOPE_LEVELS: ("organization" | "user" | "project" | "selection")[];
26
- /** Default chain when `credential.static(...).scope()` is called with no args. */
27
- declare const DEFAULT_CREDENTIAL_RESOLUTION_CHAIN: readonly ["organization", "project"];
28
- /** Chain levels that map to a persisted scope (not explicit selection). */
23
+ type CredentialScopeType = z.infer<typeof CredentialScopeTypeSchema>;
24
+ declare const CREDENTIAL_SCOPE_TYPES: ("organization" | "user" | "project")[]; //#endregion
25
+ //#region src/credential-instance-label.d.ts
26
+ /** Human-readable app name from a credential slug (e.g. `google-drive` → `Google Drive`). */
29
27
  //#endregion
30
28
  //#region src/schemas/credential-spec.d.ts
31
29
  type CredentialRequirement = {
32
30
  readonly key: string;
33
31
  readonly kind: CredentialAuthKind;
34
- readonly schema: z.ZodType;
35
- readonly chain: readonly CredentialScopeLevel[];
32
+ readonly schema: z.ZodType; /** Pinned scope. When omitted, the resolver uses the project default, then the org default. */
33
+ readonly scope?: CredentialScopeType;
36
34
  readonly tokenField?: string;
37
35
  };
38
36
  type Credential<K extends string = string, S extends z.ZodType = z.ZodType> = {
39
37
  readonly kind: CredentialAuthKind;
40
38
  readonly key: K;
41
39
  readonly schema: S;
42
- readonly tokenField?: string;
43
- scope(...chain: CredentialScopeLevel[]): CredentialRequirement & {
40
+ readonly tokenField?: string; /** Pin this credential to a single scope. Without it, resolution is project default → org default. */
41
+ scope(scope: CredentialScopeType): CredentialRequirement & {
44
42
  key: K;
45
43
  schema: S;
46
44
  };
@@ -174,5 +172,5 @@ type OAuthTokenRefreshRegistry = {
174
172
  }; //#endregion
175
173
  //#region src/types/openapi.d.ts
176
174
  //#endregion
177
- export { defineCredential as C, toCredentialRequirement as E, credentialInputSchema as S, normalizeCredentialList as T, PromptLlmRunOptions as _, CredentialInput as a, WorkflowEventType as b, CredentialRunContext as c, DefineCredentialInput as d, DefineOAuthCredentialInput as f, OAuthTokenRefreshRegistry as g, OAuthTokenAdapter as h, CredentialConsumer as i, CredentialScopeLevel as l, NormalizeCredential as m, Credential as n, CredentialList as o, DefineStaticCredentialInput as p, CredentialAuthKind as r, CredentialRequirement as s, CREDENTIAL_SCOPE_LEVELS as t, DEFAULT_CREDENTIAL_RESOLUTION_CHAIN as u, PromptLlmThinkingLevel as v, isCredentialInput as w, credential as x, ResolvedCredentials as y };
178
- //# sourceMappingURL=index-DAzE8I-g.d.mts.map
175
+ export { isCredentialInput as C, defineCredential as S, toCredentialRequirement as T, PromptLlmThinkingLevel as _, CredentialInput as a, credential as b, CredentialRunContext as c, DefineOAuthCredentialInput as d, DefineStaticCredentialInput as f, PromptLlmRunOptions as g, OAuthTokenRefreshRegistry as h, CredentialConsumer as i, CredentialScopeType as l, OAuthTokenAdapter as m, Credential as n, CredentialList as o, NormalizeCredential as p, CredentialAuthKind as r, CredentialRequirement as s, CREDENTIAL_SCOPE_TYPES as t, DefineCredentialInput as u, ResolvedCredentials as v, normalizeCredentialList as w, credentialInputSchema as x, WorkflowEventType as y };
176
+ //# sourceMappingURL=index-hf0OTB6M.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-hf0OTB6M.d.mts","names":["ZodError","z","DISCOVERY_CONVENTIONS","agents","flat","nested","helpers","workflows","triggers","openapi","ACTIVE_ORG_COOKIE","ACTIVE_ORG_HEADER","RESERVED_ORGANIZATION_SLUGS","Set","OrganizationSlugSchema","ZodString","OrganizationSlug","infer","ClaimableOrganizationSlugSchema","previewOrganizationSlugFromName","name","slugifyOrganizationName","parseOrganizationSlug","input","ProjectSlugSchema","ProjectSlug","slugifyProjectName","parseProjectSlug","PROJECT_PING_TIMEOUT_MS","PROJECT_REACHABILITY_REQUEST_TIMEOUT_MS","PROJECT_REACHABILITY_RETRY_MS","originFromPublicUrl","value","fallback","listenPortFromUrl","url","listenPortFromPublicUrl","toolParameters","ZodType","Record","schema","ROUTE_MANIFEST_REL_PATH","ROUTE_MANIFEST_HTTP_PATH","StoredRouteManifestSkillSchema","ZodOptional","core","$strip","ZodObject","slug","description","moduleFile","StoredRouteManifestSkill","StoredRouteManifestSchema","ZodLiteral","ZodNumber","ZodUnknown","ZodRecord","ZodBoolean","ZodArray","ZodEnum","ZodDiscriminatedUnion","ZodDefault","version","entries","kind","method","path","agentSlug","model","systemPrompt","toolCount","credentialCount","requestSchema","responseSchema","workflowSlug","workflowName","subscribable","attachmentIds","attachmentSchemas","filterSchema","attachmentId","schedule","pollId","GET","POST","PUT","PATCH","DELETE","plugin","skills","integrations","StoredRouteManifest","parseStoredRouteManifest","OAuthScopeOptionSchema","defaultSelected","required","AppAuthKindSchema","oauth","api_key","AppCatalogEntrySchema","id","category","integrationDescription","authKind","oauthScopes","gateway","capabilities","mentions","reactions","full","none","cards","partial","modals","streaming","drafts","native","buffered","dms","supportedModes","mention","all","dm","resourceNoun","singular","plural","supportsChannelDirectory","webhookPathHint","docsUrl","tagline","ListAppsResponseSchema","apps","OAuthScopeOption","AppAuthKind","AppCatalogEntry","ListAppsResponse","ChannelPlatformKeySchema","slack","ChannelReactionSupportSchema","ChannelCardSupportSchema","ChannelStreamingSupportSchema","ChannelCapabilitiesSchema","ChannelListenModeSchema","ChannelBindingKindSchema","public","private","group","space","AppGatewaySchema","ChannelPlatformSchema","key","appLogoId","fallbackDomain","credentialFields","label","placeholder","helpText","type","password","text","textarea","prefix","ChannelBindingSchema","channelId","channelName","channelKind","mode","subscribeOnMention","createdAt","updatedAt","ChannelConnectionSchema","platform","agentId","accountLabel","accountId","connectedAt","bindings","ChannelDirectoryEntrySchema","memberCount","isArchived","ChannelConnectionListResponseSchema","connections","ChannelDirectoryListResponseSchema","channels","ChannelAccountMetadataSchema","teamName","ChannelAccountSchema","ChannelAccountListResponseSchema","accounts","NewChannelBindingInputSchema","BindChannelBodySchema","binding","UpdateChannelBindingBodySchema","patch","ChannelPlatformKey","ChannelCapabilities","ChannelListenMode","ChannelBindingKind","AppGateway","ChannelPlatform","ChannelBinding","ChannelConnection","ChannelDirectoryEntry","ChannelAccount","ChannelAccountMetadata","NewChannelBindingInput","BindChannelBody","UpdateChannelBindingBody","BindChannelInput","UpdateChannelBindingInput","bindingId","RemoveChannelBindingInput","CredentialAuthKindSchema","oauth_managed","keystroke","CredentialScopeTypeSchema","organization","user","project","CredentialAuthKind","CredentialScopeType","CREDENTIAL_AUTH_KINDS","CREDENTIAL_SCOPE_TYPES","displayCredentialAppName","appId","buildCredentialInstanceLabel","scopeType","appName","projectName","options","resolveUniqueCredentialInstanceLabel","Iterable","baseLabel","takenLabels","disambiguator","AppCredentialScopeSchema","AppCredentialConnectionKindSchema","manual","OAuthPermissionModeSchema","default","restricted","AppCredentialSummarySchema","ZodNullable","scope","lastRefreshedAt","projectId","status","lastUsedAt","isDefault","connectionKind","ownerUserId","ownerName","ownerAvatarUrl","grantedScopes","credentialKeys","keyPreviews","expiresAt","AppCredentialScope","AppCredentialConnectionKind","OAuthPermissionMode","AppCredentialSummary","CredentialTargetsFieldsSchema","projects","createOrganizationCredential","createUserProvidedCredential","CredentialTargetsFields","StartOAuthConnectionInputSchema","scopes","permissionMode","StartOAuthConnectionInput","StartOAuthConnectionResultSchema","connected","redirecting","authorizeUrl","StartOAuthConnectionResult","CreateCredentialsRequestSchema","CreateCredentialsRequest","UpdateCredentialRequestSchema","UpdateCredentialRequest","ListCredentialsResponseSchema","credentials","GetCredentialResponseSchema","credential","CreateCredentialsResponseSchema","ListCredentialsResponse","GetCredentialResponse","CreateCredentialsResponse","McpConnectionStatusSchema","INITIATED","ACTIVE","EXPIRED","FAILED","INACTIVE","REVOKED","McpConnectionStatus","McpAppSchema","connectionId","McpApp","ListMcpAppsResponseSchema","mcpEntityId","scopeId","KeystrokeCredentialSchema","entityId","instanceId","KeystrokeCredential","ExecuteKeystrokeToolRequestSchema","app","tool","arguments","ExecuteKeystrokeToolRequest","TeamRequestTypeSchema","contact","SubmitTeamRequestRequestSchema","message","SubmitTeamRequestResponseSchema","ok","TeamRequestType","SubmitTeamRequestRequest","SubmitTeamRequestResponse","CredentialRequirement","tokenField","Credential","K","S","CredentialInput","CredentialList","isCredentialInput","credentialInputSchema","ZodCustom","NormalizeCredential","T","ResolvedCredentials","R","staticCredential","ZodTypeAny","oauthCredential","accessToken","F","keystrokeCredential","static","DefineStaticCredentialInput","fields","DefineOAuthCredentialInput","DefineKeystrokeCredentialInput","DefineCredentialInput","defineCredential","ReturnType","normalizeCredentialList","list","toCredentialRequirement","item","ValidationErrorDetailSchema","ValidationErrorDetail","ErrorResponseCodeSchema","ZodUnion","slug_taken","slug_reserved","slug_invalid","needs_org_selection","ErrorResponseCode","ErrorResponseSchema","error","code","details","ErrorResponse","validationErrorResponse","summary","parseErrorResponse","body","PromptInputSchema","sessionId","subscriptionId","context","orgId","userId","userIds","selection","thinkingLevel","off","minimal","low","medium","high","xhigh","PromptInput","PromptResponseSchema","messages","PromptResponse","SkipResponseSchema","skipped","HealthResponseSchema","HealthResponse","PlatformInfoResponseSchema","service","PlatformInfoResponse","ConnectProviderSchema","requiresAuth","ConnectProvider","ConnectProvidersResponseSchema","providers","ConnectProvidersResponse","ConnectAuthorizeUrlResponseSchema","ConnectAuthorizeUrlResponse","QueuedRunResponseSchema","runId","QueuedRunResponse","QueuedAgentPromptResponseSchema","QueuedAgentPromptResponse","parsePromptInput","PollRunTargetSchema","attachments","PollRunTarget","PollRunRequestSchema","PollRunRequest","PollAttachmentResultSchema","attachmentKey","workflowKey","queued","PollAttachmentResult","PollRunMultiResponseSchema","results","PollRunMultiResponse","PollRunResponseSchema","PollRunResponse","parsePollRunRequest","RunSourceKindSchema","agent","trigger","workflow","api","RunSourceKind","RunSourceSchema","RunSource","AgentSessionSummarySchema","running","completed","failed","canceled","source","sourceId","messageCount","AgentSessionSummary","AgentSessionRecordSchema","parentSpanId","AgentSessionRecord","AgentSessionListQuerySchema","ZodCoercedNumber","limit","cursor","AgentSessionListQuery","AgentSessionListResponseSchema","items","nextCursor","AgentSessionListResponse","AgentSessionDetailIncludeSchema","events","trace","AgentSessionDetailQuerySchema","include","AgentSessionDetailQuery","parseAgentSessionDetailInclude","AgentSessionDetailInclude","GatewaySessionDetailSchema","threadId","attachmentSlug","GatewaySessionDetail","AgentEventSchema","seq","eventType","payload","AgentEvent","AgentSessionDetailResponseSchema","session","traceId","triggerType","triggerRunId","route","sourcePath","gatewayAttachmentId","gatewayAttachmentKey","spans","refId","startedAt","finishedAt","metadata","logs","spanId","level","data","AgentSessionDetailResponse","GatewayAttachmentRecordSchema","agentKey","teamId","channel","credentialKey","channelIds","registeredAt","GatewayAttachmentListResponseSchema","UpsertGatewayAttachmentBodySchema","AgentListItemSchema","AgentListResponseSchema","GatewayAttachmentRecord","GatewayAttachmentListResponse","UpsertGatewayAttachmentBody","AgentListItem","AgentListResponse","WorkflowEventTypeSchema","run_started","step_completed","step_failed","step_retrying","sleep_scheduled","sleep_completed","hook_created","hook_resumed","run_completed","run_failed","run_canceled","WorkflowEventType","WorkflowRunSummarySchema","pending","sleeping","waiting_hook","cron","webhook","poll","retry","triggeredAt","sourceKind","WorkflowRunSummary","WorkflowRunRecordSchema","parentWorkflowRunId","output","WorkflowRunRecord","WorkflowRunListQuerySchema","WorkflowRunListQuery","WorkflowRunListResponseSchema","WorkflowRunListResponse","WorkflowRunDetailIncludeSchema","steps","WorkflowRunDetailQuerySchema","WorkflowRunDetailQuery","parseWorkflowRunDetailInclude","WorkflowRunDetailInclude","TriggerRunDetailSchema","TriggerRunDetail","TraceResponseSchema","TraceResponse","WorkflowRunDetailResponseSchema","run","actionKey","completedAt","WorkflowRunDetailResponse","HistoryRunKindSchema","HistoryRunStatusSchema","HistoryRunActorSchema","avatarUrl","HistoryRunUsageLineItemSchema","amountUsd","HistoryRunUsageSchema","runDurationMs","lineItems","totalExcludingDurationUsd","HistoryRunSchema","resourceKey","resourceId","resourceName","timeInQueueMs","durationMs","triggerLabel","triggerRaw","ranAs","modelsUsed","otherServicesUsed","totalCostUsd","stepCount","HistoryTraceSpanSchema","HistoryTraceLogSchema","HistoryTraceTriggerSchema","HistoryTraceGatewaySchema","HistoryTraceSchema","HistoryWorkflowStepSchema","HistoryWorkflowRunDetailSchema","usage","HistoryAgentSessionDetailSchema","HistoryRunDetailSchema","HistoryRunListQuerySchema","HistoryRunListResponseSchema","HistoryRunDetailResponseSchema","HistoryRunCancelResponseSchema","HistoryRunKind","HistoryRunStatus","HistoryRunActor","HistoryRunUsageLineItem","HistoryRunUsage","HistoryRun","HistoryTraceSpan","HistoryTraceLog","HistoryTraceTrigger","HistoryTraceGateway","HistoryTrace","HistoryWorkflowStep","HistoryWorkflowRunDetail","HistoryAgentSessionDetail","HistoryRunDetail","HistoryRunListQuery","WorkflowSubscriptionRecordSchema","enabled","WorkflowSubscriptionListResponseSchema","subscriptions","UpsertWorkflowSubscriptionBodySchema","CredentialInstanceRecordSchema","CredentialInstanceListResponseSchema","instances","CreateCredentialInstanceBodySchema","UpdateCredentialInstanceBodySchema","WorkflowSubscriptionRecord","CreateCredentialInstanceBody","UpdateCredentialInstanceBody","TriggerRunWorkflowSummarySchema","TriggerRunWorkflowSummary","TriggerRunSummarySchema","workflowRun","agentSession","TriggerRunSummary","TriggerRunRecordSchema","TriggerRunRecord","TriggerRunListQuerySchema","TriggerRunListQuery","TriggerRunListResponseSchema","TriggerRunListResponse","TriggerRunDetailIncludeSchema","TriggerRunDetailQuerySchema","TriggerRunDetailQuery","parseTriggerRunDetailInclude","TriggerRunDetailInclude","TriggerRunDetailResponseSchema","workflowRuns","agentSessions","TriggerRunDetailResponse","TriggerTypeSchema","TriggerListItemSchema","webhookUrl","targetKind","TriggerListResponseSchema","TriggerListQuerySchema","endpoint","TriggerDetailResponseSchema","TriggerListItem","TriggerListResponse","TriggerListQuery","TriggerDetailResponse","OrganizationMemberRoleSchema","admin","owner","builder","OrganizationMemberRole","OrganizationMemberStatusSchema","invited","active","rejected","suspended","OrganizationMemberStatus","InvitableOrganizationMemberRoleSchema","InvitableOrganizationMemberRole","OrganizationMemberSchema","email","role","joinedAt","lastActiveAt","OrganizationMember","ListOrganizationMembersResponseSchema","members","ListOrganizationMembersResponse","InviteOrganizationMembersRequestSchema","emails","InviteOrganizationMembersRequest","InviteOrganizationMemberResultStatusSchema","sent","already_member","invalid","InviteOrganizationMemberResultStatus","InviteOrganizationMembersResponseSchema","invitationId","InviteOrganizationMembersResponse","UpdateOrganizationMemberRequestSchema","UpdateOrganizationMemberRequest","UpdateOrganizationMemberResponseSchema","member","UpdateOrganizationMemberResponse","OrganizationInvitationSchema","organizationName","organizationSlug","invitedByName","invitedByEmail","OrganizationInvitation","ListOrganizationInvitationsResponseSchema","invitations","ListOrganizationInvitationsResponse","AcceptOrganizationInvitationResponseSchema","AcceptOrganizationInvitationResponse","DeclineOrganizationInvitationResponseSchema","success","DeclineOrganizationInvitationResponse","organizationInvitationAcceptPath","ApiKeyCreatorSchema","deleted","ApiKeyCreator","ApiKeySummarySchema","keyPreview","createdBy","isCreatedByCurrentUser","ApiKeySummary","ListApiKeysResponseSchema","apiKeys","ListApiKeysResponse","CreateApiKeyRequestSchema","CreateApiKeyRequest","CreateApiKeyResponseSchema","secret","CreateApiKeyResponse","ProjectUserRoleSchema","ProjectUserRole","ProjectInvitePermissionSchema","ProjectInvitePermission","ProjectMemberStatusSchema","ProjectMemberStatus","ProjectMemberSchema","image","isCurrentUser","ProjectMember","ListProjectMembersResponseSchema","ListProjectMembersResponse","InviteProjectMembersRequestSchema","InviteProjectMembersRequest","InviteProjectMemberResultStatusSchema","added","not_org_member","InviteProjectMemberResultStatus","InviteProjectMembersResponseSchema","InviteProjectMembersResponse","UpdateProjectMemberRequestSchema","UpdateProjectMemberRequest","UpdateProjectMemberResponseSchema","UpdateProjectMemberResponse","ProjectSettingsSchema","defaultRole","invitePermission","ProjectSettings","UpdateProjectSettingsRequestSchema","UpdateProjectSettingsRequest","ProjectSettingsResponseSchema","settings","ProjectSettingsResponse","UserAvatarSchema","ZodURL","UserAvatar","UserAvatarPatchSchema","storageKey","UserAvatarPatch","PresignUserAvatarRequestSchema","contentType","PresignUserAvatarRequest","PresignUserAvatarResponseSchema","uploadUrl","PresignUserAvatarResponse","UserInterfaceThemeSchema","system","light","dark","UserInterfaceTheme","UserSurfaceContrastSchema","on","UserSurfaceContrast","UserWorkspaceLayoutModeSchema","linear","UserWorkspaceLayoutMode","UserWorkspaceFontSizeSchema","large","UserWorkspaceFontSize","UserSidebarNavIconVisibilitySchema","hidden","visible","UserSidebarNavIconVisibility","UserSidebarFooterChatRowVisibilitySchema","UserSidebarFooterChatRowVisibility","UserWorkspaceFavoriteKindSchema","skill","UserWorkspaceFavoriteKind","UserWorkspaceFavoriteSchema","UserWorkspaceFavorite","UserSidebarPreferencesSchema","navIconVisibility","footerChatRowVisibility","hiddenNavItemIds","topNavItemOrderIds","workspaceNavItemOrderIds","UserSidebarPreferences","UserPreferencesSchema","interfaceTheme","surfaceContrast","layoutMode","fontSize","sidebar","favorites","projectOrderIds","projectDotColors","onboardingTabVisible","UserPreferences","UserSidebarPreferencesPatchSchema","UserPreferencesPatchSchema","UserPreferencesPatch","DEFAULT_USER_PREFERENCES","normalizeUserPreferences","mergeUserPreferences","current","OrganizationLogoVariantSchema","OrganizationLogoVariant","DEFAULT_LOGO_HEIGHT_PX","MIN_LOGO_HEIGHT_PX","MAX_LOGO_HEIGHT_PX","OrganizationSidebarBrandingSchema","customLogoEnabled","customLogoExplicitlyDisabled","logoLightUrl","logoDarkUrl","logoHeightPx","OrganizationSidebarBranding","OrganizationSidebarBrandingPatchSchema","logoLightStorageKey","logoDarkStorageKey","OrganizationSidebarBrandingPatch","PresignOrgLogoRequestSchema","variant","PresignOrgLogoRequest","PresignOrgLogoResponseSchema","PresignOrgLogoResponse","DEFAULT_ORGANIZATION_SIDEBAR_BRANDING","normalizeLogoUrl","normalizeOrganizationSidebarBranding","mergeOrganizationSidebarBranding","Partial","ORGANIZATION_SLUG_TAKEN_MESSAGE","PROJECT_SLUG_TAKEN_MESSAGE","OrganizationSlugErrorCodeSchema","OrganizationSlugErrorCode","SlugAvailabilityReasonSchema","taken","reserved","SlugAvailabilityReason","SlugAvailabilityResponseSchema","available","reason","suggestion","SlugAvailabilityResponse","SlugAvailabilityQuerySchema","excludeOrganizationId","SlugAvailabilityQuery","ProjectSlugAvailabilityReasonSchema","ProjectSlugAvailabilityReason","ProjectSlugAvailabilityResponseSchema","ProjectSlugAvailabilityResponse","ProjectSlugAvailabilityQuerySchema","excludeProjectId","ProjectSlugAvailabilityQuery","validateProjectSlug","valid","validateClaimableOrganizationSlug","organizationSlugErrorCodeFromMessage","ProjectStatusSchema","inactive","starting","ProjectStatus","OrganizationUserRoleSchema","OrganizationUserRole","OrganizationSchema","Organization","ProjectSchema","organizationId","baseUrl","runtimeId","lastError","Project","UserOrganizationSchema","UserOrganization","CurrentOrganizationResponseSchema","CurrentOrganizationResponse","ActiveOrganizationResponseSchema","ActiveOrganizationResponse","ListOrganizationsResponseSchema","organizations","ListOrganizationsResponse","CreateOrganizationRequestSchema","UpdateOrganizationRequestSchema","UpdateOrganizationRequest","CreateOrganizationRequest","CreateOrganizationResponseSchema","CreateOrganizationResponse","ListProjectsResponseSchema","ListProjectsResponse","ProjectListMetricsSchema","agentCount","workflowCount","skillCount","lastDeploymentAt","ProjectListMetrics","ListProjectMetricsResponseSchema","metrics","ListProjectMetricsResponse","CreateProjectRequestSchema","CreateProjectRequest","UpdateProjectRequestSchema","UpdateProjectRequest","CreateProjectResponseSchema","CreateProjectResponse","ProjectResponseSchema","ProjectResponse","ProjectReachabilityResponseSchema","reachable","ProjectReachabilityResponse","parseCreateOrganizationRequest","ProjectArtifactStatusSchema","ready","ProjectArtifactStatus","ProjectArtifactSchema","ProjectArtifact","CreateProjectArtifactResponseSchema","artifact","expiresInSeconds","CreateProjectArtifactResponse","CompleteProjectArtifactResponseSchema","CompleteProjectArtifactResponse","DownloadActiveProjectArtifactResponse","DownloadActiveProjectArtifactResponseSchema","artifactId","downloadUrl","ProjectDeploymentSchema","deployedBy","deployedByEmail","deployedByAvatarUrl","ProjectDeployment","ListProjectDeploymentsResponseSchema","deployments","ListProjectDeploymentsResponse","PLATFORM_RESOURCE_UNSUPPORTED_TEXT","PLATFORM_RESOURCE_UNSUPPORTED_TIMESTAMP","PLATFORM_RESOURCE_UNSUPPORTED_COUNT","AgentSummarySchema","lastRunAt","AgentSummary","WorkflowSummarySchema","WorkflowSummary","SkillSummarySchema","SkillSummary","AgentSummaryListResponseSchema","AgentSummaryDetailResponseSchema","AgentSummaryListResponse","AgentSummaryDetailResponse","WorkflowSummaryListResponseSchema","WorkflowSummaryDetailResponseSchema","WorkflowSummaryListResponse","WorkflowSummaryDetailResponse","SkillSummaryListResponseSchema","SkillSummaryDetailResponseSchema","SkillSummaryListResponse","SkillSummaryDetailResponse","RecentResourceKindSchema","RecentResourceSourceSchema","shared","owned","RecentResourceSchema","resourceKind","lastOpenedAt","lastModifiedAt","RecentResourceKind","RecentResourceSource","RecentResource","RecentResourceListResponseSchema","RecentResourceListResponse","ProjectFileSummarySchema","hash","ProjectFileSummary","ProjectSourceResourceRefSchema","ProjectSourceResourceRef","ProjectSourceResourcesSchema","ProjectSourceResources","ListProjectFilesResponseSchema","files","resources","ListProjectFilesResponse","ProjectSourceFileSchema","contents","ProjectSourceFile","SourceBlobRefSchema","size","SourceBlobRef","PresignProjectSourceRequestSchema","blobs","PresignProjectSourceRequest","PresignedBlobUploadSchema","PresignedBlobUpload","PresignProjectSourceResponseSchema","uploads","PresignProjectSourceResponse","ManifestFileRefSchema","ManifestFileRef","UploadProjectSourceManifestRequestSchema","UploadProjectSourceManifestRequest","UploadProjectSourceResponseSchema","fileCount","UploadProjectSourceResponse","StoredManifestFileSchema","StoredManifestFile","StoredProjectSourceManifestSchema","generatedAt","StoredProjectSourceManifest","projectFileLanguage","projectFileId","PromptLlmThinkingLevel","PromptLlmRunOptions","prompt","outputSchema","temperature","maxTokens","stepId","CredentialRunContext","CredentialConsumer","CredentialSelectionOption","OAuthTokenAdapter","Promise","getAccessToken","OAuthAccessTokenRefreshParams","clientId","clientSecret","refreshToken","OAuthAccessTokenRefreshResult","Date","accessTokenExpiresAt","OAuthAccessTokenRefresher","params","OAuthTokenRefreshRegistry","register","appKey","refresher","get","DiscoveredModule","file","KeystrokeSchedule","OrganizationRow","ProjectRow","UserOrganizationRow","mapOrganization","row","mapProject","mapUserOrganization","OrganizationMemberRow","OrganizationInvitationRow","mapOrganizationMember","mapOrganizationInvitation","ProjectMemberRecord","mapProjectMember","mapProjectSettings","defaultMemberRole","ProjectArtifactRow","mapProjectArtifact","ProjectDeploymentRow","deployedByName","mapProjectDeployment"],"sources":["../../shared/dist/index.d.mts"],"mappings":";;;;;;cAstBcoN,wBAAAA,EAA0BnN,CAAAA,CAAE0D,OAAO;EAC/CuC,OAAAA;EACAmH,aAAAA;EACAC,SAAAA;AAAAA;;;;;;cAOYC,yBAAAA,EAA2BtN,CAAAA,CAAE0D,OAAO;EAChD6J,YAAAA;EACAC,IAAAA;EACAC,OAAAA;AAAAA;AAAAA,KAEGC,kBAAAA,GAAqB1N,CAAAA,CAAEgB,KAAK,QAAQmM,wBAAAA;AAAAA,KACpCQ,mBAAAA,GAAsB3N,CAAAA,CAAEgB,KAAK,QAAQsM,yBAAAA;AAAAA,cAE5BO,sBAAAA;AAAAA;;;;KA0STiG,qBAAAA;EAAAA,SACMzK,GAAAA;EAAAA,SACAtF,IAAAA,EAAM2J,kBAAAA;EAAAA,SACNnL,MAAAA,EAAQvC,CAAAA,CAAEqC,OAAAA;WACV6M,KAAAA,GAAQvB,mBAAAA;EAAAA,SACRoG,UAAAA;AAAAA;AAAAA,KAENC,UAAAA,sCAAgDhU,CAAAA,CAAEqC,OAAAA,GAAUrC,CAAAA,CAAEqC,OAAAA;EAAAA,SACxD0B,IAAAA,EAAM2J,kBAAAA;EAAAA,SACNrE,GAAAA,EAAK4K,CAAAA;EAAAA,SACL1R,MAAAA,EAAQ2R,CAAAA;EAAAA,SACRH,UAAAA;EACT7E,KAAAA,CAAMA,KAAAA,EAAOvB,mBAAAA,GAAsBmG,qBAAAA;IACjCzK,GAAAA,EAAK4K,CAAAA;IACL1R,MAAAA,EAAQ2R,CAAAA;EAAAA;AAAAA;AAAAA,KAGPC,eAAAA,GAAkBL,qBAAAA,GAAwBE,UAAAA,SAAmBhU,CAAAA,CAAEqC,OAAAA;AAAAA,KAC/D+R,cAAAA,YAA0BD,eAAe;AAAA,iBAC7BE,iBAAAA,CAAkBtS,KAAAA,YAAiBA,KAAAA,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iBAAAA;EACHE,cAAAA,CAAe9tB,YAAAA,WAAuB6tB,OAAO;IAC3CrrB,WAAAA;EAAAA;AAAAA;AAAAA,KAGCurB,6BAAAA;EACHC,QAAAA;EACAC,YAAAA;EACAC,YAAAA;AAAAA;AAAAA,KAEGC,6BAAAA;EACH3rB,WAAAA;EACA0rB,YAAAA;EACAG,oBAAAA,GAAuBD,IAAI;AAAA;AAAA,KAExBE,yBAAAA,IAA6BC,MAAAA,EAAQR,6BAAAA,KAAkCF,OAAAA,CAAQM,6BAAAA;AAAAA,KAC/EK,yBAAAA;EACHC,QAAAA,CAASC,MAAAA,UAAgBC,SAAAA,EAAWL,yBAAAA;EACpCM,GAAAA,CAAIF,MAAAA,WAAiBJ,yBAAyB;AAAA;AAAA"}
@@ -1,4 +1,4 @@
1
- import { i as CredentialConsumer, o as CredentialList, y as ResolvedCredentials } from "./index-DAzE8I-g.cjs";
1
+ import { i as CredentialConsumer, o as CredentialList, v as ResolvedCredentials } from "./index-hf0OTB6M.cjs";
2
2
  import { o as AgentTool, s as AgentToolResult } from "./index-BByNfhJU.cjs";
3
3
  import { z } from "zod";
4
4
 
@@ -90,4 +90,4 @@ type ToolCredentialResolver = {
90
90
  //#region src/context.d.ts
91
91
  //#endregion
92
92
  export { McpDefinition as a, McpServerOptions as c, McpTransport as d, connectMcpDefinition as f, isMcp as g, defineMcp as h, McpConnection as i, McpStdioOptions as l, connectMcpStdio as m, McpAuthOptions as n, McpDefinitionInput as o, connectMcpServer as p, McpCallToolOptions as r, McpHttpTransport as s, ToolCredentialResolver as t, McpStdioTransport as u };
93
- //# sourceMappingURL=index-Ugto82oH.d.cts.map
93
+ //# sourceMappingURL=index-y_2btA4s.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-y_2btA4s.d.cts","names":["Client","AgentTool","AgentToolResult","Tool","MCP","McpCallToolOptions","AbortSignal","signal","McpTransport","McpAuthOptions","Record","headers","env","searchParams","McpHttpTransport","URL","type","url","transport","McpStdioTransport","command","args","cwd","stderr","McpDeclaredTool","name","title","description","inputSchema","McpDefinitionInput","TCredentials","fetch","RequestInit","key","credentials","auth","resolved","declaredTools","clientName","clientVersion","requestInit","McpDefinition","McpServerOptions","McpConnection","Promise","tools","callTool","toolName","options","close","McpStdioOptions","defineMcp","def","isMcp","value","connectMcpServer","connectMcpStdio","connectMcpDefinition","JsonSchemaObject","createToolName","serverName","normalizeInputSchema","schema","mcpToolsToAgentTools","client","CREDENTIAL_SCOPE_TYPES","CredentialConsumer","CredentialConsumer$1","CredentialInput","CredentialList","CredentialRunContext","CredentialRunContext$1","CredentialScopeType","CredentialScopeType$1","CredentialSelectionOption","CredentialSelectionOption$1","OAuthAccessTokenRefreshParams","OAuthAccessTokenRefreshResult","OAuthAccessTokenRefresher","OAuthTokenAdapter","OAuthTokenAdapter$1","OAuthTokenRefreshRegistry","OAuthTokenRefreshRegistry$1","ResolvedCredentials","MCP","McpConnection","McpDefinition","McpDefinition$1","McpDefinitionInput","AgentTool","z","CredentialToolErrorCapture","tools","takeCredentialError","captureCredentialToolErrors","WorkflowSubscriptionProfile","id","workflowKey","userId","enabled","CredentialRunContextInput","Record","Partial","subscription","orgId","projectId","credentialSelection","request","ToolCredentialResolver","T","Promise","resolve","requirements","consumer","buildCredentialRunContext","input","buildWorkflowRunContext","actor","CredentialBackend","ZodType","resolveApiKey","instanceId","schema","getOAuthAccessToken","connectionId","accessToken","CreateLocalCredentialBackendOptions","_$_keystrokehq_shared0","tokenRefresh","CreatePlatformCredentialBackendOptions","platformUrl","workerToken","CreateCredentialResolverOptions","context","credentialBackend","oauthAdapter","CredentialResolver","createCredentialResolver","options","ResolveCredentialRequirementsOptions","resolveCredentialRequirements","ResolvedMcpTools","connection","resolveMcpTools","TCredentials","def","resolver","McpInput","Omit","defineMcp","credentials","auth","TRequirements","TResolved","NonNullable","ReturnType","resolved","parseResolvedCredentials","ResolveActionCredentialsOptions","resolveCredentials","contextOverride","resolveActionCredentials","MissingCredentialsError","Error","code","key","chainAttempted","constructor","NeedsSelectionError","OAuthNotConfiguredError","message","CredentialAccessDeniedError","isCredentialError","error","credentialScopeMatchesContext","scopeType","scopeId","formatCredentialErrorMessage","stubOAuthTokenAdapter","createOAuthTokenRefreshRegistry","createLocalCredentialBackend","createPlatformCredentialBackend","isWorkerRuntime","createCredentialBackend","setProjectCredentialBackend","backend","getProjectCredentialBackend","createOAuthTokenAdapterFromBackend"],"sources":["../../mcp/dist/index.d.mts","../../credentials/dist/index.d.mts"],"mappings":";;;;;;cAKcI,GAAAA;AAAAA,KACTC,kBAAAA;EACHE,MAAAA,GAASD,WAAW;AAAA;AAAA,KAEjBE,YAAAA;AAAAA,KACAC,cAAAA;EACHE,OAAAA,GAAUD,MAAAA;EACVE,GAAAA,GAAMF,MAAAA,kBALc;EAMpBG,YAAAA,GAAeH,MAAAA;AAAAA;AAAAA,KAEZI,gBAAAA;EACHE,IAAAA;EACAC,GAAAA,WAAcF,GAAAA,EARC;EASfG,SAAAA,GAAYV,YAAY;AAAA;AAAA,KAErBW,iBAAAA;EACHH,IAAAA;EACAI,OAAAA;EACAC,IAAAA;EACAC,GAAAA;EACAC,MAAAA;AAAAA;AAAAA,KAEGC,eAAAA;EACHC,IAAAA;EACAC,KAAAA;EACAC,WAAAA;EACAC,WAAAA,GAAclB,MAAM;AAAA;AAAA,KAEjBmB,kBAAAA,gBAAkCnB,MAAAA;EACrCuB,GAAAA;EACAR,IAAAA;EACAP,SAAAA,EAAWJ,gBAAAA,GAAmBK,iBAAAA;EAC9Be,WAAAA;EACAC,IAAAA,IAAQC,QAAAA,EAAUN,YAAAA,KAAiBrB,cAAAA,EApBX;EAqBxB4B,aAAAA,YAAyBb,eAAAA;EACzBc,UAAAA;EACAC,aAAAA;EACAR,KAAAA,UAAeA,KAAAA;EACfS,WAAAA,GAAcR,WAAAA;AAAAA;AAAAA,KAEXS,aAAAA,gBAA6B/B,MAAAA,mBAAyBmB,kBAAAA,CAAmBC,YAAAA;EAAAA,UAClE1B,GAA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A,EAAgB2C,YAAAA,EAAcH,CAAAA,EAAGI,QAAAA,EAAU9C,kBAAAA,GAAuB2C,OAAAA,CAAQ3B,mBAAAA,CAAoB0B,CAAAA;AAAAA;AAAAA"}
@@ -2,7 +2,7 @@ const require_chunk = require("./chunk-DHdmVzO2.cjs");
2
2
  const require_env_api_keys = require("./env-api-keys-BFptfIIs.cjs");
3
3
  const require_event_stream = require("./event-stream-CS-ls7wC.cjs");
4
4
  const require_json_parse = require("./json-parse-TT8Vr6d3.cjs");
5
- const require_dist = require("./dist-Dz0i7l87.cjs");
5
+ const require_dist = require("./dist-BLADLFrG.cjs");
6
6
  const require_sanitize_unicode = require("./sanitize-unicode-Bh6iO3Nz.cjs");
7
7
  const require_transform_messages = require("./transform-messages-BwOWnhwJ.cjs");
8
8
  const require_hash = require("./hash-DEgLRlHK.cjs");
@@ -27563,4 +27563,4 @@ function mapChatStopReason(reason) {
27563
27563
  exports.streamMistral = streamMistral;
27564
27564
  exports.streamSimpleMistral = streamSimpleMistral;
27565
27565
 
27566
- //# sourceMappingURL=mistral-GXPqP1mo.cjs.map
27566
+ //# sourceMappingURL=mistral-CC5EGzH4.cjs.map