@sailpoint/connector-sdk 0.0.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 (111) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +152 -0
  3. package/dist/bin/spcx.d.ts +3 -0
  4. package/dist/bin/spcx.d.ts.map +1 -0
  5. package/dist/bin/spcx.js +139 -0
  6. package/dist/bin/spcx.js.map +1 -0
  7. package/dist/lib/async-context.d.ts +5 -0
  8. package/dist/lib/async-context.d.ts.map +1 -0
  9. package/dist/lib/async-context.js +7 -0
  10. package/dist/lib/async-context.js.map +1 -0
  11. package/dist/lib/commands/command.d.ts +77 -0
  12. package/dist/lib/commands/command.d.ts.map +1 -0
  13. package/dist/lib/commands/command.js +79 -0
  14. package/dist/lib/commands/command.js.map +1 -0
  15. package/dist/lib/commands/index.d.ts +16 -0
  16. package/dist/lib/commands/index.d.ts.map +1 -0
  17. package/dist/lib/commands/index.js +29 -0
  18. package/dist/lib/commands/index.js.map +1 -0
  19. package/dist/lib/commands/std-account-create.d.ts +17 -0
  20. package/dist/lib/commands/std-account-create.d.ts.map +1 -0
  21. package/dist/lib/commands/std-account-create.js +4 -0
  22. package/dist/lib/commands/std-account-create.js.map +1 -0
  23. package/dist/lib/commands/std-account-delete.d.ts +10 -0
  24. package/dist/lib/commands/std-account-delete.d.ts.map +1 -0
  25. package/dist/lib/commands/std-account-delete.js +4 -0
  26. package/dist/lib/commands/std-account-delete.js.map +1 -0
  27. package/dist/lib/commands/std-account-disable.d.ts +14 -0
  28. package/dist/lib/commands/std-account-disable.d.ts.map +1 -0
  29. package/dist/lib/commands/std-account-disable.js +4 -0
  30. package/dist/lib/commands/std-account-disable.js.map +1 -0
  31. package/dist/lib/commands/std-account-discover-schema.d.ts +11 -0
  32. package/dist/lib/commands/std-account-discover-schema.d.ts.map +1 -0
  33. package/dist/lib/commands/std-account-discover-schema.js +4 -0
  34. package/dist/lib/commands/std-account-discover-schema.js.map +1 -0
  35. package/dist/lib/commands/std-account-enable.d.ts +14 -0
  36. package/dist/lib/commands/std-account-enable.d.ts.map +1 -0
  37. package/dist/lib/commands/std-account-enable.js +4 -0
  38. package/dist/lib/commands/std-account-enable.js.map +1 -0
  39. package/dist/lib/commands/std-account-list.d.ts +10 -0
  40. package/dist/lib/commands/std-account-list.d.ts.map +1 -0
  41. package/dist/lib/commands/std-account-list.js +4 -0
  42. package/dist/lib/commands/std-account-list.js.map +1 -0
  43. package/dist/lib/commands/std-account-read.d.ts +14 -0
  44. package/dist/lib/commands/std-account-read.d.ts.map +1 -0
  45. package/dist/lib/commands/std-account-read.js +4 -0
  46. package/dist/lib/commands/std-account-read.js.map +1 -0
  47. package/dist/lib/commands/std-account-unlock.d.ts +14 -0
  48. package/dist/lib/commands/std-account-unlock.d.ts.map +1 -0
  49. package/dist/lib/commands/std-account-unlock.js +4 -0
  50. package/dist/lib/commands/std-account-unlock.js.map +1 -0
  51. package/dist/lib/commands/std-account-update.d.ts +31 -0
  52. package/dist/lib/commands/std-account-update.d.ts.map +1 -0
  53. package/dist/lib/commands/std-account-update.js +11 -0
  54. package/dist/lib/commands/std-account-update.js.map +1 -0
  55. package/dist/lib/commands/std-change-password.d.ts +12 -0
  56. package/dist/lib/commands/std-change-password.d.ts.map +1 -0
  57. package/dist/lib/commands/std-change-password.js +4 -0
  58. package/dist/lib/commands/std-change-password.js.map +1 -0
  59. package/dist/lib/commands/std-entitlement-list.d.ts +15 -0
  60. package/dist/lib/commands/std-entitlement-list.d.ts.map +1 -0
  61. package/dist/lib/commands/std-entitlement-list.js +4 -0
  62. package/dist/lib/commands/std-entitlement-list.js.map +1 -0
  63. package/dist/lib/commands/std-entitlement-read.d.ts +15 -0
  64. package/dist/lib/commands/std-entitlement-read.d.ts.map +1 -0
  65. package/dist/lib/commands/std-entitlement-read.js +4 -0
  66. package/dist/lib/commands/std-entitlement-read.js.map +1 -0
  67. package/dist/lib/commands/std-spec-read.d.ts +11 -0
  68. package/dist/lib/commands/std-spec-read.d.ts.map +1 -0
  69. package/dist/lib/commands/std-spec-read.js +4 -0
  70. package/dist/lib/commands/std-spec-read.js.map +1 -0
  71. package/dist/lib/commands/std-test-connection.d.ts +5 -0
  72. package/dist/lib/commands/std-test-connection.d.ts.map +1 -0
  73. package/dist/lib/commands/std-test-connection.js +4 -0
  74. package/dist/lib/commands/std-test-connection.js.map +1 -0
  75. package/dist/lib/config.d.ts +10 -0
  76. package/dist/lib/config.d.ts.map +1 -0
  77. package/dist/lib/config.js +36 -0
  78. package/dist/lib/config.js.map +1 -0
  79. package/dist/lib/connector-spec.d.ts +6 -0
  80. package/dist/lib/connector-spec.d.ts.map +1 -0
  81. package/dist/lib/connector-spec.js +14 -0
  82. package/dist/lib/connector-spec.js.map +1 -0
  83. package/dist/lib/connector.d.ts +107 -0
  84. package/dist/lib/connector.d.ts.map +1 -0
  85. package/dist/lib/connector.js +160 -0
  86. package/dist/lib/connector.js.map +1 -0
  87. package/dist/lib/error.d.ts +15 -0
  88. package/dist/lib/error.d.ts.map +1 -0
  89. package/dist/lib/error.js +23 -0
  90. package/dist/lib/error.js.map +1 -0
  91. package/dist/lib/handler.d.ts +29 -0
  92. package/dist/lib/handler.d.ts.map +1 -0
  93. package/dist/lib/handler.js +4 -0
  94. package/dist/lib/handler.js.map +1 -0
  95. package/dist/lib/index.d.ts +8 -0
  96. package/dist/lib/index.d.ts.map +1 -0
  97. package/dist/lib/index.js +21 -0
  98. package/dist/lib/index.js.map +1 -0
  99. package/dist/lib/logger/index.d.ts +2 -0
  100. package/dist/lib/logger/index.d.ts.map +1 -0
  101. package/dist/lib/logger/index.js +14 -0
  102. package/dist/lib/logger/index.js.map +1 -0
  103. package/dist/lib/logger/logger.d.ts +23 -0
  104. package/dist/lib/logger/logger.d.ts.map +1 -0
  105. package/dist/lib/logger/logger.js +44 -0
  106. package/dist/lib/logger/logger.js.map +1 -0
  107. package/dist/lib/response/index.d.ts +21 -0
  108. package/dist/lib/response/index.d.ts.map +1 -0
  109. package/dist/lib/response/index.js +21 -0
  110. package/dist/lib/response/index.js.map +1 -0
  111. package/package.json +79 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"std-account-disable.js","sourceRoot":"","sources":["../../../lib/commands/std-account-disable.ts"],"names":[],"mappings":";AAAA,2EAA2E"}
