@atproto/ozone 0.1.167 → 0.1.168

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 (47) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/api/report/createReport.d.ts.map +1 -1
  3. package/dist/api/report/createReport.js +2 -4
  4. package/dist/api/report/createReport.js.map +1 -1
  5. package/dist/lexicon/lexicons.d.ts +12 -12
  6. package/dist/lexicon/lexicons.d.ts.map +1 -1
  7. package/dist/lexicon/lexicons.js +7 -10
  8. package/dist/lexicon/lexicons.js.map +1 -1
  9. package/dist/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.d.ts +3 -3
  10. package/dist/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.d.ts.map +1 -1
  11. package/dist/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.js.map +1 -1
  12. package/dist/lexicon/types/com/atproto/label/defs.d.ts +1 -1
  13. package/dist/lexicon/types/com/atproto/label/defs.d.ts.map +1 -1
  14. package/dist/lexicon/types/com/atproto/label/defs.js.map +1 -1
  15. package/package.json +6 -6
  16. package/src/api/report/createReport.ts +2 -4
  17. package/src/lexicon/lexicons.ts +8 -11
  18. package/src/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.ts +3 -3
  19. package/src/lexicon/types/com/atproto/label/defs.ts +2 -5
  20. package/tests/3p-labeler.test.ts +2 -2
  21. package/tests/account-strikes.test.ts +1 -1
  22. package/tests/communication-templates.test.ts +1 -1
  23. package/tests/expiring-label.test.ts +1 -1
  24. package/tests/get-account-timeline.test.ts +1 -1
  25. package/tests/get-config.test.ts +1 -1
  26. package/tests/get-lists.test.ts +2 -2
  27. package/tests/get-profiles.test.ts +1 -1
  28. package/tests/get-record.test.ts +1 -1
  29. package/tests/get-records.test.ts +1 -1
  30. package/tests/get-repo.test.ts +2 -2
  31. package/tests/get-repos.test.ts +2 -2
  32. package/tests/get-starter-pack.test.ts +2 -2
  33. package/tests/get-subjects.test.ts +1 -1
  34. package/tests/moderation.test.ts +3 -3
  35. package/tests/query-labels.test.ts +1 -1
  36. package/tests/repo-search.test.ts +1 -1
  37. package/tests/report-reason.test.ts +1 -1
  38. package/tests/safelink.test.ts +3 -3
  39. package/tests/scheduled-action-processor.test.ts +1 -1
  40. package/tests/scheduled-action.test.ts +3 -3
  41. package/tests/sets.test.ts +1 -1
  42. package/tests/settings.test.ts +1 -1
  43. package/tests/strike-expiry-processor.test.ts +1 -1
  44. package/tests/takedown.test.ts +2 -2
  45. package/tests/team.test.ts +2 -2
  46. package/tests/verification-listener.test.ts +1 -1
  47. package/tests/verification.test.ts +2 -2
