@greensecurity/javascript-sdk 0.43.1-beta.0 → 0.43.1-beta.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 (53) hide show
  1. package/README.md +18 -18
  2. package/dist/commonjs/__tests__/zones.test.js +2 -5
  3. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  4. package/dist/commonjs/lib/config.d.ts +3 -3
  5. package/dist/commonjs/lib/config.js +3 -3
  6. package/dist/commonjs/lib/config.js.map +1 -1
  7. package/dist/commonjs/models/components/mfarequiredresponse.d.ts +2 -8
  8. package/dist/commonjs/models/components/mfarequiredresponse.d.ts.map +1 -1
  9. package/dist/commonjs/models/components/mfarequiredresponse.js +2 -7
  10. package/dist/commonjs/models/components/mfarequiredresponse.js.map +1 -1
  11. package/dist/commonjs/models/components/passwordrequiredresponse.d.ts +1 -8
  12. package/dist/commonjs/models/components/passwordrequiredresponse.d.ts.map +1 -1
  13. package/dist/commonjs/models/components/passwordrequiredresponse.js +2 -8
  14. package/dist/commonjs/models/components/passwordrequiredresponse.js.map +1 -1
  15. package/dist/commonjs/models/components/samlloginrequiredresponse.d.ts +1 -8
  16. package/dist/commonjs/models/components/samlloginrequiredresponse.d.ts.map +1 -1
  17. package/dist/commonjs/models/components/samlloginrequiredresponse.js +2 -7
  18. package/dist/commonjs/models/components/samlloginrequiredresponse.js.map +1 -1
  19. package/dist/commonjs/models/operations/postauthenticate.d.ts +2 -14
  20. package/dist/commonjs/models/operations/postauthenticate.d.ts.map +1 -1
  21. package/dist/commonjs/models/operations/postauthenticate.js +6 -6
  22. package/dist/commonjs/models/operations/postauthenticate.js.map +1 -1
  23. package/dist/esm/__tests__/zones.test.js +2 -5
  24. package/dist/esm/__tests__/zones.test.js.map +1 -1
  25. package/dist/esm/lib/config.d.ts +3 -3
  26. package/dist/esm/lib/config.js +3 -3
  27. package/dist/esm/lib/config.js.map +1 -1
  28. package/dist/esm/models/components/mfarequiredresponse.d.ts +2 -8
  29. package/dist/esm/models/components/mfarequiredresponse.d.ts.map +1 -1
  30. package/dist/esm/models/components/mfarequiredresponse.js +1 -6
  31. package/dist/esm/models/components/mfarequiredresponse.js.map +1 -1
  32. package/dist/esm/models/components/passwordrequiredresponse.d.ts +1 -8
  33. package/dist/esm/models/components/passwordrequiredresponse.d.ts.map +1 -1
  34. package/dist/esm/models/components/passwordrequiredresponse.js +1 -7
  35. package/dist/esm/models/components/passwordrequiredresponse.js.map +1 -1
  36. package/dist/esm/models/components/samlloginrequiredresponse.d.ts +1 -8
  37. package/dist/esm/models/components/samlloginrequiredresponse.d.ts.map +1 -1
  38. package/dist/esm/models/components/samlloginrequiredresponse.js +1 -6
  39. package/dist/esm/models/components/samlloginrequiredresponse.js.map +1 -1
  40. package/dist/esm/models/operations/postauthenticate.d.ts +2 -14
  41. package/dist/esm/models/operations/postauthenticate.d.ts.map +1 -1
  42. package/dist/esm/models/operations/postauthenticate.js +6 -6
  43. package/dist/esm/models/operations/postauthenticate.js.map +1 -1
  44. package/examples/package-lock.json +1 -1
  45. package/jsr.json +1 -1
  46. package/package.json +1 -1
  47. package/src/__tests__/zones.test.ts +2 -5
  48. package/src/lib/config.ts +3 -3
  49. package/src/models/components/mfarequiredresponse.ts +3 -15
  50. package/src/models/components/passwordrequiredresponse.ts +2 -12
  51. package/src/models/components/samlloginrequiredresponse.ts +2 -15
  52. package/src/models/operations/postauthenticate.ts +12 -24
  53. package/tsconfig.json +1 -1
package/README.md CHANGED
@@ -173,22 +173,22 @@ run();
173
173
  <details open>
174
174
  <summary>Available methods</summary>
175
175
 
176
- ### [alerts](docs/sdks/alerts/README.md)
176
+ ### [Alerts](docs/sdks/alerts/README.md)
177
177
 
