@ekanos/sdk 0.36.0 → 0.36.1

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/api-report.md CHANGED
@@ -9,7 +9,7 @@ This is the complete surface of every entrypoint. The authoring guide
9
9
  for these symbols is README.md. Entrypoints marked WORKSPACE-ONLY are
10
10
  not reachable from a published install — see the note in each section.
11
11
 
12
- Total exported names: **377** across 12 entrypoints.
12
+ Total exported names: **379** across 12 entrypoints.
13
13
 
14
14
  ## `@ekanos/sdk` (39 exports)
15
15
 
@@ -343,7 +343,7 @@ Total exported names: **377** across 12 entrypoints.
343
343
  | `snapFullWidthToRowBoundary` | function |
344
344
  | `splitBalanced` | function |
345
345
 
346
- ## `@ekanos/sdk/experience` (66 exports)
346
+ ## `@ekanos/sdk/experience` (68 exports)
347
347
 
348
348
  | Export | Kind |
349
349
  | --- | --- |
@@ -378,6 +378,7 @@ Total exported names: **377** across 12 entrypoints.
378
378
  | `IntegrationShape` | interface |
379
379
  | `LayoutItem` | type alias |
380
380
  | `LayoutWorkspace` | type alias |
381
+ | `NOT_CONNECTED_REASONS` | variable |
381
382
  | `OPERATION_REFUSAL_REASONS` | variable |
382
383
  | `OperationCallRequest` | interface |
383
384
  | `OperationChannel` | type alias |
@@ -406,6 +407,7 @@ Total exported names: **377** across 12 entrypoints.
406
407
  | `WriteOperationKey` | type alias |
407
408
  | `defineExperience` | function |
408
409
  | `defineWorkflowTemplate` | function |
410
+ | `isNotConnected` | function |
409
411
  | `layoutAudienceNames` | function |
410
412
  | `ref` | function |
411
413
  | `resolveLayoutForAudience` | function |
@@ -9,5 +9,6 @@
9
9
  export { defineExperience, slotsUsedBy, type ExperienceDefinition, type ExperienceInput, type ExperienceCanvasPageInput, type ExperienceCustomPageInput, type ExperienceOverviewPageInput, type ExperiencePage, type ExperiencePageInput, type ExperiencePageProps, type ExperiencePageRoute, type ExperienceReviewQueue, type ExperienceSidebar, type ExperienceSuggestedLayout, type ExperienceWidget, type ExperienceWidgetWidth, type IntegrationOnlyKeys, type ReviewQueueSection, } from './define-experience.js';
10
10
  export { TEMPLATE_INSTALLATION_ID, defineWorkflowTemplate, ref, serializeWorkflowTemplate, step, type AiStep, type ApprovalStep, type SerializeWorkflowOptions, type StepOptions, type ToolStep, type WithRefs, type WorkflowDsl, type WorkflowRef, type WorkflowStep, type WorkflowTemplate, type WorkflowTemplateInput, } from './workflow-template.js';
11
11
  export { OPERATION_REFUSAL_REASONS, type InputArgs, type OperationEffect, type OperationError, type OperationInput, type OperationKey, type OperationOutput, type OperationRefusalReason, type OperationResult, type OperationShape, type ReadOperationKey, type IntegrationName, type IntegrationRegistry, type IntegrationShape, type WriteOperationKey, } from './types.js';
12
+ export { NOT_CONNECTED_REASONS, isNotConnected } from './not-connected.js';
12
13
  export type { ApprovalToken, ExperienceRuntime, OperationCallRequest, OperationChannel, IntegrationInfo, IntegrationProvenance, } from './runtime.js';
13
14
  export { EXPERIENCE_PAGE_KINDS, ExperienceSurfacesSchema, SuggestedLayoutSchema, layoutAudienceNames, resolveLayoutForAudience, surfaceProblems, type ExperiencePageKind, type ExperienceSurfaces, type LayoutItem, type LayoutWorkspace, type SuggestedLayout, } from '@ekanos/integration-schema';
@@ -9,5 +9,6 @@
9
9
  export { defineExperience, slotsUsedBy, } from './define-experience.js';
10
10
  export { TEMPLATE_INSTALLATION_ID, defineWorkflowTemplate, ref, serializeWorkflowTemplate, step, } from './workflow-template.js';
11
11
  export { OPERATION_REFUSAL_REASONS, } from './types.js';
12
+ export { NOT_CONNECTED_REASONS, isNotConnected } from './not-connected.js';
12
13
  export { EXPERIENCE_PAGE_KINDS, ExperienceSurfacesSchema, SuggestedLayoutSchema, layoutAudienceNames, resolveLayoutForAudience, surfaceProblems, } from '@ekanos/integration-schema';
