@themoltnet/pi-extension 0.35.3 → 0.35.4

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 (2) hide show
  1. package/dist/index.js +282 -3
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -890,6 +890,145 @@ var getCryptoIdentity = (options) => (options?.client ?? client).get({
890
890
  url: "/crypto/identity",
891
891
  ...options
892
892
  });
893
+ var listSigningCredentials = (options) => (options.client ?? client).get({
894
+ security: [
895
+ {
896
+ scheme: "bearer",
897
+ type: "http"
898
+ },
899
+ {
900
+ name: "X-Moltnet-Session-Token",
901
+ type: "apiKey"
902
+ },
903
+ {
904
+ in: "cookie",
905
+ name: "ory_kratos_session",
906
+ type: "apiKey"
907
+ }
908
+ ],
909
+ url: "/crypto/signing-credentials",
910
+ ...options
911
+ });
912
+ var beginSigningCredentialRegistration = (options) => (options.client ?? client).post({
913
+ security: [{
914
+ name: "X-Moltnet-Session-Token",
915
+ type: "apiKey"
916
+ }, {
917
+ in: "cookie",
918
+ name: "ory_kratos_session",
919
+ type: "apiKey"
920
+ }],
921
+ url: "/crypto/signing-credentials/registrations",
922
+ ...options,
923
+ headers: {
924
+ "Content-Type": "application/json",
925
+ ...options.headers
926
+ }
927
+ });
928
+ var completeSigningCredentialRegistration = (options) => (options.client ?? client).post({
929
+ security: [{
930
+ name: "X-Moltnet-Session-Token",
931
+ type: "apiKey"
932
+ }, {
933
+ in: "cookie",
934
+ name: "ory_kratos_session",
935
+ type: "apiKey"
936
+ }],
937
+ url: "/crypto/signing-credentials/registrations/{id}/complete",
938
+ ...options,
939
+ headers: {
940
+ "Content-Type": "application/json",
941
+ ...options.headers
942
+ }
943
+ });
944
+ var getSigningCredential = (options) => (options.client ?? client).get({
945
+ security: [
946
+ {
947
+ scheme: "bearer",
948
+ type: "http"
949
+ },
950
+ {
951
+ name: "X-Moltnet-Session-Token",
952
+ type: "apiKey"
953
+ },
954
+ {
955
+ in: "cookie",
956
+ name: "ory_kratos_session",
957
+ type: "apiKey"
958
+ }
959
+ ],
960
+ url: "/crypto/signing-credentials/{id}",
961
+ ...options
962
+ });
963
+ var approveSigningCredential = (options) => (options.client ?? client).post({
964
+ security: [
965
+ {
966
+ scheme: "bearer",
967
+ type: "http"
968
+ },
969
+ {
970
+ name: "X-Moltnet-Session-Token",
971
+ type: "apiKey"
972
+ },
973
+ {
974
+ in: "cookie",
975
+ name: "ory_kratos_session",
976
+ type: "apiKey"
977
+ }
978
+ ],
979
+ url: "/crypto/signing-credentials/{id}/approve",
980
+ ...options,
981
+ headers: {
982
+ "Content-Type": "application/json",
983
+ ...options.headers
984
+ }
985
+ });
986
+ var revokeSigningCredential = (options) => (options.client ?? client).post({
987
+ security: [
988
+ {
989
+ scheme: "bearer",
990
+ type: "http"
991
+ },
992
+ {
993
+ name: "X-Moltnet-Session-Token",
994
+ type: "apiKey"
995
+ },
996
+ {
997
+ in: "cookie",
998
+ name: "ory_kratos_session",
999
+ type: "apiKey"
1000
+ }
1001
+ ],
1002
+ url: "/crypto/signing-credentials/{id}/revoke",
1003
+ ...options,
1004
+ headers: {
1005
+ "Content-Type": "application/json",
1006
+ ...options.headers
1007
+ }
1008
+ });
1009
+ var suspendSigningCredential = (options) => (options.client ?? client).post({
1010
+ security: [
1011
+ {
1012
+ scheme: "bearer",
1013
+ type: "http"
1014
+ },
1015
+ {
1016
+ name: "X-Moltnet-Session-Token",
1017
+ type: "apiKey"
1018
+ },
1019
+ {
1020
+ in: "cookie",
1021
+ name: "ory_kratos_session",
1022
+ type: "apiKey"
1023
+ }
1024
+ ],
1025
+ url: "/crypto/signing-credentials/{id}/suspend",
1026
+ ...options,
1027
+ headers: {
1028
+ "Content-Type": "application/json",
1029
+ ...options.headers
1030
+ }
1031
+ });
893
1032
  /**
894
1033
  * List signing requests for the authenticated agent.
895
1034
  */
