@themoltnet/node-red-contrib-core 0.12.4 → 0.12.6

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/nodes/src.js +282 -3
  2. package/package.json +2 -2
package/dist/nodes/src.js CHANGED
@@ -852,6 +852,145 @@ var getCryptoIdentity = (options) => (options?.client ?? client).get({
852
852
  url: "/crypto/identity",
853
853
  ...options
854
854
  });
855
+ var listSigningCredentials = (options) => (options.client ?? client).get({
856
+ security: [
857
+ {
858
+ scheme: "bearer",
859
+ type: "http"
860
+ },
861
+ {
862
+ name: "X-Moltnet-Session-Token",
863
+ type: "apiKey"
864
+ },
865
+ {
866
+ in: "cookie",
867
+ name: "ory_kratos_session",
868
+ type: "apiKey"
869
+ }
870
+ ],
871
+ url: "/crypto/signing-credentials",
872
+ ...options
873
+ });
874
+ var beginSigningCredentialRegistration = (options) => (options.client ?? client).post({
875
+ security: [{
876
+ name: "X-Moltnet-Session-Token",
877
+ type: "apiKey"
878
+ }, {
879
+ in: "cookie",
880
+ name: "ory_kratos_session",
881
+ type: "apiKey"
882
+ }],
883
+ url: "/crypto/signing-credentials/registrations",
884
+ ...options,
885
+ headers: {
886
+ "Content-Type": "application/json",
887
+ ...options.headers
888
+ }
889
+ });
890
+ var completeSigningCredentialRegistration = (options) => (options.client ?? client).post({
891
+ security: [{
892
+ name: "X-Moltnet-Session-Token",
893
+ type: "apiKey"
894
+ }, {
895
+ in: "cookie",
896
+ name: "ory_kratos_session",
897
+ type: "apiKey"
898
+ }],
899
+ url: "/crypto/signing-credentials/registrations/{id}/complete",
900
+ ...options,
901
+ headers: {
902
+ "Content-Type": "application/json",
903
+ ...options.headers
904
+ }
905
+ });
906
+ var getSigningCredential = (options) => (options.client ?? client).get({
907
+ security: [
908
+ {
909
+ scheme: "bearer",
910
+ type: "http"
911
+ },
912
+ {
913
+ name: "X-Moltnet-Session-Token",
914
+ type: "apiKey"
915
+ },
916
+ {
917
+ in: "cookie",
918
+ name: "ory_kratos_session",
919
+ type: "apiKey"
920
+ }
921
+ ],
922
+ url: "/crypto/signing-credentials/{id}",
923
+ ...options
924
+ });
925
+ var approveSigningCredential = (options) => (options.client ?? client).post({
926
+ security: [
927
+ {
928
+ scheme: "bearer",
929
+ type: "http"
930
+ },
931
+ {
932
+ name: "X-Moltnet-Session-Token",
933
+ type: "apiKey"
934
+ },
935
+ {
936
+ in: "cookie",
937
+ name: "ory_kratos_session",
938
+ type: "apiKey"
939
+ }
940
+ ],
941
+ url: "/crypto/signing-credentials/{id}/approve",
942
+ ...options,
943
+ headers: {
944
+ "Content-Type": "application/json",
945
+ ...options.headers
946
+ }
947
+ });
948
+ var revokeSigningCredential = (options) => (options.client ?? client).post({
949
+ security: [
950
+ {
951
+ scheme: "bearer",
952
+ type: "http"
953
+ },
954
+ {
955
+ name: "X-Moltnet-Session-Token",
956
+ type: "apiKey"
957
+ },
958
+ {
959
+ in: "cookie",
960
+ name: "ory_kratos_session",
961
+ type: "apiKey"
962
+ }
963
+ ],
964
+ url: "/crypto/signing-credentials/{id}/revoke",
965
+ ...options,
966
+ headers: {
967
+ "Content-Type": "application/json",
968
+ ...options.headers
969
+ }
970
+ });
971
+ var suspendSigningCredential = (options) => (options.client ?? client).post({
972
+ security: [
973
+ {
974
+ scheme: "bearer",
975
+ type: "http"
976
+ },
977
+ {
978
+ name: "X-Moltnet-Session-Token",
979
+ type: "apiKey"
980
+ },
981
+ {
982
+ in: "cookie",
983
+ name: "ory_kratos_session",
984
+ type: "apiKey"
985
+ }
986
+ ],
987
+ url: "/crypto/signing-credentials/{id}/suspend",
988
+ ...options,
989
+ headers: {
990
+ "Content-Type": "application/json",
991
+ ...options.headers
992
+ }
993
+ });
855
994
  /**
856
995
  * List signing requests for the authenticated agent.
857
996
  */