13
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/experience/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EACL,gBAAgB,EAChB,WAAW,GAiBZ,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,wBAAwB,EACxB,sBAAsB,EACtB,GAAG,EACH,yBAAyB,EACzB,IAAI,GAYL,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,yBAAyB,GAe1B,MAAM,SAAS,CAAC;AAWjB,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EACxB,qBAAqB,EACrB,mBAAmB,EACnB,wBAAwB,EACxB,eAAe,GAMhB,MAAM,4BAA4B,CAAC","sourcesContent":["/**\n * @ekanos/sdk/experience — author an experience: widgets, pages and workflow\n * templates that reach integrations only through contract-typed operations.\n *\n * Isomorphic and free of React hooks (those are `/experience/client`) and of\n * Node APIs (`/experience/server`). No import of integration code, ever: the\n * `experience-boundary` check fails the build if one appears.\n */\nexport {\n defineExperience,\n slotsUsedBy,\n type ExperienceDefinition,\n type ExperienceInput,\n type ExperienceCanvasPageInput,\n type ExperienceCustomPageInput,\n type ExperienceOverviewPageInput,\n type ExperiencePage,\n type ExperiencePageInput,\n type ExperiencePageProps,\n type ExperiencePageRoute,\n type ExperienceReviewQueue,\n type ExperienceSidebar,\n type ExperienceSuggestedLayout,\n type ExperienceWidget,\n type ExperienceWidgetWidth,\n type IntegrationOnlyKeys,\n type ReviewQueueSection,\n} from './define-experience';\n\nexport {\n TEMPLATE_INSTALLATION_ID,\n defineWorkflowTemplate,\n ref,\n serializeWorkflowTemplate,\n step,\n type AiStep,\n type ApprovalStep,\n type SerializeWorkflowOptions,\n type StepOptions,\n type ToolStep,\n type WithRefs,\n type WorkflowDsl,\n type WorkflowRef,\n type WorkflowStep,\n type WorkflowTemplate,\n type WorkflowTemplateInput,\n} from './workflow-template';\n\nexport {\n OPERATION_REFUSAL_REASONS,\n type InputArgs,\n type OperationEffect,\n type OperationError,\n type OperationInput,\n type OperationKey,\n type OperationOutput,\n type OperationRefusalReason,\n type OperationResult,\n type OperationShape,\n type ReadOperationKey,\n type IntegrationName,\n type IntegrationRegistry,\n type IntegrationShape,\n type WriteOperationKey,\n} from './types';\n\nexport type {\n ApprovalToken,\n ExperienceRuntime,\n OperationCallRequest,\n OperationChannel,\n IntegrationInfo,\n IntegrationProvenance,\n} from './runtime';\n\nexport {\n EXPERIENCE_PAGE_KINDS,\n ExperienceSurfacesSchema,\n SuggestedLayoutSchema,\n layoutAudienceNames,\n resolveLayoutForAudience,\n surfaceProblems,\n type ExperiencePageKind,\n type ExperienceSurfaces,\n type LayoutItem,\n type LayoutWorkspace,\n type SuggestedLayout,\n} from '@ekanos/integration-schema';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/experience/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EACL,gBAAgB,EAChB,WAAW,GAiBZ,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,wBAAwB,EACxB,sBAAsB,EACtB,GAAG,EACH,yBAAyB,EACzB,IAAI,GAYL,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,yBAAyB,GAe1B,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAWxE,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EACxB,qBAAqB,EACrB,mBAAmB,EACnB,wBAAwB,EACxB,eAAe,GAMhB,MAAM,4BAA4B,CAAC","sourcesContent":["/**\n * @ekanos/sdk/experience — author an experience: widgets, pages and workflow\n * templates that reach integrations only through contract-typed operations.\n *\n * Isomorphic and free of React hooks (those are `/experience/client`) and of\n * Node APIs (`/experience/server`). No import of integration code, ever: the\n * `experience-boundary` check fails the build if one appears.\n */\nexport {\n defineExperience,\n slotsUsedBy,\n type ExperienceDefinition,\n type ExperienceInput,\n type ExperienceCanvasPageInput,\n type ExperienceCustomPageInput,\n type ExperienceOverviewPageInput,\n type ExperiencePage,\n type ExperiencePageInput,\n type ExperiencePageProps,\n type ExperiencePageRoute,\n type ExperienceReviewQueue,\n type ExperienceSidebar,\n type ExperienceSuggestedLayout,\n type ExperienceWidget,\n type ExperienceWidgetWidth,\n type IntegrationOnlyKeys,\n type ReviewQueueSection,\n} from './define-experience';\n\nexport {\n TEMPLATE_INSTALLATION_ID,\n defineWorkflowTemplate,\n ref,\n serializeWorkflowTemplate,\n step,\n type AiStep,\n type ApprovalStep,\n type SerializeWorkflowOptions,\n type StepOptions,\n type ToolStep,\n type WithRefs,\n type WorkflowDsl,\n type WorkflowRef,\n type WorkflowStep,\n type WorkflowTemplate,\n type WorkflowTemplateInput,\n} from './workflow-template';\n\nexport {\n OPERATION_REFUSAL_REASONS,\n type InputArgs,\n type OperationEffect,\n type OperationError,\n type OperationInput,\n type OperationKey,\n type OperationOutput,\n type OperationRefusalReason,\n type OperationResult,\n type OperationShape,\n type ReadOperationKey,\n type IntegrationName,\n type IntegrationRegistry,\n type IntegrationShape,\n type WriteOperationKey,\n} from './types';\n\nexport { NOT_CONNECTED_REASONS, isNotConnected } from './not-connected';\n\nexport type {\n ApprovalToken,\n ExperienceRuntime,\n OperationCallRequest,\n OperationChannel,\n IntegrationInfo,\n IntegrationProvenance,\n} from './runtime';\n\nexport {\n EXPERIENCE_PAGE_KINDS,\n ExperienceSurfacesSchema,\n SuggestedLayoutSchema,\n layoutAudienceNames,\n resolveLayoutForAudience,\n surfaceProblems,\n type ExperiencePageKind,\n type ExperienceSurfaces,\n type LayoutItem,\n type LayoutWorkspace,\n type SuggestedLayout,\n} from '@ekanos/integration-schema';\n"]}
@@ -0,0 +1,34 @@
1
+ import type { OperationError } from './types.js';
2
+ /**
3
+ * The refusal reasons that mean "the integration behind this call is not
4
+ * connected for the person calling": the reasons a Connect action fixes.
5
+ *
6
+ * - `not_connected`: the caller is authorized and the integration is there,
7
+ * but no connection serves the call (the team's, or the person's own).
8
+ * - `binding_missing`: the older installation path's word for the same
9
+ * thing — the experience's integration has no connection bound to it.
10
+ *
11
+ * Deliberately NOT here, because connecting does not fix them:
12
+ * `product_unavailable` (the caller may not use the product, or a release is
13
+ * paused), `slot_unknown` (the integration is not one this experience
14
+ * resolved, or the call is not one the caller may know about) and
15
+ * `mode_not_permitted` (no connection mode the experience declares is served
16
+ * here, e.g. per-person connections are switched off). Offering Connect for
17
+ * those leads nowhere.
18
+ */
19
+ export declare const NOT_CONNECTED_REASONS: readonly ["not_connected", "binding_missing"];
20
+ /**
21
+ * Whether a refused call means the integration is not connected yet, so a
22
+ * widget can offer Connect (`useConnectIntegration`) instead of an error.
23
+ * The one list to read: the host may add reasons here; a hand-kept copy goes
24
+ * stale.
25
+ *
26
+ * ```tsx
27
+ * const { data, error } = useOperation('linear', 'tool/list_issues');
28
+ * const connect = useConnectIntegration('linear');
29
+ * if (isNotConnected(error)) {
30
+ * return <Widget.Inactive reason="not-connected" action={connect ? { label: 'Connect', onClick: connect } : undefined} />;
31
+ * }
32
+ * ```
33
+ */
34
+ export declare function isNotConnected(error: OperationError | null | undefined): boolean;
@@ -0,0 +1,40 @@
1
+ /**
2
+ * The refusal reasons that mean "the integration behind this call is not
3
+ * connected for the person calling": the reasons a Connect action fixes.
4
+ *
5
+ * - `not_connected`: the caller is authorized and the integration is there,
6
+ * but no connection serves the call (the team's, or the person's own).
7
+ * - `binding_missing`: the older installation path's word for the same
8
+ * thing — the experience's integration has no connection bound to it.
9
+ *
10
+ * Deliberately NOT here, because connecting does not fix them:
11
+ * `product_unavailable` (the caller may not use the product, or a release is
12
+ * paused), `slot_unknown` (the integration is not one this experience
13
+ * resolved, or the call is not one the caller may know about) and
14
+ * `mode_not_permitted` (no connection mode the experience declares is served
15
+ * here, e.g. per-person connections are switched off). Offering Connect for
16
+ * those leads nowhere.
17
+ */
18
+ export const NOT_CONNECTED_REASONS = [
19
+ 'not_connected',
20
+ 'binding_missing',
21
+ ];
22
+ /**
23
+ * Whether a refused call means the integration is not connected yet, so a
24
+ * widget can offer Connect (`useConnectIntegration`) instead of an error.
25
+ * The one list to read: the host may add reasons here; a hand-kept copy goes
26
+ * stale.
27
+ *
28
+ * ```tsx
29
+ * const { data, error } = useOperation('linear', 'tool/list_issues');
30
+ * const connect = useConnectIntegration('linear');
31
+ * if (isNotConnected(error)) {
32
+ * return <Widget.Inactive reason="not-connected" action={connect ? { label: 'Connect', onClick: connect } : undefined} />;
33
+ * }
34
+ * ```
35
+ */
36
+ export function isNotConnected(error) {
37
+ return (error != null &&
38
+ NOT_CONNECTED_REASONS.includes(error.reason));
39
+ }
40
+ //# sourceMappingURL=not-connected.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"not-connected.js","sourceRoot":"","sources":["../../src/experience/not-connected.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,eAAe;IACf,iBAAiB;CACmC,CAAC;AAEvD;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,cAAc,CAC5B,KAAwC;IAExC,OAAO,CACL,KAAK,IAAI,IAAI;QACZ,qBAA2C,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CACpE,CAAC;AACJ,CAAC","sourcesContent":["import type { OperationError, OperationRefusalReason } from './types';\n\n/**\n * The refusal reasons that mean \"the integration behind this call is not\n * connected for the person calling\": the reasons a Connect action fixes.\n *\n * - `not_connected`: the caller is authorized and the integration is there,\n * but no connection serves the call (the team's, or the person's own).\n * - `binding_missing`: the older installation path's word for the same\n * thing — the experience's integration has no connection bound to it.\n *\n * Deliberately NOT here, because connecting does not fix them:\n * `product_unavailable` (the caller may not use the product, or a release is\n * paused), `slot_unknown` (the integration is not one this experience\n * resolved, or the call is not one the caller may know about) and\n * `mode_not_permitted` (no connection mode the experience declares is served\n * here, e.g. per-person connections are switched off). Offering Connect for\n * those leads nowhere.\n */\nexport const NOT_CONNECTED_REASONS = [\n 'not_connected',\n 'binding_missing',\n] as const satisfies readonly OperationRefusalReason[];\n\n/**\n * Whether a refused call means the integration is not connected yet, so a\n * widget can offer Connect (`useConnectIntegration`) instead of an error.\n * The one list to read: the host may add reasons here; a hand-kept copy goes\n * stale.\n *\n * ```tsx\n * const { data, error } = useOperation('linear', 'tool/list_issues');\n * const connect = useConnectIntegration('linear');\n * if (isNotConnected(error)) {\n * return <Widget.Inactive reason=\"not-connected\" action={connect ? { label: 'Connect', onClick: connect } : undefined} />;\n * }\n * ```\n */\nexport function isNotConnected(\n error: OperationError | null | undefined,\n): boolean {\n return (\n error != null &&\n (NOT_CONNECTED_REASONS as readonly string[]).includes(error.reason)\n );\n}\n"]}
package/dist/version.d.ts CHANGED
@@ -4,4 +4,4 @@
4
4
  * from `package.json#version`; after `changeset version`, copy the new version
