@flow-industries/id 0.21.2 → 0.22.1

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 (47) hide show
  1. package/README.md +52 -0
  2. package/contracts/v1/openapi.json +818 -0
  3. package/contracts/v1/reports.json +188 -0
  4. package/contracts/v1/sdk-exports.json +1165 -0
  5. package/dist/sdk/client/create-flow.js +2 -5
  6. package/dist/sdk/client/dialog-host.js +11 -6
  7. package/dist/sdk/client/flow-widget.js +3 -3
  8. package/dist/sdk/client/focus-session.d.ts +18 -0
  9. package/dist/sdk/client/focus-session.js +140 -0
  10. package/dist/sdk/client/focus.d.ts +11 -0
  11. package/dist/sdk/client/focus.js +30 -0
  12. package/dist/sdk/client/iframe-host.d.ts +2 -1
  13. package/dist/sdk/client/iframe-host.js +11 -1
  14. package/dist/sdk/client/index.d.ts +4 -1
  15. package/dist/sdk/client/index.js +2 -0
  16. package/dist/sdk/client/json-api.d.ts +1 -1
  17. package/dist/sdk/client/json-api.js +3 -1
  18. package/dist/sdk/client/open-profile.js +10 -7
  19. package/dist/sdk/client/profile-button.js +16 -9
  20. package/dist/sdk/client/reports.d.ts +9 -0
  21. package/dist/sdk/client/reports.js +30 -0
  22. package/dist/sdk/client/rooms.js +7 -26
  23. package/dist/sdk/client/study-search.d.ts +20 -0
  24. package/dist/sdk/client/study-search.js +116 -0
  25. package/dist/sdk/contracts/http.d.ts +155 -0
  26. package/dist/sdk/contracts/http.js +91 -0
  27. package/dist/sdk/contracts/reports.d.ts +130 -0
  28. package/dist/sdk/contracts/reports.js +67 -0
  29. package/dist/sdk/dialog/remote/Messenger.d.ts +3 -0
  30. package/dist/sdk/dialog/remote/Messenger.js +9 -3
  31. package/dist/sdk/react/use-cooldown.d.ts +1 -0
  32. package/dist/sdk/react/use-cooldown.js +12 -0
  33. package/dist/sdk/types/auth.d.ts +12 -0
  34. package/dist/sdk/types/dialog.d.ts +25 -0
  35. package/dist/sdk/types/focus.d.ts +109 -0
  36. package/dist/sdk/types/focus.js +0 -0
  37. package/dist/sdk/types/index.d.ts +8 -3
  38. package/dist/sdk/types/landing.d.ts +9 -0
  39. package/dist/sdk/types/landing.js +0 -0
  40. package/dist/sdk/types/otp.d.ts +20 -0
  41. package/dist/sdk/types/otp.js +0 -0
  42. package/dist/sdk/types/reports.d.ts +7 -0
  43. package/dist/sdk/types/reports.js +0 -0
  44. package/dist/sdk/types/settings.d.ts +162 -0
  45. package/dist/sdk/types/settings.js +0 -0
  46. package/dist/sdk/types/xp.d.ts +8 -0
  47. package/package.json +21 -9
