@seamapi/http 0.15.0 → 0.16.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.
- package/dist/connect.cjs +15 -8
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +9 -1
- package/lib/seam/connect/auth.js +0 -1
- package/lib/seam/connect/auth.js.map +1 -1
- package/lib/seam/connect/options.js +0 -1
- package/lib/seam/connect/options.js.map +1 -1
- package/lib/seam/connect/resolve-action-attempt.js +0 -3
- package/lib/seam/connect/resolve-action-attempt.js.map +1 -1
- package/lib/seam/connect/routes/acs-entrances.d.ts +4 -0
- package/lib/seam/connect/routes/acs-entrances.js +8 -0
- package/lib/seam/connect/routes/acs-entrances.js.map +1 -1
- package/lib/seam/connect/routes/user-identities.d.ts +4 -0
- package/lib/seam/connect/routes/user-identities.js +7 -0
- package/lib/seam/connect/routes/user-identities.js.map +1 -1
- package/lib/seam/connect/seam-http-error.js +0 -3
- package/lib/seam/connect/seam-http-error.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +2 -2
- package/src/lib/seam/connect/auth.ts +0 -1
- package/src/lib/seam/connect/options.ts +0 -1
- package/src/lib/seam/connect/resolve-action-attempt.ts +0 -3
- package/src/lib/seam/connect/routes/acs-entrances.ts +22 -0
- package/src/lib/seam/connect/routes/user-identities.ts +17 -0
- package/src/lib/seam/connect/seam-http-error.ts +0 -3
- package/src/lib/version.ts +1 -1
package/dist/connect.cjs
CHANGED
|
@@ -234,7 +234,6 @@ var SeamHttpInvalidOptionsError = class extends Error {
|
|
|
234
234
|
constructor(message) {
|
|
235
235
|
super(`SeamHttp received invalid options: ${message}`);
|
|
236
236
|
this.name = this.constructor.name;
|
|
237
|
-
Error.captureStackTrace(this, this.constructor);
|
|
238
237
|
}
|
|
239
238
|
};
|
|
240
239
|
var SeamHttpMultiWorkspaceInvalidOptionsError = class extends SeamHttpInvalidOptionsError {
|
|
@@ -431,7 +430,6 @@ var SeamHttpInvalidTokenError = class extends Error {
|
|
|
431
430
|
constructor(message) {
|
|
432
431
|
super(`SeamHttp received an invalid token: ${message}`);
|
|
433
432
|
this.name = this.constructor.name;
|
|
434
|
-
Error.captureStackTrace(this, this.constructor);
|
|
435
433
|
}
|
|
436
434
|
};
|
|
437
435
|
var warnOnInsecureuserIdentifierKey = (userIdentifierKey) => {
|
|
@@ -455,7 +453,6 @@ var SeamHttpApiError = class extends Error {
|
|
|
455
453
|
const { type, message, data } = error;
|
|
456
454
|
super(message);
|
|
457
455
|
this.name = this.constructor.name;
|
|
458
|
-
Error.captureStackTrace(this, this.constructor);
|
|
459
456
|
this.code = type;
|
|
460
457
|
this.statusCode = statusCode;
|
|
461
458
|
this.requestId = requestId;
|
|
@@ -472,7 +469,6 @@ var SeamHttpUnauthorizedError = class extends SeamHttpApiError {
|
|
|
472
469
|
const status = 401;
|
|
473
470
|
super({ type, message: "Unauthorized" }, status, requestId);
|
|
474
471
|
this.name = this.constructor.name;
|
|
475
|
-
Error.captureStackTrace(this, this.constructor);
|
|
476
472
|
this.code = type;
|
|
477
473
|
this.statusCode = status;
|
|
478
474
|
this.requestId = requestId;
|
|
@@ -485,7 +481,6 @@ var SeamHttpInvalidInputError = class extends SeamHttpApiError {
|
|
|
485
481
|
constructor(error, statusCode, requestId) {
|
|
486
482
|
super(error, statusCode, requestId);
|
|
487
483
|
this.name = this.constructor.name;
|
|
488
|
-
Error.captureStackTrace(this, this.constructor);
|
|
489
484
|
this.code = "invalid_input";
|
|
490
485
|
}
|
|
491
486
|
};
|
|
@@ -609,7 +604,6 @@ var SeamActionAttemptError = class extends Error {
|
|
|
609
604
|
super(message);
|
|
610
605
|
this.name = this.constructor.name;
|
|
611
606
|
this.actionAttempt = actionAttempt;
|
|
612
|
-
Error.captureStackTrace(this, this.constructor);
|
|
613
607
|
}
|
|
614
608
|
};
|
|
615
609
|
var isSeamActionAttemptFailedError = (error) => {
|
|
@@ -620,7 +614,6 @@ var SeamActionAttemptFailedError = class extends SeamActionAttemptError {
|
|
|
620
614
|
super(actionAttempt.error.message, actionAttempt);
|
|
621
615
|
this.name = this.constructor.name;
|
|
622
616
|
this.code = actionAttempt.error.type;
|
|
623
|
-
Error.captureStackTrace(this, this.constructor);
|
|
624
617
|
}
|
|
625
618
|
};
|
|
626
619
|
var isSeamActionAttemptTimeoutError = (error) => {
|
|
@@ -633,7 +626,6 @@ var SeamActionAttemptTimeoutError = class extends SeamActionAttemptError {
|
|
|
633
626
|
actionAttempt
|
|
634
627
|
);
|
|
635
628
|
this.name = this.constructor.name;
|
|
636
|
-
Error.captureStackTrace(this, this.constructor);
|
|
637
629
|
}
|
|
638
630
|
};
|
|
639
631
|
var isSuccessfulActionAttempt = (actionAttempt) => actionAttempt.status === "success";
|
|
@@ -1438,6 +1430,14 @@ var SeamHttpAcsEntrances = class _SeamHttpAcsEntrances {
|
|
|
1438
1430
|
});
|
|
1439
1431
|
return data.acs_entrances;
|
|
1440
1432
|
}
|
|
1433
|
+
async listCredentialsWithAccess(body) {
|
|
1434
|
+
const { data } = await this.client.request({
|
|
1435
|
+
url: "/acs/entrances/list_credentials_with_access",
|
|
1436
|
+
method: "post",
|
|
1437
|
+
data: body
|
|
1438
|
+
});
|
|
1439
|
+
return data.acs_credentials;
|
|
1440
|
+
}
|
|
1441
1441
|
};
|
|
1442
1442
|
|
|
1443
1443
|
// src/lib/seam/connect/routes/acs-systems.ts
|
|
@@ -3156,6 +3156,13 @@ var SeamHttpUserIdentities = class _SeamHttpUserIdentities {
|
|
|
3156
3156
|
});
|
|
3157
3157
|
return data.user_identity;
|
|
3158
3158
|
}
|
|
3159
|
+
async delete(body) {
|
|
3160
|
+
await this.client.request({
|
|
3161
|
+
url: "/user_identities/delete",
|
|
3162
|
+
method: "post",
|
|
3163
|
+
data: body
|
|
3164
|
+
});
|
|
3165
|
+
}
|
|
3159
3166
|
async get(body) {
|
|
3160
3167
|
const { data } = await this.client.request({
|
|
3161
3168
|
url: "/user_identities/get",
|