@@ -5,12 +5,12 @@ export type QueryParams = {
5
5
  export type InputSchema = undefined;
6
6
  export interface OutputSchema {
7
7
  suggestions: AppBskyActorDefs.ProfileView[];
8
- /** If true, response has fallen-back to generic results, and is not scoped using relativeToDid */
8
+ /** Snowflake for this recommendation, use when submitting recommendation events. */
9
+ recIdStr?: string;
10
+ /** DEPRECATED, unused. Previously: if true, response has fallen-back to generic results, and is not scoped using relativeToDid */
9
11
  isFallback?: boolean;
10
12
  /** DEPRECATED: use recIdStr instead. */
11
13
  recId?: number;
12
- /** Snowflake for this recommendation, use when submitting recommendation events. */
13
- recIdStr?: string;
14
14
  }
15
15
  export type HandlerInput = void;
16
16
  export interface HandlerSuccess {
@@ -1 +1 @@
1
- {"version":3,"file":"getSuggestedFollowsByActor.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,KAAK,gBAAgB,MAAM,kBAAkB,CAAA;AAMzD,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,gBAAgB,CAAC,WAAW,EAAE,CAAA;IAC3C,kGAAkG;IAClG,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,wCAAwC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,oFAAoF;IACpF,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,MAAM,YAAY,GAAG,IAAI,CAAA;AAE/B,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,YAAY,CAAA;IAClB,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,CAAA"}
1
+ {"version":3,"file":"getSuggestedFollowsByActor.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,KAAK,gBAAgB,MAAM,kBAAkB,CAAA;AAMzD,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,gBAAgB,CAAC,WAAW,EAAE,CAAA;IAC3C,oFAAoF;IACpF,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,kIAAkI;IAClI,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,wCAAwC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,MAAM,YAAY,GAAG,IAAI,CAAA;AAE/B,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,YAAY,CAAA;IAClB,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"getSuggestedFollowsByActor.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.ts"],"names":[],"mappings":";;AAKA,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,2CAA2C,CAAA","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\nimport type * as AppBskyActorDefs from '../actor/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.graph.getSuggestedFollowsByActor'\n\nexport type QueryParams = {\n actor: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n suggestions: AppBskyActorDefs.ProfileView[]\n /** If true, response has fallen-back to generic results, and is not scoped using relativeToDid */\n isFallback?: boolean\n /** DEPRECATED: use recIdStr instead. */\n recId?: number\n /** Snowflake for this recommendation, use when submitting recommendation events. */\n recIdStr?: string\n}\n\nexport type HandlerInput = void\n\nexport interface HandlerSuccess {\n encoding: 'application/json'\n body: OutputSchema\n headers?: { [key: string]: string }\n}\n\nexport interface HandlerError {\n status: number\n message?: string\n}\n\nexport type HandlerOutput = HandlerError | HandlerSuccess\n"]}
1
+ {"version":3,"file":"getSuggestedFollowsByActor.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.ts"],"names":[],"mappings":";;AAKA,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,2CAA2C,CAAA","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\nimport type * as AppBskyActorDefs from '../actor/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.graph.getSuggestedFollowsByActor'\n\nexport type QueryParams = {\n actor: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n suggestions: AppBskyActorDefs.ProfileView[]\n /** Snowflake for this recommendation, use when submitting recommendation events. */\n recIdStr?: string\n /** DEPRECATED, unused. Previously: if true, response has fallen-back to generic results, and is not scoped using relativeToDid */\n isFallback?: boolean\n /** DEPRECATED: use recIdStr instead. */\n recId?: number\n}\n\nexport type HandlerInput = void\n\nexport interface HandlerSuccess {\n encoding: 'application/json'\n body: OutputSchema\n headers?: { [key: string]: string }\n}\n\nexport interface HandlerError {\n status: number\n message?: string\n}\n\nexport type HandlerOutput = HandlerError | HandlerSuccess\n"]}
@@ -70,5 +70,5 @@ export interface LabelValueDefinitionStrings {
70
70
  }
71
71
  export declare function isLabelValueDefinitionStrings<V>(v: V): v is import("../../../../util").$TypedObject<V, "com.atproto.label.defs", "labelValueDefinitionStrings">;
72
72
  export declare function validateLabelValueDefinitionStrings<V>(v: V): ValidationResult<LabelValueDefinitionStrings & V>;
73
- export type LabelValue = '!hide' | '!no-promote' | '!warn' | '!no-unauthenticated' | 'dmca-violation' | 'doxxing' | 'porn' | 'sexual' | 'nudity' | 'nsfl' | 'gore' | (string & {});
73
+ export type LabelValue = '!hide' | '!warn' | '!no-unauthenticated' | 'porn' | 'sexual' | 'nudity' | 'graphic-media' | 'bot' | (string & {});
74
74
  //# sourceMappingURL=defs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/label/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,gEAAgE;AAChE,MAAM,WAAW,KAAK;IACpB,KAAK,CAAC,EAAE,8BAA8B,CAAA;IACtC,mDAAmD;IACnD,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,+CAA+C;IAC/C,GAAG,EAAE,MAAM,CAAA;IACX,gGAAgG;IAChG,GAAG,EAAE,MAAM,CAAA;IACX,+FAA+F;IAC/F,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,gEAAgE;IAChE,GAAG,EAAE,MAAM,CAAA;IACX,uEAAuE;IACvE,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,6CAA6C;IAC7C,GAAG,EAAE,MAAM,CAAA;IACX,iEAAiE;IACjE,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,2CAA2C;IAC3C,GAAG,CAAC,EAAE,UAAU,CAAA;CACjB;AAID,wBAAgB,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,sFAE9B;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,+BAEpC;AAED,qFAAqF;AACrF,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,mCAAmC,CAAA;IAC3C,MAAM,EAAE,SAAS,EAAE,CAAA;CACpB;AAID,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,2FAEnC;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,oCAEzC;AAED,8IAA8I;AAC9I,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,kCAAkC,CAAA;IAC1C,gEAAgE;IAChE,GAAG,EAAE,MAA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,qBAAqB,GACrB,gBAAgB,GAChB,SAAS,GACT,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,MAAM,GACN,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA"}
1
+ {"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/label/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,gEAAgE;AAChE,MAAM,WAAW,KAAK;IACpB,KAAK,CAAC,EAAE,8BAA8B,CAAA;IACtC,mDAAmD;IACnD,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,+CAA+C;IAC/C,GAAG,EAAE,MAAM,CAAA;IACX,gGAAgG;IAChG,GAAG,EAAE,MAAM,CAAA;IACX,+FAA+F;IAC/F,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,gEAAgE;IAChE,GAAG,EAAE,MAAM,CAAA;IACX,uEAAuE;IACvE,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,6CAA6C;IAC7C,GAAG,EAAE,MAAM,CAAA;IACX,iEAAiE;IACjE,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,2CAA2C;IAC3C,GAAG,CAAC,EAAE,UAAU,CAAA;CACjB;AAID,wBAAgB,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,sFAE9B;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,+BAEpC;AAED,qFAAqF;AACrF,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,mCAAmC,CAAA;IAC3C,MAAM,EAAE,SAAS,EAAE,CAAA;CACpB;AAID,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,2FAEnC;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,oCAEzC;AAED,8IAA8I;AAC9I,MAAM,WAAW,SAAS;IACxB,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CAAI;IACvC,OAAO,QAAQ,CAAgB,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAA;AACtD,CAAC;AAkBD,MAAM,wBAAwB,GAAG,sBAAsB,CAAA;AAEvD,SAAgB,sBAAsB,CAAI,CAAI;IAC5C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,wBAAwB,CAAC,CAAA;AAClD,CAAC;AAED,SAAgB,4BAA4B,CAAI,CAAI;IAClD,OAAO,QAAQ,CAA2B,CAAC,EAAE,EAAE,EAAE,wBAAwB,CAAC,CAAA;AAC5E,CAAC;AAaD,MAAM,+BAA+B,GAAG,6BAA6B,CAAA;AAErE,SAAgB,6BAA6B,CAAI,CAAI;IACnD,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,+BAA+B,CAAC,CAAA;AACzD,CAAC;AAED,SAAgB,mCAAmC,CAAI,CAAI;IACzD,OAAO,QAAQ,CACb,CAAC,EACD,EAAE,EACF,+BAA+B,CAChC,CAAA;AACH,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'com.atproto.label.defs'\n\n/** Metadata tag on an atproto resource (eg, repo or record). */\nexport interface Label {\n $type?: 'com.atproto.label.defs#label'\n /** The AT Protocol version of the label object. */\n ver?: number\n /** DID of the actor who created this label. */\n src: string\n /** AT URI of the record, repository (account), or other resource that this label applies to. */\n uri: string\n /** Optionally, CID specifying the specific version of 'uri' resource this label applies to. */\n cid?: string\n /** The short string name of the value or type of this label. */\n val: string\n /** If true, this is a negation label, overwriting a previous label. */\n neg?: boolean\n /** Timestamp when this label was created. */\n cts: string\n /** Timestamp at which this label expires (no longer applies). */\n exp?: string\n /** Signature of dag-cbor encoded label. */\n sig?: Uint8Array\n}\n\nconst hashLabel = 'label'\n\nexport function isLabel<V>(v: V) {\n return is$typed(v, id, hashLabel)\n}\n\nexport function validateLabel<V>(v: V) {\n return validate<Label & V>(v, id, hashLabel)\n}\n\n/** Metadata tags on an atproto record, published by the author within the record. */\nexport interface SelfLabels {\n $type?: 'com.atproto.label.defs#selfLabels'\n values: SelfLabel[]\n}\n\nconst hashSelfLabels = 'selfLabels'\n\nexport function isSelfLabels<V>(v: V) {\n return is$typed(v, id, hashSelfLabels)\n}\n\nexport function validateSelfLabels<V>(v: V) {\n return validate<SelfLabels & V>(v, id, hashSelfLabels)\n}\n\n/** Metadata tag on an atproto record, published by the author within the record. Note that schemas should use #selfLabels, not #selfLabel. */\nexport interface SelfLabel {\n $type?: 'com.atproto.label.defs#selfLabel'\n /** The short string name of the value or type of this label. */\n val: string\n}\n\nconst hashSelfLabel = 'selfLabel'\n\nexport function isSelfLabel<V>(v: V) {\n return is$typed(v, id, hashSelfLabel)\n}\n\nexport function validateSelfLabel<V>(v: V) {\n return validate<SelfLabel & V>(v, id, hashSelfLabel)\n}\n\n/** Declares a label value and its expected interpretations and behaviors. */\nexport interface LabelValueDefinition {\n $type?: 'com.atproto.label.defs#labelValueDefinition'\n /** The value of the label being defined. Must only include lowercase ascii and the '-' character ([a-z-]+). */\n identifier: string\n /** How should a client visually convey this label? 'inform' means neutral and informational; 'alert' means negative and warning; 'none' means show nothing. */\n severity: 'inform' | 'alert' | 'none' | (string & {})\n /** What should this label hide in the UI, if applied? 'content' hides all of the target; 'media' hides the images/video/audio; 'none' hides nothing. */\n blurs: 'content' | 'media' | 'none' | (string & {})\n /** The default setting for this label. */\n defaultSetting: 'ignore' | 'warn' | 'hide' | (string & {})\n /** Does the user need to have adult content enabled in order to configure this label? */\n adultOnly?: boolean\n locales: LabelValueDefinitionStrings[]\n}\n\nconst hashLabelValueDefinition = 'labelValueDefinition'\n\nexport function isLabelValueDefinition<V>(v: V) {\n return is$typed(v, id, hashLabelValueDefinition)\n}\n\nexport function validateLabelValueDefinition<V>(v: V) {\n return validate<LabelValueDefinition & V>(v, id, hashLabelValueDefinition)\n}\n\n/** Strings which describe the label in the UI, localized into a specific language. */\nexport interface LabelValueDefinitionStrings {\n $type?: 'com.atproto.label.defs#labelValueDefinitionStrings'\n /** The code of the language these strings are written in. */\n lang: string\n /** A short human-readable name for the label. */\n name: string\n /** A longer description of what the label means and why it might be applied. */\n description: string\n}\n\nconst hashLabelValueDefinitionStrings = 'labelValueDefinitionStrings'\n\nexport function isLabelValueDefinitionStrings<V>(v: V) {\n return is$typed(v, id, hashLabelValueDefinitionStrings)\n}\n\nexport function validateLabelValueDefinitionStrings<V>(v: V) {\n return validate<LabelValueDefinitionStrings & V>(\n v,\n id,\n hashLabelValueDefinitionStrings,\n )\n}\n\nexport type LabelValue =\n | '!hide'\n | '!no-promote'\n | '!warn'\n | '!no-unauthenticated'\n | 'dmca-violation'\n | 'doxxing'\n | 'porn'\n | 'sexual'\n | 'nudity'\n | 'nsfl'\n | 'gore'\n | (string & {})\n"]}
1
+ {"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/com/atproto/label/defs.ts"],"names":[],"mappings":";;AAyCA,0BAEC;AAED,sCAEC;AAUD,oCAEC;AAED,gDAEC;AAWD,kCAEC;AAED,8CAEC;AAoBD,wDAEC;AAED,oEAEC;AAeD,sEAEC;AAED,kFAMC;AA9HD,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,wBAAwB,CAAA;AAyBnC,MAAM,SAAS,GAAG,OAAO,CAAA;AAEzB,SAAgB,OAAO,CAAI,CAAI;IAC7B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,SAAS,CAAC,CAAA;AACnC,CAAC;AAED,SAAgB,aAAa,CAAI,CAAI;IACnC,OAAO,QAAQ,CAAY,CAAC,EAAE,EAAE,EAAE,SAAS,CAAC,CAAA;AAC9C,CAAC;AAQD,MAAM,cAAc,GAAG,YAAY,CAAA;AAEnC,SAAgB,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,cAAc,CAAC,CAAA;AACxC,CAAC;AAED,SAAgB,kBAAkB,CAAI,CAAI;IACxC,OAAO,QAAQ,CAAiB,CAAC,EAAE,EAAE,EAAE,cAAc,CAAC,CAAA;AACxD,CAAC;AASD,MAAM,aAAa,GAAG,WAAW,CAAA;AAEjC,SAAgB,WAAW,CAAI,CAAI;IACjC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAA;AACvC,CAAC;AAED,SAAgB,iBAAiB,CAAI,CAAI;IACvC,OAAO,QAAQ,CAAgB,CAAC,EAAE,EAAE,EAAE,aAAa,CAAC,CAAA;AACtD,CAAC;AAkBD,MAAM,wBAAwB,GAAG,sBAAsB,CAAA;AAEvD,SAAgB,sBAAsB,CAAI,CAAI;IAC5C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,wBAAwB,CAAC,CAAA;AAClD,CAAC;AAED,SAAgB,4BAA4B,CAAI,CAAI;IAClD,OAAO,QAAQ,CAA2B,CAAC,EAAE,EAAE,EAAE,wBAAwB,CAAC,CAAA;AAC5E,CAAC;AAaD,MAAM,+BAA+B,GAAG,6BAA6B,CAAA;AAErE,SAAgB,6BAA6B,CAAI,CAAI;IACnD,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,+BAA+B,CAAC,CAAA;AACzD,CAAC;AAED,SAAgB,mCAAmC,CAAI,CAAI;IACzD,OAAO,QAAQ,CACb,CAAC,EACD,EAAE,EACF,+BAA+B,CAChC,CAAA;AACH,CAAC","sourcesContent":["/**\n * GENERATED CODE - DO NOT MODIFY\n */\nimport { type ValidationResult, BlobRef } from '@atproto/lexicon'\nimport { CID } from 'multiformats/cid'\nimport { validate as _validate } from '../../../../lexicons'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'com.atproto.label.defs'\n\n/** Metadata tag on an atproto resource (eg, repo or record). */\nexport interface Label {\n $type?: 'com.atproto.label.defs#label'\n /** The AT Protocol version of the label object. */\n ver?: number\n /** DID of the actor who created this label. */\n src: string\n /** AT URI of the record, repository (account), or other resource that this label applies to. */\n uri: string\n /** Optionally, CID specifying the specific version of 'uri' resource this label applies to. */\n cid?: string\n /** The short string name of the value or type of this label. */\n val: string\n /** If true, this is a negation label, overwriting a previous label. */\n neg?: boolean\n /** Timestamp when this label was created. */\n cts: string\n /** Timestamp at which this label expires (no longer applies). */\n exp?: string\n /** Signature of dag-cbor encoded label. */\n sig?: Uint8Array\n}\n\nconst hashLabel = 'label'\n\nexport function isLabel<V>(v: V) {\n return is$typed(v, id, hashLabel)\n}\n\nexport function validateLabel<V>(v: V) {\n return validate<Label & V>(v, id, hashLabel)\n}\n\n/** Metadata tags on an atproto record, published by the author within the record. */\nexport interface SelfLabels {\n $type?: 'com.atproto.label.defs#selfLabels'\n values: SelfLabel[]\n}\n\nconst hashSelfLabels = 'selfLabels'\n\nexport function isSelfLabels<V>(v: V) {\n return is$typed(v, id, hashSelfLabels)\n}\n\nexport function validateSelfLabels<V>(v: V) {\n return validate<SelfLabels & V>(v, id, hashSelfLabels)\n}\n\n/** Metadata tag on an atproto record, published by the author within the record. Note that schemas should use #selfLabels, not #selfLabel. */\nexport interface SelfLabel {\n $type?: 'com.atproto.label.defs#selfLabel'\n /** The short string name of the value or type of this label. */\n val: string\n}\n\nconst hashSelfLabel = 'selfLabel'\n\nexport function isSelfLabel<V>(v: V) {\n return is$typed(v, id, hashSelfLabel)\n}\n\nexport function validateSelfLabel<V>(v: V) {\n return validate<SelfLabel & V>(v, id, hashSelfLabel)\n}\n\n/** Declares a label value and its expected interpretations and behaviors. */\nexport interface LabelValueDefinition {\n $type?: 'com.atproto.label.defs#labelValueDefinition'\n /** The value of the label being defined. Must only include lowercase ascii and the '-' character ([a-z-]+). */\n identifier: string\n /** How should a client visually convey this label? 'inform' means neutral and informational; 'alert' means negative and warning; 'none' means show nothing. */\n severity: 'inform' | 'alert' | 'none' | (string & {})\n /** What should this label hide in the UI, if applied? 'content' hides all of the target; 'media' hides the images/video/audio; 'none' hides nothing. */\n blurs: 'content' | 'media' | 'none' | (string & {})\n /** The default setting for this label. */\n defaultSetting: 'ignore' | 'warn' | 'hide' | (string & {})\n /** Does the user need to have adult content enabled in order to configure this label? */\n adultOnly?: boolean\n locales: LabelValueDefinitionStrings[]\n}\n\nconst hashLabelValueDefinition = 'labelValueDefinition'\n\nexport function isLabelValueDefinition<V>(v: V) {\n return is$typed(v, id, hashLabelValueDefinition)\n}\n\nexport function validateLabelValueDefinition<V>(v: V) {\n return validate<LabelValueDefinition & V>(v, id, hashLabelValueDefinition)\n}\n\n/** Strings which describe the label in the UI, localized into a specific language. */\nexport interface LabelValueDefinitionStrings {\n $type?: 'com.atproto.label.defs#labelValueDefinitionStrings'\n /** The code of the language these strings are written in. */\n lang: string\n /** A short human-readable name for the label. */\n name: string\n /** A longer description of what the label means and why it might be applied. */\n description: string\n}\n\nconst hashLabelValueDefinitionStrings = 'labelValueDefinitionStrings'\n\nexport function isLabelValueDefinitionStrings<V>(v: V) {\n return is$typed(v, id, hashLabelValueDefinitionStrings)\n}\n\nexport function validateLabelValueDefinitionStrings<V>(v: V) {\n return validate<LabelValueDefinitionStrings & V>(\n v,\n id,\n hashLabelValueDefinitionStrings,\n )\n}\n\nexport type LabelValue =\n | '!hide'\n | '!warn'\n | '!no-unauthenticated'\n | 'porn'\n | 'sexual'\n | 'nudity'\n | 'graphic-media'\n | 'bot'\n | (string & {})\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/ozone",
3
- "version": "0.1.167",
3
+ "version": "0.1.168",
4
4
  "license": "MIT",
5
5
  "description": "Backend service for moderating the Bluesky network.",
6
6
  "keywords": [
@@ -35,15 +35,15 @@
35
35
  "uint8arrays": "3.0.0",
36
36
  "undici": "^6.14.1",
37
37
  "ws": "^8.12.0",
38
- "@atproto/api": "^0.19.4",
39
- "@atproto/common": "^0.5.14",
38
+ "@atproto/api": "^0.19.5",
39
+ "@atproto/common": "^0.5.15",
40
40
  "@atproto/crypto": "^0.4.5",
41
41
  "@atproto/identity": "^0.4.12",
42
42
  "@atproto/lexicon": "^0.6.2",
43
- "@atproto/syntax": "^0.5.1",
43
+ "@atproto/syntax": "^0.5.2",
44
44
  "@atproto/ws-client": "^0.0.4",
45
45
  "@atproto/xrpc": "^0.7.7",
46
- "@atproto/xrpc-server": "^0.10.16"
46
+ "@atproto/xrpc-server": "^0.10.18"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@did-plc/server": "^0.0.1",
@@ -56,7 +56,7 @@
56
56
  "ts-node": "^10.8.2",
57
57
  "typescript": "^5.6.3",
58
58
  "@atproto/lex-cli": "^0.9.9",
59
- "@atproto/pds": "^0.4.215"
59
+ "@atproto/pds": "^0.4.217"
60
60
  },
61
61
  "scripts": {
62
62
  "codegen": "lex gen-server --yes ./src/lexicon ../../lexicons/com/atproto/*/* ../../lexicons/app/bsky/*/* ../../lexicons/chat/bsky/*/* ../../lexicons/tools/ozone/*/*",
@@ -24,10 +24,8 @@ export default function (server: Server, ctx: AppContext) {
24
24
 
25
25
  const db = ctx.db
26
26
 
27
- await Promise.all([
28
- assertValidReporter(ctx.modService(db), reasonType, requester),
29
- ctx.moderationServiceProfile().validateReasonType(reasonType),
30
- ])
27
+ await ctx.moderationServiceProfile().validateReasonType(reasonType)
28
+ await assertValidReporter(ctx.modService(db), reasonType, requester)
31
29
 
32
30
  const report = await db.transaction(async (dbTxn) => {
33
31
  const moderationTxn = ctx.modService(dbTxn)
@@ -6243,21 +6243,21 @@ export const schemaDict = {
6243
6243
  ref: 'lex:app.bsky.actor.defs#profileView',
6244
6244
  },
6245
6245
  },
6246
+ recIdStr: {
6247
+ type: 'string',
6248
+ description:
6249
+ 'Snowflake for this recommendation, use when submitting recommendation events.',
6250
+ },
6246
6251
  isFallback: {
6247
6252
  type: 'boolean',
6248
6253
  description:
6249
- 'If true, response has fallen-back to generic results, and is not scoped using relativeToDid',
6254
+ 'DEPRECATED, unused. Previously: if true, response has fallen-back to generic results, and is not scoped using relativeToDid',
6250
6255
  default: false,
6251
6256
  },
6252
6257
  recId: {
6253
6258
  type: 'integer',
6254
6259
  description: 'DEPRECATED: use recIdStr instead.',
6255
6260
  },
6256
- recIdStr: {
6257
- type: 'string',
6258
- description:
6259
- 'Snowflake for this recommendation, use when submitting recommendation events.',
6260
- },
6261
6261
  },
6262
6262
  },
6263
6263
  },
@@ -11842,16 +11842,13 @@ export const schemaDict = {
11842
11842
  type: 'string',
11843
11843
  knownValues: [
11844
11844
  '!hide',
11845
- '!no-promote',
11846
11845
  '!warn',
11847
11846
  '!no-unauthenticated',
11848
- 'dmca-violation',
11849
- 'doxxing',
11850
11847
  'porn',
11851
11848
  'sexual',
11852
11849
  'nudity',
11853
- 'nsfl',
11854
- 'gore',
11850
+ 'graphic-media',
11851
+ 'bot',
11855
11852
  ],
11856
11853
  },
11857
11854
  },
