@forge/util
2.0.12.0.1-experimental-7890858
packages/ari/identity/index.js~
packages/ari/identity/index.jsModified+312−89
Index: package/packages/ari/identity/index.js
===================================================================
--- package/packages/ari/identity/index.js
+++ package/packages/ari/identity/index.js
@@ -28,11 +28,16 @@
IdentityGroupAri: () => IdentityGroupAri,
IdentityOauthClientAri: () => IdentityOauthClientAri,
IdentityRoleAri: () => IdentityRoleAri,
IdentityScopedGroupAri: () => IdentityScopedGroupAri,
+ IdentityScopedTeamAri: () => IdentityScopedTeamAri,
IdentitySiteAri: () => IdentitySiteAri,
IdentityTeamAri: () => IdentityTeamAri,
+ IdentityTeamCustomFieldAri: () => IdentityTeamCustomFieldAri,
+ IdentityTeamCustomFieldValueAri: () => IdentityTeamCustomFieldValueAri,
IdentityTeamMemberAri: () => IdentityTeamMemberAri,
+ IdentityTeamTypeAri: () => IdentityTeamTypeAri,
+ IdentityTeamWorkspaceAri: () => IdentityTeamWorkspaceAri,
IdentityThirdPartyDirectoryAri: () => IdentityThirdPartyDirectoryAri,
IdentityThirdPartyGroupAri: () => IdentityThirdPartyGroupAri,
IdentityThirdPartyUserAri: () => IdentityThirdPartyUserAri,
IdentityUserAri: () => IdentityUserAri,
@@ -295,32 +300,28 @@
}
};
// src/identity/app/types.ts
-var IdentityAppAriResourceOwner = "identity", IdentityAppAriResourceType = "app";
+var IdentityAppAriResourceOwner = "identity";
// src/identity/app/manifest.ts
var identityAppAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: IdentityAppAriResourceOwner,
- resourceType: IdentityAppAriResourceType,
+ resourceType: "app",
resourceIdSlug: "{platform}/{appId}",
resourceIdSegmentFormats: {
platform: /(android|ios|macos)/,
- // eslint-disable-line no-useless-escape
appId: /(([a-zA-Z]+)\.)+([a-zA-Z]+)/
- // eslint-disable-line no-useless-escape
}
};
// src/identity/app/index.ts
var IdentityAppAri = class _IdentityAppAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._platform = opts.resourceIdSegmentValues.platform, this._appId = opts.resourceIdSegmentValues.appId;
+ super(opts), this._platform = opts.resourceIdSegmentValues.platform, this._appId = opts.resourceIdSegmentValues.appId;
}
get platform() {
return this._platform;
}
@@ -361,25 +362,22 @@
var identityAppGrantAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: IdentityAppGrantAriResourceOwner,
resourceType: IdentityAppGrantAriResourceType,
resourceIdSlug: "{userId}-{clientId}",
resourceIdSegmentFormats: {
userId: /[a-zA-Z0-9_\-\:]{1,128}/,
// eslint-disable-line no-useless-escape
clientId: /[0-9a-zA-Z-_]{5,50}/
- // eslint-disable-line no-useless-escape
}
};
// src/identity/app-grant/index.ts
var IdentityAppGrantAri = class _IdentityAppGrantAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._userId = opts.resourceIdSegmentValues.userId, this._clientId = opts.resourceIdSegmentValues.clientId;
+ super(opts), this._userId = opts.resourceIdSegmentValues.userId, this._clientId = opts.resourceIdSegmentValues.clientId;
}
get userId() {
return this._userId;
}
@@ -420,23 +418,20 @@
var identityAuthPolicyAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: IdentityAuthPolicyAriResourceOwner,
resourceType: IdentityAuthPolicyAriResourceType,
resourceIdSlug: "{authPolicyId}",
resourceIdSegmentFormats: {
authPolicyId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
- // eslint-disable-line no-useless-escape
}
};
// src/identity/auth-policy/index.ts
var IdentityAuthPolicyAri = class _IdentityAuthPolicyAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._authPolicyId = opts.resourceIdSegmentValues.authPolicyId;
+ super(opts), this._authPolicyId = opts.resourceIdSegmentValues.authPolicyId;
}
get authPolicyId() {
return this._authPolicyId;
}
@@ -472,23 +467,20 @@
var identityCustomerDirectoryAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: IdentityCustomerDirectoryAriResourceOwner,
resourceType: IdentityCustomerDirectoryAriResourceType,
resourceIdSlug: "{customerDirectoryId}",
resourceIdSegmentFormats: {
customerDirectoryId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/
- // eslint-disable-line no-useless-escape
}
};
// src/identity/customer-directory/index.ts
var IdentityCustomerDirectoryAri = class _IdentityCustomerDirectoryAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._customerDirectoryId = opts.resourceIdSegmentValues.customerDirectoryId;
+ super(opts), this._customerDirectoryId = opts.resourceIdSegmentValues.customerDirectoryId;
}
get customerDirectoryId() {
return this._customerDirectoryId;
}
@@ -524,23 +516,20 @@
var identityCustomerOrganizationAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: IdentityCustomerOrganizationAriResourceOwner,
resourceType: IdentityCustomerOrganizationAriResourceType,
resourceIdSlug: "{customerOrganizationId}",
resourceIdSegmentFormats: {
customerOrganizationId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
- // eslint-disable-line no-useless-escape
}
};
// src/identity/customer-organization/index.ts
var IdentityCustomerOrganizationAri = class _IdentityCustomerOrganizationAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._customerOrganizationId = opts.resourceIdSegmentValues.customerOrganizationId;
+ super(opts), this._customerOrganizationId = opts.resourceIdSegmentValues.customerOrganizationId;
}
get customerOrganizationId() {
return this._customerOrganizationId;
}
@@ -576,23 +565,20 @@
var identityDirectoryAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: IdentityDirectoryAriResourceOwner,
resourceType: IdentityDirectoryAriResourceType,
resourceIdSlug: "{directoryId}",
resourceIdSegmentFormats: {
directoryId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
- // eslint-disable-line no-useless-escape
}
};
// src/identity/directory/index.ts
var IdentityDirectoryAri = class _IdentityDirectoryAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._directoryId = opts.resourceIdSegmentValues.directoryId;
+ super(opts), this._directoryId = opts.resourceIdSegmentValues.directoryId;
}
get directoryId() {
return this._directoryId;
}
@@ -628,23 +614,20 @@
var identityDomainAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: IdentityDomainAriResourceOwner,
resourceType: IdentityDomainAriResourceType,
resourceIdSlug: "{base64Domain}",
resourceIdSegmentFormats: {
base64Domain: /[a-zA-Z0-9=]+={0,1}/
- // eslint-disable-line no-useless-escape
}
};
// src/identity/domain/index.ts
var IdentityDomainAri = class _IdentityDomainAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._base64Domain = opts.resourceIdSegmentValues.base64Domain;
+ super(opts), this._base64Domain = opts.resourceIdSegmentValues.base64Domain;
}
get base64Domain() {
return this._base64Domain;
}
@@ -680,25 +663,21 @@
var identityForgeInstallationAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
- // eslint-disable-line no-useless-escape
resourceOwner: IdentityForgeInstallationAriResourceOwner,
resourceType: IdentityForgeInstallationAriResourceType,
resourceIdSlug: "{appId}/{envId}",
resourceIdSegmentFormats: {
appId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/,
- // eslint-disable-line no-useless-escape
envId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
- // eslint-disable-line no-useless-escape
}
};
// src/identity/forge-installation/index.ts
var IdentityForgeInstallationAri = class _IdentityForgeInstallationAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._siteId = opts.cloudId || "", this._appId = opts.resourceIdSegmentValues.appId, this._envId = opts.resourceIdSegmentValues.envId;
+ super(opts), this._siteId = opts.cloudId || "", this._appId = opts.resourceIdSegmentValues.appId, this._envId = opts.resourceIdSegmentValues.envId;
}
get siteId() {
return this._siteId;
}
@@ -743,23 +722,20 @@
var identityGroupAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: IdentityGroupAriResourceOwner,
resourceType: IdentityGroupAriResourceType,
resourceIdSlug: "{groupId}",
resourceIdSegmentFormats: {
groupId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/
- // eslint-disable-line no-useless-escape
}
};
// src/identity/group/index.ts
var IdentityGroupAri = class _IdentityGroupAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._groupId = opts.resourceIdSegmentValues.groupId;
+ super(opts), this._groupId = opts.resourceIdSegmentValues.groupId;
}
get groupId() {
return this._groupId;
}
@@ -795,23 +771,20 @@
var identityOauthClientAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: IdentityOauthClientAriResourceOwner,
resourceType: IdentityOauthClientAriResourceType,
resourceIdSlug: "{clientId}",
resourceIdSegmentFormats: {
clientId: /[0-9a-zA-Z-_]{5,50}/
- // eslint-disable-line no-useless-escape
}
};
// src/identity/oauthClient/index.ts
var IdentityOauthClientAri = class _IdentityOauthClientAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._clientId = opts.resourceIdSegmentValues.clientId;
+ super(opts), this._clientId = opts.resourceIdSegmentValues.clientId;
}
get clientId() {
return this._clientId;
}
@@ -847,23 +820,20 @@
var identityRoleAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{0,255}$"),
- // eslint-disable-line no-useless-escape
resourceOwner: IdentityRoleAriResourceOwner,
resourceType: IdentityRoleAriResourceType,
resourceIdSlug: "{roleId}",
resourceIdSegmentFormats: {
roleId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/
- // eslint-disable-line no-useless-escape
}
};
// src/identity/role/index.ts
var IdentityRoleAri = class _IdentityRoleAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._optionalSiteId = opts.cloudId || "", this._roleId = opts.resourceIdSegmentValues.roleId;
+ super(opts), this._optionalSiteId = opts.cloudId || "", this._roleId = opts.resourceIdSegmentValues.roleId;
}
get optionalSiteId() {
return this._optionalSiteId;
}
@@ -903,27 +873,22 @@
var identityScopedGroupAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: IdentityScopedGroupAriResourceOwner,
resourceType: IdentityScopedGroupAriResourceType,
resourceIdSlug: "{scopeType}/{scopeId}/{groupId}",
resourceIdSegmentFormats: {
scopeType: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/,
- // eslint-disable-line no-useless-escape
scopeId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/,
- // eslint-disable-line no-useless-escape
groupId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/
- // eslint-disable-line no-useless-escape
}
};
// src/identity/scoped-group/index.ts
var IdentityScopedGroupAri = class _IdentityScopedGroupAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._scopeType = opts.resourceIdSegmentValues.scopeType, this._scopeId = opts.resourceIdSegmentValues.scopeId, this._groupId = opts.resourceIdSegmentValues.groupId;
+ super(opts), this._scopeType = opts.resourceIdSegmentValues.scopeType, this._scopeId = opts.resourceIdSegmentValues.scopeId, this._groupId = opts.resourceIdSegmentValues.groupId;
}
get scopeType() {
return this._scopeType;
}
@@ -961,31 +926,84 @@
};
}
};
+// src/identity/scoped-team/types.ts
+var IdentityScopedTeamAriResourceOwner = "identity", IdentityScopedTeamAriResourceType = "scoped-team";
+
+// src/identity/scoped-team/manifest.ts
+var identityScopedTeamAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^$"),
+ resourceOwner: IdentityScopedTeamAriResourceOwner,
+ resourceType: IdentityScopedTeamAriResourceType,
+ resourceIdSlug: "{directoryId}/{teamId}",
+ resourceIdSegmentFormats: {
+ directoryId: /[a-zA-Z0-9\-]+/,
+ // eslint-disable-line no-useless-escape
+ teamId: /[a-zA-Z0-9.\-_~]+/
+ }
+};
+
+// src/identity/scoped-team/index.ts
+var IdentityScopedTeamAri = class _IdentityScopedTeamAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts), this._directoryId = opts.resourceIdSegmentValues.directoryId, this._teamId = opts.resourceIdSegmentValues.teamId;
+ }
+ get directoryId() {
+ return this._directoryId;
+ }
+ get teamId() {
+ return this._teamId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: identityScopedTeamAriStaticOpts.qualifier,
+ platformQualifier: identityScopedTeamAriStaticOpts.platformQualifier,
+ cloudId: void 0,
+ resourceOwner: identityScopedTeamAriStaticOpts.resourceOwner,
+ resourceType: identityScopedTeamAriStaticOpts.resourceType,
+ resourceId: `${opts.directoryId}/${opts.teamId}`,
+ resourceIdSegmentValues: {
+ directoryId: opts.directoryId,
+ teamId: opts.teamId
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, identityScopedTeamAriStaticOpts);
+ return new _IdentityScopedTeamAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, identityScopedTeamAriStaticOpts);
+ return new _IdentityScopedTeamAri(opts);
+ }
+ getVariables() {
+ return {
+ directoryId: this.directoryId,
+ teamId: this.teamId
+ };
+ }
+};
+
// src/identity/site/types.ts
var IdentitySiteAriResourceOwner = "identity", IdentitySiteAriResourceType = "site";
// src/identity/site/manifest.ts
var identitySiteAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: IdentitySiteAriResourceOwner,
resourceType: IdentitySiteAriResourceType,
resourceIdSlug: "{siteId}",
resourceIdSegmentFormats: {
siteId: /[a-zA-Z0-9_\-.]{1,255}/
- // eslint-disable-line no-useless-escape
}
};
// src/identity/site/index.ts
var IdentitySiteAri = class _IdentitySiteAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._siteId = opts.resourceIdSegmentValues.siteId;
+ super(opts), this._siteId = opts.resourceIdSegmentValues.siteId;
}
get siteId() {
return this._siteId;
}
@@ -1021,23 +1039,20 @@
var identityTeamAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: IdentityTeamAriResourceOwner,
resourceType: IdentityTeamAriResourceType,
resourceIdSlug: "{teamId}",
resourceIdSegmentFormats: {
teamId: /[a-zA-Z0-9.\-_~]+/
- // eslint-disable-line no-useless-escape
}
};
// src/identity/team/index.ts
var IdentityTeamAri = class _IdentityTeamAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._teamId = opts.resourceIdSegmentValues.teamId;
+ super(opts), this._teamId = opts.resourceIdSegmentValues.teamId;
}
get teamId() {
return this._teamId;
}
@@ -1065,33 +1080,148 @@
};
}
};
+// src/identity/team-custom-field/types.ts
+var IdentityTeamCustomFieldAriResourceOwner = "identity", IdentityTeamCustomFieldAriResourceType = "team-custom-field";
+
+// src/identity/team-custom-field/manifest.ts
+var identityTeamCustomFieldAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^$"),
+ resourceOwner: IdentityTeamCustomFieldAriResourceOwner,
+ resourceType: IdentityTeamCustomFieldAriResourceType,
+ resourceIdSlug: "{directoryId}/{teamCustomFieldId}",
+ resourceIdSegmentFormats: {
+ directoryId: /[a-zA-Z0-9\-]+/,
+ // eslint-disable-line no-useless-escape
+ teamCustomFieldId: /[a-zA-Z0-9.\-_~]{1,64}/
+ }
+};
+
+// src/identity/team-custom-field/index.ts
+var IdentityTeamCustomFieldAri = class _IdentityTeamCustomFieldAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts), this._directoryId = opts.resourceIdSegmentValues.directoryId, this._teamCustomFieldId = opts.resourceIdSegmentValues.teamCustomFieldId;
+ }
+ get directoryId() {
+ return this._directoryId;
+ }
+ get teamCustomFieldId() {
+ return this._teamCustomFieldId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: identityTeamCustomFieldAriStaticOpts.qualifier,
+ platformQualifier: identityTeamCustomFieldAriStaticOpts.platformQualifier,
+ cloudId: void 0,
+ resourceOwner: identityTeamCustomFieldAriStaticOpts.resourceOwner,
+ resourceType: identityTeamCustomFieldAriStaticOpts.resourceType,
+ resourceId: `${opts.directoryId}/${opts.teamCustomFieldId}`,
+ resourceIdSegmentValues: {
+ directoryId: opts.directoryId,
+ teamCustomFieldId: opts.teamCustomFieldId
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, identityTeamCustomFieldAriStaticOpts);
+ return new _IdentityTeamCustomFieldAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, identityTeamCustomFieldAriStaticOpts);
+ return new _IdentityTeamCustomFieldAri(opts);
+ }
+ getVariables() {
+ return {
+ directoryId: this.directoryId,
+ teamCustomFieldId: this.teamCustomFieldId
+ };
+ }
+};
+
+// src/identity/team-custom-field-value/types.ts
+var IdentityTeamCustomFieldValueAriResourceOwner = "identity", IdentityTeamCustomFieldValueAriResourceType = "team-custom-field-value";
+
+// src/identity/team-custom-field-value/manifest.ts
+var identityTeamCustomFieldValueAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^$"),
+ resourceOwner: IdentityTeamCustomFieldValueAriResourceOwner,
+ resourceType: IdentityTeamCustomFieldValueAriResourceType,
+ resourceIdSlug: "{directoryId}/{teamCustomFieldId}/{teamCustomFieldValueId}",
+ resourceIdSegmentFormats: {
+ directoryId: /[a-zA-Z0-9\-]+/,
+ // eslint-disable-line no-useless-escape
+ teamCustomFieldId: /[a-zA-Z0-9.\-_~]{1,64}/,
+ teamCustomFieldValueId: /[a-zA-Z0-9.\-_~]{1,64}/
+ }
+};
+
+// src/identity/team-custom-field-value/index.ts
+var IdentityTeamCustomFieldValueAri = class _IdentityTeamCustomFieldValueAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts), this._directoryId = opts.resourceIdSegmentValues.directoryId, this._teamCustomFieldId = opts.resourceIdSegmentValues.teamCustomFieldId, this._teamCustomFieldValueId = opts.resourceIdSegmentValues.teamCustomFieldValueId;
+ }
+ get directoryId() {
+ return this._directoryId;
+ }
+ get teamCustomFieldId() {
+ return this._teamCustomFieldId;
+ }
+ get teamCustomFieldValueId() {
+ return this._teamCustomFieldValueId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: identityTeamCustomFieldValueAriStaticOpts.qualifier,
+ platformQualifier: identityTeamCustomFieldValueAriStaticOpts.platformQualifier,
+ cloudId: void 0,
+ resourceOwner: identityTeamCustomFieldValueAriStaticOpts.resourceOwner,
+ resourceType: identityTeamCustomFieldValueAriStaticOpts.resourceType,
+ resourceId: `${opts.directoryId}/${opts.teamCustomFieldId}/${opts.teamCustomFieldValueId}`,
+ resourceIdSegmentValues: {
+ directoryId: opts.directoryId,
+ teamCustomFieldId: opts.teamCustomFieldId,
+ teamCustomFieldValueId: opts.teamCustomFieldValueId
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, identityTeamCustomFieldValueAriStaticOpts);
+ return new _IdentityTeamCustomFieldValueAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, identityTeamCustomFieldValueAriStaticOpts);
+ return new _IdentityTeamCustomFieldValueAri(opts);
+ }
+ getVariables() {
+ return {
+ directoryId: this.directoryId,
+ teamCustomFieldId: this.teamCustomFieldId,
+ teamCustomFieldValueId: this.teamCustomFieldValueId
+ };
+ }
+};
+
// src/identity/team-member/types.ts
var IdentityTeamMemberAriResourceOwner = "identity", IdentityTeamMemberAriResourceType = "team-member";
// src/identity/team-member/manifest.ts
var identityTeamMemberAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: IdentityTeamMemberAriResourceOwner,
resourceType: IdentityTeamMemberAriResourceType,
resourceIdSlug: "{teamId}/{userId}",
resourceIdSegmentFormats: {
teamId: /[a-zA-Z0-9.\-_~]+/,
- // eslint-disable-line no-useless-escape
userId: /[a-zA-Z0-9_\-\:]{1,128}/
// eslint-disable-line no-useless-escape
}
};
// src/identity/team-member/index.ts
var IdentityTeamMemberAri = class _IdentityTeamMemberAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._teamId = opts.resourceIdSegmentValues.teamId, this._userId = opts.resourceIdSegmentValues.userId;
+ super(opts), this._teamId = opts.resourceIdSegmentValues.teamId, this._userId = opts.resourceIdSegmentValues.userId;
}
get teamId() {
return this._teamId;
}
@@ -1124,31 +1254,133 @@
};
}
};
+// src/identity/team-type/types.ts
+var IdentityTeamTypeAriResourceOwner = "identity", IdentityTeamTypeAriResourceType = "team-type";
+
+// src/identity/team-type/manifest.ts
+var identityTeamTypeAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^$"),
+ resourceOwner: IdentityTeamTypeAriResourceOwner,
+ resourceType: IdentityTeamTypeAriResourceType,
+ resourceIdSlug: "{directoryId}/{teamTypeId}",
+ resourceIdSegmentFormats: {
+ directoryId: /[a-zA-Z0-9\-]+/,
+ // eslint-disable-line no-useless-escape
+ teamTypeId: /[a-zA-Z0-9.\-_~]{1,64}/
+ }
+};
+
+// src/identity/team-type/index.ts
+var IdentityTeamTypeAri = class _IdentityTeamTypeAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts), this._directoryId = opts.resourceIdSegmentValues.directoryId, this._teamTypeId = opts.resourceIdSegmentValues.teamTypeId;
+ }
+ get directoryId() {
+ return this._directoryId;
+ }
+ get teamTypeId() {
+ return this._teamTypeId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: identityTeamTypeAriStaticOpts.qualifier,
+ platformQualifier: identityTeamTypeAriStaticOpts.platformQualifier,
+ cloudId: void 0,
+ resourceOwner: identityTeamTypeAriStaticOpts.resourceOwner,
+ resourceType: identityTeamTypeAriStaticOpts.resourceType,
+ resourceId: `${opts.directoryId}/${opts.teamTypeId}`,
+ resourceIdSegmentValues: {
+ directoryId: opts.directoryId,
+ teamTypeId: opts.teamTypeId
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, identityTeamTypeAriStaticOpts);
+ return new _IdentityTeamTypeAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, identityTeamTypeAriStaticOpts);
+ return new _IdentityTeamTypeAri(opts);
+ }
+ getVariables() {
+ return {
+ directoryId: this.directoryId,
+ teamTypeId: this.teamTypeId
+ };
+ }
+};
+
+// src/identity/team-workspace/types.ts
+var IdentityTeamWorkspaceAriResourceOwner = "identity", IdentityTeamWorkspaceAriResourceType = "team-workspace";
+
+// src/identity/team-workspace/manifest.ts
+var identityTeamWorkspaceAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^$"),
+ resourceOwner: IdentityTeamWorkspaceAriResourceOwner,
+ resourceType: IdentityTeamWorkspaceAriResourceType,
+ resourceIdSlug: "{workspaceId}",
+ resourceIdSegmentFormats: {
+ workspaceId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
+ }
+};
+
+// src/identity/team-workspace/index.ts
+var IdentityTeamWorkspaceAri = class _IdentityTeamWorkspaceAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts), this._workspaceId = opts.resourceIdSegmentValues.workspaceId;
+ }
+ get workspaceId() {
+ return this._workspaceId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: identityTeamWorkspaceAriStaticOpts.qualifier,
+ platformQualifier: identityTeamWorkspaceAriStaticOpts.platformQualifier,
+ cloudId: void 0,
+ resourceOwner: identityTeamWorkspaceAriStaticOpts.resourceOwner,
+ resourceType: identityTeamWorkspaceAriStaticOpts.resourceType,
+ resourceId: `${opts.workspaceId}`,
+ resourceIdSegmentValues: {
+ workspaceId: opts.workspaceId
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, identityTeamWorkspaceAriStaticOpts);
+ return new _IdentityTeamWorkspaceAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, identityTeamWorkspaceAriStaticOpts);
+ return new _IdentityTeamWorkspaceAri(opts);
+ }
+ getVariables() {
+ return {
+ workspaceId: this.workspaceId
+ };
+ }
+};
+
// src/identity/third-party-directory/types.ts
var IdentityThirdPartyDirectoryAriResourceOwner = "identity", IdentityThirdPartyDirectoryAriResourceType = "third-party-directory";
// src/identity/third-party-directory/manifest.ts
var identityThirdPartyDirectoryAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: IdentityThirdPartyDirectoryAriResourceOwner,
resourceType: IdentityThirdPartyDirectoryAriResourceType,
resourceIdSlug: "{directoryId}",
resourceIdSegmentFormats: {
directoryId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
- // eslint-disable-line no-useless-escape
}
};
// src/identity/third-party-directory/index.ts
var IdentityThirdPartyDirectoryAri = class _IdentityThirdPartyDirectoryAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._directoryId = opts.resourceIdSegmentValues.directoryId;
+ super(opts), this._directoryId = opts.resourceIdSegmentValues.directoryId;
}
get directoryId() {
return this._directoryId;
}
@@ -1184,25 +1416,21 @@
var identityThirdPartyGroupAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: IdentityThirdPartyGroupAriResourceOwner,
resourceType: IdentityThirdPartyGroupAriResourceType,
resourceIdSlug: "{directoryId}/{groupId}",
resourceIdSegmentFormats: {
directoryId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/,
- // eslint-disable-line no-useless-escape
groupId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/
- // eslint-disable-line no-useless-escape
}
};
// src/identity/third-party-group/index.ts
var IdentityThirdPartyGroupAri = class _IdentityThirdPartyGroupAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._directoryId = opts.resourceIdSegmentValues.directoryId, this._groupId = opts.resourceIdSegmentValues.groupId;
+ super(opts), this._directoryId = opts.resourceIdSegmentValues.directoryId, this._groupId = opts.resourceIdSegmentValues.groupId;
}
get directoryId() {
return this._directoryId;
}
@@ -1243,25 +1471,22 @@
var identityThirdPartyUserAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: IdentityThirdPartyUserAriResourceOwner,
resourceType: IdentityThirdPartyUserAriResourceType,
resourceIdSlug: "{directoryId}/{userId}",
resourceIdSegmentFormats: {
directoryId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/,
- // eslint-disable-line no-useless-escape
userId: /[a-zA-Z0-9_\-\:]{1,128}/
// eslint-disable-line no-useless-escape
}
};
// src/identity/third-party-user/index.ts
var IdentityThirdPartyUserAri = class _IdentityThirdPartyUserAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._directoryId = opts.resourceIdSegmentValues.directoryId, this._userId = opts.resourceIdSegmentValues.userId;
+ super(opts), this._directoryId = opts.resourceIdSegmentValues.directoryId, this._userId = opts.resourceIdSegmentValues.userId;
}
get directoryId() {
return this._directoryId;
}
@@ -1302,9 +1527,8 @@
var identityUserAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: IdentityUserAriResourceOwner,
resourceType: IdentityUserAriResourceType,
resourceIdSlug: "{userId}",
resourceIdSegmentFormats: {
@@ -1315,10 +1539,9 @@
// src/identity/user/index.ts
var IdentityUserAri = class _IdentityUserAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._userId = opts.resourceIdSegmentValues.userId;
+ super(opts), this._userId = opts.resourceIdSegmentValues.userId;
}
get userId() {
return this._userId;
}
@@ -1354,9 +1577,8 @@
var identityUserbaseAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: IdentityUserbaseAriResourceOwner,
resourceType: IdentityUserbaseAriResourceType,
resourceIdSlug: "{userbaseId}",
resourceIdSegmentFormats: {
@@ -1367,10 +1589,9 @@
// src/identity/userbase/index.ts
var IdentityUserbaseAri = class _IdentityUserbaseAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._userbaseId = opts.resourceIdSegmentValues.userbaseId;
+ super(opts), this._userbaseId = opts.resourceIdSegmentValues.userbaseId;
}
get userbaseId() {
return this._userbaseId;
}
@@ -1406,25 +1627,22 @@
var identityUserGrantAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: IdentityUserGrantAriResourceOwner,
resourceType: IdentityUserGrantAriResourceType,
resourceIdSlug: "{userId}-{clientId}",
resourceIdSegmentFormats: {
userId: /[a-zA-Z0-9_\-\:]{1,128}/,
// eslint-disable-line no-useless-escape
clientId: /[0-9a-zA-Z-_]{5,50}/
- // eslint-disable-line no-useless-escape
}
};
// src/identity/userGrant/index.ts
var IdentityUserGrantAri = class _IdentityUserGrantAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._userId = opts.resourceIdSegmentValues.userId, this._clientId = opts.resourceIdSegmentValues.clientId;
+ super(opts), this._userId = opts.resourceIdSegmentValues.userId, this._clientId = opts.resourceIdSegmentValues.clientId;
}
get userId() {
return this._userId;
}
@@ -1470,11 +1688,16 @@
IdentityGroupAri,
IdentityOauthClientAri,
IdentityRoleAri,
IdentityScopedGroupAri,
+ IdentityScopedTeamAri,
IdentitySiteAri,
IdentityTeamAri,
+ IdentityTeamCustomFieldAri,
+ IdentityTeamCustomFieldValueAri,
IdentityTeamMemberAri,
+ IdentityTeamTypeAri,
+ IdentityTeamWorkspaceAri,
IdentityThirdPartyDirectoryAri,
IdentityThirdPartyGroupAri,
IdentityThirdPartyUserAri,
IdentityUserAri,