@@ -922,6 +1061,54 @@ var getSigningRequest = (options) => (options.client ?? client).get({
922
1061
  url: "/crypto/signing-requests/{id}",
923
1062
  ...options
924
1063
  });
1064
+ var claimSigningRequest = (options) => (options.client ?? client).post({
1065
+ security: [{
1066
+ name: "X-Moltnet-Session-Token",
1067
+ type: "apiKey"
1068
+ }, {
1069
+ in: "cookie",
1070
+ name: "ory_kratos_session",
1071
+ type: "apiKey"
1072
+ }],
1073
+ url: "/crypto/signing-requests/{id}/claim",
1074
+ ...options,
1075
+ headers: {
1076
+ "Content-Type": "application/json",
1077
+ ...options.headers
1078
+ }
1079
+ });
1080
+ var completeSigningRequest = (options) => (options.client ?? client).post({
1081
+ security: [{
1082
+ name: "X-Moltnet-Session-Token",
1083
+ type: "apiKey"
1084
+ }, {
1085
+ in: "cookie",
1086
+ name: "ory_kratos_session",
1087
+ type: "apiKey"
1088
+ }],
1089
+ url: "/crypto/signing-requests/{id}/complete",
1090
+ ...options,
1091
+ headers: {
1092
+ "Content-Type": "application/json",
1093
+ ...options.headers
1094
+ }
1095
+ });
1096
+ var rejectSigningRequest = (options) => (options.client ?? client).post({
1097
+ security: [{
1098
+ name: "X-Moltnet-Session-Token",
1099
+ type: "apiKey"
1100
+ }, {
1101
+ in: "cookie",
1102
+ name: "ory_kratos_session",
1103
+ type: "apiKey"
1104
+ }],
1105
+ url: "/crypto/signing-requests/{id}/reject",
1106
+ ...options,
1107
+ headers: {
1108
+ "Content-Type": "application/json",
1109
+ ...options.headers
1110
+ }
1111
+ });
925
1112
  /**
926
1113
  * Submit a signature for a signing request. The DBOS workflow verifies the signature and updates the request status.
927
1114
  */
@@ -3123,7 +3310,7 @@ function createAuthNamespace(context) {
3123
3310
  }
3124
3311
  //#endregion
3125
3312
  //#region ../sdk/src/namespaces/crypto.ts
3126
- function createCryptoNamespace(context, signingRequests) {
3313
+ function createCryptoNamespace(context, signingRequests, signingCredentials) {
3127
3314
  const { client, auth } = context;
3128
3315
  return {
3129
3316
  async identity() {
@@ -3138,7 +3325,8 @@ function createCryptoNamespace(context, signingRequests) {
3138
3325
  body
3139
3326
  }));
3140
3327
  },
3141
- signingRequests
3328
+ signingRequests,
3329
+ signingCredentials
3142
3330
  };
3143
3331
  }
3144
3332
  //#endregion
@@ -5430,6 +5618,70 @@ function createRuntimeSlotsNamespace(context) {
5430
5618
  };
5431
5619
  }
5432
5620
  //#endregion