@@ -22,12 +22,12 @@ export type InputSchema = undefined
22
22
 
23
23
  export interface OutputSchema {
24
24
  suggestions: AppBskyActorDefs.ProfileView[]
25
- /** If true, response has fallen-back to generic results, and is not scoped using relativeToDid */
25
+ /** Snowflake for this recommendation, use when submitting recommendation events. */
26
+ recIdStr?: string
27
+ /** DEPRECATED, unused. Previously: if true, response has fallen-back to generic results, and is not scoped using relativeToDid */
26
28
  isFallback?: boolean
27
29
  /** DEPRECATED: use recIdStr instead. */
28
30
  recId?: number
29
- /** Snowflake for this recommendation, use when submitting recommendation events. */
30
- recIdStr?: string
31
31
  }
32
32
 
33
33
  export type HandlerInput = void
@@ -133,14 +133,11 @@ export function validateLabelValueDefinitionStrings<V>(v: V) {
133
133
 
134
134
  export type LabelValue =
135
135
  | '!hide'
136
- | '!no-promote'
137
136
  | '!warn'
138
137
  | '!no-unauthenticated'
139
- | 'dmca-violation'
140
- | 'doxxing'
141
138
  | 'porn'
142
139
  | 'sexual'
143
140
  | 'nudity'
144
- | 'nsfl'
145
- | 'gore'
141
+ | 'graphic-media'
142
+ | 'bot'
146
143
  | (string & {})
@@ -43,8 +43,8 @@ describe('labels from 3p labelers', () => {
43
43
  pdsDid: network.pds.ctx.cfg.service.did,
44
44
  })
45
45
 
46
- thirdPartyAgent = thirdPartyLabeler.getClient()
47
- agent = ozone.getClient()
46
+ thirdPartyAgent = thirdPartyLabeler.getAgent()
47
+ agent = ozone.getAgent()
48
48
  sc = network.getSeedClient()
49
49
  modClient = ozone.getModClient()
50
50
  thirdPartyModClient = thirdPartyLabeler.getModClient()
@@ -56,7 +56,7 @@ describe('account-strikes', () => {
56
56
  network = await TestNetwork.create({
57
57
  dbPostgresSchema: 'ozone_account_strikes',
58
58
  })
59
- agent = network.ozone.getClient()
59
+ agent = network.ozone.getAgent()
60
60
  sc = network.getSeedClient()
61
61
  modClient = network.ozone.getModClient()
62
62
  await basicSeed(sc)
@@ -11,7 +11,7 @@ describe('communication-templates', () => {
11
11
  network = await TestNetwork.create({
12
12
  dbPostgresSchema: 'ozone_communication_templates',
13
13
  })
14
- agent = network.ozone.getClient()
14
+ agent = network.ozone.getAgent()
15
15
  sc = network.getSeedClient()
16
16
  await basicSeed(sc)
17
17
  await network.processAll()
@@ -18,7 +18,7 @@ describe('expiring label', () => {
18
18
  dbPostgresSchema: 'ozone_expiring_label_test',
19
19
  })
20
20
  sc = network.getSeedClient()
21
- agent = network.ozone.getClient()
21
+ agent = network.ozone.getAgent()
22
22
  modClient = network.ozone.getModClient()
23
23
  await basicSeed(sc)
24
24
  await network.processAll()
@@ -20,7 +20,7 @@ describe('account timeline', () => {
20
20
  dbPostgresSchema: 'ozone_account_timeline_test',
21
21
  })
22
22
  sc = network.getSeedClient()
23
- agent = network.ozone.getClient()
23
+ agent = network.ozone.getAgent()
24
24
  modClient = network.ozone.getModClient()
25
25
  await basicSeed(sc)
26
26
 
@@ -12,7 +12,7 @@ describe('get-config', () => {
12
12
  network = await TestNetwork.create({
13
13
  dbPostgresSchema: 'ozone_server_config',
14
14
  })
15
- agent = network.ozone.getClient()
15
+ agent = network.ozone.getAgent()
16
16
  sc = network.getSeedClient()
17
17
  await basicSeed(sc)
18
18
  await network.processAll()
@@ -24,8 +24,8 @@ describe('admin get lists', () => {
24
24
  dbPostgresSchema: 'ozone_admin_get_lists',
25
25
  })
26
26
  ozone = network.ozone
27
- agent = ozone.getClient()
28
- appviewAgent = network.bsky.getClient()
27
+ agent = ozone.getAgent()
28
+ appviewAgent = network.bsky.getAgent()
29
29
  sc = network.getSeedClient()
30
30
  modClient = ozone.getModClient()
31
31
  await basicSeed(sc)
@@ -54,7 +54,7 @@ describe('get profiles through ozone', () => {
54
54
  sc.dids.carol,
55
55
  ])
56
56
 
57
- const appviewAgent = network.bsky.getClient()
57
+ const appviewAgent = network.bsky.getAgent()
58
58
  const {
59
59
  data: { profiles: profilesFromAppview },
60
60
  } = await appviewAgent.app.bsky.actor.getProfiles({
@@ -26,7 +26,7 @@ describe('admin get record view', () => {
26
26
  dbPostgresSchema: 'ozone_admin_get_record',
27
27
  })
28
28
  ozone = network.ozone
29
- agent = ozone.getClient()
29
+ agent = ozone.getAgent()
30
30
  sc = network.getSeedClient()
31
31
  modClient = ozone.getModClient()
32
32
  await basicSeed(sc)
@@ -25,7 +25,7 @@ describe('admin get records view', () => {
25
25
  dbPostgresSchema: 'ozone_admin_get_records',
26
26
  })
27
27
  ozone = network.ozone
28
- agent = ozone.getClient()
28
+ agent = ozone.getAgent()
29
29
  sc = network.getSeedClient()
30
30
  modClient = ozone.getModClient()
31
31
  await basicSeed(sc)
@@ -26,8 +26,8 @@ describe('admin get repo view', () => {
26
26
  dbPostgresSchema: 'ozone_admin_get_repo',
27
27
  })
28
28
  ozone = network.ozone
29
- agent = ozone.getClient()
30
- pdsAgent = network.pds.getClient()
29
+ agent = ozone.getAgent()
30
+ pdsAgent = network.pds.getAgent()
31
31
  sc = network.getSeedClient()
32
32
  modClient = ozone.getModClient()
33
33
  await basicSeed(sc)
@@ -26,8 +26,8 @@ describe('admin get multiple repos', () => {
26
26
  dbPostgresSchema: 'ozone_admin_get_repos',
27
27
  })
28
28
  ozone = network.ozone
29
- agent = ozone.getClient()
30
- pdsAgent = network.pds.getClient()
29
+ agent = ozone.getAgent()
30
+ pdsAgent = network.pds.getAgent()
31
31
  sc = network.getSeedClient()
32
32
  modClient = ozone.getModClient()
33
33
  await basicSeed(sc)
@@ -23,7 +23,7 @@ describe('admin get starter pack view', () => {
23
23
  })
24
24
  ozone = network.ozone
25
25
  AtpAgent.configure({ appLabelers: [ozone.ctx.cfg.service.did] })
26
- agent = ozone.getClient()
26
+ agent = ozone.getAgent()
27
27
  sc = network.getSeedClient()
28
28
  await basicSeed(sc)
29
29
  await network.processAll()
@@ -59,7 +59,7 @@ describe('admin get starter pack view', () => {
59
59
 
60
60
  it('gets a starterpack while taken down', async () => {
61
61
  // Validate that appview returns starterpacks before takedown
62
- const appviewAgent = network.bsky.getClient()
62
+ const appviewAgent = network.bsky.getAgent()
63
63
  const beforeTakedownFromAppview =
64
64
  await appviewAgent.api.app.bsky.graph.getStarterPack(
65
65
  { starterPack: sp1.uriStr },
@@ -25,7 +25,7 @@ describe('admin get multiple subjects with all relevant details', () => {
25
25
  dbPostgresSchema: 'ozone_admin_get_subjects',
26
26
  })
27
27
  ozone = network.ozone
28
- agent = ozone.getClient()
28
+ agent = ozone.getAgent()
29
29
  sc = network.getSeedClient()
30
30
  modClient = ozone.getModClient()
31
31
  await basicSeed(sc)
@@ -71,9 +71,9 @@ describe('moderation', () => {
71
71
  },
72
72
  })
73
73
  ozone = network.ozone
74
- agent = network.ozone.getClient()
75
- bskyAgent = network.bsky.getClient()
76
- pdsAgent = network.pds.getClient()
74
+ agent = network.ozone.getAgent()
75
+ bskyAgent = network.bsky.getAgent()
76
+ pdsAgent = network.pds.getAgent()
77
77
  sc = network.getSeedClient()
78
78
  modClient = network.ozone.getModClient()
79
79
  await basicSeed(sc)
@@ -24,7 +24,7 @@ describe('ozone query labels', () => {
24
24
  dbPostgresSchema: 'ozone_query_labels',
25
25
  })
26
26
 
27
- agent = network.ozone.getClient()
27
+ agent = network.ozone.getAgent()
28
28
 
29
29
  const toCreate = [
30
30
  {
@@ -20,7 +20,7 @@ describe('admin repo search view', () => {
20
20
  network = await TestNetwork.create({
21
21
  dbPostgresSchema: 'ozone_admin_repo_search',
22
22
  })
23
- agent = network.ozone.getClient()
23
+ agent = network.ozone.getAgent()
24
24
  sc = network.getSeedClient()
25
25
  modClient = network.ozone.getModClient()
26
26
  await usersBulkSeed(sc)
@@ -25,7 +25,7 @@ describe('report reason', () => {
25
25
  await basicSeed(sc)
26
26
 
27
27
  // Login with ozone's service account owner and update the service profile definition
28
- pdsAgent = network.pds.getClient()
28
+ pdsAgent = network.pds.getAgent()
29
29
  await pdsAgent.login({
30
30
  identifier: 'mod-authority.test',
31
31
  password: 'hunter2',
@@ -20,9 +20,9 @@ describe('safelink management', () => {
20
20
  network = await TestNetwork.create({
21
21
  dbPostgresSchema: 'ozone_safelink_test',
22
22
  })
23
- adminAgent = network.ozone.getClient()
24
- modAgent = network.ozone.getClient()
25
- triageAgent = network.ozone.getClient()
23
+ adminAgent = network.ozone.getAgent()
24
+ modAgent = network.ozone.getAgent()
25
+ triageAgent = network.ozone.getAgent()
26
26
  sc = network.getSeedClient()
27
27
  await basicSeed(sc)
28
28
  await network.processAll()
@@ -66,7 +66,7 @@ describe('scheduled action processor', () => {
66
66
  network = await TestNetwork.create({
67
67
  dbPostgresSchema: 'ozone_scheduled_action_processor_test',
68
68
  })
69
- adminAgent = network.ozone.getClient()
69
+ adminAgent = network.ozone.getAgent()
70
70
  sc = network.getSeedClient()
71
71
  await basicSeed(sc)
72
72
  await network.processAll()
@@ -48,9 +48,9 @@ describe('scheduled action management', () => {
48
48
  network = await TestNetwork.create({
49
49
  dbPostgresSchema: 'ozone_scheduled_action_test',
50
50
  })
51
- adminAgent = network.ozone.getClient()
52
- modAgent = network.ozone.getClient()
53
- triageAgent = network.ozone.getClient()
51
+ adminAgent = network.ozone.getAgent()
52
+ modAgent = network.ozone.getAgent()
53
+ triageAgent = network.ozone.getAgent()
54
54
  sc = network.getSeedClient()
55
55
  await basicSeed(sc)
56
56
  await network.processAll()
@@ -90,7 +90,7 @@ describe('ozone-sets', () => {
90
90
  network = await TestNetwork.create({
91
91
  dbPostgresSchema: 'ozone_sets',
92
92
  })
93
- agent = network.ozone.getClient()
93
+ agent = network.ozone.getAgent()
94
94
  sc = network.getSeedClient()
95
95
  await basicSeed(sc)
96
96
  await network.processAll()
@@ -61,7 +61,7 @@ describe('ozone-settings', () => {
61
61
  network = await TestNetwork.create({
62
62
  dbPostgresSchema: 'ozone_settings',
63
63
  })
64
- agent = network.ozone.getClient()
64
+ agent = network.ozone.getAgent()
65
65
  sc = network.getSeedClient()
66
66
  await basicSeed(sc)
67
67
  await network.processAll()
@@ -59,7 +59,7 @@ describe('strike expiry processor', () => {
59
59
  network = await TestNetwork.create({
60
60
  dbPostgresSchema: 'ozone_strike_expiry_processor',
61
61
  })
62
- agent = network.ozone.getClient()
62
+ agent = network.ozone.getAgent()
63
63
  sc = network.getSeedClient()
64
64
  modClient = network.ozone.getModClient()
65
65
  await basicSeed(sc)
@@ -30,8 +30,8 @@ describe('moderation', () => {
30
30
  })
31
31
  sc = network.getSeedClient()
32
32
  modClient = network.ozone.getModClient()
33
- pdsAgent = network.pds.getClient()
34
- bskyAgent = network.bsky.getClient()
33
+ pdsAgent = network.pds.getAgent()
34
+ bskyAgent = network.bsky.getAgent()
35
35
  await basicSeed(sc)
36
36
  await network.processAll()
37
37
  })
@@ -15,7 +15,7 @@ describe('team management', () => {
15
15
  dbTeamProfileRefreshIntervalMs: 100,
16
16
  },
17
17
  })
18
- adminAgent = network.pds.getClient()
18
+ adminAgent = network.pds.getAgent()
19
19
  sc = network.getSeedClient()
20
20
  await basicSeed(sc)
21
21
  await network.processAll()
@@ -27,7 +27,7 @@ describe('team management', () => {
27
27
  identifier: sc.accounts[sc.dids.alice].handle,
28
28
  password: sc.accounts[sc.dids.alice].password,
29
29
  })
30
- triageAgent = network.pds.getClient()
30
+ triageAgent = network.pds.getAgent()
31
31
  await triageAgent.login({
32
32
  identifier: sc.accounts[sc.dids.carol].handle,
33
33
  password: sc.accounts[sc.dids.carol].password,
@@ -30,7 +30,7 @@ describe('verification-listener', () => {
30
30
  sc = network.getSeedClient()
31
31
  await basicSeed(sc)
32
32
 
33
- adminAgent = network.pds.getClient()
33
+ adminAgent = network.pds.getAgent()
34
34
  await adminAgent.login({
35
35
  identifier: sc.accounts[sc.dids.alice].handle,
36
36
  password: sc.accounts[sc.dids.alice].password,
@@ -14,7 +14,7 @@ describe('verification', () => {
14
14
  network = await TestNetwork.create({
15
15
  dbPostgresSchema: 'ozone_verification_test',
16
16
  })
17
- adminAgent = network.pds.getClient()
17
+ adminAgent = network.pds.getAgent()
18
18
  sc = network.getSeedClient()
19
19
  await basicSeed(sc)
20
20
  await network.processAll()
@@ -26,7 +26,7 @@ describe('verification', () => {
26
26
  identifier: sc.accounts[sc.dids.alice].handle,
27
27
  password: sc.accounts[sc.dids.alice].password,
28
28
  })
29
- triageAgent = network.pds.getClient()
29
+ triageAgent = network.pds.getAgent()
30
30
  await triageAgent.login({
31
31
  identifier: sc.accounts[sc.dids.carol].handle,
32
32
  password: sc.accounts[sc.dids.carol].password,