@cubist-labs/cubesigner-sdk 0.3.23 → 0.3.26

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 (89) hide show
  1. package/dist/cjs/package.json +1 -1
  2. package/dist/cjs/src/api.d.ts +4 -4
  3. package/dist/cjs/src/api.js +5 -4
  4. package/dist/cjs/src/client.d.ts +4 -4
  5. package/dist/cjs/src/client.js +2 -2
  6. package/dist/cjs/src/env.js +9 -29
  7. package/dist/cjs/src/index.d.ts +0 -2
  8. package/dist/cjs/src/index.js +1 -3
  9. package/dist/cjs/src/org.d.ts +22 -1
  10. package/dist/cjs/src/org.js +1 -1
  11. package/dist/cjs/src/role.d.ts +2 -1
  12. package/dist/cjs/src/role.js +1 -1
  13. package/dist/cjs/src/schema.d.ts +29 -29
  14. package/dist/cjs/src/schema.js +1 -1
  15. package/dist/cjs/src/schema_types.d.ts +3 -1
  16. package/dist/cjs/src/schema_types.js +1 -1
  17. package/dist/esm/package.json +1 -1
  18. package/dist/esm/src/api.d.ts +4 -4
  19. package/dist/esm/src/api.js +5 -4
  20. package/dist/esm/src/client.d.ts +4 -4
  21. package/dist/esm/src/client.js +2 -2
  22. package/dist/esm/src/env.js +4 -4
  23. package/dist/esm/src/index.d.ts +0 -2
  24. package/dist/esm/src/index.js +1 -3
  25. package/dist/esm/src/org.d.ts +22 -1
  26. package/dist/esm/src/org.js +1 -1
  27. package/dist/esm/src/role.d.ts +2 -1
  28. package/dist/esm/src/role.js +1 -1
  29. package/dist/esm/src/schema.d.ts +29 -29
  30. package/dist/esm/src/schema.js +1 -1
  31. package/dist/esm/src/schema_types.d.ts +3 -1
  32. package/dist/esm/src/schema_types.js +1 -1
  33. package/package.json +1 -1
  34. package/src/api.ts +7 -6
  35. package/src/client.ts +3 -3
  36. package/src/env.ts +3 -3
  37. package/src/index.ts +0 -2
  38. package/src/org.ts +23 -1
  39. package/src/role.ts +4 -3
  40. package/src/schema.ts +29 -29
  41. package/src/schema_types.ts +3 -1
  42. package/tsconfig.json +1 -0
  43. package/dist/cjs/src/org_event_processor.d.ts +0 -57
  44. package/dist/cjs/src/org_event_processor.js +0 -137
  45. package/dist/esm/src/org_event_processor.d.ts +0 -57
  46. package/dist/esm/src/org_event_processor.js +0 -133
  47. package/dist/package.json +0 -36
  48. package/dist/spec/env/beta.json +0 -9
  49. package/dist/spec/env/gamma.json +0 -9
  50. package/dist/spec/env/prod.json +0 -9
  51. package/dist/src/api.d.ts +0 -634
  52. package/dist/src/api.js +0 -1309
  53. package/dist/src/client.d.ts +0 -575
  54. package/dist/src/client.js +0 -381
  55. package/dist/src/env.d.ts +0 -15
  56. package/dist/src/env.js +0 -35
  57. package/dist/src/error.d.ts +0 -29
  58. package/dist/src/error.js +0 -36
  59. package/dist/src/events.d.ts +0 -84
  60. package/dist/src/events.js +0 -195
  61. package/dist/src/index.d.ts +0 -207
  62. package/dist/src/index.js +0 -308
  63. package/dist/src/key.d.ts +0 -152
  64. package/dist/src/key.js +0 -242
  65. package/dist/src/mfa.d.ts +0 -94
  66. package/dist/src/mfa.js +0 -169
  67. package/dist/src/org.d.ts +0 -99
  68. package/dist/src/org.js +0 -95
  69. package/dist/src/paginator.d.ts +0 -76
  70. package/dist/src/paginator.js +0 -99
  71. package/dist/src/response.d.ts +0 -101
  72. package/dist/src/response.js +0 -164
  73. package/dist/src/role.d.ts +0 -283
  74. package/dist/src/role.js +0 -253
  75. package/dist/src/schema.d.ts +0 -6209
  76. package/dist/src/schema.js +0 -7
  77. package/dist/src/schema_types.d.ts +0 -113
  78. package/dist/src/schema_types.js +0 -3
  79. package/dist/src/session/session_storage.d.ts +0 -47
  80. package/dist/src/session/session_storage.js +0 -76
  81. package/dist/src/session/signer_session_manager.d.ts +0 -125
  82. package/dist/src/session/signer_session_manager.js +0 -239
  83. package/dist/src/signer_session.d.ts +0 -41
  84. package/dist/src/signer_session.js +0 -77
  85. package/dist/src/user_export.d.ts +0 -52
  86. package/dist/src/user_export.js +0 -129
  87. package/dist/src/util.d.ts +0 -61
  88. package/dist/src/util.js +0 -97
  89. package/src/org_event_processor.ts +0 -173
