@openfort/openfort-node 0.2.6 → 0.2.8

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 (93) hide show
  1. package/README.md +55 -3
  2. package/dist/api/accountsApi.d.ts +113 -0
  3. package/dist/api/accountsApi.js +489 -0
  4. package/dist/api/accountsApi.js.map +1 -0
  5. package/dist/api/apis.d.ts +3 -3
  6. package/dist/api/apis.js +3 -3
  7. package/dist/api/apis.js.map +1 -1
  8. package/dist/api/contractsApi.d.ts +18 -4
  9. package/dist/api/contractsApi.js +77 -3
  10. package/dist/api/contractsApi.js.map +1 -1
  11. package/dist/api/defaultApi.d.ts +13 -69
  12. package/dist/api/defaultApi.js +36 -332
  13. package/dist/api/defaultApi.js.map +1 -1
  14. package/dist/api/playersApi.d.ts +33 -13
  15. package/dist/api/playersApi.js +132 -34
  16. package/dist/api/playersApi.js.map +1 -1
  17. package/dist/api/policiesApi.d.ts +40 -23
  18. package/dist/api/policiesApi.js +142 -44
  19. package/dist/api/policiesApi.js.map +1 -1
  20. package/dist/api/sessionsApi.d.ts +2 -2
  21. package/dist/api/sessionsApi.js +12 -6
  22. package/dist/api/sessionsApi.js.map +1 -1
  23. package/dist/api/transactionIntentsApi.d.ts +10 -8
  24. package/dist/api/transactionIntentsApi.js +23 -15
  25. package/dist/api/transactionIntentsApi.js.map +1 -1
  26. package/dist/index.d.ts +3 -0
  27. package/dist/index.js +8 -0
  28. package/dist/index.js.map +1 -1
  29. package/dist/model/accountResponse.d.ts +3 -3
  30. package/dist/model/accountResponse.js +6 -6
  31. package/dist/model/accountResponse.js.map +1 -1
  32. package/dist/model/contractDeleteResponse.d.ts +27 -0
  33. package/dist/model/contractDeleteResponse.js +39 -0
  34. package/dist/model/contractDeleteResponse.js.map +1 -0
  35. package/dist/model/contractResponse.d.ts +3 -3
  36. package/dist/model/contractResponse.js +6 -6
  37. package/dist/model/contractResponse.js.map +1 -1
  38. package/dist/model/models.d.ts +12 -9
  39. package/dist/model/models.js +36 -27
  40. package/dist/model/models.js.map +1 -1
  41. package/dist/model/playerResponse.d.ts +5 -5
  42. package/dist/model/playerResponse.js +7 -7
  43. package/dist/model/playerResponse.js.map +1 -1
  44. package/dist/model/playerResponseAccounts.d.ts +24 -0
  45. package/dist/model/playerResponseAccounts.js +23 -0
  46. package/dist/model/playerResponseAccounts.js.map +1 -0
  47. package/dist/model/policyDeleteResponse.d.ts +27 -0
  48. package/dist/model/policyDeleteResponse.js +39 -0
  49. package/dist/model/policyDeleteResponse.js.map +1 -0
  50. package/dist/model/policyResponse.d.ts +6 -6
  51. package/dist/model/policyResponse.js +10 -10
  52. package/dist/model/policyResponse.js.map +1 -1
  53. package/dist/model/policyResponsePolicyRules.d.ts +24 -0
  54. package/dist/model/policyResponsePolicyRules.js +23 -0
  55. package/dist/model/policyResponsePolicyRules.js.map +1 -0
  56. package/dist/model/policyResponseTransactionIntents.d.ts +24 -0
  57. package/dist/model/policyResponseTransactionIntents.js +23 -0
  58. package/dist/model/policyResponseTransactionIntents.js.map +1 -0
  59. package/dist/model/policyRuleResponse.d.ts +33 -0
  60. package/dist/model/policyRuleResponse.js +54 -0
  61. package/dist/model/policyRuleResponse.js.map +1 -0
  62. package/dist/model/policyRulesResponse.d.ts +28 -0
  63. package/dist/model/policyRulesResponse.js +39 -0
  64. package/dist/model/policyRulesResponse.js.map +1 -0
  65. package/dist/model/policySchema.d.ts +15 -0
  66. package/dist/model/policySchema.js +20 -0
  67. package/dist/model/policySchema.js.map +1 -0
  68. package/dist/model/prismaJsonValue.d.ts +27 -0
  69. package/dist/model/prismaJsonValue.js +26 -0
  70. package/dist/model/prismaJsonValue.js.map +1 -0
  71. package/dist/model/projectResponse.d.ts +1 -1
  72. package/dist/model/projectResponse.js +5 -5
  73. package/dist/model/projectResponse.js.map +1 -1
  74. package/dist/model/responseResponse.d.ts +6 -5
  75. package/dist/model/responseResponse.js +2 -2
  76. package/dist/model/responseResponse.js.map +1 -1
  77. package/dist/model/sessionResponse.d.ts +1 -1
  78. package/dist/model/sessionResponse.js +5 -5
  79. package/dist/model/sessionResponse.js.map +1 -1
  80. package/dist/model/transactionIntentResponse.d.ts +11 -8
  81. package/dist/model/transactionIntentResponse.js +11 -11
  82. package/dist/model/transactionIntentResponse.js.map +1 -1
  83. package/dist/model/transactionIntentResponseAccount.d.ts +33 -0
  84. package/dist/model/transactionIntentResponseAccount.js +64 -0
  85. package/dist/model/transactionIntentResponseAccount.js.map +1 -0
  86. package/dist/model/transactionIntentResponsePlayer.d.ts +36 -0
  87. package/dist/model/transactionIntentResponsePlayer.js +74 -0
  88. package/dist/model/transactionIntentResponsePlayer.js.map +1 -0
  89. package/dist/model/transactionIntentResponsePolicy.d.ts +34 -0
  90. package/dist/model/transactionIntentResponsePolicy.js +64 -0
  91. package/dist/model/transactionIntentResponsePolicy.js.map +1 -0
  92. package/package.json +1 -1
  93. package/tsconfig.tsbuildinfo +1 -1
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ /**
3
+ * Openfort API
4
+ * Complete Openfort API references and guides can be found at: https://openfort.xyz/docs
5
+ *
6
+ * The version of the OpenAPI document: 1.0.0
7
+ * Contact: founders@openfort.xyz
8
+ *
9
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
+ * https://openapi-generator.tech
11
+ * Do not edit the class manually.
12
+ */
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.PrismaJsonValue = void 0;
15
+ /**
16
+ * From https://github.com/sindresorhus/type-fest/ Matches any valid JSON value.
17
+ */
18
+ class PrismaJsonValue {
19
+ static getAttributeTypeMap() {
20
+ return PrismaJsonValue.attributeTypeMap;
21
+ }
22
+ }
23
+ exports.PrismaJsonValue = PrismaJsonValue;
24
+ PrismaJsonValue.discriminator = undefined;
25
+ PrismaJsonValue.attributeTypeMap = [];
26
+ //# sourceMappingURL=prismaJsonValue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prismaJsonValue.js","sourceRoot":"","sources":["../../src/model/prismaJsonValue.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAIH;;GAEG;AACH,MAAa,eAAe;IAS1B,MAAM,CAAC,mBAAmB;QACxB,OAAO,eAAe,CAAC,gBAAgB,CAAC;IAC1C,CAAC;;AAXH,0CAYC;AAXQ,6BAAa,GAAuB,SAAS,CAAC;AAE9C,gCAAgB,GAIlB,EAAE,CAAC"}
@@ -12,12 +12,12 @@
12
12
  import { ApiKeyResponse } from "./apiKeyResponse";
