@runtypelabs/sdk 4.7.1 → 4.8.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/dist/index.d.cts CHANGED
@@ -722,6 +722,7 @@ interface paths {
722
722
  };
723
723
  tools?: {
724
724
  approval?: {
725
+ requestReason?: boolean;
725
726
  require: string[] | boolean;
726
727
  timeout?: number;
727
728
  };
@@ -1377,6 +1378,7 @@ interface paths {
1377
1378
  };
1378
1379
  tools?: {
1379
1380
  approval?: {
1381
+ requestReason?: boolean;
1380
1382
  require: string[] | boolean;
1381
1383
  timeout?: number;
1382
1384
  };
@@ -10672,6 +10674,83 @@ interface paths {
10672
10674
  patch?: never;
10673
10675
  trace?: never;
10674
10676
  };
10677
+ "/v1/integrations/connections": {
10678
+ parameters: {
10679
+ query?: never;
10680
+ header?: never;
10681
+ path?: never;
10682
+ cookie?: never;
10683
+ };
10684
+ /**
10685
+ * List connected integration accounts
10686
+ * @description List the caller's connected integration accounts (with their integration IDs) for a provider. Use the integration ID to pin a tool instance to a specific connection, e.g. a Granola tool's toolConfigs integrationId.
10687
+ */
10688
+ get: {
10689
+ parameters: {
10690
+ query: {
10691
+ /** @description Integration provider, e.g. granola or slack. */
10692
+ provider: string;
10693
+ };
10694
+ header?: never;
10695
+ path?: never;
10696
+ cookie?: never;
10697
+ };
10698
+ requestBody?: never;
10699
+ responses: {
10700
+ /** @description Connected accounts for the provider */
10701
+ 200: {
10702
+ headers: {
10703
+ [name: string]: unknown;
10704
+ };
10705
+ content: {
10706
+ "application/json": {
10707
+ connections: {
10708
+ accountName: string;
10709
+ createdAt: string;
10710
+ integrationId: string;
10711
+ provider: string;
10712
+ status: string;
10713
+ }[];
10714
+ };
10715
+ };
10716
+ };
10717
+ /** @description Unauthorized */
10718
+ 401: {
10719
+ headers: {
10720
+ [name: string]: unknown;
10721
+ };
10722
+ content: {
10723
+ "application/json": components["schemas"]["Error"];
10724
+ };
10725
+ };
10726
+ /** @description Insufficient permissions */
10727
+ 403: {
10728
+ headers: {
10729
+ [name: string]: unknown;
10730
+ };
10731
+ content: {
10732
+ "application/json": components["schemas"]["Error"];
10733
+ };
10734
+ };
10735
+ /** @description Internal server error */
10736
+ 500: {
10737
+ headers: {
10738
+ [name: string]: unknown;
10739
+ };
10740
+ content: {
10741
+ "application/json": components["schemas"]["Error"];
10742
+ };
10743
+ };
10744
+ };
10745
+ };
10746
+ put?: never;
10747
+ post?: never;
10748
+ delete?: never;
10749
+ options?: never;
10750
+ head?: never;
10751
+ patch?: never;
10752
+ trace?: never;
10753
+ };
10675
10754
  "/v1/integrations/credentials-status": {
10676
10755
  parameters: {
10677
10756
  query?: never;
@@ -10755,6 +10834,100 @@ interface paths {
10755
10834
  patch?: never;
10756
10835
  trace?: never;
10757
10836
  };
10837
+ "/v1/integrations/granola/install": {
10838
+ parameters: {
10839
+ query?: never;
10840
+ header?: never;
10841
+ path?: never;
10842
+ cookie?: never;
10843
+ };
10844
+ get?: never;
10845
+ put?: never;
10846
+ /**
10847
+ * Install Granola integration
10848
+ * @description Install or upsert a Granola integration for the authenticated owner. Verifies the pasted API key against the Granola public API before storing it in the secret store. Re-pasting the same key updates the existing connection.
10849
+ */
10850
+ post: {
10851
+ parameters: {
10852
+ query?: never;
10853
+ header?: never;
10854
+ path?: never;
10855
+ cookie?: never;
10856
+ };
10857
+ requestBody?: {
10858
+ content: {
10859
+ "application/json": {
10860
+ apiKey: string;
10861
+ displayName?: string;
10862
+ };
10863
+ };
10864
+ };
10865
+ responses: {
10866
+ /** @description Granola integration installed */
10867
+ 200: {
10868
+ headers: {
10869
+ [name: string]: unknown;
10870
+ };
10871
+ content: {
10872
+ "application/json": {
10873
+ created: boolean;
10874
+ integrationId: string;
10875
+ };
10876
+ };
10877
+ };
10878
+ /** @description Unauthorized */
10879
+ 401: {
10880
+ headers: {
10881
+ [name: string]: unknown;
10882
+ };
10883
+ content: {
10884
+ "application/json": components["schemas"]["Error"];
10885
+ };
10886
+ };
10887
+ /** @description Insufficient permissions */
10888
+ 403: {
10889
+ headers: {
10890
+ [name: string]: unknown;
10891
+ };
10892
+ content: {
10893
+ "application/json": components["schemas"]["Error"];
10894
+ };
10895
+ };
10896
+ /** @description Granola rejected the API key (invalid key or plan does not include API access) */
10897
+ 422: {
10898
+ headers: {
10899
+ [name: string]: unknown;
10900
+ };
10901
+ content: {
10902
+ "application/json": components["schemas"]["Error"];
10903
+ };
10904
+ };
10905
+ /** @description Internal server error */
10906
+ 500: {
10907
+ headers: {
10908
+ [name: string]: unknown;
10909
+ };
10910
+ content: {
10911
+ "application/json": components["schemas"]["Error"];
10912
+ };
10913
+ };
10914
+ /** @description Granola API unreachable during key verification */
10915
+ 502: {
10916
+ headers: {
10917
+ [name: string]: unknown;
10918
+ };
10919
+ content: {
10920
+ "application/json": components["schemas"]["Error"];
10921
+ };
10922
+ };
10923
+ };
10924
+ };
10925
+ delete?: never;
10926
+ options?: never;
10927
+ head?: never;
10928
+ patch?: never;
10929
+ trace?: never;
10930
+ };
10758
10931
  "/v1/integrations/slack/install": {
10759
10932
  parameters: {
10760
10933
  query?: never;
@@ -14016,6 +14189,8 @@ interface paths {
14016
14189
  };
14017
14190
  content: {
14018
14191
  "application/json": {
14192
+ /** @description When the response was served from cache, the cache write time. Null for fresh responses. */
14193
+ cachedAt?: string | null;
14019
14194
  data: {
14020
14195
  byCategory: {
14021
14196
  [key: string]: number;
@@ -17846,6 +18021,16 @@ interface paths {
17846
18021
  sourceId?: string;
17847
18022
  syncEnabled?: boolean;
17848
18023
  };
18024
+ internalDocs?: {
18025
+ content?: string;
18026
+ resources?: {
18027
+ content?: string;
18028
+ title: string;
18029
+ type: string;
18030
+ url?: string;
18031
+ }[];
18032
+ tags?: string[];
18033
+ } | null;
17849
18034
  preferredModels?: string[];
17850
18035
  productGoal?: string;
17851
18036
  /** @enum {string} */
@@ -18800,6 +18985,16 @@ interface paths {
18800
18985
  sourceId?: string;
18801
18986
  syncEnabled?: boolean;
18802
18987
  };
18988
+ internalDocs?: {
18989
+ content?: string;
18990
+ resources?: {
18991
+ content?: string;
18992
+ title: string;
18993
+ type: string;
18994
+ url?: string;
18995
+ }[];
18996
+ tags?: string[];
18997
+ } | null;
18803
18998
  preferredModels?: string[];
18804
18999
  productGoal?: string;
18805
19000
  /** @enum {string} */
@@ -31989,7 +32184,9 @@ interface paths {
31989
32184
  dashboardUrl: string;
31990
32185
  email: string | null;
31991
32186
  features: {
32187
+ dashboardAssistantModel: string;
31992
32188
  enableAgentSkills: boolean;
32189
+ enableDashboardAssistant: boolean;
31993
32190
  productGeneratorModel: string;
31994
32191
  };
31995
32192
  id: string;
@@ -32618,6 +32815,7 @@ interface components {
32618
32815
  parameters?: {
32619
32816
  [key: string]: unknown;
32620
32817
  };
32818
+ reason?: string;
32621
32819
  seq: number;
32622
32820
  startedAt: string;
32623
32821
  timeout: number;
@@ -32966,6 +33164,7 @@ interface components {
32966
33164
  parameters?: {
32967
33165
  [key: string]: unknown;
32968
33166
  };
33167
+ reason?: string;
32969
33168
  seq: number;
32970
33169
  startedAt: string;
32971
33170
  timeout: number;
@@ -33274,6 +33473,7 @@ interface components {
33274
33473
  when: string;
33275
33474
  } | ({
33276
33475
  executionId?: string;
33476
+ reason?: string;
33277
33477
  seq?: number;
33278
33478
  /** @enum {string} */
33279
33479
  type: "step_await";
@@ -33670,6 +33870,7 @@ interface components {
33670
33870
  when: string;
33671
33871
  } | ({
33672
33872
  executionId?: string;
33873
+ reason?: string;
33673
33874
  seq?: number;
33674
33875
  /** @enum {string} */
33675
33876
  type: "step_await";
@@ -38845,6 +39046,13 @@ interface AgentApprovalStartEvent extends BaseAgentEvent {
38845
39046
  toolName: string;
38846
39047
  toolType: string;
38847
39048
  description: string;
39049
+ /**
39050
+ * Agent-authored justification for this specific call, extracted from the
39051
+ * reserved `_approvalReason` parameter. The agent's claim about its intent
39052
+ * — attribute it to the agent and render it as plain text. Mirrors
39053
+ * `agentApprovalStartEventSchema` in `@runtypelabs/shared`.
39054
+ */
39055
+ reason?: string;
38848
39056
  parameters?: Record<string, unknown>;
38849
39057
  timeout: number;
38850
39058
  startedAt: string;
package/dist/index.d.ts CHANGED
@@ -722,6 +722,7 @@ interface paths {
722
722
  };
723
723
  tools?: {
724
724
  approval?: {
725
+ requestReason?: boolean;
725
726
  require: string[] | boolean;
726
727
  timeout?: number;
727
728
  };
@@ -1377,6 +1378,7 @@ interface paths {
1377
1378
  };
1378
1379
  tools?: {
1379
1380
  approval?: {
1381
+ requestReason?: boolean;
1380
1382
  require: string[] | boolean;
1381
1383
  timeout?: number;
1382
1384
  };
@@ -10672,6 +10674,83 @@ interface paths {
10672
10674
  patch?: never;
10673
10675
  trace?: never;
10674
10676
  };
10677
+ "/v1/integrations/connections": {
10678
+ parameters: {
10679
+ query?: never;
10680
+ header?: never;
10681
+ path?: never;
10682
+ cookie?: never;
10683
+ };
10684
+ /**
10685
+ * List connected integration accounts
10686
+ * @description List the caller's connected integration accounts (with their integration IDs) for a provider. Use the integration ID to pin a tool instance to a specific connection, e.g. a Granola tool's toolConfigs integrationId.
10687
+ */
10688
+ get: {
10689
+ parameters: {
10690
+ query: {
10691
+ /** @description Integration provider, e.g. granola or slack. */
10692
+ provider: string;
10693
+ };
10694
+ header?: never;
10695
+ path?: never;
10696
+ cookie?: never;
10697
+ };
10698
+ requestBody?: never;
10699
+ responses: {
10700
+ /** @description Connected accounts for the provider */
10701
+ 200: {
10702
+ headers: {
10703
+ [name: string]: unknown;
10704
+ };
10705
+ content: {
10706
+ "application/json": {
10707
+ connections: {
10708
+ accountName: string;
10709
+ createdAt: string;
10710
+ integrationId: string;
10711
+ provider: string;
10712
+ status: string;
10713
+ }[];
10714
+ };
10715
+ };
10716
+ };
10717
+ /** @description Unauthorized */
10718
+ 401: {
10719
+ headers: {
10720
+ [name: string]: unknown;
10721
+ };
10722
+ content: {
10723
+ "application/json": components["schemas"]["Error"];
10724
+ };
10725
+ };
10726
+ /** @description Insufficient permissions */
10727
+ 403: {
10728
+ headers: {
10729
+ [name: string]: unknown;
10730
+ };
10731
+ content: {
10732
+ "application/json": components["schemas"]["Error"];
10733
+ };
10734
+ };
10735
+ /** @description Internal server error */
10736
+ 500: {
10737
+ headers: {
10738
+ [name: string]: unknown;
10739
+ };
10740
+ content: {
10741
+ "application/json": components["schemas"]["Error"];
10742
+ };
10743
+ };
10744
+ };
10745
+ };
10746
+ put?: never;
10747
+ post?: never;
10748
+ delete?: never;
10749
+ options?: never;
10750
+ head?: never;
10751
+ patch?: never;
10752
+ trace?: never;
10753
+ };
10675
10754
  "/v1/integrations/credentials-status": {
10676
10755
  parameters: {
10677
10756
  query?: never;
@@ -10755,6 +10834,100 @@ interface paths {
10755
10834
  patch?: never;
10756
10835
  trace?: never;
10757
10836
  };
10837
+ "/v1/integrations/granola/install": {
10838
+ parameters: {
10839
+ query?: never;
10840
+ header?: never;
10841
+ path?: never;
10842
+ cookie?: never;
10843
+ };
10844
+ get?: never;
10845
+ put?: never;
10846
+ /**
10847
+ * Install Granola integration
10848
+ * @description Install or upsert a Granola integration for the authenticated owner. Verifies the pasted API key against the Granola public API before storing it in the secret store. Re-pasting the same key updates the existing connection.
10849
+ */
10850
+ post: {
10851
+ parameters: {
10852
+ query?: never;
10853
+ header?: never;
10854
+ path?: never;
10855
+ cookie?: never;
10856
+ };
10857
+ requestBody?: {
10858
+ content: {
10859
+ "application/json": {
10860
+ apiKey: string;
10861
+ displayName?: string;
10862
+ };
10863
+ };
10864
+ };
10865
+ responses: {
10866
+ /** @description Granola integration installed */
10867
+ 200: {
10868
+ headers: {
10869
+ [name: string]: unknown;
10870
+ };
10871
+ content: {
10872
+ "application/json": {
10873
+ created: boolean;
10874
+ integrationId: string;
10875
+ };
10876
+ };
10877
+ };
10878
+ /** @description Unauthorized */
10879
+ 401: {
10880
+ headers: {
10881
+ [name: string]: unknown;
10882
+ };
10883
+ content: {
10884
+ "application/json": components["schemas"]["Error"];
10885
+ };
10886
+ };
10887
+ /** @description Insufficient permissions */
10888
+ 403: {
10889
+ headers: {
10890
+ [name: string]: unknown;
10891
+ };
10892
+ content: {
10893
+ "application/json": components["schemas"]["Error"];
10894
+ };
10895
+ };
10896
+ /** @description Granola rejected the API key (invalid key or plan does not include API access) */
10897
+ 422: {
10898
+ headers: {
10899
+ [name: string]: unknown;
10900
+ };
10901
+ content: {
10902
+ "application/json": components["schemas"]["Error"];
10903
+ };
10904
+ };
10905
+ /** @description Internal server error */
10906
+ 500: {
10907
+ headers: {
10908
+ [name: string]: unknown;
10909
+ };
10910
+ content: {
10911
+ "application/json": components["schemas"]["Error"];
10912
+ };
10913
+ };
10914
+ /** @description Granola API unreachable during key verification */
10915
+ 502: {
10916
+ headers: {
10917
+ [name: string]: unknown;
10918
+ };
10919
+ content: {
10920
+ "application/json": components["schemas"]["Error"];
10921
+ };
10922
+ };
10923
+ };
10924
+ };
10925
+ delete?: never;
10926
+ options?: never;
10927
+ head?: never;
10928
+ patch?: never;
10929
+ trace?: never;
10930
+ };
10758
10931
  "/v1/integrations/slack/install": {
10759
10932
  parameters: {
10760
10933
  query?: never;
@@ -14016,6 +14189,8 @@ interface paths {
14016
14189
  };
14017
14190
  content: {
14018
14191
  "application/json": {
14192
+ /** @description When the response was served from cache, the cache write time. Null for fresh responses. */
14193
+ cachedAt?: string | null;
14019
14194
  data: {
14020
14195
  byCategory: {
14021
14196
  [key: string]: number;
@@ -17846,6 +18021,16 @@ interface paths {
17846
18021
  sourceId?: string;
17847
18022
  syncEnabled?: boolean;
17848
18023
  };
18024
+ internalDocs?: {
18025
+ content?: string;
18026
+ resources?: {
18027
+ content?: string;
18028
+ title: string;
18029
+ type: string;
18030
+ url?: string;
18031
+ }[];
18032
+ tags?: string[];
18033
+ } | null;
17849
18034
  preferredModels?: string[];
17850
18035
  productGoal?: string;
17851
18036
  /** @enum {string} */
@@ -18800,6 +18985,16 @@ interface paths {
18800
18985
  sourceId?: string;
18801
18986
  syncEnabled?: boolean;
18802
18987
  };
18988
+ internalDocs?: {
18989
+ content?: string;
18990
+ resources?: {
18991
+ content?: string;
18992
+ title: string;
18993
+ type: string;
18994
+ url?: string;
18995
+ }[];
18996
+ tags?: string[];
18997
+ } | null;
18803
18998
  preferredModels?: string[];
18804
18999
  productGoal?: string;
18805
19000
  /** @enum {string} */
@@ -31989,7 +32184,9 @@ interface paths {
31989
32184
  dashboardUrl: string;
31990
32185
  email: string | null;
31991
32186
  features: {
32187
+ dashboardAssistantModel: string;
31992
32188
  enableAgentSkills: boolean;
32189
+ enableDashboardAssistant: boolean;
31993
32190
  productGeneratorModel: string;
31994
32191
  };
31995
32192
  id: string;
@@ -32618,6 +32815,7 @@ interface components {
32618
32815
  parameters?: {
32619
32816
  [key: string]: unknown;
32620
32817
  };
32818
+ reason?: string;
32621
32819
  seq: number;
32622
32820
  startedAt: string;
32623
32821
  timeout: number;
@@ -32966,6 +33164,7 @@ interface components {
32966
33164
  parameters?: {
32967
33165
  [key: string]: unknown;
32968
33166
  };
33167
+ reason?: string;
32969
33168
  seq: number;
32970
33169
  startedAt: string;
32971
33170
  timeout: number;
@@ -33274,6 +33473,7 @@ interface components {
33274
33473
  when: string;
33275
33474
  } | ({
33276
33475
  executionId?: string;
33476
+ reason?: string;
33277
33477
  seq?: number;
33278
33478
  /** @enum {string} */
33279
33479
  type: "step_await";
@@ -33670,6 +33870,7 @@ interface components {
33670
33870
  when: string;
33671
33871
  } | ({
33672
33872
  executionId?: string;
33873
+ reason?: string;
33673
33874
  seq?: number;
33674
33875
  /** @enum {string} */
33675
33876
  type: "step_await";
@@ -38845,6 +39046,13 @@ interface AgentApprovalStartEvent extends BaseAgentEvent {
38845
39046
  toolName: string;
38846
39047
  toolType: string;
38847
39048
  description: string;
39049
+ /**
39050
+ * Agent-authored justification for this specific call, extracted from the
39051
+ * reserved `_approvalReason` parameter. The agent's claim about its intent
39052
+ * — attribute it to the agent and render it as plain text. Mirrors
39053
+ * `agentApprovalStartEventSchema` in `@runtypelabs/shared`.
39054
+ */
39055
+ reason?: string;
38848
39056
  parameters?: Record<string, unknown>;
38849
39057
  timeout: number;
38850
39058
  startedAt: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runtypelabs/sdk",
3
- "version": "4.7.1",
3
+ "version": "4.8.1",
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",