@@ -0,0 +1,188 @@
1
+ {
2
+ "version": 1,
3
+ "schemas": {
4
+ "xpEvent": {
5
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
6
+ "type": "object",
7
+ "properties": {
8
+ "sub": {
9
+ "type": "string"
10
+ },
11
+ "source": {
12
+ "type": "string"
13
+ },
14
+ "durationSeconds": {
15
+ "type": "number"
16
+ },
17
+ "idempotencyKey": {
18
+ "type": "string"
19
+ }
20
+ },
21
+ "required": ["sub", "source"]
22
+ },
23
+ "presenceReport": {
24
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
25
+ "type": "object",
26
+ "properties": {
27
+ "channel": {
28
+ "type": "string",
29
+ "enum": ["game", "voice", "text"]
30
+ },
31
+ "rooms": {
32
+ "type": "array",
33
+ "items": {
34
+ "type": "object",
35
+ "properties": {
36
+ "roomId": {
37
+ "type": "string"
38
+ },
39
+ "occupants": {
40
+ "type": "array",
41
+ "items": {
42
+ "type": "object",
43
+ "properties": {
44
+ "sub": {
45
+ "type": "string"
46
+ }
47
+ },
48
+ "required": ["sub"],
49
+ "additionalProperties": {}
50
+ }
51
+ }
52
+ },
53
+ "required": ["roomId", "occupants"]
54
+ }
55
+ }
56
+ },
57
+ "required": ["channel", "rooms"]
58
+ },
59
+ "positionReport": {
60
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
61
+ "type": "object",
62
+ "properties": {
63
+ "positions": {
64
+ "type": "array",
65
+ "items": {
66
+ "type": "object",
67
+ "properties": {
68
+ "roomId": {
69
+ "type": "string"
70
+ },
71
+ "sub": {
72
+ "type": "string"
73
+ },
74
+ "x": {
75
+ "type": "number",
76
+ "minimum": -1000000,
77
+ "maximum": 1000000
78
+ },
79
+ "y": {
80
+ "type": "number",
81
+ "minimum": -1000000,
82
+ "maximum": 1000000
83
+ },
84
+ "z": {
85
+ "type": "number",
86
+ "minimum": -1000000,
87
+ "maximum": 1000000
88
+ },
89
+ "yaw": {
90
+ "type": "number",
91
+ "minimum": -1000000,
92
+ "maximum": 1000000
93
+ },
94
+ "worldId": {
95
+ "type": "string",
96
+ "maxLength": 64
97
+ }
98
+ },
99
+ "required": ["roomId", "sub", "x", "y", "z", "yaw", "worldId"]
100
+ }
101
+ }
102
+ },
103
+ "required": ["positions"]
104
+ },
105
+ "actionStart": {
106
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
107
+ "type": "object",
108
+ "properties": {
109
+ "sub": {
110
+ "type": "string"
111
+ },
112
+ "sessionId": {
113
+ "type": "string"
114
+ },
115
+ "source": {
116
+ "type": "string"
117
+ },
118
+ "showTimer": {
119
+ "type": "boolean"
120
+ }
121
+ },
122
+ "required": ["sub", "sessionId", "source"]
123
+ },
124
+ "actionEvent": {
125
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
126
+ "type": "object",
127
+ "properties": {
128
+ "sessionId": {
129
+ "type": "string"
130
+ },
131
+ "kind": {
132
+ "type": "string",
133
+ "enum": ["pause", "resume", "focus_lost", "focus_gained"]
134
+ }
135
+ },
136
+ "required": ["sessionId", "kind"]
137
+ },
138
+ "actionFinish": {
139
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
140
+ "type": "object",
141
+ "properties": {
142
+ "sessionId": {
143
+ "type": "string"
144
+ }
145
+ },
146
+ "required": ["sessionId"]
147
+ },
148
+ "stateTime": {
149
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
150
+ "type": "object",
151
+ "properties": {
152
+ "sub": {
153
+ "type": "string"
154
+ },
155
+ "day": {
156
+ "type": "string"
157
+ },
158
+ "states": {
159
+ "type": "object",
160
+ "propertyNames": {
161
+ "type": "string"
162
+ },
163
+ "additionalProperties": {
164
+ "type": "number"
165
+ }
166
+ }
167
+ },
168
+ "required": ["sub", "day", "states"]
169
+ },
170
+ "xpDev": {
171
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
172
+ "type": "object",
173
+ "properties": {
174
+ "sub": {
175
+ "type": "string"
176
+ },
177
+ "op": {
178
+ "type": "string",
179
+ "enum": ["add", "set_total", "set_level"]
180
+ },
181
+ "value": {
182
+ "type": "number"
183
+ }
184
+ },
185
+ "required": ["sub", "op", "value"]
186
+ }
187
+ }
188
+ }