@@ -829,10 +829,10 @@ export interface components {
829
829
  };
830
830
  AddThirdPartyUserRequest: {
831
831
  /**
832
- * @description User email
832
+ * @description Optional user email
833
833
  * @example alice@example.com
834
834
  */
835
- email: string;
835
+ email?: string | null;
836
836
  identity: components["schemas"]["OIDCIdentity"];
837
837
  /** @description Optional login MFA policy */
838
838
  mfa_policy?: unknown;
@@ -1104,6 +1104,31 @@ export interface components {
1104
1104
  /** @enum {string} */
1105
1105
  type: "fido";
1106
1106
  };
1107
+ CreateAndUpdateKeyProperties: {
1108
+ /**
1109
+ * @description Set this key's metadata. Validation regex: ^[A-Za-z0-9_=+/ \-\.\,]{0,1024}$
1110
+ * @example Contract admin key
1111
+ */
1112
+ metadata?: string | null;
1113
+ /**
1114
+ * @description Specify a user other than themselves to be the (potentially new) owner of the key.
1115
+ * The specified owner must be an existing user who is a member of the same org.
1116
+ * @example User#c3b9379c-4e8c-4216-bd0a-65ace53cf98f
1117
+ */
1118
+ owner?: string | null;
1119
+ /**
1120
+ * @description Set this key's policies. For an existing key, this overwrites all its policies.
1121
+ * @example [
1122
+ * "AllowRawBlobSigning",
1123
+ * {
1124
+ * "RequireMfa": {
1125
+ * "count": 1
1126
+ * }
1127
+ * }
1128
+ * ]
1129
+ */
1130
+ policy?: Record<string, never>[] | null;
1131
+ };
1107
1132
  CreateKeyImportKeyResponse: components["schemas"]["KeyImportKey"] & {
1108
1133
  /**
1109
1134
  * @description An attestation document from a secure enclave, including an
@@ -1116,7 +1141,7 @@ export interface components {
1116
1141
  */
1117
1142
  enclave_signature: string;
1118
1143
  };
1119
- CreateKeyRequest: components["schemas"]["UpdateKeyProperties"] & {
1144
+ CreateKeyRequest: components["schemas"]["CreateAndUpdateKeyProperties"] & {
1120
1145
  /**
1121
1146
  * Format: int64
1122
1147
  * @description Chain id for which the key is allowed to sign messages
@@ -2864,32 +2889,7 @@ export interface components {
2864
2889
  */
2865
2890
  signature: string;
2866
2891
  };
2867
- UpdateKeyProperties: {
2868
- /**
2869
- * @description If set, update this key's metadata. Validation regex: ^[A-Za-z0-9_=+/ \-\.\,]{0,1024}$
2870
- * @example Contract admin key
2871
- */
2872
- metadata?: string | null;
2873
- /**
2874
- * @description Allows users to specify a user other than themselves to receive the key
2875
- * The new owner must be an existing user who is a member of the same org.
2876
- * @example User#c3b9379c-4e8c-4216-bd0a-65ace53cf98f
2877
- */
2878
- owner?: string | null;
2879
- /**
2880
- * @description If set, update this key's policies (old policies will be overwritten!).
2881
- * @example [
2882
- * "AllowRawBlobSigning",
2883
- * {
2884
- * "RequireMfa": {
2885
- * "count": 1
2886
- * }
2887
- * }
2888
- * ]
2889
- */
2890
- policy?: Record<string, never>[] | null;
2891
- };
2892
- UpdateKeyRequest: components["schemas"]["UpdateKeyProperties"] & {
2892
+ UpdateKeyRequest: components["schemas"]["CreateAndUpdateKeyProperties"] & {
2893
2893
  /**
2894
2894
  * @description If set, updates the keys's `enabled` property to this value.
2895
2895
  * Once disabled, a key cannot be used for signing.