@runtypelabs/sdk 4.5.0 → 4.6.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/dist/index.d.cts CHANGED
@@ -6804,6 +6804,95 @@ interface paths {
6804
6804
  patch?: never;
6805
6805
  trace?: never;
6806
6806
  };
6807
+ "/v1/docs/search": {
6808
+ parameters: {
6809
+ query?: never;
6810
+ header?: never;
6811
+ path?: never;
6812
+ cookie?: never;
6813
+ };
6814
+ get?: never;
6815
+ put?: never;
6816
+ /**
6817
+ * Search documentation
6818
+ * @description Semantic search over the published Runtype documentation corpus. Returns a synthesized answer with citations. Use this for prose/how-to questions; for deterministic schemas and build guidance use the /v1/documentation endpoints.
6819
+ */
6820
+ post: {
6821
+ parameters: {
6822
+ query?: never;
6823
+ header?: never;
6824
+ path?: never;
6825
+ cookie?: never;
6826
+ };
6827
+ requestBody?: {
6828
+ content: {
6829
+ "application/json": {
6830
+ /** @description Natural-language documentation question. */
6831
+ query: string;
6832
+ };
6833
+ };
6834
+ };
6835
+ responses: {
6836
+ /** @description Documentation search result (MCP content blocks) */
6837
+ 200: {
6838
+ headers: {
6839
+ [name: string]: unknown;
6840
+ };
6841
+ content: {
6842
+ "application/json": {
6843
+ content: ({
6844
+ text?: string;
6845
+ type: string;
6846
+ } & {
6847
+ [key: string]: unknown;
6848
+ })[];
6849
+ };
6850
+ };
6851
+ };
6852
+ /** @description Invalid parameters */
6853
+ 400: {
6854
+ headers: {
6855
+ [name: string]: unknown;
6856
+ };
6857
+ content: {
6858
+ "application/json": components["schemas"]["Error"];
6859
+ };
6860
+ };
6861
+ /** @description Unauthorized */
6862
+ 401: {
6863
+ headers: {
6864
+ [name: string]: unknown;
6865
+ };
6866
+ content: {
6867
+ "application/json": components["schemas"]["Error"];
6868
+ };
6869
+ };
6870
+ /** @description Documentation search is not enabled */
6871
+ 403: {
6872
+ headers: {
6873
+ [name: string]: unknown;
6874
+ };
6875
+ content: {
6876
+ "application/json": components["schemas"]["Error"];
6877
+ };
6878
+ };
6879
+ /** @description Upstream documentation search failed */
6880
+ 502: {
6881
+ headers: {
6882
+ [name: string]: unknown;
6883
+ };
6884
+ content: {
6885
+ "application/json": components["schemas"]["Error"];
6886
+ };
6887
+ };
6888
+ };
6889
+ };
6890
+ delete?: never;
6891
+ options?: never;
6892
+ head?: never;
6893
+ patch?: never;
6894
+ trace?: never;
6895
+ };
6807
6896
  "/v1/documentation": {
6808
6897
  parameters: {
6809
6898
  query?: never;
@@ -34342,6 +34431,18 @@ interface DispatchRequest {
34342
34431
  };
34343
34432
  secrets?: Record<string, string>;
34344
34433
  inputs?: Record<string, unknown>;
34434
+ /**
34435
+ * End-user identity for multi-tenant SaaS callers whose users are not Runtype account
34436
+ * holders. Exposed as `{{_endUser.id}}`, `{{_endUser.email}}`, etc. in template variables
34437
+ * — used most commonly by agent memory namespace templates like `{{_endUser.id}}` to
34438
+ * shard long-term memory per end-user. Extra fields (name, tier, custom claims) are
34439
+ * forwarded verbatim and exposed under `_endUser.*`.
34440
+ */
34441
+ endUser?: {
34442
+ id: string;
34443
+ email?: string;
34444
+ [key: string]: unknown;
34445
+ };
34345
34446
  options?: {
34346
34447
  streamResponse?: boolean;
34347
34448
  modelOverride?: string;
@@ -37862,6 +37963,18 @@ interface AgentExecuteRequest {
37862
37963
  messages: AgentMessage[];
37863
37964
  /** Variables to pass to the agent */
37864
37965
  variables?: Record<string, unknown>;
37966
+ /**
37967
+ * End-user identity for multi-tenant SaaS callers whose users are not Runtype account
37968
+ * holders. Exposed as `{{_endUser.id}}`, `{{_endUser.email}}`, etc. in template variables
37969
+ * — used most commonly by agent memory namespace templates like `{{_endUser.id}}` to
37970
+ * shard long-term memory per end-user. Extra fields (name, tier, custom claims) are
37971
+ * forwarded verbatim and exposed under `_endUser.*`.
37972
+ */
37973
+ endUser?: {
37974
+ id: string;
37975
+ email?: string;
37976
+ [key: string]: unknown;
37977
+ };
37865
37978
  /** Enable streaming response (default: true) */
37866
37979
  streamResponse?: boolean;
37867
37980
  /** Enable debug mode to include all fields in events */
package/dist/index.d.ts CHANGED
@@ -6804,6 +6804,95 @@ interface paths {
6804
6804
  patch?: never;
6805
6805
  trace?: never;
6806
6806
  };
6807
+ "/v1/docs/search": {
6808
+ parameters: {
6809
+ query?: never;
6810
+ header?: never;
6811
+ path?: never;
6812
+ cookie?: never;
6813
+ };
6814
+ get?: never;
6815
+ put?: never;
6816
+ /**
6817
+ * Search documentation
6818
+ * @description Semantic search over the published Runtype documentation corpus. Returns a synthesized answer with citations. Use this for prose/how-to questions; for deterministic schemas and build guidance use the /v1/documentation endpoints.
6819
+ */
6820
+ post: {
6821
+ parameters: {
6822
+ query?: never;
6823
+ header?: never;
6824
+ path?: never;
6825
+ cookie?: never;
6826
+ };
6827
+ requestBody?: {
6828
+ content: {
6829
+ "application/json": {
6830
+ /** @description Natural-language documentation question. */
6831
+ query: string;
6832
+ };
6833
+ };
6834
+ };
6835
+ responses: {
6836
+ /** @description Documentation search result (MCP content blocks) */
6837
+ 200: {
6838
+ headers: {
6839
+ [name: string]: unknown;
6840
+ };
6841
+ content: {
6842
+ "application/json": {
6843
+ content: ({
6844
+ text?: string;
6845
+ type: string;
6846
+ } & {
6847
+ [key: string]: unknown;
6848
+ })[];
6849
+ };
6850
+ };
6851
+ };
6852
+ /** @description Invalid parameters */
6853
+ 400: {
6854
+ headers: {
6855
+ [name: string]: unknown;
6856
+ };
6857
+ content: {
6858
+ "application/json": components["schemas"]["Error"];
6859
+ };
6860
+ };
6861
+ /** @description Unauthorized */
6862
+ 401: {
6863
+ headers: {
6864
+ [name: string]: unknown;
6865
+ };
6866
+ content: {
6867
+ "application/json": components["schemas"]["Error"];
6868
+ };
6869
+ };
6870
+ /** @description Documentation search is not enabled */
6871
+ 403: {
6872
+ headers: {
6873
+ [name: string]: unknown;
6874
+ };
6875
+ content: {
6876
+ "application/json": components["schemas"]["Error"];
6877
+ };
6878
+ };
6879
+ /** @description Upstream documentation search failed */
6880
+ 502: {
6881
+ headers: {
6882
+ [name: string]: unknown;
6883
+ };
6884
+ content: {
6885
+ "application/json": components["schemas"]["Error"];
6886
+ };
6887
+ };
6888
+ };
6889
+ };
6890
+ delete?: never;
6891
+ options?: never;
6892
+ head?: never;
6893
+ patch?: never;
6894
+ trace?: never;
6895
+ };
6807
6896
  "/v1/documentation": {
6808
6897
  parameters: {
6809
6898
  query?: never;
@@ -34342,6 +34431,18 @@ interface DispatchRequest {
34342
34431
  };
34343
34432
  secrets?: Record<string, string>;
34344
34433
  inputs?: Record<string, unknown>;
34434
+ /**
34435
+ * End-user identity for multi-tenant SaaS callers whose users are not Runtype account
34436
+ * holders. Exposed as `{{_endUser.id}}`, `{{_endUser.email}}`, etc. in template variables
34437
+ * — used most commonly by agent memory namespace templates like `{{_endUser.id}}` to
34438
+ * shard long-term memory per end-user. Extra fields (name, tier, custom claims) are
34439
+ * forwarded verbatim and exposed under `_endUser.*`.
34440
+ */
34441
+ endUser?: {
34442
+ id: string;
34443
+ email?: string;
34444
+ [key: string]: unknown;
34445
+ };
34345
34446
  options?: {
34346
34447
  streamResponse?: boolean;
34347
34448
  modelOverride?: string;
@@ -37862,6 +37963,18 @@ interface AgentExecuteRequest {
37862
37963
  messages: AgentMessage[];
37863
37964
  /** Variables to pass to the agent */
37864
37965
  variables?: Record<string, unknown>;
37966
+ /**
37967
+ * End-user identity for multi-tenant SaaS callers whose users are not Runtype account
37968
+ * holders. Exposed as `{{_endUser.id}}`, `{{_endUser.email}}`, etc. in template variables
37969
+ * — used most commonly by agent memory namespace templates like `{{_endUser.id}}` to
37970
+ * shard long-term memory per end-user. Extra fields (name, tier, custom claims) are
37971
+ * forwarded verbatim and exposed under `_endUser.*`.
37972
+ */
37973
+ endUser?: {
37974
+ id: string;
37975
+ email?: string;
37976
+ [key: string]: unknown;
37977
+ };
37865
37978
  /** Enable streaming response (default: true) */
37866
37979
  streamResponse?: boolean;
37867
37980
  /** Enable debug mode to include all fields in events */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runtypelabs/sdk",
3
- "version": "4.5.0",
3
+ "version": "4.6.0",
4
4
  "type": "module",
5
5
  "description": "TypeScript SDK for the Runtype API with fluent methods. Use it to quickly realize AI products, agents, and workflows.",
6
6
  "main": "dist/index.cjs",