@deadair/sdk 0.7.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.
Files changed (155) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +109 -0
  3. package/dist/activity/activity.client.d.ts +12 -0
  4. package/dist/activity/activity.client.d.ts.map +1 -0
  5. package/dist/activity/types/activity.types.d.ts +60 -0
  6. package/dist/activity/types/activity.types.d.ts.map +1 -0
  7. package/dist/activity/types/index.d.ts +2 -0
  8. package/dist/activity/types/index.d.ts.map +1 -0
  9. package/dist/art/art.client.d.ts +21 -0
  10. package/dist/art/art.client.d.ts.map +1 -0
  11. package/dist/authentication/authentication.client.d.ts +33 -0
  12. package/dist/authentication/authentication.client.d.ts.map +1 -0
  13. package/dist/authentication/authentication.factor.client.d.ts +41 -0
  14. package/dist/authentication/authentication.factor.client.d.ts.map +1 -0
  15. package/dist/authentication/authentication.sessions.client.d.ts +20 -0
  16. package/dist/authentication/authentication.sessions.client.d.ts.map +1 -0
  17. package/dist/authentication/types/authentication.types.d.ts +846 -0
  18. package/dist/authentication/types/authentication.types.d.ts.map +1 -0
  19. package/dist/authentication/types/index.d.ts +3 -0
  20. package/dist/authentication/types/index.d.ts.map +1 -0
  21. package/dist/authentication/types/registration.types.d.ts +336 -0
  22. package/dist/authentication/types/registration.types.d.ts.map +1 -0
  23. package/dist/catalog/catalog.client.d.ts +96 -0
  24. package/dist/catalog/catalog.client.d.ts.map +1 -0
  25. package/dist/catalog/types/catalog.types.d.ts +593 -0
  26. package/dist/catalog/types/catalog.types.d.ts.map +1 -0
  27. package/dist/catalog/types/index.d.ts +2 -0
  28. package/dist/catalog/types/index.d.ts.map +1 -0
  29. package/dist/charts/charts.client.d.ts +17 -0
  30. package/dist/charts/charts.client.d.ts.map +1 -0
  31. package/dist/charts/types/charts.types.d.ts +54 -0
  32. package/dist/charts/types/charts.types.d.ts.map +1 -0
  33. package/dist/charts/types/index.d.ts +2 -0
  34. package/dist/charts/types/index.d.ts.map +1 -0
  35. package/dist/deadair.sdk.d.ts +49 -0
  36. package/dist/deadair.sdk.d.ts.map +1 -0
  37. package/dist/director/director.client.d.ts +98 -0
  38. package/dist/director/director.client.d.ts.map +1 -0
  39. package/dist/director/types/clock.types.d.ts +57 -0
  40. package/dist/director/types/clock.types.d.ts.map +1 -0
  41. package/dist/director/types/director.types.d.ts +212 -0
  42. package/dist/director/types/director.types.d.ts.map +1 -0
  43. package/dist/director/types/index.d.ts +3 -0
  44. package/dist/director/types/index.d.ts.map +1 -0
  45. package/dist/history/history.client.d.ts +12 -0
  46. package/dist/history/history.client.d.ts.map +1 -0
  47. package/dist/history/types/history.types.d.ts +44 -0
  48. package/dist/history/types/history.types.d.ts.map +1 -0
  49. package/dist/history/types/index.d.ts +2 -0
  50. package/dist/history/types/index.d.ts.map +1 -0
  51. package/dist/index.d.ts +49 -0
  52. package/dist/index.d.ts.map +1 -0
  53. package/dist/index.js +3509 -0
  54. package/dist/index.js.map +1 -0
  55. package/dist/news/news.client.d.ts +17 -0
  56. package/dist/news/news.client.d.ts.map +1 -0
  57. package/dist/news/types/index.d.ts +2 -0
  58. package/dist/news/types/index.d.ts.map +1 -0
  59. package/dist/news/types/news.types.d.ts +61 -0
  60. package/dist/news/types/news.types.d.ts.map +1 -0
  61. package/dist/nowplaying/nowplaying.client.d.ts +12 -0
  62. package/dist/nowplaying/nowplaying.client.d.ts.map +1 -0
  63. package/dist/nowplaying/types/index.d.ts +2 -0
  64. package/dist/nowplaying/types/index.d.ts.map +1 -0
  65. package/dist/nowplaying/types/nowplaying.types.d.ts +59 -0
  66. package/dist/nowplaying/types/nowplaying.types.d.ts.map +1 -0
  67. package/dist/onboarding/onboarding.client.d.ts +11 -0
  68. package/dist/onboarding/onboarding.client.d.ts.map +1 -0
  69. package/dist/onboarding/types/index.d.ts +2 -0
  70. package/dist/onboarding/types/index.d.ts.map +1 -0
  71. package/dist/onboarding/types/onboarding.types.d.ts +41 -0
  72. package/dist/onboarding/types/onboarding.types.d.ts.map +1 -0
  73. package/dist/personas/personas.client.d.ts +167 -0
  74. package/dist/personas/personas.client.d.ts.map +1 -0
  75. package/dist/personas/types/index.d.ts +2 -0
  76. package/dist/personas/types/index.d.ts.map +1 -0
  77. package/dist/personas/types/personas.types.d.ts +545 -0
  78. package/dist/personas/types/personas.types.d.ts.map +1 -0
  79. package/dist/playlists/playlists.client.d.ts +17 -0
  80. package/dist/playlists/playlists.client.d.ts.map +1 -0
  81. package/dist/playlists/types/index.d.ts +2 -0
  82. package/dist/playlists/types/index.d.ts.map +1 -0
  83. package/dist/playlists/types/playlists.types.d.ts +71 -0
  84. package/dist/playlists/types/playlists.types.d.ts.map +1 -0
  85. package/dist/playout/playout.client.d.ts +37 -0
  86. package/dist/playout/playout.client.d.ts.map +1 -0
  87. package/dist/playout/types/index.d.ts +2 -0
  88. package/dist/playout/types/index.d.ts.map +1 -0
  89. package/dist/playout/types/playout.types.d.ts +163 -0
  90. package/dist/playout/types/playout.types.d.ts.map +1 -0
  91. package/dist/plugins/plugins.client.d.ts +107 -0
  92. package/dist/plugins/plugins.client.d.ts.map +1 -0
  93. package/dist/plugins/types/index.d.ts +2 -0
  94. package/dist/plugins/types/index.d.ts.map +1 -0
  95. package/dist/plugins/types/plugins.types.d.ts +330 -0
  96. package/dist/plugins/types/plugins.types.d.ts.map +1 -0
  97. package/dist/productions/productions.client.d.ts +22 -0
  98. package/dist/productions/productions.client.d.ts.map +1 -0
  99. package/dist/productions/types/index.d.ts +2 -0
  100. package/dist/productions/types/index.d.ts.map +1 -0
  101. package/dist/productions/types/productions.types.d.ts +90 -0
  102. package/dist/productions/types/productions.types.d.ts.map +1 -0
  103. package/dist/render/render.client.d.ts +210 -0
  104. package/dist/render/render.client.d.ts.map +1 -0
  105. package/dist/render/types/index.d.ts +2 -0
  106. package/dist/render/types/index.d.ts.map +1 -0
  107. package/dist/render/types/render.types.d.ts +518 -0
  108. package/dist/render/types/render.types.d.ts.map +1 -0
  109. package/dist/schedule/schedule.client.d.ts +37 -0
  110. package/dist/schedule/schedule.client.d.ts.map +1 -0
  111. package/dist/schedule/types/index.d.ts +2 -0
  112. package/dist/schedule/types/index.d.ts.map +1 -0
  113. package/dist/schedule/types/schedule.types.d.ts +119 -0
  114. package/dist/schedule/types/schedule.types.d.ts.map +1 -0
  115. package/dist/sdk-options.d.ts +45 -0
  116. package/dist/sdk-options.d.ts.map +1 -0
  117. package/dist/settings/settings.client.d.ts +17 -0
  118. package/dist/settings/settings.client.d.ts.map +1 -0
  119. package/dist/settings/types/index.d.ts +2 -0
  120. package/dist/settings/types/index.d.ts.map +1 -0
  121. package/dist/settings/types/settings.types.d.ts +35 -0
  122. package/dist/settings/types/settings.types.d.ts.map +1 -0
  123. package/dist/shared/types/index.d.ts +2 -0
  124. package/dist/shared/types/index.d.ts.map +1 -0
  125. package/dist/shared/types/pagination.d.ts +34 -0
  126. package/dist/shared/types/pagination.d.ts.map +1 -0
  127. package/dist/station/station.client.d.ts +49 -0
  128. package/dist/station/station.client.d.ts.map +1 -0
  129. package/dist/station/types/index.d.ts +4 -0
  130. package/dist/station/types/index.d.ts.map +1 -0
  131. package/dist/station/types/logs.types.d.ts +73 -0
  132. package/dist/station/types/logs.types.d.ts.map +1 -0
  133. package/dist/station/types/station.types.d.ts +120 -0
  134. package/dist/station/types/station.types.d.ts.map +1 -0
  135. package/dist/station/types/traces.types.d.ts +91 -0
  136. package/dist/station/types/traces.types.d.ts.map +1 -0
  137. package/dist/storage/storage.client.d.ts +12 -0
  138. package/dist/storage/storage.client.d.ts.map +1 -0
  139. package/dist/storage/types/index.d.ts +2 -0
  140. package/dist/storage/types/index.d.ts.map +1 -0
  141. package/dist/storage/types/storage.types.d.ts +59 -0
  142. package/dist/storage/types/storage.types.d.ts.map +1 -0
  143. package/dist/stream/stream.client.d.ts +32 -0
  144. package/dist/stream/stream.client.d.ts.map +1 -0
  145. package/dist/stream/types/index.d.ts +2 -0
  146. package/dist/stream/types/index.d.ts.map +1 -0
  147. package/dist/stream/types/stream.types.d.ts +47 -0
  148. package/dist/stream/types/stream.types.d.ts.map +1 -0
  149. package/dist/topics/topics.client.d.ts +32 -0
  150. package/dist/topics/topics.client.d.ts.map +1 -0
  151. package/dist/topics/types/index.d.ts +2 -0
  152. package/dist/topics/types/index.d.ts.map +1 -0
  153. package/dist/topics/types/topics.types.d.ts +65 -0
  154. package/dist/topics/types/topics.types.d.ts.map +1 -0
  155. package/package.json +53 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authentication.types.d.ts","sourceRoot":"","sources":["../../../src/authentication/types/authentication.types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAYjC;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG,oBAAoB,GAAG,UAAU,GAAG,eAAe,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,eAAe,GAAG,MAAM,CAAC;AAEhJ;;;GAGG;AACH,MAAM,MAAM,mCAAmC,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAEpF;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAAG,OAAO,GAAG,UAAU,GAAG,OAAO,GAAG,eAAe,GAAG,MAAM,GAAG,MAAM,CAAC;AAE5G;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG,WAAW,GAAG,YAAY,GAAG,WAAW,CAAC;AAEhF;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC;AAEpC;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAChC,oEAAoE;IACpE,WAAW,EAAE,MAAM,CAAC;IACpB,gFAAgF;IAChF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6DAA6D;IAC7D,SAAS,EAAE,MAAM,CAAC;IAClB,oEAAoE;IACpE,SAAS,EAAE,MAAM,CAAC;IAClB,2DAA2D;IAC3D,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,yB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mIAAmI;AACnI,wBAAgB,sCAAsC,CAAC,GAAG,EAAE,gCAAgC,GAAG,gCAAgC,CAkB9H;AAED;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,iCAAiC,GAAG,gCAAgC,GAAG,iCAAiC,CAAC;AACpJ,MAAM,MAAM,kCAAkC,GAC1C,uCAAuC,GAAG,sCAAsC,GAAG,uCAAuC,CAAC;AAE/H,+HAA+H;AAC/H,wBAAgB,kCAAkC,CAAC,GAAG,EAAE,4BAA4B,GAAG,4BAA4B,CAelH;AAED,qIAAqI;AACrI,wBAAgB,wCAAwC,CAAC,GAAG,EAAE,kCAAkC,GAAG,kCAAkC,CAepI;AAED;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAChC,4BAA4B,GAAG,4BAA4B,GAAG,4BAA4B,GAAG,4BAA4B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './authentication.types.js';