5
5
  * here.
6
6
  */
7
- export declare const SDK_VERSION = "0.36.0";
7
+ export declare const SDK_VERSION = "0.36.1";
package/dist/version.js CHANGED
@@ -4,5 +4,5 @@
4
4
  * from `package.json#version`; after `changeset version`, copy the new version
5
5
  * here.
6
6
  */
7
- export const SDK_VERSION = '0.36.0';
7
+ export const SDK_VERSION = '0.36.1';
8
8
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC","sourcesContent":["/**\n * This package's own version, for diagnostics that must name which copy of\n * `@ekanos/sdk` is loaded. `src/__tests__/version.test.ts` fails when it drifts\n * from `package.json#version`; after `changeset version`, copy the new version\n * here.\n */\nexport const SDK_VERSION = '0.36.0';\n"]}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC","sourcesContent":["/**\n * This package's own version, for diagnostics that must name which copy of\n * `@ekanos/sdk` is loaded. `src/__tests__/version.test.ts` fails when it drifts\n * from `package.json#version`; after `changeset version`, copy the new version\n * here.\n */\nexport const SDK_VERSION = '0.36.1';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ekanos/sdk",
3
- "version": "0.36.0",
3
+ "version": "0.36.1",
4
4
  "private": false,
5
5
  "description": "The official SDK for building Ekanos integrations.",
6
6
  "homepage": "https://sdk.ekanos.dev/sdk/overview",
@@ -114,8 +114,8 @@
114
114
  "access": "public"
115
115
  },
116
116
  "dependencies": {
117
- "@ekanos/integration-schema": "0.36.0",
118
- "@ekanos/ui": "0.36.0",
117
+ "@ekanos/integration-schema": "0.36.1",
118
+ "@ekanos/ui": "0.36.1",
119
119
  "@supabase/supabase-js": "2.119.0",
120
120
  "server-only": "^0.0.1",
121
121
  "zod-to-json-schema": "3.25.2"