@@ -960,6 +1099,54 @@ var getSigningRequest = (options) => (options.client ?? client).get({
960
1099
  url: "/crypto/signing-requests/{id}",
961
1100
  ...options
962
1101
  });
1102
+ var claimSigningRequest = (options) => (options.client ?? client).post({
1103
+ security: [{
1104
+ name: "X-Moltnet-Session-Token",
1105
+ type: "apiKey"
1106
+ }, {
1107
+ in: "cookie",
1108
+ name: "ory_kratos_session",
1109
+ type: "apiKey"
1110
+ }],
1111
+ url: "/crypto/signing-requests/{id}/claim",
1112
+ ...options,
1113
+ headers: {
1114
+ "Content-Type": "application/json",
1115
+ ...options.headers
1116
+ }
1117
+ });
1118
+ var completeSigningRequest = (options) => (options.client ?? client).post({
1119
+ security: [{
1120
+ name: "X-Moltnet-Session-Token",
1121
+ type: "apiKey"
1122
+ }, {
1123
+ in: "cookie",
1124
+ name: "ory_kratos_session",
1125
+ type: "apiKey"
1126
+ }],
1127
+ url: "/crypto/signing-requests/{id}/complete",
1128
+ ...options,
1129
+ headers: {
1130
+ "Content-Type": "application/json",
1131
+ ...options.headers
1132
+ }
1133
+ });
1134
+ var rejectSigningRequest = (options) => (options.client ?? client).post({
1135
+ security: [{
1136
+ name: "X-Moltnet-Session-Token",
1137
+ type: "apiKey"
1138
+ }, {
1139
+ in: "cookie",
1140
+ name: "ory_kratos_session",
1141
+ type: "apiKey"
1142
+ }],
1143
+ url: "/crypto/signing-requests/{id}/reject",
1144
+ ...options,
1145
+ headers: {
1146
+ "Content-Type": "application/json",
1147
+ ...options.headers
1148
+ }
1149
+ });
963
1150
  /**
964
1151
  * Submit a signature for a signing request. The DBOS workflow verifies the signature and updates the request status.
965
1152
  */
@@ -3161,7 +3348,7 @@ function createAuthNamespace(context) {
3161
3348
  }
3162
3349
  //#endregion
3163
3350
  //#region ../sdk/src/namespaces/crypto.ts
3164
- function createCryptoNamespace(context, signingRequests) {
3351
+ function createCryptoNamespace(context, signingRequests, signingCredentials) {
3165
3352
  const { client, auth } = context;
3166
3353
  return {
3167
3354
  async identity() {
@@ -3176,7 +3363,8 @@ function createCryptoNamespace(context, signingRequests) {
3176
3363
  body
3177
3364
  }));
3178
3365
  },
3179
- signingRequests
3366
+ signingRequests,
3367
+ signingCredentials
3180
3368
  };
3181
3369
  }
3182
3370
  //#endregion
@@ -5468,6 +5656,70 @@ function createRuntimeSlotsNamespace(context) {
5468
5656
  };
5469
5657
  }
5470
5658
  //#endregion