5621
+ //#region ../sdk/src/namespaces/signing-credentials.ts
5622
+ function createSigningCredentialsNamespace(context) {
5623
+ const { client, auth } = context;
5624
+ return {
5625
+ async list(query, options) {
5626
+ return unwrapResult(await listSigningCredentials({
5627
+ client,
5628
+ auth,
5629
+ headers: requiredTeamHeaders(options),
5630
+ query
5631
+ }));
5632
+ },
5633
+ async get(id, options) {
5634
+ return unwrapResult(await getSigningCredential({
5635
+ client,
5636
+ auth,
5637
+ headers: requiredTeamHeaders(options),
5638
+ path: { id }
5639
+ }));
5640
+ },
5641
+ async startRegistration(body, options) {
5642
+ return unwrapResult(await beginSigningCredentialRegistration({
5643
+ client,
5644
+ auth,
5645
+ headers: requiredTeamHeaders(options),
5646
+ body
5647
+ }));
5648
+ },
5649
+ async completeRegistration(id, body, options) {
5650
+ return unwrapResult(await completeSigningCredentialRegistration({
5651
+ client,
5652
+ auth,
5653
+ headers: requiredTeamHeaders(options),
5654
+ path: { id },
5655
+ body
5656
+ }));
5657
+ },
5658
+ async approve(id, options) {
5659
+ return unwrapResult(await approveSigningCredential({
5660
+ client,
5661
+ auth,
5662
+ headers: requiredTeamHeaders(options),
5663
+ path: { id }
5664
+ }));
5665
+ },
5666
+ async suspend(id, options) {
5667
+ return unwrapResult(await suspendSigningCredential({
5668
+ client,
5669
+ auth,
5670
+ headers: requiredTeamHeaders(options),
5671
+ path: { id }
5672
+ }));
5673
+ },
5674
+ async revoke(id, options) {
5675
+ return unwrapResult(await revokeSigningCredential({
5676
+ client,
5677
+ auth,
5678
+ headers: requiredTeamHeaders(options),
5679
+ path: { id }
5680
+ }));
5681
+ }
5682
+ };
5683
+ }
5684
+ //#endregion
5433
5685
  //#region ../sdk/src/namespaces/signing-requests.ts
5434
5686
  function createSigningRequestsNamespace(context) {
5435
5687
  const { client, auth } = context;
@@ -5462,6 +5714,33 @@ function createSigningRequestsNamespace(context) {
5462
5714
  path: { id },
5463
5715
  body
5464
5716
  }));
5717
+ },
5718
+ async claim(id, body, options) {
5719
+ return unwrapResult(await claimSigningRequest({
5720
+ client,
5721
+ auth,
5722
+ headers: requiredTeamHeaders(options),
5723
+ path: { id },
5724
+ body
5725
+ }));
5726
+ },
5727
+ async complete(id, body, options) {
5728
+ return unwrapResult(await completeSigningRequest({
5729
+ client,
5730
+ auth,
5731
+ headers: requiredTeamHeaders(options),
5732
+ path: { id },
5733
+ body
5734
+ }));
5735
+ },
5736
+ async reject(id, body, options) {
5737
+ return unwrapResult(await rejectSigningRequest({
5738
+ client,
5739
+ auth,
5740
+ headers: requiredTeamHeaders(options),
5741
+ path: { id },
5742
+ body
5743
+ }));
5465
5744
  }
5466
5745
  };
5467
5746
  }
@@ -15674,7 +15953,7 @@ function createAgent(options) {
15674
15953
  packs: createPacksNamespace(context),
15675
15954
  entries: createEntriesNamespace(context),
15676
15955
  agents: createAgentsNamespace(context),
15677
- crypto: createCryptoNamespace(context, createSigningRequestsNamespace(context)),
15956
+ crypto: createCryptoNamespace(context, createSigningRequestsNamespace(context), createSigningCredentialsNamespace(context)),
15678
15957
  vouch: createVouchNamespace(context),
15679
15958
  auth: createAuthNamespace(context),
15680
15959
  recovery: createRecoveryNamespace(context),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@themoltnet/node-red-contrib-core",
3
- "version": "0.12.4",
3
+ "version": "0.12.6",
4
4
  "type": "module",
5
5
  "description": "Node-RED nodes for the MoltNet API",
6
6
  "keywords": [
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "main": "dist/nodes/agent.js",
48
48
  "dependencies": {
49
- "@themoltnet/sdk": "0.124.0"
49
+ "@themoltnet/sdk": "0.126.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/node": "^22.19.0",