@fourier-labs/harbour-contracts 0.77.0 → 0.79.0
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/README.md +3 -3
- package/contract-release.json +31 -25
- package/dist/gen-ts/app-integrations-declaration.d.ts +11 -2
- package/dist/gen-ts/app-sign-in.d.ts +9 -0
- package/dist/gen-ts/app-sign-in.js +3 -0
- package/dist/gen-ts/contract-release.d.ts +6 -6
- package/dist/gen-ts/contract-release.js +6 -6
- package/dist/gen-ts/data-grant-v2.d.ts +5 -5
- package/dist/gen-ts/deployment-app-registration.d.ts +8 -2
- package/dist/gen-ts/external-sign-in.d.ts +29 -0
- package/dist/gen-ts/external-sign-in.js +3 -0
- package/dist/gen-ts/identity-context.d.ts +18 -0
- package/dist/gen-ts/identity-context.js +3 -0
- package/dist/gen-ts/index.d.ts +3 -0
- package/dist/gen-ts/index.js +3 -0
- package/dist/gen-ts/integration-execute-input-rules.d.ts +202 -0
- package/dist/gen-ts/integration-execute-input-rules.js +88 -2
- package/dist/gen-ts/integration-execute-request.d.ts +52 -6
- package/dist/gen-ts/integration-execute-result.d.ts +90 -2
- package/dist/gen-ts/integration-operations.d.ts +63 -0
- package/dist/gen-ts/integration-operations.js +81 -0
- package/dist/gen-ts/saas-connection.d.ts +11 -11
- package/gen-ts/app-integrations-declaration.ts +11 -2
- package/gen-ts/app-sign-in.ts +12 -0
- package/gen-ts/contract-release.ts +6 -6
- package/gen-ts/data-grant-v2.ts +13 -4
- package/gen-ts/deployment-app-registration.ts +8 -2
- package/gen-ts/external-sign-in.ts +32 -0
- package/gen-ts/identity-context.ts +21 -0
- package/gen-ts/index.ts +3 -0
- package/gen-ts/integration-execute-input-rules.ts +90 -4
- package/gen-ts/integration-execute-request.ts +60 -5
- package/gen-ts/integration-execute-result.ts +90 -2
- package/gen-ts/integration-operations.ts +81 -0
- package/gen-ts/saas-connection.ts +19 -10
- package/package.json +1 -1
- package/schema/app-integrations-declaration.schema.json +193 -3
- package/schema/app-sign-in.schema.json +51 -0
- package/schema/data-grant-v2.schema.json +4 -4
- package/schema/deployment-app-registration.schema.json +5 -2
- package/schema/external-sign-in.schema.json +120 -0
- package/schema/identity-context.schema.json +141 -0
- package/schema/integration-execute-request.schema.json +497 -7
- package/schema/integration-execute-result.schema.json +345 -4
- package/schema/saas-connection.schema.json +27 -10
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://schemas.harbour.dev/identity-context.schema.json",
|
|
4
|
+
"title": "IdentityContext",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"iss": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"aud": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"sub": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"tenant": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
"app": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"iat": {
|
|
24
|
+
"type": "integer"
|
|
25
|
+
},
|
|
26
|
+
"exp": {
|
|
27
|
+
"type": "integer"
|
|
28
|
+
},
|
|
29
|
+
"session_id": {
|
|
30
|
+
"type": "string"
|
|
31
|
+
},
|
|
32
|
+
"email": {
|
|
33
|
+
"type": "string"
|
|
34
|
+
},
|
|
35
|
+
"name": {
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
"phone_number": {
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
41
|
+
"email_verified": {
|
|
42
|
+
"type": "boolean"
|
|
43
|
+
},
|
|
44
|
+
"phone_number_verified": {
|
|
45
|
+
"type": "boolean"
|
|
46
|
+
},
|
|
47
|
+
"directory": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"enum": [
|
|
50
|
+
"company",
|
|
51
|
+
"external"
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
"groups": {
|
|
55
|
+
"type": "array",
|
|
56
|
+
"items": {
|
|
57
|
+
"type": "string"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"role": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"enum": [
|
|
63
|
+
"builder",
|
|
64
|
+
"member"
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"required": [
|
|
69
|
+
"iss",
|
|
70
|
+
"aud",
|
|
71
|
+
"sub",
|
|
72
|
+
"tenant",
|
|
73
|
+
"app",
|
|
74
|
+
"iat",
|
|
75
|
+
"exp"
|
|
76
|
+
],
|
|
77
|
+
"allOf": [
|
|
78
|
+
{
|
|
79
|
+
"if": {
|
|
80
|
+
"properties": {
|
|
81
|
+
"directory": {
|
|
82
|
+
"const": "external"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"required": [
|
|
86
|
+
"directory"
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
"then": {
|
|
90
|
+
"properties": {
|
|
91
|
+
"role": {
|
|
92
|
+
"const": "member"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"anyOf": [
|
|
96
|
+
{
|
|
97
|
+
"required": [
|
|
98
|
+
"email",
|
|
99
|
+
"email_verified"
|
|
100
|
+
],
|
|
101
|
+
"properties": {
|
|
102
|
+
"email": {
|
|
103
|
+
"minLength": 1
|
|
104
|
+
},
|
|
105
|
+
"email_verified": {
|
|
106
|
+
"const": true
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"required": [
|
|
112
|
+
"phone_number",
|
|
113
|
+
"phone_number_verified"
|
|
114
|
+
],
|
|
115
|
+
"properties": {
|
|
116
|
+
"phone_number": {
|
|
117
|
+
"minLength": 1
|
|
118
|
+
},
|
|
119
|
+
"phone_number_verified": {
|
|
120
|
+
"const": true
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
"required": [
|
|
126
|
+
"role"
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
"else": {
|
|
130
|
+
"required": [
|
|
131
|
+
"email"
|
|
132
|
+
],
|
|
133
|
+
"properties": {
|
|
134
|
+
"email": {
|
|
135
|
+
"minLength": 1
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
]
|
|
141
|
+
}
|