5659
+ //#region ../sdk/src/namespaces/signing-credentials.ts
5660
+ function createSigningCredentialsNamespace(context) {
5661
+ const { client, auth } = context;
5662
+ return {
5663
+ async list(query, options) {
5664
+ return unwrapResult(await listSigningCredentials({
5665
+ client,
5666
+ auth,
5667
+ headers: requiredTeamHeaders(options),
5668
+ query
5669
+ }));
5670
+ },
5671
+ async get(id, options) {
5672
+ return unwrapResult(await getSigningCredential({
5673
+ client,
5674
+ auth,
5675
+ headers: requiredTeamHeaders(options),
5676
+ path: { id }
5677
+ }));
5678
+ },
5679
+ async startRegistration(body, options) {
5680
+ return unwrapResult(await beginSigningCredentialRegistration({
5681
+ client,
5682
+ auth,
5683
+ headers: requiredTeamHeaders(options),
5684
+ body
5685
+ }));
5686
+ },
5687
+ async completeRegistration(id, body, options) {
5688
+ return unwrapResult(await completeSigningCredentialRegistration({
5689
+ client,
5690
+ auth,
5691
+ headers: requiredTeamHeaders(options),
5692
+ path: { id },
5693
+ body
5694
+ }));
5695
+ },
5696
+ async approve(id, options) {
5697
+ return unwrapResult(await approveSigningCredential({
5698
+ client,
5699
+ auth,
5700
+ headers: requiredTeamHeaders(options),
5701
+ path: { id }
5702
+ }));
5703
+ },
5704
+ async suspend(id, options) {
5705
+ return unwrapResult(await suspendSigningCredential({
5706
+ client,
5707
+ auth,
5708
+ headers: requiredTeamHeaders(options),
5709
+ path: { id }
5710
+ }));
5711
+ },
5712
+ async revoke(id, options) {
5713
+ return unwrapResult(await revokeSigningCredential({
5714
+ client,
5715
+ auth,
5716
+ headers: requiredTeamHeaders(options),
5717
+ path: { id }
5718
+ }));
5719
+ }
5720
+ };
5721
+ }
5722
+ //#endregion
5471
5723
  //#region ../sdk/src/namespaces/signing-requests.ts
5472
5724
  function createSigningRequestsNamespace(context) {
5473
5725
  const { client, auth } = context;
@@ -5500,6 +5752,33 @@ function createSigningRequestsNamespace(context) {
5500
5752
  path: { id },
5501
5753
  body
5502
5754
  }));
5755
+ },
5756
+ async claim(id, body, options) {
5757
+ return unwrapResult(await claimSigningRequest({
5758
+ client,
5759
+ auth,
5760
+ headers: requiredTeamHeaders(options),
5761
+ path: { id },
5762
+ body
5763
+ }));
5764
+ },
5765
+ async complete(id, body, options) {
5766
+ return unwrapResult(await completeSigningRequest({
5767
+ client,
5768
+ auth,
5769
+ headers: requiredTeamHeaders(options),
5770
+ path: { id },
5771
+ body
5772
+ }));
5773
+ },
5774
+ async reject(id, body, options) {
5775
+ return unwrapResult(await rejectSigningRequest({
5776
+ client,
5777
+ auth,
5778
+ headers: requiredTeamHeaders(options),
5779
+ path: { id },
5780
+ body
5781
+ }));
5503
5782
  }
5504
5783
  };
5505
5784
  }
@@ -15761,7 +16040,7 @@ function createAgent(options) {
15761
16040
  packs: createPacksNamespace(context),
15762
16041
  entries: createEntriesNamespace(context),
15763
16042
  agents: createAgentsNamespace(context),
15764
- crypto: createCryptoNamespace(context, createSigningRequestsNamespace(context)),
16043
+ crypto: createCryptoNamespace(context, createSigningRequestsNamespace(context), createSigningCredentialsNamespace(context)),
15765
16044
  vouch: createVouchNamespace(context),
15766
16045
  auth: createAuthNamespace(context),
15767
16046
  recovery: createRecoveryNamespace(context),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@themoltnet/pi-extension",
3
- "version": "0.35.3",
3
+ "version": "0.35.4",
4
4
  "type": "module",
5
5
  "description": "MoltNet pi extension — sandboxed tool execution in Gondolin VMs with MoltNet identity and persistent memory",
6
6
  "keywords": [
@@ -36,8 +36,8 @@
36
36
  "@earendil-works/gondolin": "^0.9.1",
37
37
  "@opentelemetry/api": "^1.9.0",
38
38
  "typebox": "^1.2.8",
39
- "@themoltnet/agent-runtime": "0.36.3",
40
- "@themoltnet/sdk": "0.124.0"
39
+ "@themoltnet/sdk": "0.125.0",
40
+ "@themoltnet/agent-runtime": "0.36.4"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "@earendil-works/pi-coding-agent": ">=0.74.0",