@@ -0,0 +1,11 @@
1
+ import { SchemaAttribute } from "./command";
2
+ /**
3
+ * Output object of `std:account:discover-schema` command
4
+ */
5
+ export declare type StdAccountDiscoverSchemaOutput = {
6
+ displayAttribute: string;
7
+ groupAttribute: string;
8
+ identityAttribute: string;
9
+ attributes: SchemaAttribute[];
10
+ };
11
+ //# sourceMappingURL=std-account-discover-schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"std-account-discover-schema.d.ts","sourceRoot":"","sources":["../../../lib/commands/std-account-discover-schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C;;GAEG;AACH,oBAAY,8BAA8B,GAAG;IAC5C,gBAAgB,EAAE,MAAM,CAAA;IACxB,cAAc,EAAE,MAAM,CAAA;IACtB,iBAAiB,EAAE,MAAM,CAAA;IACzB,UAAU,EAAE,eAAe,EAAE,CAAA;CAC7B,CAAA"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /* Copyright (c) 2021. SailPoint Technologies, Inc. All rights reserved. */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=std-account-discover-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"std-account-discover-schema.js","sourceRoot":"","sources":["../../../lib/commands/std-account-discover-schema.ts"],"names":[],"mappings":";AAAA,2EAA2E"}
@@ -0,0 +1,14 @@
1
+ import { Attributes, ObjectInput, ObjectOutput } from './command';
2
+ /**
3
+ * Input object of `std:account:enable` command
4
+ */
5
+ export declare type StdAccountEnableInput = ObjectInput;
6
+ /**
7
+ * Output object of `std:account:enable` command
8
+ */
9
+ export declare type StdAccountEnableOutput = ObjectOutput & {
10
+ disabled?: boolean;
11
+ locked?: boolean;
12
+ attributes: Attributes;
13
+ };
14
+ //# sourceMappingURL=std-account-enable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"std-account-enable.d.ts","sourceRoot":"","sources":["../../../lib/commands/std-account-enable.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAEjE;;GAEG;AACH,oBAAY,qBAAqB,GAAG,WAAW,CAAA;AAE/C;;GAEG;AACH,oBAAY,sBAAsB,GAAG,YAAY,GAAG;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,UAAU,EAAE,UAAU,CAAA;CACtB,CAAA"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /* Copyright (c) 2022. SailPoint Technologies, Inc. All rights reserved. */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=std-account-enable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"std-account-enable.js","sourceRoot":"","sources":["../../../lib/commands/std-account-enable.ts"],"names":[],"mappings":";AAAA,2EAA2E"}
@@ -0,0 +1,10 @@
1
+ import { Attributes, ObjectOutput } from './command';
2
+ /**
3
+ * Output object of `std:account:list` command
4
+ */
5
+ export declare type StdAccountListOutput = ObjectOutput & {
6
+ disabled?: boolean;
7
+ locked?: boolean;
8
+ attributes: Attributes;
9
+ };
10
+ //# sourceMappingURL=std-account-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"std-account-list.d.ts","sourceRoot":"","sources":["../../../lib/commands/std-account-list.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAEpD;;GAEG;AACH,oBAAY,oBAAoB,GAAG,YAAY,GAAG;IACjD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,UAAU,EAAE,UAAU,CAAA;CACtB,CAAA"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /* Copyright (c) 2021. SailPoint Technologies, Inc. All rights reserved. */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=std-account-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"std-account-list.js","sourceRoot":"","sources":["../../../lib/commands/std-account-list.ts"],"names":[],"mappings":";AAAA,2EAA2E"}
@@ -0,0 +1,14 @@
1
+ import { Attributes, ObjectInput, ObjectOutput } from './command';
2
+ /**
3
+ * Input object of `std:account:read` command
4
+ */
5
+ export declare type StdAccountReadInput = ObjectInput;
6
+ /**
7
+ * Output object of `std:account:read` command
8
+ */
9
+ export declare type StdAccountReadOutput = ObjectOutput & {
10
+ disabled?: boolean;
11
+ locked?: boolean;
12
+ attributes: Attributes;
13
+ };
14
+ //# sourceMappingURL=std-account-read.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"std-account-read.d.ts","sourceRoot":"","sources":["../../../lib/commands/std-account-read.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAEjE;;GAEG;AACH,oBAAY,mBAAmB,GAAG,WAAW,CAAA;AAE7C;;GAEG;AACH,oBAAY,oBAAoB,GAAG,YAAY,GAAG;IACjD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,UAAU,EAAE,UAAU,CAAA;CACtB,CAAA"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /* Copyright (c) 2021. SailPoint Technologies, Inc. All rights reserved. */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=std-account-read.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"std-account-read.js","sourceRoot":"","sources":["../../../lib/commands/std-account-read.ts"],"names":[],"mappings":";AAAA,2EAA2E"}
@@ -0,0 +1,14 @@
1
+ import { Attributes, ObjectInput, ObjectOutput } from './command';
2
+ /**
3
+ * Input object of `std:account:unlock` command
4
+ */
5
+ export declare type StdAccountUnlockInput = ObjectInput;
6
+ /**
7
+ * Output object of `std:account:unlock` command
8
+ */
9
+ export declare type StdAccountUnlockOutput = ObjectOutput & {
10
+ disabled?: boolean;
11
+ locked?: boolean;
12
+ attributes: Attributes;
13
+ };
14
+ //# sourceMappingURL=std-account-unlock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"std-account-unlock.d.ts","sourceRoot":"","sources":["../../../lib/commands/std-account-unlock.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAEjE;;GAEG;AACH,oBAAY,qBAAqB,GAAG,WAAW,CAAA;AAE/C;;GAEG;AACH,oBAAY,sBAAsB,GAAG,YAAY,GAAG;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,UAAU,EAAE,UAAU,CAAA;CACtB,CAAA"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /* Copyright (c) 2022. SailPoint Technologies, Inc. All rights reserved. */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=std-account-unlock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"std-account-unlock.js","sourceRoot":"","sources":["../../../lib/commands/std-account-unlock.ts"],"names":[],"mappings":";AAAA,2EAA2E"}
@@ -0,0 +1,31 @@
1
+ import { Attributes, ObjectInput, ObjectOutput } from './command';
2
+ export declare enum AttributeChangeOp {
3
+ Add = "Add",
4
+ Set = "Set",
5
+ Remove = "Remove"
6
+ }
7
+ /**
8
+ * Object describing account attribute change
9
+ */
10
+ export declare type AttributeChange = {
11
+ op: AttributeChangeOp;
12
+ attribute: string;
13
+ value: any;
14
+ };
15
+ /**
16
+ * Input object of `std:account:update` command
17
+ */
18
+ export declare type StdAccountUpdateInput = ObjectInput & {
19
+ changes: AttributeChange[];
20
+ };
21
+ /**
22
+ * Output object of `std:account:update` command
23
+ *
24
+ * All properties are optional for this output
25
+ */
26
+ export declare type StdAccountUpdateOutput = (ObjectOutput & {
27
+ disabled?: boolean;
28
+ locked?: boolean;
29
+ attributes?: Attributes;
30
+ }) | {};
31
+ //# sourceMappingURL=std-account-update.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"std-account-update.d.ts","sourceRoot":"","sources":["../../../lib/commands/std-account-update.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAEjE,oBAAY,iBAAiB;IAC5B,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,MAAM,WAAW;CACjB;AAED;;GAEG;AACH,oBAAY,eAAe,GAAG;IAC7B,EAAE,EAAE,iBAAiB,CAAA;IACrB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,GAAG,CAAA;CACV,CAAA;AAED;;GAEG;AACH,oBAAY,qBAAqB,GAAG,WAAW,GAAG;IACjD,OAAO,EAAE,eAAe,EAAE,CAAA;CAC1B,CAAA;AAED;;;;GAIG;AACH,oBAAY,sBAAsB,GAAG,CAAC,YAAY,GAAG;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,UAAU,CAAC,EAAE,UAAU,CAAA;CAAE,CAAC,GAAG,EAAE,CAAA"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /* Copyright (c) 2021. SailPoint Technologies, Inc. All rights reserved. */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.AttributeChangeOp = void 0;
5
+ var AttributeChangeOp;
6
+ (function (AttributeChangeOp) {
7
+ AttributeChangeOp["Add"] = "Add";
8
+ AttributeChangeOp["Set"] = "Set";
9
+ AttributeChangeOp["Remove"] = "Remove";
10
+ })(AttributeChangeOp = exports.AttributeChangeOp || (exports.AttributeChangeOp = {}));
11
+ //# sourceMappingURL=std-account-update.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"std-account-update.js","sourceRoot":"","sources":["../../../lib/commands/std-account-update.ts"],"names":[],"mappings":";AAAA,2EAA2E;;;AAI3E,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC5B,gCAAW,CAAA;IACX,gCAAW,CAAA;IACX,sCAAiB,CAAA;AAClB,CAAC,EAJW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAI5B"}
@@ -0,0 +1,12 @@
1
+ import { ObjectInput } from "./command";
2
+ /**
3
+ * Input object of `std:change-password` command
4
+ */
5
+ export declare type StdChangePasswordInput = ObjectInput & {
6
+ password: string;
7
+ };
8
+ /**
9
+ * Output object of `std:change-password` command
10
+ */
11
+ export declare type StdChangePasswordOutput = {};
12
+ //# sourceMappingURL=std-change-password.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"std-change-password.d.ts","sourceRoot":"","sources":["../../../lib/commands/std-change-password.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAEvC;;GAEG;AACH,oBAAY,sBAAsB,GAAG,WAAW,GAAG;IAClD,QAAQ,EAAE,MAAM,CAAA;CAChB,CAAA;AAED;;GAEG;AACF,oBAAY,uBAAuB,GAAG,EAAE,CAAA"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /* Copyright (c) 2023. SailPoint Technologies, Inc. All rights reserved. */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=std-change-password.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"std-change-password.js","sourceRoot":"","sources":["../../../lib/commands/std-change-password.ts"],"names":[],"mappings":";AAAA,2EAA2E"}
@@ -0,0 +1,15 @@
1
+ import { Attributes, ObjectOutput } from './command';
2
+ /**
3
+ * Input object of `std:entitlement:list` command
4
+ */
5
+ export declare type StdEntitlementListInput = {
6
+ type: string;
7
+ };
8
+ /**
9
+ * Output object of `std:entitlement:list` command
10
+ */
11
+ export declare type StdEntitlementListOutput = ObjectOutput & {
12
+ type: string;
13
+ attributes: Attributes;
14
+ };
15
+ //# sourceMappingURL=std-entitlement-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"std-entitlement-list.d.ts","sourceRoot":"","sources":["../../../lib/commands/std-entitlement-list.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAEpD;;GAEG;AACH,oBAAY,uBAAuB,GAAG;IACrC,IAAI,EAAE,MAAM,CAAA;CACZ,CAAA;AAED;;GAEG;AACH,oBAAY,wBAAwB,GAAG,YAAY,GAAG;IACrD,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,UAAU,CAAA;CACtB,CAAA"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /* Copyright (c) 2021. SailPoint Technologies, Inc. All rights reserved. */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=std-entitlement-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"std-entitlement-list.js","sourceRoot":"","sources":["../../../lib/commands/std-entitlement-list.ts"],"names":[],"mappings":";AAAA,2EAA2E"}
@@ -0,0 +1,15 @@
1
+ import { Attributes, ObjectInput, ObjectOutput } from './command';
2
+ /**
3
+ * Input object of `std:entitlement:read` command
4
+ */
5
+ export declare type StdEntitlementReadInput = ObjectInput & {
6
+ type: string;
7
+ };
8
+ /**
9
+ * Output object of `std:entitlement:read` command
10
+ */
11
+ export declare type StdEntitlementReadOutput = ObjectOutput & {
12
+ type: string;
13
+ attributes: Attributes;
14
+ };
15
+ //# sourceMappingURL=std-entitlement-read.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"std-entitlement-read.d.ts","sourceRoot":"","sources":["../../../lib/commands/std-entitlement-read.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAEjE;;GAEG;AACH,oBAAY,uBAAuB,GAAG,WAAW,GAAG;IACnD,IAAI,EAAE,MAAM,CAAA;CACZ,CAAA;AAED;;GAEG;AACH,oBAAY,wBAAwB,GAAG,YAAY,GAAG;IACrD,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,UAAU,CAAA;CACtB,CAAA"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /* Copyright (c) 2021. SailPoint Technologies, Inc. All rights reserved. */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=std-entitlement-read.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"std-entitlement-read.js","sourceRoot":"","sources":["../../../lib/commands/std-entitlement-read.ts"],"names":[],"mappings":";AAAA,2EAA2E"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Input object of `std:spec:read` command
3
+ */
4
+ export declare type StdSpecReadInput = {};
5
+ /**
6
+ * Output object of `std:spec:read` command
7
+ */
8
+ export declare type StdSpecReadOutput = {
9
+ specification: any;
10
+ };
11
+ //# sourceMappingURL=std-spec-read.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"std-spec-read.d.ts","sourceRoot":"","sources":["../../../lib/commands/std-spec-read.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,gBAAgB,GAAG,EAAE,CAAA;AAEjC;;GAEG;AACH,oBAAY,iBAAiB,GAAG;IAC/B,aAAa,EAAE,GAAG,CAAA;CAClB,CAAA"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /* Copyright (c) 2021. SailPoint Technologies, Inc. All rights reserved. */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=std-spec-read.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"std-spec-read.js","sourceRoot":"","sources":["../../../lib/commands/std-spec-read.ts"],"names":[],"mappings":";AAAA,2EAA2E"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Output object of `std:test-connection` command
3
+ */
4
+ export declare type StdTestConnectionOutput = {};
5
+ //# sourceMappingURL=std-test-connection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"std-test-connection.d.ts","sourceRoot":"","sources":["../../../lib/commands/std-test-connection.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,uBAAuB,GAAG,EAAE,CAAA"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /* Copyright (c) 2021. SailPoint Technologies, Inc. All rights reserved. */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=std-test-connection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"std-test-connection.js","sourceRoot":"","sources":["../../../lib/commands/std-test-connection.ts"],"names":[],"mappings":";AAAA,2EAA2E"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Reads in connector config
3
+ */
4
+ export declare const readConfig: () => Promise<any>;
5
+ /**
6
+ * _withConfig executes callback and ensures that all readConfig calls in
7
+ * callback return cfg
8
+ */
9
+ export declare const _withConfig: (cfg: any, callback: () => unknown) => Promise<void>;
10
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../lib/config.ts"],"names":[],"mappings":"AASA;;GAEG;AACH,eAAO,MAAM,UAAU,QAAa,QAAQ,GAAG,CAgB9C,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,QAAe,GAAG,YAAY,MAAM,OAAO,KAAG,QAAQ,IAAI,CAGjF,CAAA"}
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._withConfig = exports.readConfig = void 0;
4
+ /* Copyright (c) 2021. SailPoint Technologies, Inc. All rights reserved. */
5
+ const async_hooks_1 = require("async_hooks");
6
+ const _configState = new async_hooks_1.AsyncLocalStorage();
7
+ /**
8
+ * Reads in connector config
9
+ */
10
+ const readConfig = async () => {
11
+ const store = _configState.getStore();
12
+ if (store) {
13
+ return store.cfg;
14
+ }
15
+ const config = process.env['CONNECTOR_CONFIG'];
16
+ if (!config) {
17
+ throw new Error(`unexpected runtime error: missing connector config`);
18
+ }
19
+ try {
20
+ return JSON.parse(Buffer.from(config, 'base64').toString());
21
+ }
22
+ catch (ignored) {
23
+ throw new Error(`unexpected runtime error: failed to parse connector config`);
24
+ }
25
+ };
26
+ exports.readConfig = readConfig;
27
+ /**
28
+ * _withConfig executes callback and ensures that all readConfig calls in
29
+ * callback return cfg
30
+ */
31
+ const _withConfig = async (cfg, callback) => {
32
+ const newState = { cfg: cfg };
33
+ await _configState.run(newState, callback);
34
+ };
35
+ exports._withConfig = _withConfig;
36
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../lib/config.ts"],"names":[],"mappings":";;;AAAA,2EAA2E;AAC3E,6CAAgD;AAMhD,MAAM,YAAY,GAAG,IAAI,+BAAiB,EAAe,CAAC;AAE1D;;GAEG;AACI,MAAM,UAAU,GAAG,KAAK,IAAkB,EAAE;IAClD,MAAM,KAAK,GAA4B,YAAY,CAAC,QAAQ,EAAE,CAAC;IAC/D,IAAI,KAAK,EAAE;QACV,OAAO,KAAK,CAAC,GAAG,CAAC;KACjB;IAED,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAA;IAC9C,IAAI,CAAC,MAAM,EAAE;QACZ,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAA;KACrE;IAED,IAAI;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAA;KAC3D;IAAC,OAAO,OAAO,EAAE;QACjB,MAAM,IAAI,KAAK,CAAC,4DAA4D,CAAC,CAAA;KAC7E;AACF,CAAC,CAAA;AAhBY,QAAA,UAAU,cAgBtB;AAED;;;GAGG;AACI,MAAM,WAAW,GAAG,KAAK,EAAE,GAAQ,EAAE,QAAuB,EAAiB,EAAE;IACrF,MAAM,QAAQ,GAAgB,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IAC3C,MAAM,YAAY,CAAC,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;AAC5C,CAAC,CAAA;AAHY,QAAA,WAAW,eAGvB"}
@@ -0,0 +1,6 @@
1
+ import { StdSpecReadInput } from './commands';
2
+ import { StdSpecReadOutput } from './commands/std-spec-read';
3
+ import { Response } from './response';
4
+ import { Context } from './handler';
5
+ export declare const StdSpecReadDefaultHandler: (_context: Context, _input: StdSpecReadInput, res: Response<StdSpecReadOutput>) => Promise<void>;
6
+ //# sourceMappingURL=connector-spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connector-spec.d.ts","sourceRoot":"","sources":["../../lib/connector-spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAOnC,eAAO,MAAM,yBAAyB,aAAoB,OAAO,UAAU,gBAAgB,OAAO,SAAS,iBAAiB,CAAC,kBAK5H,CAAA"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StdSpecReadDefaultHandler = void 0;
4
+ const util_1 = require("util");
5
+ const fs_1 = require("fs");
6
+ const specFilePath = "connector-spec.json";
7
+ const StdSpecReadDefaultHandler = async (_context, _input, res) => {
8
+ const data = await util_1.promisify(fs_1.readFile)(specFilePath);
9
+ res.send({
10
+ specification: JSON.parse(data.toString())
11
+ });
12
+ };
13
+ exports.StdSpecReadDefaultHandler = StdSpecReadDefaultHandler;
14
+ //# sourceMappingURL=connector-spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connector-spec.js","sourceRoot":"","sources":["../../lib/connector-spec.ts"],"names":[],"mappings":";;;AAKA,+BAAgC;AAChC,2BAA6B;AAE7B,MAAM,YAAY,GAAG,qBAAqB,CAAA;AAEnC,MAAM,yBAAyB,GAAG,KAAK,EAAE,QAAiB,EAAE,MAAwB,EAAE,GAAgC,EAAE,EAAE;IAChI,MAAM,IAAI,GAAG,MAAM,gBAAS,CAAC,aAAQ,CAAC,CAAC,YAAY,CAAC,CAAA;IACpD,GAAG,CAAC,IAAI,CAAC;QACR,aAAa,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;KAC1C,CAAC,CAAA;AACH,CAAC,CAAA;AALY,QAAA,yBAAyB,6BAKrC"}
@@ -0,0 +1,107 @@
1
+ /// <reference types="node" />
2
+ import { CommandHandler, Context, StdAccountCreateHandler, StdAccountDeleteHandler, StdAccountDisableHandler, StdAccountDiscoverSchemaHandler, StdAccountEnableHandler, StdAccountListHandler, StdAccountReadHandler, StdAccountUnlockHandler, StdAccountUpdateHandler, StdEntitlementListHandler, StdEntitlementReadHandler, StdTestConnectionHandler, StdChangePasswordHandler } from './handler';
3
+ import { Writable } from 'stream';
4
+ /**
5
+ * Connector to build by attaching handlers for supported commands.
6
+ */
7
+ export declare class Connector {
8
+ static readonly SDK_VERSION = 0;
9
+ private readonly _sdkVersion;
10
+ private readonly _handlers;
11
+ constructor();
12
+ /**
13
+ * Get this Connector SDK's major version
14
+ */
15
+ get sdkVersion(): number;
16
+ /**
17
+ * Get the map of command handlers
18
+ */
19
+ get handlers(): Map<string, CommandHandler>;
20
+ /**
21
+ * Add a handler for 'std:account:create' command
22
+ * @param handler handler
23
+ */
24
+ stdAccountCreate(handler: StdAccountCreateHandler): this;
25
+ /**
26
+ * Add a handler for 'std:account:delete' command
27
+ * @param handler handler
28
+ */
29
+ stdAccountDelete(handler: StdAccountDeleteHandler): this;
30
+ /**
31
+ * Add a handler for 'std:account:delete' command
32
+ * @param handler handler
33
+ */
34
+ stdAccountDisable(handler: StdAccountDisableHandler): this;
35
+ /**
36
+ * Add a handler for 'std:account:discover-schema' command
37
+ * @param handler handler
38
+ */
39
+ stdAccountDiscoverSchema(handler: StdAccountDiscoverSchemaHandler): this;
40
+ /**
41
+ * Add a handler for 'std:account:enable' command
42
+ * @param handler handler
43
+ */
44
+ stdAccountEnable(handler: StdAccountEnableHandler): this;
45
+ /**
46
+ * Add a handler for 'std:account:list' command
47
+ * @param handler handler
48
+ */
49
+ stdAccountList(handler: StdAccountListHandler): this;
50
+ /**
51
+ * Add a handler for 'std:account:read' command
52
+ * @param handler handler
53
+ */
54
+ stdAccountRead(handler: StdAccountReadHandler): this;
55
+ /**
56
+ * Add a handler for 'std:account:unlock' command
57
+ * @param handler handler
58
+ */
59
+ stdAccountUnlock(handler: StdAccountUnlockHandler): this;
60
+ /**
61
+ * Add a handler for 'std:account:update' command
62
+ * @param handler handler
63
+ */
64
+ stdAccountUpdate(handler: StdAccountUpdateHandler): this;
65
+ /**
66
+ * Add a handler for 'std:entitlement:list' command
67
+ * @param handler handler
68
+ */
69
+ stdEntitlementList(handler: StdEntitlementListHandler): this;
70
+ /**
71
+ * Add a handler for 'std:entitlement:read' command
72
+ * @param handler handler
73
+ */
74
+ stdEntitlementRead(handler: StdEntitlementReadHandler): this;
75
+ /**
76
+ * Add a handler for 'std:test-connection' command
77
+ * @param handler handler
78
+ */
79
+ stdTestConnection(handler: StdTestConnectionHandler): this;
80
+ /**
81
+ * Add a handler for 'std:change-password' command
82
+ * @param handler handler
83
+ */
84
+ stdChangePassword(handler: StdChangePasswordHandler): this;
85
+ /**
86
+ * Add a handler for a command of specified type
87
+ * @param type command type
88
+ * @param handler handler
89
+ */
90
+ command(type: string, handler: CommandHandler): this;
91
+ /**
92
+ * Execute the handler for given command type
93
+ *
94
+ * Note: This function MUST NOT be called by the connector directly
95
+ *
96
+ * @param type command type
97
+ * @param context connector context
98
+ * @param input command input
99
+ * @param res writable
100
+ */
101
+ _exec(type: string, context: Context, input: any, res: Writable): Promise<void>;
102
+ }
103
+ /**
104
+ * Creates a connector instance with default options
105
+ */
106
+ export declare const createConnector: () => Connector;
107
+ //# sourceMappingURL=connector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connector.d.ts","sourceRoot":"","sources":["../../lib/connector.ts"],"names":[],"mappings":";AAEA,OAAO,EACN,cAAc,EACd,OAAO,EACP,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,EACxB,+BAA+B,EAC/B,uBAAuB,EACvB,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,wBAAwB,EACxB,MAAM,WAAW,CAAA;AAIlB,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AAKjC;;GAEG;AACH,qBAAa,SAAS;IACrB,gBAAuB,WAAW,KAAc;IAChD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAwB;IACpD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA6B;;IAOvD;;OAEG;IACH,IAAI,UAAU,IAAI,MAAM,CAEvB;IAED;;OAEG;IACH,IAAI,QAAQ,IAAI,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAE1C;IAED;;;OAGG;IACH,gBAAgB,CAAC,OAAO,EAAE,uBAAuB,GAAG,IAAI;IAIxD;;;OAGG;IACH,gBAAgB,CAAC,OAAO,EAAE,uBAAuB,GAAG,IAAI;IAIxD;;;OAGG;IACH,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,GAAG,IAAI;IAI1D;;;OAGG;IACF,wBAAwB,CAAC,OAAO,EAAE,+BAA+B,GAAG,IAAI;IAIzE;;;OAGG;IACH,gBAAgB,CAAC,OAAO,EAAE,uBAAuB,GAAG,IAAI;IAIxD;;;OAGG;IACH,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,IAAI;IAIpD;;;OAGG;IACH,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,IAAI;IAIpD;;;OAGG;IACH,gBAAgB,CAAC,OAAO,EAAE,uBAAuB,GAAG,IAAI;IAIxD;;;OAGG;IACH,gBAAgB,CAAC,OAAO,EAAE,uBAAuB,GAAG,IAAI;IAIxD;;;OAGG;IACH,kBAAkB,CAAC,OAAO,EAAE,yBAAyB,GAAG,IAAI;IAI5D;;;OAGG;IACH,kBAAkB,CAAC,OAAO,EAAE,yBAAyB,GAAG,IAAI;IAI5D;;;OAGG;IACH,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,GAAG,IAAI;IAI1D;;;OAGG;IACH,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,GAAG,IAAI;IAK1D;;;;OAIG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,IAAI;IAKpD;;;;;;;;;OASG;IACG,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;CAWrF;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,QAAO,SAElC,CAAA"}