2
+ export * from './registration.types.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/authentication/types/index.ts"],"names":[],"mappings":"AACA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC"}
@@ -0,0 +1,336 @@
1
+ import { DateTime } from 'luxon';
2
+ import type { PublicKeyCredentialWithAttestation } from './authentication.types.js';
3
+ /**
4
+ * generated from [PhoneFactorRegistration](../../../../../apps/api/data/contracts/authentication/registration.types.ck#L7)
5
+ */
6
+ export interface PhoneFactorRegistration {
7
+ /** The method of the factor */
8
+ method: 'phone';
9
+ /** The phone number in E.164 format (e.g. `+12025550123`) */
10
+ value: string;
11
+ /** A base64url encoded SHA256 hash of a one time secret used to validate that the request starts and ends on the same device */
12
+ codeChallenge: string;
13
+ }
14
+ /**
15
+ * generated from [PasswordFactorRegistration](../../../../../apps/api/data/contracts/authentication/registration.types.ck#L13)
16
+ */
17
+ export interface PasswordFactorRegistration {
18
+ /** The method of the factor */
19
+ method: 'password';
20
+ /** The password */
21
+ value: string;
22
+ }
23
+ /**
24
+ * generated from [EmailFactorRegistration](../../../../../apps/api/data/contracts/authentication/registration.types.ck#L18)
25
+ */
26
+ export interface EmailFactorRegistration {
27
+ /** The method of the factor */
28
+ method: 'email';
29
+ /** The email address */
30
+ value: string;
31
+ /** A base64url encoded SHA256 hash of a one time secret used to validate that the request starts and ends on the same device */
32
+ codeChallenge: string;
33
+ }
34
+ /**
35
+ * generated from [AuthenticatorFactorRegistration](../../../../../apps/api/data/contracts/authentication/registration.types.ck#L24)
36
+ */
37
+ export interface AuthenticatorFactorRegistration {
38
+ /** The method of the factor */
39
+ method: 'authenticator';
40
+ /** A base64url encoded SHA256 hash of a one time secret used to validate that the request starts and ends on the same device */
41
+ codeChallenge: string;
42
+ /** The label for the authenticator factor */
43
+ label?: string;
44
+ }
45
+ /**
46
+ * generated from [FidoFactorRegistration](../../../../../apps/api/data/contracts/authentication/registration.types.ck#L30)
47
+ */
48
+ export interface FidoFactorRegistration {
49
+ /** The method of the factor */
50
+ method: 'fido';
51
+ /** The label for the FIDO factor */
52
+ label?: string;
53
+ }
54
+ /**
55
+ * generated from [PhoneFactorRegistrationResponse](../../../../../apps/api/data/contracts/authentication/registration.types.ck#L37)
56
+ */
57
+ export interface PhoneFactorRegistrationResponse {
58
+ /** The method of the factor */
59
+ method: 'phone';
60
+ /** The registration identifier */
61
+ registrationId: string;
62
+ /** The expiration timestamp */
63
+ expiresAt: DateTime;
64
+ /** The issuance timestamp */
65
+ issuedAt: DateTime;
66
+ }
67
+ /** Rehydrates every wire-encoded scalar in a PhoneFactorRegistrationResponse into its runtime type. Mutates and returns `raw`. */
68
+ export declare function revivePhoneFactorRegistrationResponse(raw: PhoneFactorRegistrationResponse): PhoneFactorRegistrationResponse;
69
+ /**
70
+ * generated from [PasswordFactorRegistrationResponse](../../../../../apps/api/data/contracts/authentication/registration.types.ck#L44)
71
+ */
72
+ export interface PasswordFactorRegistrationResponse {
73
+ /** The method of the factor */
74
+ method: 'password';
75
+ /** Whether the password needs to be reset */
76
+ needsReset: boolean;
77
+ }
78
+ /**
79
+ * generated from [EmailFactorRegistrationResponse](../../../../../apps/api/data/contracts/authentication/registration.types.ck#L49)
80
+ */
81
+ export interface EmailFactorRegistrationResponse {
82
+ /** The method of the factor */
83
+ method: 'email';
84
+ /** The registration identifier */
85
+ registrationId: string;
86
+ /** The expiration timestamp */
87
+ expiresAt: DateTime;
88
+ /** The issuance timestamp */
89
+ issuedAt: DateTime;
90
+ }
91
+ /** Rehydrates every wire-encoded scalar in a EmailFactorRegistrationResponse into its runtime type. Mutates and returns `raw`. */
92
+ export declare function reviveEmailFactorRegistrationResponse(raw: EmailFactorRegistrationResponse): EmailFactorRegistrationResponse;
93
+ /**
94
+ * generated from [AuthenticatorFactorRegistrationResponse](../../../../../apps/api/data/contracts/authentication/registration.types.ck#L56)
95
+ */
96
+ export interface AuthenticatorFactorRegistrationResponse {
97
+ /** The method of the factor */
98
+ method: 'authenticator';
99
+ /** The registration identifier */
100
+ registrationId: string;
101
+ /** The secret for the authenticator */
102
+ secret: string;
103
+ /** The URI for the authenticator */
104
+ uri: string;
105
+ /** The QR code for the authenticator */
106
+ qrCode: string;
107
+ /** The expiration timestamp */
108
+ expiresAt: DateTime;
109
+ /** The issuance timestamp */
110
+ issuedAt: DateTime;
111
+ }
112
+ /** Rehydrates every wire-encoded scalar in a AuthenticatorFactorRegistrationResponse into its runtime type. Mutates and returns `raw`. */
113
+ export declare function reviveAuthenticatorFactorRegistrationResponse(raw: AuthenticatorFactorRegistrationResponse): AuthenticatorFactorRegistrationResponse;
114
+ /**
115
+ * The FIDO factor attestation information
116
+ * generated from [FidoFactorAttestation](../../../../../apps/api/data/contracts/authentication/registration.types.ck#L66)
117
+ */
118
+ export interface FidoFactorAttestation {
119
+ /** The relying party */
120
+ rp: {
121
+ name: string;
122
+ id: string;
123
+ icon?: string;
124
+ };
125
+ user: {
126
+ id: string;
127
+ name: string;
128
+ displayName: string;
129
+ };
130
+ /** The challenge */
131
+ challenge: string;
132
+ /** The public key credential parameters */
133
+ pubKeyCredParams: {
134
+ type: 'public-key';
135
+ alg: number;
136
+ }[];
137
+ /** The timeout */
138
+ timeout?: number;
139
+ /** The attestation */
140
+ attestation: 'direct' | 'indirect' | 'none';
141
+ }
142
+ /**
143
+ * generated from [PhoneFactorRegistrationVerification](../../../../../apps/api/data/contracts/authentication/registration.types.ck#L93)
144
+ */
145
+ export interface PhoneFactorRegistrationVerification {
146
+ /** The method of the factor */
147
+ method: 'phone';
148
+ /** The registration identifier */
149
+ registrationId: string;
150
+ /** The verification code */
151
+ code: string;
152
+ /** A base64url encoded one time secret used to validate that the request starts and ends on the same device */
153
+ codeVerifier: string;
154
+ }
155
+ /**
156
+ * generated from [EmailFactorRegistrationVerification](../../../../../apps/api/data/contracts/authentication/registration.types.ck#L100)
157
+ */
158
+ export interface EmailFactorRegistrationVerification {
159
+ /** The method of the factor */
160
+ method: 'email';
161
+ /** The registration identifier */
162
+ registrationId: string;
163
+ /** The verification code */
164
+ code: string;
165
+ /** A base64url encoded one time secret used to validate that the request starts and ends on the same device */
166
+ codeVerifier: string;
167
+ }
168
+ /**
169
+ * generated from [AuthenticatorFactorRegistrationVerification](../../../../../apps/api/data/contracts/authentication/registration.types.ck#L107)
170
+ */
171
+ export interface AuthenticatorFactorRegistrationVerification {
172
+ /** The method of the factor */
173
+ method: 'authenticator';
174
+ /** The registration identifier */
175
+ registrationId: string;
176
+ /** The verification code */
177
+ code: string;
178
+ /** A base64url encoded one time secret used to validate that the request starts and ends on the same device */
179
+ codeVerifier: string;
180
+ }
181
+ /**
182
+ * generated from [FidoFactorRegistrationVerification](../../../../../apps/api/data/contracts/authentication/registration.types.ck#L114)
183
+ */
184
+ export interface FidoFactorRegistrationVerification {
185
+ /** The method of the factor */
186
+ method: 'fido';
187
+ /** The registration identifier */
188
+ registrationId: string;
189
+ /** The credential the client posts back to complete registration */
190
+ credential: PublicKeyCredentialWithAttestation;
191
+ }
192
+ /**
193
+ * Begin enrolling a TOTP authenticator during a pending login MFA challenge (no session — authorized by the challenge)
194
+ * generated from [MfaEnrollAuthenticatorStart](../../../../../apps/api/data/contracts/authentication/registration.types.ck#L122)
195
+ */
196
+ export interface MfaEnrollAuthenticatorStart {
197
+ /** The pending MFA challenge from the `mfa_required` login response */
198
+ mfa_challenge_id: string;
199
+ /** Optional label for the new authenticator factor */
200
+ label?: string;
201
+ }
202
+ /**
203
+ * Verify the first TOTP code, persist the authenticator, and complete login
204
+ * generated from [MfaEnrollAuthenticatorVerify](../../../../../apps/api/data/contracts/authentication/registration.types.ck#L127)
205
+ */
206
+ export interface MfaEnrollAuthenticatorVerify {
207
+ /** The same pending MFA challenge */
208
+ mfa_challenge_id: string;
209
+ /** The registration id returned by the enroll-start response */
210
+ registrationId: string;
211
+ /** The first TOTP code from the user's authenticator app */
212
+ code: string;
213
+ }
214
+ /**
215
+ * A second-factor method a user may enroll
216
+ * generated from [EnrollmentMethod](../../../../../apps/api/data/contracts/authentication/registration.types.ck#L133)
217
+ */
218
+ export type EnrollmentMethod = 'authenticator' | 'phone' | 'fido';
219
+ /**
220
+ * Begin enrolling an SMS phone factor during a pending login MFA challenge (no session — authorized by the challenge)
221
+ * generated from [MfaEnrollPhoneStart](../../../../../apps/api/data/contracts/authentication/registration.types.ck#L139)
222
+ */
223
+ export interface MfaEnrollPhoneStart {
224
+ /** The pending MFA challenge from the `mfa_required` login response */
225
+ mfa_challenge_id: string;
226
+ /** The phone number in E.164 format (e.g. `+12025550123`) */
227
+ value: string;
228
+ }
229
+ /**
230
+ * Acknowledges the phone registration and that an OTP was texted
231
+ * generated from [MfaEnrollPhoneStartResponse](../../../../../apps/api/data/contracts/authentication/registration.types.ck#L144)
232
+ */
233
+ export interface MfaEnrollPhoneStartResponse {
234
+ /** The method of the factor */
235
+ method: 'phone';
236
+ /** The registration id — echo back on the verify call */
237
+ registrationId: string;
238
+ /** When the registration expires */
239
+ expiresAt: DateTime;
240
+ /** When the registration was issued */
241
+ issuedAt: DateTime;
242
+ }
243
+ /** Rehydrates every wire-encoded scalar in a MfaEnrollPhoneStartResponse into its runtime type. Mutates and returns `raw`. */
244
+ export declare function reviveMfaEnrollPhoneStartResponse(raw: MfaEnrollPhoneStartResponse): MfaEnrollPhoneStartResponse;
245
+ /**
246
+ * Verify the texted OTP, persist the phone factor, and complete login
247
+ * generated from [MfaEnrollPhoneVerify](../../../../../apps/api/data/contracts/authentication/registration.types.ck#L151)
248
+ */
249
+ export interface MfaEnrollPhoneVerify {
250
+ /** The same pending MFA challenge */
251
+ mfa_challenge_id: string;
252
+ /** The registration id returned by the enroll-start response */
253
+ registrationId: string;
254
+ /** The one-time code texted to the phone */
255
+ code: string;
256
+ }
257
+ /**
258
+ * Begin enrolling a passkey during a pending login MFA challenge (no session — authorized by the challenge)
259
+ * generated from [MfaEnrollFidoStart](../../../../../apps/api/data/contracts/authentication/registration.types.ck#L157)
260
+ */
261
+ export interface MfaEnrollFidoStart {
262
+ /** The pending MFA challenge from the `mfa_required` login response */
263
+ mfa_challenge_id: string;
264
+ /** Optional label for the new passkey factor */
265
+ label?: string;
266
+ }
267
+ /**
268
+ * Post the new credential back, persist the passkey factor, and complete login
269
+ * generated from [MfaEnrollFidoVerify](../../../../../apps/api/data/contracts/authentication/registration.types.ck#L170)
270
+ */
271
+ export interface MfaEnrollFidoVerify {
272
+ /** The same pending MFA challenge */
273
+ mfa_challenge_id: string;
274
+ /** The registration id returned by the enroll-start response */
275
+ registrationId: string;
276
+ /** The credential produced by `navigator.credentials.create` */
277
+ credential: PublicKeyCredentialWithAttestation;
278
+ }
279
+ /**
280
+ * generated from [AuthenticationFactorRegistration](../../../../../apps/api/data/contracts/authentication/registration.types.ck#L35)
281
+ */
282
+ export type AuthenticationFactorRegistration = PhoneFactorRegistration | PasswordFactorRegistration | EmailFactorRegistration | AuthenticatorFactorRegistration | FidoFactorRegistration;
283
+ /**
284
+ * generated from [FidoFactorRegistrationResponse](../../../../../apps/api/data/contracts/authentication/registration.types.ck#L83)
285
+ */
286
+ export interface FidoFactorRegistrationResponse {
287
+ /** The method of the factor */
288
+ method: 'fido';
289
+ /** The registration identifier */
290
+ registrationId: string;
291
+ /** The expiration timestamp */
292
+ expiresAt: DateTime;
293
+ /** The issuance timestamp */
294
+ issuedAt: DateTime;
295
+ /** The FIDO factor attestation information */
296
+ attestation: FidoFactorAttestation;
297
+ }
298
+ /** Rehydrates every wire-encoded scalar in a FidoFactorRegistrationResponse into its runtime type. Mutates and returns `raw`. */
299
+ export declare function reviveFidoFactorRegistrationResponse(raw: FidoFactorRegistrationResponse): FidoFactorRegistrationResponse;
300
+ /**
301
+ * WebAuthn attestation options for `navigator.credentials.create`
302
+ * generated from [MfaEnrollFidoStartResponse](../../../../../apps/api/data/contracts/authentication/registration.types.ck#L162)
303
+ */
304
+ export interface MfaEnrollFidoStartResponse {
305
+ /** The method of the factor */
306
+ method: 'fido';
307
+ /** The registration id — echo back on the verify call */
308
+ registrationId: string;
309
+ /** When the registration expires */
310
+ expiresAt: DateTime;
311
+ /** When the registration was issued */
312
+ issuedAt: DateTime;
313
+ /** The WebAuthn attestation (credential-creation) options */
314
+ attestation: FidoFactorAttestation;
315
+ }
316
+ /** Rehydrates every wire-encoded scalar in a MfaEnrollFidoStartResponse into its runtime type. Mutates and returns `raw`. */
317
+ export declare function reviveMfaEnrollFidoStartResponse(raw: MfaEnrollFidoStartResponse): MfaEnrollFidoStartResponse;
318
+ /**
319
+ * generated from [AuthenticationFactorRegistrationVerification](../../../../../apps/api/data/contracts/authentication/registration.types.ck#L120)
320
+ */
321
+ export type AuthenticationFactorRegistrationVerification = PhoneFactorRegistrationVerification | EmailFactorRegistrationVerification | AuthenticatorFactorRegistrationVerification | FidoFactorRegistrationVerification;
322
+ /**
323
+ * Which second factors this instance permits enrolling. `phone` is present only when an SMS provider is configured (SMS_DELIVERY != noop); `authenticator` and `fido` are always available.
324
+ * generated from [EnrollmentMethods](../../../../../apps/api/data/contracts/authentication/registration.types.ck#L135)
325
+ */
326
+ export interface EnrollmentMethods {
327
+ /** The enrollable factor methods, in suggested display order */
328
+ methods: EnrollmentMethod[];
329
+ }
330
+ /**
331
+ * generated from [AuthenticationFactorRegistrationResponse](../../../../../apps/api/data/contracts/authentication/registration.types.ck#L91)
332
+ */
333
+ export type AuthenticationFactorRegistrationResponse = PhoneFactorRegistrationResponse | PasswordFactorRegistrationResponse | EmailFactorRegistrationResponse | AuthenticatorFactorRegistrationResponse | FidoFactorRegistrationResponse;
334
+ /** Rehydrates every wire-encoded scalar in a AuthenticationFactorRegistrationResponse into its runtime type. Mutates and returns `raw`. */
335
+ export declare function reviveAuthenticationFactorRegistrationResponse(raw: AuthenticationFactorRegistrationResponse): AuthenticationFactorRegistrationResponse;
336
+ //# sourceMappingURL=registration.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registration.types.d.ts","sourceRoot":"","sources":["../../../src/authentication/types/registration.types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,2BAA2B,CAAC;AAYpF;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC,+BAA+B;IAC/B,MAAM,EAAE,OAAO,CAAC;IAChB,6DAA6D;IAC7D,KAAK,EAAE,MAAM,CAAC;IACd,gIAAgI;IAChI,aAAa,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACvC,+BAA+B;IAC/B,MAAM,EAAE,UAAU,CAAC;IACnB,mBAAmB;IACnB,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC,+BAA+B;IAC/B,MAAM,EAAE,OAAO,CAAC;IAChB,wBAAwB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,gIAAgI;IAChI,aAAa,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC5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AAE,QAAQ,CAAC;IACpB,uCAAuC;IACvC,QAAQ,EAAE,QAAQ,CAAC;IACnB,6DAA6D;IAC7D,WAAW,EAAE,qBAAqB,CAAC;CACtC;AAED,6HAA6H;AAC7H,wBAAgB,gCAAgC,CAAC,GAAG,EAAE,0BAA0B,GAAG,0BAA0B,CAK5G;AAED;;GAEG;AACH,MAAM,MAAM,4CAA4C,GAClD,mCAAmC,GACnC,mCAAmC,GACnC,2CAA2C,GAC3C,kCAAkC,CAAC;AAEzC;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAC9B,gEAAgE;IAChE,OAAO,EAAE,gBAAgB,EAAE,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,MAAM,wCAAwC,GAC9C,+BAA+B,GAC/B,kCAAkC,GAClC,+BAA+B,GAC/B,uCAAuC,GACvC,8BAA8B,CAAC;AAErC,2IAA2I;AAC3I,wBAAgB,8CAA8C,CAC1D,GAAG,EAAE,wCAAwC,GAC9C,wCAAwC,CAkB1C"}
@@ -0,0 +1,96 @@
1
+ import type { SdkFetch } from '../sdk-options.js';
2
+ import type { Album, AlbumEnrichmentDetail, AlbumPage, Artist, ArtistEnrichmentDetail, ArtistPage, CatalogQueryInput, ClearEnrichmentQuery, RateInput, Track, TrackClearResult, TrackDetail, TrackEnrichmentDetail, TrackPage, TrackQueryInput } from './types/catalog.types.js';
3
+ export declare class CatalogClient {
4
+ private fetch;
5
+ constructor(fetch: SdkFetch);
6
+ /**
7
+ * @name List artists
8
+ * @description Every artist the station has ingested, ordered by name
9
+ */
10
+ listArtists(query?: CatalogQueryInput): Promise<ArtistPage>;
11
+ /**
12
+ * @name Get artist
13
+ * @description One artist. 404s on an id that was merged away, since reads never return merged rows
14
+ */
15
+ getArtist(id: string): Promise<Artist>;
16
+ /**
17
+ * @name Get artist enrichment
18
+ * @description What every enrichment provider said about this artist, and when each of them said it
19
+ */
20
+ getArtistEnrichment(id: string): Promise<ArtistEnrichmentDetail>;
21
+ /**
22
+ * @name List artist albums
23
+ * @description The albums credited to one artist
24
+ */
25
+ listArtistAlbums(id: string, query?: CatalogQueryInput): Promise<AlbumPage>;
26
+ /**
27
+ * @name Rate artist
28
+ * @description What the station thinks of this artist. A dislike here excludes every record they are credited on
29
+ */
30
+ rateArtist(id: string, body: RateInput): Promise<Artist>;
31
+ /** @name List albums */
32
+ listAlbums(query?: CatalogQueryInput): Promise<AlbumPage>;
33
+ /** @name Get album */
34
+ getAlbum(id: string): Promise<Album>;
35
+ /**
36
+ * @name Get album enrichment
37
+ * @description The record's own enrichment: the label, pressing and cover belong to the release, not to a track on it
38
+ */
39
+ getAlbumEnrichment(id: string): Promise<AlbumEnrichmentDetail>;
40
+ /**
41
+ * @name List album tracks
42
+ * @description One album's tracks
43
+ */
44
+ listAlbumTracks(id: string, query?: TrackQueryInput): Promise<TrackPage>;
45
+ /**
46
+ * @name Rate album
47
+ * @description What the station thinks of this record. A dislike here excludes every track on it
48
+ */
49
+ rateAlbum(id: string, body: RateInput): Promise<Album>;
50
+ /**
51
+ * @name Get track
52
+ * @description One record and everything it has accumulated: its copies, its bytes, its measurement, what it has aired
53
+ */
54
+ getTrack(id: string): Promise<TrackDetail>;
55
+ /**
56
+ * @name Clear track audio
57
+ * @description Drop the station's own copies of this record. The next play fetches them again
58
+ */
59
+ clearTrackAudio(id: string): Promise<TrackClearResult>;
60
+ /**
61
+ * @name Clear track analysis
62
+ * @description Forget the measurement, so the walk takes it again
63
+ */
64
+ clearTrackAnalysis(id: string): Promise<TrackClearResult>;
65
+ /**
66
+ * @name Retry track audio
67
+ * @description Try this record's copies again now, rather than when the backoff says
68
+ */
69
+ retryTrackAudio(id: string): Promise<TrackClearResult>;
70
+ /**
71
+ * @name Offer track copies again
72
+ * @description Put copies a provider refused back on offer, and clear their backoff so they are tried now
73
+ */
74
+ offerTrackCopiesAgain(id: string): Promise<TrackClearResult>;
75
+ /**
76
+ * @name Get track enrichment
77
+ * @description What the providers said about one recording, including everything no canonical column holds
78
+ */
79
+ getTrackEnrichment(id: string): Promise<TrackEnrichmentDetail>;
80
+ /**
81
+ * @name Clear track enrichment
82
+ * @description Forget what the providers said, so the enrichment pass asks again
83
+ */
84
+ clearTrackEnrichment(id: string, query?: ClearEnrichmentQuery): Promise<TrackClearResult>;
85
+ /**
86
+ * @name List tracks
87
+ * @description Every track, flat. The only way to answer "do we have this song?" without knowing its artist
88
+ */
89
+ listTracks(query?: TrackQueryInput): Promise<TrackPage>;
90
+ /**
91
+ * @name Rate track
92
+ * @description What the station thinks of this song, which is the narrowest thing an opinion can be about
93
+ */
94
+ rateTrack(id: string, body: RateInput): Promise<Track>;
95
+ }
96
+ //# sourceMappingURL=catalog.client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.client.d.ts","sourceRoot":"","sources":["../../src/catalog/catalog.client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,KAAK,EACR,KAAK,EACL,qBAAqB,EACrB,SAAS,EACT,MAAM,EACN,sBAAsB,EACtB,UAAU,EACV,iBAAiB,EACjB,oBAAoB,EACpB,SAAS,EACT,KAAK,EACL,gBAAgB,EAChB,WAAW,EACX,qBAAqB,EACrB,SAAS,EACT,eAAe,EAClB,MAAM,0BAA0B,CAAC;AAGlC,qBAAa,aAAa;IACV,OAAO,CAAC,KAAK;gBAAL,KAAK,EAAE,QAAQ;IAEnC;;;OAGG;IACG,WAAW,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,UAAU,CAAC;IAQjE;;;OAGG;IACG,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAK5C;;;OAGG;IACG,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAKtE;;;OAGG;IACG,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,iBAAiB,GAAG,OAAO,C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