178
178
  * [listAlerts](docs/sdks/alerts/README.md#listalerts) - List alerts
179
179
  * [updateUserAlerts](docs/sdks/alerts/README.md#updateuseralerts) - Update user alerts
180
180
 
181
- ### [companies](docs/sdks/companies/README.md)
181
+ ### [Companies](docs/sdks/companies/README.md)
182
182
 
183
183
  * [listOrSearchCompanies](docs/sdks/companies/README.md#listorsearchcompanies) - List or search companies
184
184
 
185
- ### [dataRequests](docs/sdks/datarequests/README.md)
185
+ ### [DataRequests](docs/sdks/datarequests/README.md)
186
186
 
187
187
  * [addDataRequestFile](docs/sdks/datarequests/README.md#adddatarequestfile) - Add vendor credential data request
188
188
  * [deleteDataRequestFile](docs/sdks/datarequests/README.md#deletedatarequestfile) - Delete vendor credential data request file
189
189
  * [updateDataRequest](docs/sdks/datarequests/README.md#updatedatarequest) - Update vendor credential data request
190
190
 
191
- ### [events](docs/sdks/events/README.md)
191
+ ### [Events](docs/sdks/events/README.md)
192
192
 
193
193
  * [createEvent](docs/sdks/events/README.md#createevent) - Create a new event for calendar
194
194
  * [updateEvent](docs/sdks/events/README.md#updateevent) - Update event for calendar
@@ -201,7 +201,7 @@ run();
201
201
  * [listFeed](docs/sdks/events/README.md#listfeed) - List events feed
202
202
  * [listStandingAppointments](docs/sdks/events/README.md#liststandingappointments) - List standing appointments
203
203
 
204
- ### [fhirConfigs](docs/sdks/fhirconfigs/README.md)
204
+ ### [FhirConfigs](docs/sdks/fhirconfigs/README.md)
205
205
 
206
206
  * [listOfFhirConfigurations](docs/sdks/fhirconfigs/README.md#listoffhirconfigurations) - List of FHIR configurations
207
207
  * [createAFhirConfig](docs/sdks/fhirconfigs/README.md#createafhirconfig) - Create a FHIR configuration
@@ -209,33 +209,33 @@ run();
209
209
  * [updateFhirConfigById](docs/sdks/fhirconfigs/README.md#updatefhirconfigbyid) - Update any portion of a FHIR config by ID
210
210
  * [deleteFhirConfigById](docs/sdks/fhirconfigs/README.md#deletefhirconfigbyid) - Delete a FHIR config by ID
211
211
 
212
- ### [invoices](docs/sdks/invoices/README.md)
212
+ ### [Invoices](docs/sdks/invoices/README.md)
213
213
 
214
214
  * [createInvoice](docs/sdks/invoices/README.md#createinvoice) - Create invoice
215
215
  * [updateInvoice](docs/sdks/invoices/README.md#updateinvoice) - Update invoice
216
216
  * [makePayment](docs/sdks/invoices/README.md#makepayment) - Make payment for the invoice
217
217
 
218
- ### [mobileDevices](docs/sdks/mobiledevices/README.md)
218
+ ### [MobileDevices](docs/sdks/mobiledevices/README.md)
219
219
 
220
220
  * [addMobileDevice](docs/sdks/mobiledevices/README.md#addmobiledevice) - Add mobile device
221
221
 
222
- ### [organizations](docs/sdks/organizations/README.md)
222
+ ### [Organizations](docs/sdks/organizations/README.md)
223
223
 
224
224
  * [listOrSearchFacilities](docs/sdks/organizations/README.md#listorsearchfacilities) - List or search facilities
225
225
  * [getFacility](docs/sdks/organizations/README.md#getfacility) - Get facility
226
226
  * [listOrSearchDepartments](docs/sdks/organizations/README.md#listorsearchdepartments) - List or search departments
227
227
  * [listOrSearchDepartmentContacts](docs/sdks/organizations/README.md#listorsearchdepartmentcontacts) - List or search department contacts
228
228
 
229
- ### [supportArticles](docs/sdks/supportarticles/README.md)
229
+ ### [SupportArticles](docs/sdks/supportarticles/README.md)
230
230
 
231
231
  * [listOrSearchSupportArticles](docs/sdks/supportarticles/README.md#listorsearchsupportarticles) - List or search support articles
232
232
  * [getSupportArticle](docs/sdks/supportarticles/README.md#getsupportarticle) - Get support article
233
233
 
234
- ### [systems](docs/sdks/systems/README.md)
234
+ ### [Systems](docs/sdks/systems/README.md)
235
235
 
236
236
  * [listSystems](docs/sdks/systems/README.md#listsystems) - List systems
237
237
 
238
- ### [users](docs/sdks/users/README.md)
238
+ ### [Users](docs/sdks/users/README.md)
239
239
 
240
240
  * [getCurrentUser](docs/sdks/users/README.md#getcurrentuser) - Get current user
241
241
  * [getUserById](docs/sdks/users/README.md#getuserbyid) - Get user by id
@@ -246,7 +246,11 @@ run();
246
246
  * [password](docs/sdks/users/README.md#password) - Password reset
247
247
  * [changePassword](docs/sdks/users/README.md#changepassword) - Change password
248
248
 
249
- ### [vendors](docs/sdks/vendors/README.md)
249
+ ### [VendorScans](docs/sdks/vendorscans/README.md)
250
+
251
+ * [vendorScanOut](docs/sdks/vendorscans/README.md#vendorscanout) - Vendor scan out
252
+
253
+ ### [Vendors](docs/sdks/vendors/README.md)
250
254
 
251
255
  * [createVendorRegistration](docs/sdks/vendors/README.md#createvendorregistration) - Create vendor registration
252
256
  * [listVendorJobTitles](docs/sdks/vendors/README.md#listvendorjobtitles) - List vendor job titles
@@ -293,17 +297,13 @@ run();
293
297
  * [calculateSubscriptionPrice](docs/sdks/vendors/README.md#calculatesubscriptionprice) - Calculate subscription price
294
298
  * [getNextUnansweredScreeningQuestion](docs/sdks/vendors/README.md#getnextunansweredscreeningquestion) - Get the next unanswered screening question
295
299
 
296
- ### [vendorScans](docs/sdks/vendorscans/README.md)
297
-
298
- * [vendorScanOut](docs/sdks/vendorscans/README.md#vendorscanout) - Vendor scan out
299
-
300
- ### [webhooks](docs/sdks/webhooks/README.md)
300
+ ### [Webhooks](docs/sdks/webhooks/README.md)
301
301
 
302
302
  * [listAllWebhookEndpoints](docs/sdks/webhooks/README.md#listallwebhookendpoints) - List all webhook endpoints
303
303
  * [getWebhookEndpoint](docs/sdks/webhooks/README.md#getwebhookendpoint) - Retrieves the webhook endpoint with the given ID.
304
304
  * [updatesTheWebhookEndpointWithTheGivenId](docs/sdks/webhooks/README.md#updatesthewebhookendpointwiththegivenid) - Updates the webhook endpoint with the given ID.
305
305
 
306
- ### [zones](docs/sdks/zones/README.md)
306
+ ### [Zones](docs/sdks/zones/README.md)
307
307
 
308
308
  * [listOrSearchSecurityZones](docs/sdks/zones/README.md#listorsearchsecurityzones) - List or search security zones
309
309
  * [getSecurityZone](docs/sdks/zones/README.md#getsecurityzone) - Get security zone details
@@ -34,10 +34,7 @@ const testclient_js_1 = require("./testclient.js");
34
34
  },
35
35
  items: [
36
36
  {
37
- facility: {
38
- contacts: null,
39
- vendorGuestPolicy: null,
40
- },
37
+ facility: {},
41
38
  },
42
39
  {
43
40
  facility: {},
@@ -56,7 +53,7 @@ const testclient_js_1 = require("./testclient.js");
56
53
  });
57
54
  const result = await greenSecurity.zones.securityZoneCheckin({
58
55
  qrCode: "<value>",
59
- zoneId: 579390,
56
+ zoneId: 423655,
60
57
  });
61
58
  (0, vitest_1.expect)(result).toBeDefined();
62
59
  (0, vitest_1.expect)(result).toEqual({});
@@ -1 +1 @@
1
- {"version":3,"file":"zones.test.js","sourceRoot":"","sources":["../../../src/__tests__/zones.test.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAEH,mCAAsC;AACtC,0CAA4C;AAC5C,mDAAuD;AAEvD,IAAA,aAAI,EAAC,qCAAqC,EAAE,KAAK,IAAI,EAAE;IACrD,MAAM,cAAc,GAAG,IAAA,oCAAoB,EAAC,2BAA2B,CAAC,CAAC;IAEzE,MAAM,aAAa,GAAG,IAAI,wBAAa,CAAC;QACtC,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,4BAA4B;QACzE,UAAU,EAAE,cAAc;QAC1B,QAAQ,EAAE;YACR,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,IAAI,OAAO;SACtD;KACF,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,MAAM,aAAa,CAAC,KAAK,CAAC,yBAAyB,CAAC;QACjE,IAAI,EAAE,KAAK;QACX,IAAI,EAAE,CAAC;QACP,YAAY,EAAE,EAAE;KACjB,CAAC,CAAC;IACH,IAAA,eAAM,EAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC;IAC7B,IAAA,eAAM,EAAC,MAAM,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC;IACpC,IAAA,eAAM,EAAC,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC;QAC5B,KAAK,EAAE;YACL,OAAO,EAAE,wBAAwB;YACjC,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,CAAC;YACP,SAAS,EAAE,GAAG;YACd,YAAY,EAAE,MAAM;YACpB,IAAI,EAAE,CAAC;YACP,YAAY,EAAE,KAAK;SACpB;QACD,KAAK,EAAE;YACL;gBACE,QAAQ,EAAE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EH,MAAM,MAAM,GAAG,MAAM,aAAa,CAAC,KAAK,CAAC,eAAe,CAAC;QACvD,EAAE,EAAE,KAAK;KACV,CAAC,CAAC;IACH,IAAA,eAAM,EAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC;IAC7B,IAAA,eAAM,EAAC,MAAM,CAAC,CAAC,OAAO,CAAC;QACrB,QAAQ,EAAE,EAAE;KACb,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -35,8 +35,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
35
35
  export declare const SDK_METADATA: {
36
36
  readonly language: "typescript";
37
37
  readonly openapiDocVersion: "0.0.10";
38
- readonly sdkVersion: "0.43.0";
39
- readonly genVersion: "2.767.2";
40
- readonly userAgent: "speakeasy-sdk/typescript 0.43.0 2.767.2 0.0.10 @greensecurity/javascript-sdk";
38
+ readonly sdkVersion: "0.43.1-beta.0";
39
+ readonly genVersion: "2.773.3";
40
+ readonly userAgent: "speakeasy-sdk/typescript 0.43.1-beta.0 2.773.3 0.0.10 @greensecurity/javascript-sdk";
41
41
  };
42
42
  //# sourceMappingURL=config.d.ts.map
@@ -43,8 +43,8 @@ function serverURLFromOptions(options) {
43
43
  exports.SDK_METADATA = {
44
44
  language: "typescript",
45
45
  openapiDocVersion: "0.0.10",
46
- sdkVersion: "0.43.0",
47
- genVersion: "2.767.2",
48
- userAgent: "speakeasy-sdk/typescript 0.43.0 2.767.2 0.0.10 @greensecurity/javascript-sdk",
46
+ sdkVersion: "0.43.1-beta.0",
47
+ genVersion: "2.773.3",
48
+ userAgent: "speakeasy-sdk/typescript 0.43.1-beta.0 2.773.3 0.0.10 @greensecurity/javascript-sdk",
49
49
  };
50
50
  //# sourceMappingURL=config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AA4DH,oDAeC;AArED,qCAA8C;AAE9C;;GAEG;AACU,QAAA,UA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AC;IAElC,MAAM,MAAM,GAAW,EAAE,CAAC;IAE1B,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,CAAC,CAAC;QACzC,IAAI,SAAS,GAAG,CAAC,IAAI,SAAS,IAAI,kBAAU,CAAC,MAAM,EAAE,CAAC;YACpD,MAAM,IAAI,KAAK,CAAC,wBAAwB,SAAS,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,SAAS,GAAG,kBAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,GAAG,IAAA,mBAAU,EAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAEY,QAAA,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,QAAQ;IAC3B,UAAU,EAAE,eAAe;IAC3B,UAAU,EAAE,SAAS;IACrB,SAAS,EACP,qFAAqF;CAC/E,CAAC"}
@@ -1,11 +1,7 @@
1
1
  import * as z from "zod/v3";
2
- import { ClosedEnum, OpenEnum } from "../../types/enums.js";
2
+ import { OpenEnum } from "../../types/enums.js";
3
3
  import { Result as SafeParseResult } from "../../types/fp.js";
4
4
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
- export declare const MfaRequiredResponseRequires: {
6
- readonly MfaCode: "mfa_code";
7
- };
8
- export type MfaRequiredResponseRequires = ClosedEnum<typeof MfaRequiredResponseRequires>;
9
5
  export declare const MfaMethod: {
10
6
  readonly Text: "text";
11
7
  readonly Email: "email";
@@ -19,7 +15,7 @@ export type MfaMethod = OpenEnum<typeof MfaMethod>;
19
15
  * If the `mfa_method` is text or email, it's best to show helper text to the user to notify them that a code was sent via mobile or email and they should enter it to proceed.
20
16
  */
21
17
  export type MfaRequiredResponse = {
22
- requires: MfaRequiredResponseRequires;
18
+ requires: "mfa_code";
23
19
  success: boolean;
24
20
  /**
25
21
  * Error describing the exact condition of what further steps are needed to finish the login process.
@@ -32,8 +28,6 @@ export type MfaRequiredResponse = {
32
28
  mfaMethod?: MfaMethod | undefined;
33
29
  };
34
30
  /** @internal */
35
- export declare const MfaRequiredResponseRequires$inboundSchema: z.ZodNativeEnum<typeof MfaRequiredResponseRequires>;
36
- /** @internal */
37
31
  export declare const MfaMethod$inboundSchema: z.ZodType<MfaMethod, z.ZodTypeDef, unknown>;
38
32
  /** @internal */
39
33
  export declare const MfaRequiredResponse$inboundSchema: z.ZodType<MfaRequiredResponse, z.ZodTypeDef, unknown>;
@@ -1 +1 @@
1
- {"version":3,"file":"mfarequiredresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/mfarequiredresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAI5B,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,eAAO,MAAM,2BAA2B;;CAE9B,CAAC;AACX,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAClD,OAAO,2BAA2B,CACnC,CAAC;AAEF,eAAO,MAAM,SAAS;;;CAGZ,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAC;AAEnD;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,2BAA2B,CAAC;IACtC,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,eA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AC6B,CAAC;AAEvC,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,mBAAmB,EACnB,CAAC,CAAC,UAAU,EACZ,OAAO,CAYP,CAAC;AAEH,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
@@ -36,27 +36,22 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.MfaRequiredResponse$inboundSchema = exports.MfaMethod$inboundSchema = exports.MfaRequiredResponseRequires$inboundSchema = exports.MfaMethod = exports.MfaRequiredResponseRequires = void 0;
39
+ exports.MfaRequiredResponse$inboundSchema = exports.MfaMethod$inboundSchema = exports.MfaMethod = void 0;
40
40
  exports.mfaRequiredResponseFromJSON = mfaRequiredResponseFromJSON;
41
41
  const z = __importStar(require("zod/v3"));
42
42
  const primitives_js_1 = require("../../lib/primitives.js");
43
43
  const schemas_js_1 = require("../../lib/schemas.js");
44
44
  const openEnums = __importStar(require("../../types/enums.js"));
45
45
  const types = __importStar(require("../../types/primitives.js"));
46
- exports.MfaRequiredResponseRequires = {
47
- MfaCode: "mfa_code",
48
- };
49
46
  exports.MfaMethod = {
50
47
  Text: "text",
51
48
  Email: "email",
52
49
  };
53
50
  /** @internal */
54
- exports.MfaRequiredResponseRequires$inboundSchema = z.nativeEnum(exports.MfaRequiredResponseRequires);
55
- /** @internal */
56
51
  exports.MfaMethod$inboundSchema = openEnums.inboundSchema(exports.MfaMethod);
57
52
  /** @internal */
58
53
  exports.MfaRequiredResponse$inboundSchema = z.object({
59
- requires: exports.MfaRequiredResponseRequires$inboundSchema,
54
+ requires: types.literal("mfa_code"),
60
55
  success: types.boolean(),
61
56
  error: types.string(),
62
57
  mobile_phone: types.optional(types.string()),
@@ -1 +1 @@
1
- {"version":3,"file":"mfarequiredresponse.js","sourceRoot":"","sources":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"file":"mfarequiredresponse.js","sourceRoot":"","sources":["../../../../src/models/components/mfarequiredresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+DH,kEAQC;AArED,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AACjD,gEAAkD;AAGlD,iEAAmD;AAGtC,QAAA,SAAS,GAAG;IACvB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACN,CAAC;AAwBX,gBAAgB;AACH,QAAA,uBAAuB,GAIhC,SAAS,CAAC,aAAa,CAAC,iBAAS,CAAC,CAAC;AAEvC,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC;IACnC,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE;IACxB,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE;IACrB,YAAY,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAC5C,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,+BAAuB,CAAC;CACpD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,cAAc,EAAE,aAAa;QAC7B,YAAY,EAAE,WAAW;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,2BAA2B,CACzC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yCAAiC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7D,iDAAiD,CAClD,CAAC;AACJ,CAAC"}
@@ -1,16 +1,11 @@
1
1
  import * as z from "zod/v3";
2
- import { ClosedEnum } from "../../types/enums.js";
3
2
  import { Result as SafeParseResult } from "../../types/fp.js";
4
3
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
- export declare const Requires: {
6
- readonly Password: "password";
7
- };
8
- export type Requires = ClosedEnum<typeof Requires>;
9
4
  /**
10
5
  * The response is sent when the email address provided requires a password (no SAML login).
11
6
  */
12
7
  export type PasswordRequiredResponse = {
13
- requires: Requires;
8
+ requires: "password";
14
9
  success: boolean;
15
10
  /**
16
11
  * Error describing the exact condition of what further steps are needed to finish the login process.
@@ -18,8 +13,6 @@ export type PasswordRequiredResponse = {
18
13
  error: string;
19
14
  };
20
15
  /** @internal */
21
- export declare const Requires$inboundSchema: z.ZodNativeEnum<typeof Requires>;
22
- /** @internal */
23
16
  export declare const PasswordRequiredResponse$inboundSchema: z.ZodType<PasswordRequiredResponse, z.ZodTypeDef, unknown>;
24
17
  export declare function passwordRequiredResponseFromJSON(jsonString: string): SafeParseResult<PasswordRequiredResponse, SDKValidationError>;
25
18
  //# sourceMappingURL=passwordrequiredresponse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"passwordrequiredresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/passwordrequiredresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,eAAO,MAAM,QAAQ;;CAEX,CAAC;AACX,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,QAAQ,CAC7C,CAAC;AAExB,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,wBAAwB,EAAE,kBAAkB,CAAC,CAM/D"}
1
+ {"version":3,"file":"passwordrequiredresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/passwordrequiredresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,QAAQ,EAAE,UAAU,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,wBAAwB,EAAE,kBAAkB,CAAC,CAM/D"}
@@ -36,20 +36,14 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.PasswordRequiredResponse$inboundSchema = exports.Requires$inboundSchema = exports.Requires = void 0;
39
+ exports.PasswordRequiredResponse$inboundSchema = void 0;
40
40
  exports.passwordRequiredResponseFromJSON = passwordRequiredResponseFromJSON;
41
41
  const z = __importStar(require("zod/v3"));
42
42
  const schemas_js_1 = require("../../lib/schemas.js");
43
43
  const types = __importStar(require("../../types/primitives.js"));
44
- exports.Requires = {
45
- Password: "password",
46
- };
47
- /** @internal */
48
- exports.Requires$inboundSchema = z
49
- .nativeEnum(exports.Requires);
50
44
  /** @internal */
51
45
  exports.PasswordRequiredResponse$inboundSchema = z.object({
52
- requires: exports.Requires$inboundSchema,
46
+ requires: types.literal("password"),
53
47
  success: types.boolean(),
54
48
  error: types.string(),
55
49
  });
@@ -1 +1 @@
1
- {"version":3,"file":"passwordrequiredresponse.js","sourceRoot":"","sources":["../../../../src/models/components/passwordrequiredresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCH,4EAQC;AA/CD,0CAA4B;AAC5B,qDAAiD;AAGjD,iEAAmD;AAGtC,QAAA,QAAQ,GAAG;IACtB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAeX,gBAAgB;AACH,QAAA,sBAAsB,GAAqC,CAAC;KACtE,UAAU,CAAC,gBAAQ,CAAC,CAAC;AAExB,gBAAgB;AACH,QAAA,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,8BAAsB;IAChC,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE;IACxB,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAEH,SAAgB,gCAAgC,CAC9C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8CAAsC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClE,sDAAsD,CACvD,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"passwordrequiredresponse.js","sourceRoot":"","sources":["../../../../src/models/components/passwordrequiredresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BH,4EAQC;AArCD,0CAA4B;AAC5B,qDAAiD;AAEjD,iEAAmD;AAenD,gBAAgB;AACH,QAAA,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC;IACnC,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE;IACxB,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAEH,SAAgB,gCAAgC,CAC9C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8CAAsC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClE,sDAAsD,CACvD,CAAC;AACJ,CAAC"}
@@ -1,11 +1,6 @@
1
1
  import * as z from "zod/v3";
2
- import { ClosedEnum } from "../../types/enums.js";
3
2
  import { Result as SafeParseResult } from "../../types/fp.js";
4
3
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
- export declare const SamlLoginRequiredResponseRequires: {
6
- readonly SamlLogin: "saml_login";
7
- };
8
- export type SamlLoginRequiredResponseRequires = ClosedEnum<typeof SamlLoginRequiredResponseRequires>;
9
4
  /**
10
5
  * The email address provided must complete SAML authentication at the provided `sso_url` which encodes the `return_url` that was sent as part of the request.
11
6
  *
@@ -14,7 +9,7 @@ export type SamlLoginRequiredResponseRequires = ClosedEnum<typeof SamlLoginRequi
14
9
  * The user will complete their SAML login at the external IdP and the browser will be redirected to your selected `return_url` with an extra query string parameter called `user_token`. That token is equivalent to the user login and can be used in the `/users/me` endpoint to get user details.
15
10
  */
16
11
  export type SamlLoginRequiredResponse = {
17
- requires: SamlLoginRequiredResponseRequires;
12
+ requires: "saml_login";
18
13
  success: boolean;
19
14
  error: string;
20
15
  /**
@@ -27,8 +22,6 @@ export type SamlLoginRequiredResponse = {
27
22
  ssoUrl: string;
28
23
  };
29
24
  /** @internal */
30
- export declare const SamlLoginRequiredResponseRequires$inboundSchema: z.ZodNativeEnum<typeof SamlLoginRequiredResponseRequires>;
31
- /** @internal */
32
25
  export declare const SamlLoginRequiredResponse$inboundSchema: z.ZodType<SamlLoginRequiredResponse, z.ZodTypeDef, unknown>;
33
26
  export declare function samlLoginRequiredResponseFromJSON(jsonString: string): SafeParseResult<SamlLoginRequiredResponse, SDKValidationError>;
34
27
  //# sourceMappingURL=samlloginrequiredresponse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"samlloginrequiredresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/samlloginrequiredresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,eAAO,MAAM,iCAAiC;;CAEpC,CAAC;AACX,MAAM,MAAM,iCAAiC,GAAG,UAAU,CACxD,OAAO,iCAAiC,CACzC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,EAAE,iCAAiC,CAAC;IAC5C,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+CAA+C,EAAE,CAAC,CAAC,aAAa,CAC3E,OAAO,iCAAiC,CACS,CAAC;AAEpD,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,OAAO,CAYP,CAAC;AAEH,wBAAgB,iCAAiC,CAC/C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,yBAAyB,EAAE,kBAAkB,CAAC,CAMhE"}
1
+ {"version":3,"file":"samlloginrequiredresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/samlloginrequiredresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;;;;;GAMG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,EAAE,YAAY,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,OAAO,CAYP,CAAC;AAEH,wBAAgB,iCAAiC,CAC/C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,yBAAyB,EAAE,kBAAkB,CAAC,CAMhE"}
@@ -36,20 +36,15 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.SamlLoginRequiredResponse$inboundSchema = exports.SamlLoginRequiredResponseRequires$inboundSchema = exports.SamlLoginRequiredResponseRequires = void 0;
39
+ exports.SamlLoginRequiredResponse$inboundSchema = void 0;
40
40
  exports.samlLoginRequiredResponseFromJSON = samlLoginRequiredResponseFromJSON;
41
41
  const z = __importStar(require("zod/v3"));
42
42
  const primitives_js_1 = require("../../lib/primitives.js");
43
43
  const schemas_js_1 = require("../../lib/schemas.js");
44
44
  const types = __importStar(require("../../types/primitives.js"));
45
- exports.SamlLoginRequiredResponseRequires = {
46
- SamlLogin: "saml_login",
47
- };
48
- /** @internal */
49
- exports.SamlLoginRequiredResponseRequires$inboundSchema = z.nativeEnum(exports.SamlLoginRequiredResponseRequires);
50
45
  /** @internal */
51
46
  exports.SamlLoginRequiredResponse$inboundSchema = z.object({
52
- requires: exports.SamlLoginRequiredResponseRequires$inboundSchema,
47
+ requires: types.literal("saml_login"),
53
48
  success: types.boolean(),
54
49
  error: types.string(),
55
50
  sso_instructions: types.optional(types.string()),
@@ -1 +1 @@
1
- {"version":3,"file":"samlloginrequiredresponse.js","sourceRoot":"","sources":["../../../../src/models/components/samlloginrequiredresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6DH,8EAQC;AAnED,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAGjD,iEAAmD;AAGtC,QAAA,iCAAiC,GAAG;IAC/C,SAAS,EAAE,YAAY;CACf,CAAC;AA0BX,gBAAgB;AACH,QAAA,+CAA+C,GAExD,CAAC,CAAC,UAAU,CAAC,yCAAiC,CAAC,CAAC;AAEpD,gBAAgB;AACH,QAAA,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,uDAA+C;IACzD,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE;IACxB,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE;IACrB,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAChD,OAAO,EAAE,KAAK,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,kBAAkB,EAAE,iBAAiB;QACrC,SAAS,EAAE,QAAQ;KACpB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,iCAAiC,CAC/C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,+CAAuC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACnE,uDAAuD,CACxD,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"samlloginrequiredresponse.js","sourceRoot":"","sources":["../../../../src/models/components/samlloginrequiredresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDH,8EAQC;AAtDD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAEjD,iEAAmD;AAwBnD,gBAAgB;AACH,QAAA,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC;IACrC,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE;IACxB,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE;IACrB,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAChD,OAAO,EAAE,KAAK,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,kBAAkB,EAAE,iBAAiB;QACrC,SAAS,EAAE,QAAQ;KACpB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,iCAAiC,CAC/C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,+CAAuC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACnE,uDAAuD,CACxD,CAAC;AACJ,CAAC"}
@@ -9,20 +9,8 @@ export type PostAuthenticateRequestBody = components.LoginEmailAndPassword | com
9
9
  /**
10
10
  * The request has been accepted for processing, but the processing has not been completed. The request might be processed later.
11
11
  */
12
- export type PostAuthenticateResponseBody = (components.SamlLoginRequiredResponse & {
13
- requires: "saml_login";
14
- }) | (components.MfaRequiredResponse & {
15
- requires: "mfa_code";
16
- }) | (components.PasswordRequiredResponse & {
17
- requires: "password";
18
- });
19
- export type PostAuthenticateResponse = components.User | (components.SamlLoginRequiredResponse & {
20
- requires: "saml_login";
21
- }) | (components.MfaRequiredResponse & {
22
- requires: "mfa_code";
23
- }) | (components.PasswordRequiredResponse & {
24
- requires: "password";
25
- });
12
+ export type PostAuthenticateResponseBody = components.MfaRequiredResponse | components.SamlLoginRequiredResponse | components.PasswordRequiredResponse;
13
+ export type PostAuthenticateResponse = components.User | components.MfaRequiredResponse | components.SamlLoginRequiredResponse | components.PasswordRequiredResponse;
26
14
  /** @internal */
27
15
  export type PostAuthenticateRequestBody$Outbound = components.LoginEmailAndPassword$Outbound | components.LoginRequirementsFromEmail$Outbound;
28
16
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"postauthenticate.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/postauthenticate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,2BAA2B,GACnC,UAAU,CAAC,qBAAqB,GAChC,UAAU,CAAC,0BAA0B,CAAC;AAE1C;;GAEG;AACH,MAAM,MAAM,4BAA4B,GACpC,CAAC,UAAU,CAAC,yBAAyB,GAAG;IAAE,QAAQ,EAAE,YAAY,CAAA;CAAE,CAAC,GACnE,CAAC,UAAU,CAAC,mBAAmB,GAAG;IAAE,QAAQ,EAAE,UAAU,CAAA;CAAE,CAAC,GAC3D,CAAC,UAAU,CAAC,wBAAwB,GAAG;IAAE,QA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AAM,GACjB,eAAe,CAAC,wBAAwB,EAAE,kBAAkB,CAAC,CAM/D"}
@@ -54,9 +54,9 @@ function postAuthenticateRequestBodyToJSON(postAuthenticateRequestBody) {
54
54
  }
55
55
  /** @internal */
56
56
  exports.PostAuthenticateResponseBody$inboundSchema = z.union([
57
- components.SamlLoginRequiredResponse$inboundSchema.and(z.object({ requires: z.literal("saml_login") })),
58
- components.MfaRequiredResponse$inboundSchema.and(z.object({ requires: z.literal("mfa_code") })),
59
- components.PasswordRequiredResponse$inboundSchema.and(z.object({ requires: z.literal("password") })),
57
+ components.MfaRequiredResponse$inboundSchema,
58
+ components.SamlLoginRequiredResponse$inboundSchema,
59
+ components.PasswordRequiredResponse$inboundSchema,
60
60
  ]);
61
61
  function postAuthenticateResponseBodyFromJSON(jsonString) {
62
62
  return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PostAuthenticateResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostAuthenticateResponseBody' from JSON`);
@@ -65,9 +65,9 @@ function postAuthenticateResponseBodyFromJSON(jsonString) {
65
65
  exports.PostAuthenticateResponse$inboundSchema = (0, smartUnion_js_1.smartUnion)([
66
66
  components.User$inboundSchema,
67
67
  z.union([
68
- components.SamlLoginRequiredResponse$inboundSchema.and(z.object({ requires: z.literal("saml_login") })),
69
- components.MfaRequiredResponse$inboundSchema.and(z.object({ requires: z.literal("mfa_code") })),
70
- components.PasswordRequiredResponse$inboundSchema.and(z.object({ requires: z.literal("password") })),
68
+ components.MfaRequiredResponse$inboundSchema,
69
+ components.SamlLoginRequiredResponse$inboundSchema,
70
+ components.PasswordRequiredResponse$inboundSchema,
71
71
  ]),
72
72
  ]);
73
73
  function postAuthenticateResponseFromJSON(jsonString) {
@@ -1 +1 @@
1
- {"version":3,"file":"postauthenticate.js","sourceRoot":"","sources":["../../../../src/models/operations/postauthenticate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;A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uC,CAAC,GAAG,CACpD,CAAC,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC,CAChD;QACD,UAAU,CAAC,iCAAiC,CAAC,GAAG,CAC9C,CAAC,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,CAC9C;QACD,UAAU,CAAC,sCAAsC,CAAC,GAAG,CACnD,CAAC,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,CAC9C;KACF,CAAC;CACH,CAAC,CAAC;AAEH,SAAgB,gCAAgC,CAC9C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8CAAsC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClE,sDAAsD,CACvD,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"postauthenticate.js","sourceRoot":"","sources":["../../../../src/models/operations/postauthenticate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CH,8EAQC;AAaD,oFAQC;AAgBD,4EAQC;AAhGD,0CAA4B;AAC5B,qDAAiD;AAEjD,6DAAuD;AACvD,mEAAqD;AA6BrD,gBAAgB;AACH,QAAA,0CAA0C,GAInD,IAAA,0BAAU,EAAC;IACb,UAAU,CAAC,oCAAoC;IAC/C,UAAU,CAAC,yCAAyC;CACrD,CAAC,CAAC;AAEH,SAAgB,iCAAiC,CAC/C,2BAAwD;IAExD,OAAO,IAAI,CAAC,SAAS,CACnB,kDAA0C,CAAC,KAAK,CAC9C,2BAA2B,CAC5B,CACF,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,KAAK,CAAC;IACV,UAAU,CAAC,iCAAiC;IAC5C,UAAU,CAAC,uCAAuC;IAClD,UAAU,CAAC,sCAAsC;CAClD,CAAC,CAAC;AAEH,SAAgB,oCAAoC,CAClD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kDAA0C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtE,0DAA0D,CAC3D,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA,sCAAsC,GAI/C,IAAA,0BAAU,EAAC;IACb,UAAU,CAAC,kBAAkB;IAC7B,CAAC,CAAC,KAAK,CAAC;QACN,UAAU,CAAC,iCAAiC;QAC5C,UAAU,CAAC,uCAAuC;QAClD,UAAU,CAAC,sCAAsC;KAClD,CAAC;CACH,CAAC,CAAC;AAEH,SAAgB,gCAAgC,CAC9C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8CAAsC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClE,sDAAsD,CACvD,CAAC;AACJ,CAAC"}
@@ -32,10 +32,7 @@ test("Zones List Or Search Security Zones", async () => {
32
32
  },
33
33
  items: [
34
34
  {
35
- facility: {
36
- contacts: null,
37
- vendorGuestPolicy: null,
38
- },
35
+ facility: {},
39
36
  },
40
37
  {
41
38
  facility: {},
@@ -54,7 +51,7 @@ test("Zones Security Zone Checkin", async () => {
54
51
  });
55
52
  const result = await greenSecurity.zones.securityZoneCheckin({
56
53
  qrCode: "<value>",
57
- zoneId: 579390,
54
+ zoneId: 423655,
58
55
  });
59
56
  expect(result).toBeDefined();
60
57
  expect(result).toEqual({});
@@ -1 +1 @@
1
- {"version":3,"file":"zones.test.js","sourceRoot":"","sources":["../../../src/__tests__/zones.test.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,I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C,MAAM,CAAC,CAAC,OAAO,CAAC;QACrB,QAAQ,EAAE,EAAE;KACb,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -35,8 +35,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
35
35
  export declare const SDK_METADATA: {
36
36
  readonly language: "typescript";
37
37
  readonly openapiDocVersion: "0.0.10";
38
- readonly sdkVersion: "0.43.0";
39
- readonly genVersion: "2.767.2";
40
- readonly userAgent: "speakeasy-sdk/typescript 0.43.0 2.767.2 0.0.10 @greensecurity/javascript-sdk";
38
+ readonly sdkVersion: "0.43.1-beta.0";
39
+ readonly genVersion: "2.773.3";
40
+ readonly userAgent: "speakeasy-sdk/typescript 0.43.1-beta.0 2.773.3 0.0.10 @greensecurity/javascript-sdk";
41
41
  };
42
42
  //# sourceMappingURL=config.d.ts.map
@@ -39,8 +39,8 @@ export function serverURLFromOptions(options) {
39
39
  export const SDK_METADATA = {
40
40
  language: "typescript",
41
41
  openapiDocVersion: "0.0.10",
42
- sdkVersion: "0.43.0",
43
- genVersion: "2.767.2",
44
- userAgent: "speakeasy-sdk/typescript 0.43.0 2.767.2 0.0.10 @greensecurity/javascript-sdk",
42
+ sdkVersion: "0.43.1-beta.0",
43
+ genVersion: "2.773.3",
44
+ userAgent: "speakeasy-sdk/typescript 0.43.1-beta.0 2.773.3 0.0.10 @greensecurity/javascript-sdk",
45
45
  };
46
46
  //# sourceMappingURL=config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/lib/config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH,OAAO,EAAU,UAAU,EAAE,MAAM,UAAU,CAAC;AAE9C;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB;;OAEG;IACH,sCAAsC;IACtC;;OAEG;IACH,0CAA0C;IAC1C;;OAEG;IACH,4BAA4B;IAC5B;;OAEG;IACH,oCAAoC;CAC5B,CAAC;AAgCX,MAAM,UAAU,oBAAo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S,IAAI,CAAC,CAAC;QACzC,IAAI,SAAS,GAAG,CAAC,IAAI,SAAS,IAAI,UAAU,CAAC,MAAM,EAAE,CAAC;YACpD,MAAM,IAAI,KAAK,CAAC,wBAAwB,SAAS,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAED,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,QAAQ;IAC3B,UAAU,EAAE,eAAe;IAC3B,UAAU,EAAE,SAAS;IACrB,SAAS,EACP,qFAAqF;CAC/E,CAAC"}
@@ -1,11 +1,7 @@
1
1
  import * as z from "zod/v3";
2
- import { ClosedEnum, OpenEnum } from "../../types/enums.js";
2
+ import { OpenEnum } from "../../types/enums.js";
3
3
  import { Result as SafeParseResult } from "../../types/fp.js";
4
4
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
- export declare const MfaRequiredResponseRequires: {
6
- readonly MfaCode: "mfa_code";
7
- };
8
- export type MfaRequiredResponseRequires = ClosedEnum<typeof MfaRequiredResponseRequires>;
9
5
  export declare const MfaMethod: {
10
6
  readonly Text: "text";
11
7
  readonly Email: "email";
@@ -19,7 +15,7 @@ export type MfaMethod = OpenEnum<typeof MfaMethod>;
19
15
  * If the `mfa_method` is text or email, it's best to show helper text to the user to notify them that a code was sent via mobile or email and they should enter it to proceed.
20
16
  */
21
17
  export type MfaRequiredResponse = {
22
- requires: MfaRequiredResponseRequires;
18
+ requires: "mfa_code";
23
19
  success: boolean;
24
20
  /**
25
21
  * Error describing the exact condition of what further steps are needed to finish the login process.
@@ -32,8 +28,6 @@ export type MfaRequiredResponse = {
32
28
  mfaMethod?: MfaMethod | undefined;
33
29
  };
34
30
  /** @internal */
35
- export declare const MfaRequiredResponseRequires$inboundSchema: z.ZodNativeEnum<typeof MfaRequiredResponseRequires>;
36
- /** @internal */
37
31
  export declare const MfaMethod$inboundSchema: z.ZodType<MfaMethod, z.ZodTypeDef, unknown>;
38
32
  /** @internal */
39
33
  export declare const MfaRequiredResponse$inboundSchema: z.ZodType<MfaRequiredResponse, z.ZodTypeDef, unknown>;
@@ -1 +1 @@
1
- {"version":3,"file":"mfarequiredresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/mfarequiredresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAI5B,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,eAAO,MAAM,2BAA2B;;CAE9B,CAAC;AACX,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAClD,OAAO,2BAA2B,CACnC,CAAC;AAEF,eAAO,MAAM,SAAS;;;CAGZ,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAC;AAEnD;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,2BAA2B,CAAC;IACtC,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,aAAa,CACrE,OAAO,2BAA2B,CACS,CAAC;AAE9C,gBAAgB;AAChB,eAAO,MAAM,uBAAuB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U,EACZ,OAAO,CAYP,CAAC;AAEH,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
@@ -6,20 +6,15 @@ import { remap as remap$ } from "../../lib/primitives.js";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import * as openEnums from "../../types/enums.js";
8
8
  import * as types from "../../types/primitives.js";
9
- export const MfaRequiredResponseRequires = {
10
- MfaCode: "mfa_code",
11
- };
12
9
  export const MfaMethod = {
13
10
  Text: "text",
14
11
  Email: "email",
15
12
  };
16
13
  /** @internal */
17
- export const MfaRequiredResponseRequires$inboundSchema = z.nativeEnum(MfaRequiredResponseRequires);
18
- /** @internal */
19
14
  export const MfaMethod$inboundSchema = openEnums.inboundSchema(MfaMethod);
20
15
  /** @internal */
21
16
  export const MfaRequiredResponse$inboundSchema = z.object({
22
- requires: MfaRequiredResponseRequires$inboundSchema,
17
+ requires: types.literal("mfa_code"),
23
18
  success: types.boolean(),
24
19
  error: types.string(),
25
20
  mobile_phone: types.optional(types.string()),
@@ -1 +1 @@
1
- {"version":3,"file":"mfarequiredresponse.js","sourceRoot":"","sources":["../../../../src/models/components/mfarequiredresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAGlD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AAGnD,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,OAAO,EAAE,UAAU;CACX,CAAC;AAKX,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACN,CAAC;AAwBX,gBAAgB;AACh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BAA2B,CAAC;AAGnD,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACN,CAAC;AAwBX,gBAAgB;AAChB,MAAM,CAAC,MAAM,uBAAuB,GAIhC,SAAS,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;AAEvC,gBAAgB;AAChB,MAAM,CAAC,MAAM,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC;IACnC,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE;IACxB,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE;IACrB,YAAY,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAC5C,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,uBAAuB,CAAC;CACpD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,cAAc,EAAE,aAAa;QAC7B,YAAY,EAAE,WAAW;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,2BAA2B,CACzC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,iCAAiC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7D,iDAAiD,CAClD,CAAC;AACJ,CAAC"}
@@ -1,16 +1,11 @@
1
1
  import * as z from "zod/v3";
2
- import { ClosedEnum } from "../../types/enums.js";
3
2
  import { Result as SafeParseResult } from "../../types/fp.js";
4
3
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
- export declare const Requires: {
6
- readonly Password: "password";
7
- };
8
- export type Requires = ClosedEnum<typeof Requires>;
9
4
  /**
10
5
  * The response is sent when the email address provided requires a password (no SAML login).
11
6
  */
12
7
  export type PasswordRequiredResponse = {
13
- requires: Requires;
8
+ requires: "password";
14
9
  success: boolean;
15
10
  /**
16
11
  * Error describing the exact condition of what further steps are needed to finish the login process.
@@ -18,8 +13,6 @@ export type PasswordRequiredResponse = {
18
13
  error: string;
19
14
  };
20
15
  /** @internal */
21
- export declare const Requires$inboundSchema: z.ZodNativeEnum<typeof Requires>;
22
- /** @internal */
23
16
  export declare const PasswordRequiredResponse$inboundSchema: z.ZodType<PasswordRequiredResponse, z.ZodTypeDef, unknown>;
24
17
  export declare function passwordRequiredResponseFromJSON(jsonString: string): SafeParseResult<PasswordRequiredResponse, SDKValidationError>;
25
18
  //# sourceMappingURL=passwordrequiredresponse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"passwordrequiredresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/passwordrequiredresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,eAAO,MAAM,QAAQ;;CAEX,CAAC;AACX,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,QAAQ,CAC7C,CAAC;AAExB,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,wBAAwB,EAAE,kBAAkB,CAAC,CAM/D"}
1
+ {"version":3,"file":"passwordrequiredresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/passwordrequiredresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,QAAQ,EAAE,UAAU,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,wBAAwB,EAAE,kBAAkB,CAAC,CAM/D"}
@@ -4,15 +4,9 @@
4
4
  import * as z from "zod/v3";
5
5
  import { safeParse } from "../../lib/schemas.js";
6
6
  import * as types from "../../types/primitives.js";
7
- export const Requires = {
8
- Password: "password",
9
- };
10
- /** @internal */
11
- export const Requires$inboundSchema = z
12
- .nativeEnum(Requires);
13
7
  /** @internal */
14
8
  export const PasswordRequiredResponse$inboundSchema = z.object({
15
- requires: Requires$inboundSchema,
9
+ requires: types.literal("password"),
16
10
  success: types.boolean(),
17
11
  error: types.string(),
18
12
  });
@@ -1 +1 @@
1
- {"version":3,"file":"passwordrequiredresponse.js","sourceRoot":"","sources":["../../../../src/models/components/passwordrequiredresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AAGnD,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAeX,gBAAgB;AAChB,MAAM,CAAC,MAAM,sBAAsB,GAAqC,CAAC;KACtE,UAAU,CAAC,QAAQ,CAAC,CAAC;AAExB,gBAAgB;AAChB,MAAM,CAAC,MAAM,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,sBAAsB;IAChC,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE;IACxB,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAEH,MAAM,UAAU,gCAAgC,CAC9C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sCAAsC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClE,sDAAsD,CACvD,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"passwordrequiredresponse.js","sourceRoot":"","sources":["../../../../src/models/components/passwordrequiredresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AAenD,gBAAgB;AAChB,MAAM,CAAC,MAAM,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC;IACnC,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE;IACxB,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAEH,MAAM,UAAU,gCAAgC,CAC9C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sCAAsC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClE,sDAAsD,CACvD,CAAC;AACJ,CAAC"}
@@ -1,11 +1,6 @@
1
1
  import * as z from "zod/v3";
2
- import { ClosedEnum } from "../../types/enums.js";
3
2
  import { Result as SafeParseResult } from "../../types/fp.js";
4
3
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
- export declare const SamlLoginRequiredResponseRequires: {
6
- readonly SamlLogin: "saml_login";
7
- };
8
- export type SamlLoginRequiredResponseRequires = ClosedEnum<typeof SamlLoginRequiredResponseRequires>;
9
4
  /**
10
5
  * The email address provided must complete SAML authentication at the provided `sso_url` which encodes the `return_url` that was sent as part of the request.
11
6
  *
@@ -14,7 +9,7 @@ export type SamlLoginRequiredResponseRequires = ClosedEnum<typeof SamlLoginRequi
14
9
  * The user will complete their SAML login at the external IdP and the browser will be redirected to your selected `return_url` with an extra query string parameter called `user_token`. That token is equivalent to the user login and can be used in the `/users/me` endpoint to get user details.
15
10
  */
16
11
  export type SamlLoginRequiredResponse = {
17
- requires: SamlLoginRequiredResponseRequires;
12
+ requires: "saml_login";
18
13
  success: boolean;
19
14
  error: string;
20
15
  /**
@@ -27,8 +22,6 @@ export type SamlLoginRequiredResponse = {
27
22
  ssoUrl: string;
28
23
  };
29
24
  /** @internal */
30
- export declare const SamlLoginRequiredResponseRequires$inboundSchema: z.ZodNativeEnum<typeof SamlLoginRequiredResponseRequires>;
31
- /** @internal */
32
25
  export declare const SamlLoginRequiredResponse$inboundSchema: z.ZodType<SamlLoginRequiredResponse, z.ZodTypeDef, unknown>;
33
26
  export declare function samlLoginRequiredResponseFromJSON(jsonString: string): SafeParseResult<SamlLoginRequiredResponse, SDKValidationError>;
34
27
  //# sourceMappingURL=samlloginrequiredresponse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"samlloginrequiredresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/samlloginrequiredresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,eAAO,MAAM,iCAAiC;;CAEpC,CAAC;AACX,MAAM,MAAM,iCAAiC,GAAG,UAAU,CACxD,OAAO,iCAAiC,CACzC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,EAAE,iCAAiC,CAAC;IAC5C,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+CAA+C,EAAE,CAAC,CAAC,aAAa,CAC3E,OAAO,iCAAiC,CACS,CAAC;AAEpD,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,OAAO,CAYP,CAAC;AAEH,wBAAgB,iCAAiC,CAC/C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,yBAAyB,EAAE,kBAAkB,CAAC,CAMhE"}
1
+ {"version":3,"file":"samlloginrequiredresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/samlloginrequiredresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;;;;;GAMG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,EAAE,YAAY,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,OAAO,CAYP,CAAC;AAEH,wBAAgB,iCAAiC,CAC/C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,yBAAyB,EAAE,kBAAkB,CAAC,CAMhE"}
@@ -5,14 +5,9 @@ import * as z from "zod/v3";
5
5
  import { remap as remap$ } from "../../lib/primitives.js";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import * as types from "../../types/primitives.js";
8
- export const SamlLoginRequiredResponseRequires = {
9
- SamlLogin: "saml_login",
10
- };
11
- /** @internal */
12
- export const SamlLoginRequiredResponseRequires$inboundSchema = z.nativeEnum(SamlLoginRequiredResponseRequires);
13
8
  /** @internal */
14
9
  export const SamlLoginRequiredResponse$inboundSchema = z.object({
15
- requires: SamlLoginRequiredResponseRequires$inboundSchema,
10
+ requires: types.literal("saml_login"),
16
11
  success: types.boolean(),
17
12
  error: types.string(),
18
13
  sso_instructions: types.optional(types.string()),
@@ -1 +1 @@
1
- {"version":3,"file":"samlloginrequiredresponse.js","sourceRoot":"","sources":["../../../../src/models/components/samlloginrequiredresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AAGnD,MAAM,CAAC,MAAM,iCAAiC,GAAG;IAC/C,SAAS,EAAE,YAAY;CACf,CAAC;AA0BX,gBAAgB;AAChB,MAAM,CAAC,MAAM,+CAA+C,GAExD,CAAC,CAAC,UAAU,CAAC,iCAAiC,CAAC,CAAC;AAEpD,gBAAgB;AAChB,MAAM,CAAC,MAAM,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,+CAA+C;IACzD,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE;IACxB,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE;IACrB,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAChD,OAAO,EAAE,KAAK,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,kBAAkB,EAAE,iBAAiB;QACrC,SAAS,EAAE,QAAQ;KACpB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,iCAAiC,CAC/C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uCAAuC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACnE,uDAAuD,CACxD,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"samlloginrequiredresponse.js","sourceRoot":"","sources":["../../../../src/models/components/samlloginrequiredresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AAwBnD,gBAAgB;AAChB,MAAM,CAAC,MAAM,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC;IACrC,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE;IACxB,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE;IACrB,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAChD,OAAO,EAAE,KAAK,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,kBAAkB,EAAE,iBAAiB;QACrC,SAAS,EAAE,QAAQ;KACpB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,iCAAiC,CAC/C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uCAAuC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACnE,uDAAuD,CACxD,CAAC;AACJ,CAAC"}
@@ -9,20 +9,8 @@ export type PostAuthenticateRequestBody = components.LoginEmailAndPassword | com
9
9
  /**
10
10
  * The request has been accepted for processing, but the processing has not been completed. The request might be processed later.
11
11
  */
12
- export type PostAuthenticateResponseBody = (components.SamlLoginRequiredResponse & {
13
- requires: "saml_login";
14
- }) | (components.MfaRequiredResponse & {
15
- requires: "mfa_code";
16
- }) | (components.PasswordRequiredResponse & {
17
- requires: "password";
18
- });
19
- export type PostAuthenticateResponse = components.User | (components.SamlLoginRequiredResponse & {
20
- requires: "saml_login";
21
- }) | (components.MfaRequiredResponse & {
22
- requires: "mfa_code";
23
- }) | (components.PasswordRequiredResponse & {
24
- requires: "password";
25
- });
12
+ export type PostAuthenticateResponseBody = components.MfaRequiredResponse | components.SamlLoginRequiredResponse | components.PasswordRequiredResponse;
13
+ export type PostAuthenticateResponse = components.User | components.MfaRequiredResponse | components.SamlLoginRequiredResponse | components.PasswordRequiredResponse;
26
14
  /** @internal */
27
15
  export type PostAuthenticateRequestBody$Outbound = components.LoginEmailAndPassword$Outbound | components.LoginRequirementsFromEmail$Outbound;
28
16
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"postauthenticate.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/postauthenticate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,2BAA2B,GACnC,UAAU,CAAC,qBAAqB,GAChC,UAAU,CAAC,0BAA0B,CAAC;AAE1C;;GAEG;AACH,MAAM,MAAM,4BAA4B,GACpC,CAAC,UAAU,CAAC,yBAAyB,GAAG;IAAE,QAAQ,EAAE,YAAY,CAAA;CAAE,CAAC,GACnE,CAAC,UAAU,CAAC,mBAAmB,GAAG;IAAE,QAAQ,EAAE,UAAU,CAAA;CAAE,CAAC,GAC3D,CAAC,UAAU,CAAC,wBAAwB,GAAG;IAAE,QAAQ,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC;AAErE,MAAM,MAAM,wBAAwB,GAChC,UAAU,CAAC,IAAI,GACf,CAAC,UAAU,CAAC,yBAAyB,GAAG;IAAE,QAAQ,EAAE,YAAY,CAAA;CAAE,CAAC,GACnE,CAAC,UAAU,CAAC,mBAAmB,GAAG;IAAE,QAAQ,EAAE,UAAU,CAAA;CAAE,CAAC,GAC3D,CAAC,UAAU,CAAC,wBAAwB,GAAG;IAAE,QAAQ,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC;AAErE,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAC5C,UAAU,CAAC,8BAA8B,GACzC,UAAU,CAAC,mCAAmC,CAAC;AAEnD,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAI3B,CAAC;AAEH,wBAAgB,iCAAiC,CAC/C,2BAA2B,EAAE,2BAA2B,GACvD,MAAM,CAMR;AAED,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,OAAO,CAWP,CAAC;AAEH,wBAAgB,oCAAoC,CAClD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,4BAA4B,EAAE,kBAAkB,CAAC,CAMnE;AAED,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,OAAO,CAcP,CAAC;AAEH,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,wBAAwB,EAAE,kBAAkB,CAAC,CAM/D"}
1
+ {"version":3,"file":"postauthenticate.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/postauthenticate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,2BAA2B,GACnC,UAAU,CAAC,qBAAqB,GAChC,UAAU,CAAC,0BAA0B,CAAC;AAE1C;;GAEG;AACH,MAAM,MAAM,4BAA4B,GACpC,UAAU,CAAC,mBAAmB,GAC9B,UAAU,CAAC,yBAAyB,GACpC,UAAU,CAAC,wBAAwB,CAAC;AAExC,MAAM,MAAM,wBAAwB,GAChC,UAAU,CAAC,IAAI,GACf,UAAU,CAAC,mBAAmB,GAC9B,UAAU,CAAC,yBAAyB,GACpC,UAAU,CAAC,wBAAwB,CAAC;AAExC,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAC5C,UAAU,CAAC,8BAA8B,GACzC,UAAU,CAAC,mCAAmC,CAAC;AAEnD,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAI3B,CAAC;AAEH,wBAAgB,iCAAiC,CAC/C,2BAA2B,EAAE,2BAA2B,GACvD,MAAM,CAMR;AAED,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,wBAAgB,oCAAoC,CAClD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,4BAA4B,EAAE,kBAAkB,CAAC,CAMnE;AAED,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,OAAO,CAQP,CAAC;AAEH,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,wBAAwB,EAAE,kBAAkB,CAAC,CAM/D"}
@@ -15,9 +15,9 @@ export function postAuthenticateRequestBodyToJSON(postAuthenticateRequestBody) {
15
15
  }
16
16
  /** @internal */
17
17
  export const PostAuthenticateResponseBody$inboundSchema = z.union([
18
- components.SamlLoginRequiredResponse$inboundSchema.and(z.object({ requires: z.literal("saml_login") })),
19
- components.MfaRequiredResponse$inboundSchema.and(z.object({ requires: z.literal("mfa_code") })),
20
- components.PasswordRequiredResponse$inboundSchema.and(z.object({ requires: z.literal("password") })),
18
+ components.MfaRequiredResponse$inboundSchema,
19
+ components.SamlLoginRequiredResponse$inboundSchema,
20
+ components.PasswordRequiredResponse$inboundSchema,
21
21
  ]);
22
22
  export function postAuthenticateResponseBodyFromJSON(jsonString) {
23
23
  return safeParse(jsonString, (x) => PostAuthenticateResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostAuthenticateResponseBody' from JSON`);
@@ -26,9 +26,9 @@ export function postAuthenticateResponseBodyFromJSON(jsonString) {
26
26
  export const PostAuthenticateResponse$inboundSchema = smartUnion([
27
27
  components.User$inboundSchema,
28
28
  z.union([
29
- components.SamlLoginRequiredResponse$inboundSchema.and(z.object({ requires: z.literal("saml_login") })),
30
- components.MfaRequiredResponse$inboundSchema.and(z.object({ requires: z.literal("mfa_code") })),
31
- components.PasswordRequiredResponse$inboundSchema.and(z.object({ requires: z.literal("password") })),
29
+ components.MfaRequiredResponse$inboundSchema,
30
+ components.SamlLoginRequiredResponse$inboundSchema,
31
+ components.PasswordRequiredResponse$inboundSchema,
32
32
  ]),
33
33
  ]);
34
34
  export function postAuthenticateResponseFromJSON(jsonString) {
@@ -1 +1 @@
1
- {"version":3,"file":"postauthenticate.js","sourceRoot":"","sources":["../../../../src/models/operations/postauthenticate.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AA6BrD,gBAAgB;AAChB,MAAM,CAAC,MAAM,0CAA0C,GAInD,UAAU,CAAC;IACb,UAAU,CAAC,oCAAoC;IAC/C,UAAU,CAAC,yCAAyC;CACrD,CAAC,CAAC;AAEH,MAAM,UAAU,iCAAiC,CAC/C,2BAAwD;IAExD,OAAO,IAAI,CAAC,SAAS,CACnB,0CAA0C,CAAC,KAAK,CAC9C,2BAA2B,CAC5B,CACF,CAAC;AACJ,CAAC;AAED,gBAAg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AC,UAAU,CAAC,EAAE,CAAC,CAC9C;KACF,CAAC;CACH,CAAC,CAAC;AAEH,MAAM,UAAU,gCAAgC,CAC9C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sCAAsC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClE,sDAAsD,CACvD,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"postauthenticate.js","sourceRoot":"","sources":["../../../../src/models/operations/postauthenticate.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AA6BrD,gBAAgB;AAChB,MAAM,CAAC,MAAM,0CAA0C,GAInD,UAAU,CAAC;IACb,UAAU,CAAC,oCAAoC;IAC/C,UAAU,CAAC,yCAAyC;CACrD,CAAC,CAAC;AAEH,MAAM,UAAU,iCAAiC,CAC/C,2BAAwD;IAExD,OAAO,IAAI,CAAC,SAAS,CACnB,0CAA0C,CAAC,KAAK,CAC9C,2BAA2B,CAC5B,CACF,CAAC;AACJ,CAAC;AAED,gBAAgB;AAChB,MAAM,CAAC,MAAM,0CAA0C,GAInD,CAAC,CAAC,KAAK,CAAC;IACV,UAAU,CAAC,iCAAiC;IAC5C,UAAU,CAAC,uCAAuC;IAClD,UAAU,CAAC,sCAAsC;CAClD,CAAC,CAAC;AAEH,MAAM,UAAU,oCAAoC,CAClD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0CAA0C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtE,0DAA0D,CAC3D,CAAC;AACJ,CAAC;AAED,gBAAgB;AAChB,MAAM,CAAC,MAAM,sCAAsC,GAI/C,UAAU,CAAC;IACb,UAAU,CAAC,kBAAkB;IAC7B,CAAC,CAAC,KAAK,CAAC;QACN,UAAU,CAAC,iCAAiC;QAC5C,UAAU,CAAC,uCAAuC;QAClD,UAAU,CAAC,sCAAsC;KAClD,CAAC;CACH,CAAC,CAAC;AAEH,MAAM,UAAU,gCAAgC,CAC9C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sCAAsC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClE,sDAAsD,CACvD,CAAC;AACJ,CAAC"}
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "..": {
20
20
  "name": "@greensecurity/javascript-sdk",
21
- "version": "0.43.0",
21
+ "version": "0.43.1-beta.0",
22
22
  "dependencies": {
23
23
  "zod": "^3.25.0 || ^4.0.0"
24
24
  },
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@greensecurity/javascript-sdk",
5
- "version": "0.43.0",
5
+ "version": "0.43.1-beta.0",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@greensecurity/javascript-sdk",
3
- "version": "0.43.1-beta.0",
3
+ "version": "0.43.1-beta.1",
4
4
  "author": "Green Security LLC",
5
5
  "type": "module",
6
6
  "tshy": {
@@ -36,10 +36,7 @@ test("Zones List Or Search Security Zones", async () => {
36
36
  },
37
37
  items: [
38
38
  {
39
- facility: {
40
- contacts: null,
41
- vendorGuestPolicy: null,
42
- },
39
+ facility: {},
43
40
  },
44
41
  {
45
42
  facility: {},
@@ -61,7 +58,7 @@ test("Zones Security Zone Checkin", async () => {
61
58
 
62
59
  const result = await greenSecurity.zones.securityZoneCheckin({
63
60
  qrCode: "<value>",
64
- zoneId: 579390,
61
+ zoneId: 423655,
65
62
  });
66
63
  expect(result).toBeDefined();
67
64
  expect(result).toEqual({});
package/src/lib/config.ts CHANGED
@@ -80,8 +80,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
80
80
  export const SDK_METADATA = {
81
81
  language: "typescript",
82
82
  openapiDocVersion: "0.0.10",
83
- sdkVersion: "0.43.0",
84
- genVersion: "2.767.2",
83
+ sdkVersion: "0.43.1-beta.0",
84
+ genVersion: "2.773.3",
85
85
  userAgent:
86
- "speakeasy-sdk/typescript 0.43.0 2.767.2 0.0.10 @greensecurity/javascript-sdk",
86
+ "speakeasy-sdk/typescript 0.43.1-beta.0 2.773.3 0.0.10 @greensecurity/javascript-sdk",
87
87
  } as const;
@@ -6,18 +6,11 @@ import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import * as openEnums from "../../types/enums.js";
9
- import { ClosedEnum, OpenEnum } from "../../types/enums.js";
9
+ import { OpenEnum } from "../../types/enums.js";
10
10
  import { Result as SafeParseResult } from "../../types/fp.js";
11
11
  import * as types from "../../types/primitives.js";
12
12
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
13
13
 
14
- export const MfaRequiredResponseRequires = {
15
- MfaCode: "mfa_code",
16
- } as const;
17
- export type MfaRequiredResponseRequires = ClosedEnum<
18
- typeof MfaRequiredResponseRequires
19
- >;
20
-
21
14
  export const MfaMethod = {
22
15
  Text: "text",
23
16
  Email: "email",
@@ -32,7 +25,7 @@ export type MfaMethod = OpenEnum<typeof MfaMethod>;
32
25
  * If the `mfa_method` is text or email, it's best to show helper text to the user to notify them that a code was sent via mobile or email and they should enter it to proceed.
33
26
  */
34
27
  export type MfaRequiredResponse = {
35
- requires: MfaRequiredResponseRequires;
28
+ requires: "mfa_code";
36
29
  success: boolean;
37
30
  /**
38
31
  * Error describing the exact condition of what further steps are needed to finish the login process.
@@ -45,11 +38,6 @@ export type MfaRequiredResponse = {
45
38
  mfaMethod?: MfaMethod | undefined;
46
39
  };
47
40
 
48
- /** @internal */
49
- export const MfaRequiredResponseRequires$inboundSchema: z.ZodNativeEnum<
50
- typeof MfaRequiredResponseRequires
51
- > = z.nativeEnum(MfaRequiredResponseRequires);
52
-
53
41
  /** @internal */
54
42
  export const MfaMethod$inboundSchema: z.ZodType<
55
43
  MfaMethod,
@@ -63,7 +51,7 @@ export const MfaRequiredResponse$inboundSchema: z.ZodType<
63
51
  z.ZodTypeDef,
64
52
  unknown
65
53
  > = z.object({
66
- requires: MfaRequiredResponseRequires$inboundSchema,
54
+ requires: types.literal("mfa_code"),
67
55
  success: types.boolean(),
68
56
  error: types.string(),
69
57
  mobile_phone: types.optional(types.string()),
@@ -4,21 +4,15 @@
4
4
 
5
5
  import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
- import { ClosedEnum } from "../../types/enums.js";
8
7
  import { Result as SafeParseResult } from "../../types/fp.js";
9
8
  import * as types from "../../types/primitives.js";
10
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
10
 
12
- export const Requires = {
13
- Password: "password",
14
- } as const;
15
- export type Requires = ClosedEnum<typeof Requires>;
16
-
17
11
  /**
18
12
  * The response is sent when the email address provided requires a password (no SAML login).
19
13
  */
20
14
  export type PasswordRequiredResponse = {
21
- requires: Requires;
15
+ requires: "password";
22
16
  success: boolean;
23
17
  /**
24
18
  * Error describing the exact condition of what further steps are needed to finish the login process.
@@ -26,17 +20,13 @@ export type PasswordRequiredResponse = {
26
20
  error: string;
27
21
  };
28
22
 
29
- /** @internal */
30
- export const Requires$inboundSchema: z.ZodNativeEnum<typeof Requires> = z
31
- .nativeEnum(Requires);
32
-
33
23
  /** @internal */
34
24
  export const PasswordRequiredResponse$inboundSchema: z.ZodType<
35
25
  PasswordRequiredResponse,
36
26
  z.ZodTypeDef,
37
27
  unknown
38
28
  > = z.object({
39
- requires: Requires$inboundSchema,
29
+ requires: types.literal("password"),
40
30
  success: types.boolean(),
41
31
  error: types.string(),
42
32
  });
@@ -5,18 +5,10 @@
5
5
  import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
- import { ClosedEnum } from "../../types/enums.js";
9
8
  import { Result as SafeParseResult } from "../../types/fp.js";
10
9
  import * as types from "../../types/primitives.js";
11
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
11
 
13
- export const SamlLoginRequiredResponseRequires = {
14
- SamlLogin: "saml_login",
15
- } as const;
16
- export type SamlLoginRequiredResponseRequires = ClosedEnum<
17
- typeof SamlLoginRequiredResponseRequires
18
- >;
19
-
20
12
  /**
21
13
  * The email address provided must complete SAML authentication at the provided `sso_url` which encodes the `return_url` that was sent as part of the request.
22
14
  *
@@ -25,7 +17,7 @@ export type SamlLoginRequiredResponseRequires = ClosedEnum<
25
17
  * The user will complete their SAML login at the external IdP and the browser will be redirected to your selected `return_url` with an extra query string parameter called `user_token`. That token is equivalent to the user login and can be used in the `/users/me` endpoint to get user details.
26
18
  */
27
19
  export type SamlLoginRequiredResponse = {
28
- requires: SamlLoginRequiredResponseRequires;
20
+ requires: "saml_login";
29
21
  success: boolean;
30
22
  error: string;
31
23
  /**
@@ -38,18 +30,13 @@ export type SamlLoginRequiredResponse = {
38
30
  ssoUrl: string;
39
31
  };
40
32
 
41
- /** @internal */
42
- export const SamlLoginRequiredResponseRequires$inboundSchema: z.ZodNativeEnum<
43
- typeof SamlLoginRequiredResponseRequires
44
- > = z.nativeEnum(SamlLoginRequiredResponseRequires);
45
-
46
33
  /** @internal */
47
34
  export const SamlLoginRequiredResponse$inboundSchema: z.ZodType<
48
35
  SamlLoginRequiredResponse,
49
36
  z.ZodTypeDef,
50
37
  unknown
51
38
  > = z.object({
52
- requires: SamlLoginRequiredResponseRequires$inboundSchema,
39
+ requires: types.literal("saml_login"),
53
40
  success: types.boolean(),
54
41
  error: types.string(),
55
42
  sso_instructions: types.optional(types.string()),
@@ -20,15 +20,15 @@ export type PostAuthenticateRequestBody =
20
20
  * The request has been accepted for processing, but the processing has not been completed. The request might be processed later.
21
21
  */
22
22
  export type PostAuthenticateResponseBody =
23
- | (components.SamlLoginRequiredResponse & { requires: "saml_login" })
24
- | (components.MfaRequiredResponse & { requires: "mfa_code" })
25
- | (components.PasswordRequiredResponse & { requires: "password" });
23
+ | components.MfaRequiredResponse
24
+ | components.SamlLoginRequiredResponse
25
+ | components.PasswordRequiredResponse;
26
26
 
27
27
  export type PostAuthenticateResponse =
28
28
  | components.User
29
- | (components.SamlLoginRequiredResponse & { requires: "saml_login" })
30
- | (components.MfaRequiredResponse & { requires: "mfa_code" })
31
- | (components.PasswordRequiredResponse & { requires: "password" });
29
+ | components.MfaRequiredResponse
30
+ | components.SamlLoginRequiredResponse
31
+ | components.PasswordRequiredResponse;
32
32
 
33
33
  /** @internal */
34
34
  export type PostAuthenticateRequestBody$Outbound =
@@ -61,15 +61,9 @@ export const PostAuthenticateResponseBody$inboundSchema: z.ZodType<
61
61
  z.ZodTypeDef,
62
62
  unknown
63
63
  > = z.union([
64
- components.SamlLoginRequiredResponse$inboundSchema.and(
65
- z.object({ requires: z.literal("saml_login") }),
66
- ),
67
- components.MfaRequiredResponse$inboundSchema.and(
68
- z.object({ requires: z.literal("mfa_code") }),
69
- ),
70
- components.PasswordRequiredResponse$inboundSchema.and(
71
- z.object({ requires: z.literal("password") }),
72
- ),
64
+ components.MfaRequiredResponse$inboundSchema,
65
+ components.SamlLoginRequiredResponse$inboundSchema,
66
+ components.PasswordRequiredResponse$inboundSchema,
73
67
  ]);
74
68
 
75
69
  export function postAuthenticateResponseBodyFromJSON(
@@ -90,15 +84,9 @@ export const PostAuthenticateResponse$inboundSchema: z.ZodType<
90
84
  > = smartUnion([
91
85
  components.User$inboundSchema,
92
86
  z.union([
93
- components.SamlLoginRequiredResponse$inboundSchema.and(
94
- z.object({ requires: z.literal("saml_login") }),
95
- ),
96
- components.MfaRequiredResponse$inboundSchema.and(
97
- z.object({ requires: z.literal("mfa_code") }),
98
- ),
99
- components.PasswordRequiredResponse$inboundSchema.and(
100
- z.object({ requires: z.literal("password") }),
101
- ),
87
+ components.MfaRequiredResponse$inboundSchema,
88
+ components.SamlLoginRequiredResponse$inboundSchema,
89
+ components.PasswordRequiredResponse$inboundSchema,
102
90
  ]),
103
91
  ]);
104
92
 
package/tsconfig.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "incremental": true,
3
+ "incremental": false,
4
4
  "target": "ES2020",
5
5
  "lib": ["ES2022", "DOM", "DOM.Iterable"],
6
6
  "jsx": "react-jsx",