13
13
  export declare class ProjectResponse {
14
14
  "id": string;
15
+ "object": string;
15
16
  "createdAt": Date;
16
17
  "name": string | null;
17
18
  "livemode": boolean;
18
19
  "logoUrl"?: string | null;
19
20
  "apikeys": Array<ApiKeyResponse>;
20
- "object": string;
21
21
  static discriminator: string | undefined;
22
22
  static attributeTypeMap: Array<{
23
23
  name: string;
@@ -25,6 +25,11 @@ ProjectResponse.attributeTypeMap = [
25
25
  baseName: "id",
26
26
  type: "string",
27
27
  },
28
+ {
29
+ name: "object",
30
+ baseName: "object",
31
+ type: "string",
32
+ },
28
33
  {
29
34
  name: "createdAt",
30
35
  baseName: "created_at",
@@ -50,10 +55,5 @@ ProjectResponse.attributeTypeMap = [
50
55
  baseName: "apikeys",
51
56
  type: "Array<ApiKeyResponse>",
52
57
  },
53
- {
54
- name: "object",
55
- baseName: "object",
56
- type: "string",
57
- },
58
58
  ];
59
59
  //# sourceMappingURL=projectResponse.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"projectResponse.js","sourceRoot":"","sources":["../../src/model/projectResponse.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAKH,MAAa,eAAe;IAqD1B,MAAM,CAAC,mBAAmB;QACxB,OAAO,eAAe,CAAC,gBAAgB,CAAC;IAC1C,CAAC;;AAvDH,0CAwDC;AA/CQ,6BAAa,GAAuB,SAAS,CAAC;AAE9C,gCAAgB,GAIlB;IACH;QACE,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,MAAM;KACb;IACD;QACE,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,MAAM;QAChB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,SAAS;KAChB;IACD;QACE,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,uBAAuB;KAC9B;IACD;QACE,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,QAAQ;KACf;CACF,CAAC"}
1
+ {"version":3,"file":"projectResponse.js","sourceRoot":"","sources":["../../src/model/projectResponse.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAKH,MAAa,eAAe;IAqD1B,MAAM,CAAC,mBAAmB;QACxB,OAAO,eAAe,CAAC,gBAAgB,CAAC;IAC1C,CAAC;;AAvDH,0CAwDC;AA/CQ,6BAAa,GAAuB,SAAS,CAAC;AAE9C,gCAAgB,GAIlB;IACH;QACE,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,MAAM;KACb;IACD;QACE,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,MAAM;QAChB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,SAAS;KAChB;IACD;QACE,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,uBAAuB;KAC9B;CACF,CAAC"}
@@ -9,15 +9,16 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { PrismaJsonValue } from "./prismaJsonValue";
12
13
  export declare class ResponseResponse {
13
14
  "createdAt": Date;
14
15
  "blockNumber": number | null;
15
16
  "transactionHash": string | null;
16
- "gasUsed": number;
17
- "status": number;
18
- "logs": Array<string>;
19
- "to": string;
20
- "error": string;
17
+ "gasUsed"?: number | null;
18
+ "status"?: number | null;
19
+ "logs"?: PrismaJsonValue | null;
20
+ "to"?: string | null;
21
+ "error"?: PrismaJsonValue | null;
21
22
  static discriminator: string | undefined;
22
23
  static attributeTypeMap: Array<{
23
24
  name: string;
@@ -48,7 +48,7 @@ ResponseResponse.attributeTypeMap = [
48
48
  {
49
49
  name: "logs",
50
50
  baseName: "logs",
51
- type: "Array<string>",
51
+ type: "PrismaJsonValue",
52
52
  },
53
53
  {
54
54
  name: "to",
@@ -58,7 +58,7 @@ ResponseResponse.attributeTypeMap = [
58
58
  {
59
59
  name: "error",
60
60
  baseName: "error",
61
- type: "string",
61
+ type: "PrismaJsonValue",
62
62
  },
63
63
  ];
64
64
  //# sourceMappingURL=responseResponse.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"responseResponse.js","sourceRoot":"","sources":["../../src/model/responseResponse.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAIH,MAAa,gBAAgB;IA2D3B,MAAM,CAAC,mBAAmB;QACxB,OAAO,gBAAgB,CAAC,gBAAgB,CAAC;IAC3C,CAAC;;AA7DH,4CA8DC;AApDQ,8BAAa,GAAuB,SAAS,CAAC;AAE9C,iCAAgB,GAIlB;IACH;QACE,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,MAAM;KACb;IACD;QACE,IAAI,EAAE,aAAa;QACnB,QAAQ,EAAE,cAAc;QACxB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,iBAAiB;QACvB,QAAQ,EAAE,kBAAkB;QAC5B,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,MAAM;QAChB,IAAI,EAAE,eAAe;KACtB;IACD;QACE,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,OAAO;QACb,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE,QAAQ;KACf;CACF,CAAC"}
1
+ {"version":3,"file":"responseResponse.js","sourceRoot":"","sources":["../../src/model/responseResponse.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAKH,MAAa,gBAAgB;IA2D3B,MAAM,CAAC,mBAAmB;QACxB,OAAO,gBAAgB,CAAC,gBAAgB,CAAC;IAC3C,CAAC;;AA7DH,4CA8DC;AApDQ,8BAAa,GAAuB,SAAS,CAAC;AAE9C,iCAAgB,GAIlB;IACH;QACE,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,MAAM;KACb;IACD;QACE,IAAI,EAAE,aAAa;QACnB,QAAQ,EAAE,cAAc;QACxB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,iBAAiB;QACvB,QAAQ,EAAE,kBAAkB;QAC5B,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,MAAM;QAChB,IAAI,EAAE,iBAAiB;KACxB;IACD;QACE,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,OAAO;QACb,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE,iBAAiB;KACxB;CACF,CAAC"}
@@ -11,8 +11,8 @@
11
11
  */
12
12
  export declare class SessionResponse {
13
13
  "id": string;
14
- "createdAt": Date;
15
14
  "object": string;
15
+ "createdAt": Date;
16
16
  "validAfter"?: string;
17
17
  "validUntil"?: string;
18
18
  "whitelist"?: Array<string>;
@@ -25,16 +25,16 @@ SessionResponse.attributeTypeMap = [
25
25
  baseName: "id",
26
26
  type: "string",
27
27
  },
28
- {
29
- name: "createdAt",
30
- baseName: "created_at",
31
- type: "Date",
32
- },
33
28
  {
34
29
  name: "object",
35
30
  baseName: "object",
36
31
  type: "string",
37
32
  },
33
+ {
34
+ name: "createdAt",
35
+ baseName: "created_at",
36
+ type: "Date",
37
+ },
38
38
  {
39
39
  name: "validAfter",
40
40
  baseName: "valid_after",
@@ -1 +1 @@
1
- {"version":3,"file":"sessionResponse.js","sourceRoot":"","sources":["../../src/model/sessionResponse.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAIH,MAAa,eAAe;IA2D1B,MAAM,CAAC,mBAAmB;QACxB,OAAO,eAAe,CAAC,gBAAgB,CAAC;IAC1C,CAAC;;AA7DH,0CA8DC;AApDQ,6BAAa,GAAuB,SAAS,CAAC;AAE9C,gCAAgB,GAIlB;IACH;QACE,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,MAAM;KACb;IACD;QACE,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,aAAa;QACvB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,aAAa;QACvB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,WAAW;QACrB,IAAI,EAAE,eAAe;KACtB;IACD;QACE,IAAI,EAAE,OAAO;QACb,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,aAAa;QACvB,IAAI,EAAE,QAAQ;KACf;CACF,CAAC"}
1
+ {"version":3,"file":"sessionResponse.js","sourceRoot":"","sources":["../../src/model/sessionResponse.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAIH,MAAa,eAAe;IA2D1B,MAAM,CAAC,mBAAmB;QACxB,OAAO,eAAe,CAAC,gBAAgB,CAAC;IAC1C,CAAC;;AA7DH,0CA8DC;AApDQ,6BAAa,GAAuB,SAAS,CAAC;AAE9C,gCAAgB,GAIlB;IACH;QACE,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,MAAM;KACb;IACD;QACE,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,aAAa;QACvB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,aAAa;QACvB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,WAAW;QACrB,IAAI,EAAE,eAAe;KACtB;IACD;QACE,IAAI,EAAE,OAAO;QACb,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,aAAa;QACvB,IAAI,EAAE,QAAQ;KACf;CACF,CAAC"}
@@ -10,22 +10,25 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { Interaction } from "./interaction";
13
+ import { PrismaJsonValue } from "./prismaJsonValue";
13
14
  import { ResponseResponse } from "./responseResponse";
14
- import { UserOpResult } from "./userOpResult";
15
+ import { TransactionIntentResponseAccount } from "./transactionIntentResponseAccount";
16
+ import { TransactionIntentResponsePlayer } from "./transactionIntentResponsePlayer";
17
+ import { TransactionIntentResponsePolicy } from "./transactionIntentResponsePolicy";
15
18
  export declare class TransactionIntentResponse {
16
19
  "id": string;
20
+ "object": string;
17
21
  "createdAt": Date;
18
22
  "updatedAt": Date;
19
23
  "chainId": number;
20
24
  "userOperationHash": string | null;
21
- "userOperation"?: UserOpResult;
22
- "policy": string | null;
23
- "player": string;
24
- "nextAction": object | null;
25
- "account"?: string;
26
- "transactions": Array<Interaction>;
25
+ "userOperation"?: PrismaJsonValue | null;
26
+ "policy": TransactionIntentResponsePolicy | null;
27
+ "player"?: TransactionIntentResponsePlayer;
28
+ "nextAction"?: object | null;
29
+ "account"?: TransactionIntentResponseAccount;
30
+ "interactions": Array<Interaction> | null;
27
31
  "response": ResponseResponse | null;
28
- "object": string;
29
32
  static discriminator: string | undefined;
30
33
  static attributeTypeMap: Array<{
31
34
  name: string;
@@ -25,6 +25,11 @@ TransactionIntentResponse.attributeTypeMap = [
25
25
  baseName: "id",
26
26
  type: "string",
27
27
  },
28
+ {
29
+ name: "object",
30
+ baseName: "object",
31
+ type: "string",
32
+ },
28
33
  {
29
34
  name: "createdAt",
30
35
  baseName: "created_at",
@@ -48,17 +53,17 @@ TransactionIntentResponse.attributeTypeMap = [
48
53
  {
49
54
  name: "userOperation",
50
55
  baseName: "user_operation",
51
- type: "UserOpResult",
56
+ type: "PrismaJsonValue",
52
57
  },
53
58
  {
54
59
  name: "policy",
55
60
  baseName: "policy",
56
- type: "string",
61
+ type: "TransactionIntentResponsePolicy",
57
62
  },
58
63
  {
59
64
  name: "player",
60
65
  baseName: "player",
61
- type: "string",
66
+ type: "TransactionIntentResponsePlayer",
62
67
  },
63
68
  {
64
69
  name: "nextAction",
@@ -68,11 +73,11 @@ TransactionIntentResponse.attributeTypeMap = [
68
73
  {
69
74
  name: "account",
70
75
  baseName: "account",
71
- type: "string",
76
+ type: "TransactionIntentResponseAccount",
72
77
  },
73
78
  {
74
- name: "transactions",
75
- baseName: "transactions",
79
+ name: "interactions",
80
+ baseName: "interactions",
76
81
  type: "Array<Interaction>",
77
82
  },
78
83
  {
@@ -80,10 +85,5 @@ TransactionIntentResponse.attributeTypeMap = [
80
85
  baseName: "response",
81
86
  type: "ResponseResponse",
82
87
  },
83
- {
84
- name: "object",
85
- baseName: "object",
86
- type: "string",
87
- },
88
88
  ];
89
89
  //# sourceMappingURL=transactionIntentResponse.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"transactionIntentResponse.js","sourceRoot":"","sources":["../../src/model/transactionIntentResponse.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAOH,MAAa,yBAAyB;IAyFpC,MAAM,CAAC,mBAAmB;QACxB,OAAO,yBAAyB,CAAC,gBAAgB,CAAC;IACpD,CAAC;;AA3FH,8DA4FC;AA7EQ,uCAAa,GAAuB,SAAS,CAAC;AAE9C,0CAAgB,GAIlB;IACH;QACE,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,MAAM;KACb;IACD;QACE,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,MAAM;KACb;IACD;QACE,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,mBAAmB;QACzB,QAAQ,EAAE,qBAAqB;QAC/B,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,eAAe;QACrB,QAAQ,EAAE,gBAAgB;QAC1B,IAAI,EAAE,cAAc;KACrB;IACD;QACE,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,aAAa;QACvB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE,cAAc;QACxB,IAAI,EAAE,oBAAoB;KAC3B;IACD;QACE,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,kBAAkB;KACzB;IACD;QACE,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,QAAQ;KACf;CACF,CAAC"}
1
+ {"version":3,"file":"transactionIntentResponse.js","sourceRoot":"","sources":["../../src/model/transactionIntentResponse.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAUH,MAAa,yBAAyB;IAyFpC,MAAM,CAAC,mBAAmB;QACxB,OAAO,yBAAyB,CAAC,gBAAgB,CAAC;IACpD,CAAC;;AA3FH,8DA4FC;AA7EQ,uCAAa,GAAuB,SAAS,CAAC;AAE9C,0CAAgB,GAIlB;IACH;QACE,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,MAAM;KACb;IACD;QACE,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,MAAM;KACb;IACD;QACE,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,mBAAmB;QACzB,QAAQ,EAAE,qBAAqB;QAC/B,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,eAAe;QACrB,QAAQ,EAAE,gBAAgB;QAC1B,IAAI,EAAE,iBAAiB;KACxB;IACD;QACE,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,iCAAiC;KACxC;IACD;QACE,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,iCAAiC;KACxC;IACD;QACE,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,aAAa;QACvB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,kCAAkC;KACzC;IACD;QACE,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE,cAAc;QACxB,IAAI,EAAE,oBAAoB;KAC3B;IACD;QACE,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,kBAAkB;KACzB;CACF,CAAC"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Openfort API
3
+ * Complete Openfort API references and guides can be found at: https://openfort.xyz/docs
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: founders@openfort.xyz
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { PolicyResponseTransactionIntents } from "./policyResponseTransactionIntents";
13
+ export declare class TransactionIntentResponseAccount {
14
+ "id": string;
15
+ "object": string;
16
+ "createdAt": Date;
17
+ "address": string;
18
+ "deployed": boolean;
19
+ "custodial": boolean;
20
+ "chainId": number;
21
+ "transactionIntents"?: PolicyResponseTransactionIntents;
22
+ static discriminator: string | undefined;
23
+ static attributeTypeMap: Array<{
24
+ name: string;
25
+ baseName: string;
26
+ type: string;
27
+ }>;
28
+ static getAttributeTypeMap(): {
29
+ name: string;
30
+ baseName: string;
31
+ type: string;
32
+ }[];
33
+ }
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ /**
3
+ * Openfort API
4
+ * Complete Openfort API references and guides can be found at: https://openfort.xyz/docs
5
+ *
6
+ * The version of the OpenAPI document: 1.0.0
7
+ * Contact: founders@openfort.xyz
8
+ *
9
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
+ * https://openapi-generator.tech
11
+ * Do not edit the class manually.
12
+ */
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.TransactionIntentResponseAccount = void 0;
15
+ class TransactionIntentResponseAccount {
16
+ static getAttributeTypeMap() {
17
+ return TransactionIntentResponseAccount.attributeTypeMap;
18
+ }
19
+ }
20
+ exports.TransactionIntentResponseAccount = TransactionIntentResponseAccount;
21
+ TransactionIntentResponseAccount.discriminator = undefined;
22
+ TransactionIntentResponseAccount.attributeTypeMap = [
23
+ {
24
+ name: "id",
25
+ baseName: "id",
26
+ type: "string",
27
+ },
28
+ {
29
+ name: "object",
30
+ baseName: "object",
31
+ type: "string",
32
+ },
33
+ {
34
+ name: "createdAt",
35
+ baseName: "created_at",
36
+ type: "Date",
37
+ },
38
+ {
39
+ name: "address",
40
+ baseName: "address",
41
+ type: "string",
42
+ },
43
+ {
44
+ name: "deployed",
45
+ baseName: "deployed",
46
+ type: "boolean",
47
+ },
48
+ {
49
+ name: "custodial",
50
+ baseName: "custodial",
51
+ type: "boolean",
52
+ },
53
+ {
54
+ name: "chainId",
55
+ baseName: "chain_id",
56
+ type: "number",
57
+ },
58
+ {
59
+ name: "transactionIntents",
60
+ baseName: "transaction_intents",
61
+ type: "PolicyResponseTransactionIntents",
62
+ },
63
+ ];
64
+ //# sourceMappingURL=transactionIntentResponseAccount.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transactionIntentResponseAccount.js","sourceRoot":"","sources":["../../src/model/transactionIntentResponseAccount.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAMH,MAAa,gCAAgC;IA2D3C,MAAM,CAAC,mBAAmB;QACxB,OAAO,gCAAgC,CAAC,gBAAgB,CAAC;IAC3D,CAAC;;AA7DH,4EA8DC;AApDQ,8CAAa,GAAuB,SAAS,CAAC;AAE9C,iDAAgB,GAIlB;IACH;QACE,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,MAAM;KACb;IACD;QACE,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,SAAS;KAChB;IACD;QACE,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,WAAW;QACrB,IAAI,EAAE,SAAS;KAChB;IACD;QACE,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,oBAAoB;QAC1B,QAAQ,EAAE,qBAAqB;QAC/B,IAAI,EAAE,kCAAkC;KACzC;CACF,CAAC"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Openfort API
3
+ * Complete Openfort API references and guides can be found at: https://openfort.xyz/docs
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: founders@openfort.xyz
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { PlayerResponseAccounts } from "./playerResponseAccounts";
13
+ import { PolicyResponseTransactionIntents } from "./policyResponseTransactionIntents";
14
+ export declare class TransactionIntentResponsePlayer {
15
+ "id": string;
16
+ "object": string;
17
+ "createdAt": Date;
18
+ "name": string | null;
19
+ "livemode": boolean;
20
+ "email": string | null;
21
+ "description": string | null;
22
+ "metadata": string;
23
+ "transactionIntents"?: PolicyResponseTransactionIntents;
24
+ "accounts"?: PlayerResponseAccounts;
25
+ static discriminator: string | undefined;
26
+ static attributeTypeMap: Array<{
27
+ name: string;
28
+ baseName: string;
29
+ type: string;
30
+ }>;
31
+ static getAttributeTypeMap(): {
32
+ name: string;
33
+ baseName: string;
34
+ type: string;
35
+ }[];
36
+ }
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ /**
3
+ * Openfort API
4
+ * Complete Openfort API references and guides can be found at: https://openfort.xyz/docs
5
+ *
6
+ * The version of the OpenAPI document: 1.0.0
7
+ * Contact: founders@openfort.xyz
8
+ *
9
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
+ * https://openapi-generator.tech
11
+ * Do not edit the class manually.
12
+ */
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.TransactionIntentResponsePlayer = void 0;
15
+ class TransactionIntentResponsePlayer {
16
+ static getAttributeTypeMap() {
17
+ return TransactionIntentResponsePlayer.attributeTypeMap;
18
+ }
19
+ }
20
+ exports.TransactionIntentResponsePlayer = TransactionIntentResponsePlayer;
21
+ TransactionIntentResponsePlayer.discriminator = undefined;
22
+ TransactionIntentResponsePlayer.attributeTypeMap = [
23
+ {
24
+ name: "id",
25
+ baseName: "id",
26
+ type: "string",
27
+ },
28
+ {
29
+ name: "object",
30
+ baseName: "object",
31
+ type: "string",
32
+ },
33
+ {
34
+ name: "createdAt",
35
+ baseName: "created_at",
36
+ type: "Date",
37
+ },
38
+ {
39
+ name: "name",
40
+ baseName: "name",
41
+ type: "string",
42
+ },
43
+ {
44
+ name: "livemode",
45
+ baseName: "livemode",
46
+ type: "boolean",
47
+ },
48
+ {
49
+ name: "email",
50
+ baseName: "email",
51
+ type: "string",
52
+ },
53
+ {
54
+ name: "description",
55
+ baseName: "description",
56
+ type: "string",
57
+ },
58
+ {
59
+ name: "metadata",
60
+ baseName: "metadata",
61
+ type: "string",
62
+ },
63
+ {
64
+ name: "transactionIntents",
65
+ baseName: "transaction_intents",
66
+ type: "PolicyResponseTransactionIntents",
67
+ },
68
+ {
69
+ name: "accounts",
70
+ baseName: "accounts",
71
+ type: "PlayerResponseAccounts",
72
+ },
73
+ ];
74
+ //# sourceMappingURL=transactionIntentResponsePlayer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transactionIntentResponsePlayer.js","sourceRoot":"","sources":["../../src/model/transactionIntentResponsePlayer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAOH,MAAa,+BAA+B;IAuE1C,MAAM,CAAC,mBAAmB;QACxB,OAAO,+BAA+B,CAAC,gBAAgB,CAAC;IAC1D,CAAC;;AAzEH,0EA0EC;AA9DQ,6CAAa,GAAuB,SAAS,CAAC;AAE9C,gDAAgB,GAIlB;IACH;QACE,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,MAAM;KACb;IACD;QACE,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,MAAM;QAChB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,SAAS;KAChB;IACD;QACE,IAAI,EAAE,OAAO;QACb,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,aAAa;QACnB,QAAQ,EAAE,aAAa;QACvB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,oBAAoB;QAC1B,QAAQ,EAAE,qBAAqB;QAC/B,IAAI,EAAE,kCAAkC;KACzC;IACD;QACE,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,wBAAwB;KAC/B;CACF,CAAC"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Openfort API
3
+ * Complete Openfort API references and guides can be found at: https://openfort.xyz/docs
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: founders@openfort.xyz
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { PolicyResponsePolicyRules } from "./policyResponsePolicyRules";
13
+ import { PolicyResponseTransactionIntents } from "./policyResponseTransactionIntents";
14
+ export declare class TransactionIntentResponsePolicy {
15
+ "id": string;
16
+ "object": string;
17
+ "createdAt": Date;
18
+ "name": string | null;
19
+ "chainId": number;
20
+ "strategy": any | null;
21
+ "transactionIntents"?: PolicyResponseTransactionIntents;
22
+ "policyRules"?: PolicyResponsePolicyRules;
23
+ static discriminator: string | undefined;
24
+ static attributeTypeMap: Array<{
25
+ name: string;
26
+ baseName: string;
27
+ type: string;
28
+ }>;
29
+ static getAttributeTypeMap(): {
30
+ name: string;
31
+ baseName: string;
32
+ type: string;
33
+ }[];
34
+ }
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ /**
3
+ * Openfort API
4
+ * Complete Openfort API references and guides can be found at: https://openfort.xyz/docs
5
+ *
6
+ * The version of the OpenAPI document: 1.0.0
7
+ * Contact: founders@openfort.xyz
8
+ *
9
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
+ * https://openapi-generator.tech
11
+ * Do not edit the class manually.
12
+ */
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.TransactionIntentResponsePolicy = void 0;
15
+ class TransactionIntentResponsePolicy {
16
+ static getAttributeTypeMap() {
17
+ return TransactionIntentResponsePolicy.attributeTypeMap;
18
+ }
19
+ }
20
+ exports.TransactionIntentResponsePolicy = TransactionIntentResponsePolicy;
21
+ TransactionIntentResponsePolicy.discriminator = undefined;
22
+ TransactionIntentResponsePolicy.attributeTypeMap = [
23
+ {
24
+ name: "id",
25
+ baseName: "id",
26
+ type: "string",
27
+ },
28
+ {
29
+ name: "object",
30
+ baseName: "object",
31
+ type: "string",
32
+ },
33
+ {
34
+ name: "createdAt",
35
+ baseName: "created_at",
36
+ type: "Date",
37
+ },
38
+ {
39
+ name: "name",
40
+ baseName: "name",
41
+ type: "string",
42
+ },
43
+ {
44
+ name: "chainId",
45
+ baseName: "chain_id",
46
+ type: "number",
47
+ },
48
+ {
49
+ name: "strategy",
50
+ baseName: "strategy",
51
+ type: "any",
52
+ },
53
+ {
54
+ name: "transactionIntents",
55
+ baseName: "transaction_intents",
56
+ type: "PolicyResponseTransactionIntents",
57
+ },
58
+ {
59
+ name: "policyRules",
60
+ baseName: "policy_rules",
61
+ type: "PolicyResponsePolicyRules",
62
+ },
63
+ ];
64
+ //# sourceMappingURL=transactionIntentResponsePolicy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transactionIntentResponsePolicy.js","sourceRoot":"","sources":["../../src/model/transactionIntentResponsePolicy.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAOH,MAAa,+BAA+B;IA2D1C,MAAM,CAAC,mBAAmB;QACxB,OAAO,+BAA+B,CAAC,gBAAgB,CAAC;IAC1D,CAAC;;AA7DH,0EA8DC;AApDQ,6CAAa,GAAuB,SAAS,CAAC;AAE9C,gDAAgB,GAIlB;IACH;QACE,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,MAAM;KACb;IACD;QACE,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,MAAM;QAChB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,QAAQ;KACf;IACD;QACE,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,KAAK;KACZ;IACD;QACE,IAAI,EAAE,oBAAoB;QAC1B,QAAQ,EAAE,qBAAqB;QAC/B,IAAI,EAAE,kCAAkC;KACzC;IACD;QACE,IAAI,EAAE,aAAa;QACnB,QAAQ,EAAE,cAAc;QACxB,IAAI,EAAE,2BAA2B;KAClC;CACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfort/openfort-node",
3
- "version": "0.2.6",
3
+ "version": "0.2.8",
4
4
  "description": "OpenAPI client for @openfort/openfort-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {